@xleddyl/443-components-vue 0.16.88 → 0.16.90

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (67) hide show
  1. package/CATALOG.md +20 -19
  2. package/README.md +33 -4
  3. package/dist/components/core/Input.vue +1 -1
  4. package/dist/components/core/Input.vue.d.ts +1 -0
  5. package/dist/components/core/Textarea.vue +1 -1
  6. package/dist/components/core/Textarea.vue.d.ts +1 -0
  7. package/dist/components/data/Tree.vue +87 -17
  8. package/dist/components/data/Tree.vue.d.ts +19 -3
  9. package/dist/components/data/types.d.ts +1 -0
  10. package/dist/components/forms/Checkbox.vue +1 -1
  11. package/dist/components/forms/CheckboxGroup.vue +1 -1
  12. package/dist/components/forms/ColorInput.vue +1 -1
  13. package/dist/components/forms/ColorInput.vue.d.ts +1 -0
  14. package/dist/components/forms/Combobox.vue +1 -1
  15. package/dist/components/forms/DateInput.vue +1 -1
  16. package/dist/components/forms/DateInput.vue.d.ts +1 -0
  17. package/dist/components/forms/DatePicker.vue +1 -1
  18. package/dist/components/forms/DatePicker.vue.d.ts +1 -0
  19. package/dist/components/forms/FileInput.vue +1 -1
  20. package/dist/components/forms/FileInput.vue.d.ts +1 -0
  21. package/dist/components/forms/NumberInput.vue +1 -1
  22. package/dist/components/forms/NumberInput.vue.d.ts +1 -0
  23. package/dist/components/forms/PaletteSelect.vue +1 -1
  24. package/dist/components/forms/PaletteSelect.vue.d.ts +1 -0
  25. package/dist/components/forms/PasswordInput.vue +1 -1
  26. package/dist/components/forms/PasswordInput.vue.d.ts +1 -0
  27. package/dist/components/forms/PinInput.vue +1 -1
  28. package/dist/components/forms/PinInput.vue.d.ts +1 -0
  29. package/dist/components/forms/RadioGroup.vue +1 -1
  30. package/dist/components/forms/SegmentedControl.vue +1 -1
  31. package/dist/components/forms/Select.vue +1 -1
  32. package/dist/components/forms/Slider.vue +1 -1
  33. package/dist/components/forms/Slider.vue.d.ts +1 -0
  34. package/dist/components/forms/Switch.vue +1 -1
  35. package/dist/components/forms/Switch.vue.d.ts +1 -0
  36. package/dist/components/forms/TimeInput.vue +1 -1
  37. package/dist/components/forms/TimeInput.vue.d.ts +1 -0
  38. package/dist/components/forms/TreeSelect.vue +1 -1
  39. package/dist/components/forms/TreeSelect.vue.d.ts +1 -0
  40. package/dist/components/overlays/CommandList.vue +397 -0
  41. package/dist/components/overlays/CommandList.vue.d.ts +255 -0
  42. package/dist/components/overlays/CommandPalette.vue +48 -315
  43. package/dist/components/overlays/CommandPalette.vue.d.ts +2 -1
  44. package/dist/components/overlays/Popover.vue +24 -5
  45. package/dist/components/overlays/Popover.vue.d.ts +4 -1
  46. package/dist/components/overlays/index.d.ts +1 -0
  47. package/dist/components/overlays/index.mjs +1 -0
  48. package/dist/components/overlays/types.d.ts +1 -0
  49. package/dist/composables/useField.mjs +1 -1
  50. package/dist/editor/RichTextEditor.vue +1 -1
  51. package/dist/editor/RichTextEditor.vue.d.ts +1 -0
  52. package/dist/editor/TemplateEditor.vue +1 -1
  53. package/dist/editor/TemplateEditor.vue.d.ts +1 -0
  54. package/dist/internal/core/DivElement.d.ts +2 -0
  55. package/dist/internal/core/DivElement.mjs +8 -0
  56. package/dist/internal/floating/layer.d.ts +1 -0
  57. package/dist/internal/floating/layer.mjs +56 -7
  58. package/dist/internal/floating/position.d.ts +2 -0
  59. package/dist/internal/floating/position.mjs +25 -0
  60. package/dist/locale/de.mjs +2 -1
  61. package/dist/locale/en.mjs +2 -1
  62. package/dist/locale/it.mjs +2 -1
  63. package/dist/locale/types.d.ts +1 -0
  64. package/dist/styles/data/tree.css +23 -4
  65. package/dist/styles/forced-colors.css +6 -1
  66. package/dist/styles/overlays/command.css +22 -0
  67. package/package.json +1 -1
package/CATALOG.md CHANGED
@@ -82,7 +82,7 @@ Playground paths in this file are relative to `playground/nuxt/app/pages/compone
82
82
  | Small floating panel with content or a form | `Popover` |
83
83
  | Preview on hover (user card) | `HoverCard` |
84
84
  | Short label on hover or focus | `Tooltip` |
85
- | Global search, command menu (Cmd+K) | `CommandPalette` (the `DashboardLayout` has it with `search`) |
85
+ | Global search, command menu (Cmd+K) | `CommandPalette` (the `DashboardLayout` has it with `search`), `CommandList` for the same list inline or in a `Popover` |
86
86
  | Small table, simple sort | `Table` (+ `useTableSort` for client sort) |
87
87
  | Big table, many rows, editing, Excel-like | `DataGrid` (+ `spreadsheet` prop for Excel-like editing) |
88
88
  | Filters for a grid (selects, dates in a modal from the toolbar) | `DataGrid` `#filters` slot with `activeFilters` (or `filterCount`), `@filter-remove` and `@filters-reset` |
