@xleddyl/443-components-vue 0.16.89 → 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 (60) hide show
  1. package/CATALOG.md +19 -18
  2. package/README.md +32 -3
  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 +1 -1
  8. package/dist/components/data/Tree.vue.d.ts +1 -0
  9. package/dist/components/forms/Checkbox.vue +1 -1
  10. package/dist/components/forms/CheckboxGroup.vue +1 -1
  11. package/dist/components/forms/ColorInput.vue +1 -1
  12. package/dist/components/forms/ColorInput.vue.d.ts +1 -0
  13. package/dist/components/forms/Combobox.vue +1 -1
  14. package/dist/components/forms/DateInput.vue +1 -1
  15. package/dist/components/forms/DateInput.vue.d.ts +1 -0
  16. package/dist/components/forms/DatePicker.vue +1 -1
  17. package/dist/components/forms/DatePicker.vue.d.ts +1 -0
  18. package/dist/components/forms/FileInput.vue +1 -1
  19. package/dist/components/forms/FileInput.vue.d.ts +1 -0
  20. package/dist/components/forms/NumberInput.vue +1 -1
  21. package/dist/components/forms/NumberInput.vue.d.ts +1 -0
  22. package/dist/components/forms/PaletteSelect.vue +1 -1
  23. package/dist/components/forms/PaletteSelect.vue.d.ts +1 -0
  24. package/dist/components/forms/PasswordInput.vue +1 -1
  25. package/dist/components/forms/PasswordInput.vue.d.ts +1 -0
  26. package/dist/components/forms/PinInput.vue +1 -1
  27. package/dist/components/forms/PinInput.vue.d.ts +1 -0
  28. package/dist/components/forms/RadioGroup.vue +1 -1
  29. package/dist/components/forms/SegmentedControl.vue +1 -1
  30. package/dist/components/forms/Select.vue +1 -1
  31. package/dist/components/forms/Slider.vue +1 -1
  32. package/dist/components/forms/Slider.vue.d.ts +1 -0
  33. package/dist/components/forms/Switch.vue +1 -1
  34. package/dist/components/forms/Switch.vue.d.ts +1 -0
  35. package/dist/components/forms/TimeInput.vue +1 -1
  36. package/dist/components/forms/TimeInput.vue.d.ts +1 -0
  37. package/dist/components/forms/TreeSelect.vue +1 -1
  38. package/dist/components/forms/TreeSelect.vue.d.ts +1 -0
  39. package/dist/components/overlays/CommandList.vue +397 -0
  40. package/dist/components/overlays/CommandList.vue.d.ts +255 -0
  41. package/dist/components/overlays/CommandPalette.vue +48 -315
  42. package/dist/components/overlays/CommandPalette.vue.d.ts +2 -1
  43. package/dist/components/overlays/Popover.vue +24 -5
  44. package/dist/components/overlays/Popover.vue.d.ts +4 -1
  45. package/dist/components/overlays/index.d.ts +1 -0
  46. package/dist/components/overlays/index.mjs +1 -0
  47. package/dist/components/overlays/types.d.ts +1 -0
  48. package/dist/composables/useField.mjs +1 -1
  49. package/dist/editor/RichTextEditor.vue +1 -1
  50. package/dist/editor/RichTextEditor.vue.d.ts +1 -0
  51. package/dist/editor/TemplateEditor.vue +1 -1
  52. package/dist/editor/TemplateEditor.vue.d.ts +1 -0
  53. package/dist/internal/core/DivElement.d.ts +2 -0
  54. package/dist/internal/core/DivElement.mjs +8 -0
  55. package/dist/internal/floating/layer.d.ts +1 -0
  56. package/dist/internal/floating/layer.mjs +56 -7
  57. package/dist/internal/floating/position.d.ts +2 -0
  58. package/dist/internal/floating/position.mjs +25 -0
  59. package/dist/styles/overlays/command.css +22 -0
  60. 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
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 |
@@ -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>;
@@ -199,7 +199,7 @@ const props = defineProps({
199
199
  highlighted: { type: [String, Number, Array, null], required: false },
200
200
  invalidText: { type: String, required: false },
201
201
  invalid: { type: Boolean, required: false, default: void 0 },
202
- disabled: { type: Boolean, required: false },
202
+ disabled: { type: Boolean, required: false, default: void 0 },
203
203
  required: { type: Boolean, required: false }
204
204
  });
205
205
  const { t } = useLocale();
@@ -469,6 +469,7 @@ declare const __VLS_base: import("vue").DefineComponent<{
469
469
  }>, {
470
470
  size: TreeSize;
471
471
  invalid: boolean;
472
+ disabled: boolean;
472
473
  selectable: boolean;
473
474
  bordered: boolean;
474
475
  moveButtons: boolean;
@@ -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
  });
