diff --git a/.changeset/vue-disabled-reason-layer-cleanup.md b/.changeset/vue-disabled-reason-layer-cleanup.md deleted file mode 100644 index 6ef5c7d62..000000000 --- a/.changeset/vue-disabled-reason-layer-cleanup.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -'@fastkit/vue-disabled-reason': minor ---- - -- Unmount the reason layers when the component unmounts or when a container is no longer targeted. The layers are rendered imperatively and were never torn down, which leaked the component instances they held. -- Add a `disabled` prop. When specified, it takes precedence over the state detected from the DOM, so a wrapped component that already knows its own state (e.g. a readonly input that carries the `disabled` attribute) can report it accurately. DOM detection remains the fallback when it is not specified. -- Re-render a reason layer that was removed from its container, e.g. when a text-only child is updated and Vue replaces the container's content. -- Each reason layer is now rendered into its own `display: contents` `` inside the container, so the layer's elements are no longer direct children of the container. -- A `disabled` prop defined in the `props` passed to `defineDisabledReasonComponent` is replaced by the built-in `disabled` prop. diff --git a/.changeset/vui-disabled-reason-disabled-prop.md b/.changeset/vui-disabled-reason-disabled-prop.md deleted file mode 100644 index 60a9c823a..000000000 --- a/.changeset/vui-disabled-reason-disabled-prop.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@fastkit/vui': minor ---- - -- `VDisabledReason`'s `disabled` now tells whether the target is disabled and takes precedence over DOM detection. It replaces the `disabled` inherited from the menu props, which had no effect. Callers that passed it see the new behavior: `false` hides the reason even on a disabled target, and `true` activates the tooltip and the overlay (which catches clicks) on an enabled one. diff --git a/packages/vue-disabled-reason/CHANGELOG.md b/packages/vue-disabled-reason/CHANGELOG.md index 65b88c996..e203e1e35 100644 --- a/packages/vue-disabled-reason/CHANGELOG.md +++ b/packages/vue-disabled-reason/CHANGELOG.md @@ -1,5 +1,15 @@ # @fastkit/vue-disabled-reason +## 1.1.0 + +### Minor Changes + +- [#320](https://github.com/dadajam4/fastkit/pull/320) [`4c2343f`](https://github.com/dadajam4/fastkit/commit/4c2343f39b1d63e765c7418a301cd7b130b61659) Thanks [@schwarz9791](https://github.com/schwarz9791)! - - Unmount the reason layers when the component unmounts or when a container is no longer targeted. The layers are rendered imperatively and were never torn down, which leaked the component instances they held. + - Add a `disabled` prop. When specified, it takes precedence over the state detected from the DOM, so a wrapped component that already knows its own state (e.g. a readonly input that carries the `disabled` attribute) can report it accurately. DOM detection remains the fallback when it is not specified. + - Re-render a reason layer that was removed from its container, e.g. when a text-only child is updated and Vue replaces the container's content. + - Each reason layer is now rendered into its own `display: contents` `` inside the container, so the layer's elements are no longer direct children of the container. + - A `disabled` prop defined in the `props` passed to `defineDisabledReasonComponent` is replaced by the built-in `disabled` prop. + ## 1.0.0 ### Major Changes diff --git a/packages/vue-disabled-reason/package.json b/packages/vue-disabled-reason/package.json index 0bcff9cc7..9c446e65b 100644 --- a/packages/vue-disabled-reason/package.json +++ b/packages/vue-disabled-reason/package.json @@ -1,6 +1,6 @@ { "name": "@fastkit/vue-disabled-reason", - "version": "1.0.0", + "version": "1.1.0", "description": "A headless Vue utility that monitors disabled elements and provides a slot or render function to display the reason.", "keywords": [ "fastkit", diff --git a/packages/vui/CHANGELOG.md b/packages/vui/CHANGELOG.md index dd69f420d..e7662ed44 100644 --- a/packages/vui/CHANGELOG.md +++ b/packages/vui/CHANGELOG.md @@ -1,5 +1,16 @@ # @fastkit/vui +## 1.9.0 + +### Minor Changes + +- [#320](https://github.com/dadajam4/fastkit/pull/320) [`4c2343f`](https://github.com/dadajam4/fastkit/commit/4c2343f39b1d63e765c7418a301cd7b130b61659) Thanks [@schwarz9791](https://github.com/schwarz9791)! - - `VDisabledReason`'s `disabled` now tells whether the target is disabled and takes precedence over DOM detection. It replaces the `disabled` inherited from the menu props, which had no effect. Callers that passed it see the new behavior: `false` hides the reason even on a disabled target, and `true` activates the tooltip and the overlay (which catches clicks) on an enabled one. + +### Patch Changes + +- Updated dependencies [[`4c2343f`](https://github.com/dadajam4/fastkit/commit/4c2343f39b1d63e765c7418a301cd7b130b61659)]: + - @fastkit/vue-disabled-reason@1.1.0 + ## 1.8.0 ### Minor Changes diff --git a/packages/vui/package.json b/packages/vui/package.json index 1017b6471..9f86ee1be 100644 --- a/packages/vui/package.json +++ b/packages/vui/package.json @@ -1,6 +1,6 @@ { "name": "@fastkit/vui", - "version": "1.8.0", + "version": "1.9.0", "description": "A simple, extensible UI kit for Vue applications.", "keywords": [ "fastkit",