@@ -144,21 +144,21 @@ Playground paths in this file are relative to `playground/nuxt/app/pages/compone
144
144
 
145
145
  ## Core
146
146
 
147
- | Component | Purpose and when to use it | Main props, models, slots, events | Playground |
148
- | ---------------- | ----------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------- |
149
- | `Root` | App root. Scopes all styles under `.k-root` and sets theme, preset and tokens. Mount once. Add `is-canvas` for the page background. | Props: `theme` (system, light, dark), `preset`, `accent`, `accentContrast`, `fontSans`, `fontMono`, `fontDisplay`, `radiusScale`, `as`. Slot: default. | `core/root.vue` |
150
- | `Button` | Every button and button-like link. Use `CopyButton` to copy text, `DropdownMenu` for a menu. | Props: `label`, `variant` (solid, soft, subtle, outline, ghost, link), `tone`, `size`, `icon`, `trailingIcon`, `to`, `href`, `target`, `external`, `type`, `disabled`, `loading`, `block`, `square` (icon only), `tooltip` (tooltip text on hover and focus; `false` turns off the automatic one), `disabledReason` (with `disabled`: the button stays focusable and hoverable with `aria-disabled`, ignores clicks and shows the reason in a tooltip and as its description). An icon-only button shows its `aria-label` (or `title`) as a tooltip; inside a `Tooltip` it shows none. Slot: default. A `to` or `href` makes it a link. | `core/button.vue` |
151
- | `Icon` | Show an icon by name. | Props: `name` (required), `label` (makes it non decorative), `size`. | `core/icon.vue` |
152
- | `Spinner` | Loading indicator. Use `block` for a centered loading state that fills its container. | Props: `size` (xs to lg), `label`, `decorative`, `block`. | `core/spinner.vue` |
153
- | `Input` | Single line text field. Use `NumberInput` for numbers, `PasswordInput` for passwords. | Model: `v-model` (string, number or null; modifiers `.number`, `.trim`). Props: `type`, `size`, `icon`, `clearable`, `counter` (needs `maxlength`), `transform`, `numeric` (decimal keyboard, number model, tabular digits, left aligned), `invalid`, `disabled`, `readonly`, `required`, `noAutofill`. Slots: `leading`, `trailing`. Event: `clear`. | `core/input.vue` |
154
- | `Textarea` | Multi line text field. | Model: `v-model`. Props: `rows`, `maxRows`, `autoresize`, `counter`, `size`, `invalid`, `disabled`, `readonly`, `required`. Slot: `trailing`. | `core/textarea.vue` |
155
- | `FormField` | Label, description, hint, error and required marker around one control. It links ids and ARIA for the control inside. | Props: `label`, `name` (reads error and warning from the surrounding `Form`), `description`, `hint`, `error`, `warning`, `required`, `optional`, `disabled`, `icon`, `help` (an info icon after the label with the text as tooltip, also linked to the control as a description). Slots: default, `label`, `label-actions`, `description`, `hint`. | `core/form-field.vue` |
156
- | `FieldMessage` | One error, warning or hint line outside a `FormField`. | Props: `message`, `tone` (danger, warning, neutral), `icon`. Slot: default. | `core/field-message.vue` |
157
- | `FieldBoundary` | Cut the field context for controls inside a `FormField` that are not the main control (a search box above a `Tree`). | Prop: `auxiliary` (keeps own id, follows only `disabled`). Without it the context is fully cut. | `core/form-field.vue` |
158
- | `Form` | Connects a `useForm` result to a `<form>`. Provides errors to `FormField`, handles submit, reset, focus on first error. | Props: `form` (required), `as` (form or div; use `div` for a form nested in a modal), `focusOnError`, `alerts` (start, end, false), `disabled` (every `FormField` and control inside is disabled; a nested form inherits it unless it sets its own), `guard` (`false` keeps this form out of the leave guard; default: the `guard` option of `useForm`). While mounted it registers its dirty state in the nearest leave scope (`Modal`, `Drawer`, `FormDrawer`, `FormModal`, `SettingsModal`, else the page): leaving it dirty asks `confirm.discard()` first. Not while submitting or disabled. Slot: default, `alerts`. Events: `submitted`, `invalid`, `reset`. | `core/form.vue` |
159
- | `FormAlerts` | Render root errors and warnings as alerts. `Form` already does it. Use it only for a custom placement. | Props: `errors`, `warnings`. | `core/form.vue` |
160
- | `Kbd` | Show a keyboard key or shortcut. | Props: `value` (for example `mod+k`, shown per platform), `size`. Slot: default. | `core/kbd.vue` |
161
- | `VisuallyHidden` | Text for screen readers only. | Props: `as`, `focusable`. | `core/visually-hidden.vue` |
147
+ | Component | Purpose and when to use it | Main props, models, slots, events | Playground |
148
+ | ---------------- | ----------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------- |
149
+ | `Root` | App root. Scopes all styles under `.k-root` and sets theme, preset and tokens. Mount once. Add `is-canvas` for the page background. | Props: `theme` (system, light, dark), `preset`, `accent`, `accentContrast`, `fontSans`, `fontMono`, `fontDisplay`, `radiusScale`, `as`. Slot: default. | `core/root.vue` |
150
+ | `Button` | Every button and button-like link. Use `CopyButton` to copy text, `DropdownMenu` for a menu. | Props: `label`, `variant` (solid, soft, subtle, outline, ghost, link), `tone`, `size`, `icon`, `trailingIcon`, `to`, `href`, `target`, `external`, `type`, `disabled`, `loading`, `block`, `square` (icon only), `tooltip` (tooltip text on hover and focus; `false` turns off the automatic one), `disabledReason` (with `disabled`: the button stays focusable and hoverable with `aria-disabled`, ignores clicks and shows the reason in a tooltip and as its description). An icon-only button shows its `aria-label` (or `title`) as a tooltip; inside a `Tooltip` it shows none. Slot: default. A `to` or `href` makes it a link. | `core/button.vue` |
151
+ | `Icon` | Show an icon by name. | Props: `name` (required), `label` (makes it non decorative), `size`. | `core/icon.vue` |
152
+ | `Spinner` | Loading indicator. Use `block` for a centered loading state that fills its container. | Props: `size` (xs to lg), `label`, `decorative`, `block`. | `core/spinner.vue` |
153
+ | `Input` | Single line text field. Use `NumberInput` for numbers, `PasswordInput` for passwords. | Model: `v-model` (string, number or null; modifiers `.number`, `.trim`). Props: `type`, `size`, `icon`, `clearable`, `counter` (needs `maxlength`), `transform`, `numeric` (decimal keyboard, number model, tabular digits, left aligned), `invalid`, `disabled`, `readonly`, `required`, `noAutofill`. Slots: `leading`, `trailing`. Event: `clear`. | `core/input.vue` |
154
+ | `Textarea` | Multi line text field. | Model: `v-model`. Props: `rows`, `maxRows`, `autoresize`, `counter`, `size`, `invalid`, `disabled`, `readonly`, `required`. Slot: `trailing`. | `core/textarea.vue` |
155
+ | `FormField` | Label, description, hint, error and required marker around one control. It links ids and ARIA for the control inside. | Props: `label`, `name` (reads error and warning from the surrounding `Form`), `description`, `hint`, `error`, `warning`, `required`, `optional`, `disabled`, `icon`, `help` (an info icon after the label with the text as tooltip, also linked to the control as a description). Slots: default, `label`, `label-actions`, `description`, `hint`. | `core/form-field.vue` |
156
+ | `FieldMessage` | One error, warning or hint line outside a `FormField`. | Props: `message`, `tone` (danger, warning, neutral), `icon`. Slot: default. | `core/field-message.vue` |
157
+ | `FieldBoundary` | Cut the field context for controls inside a `FormField` that are not the main control (a search box above a `Tree`). | Prop: `auxiliary` (keeps own id, follows only `disabled`). Without it the context is fully cut. | `core/form-field.vue` |
158
+ | `Form` | Connects a `useForm` result to a `<form>`. Provides errors to `FormField`, handles submit, reset, focus on first error. | Props: `form` (required), `as` (form or div; use `div` for a form nested in a modal), `focusOnError`, `alerts` (start, end, false), `disabled` (every `FormField` and control inside is disabled; a nested form inherits it unless it sets its own, and a control with an explicit `:disabled="false"` stays enabled), `guard` (`false` keeps this form out of the leave guard; default: the `guard` option of `useForm`). While mounted it registers its dirty state in the nearest leave scope (`Modal`, `Drawer`, `FormDrawer`, `FormModal`, `SettingsModal`, else the page): leaving it dirty asks `confirm.discard()` first. Not while submitting or disabled. Slot: default, `alerts`. Events: `submitted`, `invalid`, `reset`. | `core/form.vue` |
159
+ | `FormAlerts` | Render root errors and warnings as alerts. `Form` already does it. Use it only for a custom placement. | Props: `errors`, `warnings`. | `core/form.vue` |
160
+ | `Kbd` | Show a keyboard key or shortcut. | Props: `value` (for example `mod+k`, shown per platform), `size`. Slot: default. | `core/kbd.vue` |
161
+ | `VisuallyHidden` | Text for screen readers only. | Props: `as`, `focusable`. | `core/visually-hidden.vue` |
162
162
 
163
163
  ## Forms
164
164
 
@@ -204,10 +204,11 @@ Mount `OverlayHost` once for the imperative hooks (see [Composables](#composable
204
204
  | `Toaster` | Renders toasts. `OverlayHost` includes it. Use it directly only for custom options. The stack moves out of the way of an open side Drawer (beside it, or above its footer). | Props: `position`, `max`, `duration`, `gap`, `expand`, `progress`, `hotkey`. | `overlays/toast.vue` |
205
205
  | `DropdownMenu` | Menu opened by its trigger. Items can have icons, shortcuts, checkboxes, radios, sub menus and links. | Model: `v-model:open`. Props: `items` (`label`, `icon`, `color` (palette name or hex dot, or `muted` for a grey dot of an empty state), `to`, `href`, `tone: danger`, `shortcut`, `disabled`, `disabledReason` (with `disabled`: a tooltip on hover and keyboard focus, linked with `aria-describedby`; the item stays reachable but not selectable), `children`, `onSelect`; also `type`: checkbox, radio, label, separator), `placement`, `offset`, `matchTriggerWidth`, `minWidth`. Slot: default (the trigger). Event: `select`. | `overlays/dropdown-menu.vue` |
206
206
  | `ContextMenu` | Menu on right click of the wrapped area. | Model: `v-model:open`. Props: `items` (same as `DropdownMenu`), `disabled`. Slot: default (the area). Event: `select`. | `overlays/context-menu.vue` |
207
- | `Popover` | Floating panel with any content (a form, filters) opened by its trigger. Use `DropdownMenu` for a list of actions. | Model: `v-model:open`. Props: `placement`, `offset`, `arrow`, `label`, `initialFocus`. Slots: default (the trigger), `content`. | `overlays/popover.vue` |
207
+ | `Popover` | Floating panel with any content (a form, filters) opened by its trigger, or next to any element or point with `anchor`. Use `DropdownMenu` for a list of actions. | Model: `v-model:open`. Props: `placement`, `offset`, `arrow`, `label`, `initialFocus`, `anchor` (an element, also inside a same origin iframe, or a virtual `{ getBoundingClientRect() }`; positions against it instead of the trigger, the trigger slot becomes optional). Slots: default (the trigger), `content`. Exposed: `show`, `hide`, `toggle`. | `overlays/popover.vue` |
208
208
  | `HoverCard` | Rich preview on hover or focus (user card, link preview). Use `Tooltip` for plain text. | Model: `v-model:open`. Props: `placement`, `openDelay`, `closeDelay`, `arrow`, `disabled`. Slots: default (trigger), `content`. | `overlays/hover-card.vue` |
209
209
  | `Tooltip` | Short text on hover or focus. Optional shortcut. `Button` already shows one for icon-only buttons, `tooltip` and `disabledReason`. | Props: `text`, `placement`, `openDelay`, `closeDelay`, `arrow`, `shortcut`, `disabled`. Slots: default (trigger), `content`. | `overlays/tooltip.vue` |
210
- | `CommandPalette` | Search and command dialog (Cmd+K) with groups, recent items, async search and typed item data. Groups take `icon` (default item icon) and `more` (a last "show all" item). Matching (`matchesSearch`, exported) finds every word in any order, without case or accents. | Models: `v-model:open`, `v-model:query`. Props: `groups` (items with `id`, `label`, `description`, `icon`, `badge`, `shortcut`, `keywords`, `to`, `data`, `onSelect`), `search(query, signal)`, `shortcut`, `trigger`, `recentKey`, `emptyText`, `notice`. Slots: `item`, `empty`, `group-label`, `after-results`. Events: `select`, `open`, `close`. | `overlays/command-palette.vue` |
210
+ | `CommandPalette` | Search and command dialog (Cmd+K) with groups, recent items, async search and typed item data. Groups take `icon` (default item icon) and `more` (a last "show all" item). Matching (`matchesSearch`, exported) finds every word in any order, without case or accents. | Models: `v-model:open`, `v-model:query`. Props: `groups` (items with `id`, `label`, `description`, `icon`, `badge`, `shortcut`, `keywords`, `to`, `data`, `onSelect`), `search(query, signal)`, `pinned` (items or `(query) => items` shown first, never filtered or saved as recent), `shortcut`, `trigger`, `recentKey`, `emptyText`, `notice`. Slots: `item`, `empty`, `group-label`, `after-results`. Events: `select`, `open`, `close`. | `overlays/command-palette.vue` |
211
+ | `CommandList` | The search field and grouped list of `CommandPalette` without the dialog: place it inline in a panel or in a `Popover` (with `anchor` for a picker opened next to any element). Arrow keys, Enter and the same matching. | Model: `v-model:query`. Props: the `CommandPalette` list props (`groups`, `search`, `pinned`, `filter`, `loading`, `placeholder`, `label`, `recentKey`, `emptyText`, `notice` and the copy props), `autofocus` (default `true`), `footer` (the key hints, default `false`). Slots: `item`, `empty`, `group-label`, `after-results`. Events: `select`, `close` (Escape). Exposed: `focus`, `refresh`. | `overlays/command-palette.vue` |
211
212
  | `CommandButton` | A `Button` made from a `CommandItem`: label, icon, `to`, `href`, `disabled`, `disabledReason` (tooltip on the disabled button) and `onSelect` come from the command. | Props: `command`, `label`, `icon`, `iconOnly` (a square button with the icon only, the label as `aria-label` and tooltip), and every `Button` prop (size, variant, tone). | `overlays/command-palette.vue` |
212
213
 
213
214
  ## Data
@@ -228,7 +229,7 @@ Mount `OverlayHost` once for the imperative hooks (see [Composables](#composable
228
229
  | `RecordList` | Short list of records (settings, users, tokens): title, badge, description, leading and action slots, `SkeletonList` while `loading`, empty state. | Props: `items` (`RecordListItem`: `id`, `title` (truncated, full text on hover), `description`, `badge` `{ label, tone }`), `loading`, `avatar`, `action`, `label`, `skeletonRows`, `emptyText`, `emptyDescription`, `emptyIcon`, `emptyVariant` (card, the default, or plain). Event: `row-click` (`item`, `event`): each row becomes a navigation item (padding, hover and press background like a ghost button, no separators) and its title a button, so Tab reaches every row and Enter or Space opens it (focus ring on the row, the description is the button description). Clicks on buttons, links, inputs, menu items and inside an open menu, popover or dialog of the row are ignored, and pressing them does not tint the row; `rowClickable(item)` keeps some rows static in the same list (no button, no hover). Slots: `leading`, `action` (`{ item }`), `empty`, `empty-actions` (buttons in the default empty state). | `data/record-list.vue` |
229
230
  | `DescriptionList` | Label and value pairs for a record. Use it on detail views. | Props: `items` (`key`, `label`, `value`, `hint`), `layout` (stacked, inline, grid), `columns`, `divided`, `emptyText`. Slots: `term`, `value`, `value-<key>`. | `data/description-list.vue` |
230
231
  | `Timeline` | Vertical list of events or activity. | Props: `items` (`title`, `description`, `time`, `datetime`, `icon`, `tone`), `compact`. Slot: `item`. | `data/timeline.vue` |
231
- | `Tree` | Expandable hierarchy with selection, drag to reorder and nesting. | Models: `v-model:expanded`, `v-model:selected`. Props: `nodes` (`id`, `label`, `description`, `meta`, `icon`, `children`, `disabled`), `selectable`, `reorderable`, `nestable`, `moveButtons` (default `true`; `false` hides the row arrows, drag and Alt+arrow keys still work), `canDrop`, `size`, `checkmark`, `emptyText`, `emptyDescription`, `emptyIcon`, `emptyVariant` (card, the default, or plain). Slots: `label`, `meta`, `empty`, `empty-actions` (buttons in the default empty state). Events: `select`, `move`. | `data/tree.vue` |
232
+ | `Tree` | Expandable hierarchy with selection, drag to reorder and nesting. | Models: `v-model:expanded`, `v-model:selected`. Props: `nodes` (`id`, `label`, `description`, `meta`, `icon`, `children`, `disabled`, `invalid`), `selectable`, `highlighted` (id or ids tinted like hover), `invalidText`, `reorderable`, `nestable`, `moveButtons` (default `true`; `false` hides the row arrows, drag and Alt+arrow keys still work), `canDrop`, `size`, `checkmark`, `emptyText`, `emptyDescription`, `emptyIcon`, `emptyVariant` (card, the default, or plain). Slots: `label`, `meta`, `actions` (row end, on hover, focus and the selected row; `node`, `level`, `selected`, `expanded`, `highlighted`, `hovered`), `empty`, `empty-actions` (buttons in the default empty state). Events: `select`, `move`, `hover` (node or `null`). | `data/tree.vue` |
232
233
 
233
234
  ## Layout
234
235
 
package/README.md CHANGED
@@ -411,7 +411,7 @@ Nested forms. Overlays stay in the DOM, so a `Form` inside a Modal opened from a
411
411
  </KForm>
412
412
  ```