@@ -496,6 +496,7 @@ declare const __VLS_export: import("vue").DefineComponent<{
496
496
  }>, {
497
497
  size: FieldSize;
498
498
  invalid: boolean;
499
+ disabled: boolean;
499
500
  type: "month" | "week" | "date" | "datetime-local";
500
501
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
501
502
  declare const _default: typeof __VLS_export;
@@ -117,7 +117,7 @@ const props = defineProps({
117
117
  closeOnSelect: { type: Boolean, required: false, default: true },
118
118
  level: { type: Number, required: false },
119
119
  invalid: { type: Boolean, required: false, default: void 0 },
120
- disabled: { type: Boolean, required: false },
120
+ disabled: { type: Boolean, required: false, default: void 0 },
121
121
  readonly: { type: Boolean, required: false },
122
122
  required: { type: Boolean, required: false },
123
123
  class: { type: null, required: false },
@@ -464,6 +464,7 @@ declare const __VLS_base: import("vue").DefineComponent<{
464
464
  }>, {
465
465
  size: FieldSize;
466
466
  invalid: boolean;
467
+ disabled: boolean;
467
468
  format: Intl.DateTimeFormatOptions;
468
469
  closeOnSelect: boolean;
469
470
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -180,7 +180,7 @@ const props = defineProps({
180
180
  locale: { type: String, required: false },
181
181
  announce: { type: Function, required: false },
182
182
  invalid: { type: Boolean, required: false, default: void 0 },
183
- disabled: { type: Boolean, required: false },
183
+ disabled: { type: Boolean, required: false, default: void 0 },
184
184
  readonly: { type: Boolean, required: false },
185
185
  required: { type: Boolean, required: false },
186
186
  class: { type: null, required: false },
@@ -502,6 +502,7 @@ declare const __VLS_base: import("vue").DefineComponent<{
502
502
  size: FieldSize;
503
503
  invalid: boolean;
504
504
  list: boolean;
505
+ disabled: boolean;
505
506
  acceptMode: FileInputAcceptMode;
506
507
  previews: boolean;
507
508
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -101,7 +101,7 @@ const props = defineProps({
101
101
  incrementLabel: { type: String, required: false },
102
102
  decrementLabel: { type: String, required: false },
103
103
  invalid: { type: Boolean, required: false, default: void 0 },
104
- disabled: { type: Boolean, required: false },
104
+ disabled: { type: Boolean, required: false, default: void 0 },
105
105
  readonly: { type: Boolean, required: false },
106
106
  required: { type: Boolean, required: false },
107
107
  class: { type: null, required: false },
@@ -492,6 +492,7 @@ declare const __VLS_export: import("vue").DefineComponent<{
492
492
  stepper: boolean;
493
493
  invalid: boolean;
494
494
  align: "start" | "end";
495
+ disabled: boolean;
495
496
  step: number;
496
497
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
497
498
  declare const _default: typeof __VLS_export;
@@ -40,7 +40,7 @@ const props = defineProps({
40
40
  placeholder: { type: String, required: false },
41
41
  customLabel: { type: String, required: false },
42
42
  size: { type: String, required: false, default: "md" },
43
- disabled: { type: Boolean, required: false },
43
+ disabled: { type: Boolean, required: false, default: void 0 },
44
44
  readonly: { type: Boolean, required: false },
45
45
  invalid: { type: Boolean, required: false, default: void 0 },
46
46
  class: { type: null, required: false },
@@ -545,6 +545,7 @@ declare const __VLS_export: import("vue").DefineComponent<{
545
545
  }>, {
546
546
  size: FieldSize;
547
547
  invalid: boolean;
548
+ disabled: boolean;
548
549
  colors: readonly PaletteColor[];
549
550
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
550
551
  declare const _default: typeof __VLS_export;
@@ -108,7 +108,7 @@ const props = defineProps({
108
108
  copiedLabel: { type: String, required: false },
109
109
  strengthLabel: { type: String, required: false },
110
110
  invalid: { type: Boolean, required: false, default: void 0 },
111
- disabled: { type: Boolean, required: false },
111
+ disabled: { type: Boolean, required: false, default: void 0 },
112
112
  readonly: { type: Boolean, required: false },
113
113
  required: { type: Boolean, required: false },
114
114
  class: { type: null, required: false },
@@ -524,6 +524,7 @@ declare const __VLS_export: import("vue").DefineComponent<{
524
524
  size: FieldSize;
525
525
  minLength: number;
526
526
  invalid: boolean;
527
+ disabled: boolean;
527
528
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
528
529
  declare const _default: typeof __VLS_export;
529
530
  export default _default;
@@ -89,7 +89,7 @@ const props = defineProps({
89
89
  noAutofill: { type: Boolean, required: false },
90
90
  size: { type: String, required: false, default: "md" },
91
91
  invalid: { type: Boolean, required: false, default: void 0 },
92
- disabled: { type: Boolean, required: false },
92
+ disabled: { type: Boolean, required: false, default: void 0 },
93
93
  readonly: { type: Boolean, required: false },
94
94
  required: { type: Boolean, required: false },
95
95
  class: { type: null, required: false },
@@ -490,6 +490,7 @@ declare const __VLS_export: import("vue").DefineComponent<{
490
490
  length: number;
491
491
  size: FieldSize;
492
492
  invalid: boolean;
493
+ disabled: boolean;
493
494
  mode: PinInputMode;
494
495
  autocomplete: string;
495
496
  maskChar: string;
@@ -53,7 +53,7 @@ const props = defineProps({
53
53
  size: { type: String, required: false, default: "md" },
54
54
  name: { type: String, required: false },
55
55
  invalid: { type: Boolean, required: false, default: void 0 },
56
- disabled: { type: Boolean, required: false },
56
+ disabled: { type: Boolean, required: false, default: void 0 },
57
57
  readonly: { type: Boolean, required: false },
58
58
  required: { type: Boolean, required: false }
59
59
  });
@@ -81,7 +81,7 @@ const props = defineProps({
81
81
  block: { type: Boolean, required: false },
82
82
  iconOnly: { type: Boolean, required: false },
83
83
  invalid: { type: Boolean, required: false, default: void 0 },
84
- disabled: { type: Boolean, required: false },
84
+ disabled: { type: Boolean, required: false, default: void 0 },
85
85
  readonly: { type: Boolean, required: false },
86
86
  required: { type: null, required: false }
87
87
  });
@@ -79,7 +79,7 @@ const props = defineProps({
79
79
  size: { type: String, required: false, default: "md" },
80
80
  icon: { type: null, required: false },
81
81
  invalid: { type: Boolean, required: false, default: void 0 },
82
- disabled: { type: Boolean, required: false },
82
+ disabled: { type: Boolean, required: false, default: void 0 },
83
83
  required: { type: Boolean, required: false },
84
84
  class: { type: null, required: false },
85
85
  style: { type: null, required: false }
@@ -69,7 +69,7 @@ const props = defineProps({
69
69
  format: { type: Function, required: false, default: (value) => String(value) },
70
70
  size: { type: String, required: false, default: "md" },
71
71
  invalid: { type: Boolean, required: false, default: void 0 },
72
- disabled: { type: Boolean, required: false },
72
+ disabled: { type: Boolean, required: false, default: void 0 },
73
73
  readonly: { type: Boolean, required: false },
74
74
  class: { type: null, required: false },
75
75
  style: { type: null, required: false }
@@ -480,6 +480,7 @@ declare const __VLS_export: import("vue").DefineComponent<{
480
480
  min: number;
481
481
  max: number;
482
482
  invalid: boolean;
483
+ disabled: boolean;
483
484
  format: (value: number) => string;
484
485
  step: number;
485
486
  bubble: SliderBubble;
@@ -70,7 +70,7 @@ const props = defineProps({
70
70
  uncheckedIcon: { type: null, required: false },
71
71
  nativeValue: { type: String, required: false, default: "on" },
72
72
  invalid: { type: Boolean, required: false, default: void 0 },
73
- disabled: { type: Boolean, required: false },
73
+ disabled: { type: Boolean, required: false, default: void 0 },
74
74
  readonly: { type: Boolean, required: false },
75
75
  required: { type: Boolean, required: false },
76
76
  class: { type: null, required: false },
@@ -450,6 +450,7 @@ declare const __VLS_base: import("vue").DefineComponent<{
450
450
  }>, {
451
451
  size: FieldSize;
452
452
  invalid: boolean;
453
+ disabled: boolean;
453
454
  labelPosition: "start" | "end";
454
455
  nativeValue: string;
455
456
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -27,7 +27,7 @@ const props = defineProps({
27
27
  seconds: { type: Boolean, required: false },
28
28
  clearable: { type: Boolean, required: false },
29
29
  invalid: { type: Boolean, required: false, default: void 0 },
30
- disabled: { type: Boolean, required: false },
30
+ disabled: { type: Boolean, required: false, default: void 0 },
31
31
  readonly: { type: Boolean, required: false },
32
32
  required: { type: Boolean, required: false }
33
33
  });
@@ -498,6 +498,7 @@ declare const __VLS_export: import("vue").DefineComponent<{
498
498
  }>, {
499
499
  size: FieldSize;
500
500
  invalid: boolean;
501
+ disabled: boolean;
501
502
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
502
503
  declare const _default: typeof __VLS_export;
503
504
  export default _default;
@@ -223,7 +223,7 @@ const props = defineProps({
223
223
  listLabel: { type: String, required: false },
224
224
  resultsText: { type: Function, required: false },
225
225
  invalid: { type: Boolean, required: false, default: void 0 },
226
- disabled: { type: Boolean, required: false },
226
+ disabled: { type: Boolean, required: false, default: void 0 },
227
227
  readonly: { type: Boolean, required: false },
228
228
  required: { type: Boolean, required: false },
229
229
  class: { type: null, required: false },
@@ -476,6 +476,7 @@ declare const __VLS_base: import("vue").DefineComponent<{
476
476
  size: FieldSize;
477
477
  invalid: boolean;
478
478
  separator: string;
479
+ disabled: boolean;
479
480
  nodes: TreeNode[];
480
481
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
481
482
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;