413
413
 
414
- Read only forms. `<KForm :form="form" disabled>` disables every `FormField` and every control inside (also the controls built on `useFieldControl` and the ones outside a `FormField`), as if each had `disabled`. A field is disabled when its own `disabled` is set or the form is disabled. A nested `Form` without `disabled` inherits the state; `:disabled="false"` or `true` on it overrides the parent, for example a modal form that opens from a read only drawer but follows its own permission. `FormDrawer` with `readonly` does the same for its body, also for a `Form` you render yourself in the default slot.
414
+ Read only forms. `<KForm :form="form" disabled>` disables every `FormField` and every control inside (also the controls built on `useFieldControl` and the ones outside a `FormField`), as if each had `disabled`. A field is disabled when its own `disabled` is set or the form is disabled. A nested `Form` without `disabled` inherits the state; `:disabled="false"` or `true` on it overrides the parent, for example a modal form that opens from a read only drawer but follows its own permission. A control works the same way: without `disabled` it inherits the state of its `Form`, `Fieldset` and `FormField`, and an explicit `:disabled="false"` keeps it enabled, for example a locale switch in the `#label-actions` of a field so a read only user can still view the other translations (every control built on `useFieldControl`; in your own control pass `disabled: () => props.disabled` with a prop that defaults to `undefined`). Inside a disabled `Fieldset` the browser still disables every native control except the ones in its legend, so keep such a control outside the fieldset or in its `#legend`. `FormDrawer` with `readonly` does the same for its body, also for a `Form` you render yourself in the default slot.
415
415
 
416
416
  ```vue
417
417
  <KForm :form="form" :disabled="!canWrite">
@@ -465,7 +465,7 @@ async function switchView() {
465
465
  | --------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
466
466
  | core | Root, Icon, Button, Spinner, Input, Textarea, FormField, FieldMessage, FieldBoundary, Form, FormAlerts, Kbd, VisuallyHidden |
467
467
  | forms | Calendar, Checkbox, CheckboxGroup, ColorInput, Combobox, DateInput, DatePicker, FileInput, InputAddon, InputGroup, NumberInput, PaletteSelect, PasswordInput, PinInput, Radio, RadioGroup, SegmentedControl, Select, Slider, Switch, TimeInput, TreeSelect |
468
- | overlays | CommandButton, CommandPalette, ConfirmDialog, ConfirmHost, ContextMenu, Drawer, DropdownMenu, HoverCard, Modal, OverlayHost, Popover, Toaster, Tooltip |
468
+ | overlays | CommandButton, CommandList, CommandPalette, ConfirmDialog, ConfirmHost, ContextMenu, Drawer, DropdownMenu, HoverCard, Modal, OverlayHost, Popover, Toaster, Tooltip |
469
469
  | data | Avatar, AvatarGroup, Badge, DescriptionList, FilterPill, FilterPills, Pagination, RecordList, SelectionBar, Stat, Table, Tag, TagList, Timeline, Tree |
470
470
  | layout | Accordion, AppShell, Breadcrumbs, Card, CopyButton, Grid, NavLink, PageHeader, Separator, Sidebar, SidebarNav, SidebarSection, Stack, Stepper, Tabs, ThemeSwitch, Toolbar |
471
471
  | templates | DashboardLayout, AuthLayout, AuthLogin, AuthLogout, DashboardPage, ListPage, DetailPage, FormPage, SettingsPage, SettingsSection, SettingsModal, SettingsGroup, AppearanceSettings, SaveBar, ErrorPage, NotFoundPage, EmptyPage, Brand, AccountMenu, FormDrawer |
@@ -502,7 +502,7 @@ On your own elements, `paletteClass(color)` gives the class of a palette name an
502
502
 
503
503
  ### Lists, trees and uploads
504
504
 
505
- - `Tree` takes `size="sm"` for dense rows, `checkmark`, `descriptionVariant` (`mono`, the default for paths and slugs, or `text`; a node can override it with its own `descriptionVariant`), `emptyText`, `emptyDescription`, `emptyIcon` and `emptyVariant` (`card`, the default, or `plain`) for the `EmptyState` shown without nodes (`#empty` replaces it, `#empty-actions` adds buttons inside it, like `RecordList`) and works inside a `FormField` (labelled and described by the field). With `reorderable` rows get a drag handle and Alt with the up and down arrows moves them; `nestable` also lets rows change level (drop in the middle of a row, Alt with left and right). Each row also shows move buttons; `moveButtons: false` hides them and keeps drag and the keyboard. The `move` event carries `{ node, target, position, from: { parent, index }, to: { parent, index } }`, `to.index` being the final index, and `applyTreeMove(nodes, move)` returns the updated tree. `canDrop(move)` vetoes a move. Moves are announced to screen readers.
505
+ - `Tree` takes `size="sm"` for dense rows, `checkmark`, `descriptionVariant` (`mono`, the default for paths and slugs, or `text`; a node can override it with its own `descriptionVariant`), `emptyText`, `emptyDescription`, `emptyIcon` and `emptyVariant` (`card`, the default, or `plain`) for the `EmptyState` shown without nodes (`#empty` replaces it, `#empty-actions` adds buttons inside it, like `RecordList`) and works inside a `FormField` (labelled and described by the field). With `reorderable` rows get a drag handle and Alt with the up and down arrows moves them; `nestable` also lets rows change level (drop in the middle of a row, Alt with left and right). Each row also shows move buttons; `moveButtons: false` hides them and keeps drag and the keyboard. The `move` event carries `{ node, target, position, from: { parent, index }, to: { parent, index } }`, `to.index` being the final index, and `applyTreeMove(nodes, move)` returns the updated tree. `canDrop(move)` vetoes a move. Moves are announced to screen readers. The `#actions` slot (`node`, `level`, `selected`, `expanded`, `highlighted`, `hovered`) renders row actions at the end of the row, over the label, on the hovered, focused and selected rows only; Tab from the focused row reaches them, and focus returns to a row when the focused one is removed. `highlighted` (an id or an array of ids) tints rows like hover, for a link with something outside the tree (a block hovered in a preview). The `hover` event carries the node under the pointer, then `null` when the pointer leaves the tree. A node with `invalid: true` shows a danger dot and a tinted label, and its row is described by a hidden "Contains errors" (`invalidText` overrides it).
506
506
  - `Select` takes string, number or boolean option values (`{ value: true, label: 'Yes' }`); the model gets the option value back with its type and is typed `T | null | undefined`, so `v-model` works on a narrow ref (`Ref<'a' | 'b' | null>`). An option whose value is `''` is a real option: it is selected and shown with its own label, distinct from the placeholder, which still maps to `null`.
507
507
  - `Input` and `Textarea` take `counter`: with a `maxlength` attribute they show `length / maxlength` inside the field, describe the control with "12 of 40 characters" (`form.characterCount`) and announce "Character limit reached" when it is hit.
508
508
  - Numbers are left aligned in every field. `Input` `numeric` sets the decimal keyboard, the number model and tabular digits; `NumberInput` takes `align="end"` to right align its value when a layout needs it (default `start`).
@@ -712,7 +712,36 @@ const archived = useRouteState('archived', {
712
712
  - Pages that set `definePageMeta({ key: (route) => route.fullPath })` remount on every query change; keep the default page key for pages with deep links.
713
713
  - To leave the page from inside an overlay, navigate (a link or `router.push`): the new route has no parameter, so the overlay closes. Do not set the ref to `undefined` and navigate in the same tick: the later navigation cancels the earlier one.
714
714
 
715
- `CommandPalette`: an item takes a `badge` (a label, or `{ label, tone, color }`), shown before its shortcut. Recent items do not keep the badge, because it can change. Items take typed `data` (`CommandItem<T>`, `CommandGroup<T>`), which reaches the `#item` slot and the `select` event typed; `emptyText` also takes `(query) => string`. Groups take a `description` (shown after the label), the `#group-label` slot (`{ group, label, description, recent }`) replaces the label, and `notice` or the `#after-results` slot (`{ query, count }`) adds a line under the results, for example "Showing the first results".
715
+ `Popover`: `anchor` places the panel against any element or a virtual reference (`OverlayVirtualAnchor`, an object with `getBoundingClientRect()`, for a pointer position or a text selection) instead of its trigger, and the trigger slot becomes optional: open it with `v-model:open` or the exposed `show()`. An element inside a same origin iframe works too: the panel is placed in the page against it, and a click or Escape inside the iframe closes it. The position follows scroll and resize. Focus moves into the panel on open and returns to the anchor when it can take focus, otherwise to the element focused before; a click outside and Escape close it. Without a trigger, name the panel with `label`.
716
+
717
+ ```vue
718
+ <script setup lang="ts">
719
+ const open = ref(false)
720
+ const anchor = shallowRef<HTMLElement | null>(null)
721
+
722
+ function openAt(event: MouseEvent) {
723
+ anchor.value = event.currentTarget as HTMLElement
724
+ open.value = true
725
+ }
726
+ </script>
727
+
728
+ <KButton icon="plus" aria-label="Add block" @click="openAt" />
729
+ <KPopover v-model:open="open" :anchor="anchor" placement="right-start" label="Add block">
730
+ <template #content="{ close }">...</template>
731
+ </KPopover>
732
+ ```
733
+
734
+ `CommandPalette`: an item takes a `badge` (a label, or `{ label, tone, color }`), shown before its shortcut. Recent items do not keep the badge, because it can change. Items take typed `data` (`CommandItem<T>`, `CommandGroup<T>`), which reaches the `#item` slot and the `select` event typed; `emptyText` also takes `(query) => string`. Groups take a `description` (shown after the label), the `#group-label` slot (`{ group, label, description, recent }`) replaces the label, and `notice` or the `#after-results` slot (`{ query, count }`) adds a line under the results, for example "Showing the first results". `pinned` (items, or `(query) => CommandItem[]`) adds items at the top that are never filtered and never saved as recent, like "Paste block" or "Create {query}"; the empty text still shows under them when nothing else matches.
735
+
736
+ `CommandList` is the palette content without the dialog: the search field (focused on mount unless `:autofocus="false"`), the grouped and filtered list, arrow keys and Enter, the empty state and the same props, slots and `v-model:query`. Escape emits `close` and is not stopped, so a surrounding `Popover` closes too. `footer` shows the key hints. Put it in a side panel, or in a `Popover` with `anchor` for a picker opened next to any element:
737
+
738
+ ```vue
739
+ <KPopover v-model:open="open" :anchor="anchor" label="Add block">
740
+ <template #content>
741
+ <KCommandList :groups="blocks" :pinned="pinned" @select="add" @close="open = false" />
742
+ </template>
743
+ </KPopover>
744
+ ```
716
745
 
717
746
  - `Brand`: `logo` takes an image URL, trusted inline SVG markup (`'<svg ...>'`) or a component; the `#logo` slot replaces the boxed mark; `show-name` keeps the name visible next to a logo.
718
747
  - `Card`: `selected` gives a pressed look (`aria-pressed` on `as="button"`, `aria-selected` with `role="option"` and similar roles); `:animated="false"` turns off the entrance animation.
@@ -92,7 +92,7 @@ const props = defineProps({
92
92
  clearLabel: { type: String, required: false },
93
93
  numeric: { type: Boolean, required: false },
94
94
  invalid: { type: Boolean, required: false, default: void 0 },
95
- disabled: { type: Boolean, required: false },
95
+ disabled: { type: Boolean, required: false, default: void 0 },
96
96
  readonly: { type: Boolean, required: false },
97
97
  required: { type: Boolean, required: false },
98
98
  noAutofill: { type: Boolean, required: false },
@@ -495,6 +495,7 @@ declare const __VLS_base: import("vue").DefineComponent<{
495
495
  }>, {
496
496
  size: FieldSize;
497
497
  invalid: boolean;
498
+ disabled: boolean;
498
499
  type: string;
499
500
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
500
501
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -75,7 +75,7 @@ const props = defineProps({
75
75
  autoresize: { type: Boolean, required: false },
76
76
  numeric: { type: Boolean, required: false },
77
77
  invalid: { type: Boolean, required: false, default: void 0 },
78
- disabled: { type: Boolean, required: false },
78
+ disabled: { type: Boolean, required: false, default: void 0 },
79
79
  readonly: { type: Boolean, required: false },
80
80
  required: { type: Boolean, required: false },
81
81
  noAutofill: { type: Boolean, required: false },
@@ -443,6 +443,7 @@ declare const __VLS_base: import("vue").DefineComponent<{
443
443
  }>, {
444
444
  size: FieldSize;
445
445
  invalid: boolean;
446
+ disabled: boolean;
446
447
  rows: number;
447
448
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
448
449
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -14,6 +14,9 @@
14
14
  role="tree"
15
15
  :class="rootClass"
16
16
  data-k-shake
17
+ @pointerleave="onTreeLeave"
18
+ @focusin="hasFocus = true"
19
+ @focusout="onFocusOut"
17
20
  >
18
21
  <li
19
22
  v-for="(entry, index) in visible"
@@ -31,7 +34,11 @@
31
34
  :aria-describedby="describedBy(entry)"
32
35
  :aria-keyshortcuts="canReorder && !entry.node.disabled ? keyShortcuts : void 0"
33
36
  :tabindex="entry.node.id === rovingId ? 0 : -1"
34
- :class="{ 'is-moving': dragId === entry.node.id }"
37
+ :class="{
38
+ 'is-moving': dragId === entry.node.id,
39
+ 'is-highlighted': highlightedSet.has(entry.node.id),
40
+ 'is-invalid': entry.node.invalid
41
+ }"
35
42
  :data-drop="dropState?.id === entry.node.id ? dropState.position : void 0"
36
43
  :style="{
37
44
  '--k-tree-level': entry.level - 1,
@@ -40,6 +47,7 @@
40
47
  @click="activate(entry)"
41
48
  @keydown="onKeydown($event, entry, index)"
42
49
  @focus="focusId = entry.node.id"
50
+ @pointerenter="onRowEnter(entry)"
43
51
  @dragover="onDragOver($event, entry)"
44
52
  @dragleave="onDragLeave($event, entry)"
45
53
  @drop="onDrop($event, entry)"
@@ -81,6 +89,7 @@
81
89
  >
82
90
  </slot>
83
91
  </span>
92
+ <span v-if="entry.node.invalid" class="k-tree-invalid" aria-hidden="true" />
84
93
  <span
85
94
  v-if="entry.node.meta || $slots.meta"
86
95
  :id="metaId(entry.node.id)"
@@ -92,22 +101,36 @@
92
101
  <Icon v-if="selected === entry.node.id" name="check" />
93
102
  </span>
94
103
  <span
95
- v-if="canReorder && moveButtons && !entry.node.disabled"
104
+ v-if="hasMoveButtons(entry) || $slots.actions"
96
105
  class="k-tree-actions"
106
+ :class="{ 'has-slot': $slots.actions }"
107
+ :inert="actionsInert(entry) || void 0"
97
108
  @click.stop
109
+ @focusin="focusId = entry.node.id"
98
110
  >
99
- <Button
100
- v-for="action in rowActions(entry)"
101
- :key="action.direction"
102
- variant="ghost"
103
- tone="neutral"
104
- size="xs"
105
- tabindex="-1"
106
- :icon="action.icon"
107
- :aria-label="action.label"
108
- :title="action.label"
109
- :disabled="!action.move"
110
- @click="action.move && commit(action.move)"
111
+ <template v-if="hasMoveButtons(entry)">
112
+ <Button
113
+ v-for="action in rowActions(entry)"
114
+ :key="action.direction"
115
+ variant="ghost"
116
+ tone="neutral"
117
+ size="xs"
118
+ tabindex="-1"
119
+ :icon="action.icon"
120
+ :aria-label="action.label"
121
+ :title="action.label"
122
+ :disabled="!action.move"
123
+ @click="action.move && commit(action.move)"
124
+ />
125
+ </template>
126
+ <slot
127
+ name="actions"
128
+ :node="entry.node"
129
+ :level="entry.level"
130
+ :selected="selectable && selected === entry.node.id"
131
+ :expanded="entry.hasChildren && isExpanded(entry.node.id)"
132
+ :highlighted="highlightedSet.has(entry.node.id)"
133
+ :hovered="hoverId === entry.node.id"
111
134
  />
112
135
  </span>
113
136
  </li>
@@ -135,6 +158,7 @@
135
158
  </EmptyState>
136
159
  </slot>
137
160
  </div>
161
+ <span v-if="hasInvalid" :id="invalidId" class="k-visually-hidden">{{ invalidLabel }}</span>
138
162
  <template v-if="canReorder">
139
163
  <span :id="hintId" class="k-visually-hidden">{{ hintText }}</span>
140
164
  <LiveRegion :message="live.message.value" />
@@ -142,11 +166,12 @@
142
166
  </template>
143
167
 
144
168
  <script setup>
145
- import { computed, nextTick, ref, useId, useSlots, useTemplateRef } from "vue";
169
+ import { computed, nextTick, ref, useId, useSlots, useTemplateRef, watch } from "vue";
146
170
  import { useFieldControl } from "../../composables/useField";
147
171
  import { useLocale } from "../../composables/useLocale";
148
172
  import LiveRegion from "../../internal/core/LiveRegion.vue";
149
173
  import { useLiveMessage } from "../../internal/core/live";
174
+ import { hasFocusWithin, isFocusLost } from "../../internal/core/focus";
150
175
  import { useTypeahead } from "../../internal/core/roving";
151
176
  import { joinIds } from "../../internal/forms/control";
152
177
  import Button from "../core/Button.vue";
@@ -171,13 +196,15 @@ const props = defineProps({
171
196
  moveButtons: { type: Boolean, required: false, default: true },
172
197
  canDrop: { type: Function, required: false },
173
198
  reorderText: { type: String, required: false },
199
+ highlighted: { type: [String, Number, Array, null], required: false },
200
+ invalidText: { type: String, required: false },
174
201
  invalid: { type: Boolean, required: false, default: void 0 },
175
- disabled: { type: Boolean, required: false },
202
+ disabled: { type: Boolean, required: false, default: void 0 },
176
203
  required: { type: Boolean, required: false }
177
204
  });
178
205
  const { t } = useLocale();
179
206
  const slots = useSlots();
180
- const emit = defineEmits(["select", "move"]);
207
+ const emit = defineEmits(["select", "move", "hover"]);
181
208
  const expanded = defineModel("expanded", { type: Array, ...{ default: () => [] } });
182
209
  const selected = defineModel("selected", { type: [String, Number, null], ...{ default: null } });
183
210
  const control = useFieldControl({
@@ -188,12 +215,15 @@ const control = useFieldControl({
188
215
  });
189
216
  const baseId = useId();
190
217
  const hintId = `${baseId}-hint`;
218
+ const invalidId = `${baseId}-invalid`;
191
219
  const tree = useTemplateRef("tree");
192
220
  const focusId = ref(selected.value ?? props.nodes[0]?.id ?? null);
193
221
  const revealAnchor = ref(-1);
194
222
  const dragId = ref(null);
195
223
  const dropState = ref(null);
196
224
  const live = useLiveMessage();
225
+ const hoverId = ref(null);
226
+ const hasFocus = ref(false);
197
227
  const ariaLabel = computed(() => {
198
228
  if (props.label) return props.label;
199
229
  return control.labelledBy.value ? void 0 : t("tree.label");
@@ -208,6 +238,12 @@ const keyShortcuts = computed(
208
238
  () => props.nestable ? "Alt+ArrowUp Alt+ArrowDown Alt+ArrowLeft Alt+ArrowRight" : "Alt+ArrowUp Alt+ArrowDown"
209
239
  );
210
240
  const expandedSet = computed(() => new Set(expanded.value));
241
+ const highlightedSet = computed(() => {
242
+ const value = props.highlighted;
243
+ if (value === null || value === void 0) return /* @__PURE__ */ new Set();
244
+ return new Set(Array.isArray(value) ? value : [value]);
245
+ });
246
+ const invalidLabel = computed(() => props.invalidText ?? t("tree.invalidNode"));
211
247
  function rowId(id) {
212
248
  return `${baseId}-node-${id}`;
213
249
  }
@@ -236,6 +272,7 @@ const rootClass = computed(() => [
236
272
  function describedBy(entry) {
237
273
  const hasMeta = Boolean(entry.node.meta || slots.meta);
238
274
  return joinIds(
275
+ entry.node.invalid ? invalidId : void 0,
239
276
  !slots.label && entry.node.description ? descriptionId(entry.node.id) : void 0,
240
277
  hasMeta ? metaId(entry.node.id) : void 0,
241
278
  canReorder.value && !entry.node.disabled ? hintId : void 0
@@ -279,6 +316,39 @@ const rovingId = computed(() => {
279
316
  if (list.some((entry) => entry.node.id === focusId.value)) return focusId.value;
280
317
  return list.find((entry) => entry.node.id === selected.value)?.node.id ?? list[0]?.node.id;
281
318
  });
319
+ const hasInvalid = computed(() => visible.value.some((entry) => entry.node.invalid));
320
+ function hasMoveButtons(entry) {
321
+ return canReorder.value && props.moveButtons && !entry.node.disabled;
322
+ }
323
+ function actionsInert(entry) {
324
+ const id = entry.node.id;
325
+ return hoverId.value !== id && !(hasFocus.value && rovingId.value === id);
326
+ }
327
+ function setHover(node) {
328
+ const id = node?.id ?? null;
329
+ if (hoverId.value === id) return;
330
+ hoverId.value = id;
331
+ emit("hover", node);
332
+ }
333
+ function onRowEnter(entry) {
334
+ setHover(entry.node);
335
+ }
336
+ function onTreeLeave() {
337
+ setHover(null);
338
+ }
339
+ function onFocusOut(event) {
340
+ const next = event.relatedTarget;
341
+ if (next instanceof Node && event.currentTarget.contains(next)) return;
342
+ hasFocus.value = false;
343
+ }
344
+ watch(visible, (list) => {
345
+ if (hoverId.value !== null && !list.some((entry) => entry.node.id === hoverId.value))
346
+ setHover(null);
347
+ if (!hasFocusWithin(tree.value)) return;
348
+ nextTick(() => {
349
+ if (isFocusLost()) focusNode(rovingId.value);
350
+ });
351
+ });
282
352
  function setExpanded(entry, position, open) {
283
353
  if (!entry.hasChildren || isExpanded(entry.node.id) === open) return;
284
354
  revealAnchor.value = position;
@@ -5,15 +5,24 @@ declare var __VLS_12: {
5
5
  level: number;
6
6
  }, __VLS_14: {
7
7
  node: TreeNode;
8
- }, __VLS_29: {}, __VLS_38: {};
8
+ }, __VLS_29: {
9
+ node: TreeNode;
10
+ level: number;
11
+ selected: boolean;
12
+ expanded: boolean;
13
+ highlighted: boolean;
14
+ hovered: boolean;
15
+ }, __VLS_31: {}, __VLS_40: {};
9
16
  type __VLS_Slots = {} & {
10
17
  label?: (props: typeof __VLS_12) => any;
11
18
  } & {
12
19
  meta?: (props: typeof __VLS_14) => any;
13
20
  } & {
14
- empty?: (props: typeof __VLS_29) => any;
21
+ actions?: (props: typeof __VLS_29) => any;
22
+ } & {
23
+ empty?: (props: typeof __VLS_31) => any;
15
24
  } & {
16
- 'empty-actions'?: (props: typeof __VLS_38) => any;
25
+ 'empty-actions'?: (props: typeof __VLS_40) => any;
17
26
  };
18
27
  declare const __VLS_base: import("vue").DefineComponent<{
19
28
  nodes: TreeNode[];
@@ -32,6 +41,8 @@ declare const __VLS_base: import("vue").DefineComponent<{
32
41
  moveButtons?: boolean;
33
42
  canDrop?: (move: TreeMove) => boolean;
34
43
  reorderText?: string;
44
+ highlighted?: TreeNodeId | TreeNodeId[] | null;
45
+ invalidText?: string;
35
46
  invalid?: boolean;
36
47
  disabled?: boolean;
37
48
  required?: boolean;
@@ -232,6 +243,7 @@ declare const __VLS_base: import("vue").DefineComponent<{
232
243
  move: (move: TreeMove) => any;
233
244
  select: (node: TreeNode) => any;
234
245
  "update:selected": (value: TreeNodeId | null) => any;
246
+ hover: (node: TreeNode | null) => any;
235
247
  "update:expanded": (value: TreeNodeId[]) => any;
236
248
  }, string, import("vue").PublicProps, Readonly<{
237
249
  nodes: TreeNode[];
@@ -250,6 +262,8 @@ declare const __VLS_base: import("vue").DefineComponent<{
250
262
  moveButtons?: boolean;
251
263
  canDrop?: (move: TreeMove) => boolean;
252
264
  reorderText?: string;
265
+ highlighted?: TreeNodeId | TreeNodeId[] | null;
266
+ invalidText?: string;
253
267
  invalid?: boolean;
254
268
  disabled?: boolean;
255
269
  required?: boolean;
@@ -450,10 +464,12 @@ declare const __VLS_base: import("vue").DefineComponent<{
450
464
  onMove?: ((move: TreeMove) => any) | undefined;
451
465
  onSelect?: ((node: TreeNode) => any) | undefined;
452
466
  "onUpdate:selected"?: ((value: TreeNodeId | null) => any) | undefined;
467
+ onHover?: ((node: TreeNode | null) => any) | undefined;
453
468
  "onUpdate:expanded"?: ((value: TreeNodeId[]) => any) | undefined;
454
469
  }>, {
455
470
  size: TreeSize;
456
471
  invalid: boolean;
472
+ disabled: boolean;
457
473
  selectable: boolean;
458
474
  bordered: boolean;
459
475
  moveButtons: boolean;
@@ -64,6 +64,7 @@ export interface TreeNode {
64
64
  meta?: string;
65
65
  icon?: string;
66
66
  disabled?: boolean;
67
+ invalid?: boolean;
67
68
  children?: TreeNode[];
68
69
  }
69
70
  export type TreeDescriptionVariant = 'text' | 'mono';
@@ -68,7 +68,7 @@ const props = defineProps({
68
68
  indeterminate: { type: Boolean, required: false },
69
69
  size: { type: String, required: false },
70
70
  invalid: { type: Boolean, required: false, default: void 0 },
71
- disabled: { type: Boolean, required: false },
71
+ disabled: { type: Boolean, required: false, default: void 0 },
72
72
  readonly: { type: Boolean, required: false },
73
73
  required: { type: Boolean, required: false },
74
74
  class: { type: null, required: false },
@@ -54,7 +54,7 @@ const props = defineProps({
54
54
  size: { type: String, required: false, default: "md" },
55
55
  name: { type: String, required: false },
56
56
  invalid: { type: Boolean, required: false, default: void 0 },
57
- disabled: { type: Boolean, required: false },
57
+ disabled: { type: Boolean, required: false, default: void 0 },
58
58
  readonly: { type: Boolean, required: false },
59
59
  required: { type: Boolean, required: false }
60
60
  });
@@ -94,7 +94,7 @@ const props = defineProps({
94
94
  swatchesLabel: { type: String, required: false },
95
95
  invalidText: { type: String, required: false },
96
96
  invalid: { type: Boolean, required: false, default: void 0 },
97
- disabled: { type: Boolean, required: false },
97
+ disabled: { type: Boolean, required: false, default: void 0 },
98
98
  readonly: { type: Boolean, required: false },
99
99
  required: { type: Boolean, required: false },
100
100
  class: { type: null, required: false },
@@ -480,6 +480,7 @@ declare const __VLS_export: import("vue").DefineComponent<{
480
480
  invalid: boolean;
481
481
  swatches: ColorSwatch[];
482
482
  placeholder: string;
483
+ disabled: boolean;
483
484
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
484
485
  declare const _default: typeof __VLS_export;
485
486
  export default _default;
@@ -315,7 +315,7 @@ const props = defineProps({
315
315
  createText: { type: Function, required: false },
316
316
  resultsText: { type: Function, required: false },
317
317
  invalid: { type: Boolean, required: false, default: void 0 },
318
- disabled: { type: Boolean, required: false },
318
+ disabled: { type: Boolean, required: false, default: void 0 },
319
319
  readonly: { type: Boolean, required: false },
320
320
  required: { type: Boolean, required: false },
321
321
  class: { type: null, required: false },
@@ -26,7 +26,7 @@ defineProps({
26
26
  step: { type: [Number, String], required: false },
27
27
  clearable: { type: Boolean, required: false },
28
28
  invalid: { type: Boolean, required: false, default: void 0 },
29
- disabled: { type: Boolean, required: false },
29
+ disabled: { type: Boolean, required: false, default: void 0 },
30
30
  readonly: { type: Boolean, required: false },
31
31
  required: { type: Boolean, required: false }
32
32
  });