@xleddyl/443-components-vue 0.16.61 → 0.16.63

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 (102) hide show
  1. package/CATALOG.md +153 -152
  2. package/README.md +54 -17
  3. package/dist/chart/ChartLegend.vue.d.ts +4 -4
  4. package/dist/components/core/Form.vue +4 -1
  5. package/dist/components/core/Form.vue.d.ts +1 -0
  6. package/dist/components/core/FormField.vue +5 -2
  7. package/dist/components/core/Input.vue.d.ts +4 -4
  8. package/dist/components/core/Root.vue.d.ts +6 -6
  9. package/dist/components/core/Textarea.vue.d.ts +4 -4
  10. package/dist/components/core/VisuallyHidden.vue.d.ts +6 -6
  11. package/dist/components/data/Pagination.vue.d.ts +4 -4
  12. package/dist/components/data/RecordList.vue +1 -1
  13. package/dist/components/data/Stat.vue.d.ts +4 -4
  14. package/dist/components/data/Tag.vue.d.ts +4 -4
  15. package/dist/components/data/Tree.vue +26 -4
  16. package/dist/components/data/Tree.vue.d.ts +13 -3
  17. package/dist/components/feedback/Alert.vue.d.ts +4 -4
  18. package/dist/components/forms/Calendar.vue.d.ts +2 -2
  19. package/dist/components/forms/ColorInput.vue.d.ts +4 -4
  20. package/dist/components/forms/Combobox.vue +5 -1
  21. package/dist/components/forms/DateInput.vue.d.ts +4 -4
  22. package/dist/components/forms/DatePicker.vue.d.ts +4 -4
  23. package/dist/components/forms/FileInput.vue.d.ts +4 -4
  24. package/dist/components/forms/NumberInput.vue +2 -2
  25. package/dist/components/forms/NumberInput.vue.d.ts +5 -5
  26. package/dist/components/forms/PaletteSelect.vue.d.ts +4 -4
  27. package/dist/components/forms/PasswordInput.vue.d.ts +4 -4
  28. package/dist/components/forms/PinInput.vue.d.ts +4 -4
  29. package/dist/components/forms/Slider.vue.d.ts +4 -4
  30. package/dist/components/forms/Switch.vue.d.ts +5 -5
  31. package/dist/components/forms/TimeInput.vue.d.ts +4 -4
  32. package/dist/components/forms/TreeSelect.vue.d.ts +4 -4
  33. package/dist/components/layout/Accordion.vue.d.ts +4 -4
  34. package/dist/components/layout/AppShell.vue.d.ts +5 -5
  35. package/dist/components/layout/Card.vue.d.ts +4 -4
  36. package/dist/components/layout/CopyButton.vue.d.ts +4 -4
  37. package/dist/components/layout/NavLink.vue.d.ts +4 -4
  38. package/dist/components/layout/PageHeader.vue.d.ts +1 -1
  39. package/dist/components/layout/Separator.vue.d.ts +1 -1
  40. package/dist/components/layout/Stack.vue.d.ts +6 -6
  41. package/dist/components/layout/Stepper.vue.d.ts +3 -3
  42. package/dist/components/layout/Tabs.vue +12 -2
  43. package/dist/components/layout/Tabs.vue.d.ts +4 -4
  44. package/dist/components/layout/types.d.ts +3 -1
  45. package/dist/components/overlays/CommandPalette.vue.d.ts +2 -2
  46. package/dist/components/overlays/ConfirmDialog.vue.d.ts +4 -4
  47. package/dist/components/overlays/ConfirmHost.vue.d.ts +4 -4
  48. package/dist/components/overlays/ContextMenu.vue.d.ts +2 -2
  49. package/dist/components/overlays/Drawer.vue.d.ts +5 -5
  50. package/dist/components/overlays/DropdownMenu.vue.d.ts +2 -2
  51. package/dist/components/overlays/HoverCard.vue.d.ts +4 -4
  52. package/dist/components/overlays/Modal.vue.d.ts +4 -4
  53. package/dist/components/overlays/Popover.vue.d.ts +4 -4
  54. package/dist/components/overlays/Toaster.vue.d.ts +4 -4
  55. package/dist/components/templates/AccountMenu.vue.d.ts +4 -4
  56. package/dist/components/templates/Brand.vue.d.ts +4 -4
  57. package/dist/components/templates/DashboardLayout.vue.d.ts +2 -2
  58. package/dist/components/templates/DetailPage.vue.d.ts +4 -4
  59. package/dist/components/templates/FormDrawer.vue +7 -2
  60. package/dist/components/templates/FormDrawer.vue.d.ts +2 -2
  61. package/dist/components/templates/SaveBar.vue.d.ts +4 -4
  62. package/dist/components/templates/SettingsModal.vue.d.ts +4 -4
  63. package/dist/components/templates/SettingsPage.vue.d.ts +4 -4
  64. package/dist/components/templates/SettingsSection.vue.d.ts +10 -10
  65. package/dist/components/templates/types.d.ts +1 -0
  66. package/dist/composables/data.d.ts +1 -0
  67. package/dist/composables/data.mjs +1 -0
  68. package/dist/composables/useField.mjs +5 -1
  69. package/dist/composables/useGridConfig.d.ts +14 -0
  70. package/dist/composables/useGridConfig.mjs +16 -0
  71. package/dist/composables/useRouteRecord.d.ts +1 -0
  72. package/dist/composables/useRouteRecord.mjs +29 -2
  73. package/dist/editor/RichTextEditor.vue.d.ts +4 -4
  74. package/dist/grid/DataGrid.vue +18 -12
  75. package/dist/grid/GridToolbar.vue.d.ts +4 -4
  76. package/dist/grid/cells/ButtonCell.vue +18 -1
  77. package/dist/grid/cells/ButtonCell.vue.d.ts +62 -24
  78. package/dist/grid/data-grid.css +4 -0
  79. package/dist/grid/types.d.ts +6 -2
  80. package/dist/index.d.ts +1 -1
  81. package/dist/index.mjs +1 -0
  82. package/dist/internal/forms/disabled.d.ts +3 -0
  83. package/dist/internal/forms/disabled.mjs +11 -0
  84. package/dist/internal/keys.d.ts +2 -0
  85. package/dist/internal/keys.mjs +1 -0
  86. package/dist/internal/layout/CollapsedTrail.vue.d.ts +4 -4
  87. package/dist/internal/layout/NavGroup.vue.d.ts +4 -4
  88. package/dist/internal/overlays/DialogFrame.vue.d.ts +4 -4
  89. package/dist/internal/overlays/DialogTrail.vue.d.ts +4 -4
  90. package/dist/internal/overlays/OverlayView.vue.d.ts +6 -6
  91. package/dist/nuxt/module.d.ts +3 -1
  92. package/dist/nuxt/module.mjs +3 -1
  93. package/dist/nuxt/runtime/grid.d.ts +2 -0
  94. package/dist/nuxt/runtime/grid.mjs +9 -0
  95. package/dist/nuxt/runtime/layouts/auth.vue.d.ts +6 -6
  96. package/dist/nuxt/runtime/layouts/dashboard.vue.d.ts +6 -6
  97. package/dist/styles/core/input.css +2 -2
  98. package/dist/styles/data/tree.css +11 -7
  99. package/dist/styles/forms/combobox.css +1 -0
  100. package/dist/styles/forms/number-input.css +4 -0
  101. package/dist/styles/layout/tabs.css +11 -3
  102. package/package.json +1 -1
package/README.md CHANGED
@@ -62,7 +62,7 @@ Every component is registered with the prefix (`Button.vue` becomes `<KButton>`)
62
62
  | `icons.collections` | `[]` | Iconify collections usable as `prefix:name`, for example `['lucide', { prefix: 'heroicons', exclude: ['*-solid', '*-20-*', '*-16-*'] }]`. See [Icons](#icons). |
63
63
  | `icons.defaultCollection` | none | Collection tried for names without a prefix that are not registered or built in. |
64
64
  | `icons.aliases` | `{}` | Replaces any icon, built-ins included: `{ 'x-mark': 'lucide:x', logo: 'brand-logo' }` (a collection icon or a file of `icons.dir`). |
65
- | `grid` | `false` | Registers `KDataGrid` and `KGridToolbar` and injects their CSS. |
65
+ | `grid` | `false` | Registers `KDataGrid` and `KGridToolbar` and injects their CSS. An object (`{ density, columnMenu, exportable, pageSizes }`, `GridConfig`) does the same and sets these props for every grid of the app; a prop on a grid still wins. See [Grid defaults](#grid-defaults). |
66
66
  | `editor` | `false` | Registers `KRichTextEditor` and injects its CSS. |
67
67
  | `chart` | `false` | Registers `KChartPanel`, `KChartLegend`, `KLineChart`, `KBarChart`, `KDoughnutChart` and injects their CSS. |
68
68
  | `layouts` | `false` | Registers the ready Nuxt layouts `k-dashboard` and `k-auth` (configured from `app.config.ts`, see [Layouts](#layouts-and-page-templates)). Pass `{ dashboard: 'admin', auth: false }` to rename or skip one. |
@@ -411,6 +411,14 @@ 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, and a nested `Form` inherits the state. `FormDrawer` with `readonly` does the same for its body, also for a `Form` you render yourself in the default slot.
415
+
416
+ ```vue
417
+ <KForm :form="form" :disabled="!canWrite">
418
+ <KFormField label="Name" name="name"><KInput v-model="form.values.name" /></KFormField>
419
+ </KForm>
420
+ ```
421
+
414
422
  Several controls in one `FormField`. Only the primary control takes the field id, name, description and invalid state. Wrap secondary controls (a search input above a Tree) in `<KFieldBoundary auxiliary>`, or call `useFieldControl({ role: 'auxiliary' })` in your own control: they keep their own id and only follow `disabled`. `<KFieldBoundary>` without `auxiliary` cuts the field context completely, like the overlays do. A primary control that is not labelable (a tree, a group, a contenteditable editor) passes `useFieldControl({ labelable: false })`; `FormField` then drops `for` from its label and the control uses `aria-labelledby` with `control.labelledBy` (the label id, or `undefined` when the field has no label). A control that cannot carry `required` itself (a button trigger, a fieldset) passes `requiredHint: true`: `FormField` then adds a visually hidden "(required)" to its label. Errors and warnings render inside a polite live region, prefixed with a hidden "Error:" or "Warning:". `Tree`, `CheckboxGroup`, `RadioGroup`, `SegmentedControl` and `RichTextEditor` already do.
415
423
 
416
424
  ```vue
@@ -437,7 +445,7 @@ Several controls in one `FormField`. Only the primary control takes the field id
437
445
  | editor | RichTextEditor |
438
446
  | chart | ChartPanel, ChartLegend, LineChart, BarChart, DoughnutChart |
439
447
 
440
- Composables: `useTheme`, `usePreset`, `useForm`, `useField`, `useFieldControl`, `useToast` (and `toast`), `useConfirm`, `useAlert`, `usePrompt`, `useModal`, `useDrawer`, `useOverlay`, `useModalContext`, `useLoading` (and `withLoading`), `useLoadingState`, `useHotkey`, `useCopy`, `useFileDrop` (with `readDroppedFiles`), `useSortable`, `usePasswordStrength`, `useTableSort`, `useAppShell`, `useRouteState`, `useRouteRecord`, `usePageCommands`, `usePreference` (with `usePreferences`, `createPreferences`, `providePreferences`), `useScrollLock`, `useDirtyGuard`, `useIcons` helpers and `useLinkComponent`, `provideFieldBoundary`, `provideAuxiliaryControls`, `provideForm`, `useLocale`. With the Nuxt module also `useDashboard()` (runtime account, breadcrumbs and badges for the `k-dashboard` layout).
448
+ Composables: `useTheme`, `usePreset`, `useForm`, `useField`, `useFieldControl`, `useToast` (and `toast`), `useConfirm`, `useAlert`, `usePrompt`, `useModal`, `useDrawer`, `useOverlay`, `useModalContext`, `useLoading` (and `withLoading`), `useLoadingState`, `useHotkey`, `useCopy`, `useFileDrop` (with `readDroppedFiles`), `useSortable`, `usePasswordStrength`, `useTableSort`, `useAppShell`, `useRouteState`, `useRouteRecord`, `usePageCommands`, `usePreference` (with `usePreferences`, `createPreferences`, `providePreferences`), `useScrollLock`, `useDirtyGuard`, `useIcons` helpers and `useLinkComponent`, `provideFieldBoundary`, `provideAuxiliaryControls`, `provideForm`, `provideGridConfig` (with `createGridConfig`, `useGridConfig`), `useLocale`. With the Nuxt module also `useDashboard()` (runtime account, breadcrumbs and badges for the `k-dashboard` layout).
441
449
 
442
450
  ### Colors
443
451
 
@@ -452,15 +460,17 @@ On your own elements, `paletteClass(color)` gives the class of a palette name an
452
460
 
453
461
  ### Lists, trees and uploads
454
462
 
455
- - `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` (or `#empty`) 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.
463
+ - `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.
456
464
  - `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`.
457
465
  - `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.
466
+ - 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`).
458
467
  - `Input` takes `transform: (value: string) => string`, applied to the typed text before it reaches the model (the caret keeps its place; IME composition is transformed when it ends). `:transform="(value) => value.toUpperCase()"` enforces uppercase codes. Values set from outside are not transformed.
459
468
  - `FormField` takes `optional`, a muted localized "Optional" marker in the label row (`form.optional`, `optionalText` overrides it), the counterpart of the required asterisk. It is hidden when the field is required.
460
469
  - `CheckboxGroup` takes `columns` (a number): the options are laid out in a grid with that many equal columns. Unset keeps the `orientation` layout. `variant="filled"` (`CheckboxGroupVariant`, `'default' | 'filled'`, default `'default'`) puts the options in a subtle filled panel, styled by `--k-checkbox-group-background` (`--k-subtle`), `--k-checkbox-group-padding` (0.75rem), `--k-checkbox-group-radius` (`--k-radius-md`) and `--k-checkbox-group-border` (none).
461
470
  - `Combobox` with `creatable` takes `createTransform` (`ComboboxCreateTransform`, `(input) => string | null | undefined`) and `createValidate` (`ComboboxCreateValidate`, `(input) => string | true | undefined`). The transform runs on the typed text first: the "Create" option shows its result, and an empty result (or `null`) shows no create option. The validator gets the transformed text when the user picks the create option: a returned string is the error, shown inline through the surrounding `FormField` (`useFieldControl().setControlError`, or a `FieldMessage` under the control and an announcement without a field) with `aria-invalid` on the input, and nothing is created; `true` or nothing accepts it. The error clears when the query changes. Both work with `multiple`, where created values become tags: `<KCombobox v-model="tags" multiple creatable :create-transform="(input) => input.toLowerCase()" :create-validate="(input) => input.length >= 3 || 'Too short'" />`.
462
471
  - `Combobox` takes `createActions` (`ComboboxCreateActions`, `(query) => ComboboxCreateAction[]`) to show several create items instead of the single "Create" item. Each action has `id` (the item key is `__create:<id>`), `label`, `icon` (default `plus`) and `run(query)`. The actions show at the end of the list under the same conditions as the create item: a non-empty query after `createTransform`, with no option whose label or value matches it exactly. The function gets that text, and an empty array shows no action. `createValidate` runs before `run`. When `run` returns an option, the combobox remembers it, emits `create` and selects it. When it returns nothing (for example it opens a form for the full record), nothing is selected: the query clears and the list closes (with `multiple`, only the query clears). Errors from `run` are logged. `createActions` replaces `creatable`: `<KCombobox v-model="category" :options="categories" :create-actions="(query) => [{ id: 'quick', label: 'Create here', run: createCategory }, { id: 'form', label: 'Create with details', icon: 'pencil-square', run: openForm }]" />`.
463
- - `Combobox` with `multiple` takes `hideTags`: the selected values are not rendered as tags inside the control (the host shows them elsewhere), the placeholder stays visible and Backspace no longer removes the last value. Selection is still announced through the options.
472
+ - `Combobox` with `multiple` takes `hideTags`: the selected values are not rendered as tags inside the control (the host shows them elsewhere), the placeholder stays visible and Backspace no longer removes the last value. Selection is still announced through the options. A long tag label is truncated with an ellipsis and the full label (with the option group or description) is in the tag tooltip.
473
+ - `RecordList` keeps each title on one line with an ellipsis; the full title is in its `title` attribute.
464
474
  - `Pagination` takes `showEdges` (first and last page buttons, `firstLabel`, `lastLabel`) and `showJump` (a typed page number, `jumpLabel`). Both are off by default. `page` is clamped to the page count only when `total` is known: while `total` is `0` or `loading` is set (it also sets `aria-busy`), the page is kept, so a server reload does not reset it.
465
475
  - Page sizes are `PageSize` values (`number | 'all'`): `pageSizes: [25, 50, 100, 'all']` adds an "All" option (`pagination.all`, override with `allLabel`). With `'all'` the page size model is `'all'`, there is one page and the summary reads `1-<total> of <total>`. `Pagination`, `ListPage` and `DataGrid` take it; with `serverPagination` the grid emits `'all'` through `v-model:page-size` and your API returns every row.
466
476
  - `FilterPills` can list active filters: options with `removable: true` render as active pills with a remove button (`removeLabel`, a `'Remove {label}'` template). Clicking the pill emits `select(value)`, the button emits `remove(value)` (and drops the value from the model when it is selected); focus moves to the next pill when the removed one disappears.
@@ -473,7 +483,7 @@ On your own elements, `paletteClass(color)` gives the class of a palette name an
473
483
  <KStepper v-model="step" :steps="steps" linear label="Import" />
474
484
  ```
475
485
 
476
- - `Tabs` items take `dot: true` for a small indicator without a number (`dotTone`, default `danger`; `dotLabel` is the hidden text, default "Needs attention").
486
+ - `Tabs` items take `dot: true` for a small indicator without a number (`dotTone`, default `danger`; `dotLabel` is the hidden text, default "Needs attention"). `color` (a palette name or a hex, `ColorValue`) draws a small color dot before the label, separate from the status dot. `title` is the native tooltip of the tab; a disabled tab keeps it (it uses `aria-disabled`, cannot be selected and is skipped by Tab and the arrow keys), so it can say why it is disabled. The same items work in the `tabs` of `Modal`, `Drawer`, `FormDrawer` and `DetailPage`.
477
487
  - `DropdownMenu` takes `matchTriggerWidth` (the menu is at least as wide as its trigger) and `minWidth` (a CSS length).
478
488
  - `PageHeader` takes `align` (`'end'` by default, `'start'` or `'center'`) for the title block and the actions, and `truncate` to keep the title on one line with an ellipsis (the full title is in its `title` attribute).
479
489
  - `RichTextEditor` accepts `'underline'` in `toolbar` (not in the default toolbar).
@@ -504,6 +514,25 @@ On your own elements, `paletteClass(color)` gives the class of a palette name an
504
514
  - `Tabs` items take `badgeTone` and `badgeLabel` (the accessible name of the badge); the `#panel="{ item }"` slot renders a single panel for the active tab. `stretch` makes the tabs fill the remaining height of a flex column and the active panel grow with it (`flex: 1; min-height: 0`), and `inset` spaces the tab list from the container edges with the panel flush below it, for inspectors and side panes. `Breadcrumbs` items take `attrs` and `onClick` (an item without a link renders a button, handy for drop targets), `#item` customizes the content, and `ancestors` links every item and ends with a separator (`breadcrumbsAncestors` on `PageHeader`). `Accordion` takes `variant` `card` (default), `outline` (the same card without a shadow), `separated` or `plain`; items take `description`, and `contentVariant="neutral"` drops the content padding and text styling.
505
515
  - `RichTextEditor` labels heading buttons by their real level (`headingLabel="relative"` numbers them from 1) and `toolbar` picks and orders the buttons: `['headings', '|', 'bold', 'italic', 'link']`.
506
516
 
517
+ ### Grid defaults
518
+
519
+ Set `density`, `columnMenu`, `exportable` and `pageSizes` once for every `DataGrid` of the app (`GridConfig`). A prop on one grid still wins, also an explicit `false` or `true`. Without a config the built-in defaults stay (`normal`, column menu and export on, `[10, 25, 50, 100]`).
520
+
521
+ ```ts
522
+ export default defineNuxtConfig({
523
+ k: {
524
+ grid: {
525
+ density: 'compact',
526
+ columnMenu: false,
527
+ exportable: false,
528
+ pageSizes: [25, 50, 100, 'all'],
529
+ },
530
+ },
531
+ })
532
+ ```
533
+
534
+ Without Nuxt: `app.use(createGridConfig({ density: 'compact' }))`, or `provideGridConfig(config)` in a component for its subtree. `useGridConfig()` reads the config in effect.
535
+
507
536
  ## Imperative hooks
508
537
 
509
538
  Mount `<KOverlayHost />` once (the ready Nuxt layouts already do). It renders the Toaster, the dialog host for confirm, alert and prompt, the programmatic modal stack and the global loading indicators. Every part can be turned off or configured: `<KOverlayHost :toaster="{ position: 'top-center', max: 4, gap: 8, expand: false, progress: false }" :confirm="true" :modals="true" :loading="{ bar: true, delay: 150, label: 'Loading' }" />`. Each part renders only once even when several hosts are mounted (the first one wins), so a page can add a host safely. All hooks are SSR safe: on the server they do nothing and resolve to the cancelled value.
@@ -589,7 +618,15 @@ const confirmDiscard = () => !dirty.value || confirm({ title: 'Discard changes?'
589
618
 
590
619
  ### Deep links
591
620
 
592
- `useRouteRecord(key, options?)` is the record version of `useRouteState`. `#family/fam_1` opens a record and `#family/new` the create form (`newId`). Options: `find(id)` (gives `current`), `loaded` (while false, `loading` is true, so the drawer opens at once with its skeleton; when true and `find` gives nothing, the entry is removed), `canCreate`, `linkedKeys` (entries removed together with the record, such as a tab or a sub record). It returns `param`, `id`, `isNew`, `current`, `loading`, `open` (for `v-model:open`), `openRecord(id | null, linked?)`, `close()` and `replaceId(id, linked?)` (after a create). All the entries change in one navigation.
621
+ `useRouteRecord(key, options?)` is the record version of `useRouteState`. `#family/fam_1` opens a record and `#family/new` the create form (`newId`). Options: `find(id)` (gives `current`), `loaded` (while false, `loading` is true, so the drawer opens at once with its skeleton; when true and `find` gives nothing, the entry is removed), `canCreate`, `linkedKeys` (entries removed together with the record, such as a tab or a sub record), `beforeLeave` (a function that returns `true` or `false`, or a promise of it, called before a navigation would close the open record or show another one: the entry changes or is removed, or the path changes while it is open; `false` cancels the navigation, so the back button, a link or a row of another record ask the same discard question as the drawer). It returns `param`, `id`, `isNew`, `current`, `loading`, `open` (for `v-model:open`), `openRecord(id | null, linked?)`, `close()` and `replaceId(id, linked?)` (after a create). All the entries change in one navigation. `close()`, `open = false`, `openRecord()` and `replaceId()` skip `beforeLeave` (they come after the drawer question or are on purpose). The guard is registered on mount, only in a component with a router.
622
+
623
+ ```ts
624
+ const drawer = useTemplateRef<{ confirmDiscard: () => Promise<boolean> }>('drawer')
625
+ const overlay = useRouteRecord('family', {
626
+ find: (id) => families.value.find((family) => family.id === id),
627
+ beforeLeave: () => drawer.value?.confirmDiscard() ?? true,
628
+ })
629
+ ```
593
630
 
594
631
  `usePageCommands(() => CommandItem[])` adds commands while the component is mounted. `DashboardLayout` shows the matching ones first, in the group "This page" (`searchPageLabel`), with every `search` mode. Return an empty list when a command does not apply. `CommandButton` renders a command as a `Button`, so a page header button and the palette share one definition.
595
632
 
@@ -742,16 +779,16 @@ Both take the `AuthLayout` frame props and the `brand`, `corner`, `footer` and `
742
779
 
743
780
  ### Page templates
744
781
 
745
- | Component | What it gives you |
746
- | -------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
747
- | `DashboardPage` | PageHeader (`title`, `eyebrow`, `description`, `#actions`), a Stat grid from `stats` (or `#stats`), a content grid (`columns`, default 1 then 3 columns). |
748
- | `ListPage` | Header, toolbar (search with `searchable`, FilterPills from `filters`, `#toolbar`, `#bulk` when rows are selected), Table from `columns`/`rows`, Pagination. Client mode filters (`searchKeys`, `filterKey`), sorts and paginates; pass `total` for server mode. States: `loading` skeleton rows, first run `#empty`, no results with a clear button, `error` with retry. `cell-*` and `header-*` slots go to the Table. |
749
- | `DetailPage` | Back link (`backTo`), title, `status` badge, `#actions`, optional `tabs` (`#panel-<value>`), main column plus an aside with DescriptionList cards from `sections` (or `#aside`). `loading` and `error` states. |
750
- | `FormDrawer` | A `Drawer` with a `Form` (`form` from `useForm`) around the body and a footer: delete on the left (`deletable`, `@delete`, `deleteDisabled`, `deleteHint`), cancel and submit on the right. `creating` changes the submit text to Create and enables it without changes; otherwise it needs a dirty form (`requireDirty`). `readonly` keeps only a Close button. Every close asks before discarding a dirty form (`guard`), then runs `beforeClose`. `onCancel` replaces the close of the cancel button (back to a parent view), after the same question. `loading` shows a `SkeletonForm` (or `#skeleton`) and keeps the header, the tabs and the footer in place. Pass another `form` to switch the body to a subpage (with `trail`). |
751
- | `FormPage` | Header, your cards inside `Form` (`form` from `useForm`, or a plain `form` emitting `submit`), sticky footer with cancel and submit, unsaved state, dirty guard (`guard`, on by default) through `useDirtyGuard`. |
752
- | `SettingsPage`, `SettingsSection`, `SaveBar` | Section nav (sticky on the left, a scrolling row on narrow screens; items with `to` become route links), `#section-<value>` panels, section cards with a save footer, and a floating save bar while `dirty`. |
753
- | `ErrorPage`, `NotFoundPage` | Status code, title, message (defaults per status code, reads a Nuxt `error`), home, retry (`@retry`) and back actions. `@home` replaces the home link, handy for `clearError`. |
754
- | `EmptyPage` | First run screen: illustration, title, description, primary and secondary actions, onboarding `steps`. |
782
+ | Component | What it gives you |
783
+ | -------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
784
+ | `DashboardPage` | PageHeader (`title`, `eyebrow`, `description`, `#actions`), a Stat grid from `stats` (or `#stats`), a content grid (`columns`, default 1 then 3 columns). |
785
+ | `ListPage` | Header, toolbar (search with `searchable`, FilterPills from `filters`, `#toolbar`, `#bulk` when rows are selected), Table from `columns`/`rows`, Pagination. Client mode filters (`searchKeys`, `filterKey`), sorts and paginates; pass `total` for server mode. States: `loading` skeleton rows, first run `#empty`, no results with a clear button, `error` with retry. `cell-*` and `header-*` slots go to the Table. |
786
+ | `DetailPage` | Back link (`backTo`), title, `status` badge, `#actions`, optional `tabs` (`#panel-<value>`), main column plus an aside with DescriptionList cards from `sections` (or `#aside`). `loading` and `error` states. |
787
+ | `FormDrawer` | A `Drawer` with a `Form` (`form` from `useForm`) around the body and a footer: delete on the left (`deletable`, `@delete`, `deleteDisabled`, `deleteHint`), cancel and submit on the right. `creating` changes the submit text to Create and enables it without changes; otherwise it needs a dirty form (`requireDirty`). `readonly` keeps only a Close button and disables every field of the body (see [Forms](#forms)). Every close asks before discarding a dirty form (`guard`), then runs `beforeClose`. `onCancel` replaces the close of the cancel button (back to a parent view), after the same question. `loading` shows a `SkeletonForm` (or `#skeleton`) and keeps the header, the tabs and the footer in place. Pass another `form` to switch the body to a subpage (with `trail`). A tab with `fill: true` (`FormDrawerTab`) makes the drawer `fill` while it is active (a tab with a long table). |
788
+ | `FormPage` | Header, your cards inside `Form` (`form` from `useForm`, or a plain `form` emitting `submit`), sticky footer with cancel and submit, unsaved state, dirty guard (`guard`, on by default) through `useDirtyGuard`. |
789
+ | `SettingsPage`, `SettingsSection`, `SaveBar` | Section nav (sticky on the left, a scrolling row on narrow screens; items with `to` become route links), `#section-<value>` panels, section cards with a save footer, and a floating save bar while `dirty`. |
790
+ | `ErrorPage`, `NotFoundPage` | Status code, title, message (defaults per status code, reads a Nuxt `error`), home, retry (`@retry`) and back actions. `@home` replaces the home link, handy for `clearError`. |
791
+ | `EmptyPage` | First run screen: illustration, title, description, primary and secondary actions, onboarding `steps`. |
755
792
 
756
793
  `useDirtyGuard(dirty, options?)` asks before leaving (router navigation through `ConfirmHost`, or the native confirm) and on tab close. Returns `confirmLeave()` and `allowNext()`.
757
794
 
@@ -939,7 +976,7 @@ Accessibility related props and defaults:
939
976
 
940
977
  - Rendering stays virtual: the range, active cell and dirty marks are `cellClassRules` (merged with your own) and only the rendered cells of the affected rows refresh. The range tint is `--k-grid-range-background`, its border and the fill handle `--k-grid-range-border`, dirty cells `--k-grid-dirty-background` and `--k-grid-dirty-marker`. `parseTsv` and `formatTsv` are exported from `/grid`.
941
978
  - `DataGrid` row classes: `gridOptions.rowClass`, `gridOptions.rowClassRules` (`{ 'is-archived': (params) => params.data?.archived }`) and `gridOptions.getRowClass` reach AG Grid unchanged. Style the classes in host CSS under `.k-data-grid .ag-row.<class>`.
942
- - `ButtonCell` renders the value as an inline button that calls `onClick(value, data, event)` without selecting or clicking the row (for example to open a modal with details of that cell). `label` and `ariaLabel` customize the text and the accessible name, `emptyLabel` shows a button for empty values; without a label and with no value it renders the empty placeholder. It uses the column `valueFormatter` output when present.
979
+ - `ButtonCell` renders the value as an inline button that calls `onClick(value, data, event)` without selecting or clicking the row (for example to open a modal with details of that cell). `label` and `ariaLabel` customize the text and the accessible name, `emptyLabel` shows a button for empty values; without a label and with no value it renders the empty placeholder. `tone`, `variant` and `icon` (the `Button` values) render an `xs` `Button` instead of the inline link style, for a row action: `{ label: () => 'Delete', tone: 'danger', variant: 'soft', icon: 'trash' }`. Unset, the variant is `link` and the tone `accent`. It uses the column `valueFormatter` output when present.
943
980
  - `LinkCell` renders internal hrefs (starting with `/`) with the configured link component (`NuxtLink` in Nuxt, `createLinkComponent(RouterLink)` in plain Vue), so they navigate without a reload; other hrefs stay a plain `<a>`.
944
981
  - `DataGrid` translates the AG Grid ARIA strings through the catalog (`grid.*`; your own `localeText` still wins) and announces row count changes.
945
982
 
@@ -9,6 +9,8 @@ declare const __VLS_export: import("vue").DefineComponent<{
9
9
  style?: import("vue").StyleValue;
10
10
  results?: (string | number) | undefined;
11
11
  placeholder?: string | undefined | undefined;
12
+ id?: string | undefined | undefined;
13
+ onSelect?: ((payload: Event) => void) | undefined;
12
14
  dir?: string | undefined | undefined;
13
15
  contextmenu?: string | undefined | undefined;
14
16
  hidden?: "" | "hidden" | (boolean | "true" | "false") | "until-found" | undefined;
@@ -78,7 +80,6 @@ declare const __VLS_export: import("vue").DefineComponent<{
78
80
  onTimeupdate?: ((payload: Event) => void) | undefined;
79
81
  onVolumechange?: ((payload: Event) => void) | undefined;
80
82
  onWaiting?: ((payload: Event) => void) | undefined;
81
- onSelect?: ((payload: Event) => void) | undefined;
82
83
  onScroll?: ((payload: Event) => void) | undefined;
83
84
  onScrollend?: ((payload: Event) => void) | undefined;
84
85
  onTouchcancel?: ((payload: TouchEvent) => void) | undefined;
@@ -111,7 +112,6 @@ declare const __VLS_export: import("vue").DefineComponent<{
111
112
  onTransitionstart?: ((payload: TransitionEvent) => void) | undefined;
112
113
  innerHTML?: string | undefined | undefined;
113
114
  color?: string | undefined | undefined;
114
- id?: string | undefined | undefined;
115
115
  lang?: string | undefined | undefined;
116
116
  tabindex?: (string | number) | undefined;
117
117
  'aria-activedescendant'?: string | undefined | undefined;
@@ -206,6 +206,8 @@ declare const __VLS_export: import("vue").DefineComponent<{
206
206
  style?: import("vue").StyleValue;
207
207
  results?: (string | number) | undefined;
208
208
  placeholder?: string | undefined | undefined;
209
+ id?: string | undefined | undefined;
210
+ onSelect?: ((payload: Event) => void) | undefined;
209
211
  dir?: string | undefined | undefined;
210
212
  contextmenu?: string | undefined | undefined;
211
213
  hidden?: "" | "hidden" | (boolean | "true" | "false") | "until-found" | undefined;
@@ -275,7 +277,6 @@ declare const __VLS_export: import("vue").DefineComponent<{
275
277
  onTimeupdate?: ((payload: Event) => void) | undefined;
276
278
  onVolumechange?: ((payload: Event) => void) | undefined;
277
279
  onWaiting?: ((payload: Event) => void) | undefined;
278
- onSelect?: ((payload: Event) => void) | undefined;
279
280
  onScroll?: ((payload: Event) => void) | undefined;
280
281
  onScrollend?: ((payload: Event) => void) | undefined;
281
282
  onTouchcancel?: ((payload: TouchEvent) => void) | undefined;
@@ -308,7 +309,6 @@ declare const __VLS_export: import("vue").DefineComponent<{
308
309
  onTransitionstart?: ((payload: TransitionEvent) => void) | undefined;
309
310
  innerHTML?: string | undefined | undefined;
310
311
  color?: string | undefined | undefined;
311
- id?: string | undefined | undefined;
312
312
  lang?: string | undefined | undefined;
313
313
  tabindex?: (string | number) | undefined;
314
314
  'aria-activedescendant'?: string | undefined | undefined;
@@ -62,12 +62,14 @@
62
62
  <script setup>
63
63
  import { computed, nextTick, useTemplateRef } from "vue";
64
64
  import { provideForm } from "../../composables/useForm";
65
+ import { provideFormDisabled } from "../../internal/forms/disabled";
65
66
  import FormAlerts from "./FormAlerts.vue";
66
67
  const props = defineProps({
67
68
  form: { type: Object, required: true },
68
69
  as: { type: String, required: false, default: "form" },
69
70
  focusOnError: { type: Boolean, required: false, default: true },
70
- alerts: { type: [String, Boolean], required: false, default: "start" }
71
+ alerts: { type: [String, Boolean], required: false, default: "start" },
72
+ disabled: { type: Boolean, required: false }
71
73
  });
72
74
  const emit = defineEmits(["submitted", "invalid", "reset"]);
73
75
  const formRef = useTemplateRef("formRef");
@@ -76,6 +78,7 @@ const rootRef = computed(() => formRef.value ?? divRef.value);
76
78
  const rootErrors = computed(() => props.form.rootErrors?.value ?? []);
77
79
  const rootWarnings = computed(() => props.form.rootWarnings?.value ?? []);
78
80
  provideForm(props.form);
81
+ provideFormDisabled(() => props.disabled);
79
82
  const IMPLICIT_SUBMIT_SKIP = /* @__PURE__ */ new Set([
80
83
  "button",
81
84
  "submit",
@@ -5,6 +5,7 @@ declare const __VLS_export: <S extends FormSchema, V extends object>(__VLS_props
5
5
  as?: "form" | "div";
6
6
  focusOnError?: boolean;
7
7
  alerts?: "start" | "end" | false;
8
+ disabled?: boolean;
8
9
  } & {
9
10
  onInvalid?: (() => any) | undefined;
10
11
  onReset?: (() => any) | undefined;
@@ -5,7 +5,7 @@
5
5
  'is-invalid': Boolean(errorMessage),
6
6
  'is-warning': !errorMessage && Boolean(warningMessage),
7
7
  'is-shaking': shaking,
8
- 'is-disabled': disabled
8
+ 'is-disabled': isDisabled
9
9
  }"
10
10
  @focusout="onFocusOut"
11
11
  @animationend="onAnimationEnd"
@@ -68,6 +68,7 @@ import { computed, provide, ref, shallowReactive, useId, useSlots, watch } from
68
68
  import { useFormContext } from "../../composables/useForm";
69
69
  import { useLocale } from "../../composables/useLocale";
70
70
  import { joinIds } from "../../internal/forms/control";
71
+ import { useFormDisabled } from "../../internal/forms/disabled";
71
72
  import { FIELD_KEY, FIELD_ROLE_KEY } from "../../internal/keys";
72
73
  import FieldMessage from "./FieldMessage.vue";
73
74
  import Icon from "./Icon.vue";
@@ -87,6 +88,8 @@ const props = defineProps({
87
88
  });
88
89
  const slots = useSlots();
89
90
  const form = useFormContext();
91
+ const formDisabled = useFormDisabled();
92
+ const isDisabled = computed(() => Boolean(props.disabled || formDisabled?.value));
90
93
  const { t } = useLocale();
91
94
  const baseId = useId();
92
95
  const id = computed(() => props.id ?? `${baseId}-control`);
@@ -151,7 +154,7 @@ const context = {
151
154
  describedBy,
152
155
  invalid: computed(() => Boolean(errorMessage.value)),
153
156
  required: isRequired,
154
- disabled: computed(() => Boolean(props.disabled)),
157
+ disabled: isDisabled,
155
158
  setControlError,
156
159
  setLabelable,
157
160
  setRequiredHint
@@ -38,6 +38,8 @@ declare const __VLS_base: import("vue").DefineComponent<{
38
38
  results?: (string | number) | undefined;
39
39
  placeholder?: string | undefined | undefined;
40
40
  name?: string | undefined | undefined;
41
+ id?: string | undefined | undefined;
42
+ onSelect?: ((payload: Event) => void) | undefined;
41
43
  dir?: string | undefined | undefined;
42
44
  contextmenu?: string | undefined | undefined;
43
45
  hidden?: "" | "hidden" | (boolean | "true" | "false") | "until-found" | undefined;
@@ -106,7 +108,6 @@ declare const __VLS_base: import("vue").DefineComponent<{
106
108
  onTimeupdate?: ((payload: Event) => void) | undefined;
107
109
  onVolumechange?: ((payload: Event) => void) | undefined;
108
110
  onWaiting?: ((payload: Event) => void) | undefined;
109
- onSelect?: ((payload: Event) => void) | undefined;
110
111
  onScroll?: ((payload: Event) => void) | undefined;
111
112
  onScrollend?: ((payload: Event) => void) | undefined;
112
113
  onTouchcancel?: ((payload: TouchEvent) => void) | undefined;
@@ -141,7 +142,6 @@ declare const __VLS_base: import("vue").DefineComponent<{
141
142
  innerHTML?: string | undefined | undefined;
142
143
  color?: string | undefined | undefined;
143
144
  height?: (string | number) | undefined;
144
- id?: string | undefined | undefined;
145
145
  lang?: string | undefined | undefined;
146
146
  width?: (string | number) | undefined;
147
147
  tabindex?: (string | number) | undefined;
@@ -283,6 +283,8 @@ declare const __VLS_base: import("vue").DefineComponent<{
283
283
  results?: (string | number) | undefined;
284
284
  placeholder?: string | undefined | undefined;
285
285
  name?: string | undefined | undefined;
286
+ id?: string | undefined | undefined;
287
+ onSelect?: ((payload: Event) => void) | undefined;
286
288
  dir?: string | undefined | undefined;
287
289
  contextmenu?: string | undefined | undefined;
288
290
  hidden?: "" | "hidden" | (boolean | "true" | "false") | "until-found" | undefined;
@@ -351,7 +353,6 @@ declare const __VLS_base: import("vue").DefineComponent<{
351
353
  onTimeupdate?: ((payload: Event) => void) | undefined;
352
354
  onVolumechange?: ((payload: Event) => void) | undefined;
353
355
  onWaiting?: ((payload: Event) => void) | undefined;
354
- onSelect?: ((payload: Event) => void) | undefined;
355
356
  onScroll?: ((payload: Event) => void) | undefined;
356
357
  onScrollend?: ((payload: Event) => void) | undefined;
357
358
  onTouchcancel?: ((payload: TouchEvent) => void) | undefined;
@@ -386,7 +387,6 @@ declare const __VLS_base: import("vue").DefineComponent<{
386
387
  innerHTML?: string | undefined | undefined;
387
388
  color?: string | undefined | undefined;
388
389
  height?: (string | number) | undefined;
389
- id?: string | undefined | undefined;
390
390
  lang?: string | undefined | undefined;
391
391
  width?: (string | number) | undefined;
392
392
  tabindex?: (string | number) | undefined;
@@ -24,6 +24,9 @@ declare const __VLS_base: import("vue").DefineComponent<{
24
24
  results?: (string | number) | undefined;
25
25
  placeholder?: string | undefined;
26
26
  bind?: Record<string, unknown>;
27
+ id?: string | undefined;
28
+ href?: string | undefined;
29
+ onSelect?: ((payload: Event) => void) | undefined;
27
30
  dir?: string | undefined;
28
31
  contextmenu?: string | undefined;
29
32
  hidden?: (boolean | "true" | "false") | "" | "hidden" | "until-found" | undefined;
@@ -93,7 +96,6 @@ declare const __VLS_base: import("vue").DefineComponent<{
93
96
  onTimeupdate?: ((payload: Event) => void) | undefined;
94
97
  onVolumechange?: ((payload: Event) => void) | undefined;
95
98
  onWaiting?: ((payload: Event) => void) | undefined;
96
- onSelect?: ((payload: Event) => void) | undefined;
97
99
  onScroll?: ((payload: Event) => void) | undefined;
98
100
  onScrollend?: ((payload: Event) => void) | undefined;
99
101
  onTouchcancel?: ((payload: TouchEvent) => void) | undefined;
@@ -127,13 +129,11 @@ declare const __VLS_base: import("vue").DefineComponent<{
127
129
  onTransitionstart?: ((payload: TransitionEvent) => void) | undefined;
128
130
  innerHTML?: string | undefined;
129
131
  color?: string | undefined;
130
- id?: string | undefined;
131
132
  lang?: string | undefined;
132
133
  media?: string | undefined;
133
134
  target?: string | undefined;
134
135
  type?: string | undefined;
135
136
  tabindex?: (string | number) | undefined;
136
- href?: string | undefined;
137
137
  'aria-activedescendant'?: string | undefined;
138
138
  'aria-atomic'?: (boolean | "true" | "false") | undefined;
139
139
  'aria-autocomplete'?: "none" | "inline" | "list" | "both" | undefined;
@@ -242,6 +242,9 @@ declare const __VLS_base: import("vue").DefineComponent<{
242
242
  results?: (string | number) | undefined;
243
243
  placeholder?: string | undefined;
244
244
  bind?: Record<string, unknown>;
245
+ id?: string | undefined;
246
+ href?: string | undefined;
247
+ onSelect?: ((payload: Event) => void) | undefined;
245
248
  dir?: string | undefined;
246
249
  contextmenu?: string | undefined;
247
250
  hidden?: (boolean | "true" | "false") | "" | "hidden" | "until-found" | undefined;
@@ -311,7 +314,6 @@ declare const __VLS_base: import("vue").DefineComponent<{
311
314
  onTimeupdate?: ((payload: Event) => void) | undefined;
312
315
  onVolumechange?: ((payload: Event) => void) | undefined;
313
316
  onWaiting?: ((payload: Event) => void) | undefined;
314
- onSelect?: ((payload: Event) => void) | undefined;
315
317
  onScroll?: ((payload: Event) => void) | undefined;
316
318
  onScrollend?: ((payload: Event) => void) | undefined;
317
319
  onTouchcancel?: ((payload: TouchEvent) => void) | undefined;
@@ -345,13 +347,11 @@ declare const __VLS_base: import("vue").DefineComponent<{
345
347
  onTransitionstart?: ((payload: TransitionEvent) => void) | undefined;
346
348
  innerHTML?: string | undefined;
347
349
  color?: string | undefined;
348
- id?: string | undefined;
349
350
  lang?: string | undefined;
350
351
  media?: string | undefined;
351
352
  target?: string | undefined;
352
353
  type?: string | undefined;
353
354
  tabindex?: (string | number) | undefined;
354
- href?: string | undefined;
355
355
  'aria-activedescendant'?: string | undefined;
356
356
  'aria-atomic'?: (boolean | "true" | "false") | undefined;
357
357
  'aria-autocomplete'?: "none" | "inline" | "list" | "both" | undefined;
@@ -26,6 +26,8 @@ declare const __VLS_base: import("vue").DefineComponent<{
26
26
  results?: (string | number) | undefined;
27
27
  placeholder?: string | undefined | undefined;
28
28
  name?: string | undefined | undefined;
29
+ id?: string | undefined | undefined;
30
+ onSelect?: ((payload: Event) => void) | undefined;
29
31
  dir?: string | undefined | undefined;
30
32
  contextmenu?: string | undefined | undefined;
31
33
  hidden?: "" | "hidden" | (boolean | "true" | "false") | "until-found" | undefined;
@@ -94,7 +96,6 @@ declare const __VLS_base: import("vue").DefineComponent<{
94
96
  onTimeupdate?: ((payload: Event) => void) | undefined;
95
97
  onVolumechange?: ((payload: Event) => void) | undefined;
96
98
  onWaiting?: ((payload: Event) => void) | undefined;
97
- onSelect?: ((payload: Event) => void) | undefined;
98
99
  onScroll?: ((payload: Event) => void) | undefined;
99
100
  onScrollend?: ((payload: Event) => void) | undefined;
100
101
  onTouchcancel?: ((payload: TouchEvent) => void) | undefined;
@@ -128,7 +129,6 @@ declare const __VLS_base: import("vue").DefineComponent<{
128
129
  onTransitionstart?: ((payload: TransitionEvent) => void) | undefined;
129
130
  innerHTML?: string | undefined | undefined;
130
131
  color?: string | undefined | undefined;
131
- id?: string | undefined | undefined;
132
132
  lang?: string | undefined | undefined;
133
133
  tabindex?: (string | number) | undefined;
134
134
  'aria-activedescendant'?: string | undefined | undefined;
@@ -246,6 +246,8 @@ declare const __VLS_base: import("vue").DefineComponent<{
246
246
  results?: (string | number) | undefined;
247
247
  placeholder?: string | undefined | undefined;
248
248
  name?: string | undefined | undefined;
249
+ id?: string | undefined | undefined;
250
+ onSelect?: ((payload: Event) => void) | undefined;
249
251
  dir?: string | undefined | undefined;
250
252
  contextmenu?: string | undefined | undefined;
251
253
  hidden?: "" | "hidden" | (boolean | "true" | "false") | "until-found" | undefined;
@@ -314,7 +316,6 @@ declare const __VLS_base: import("vue").DefineComponent<{
314
316
  onTimeupdate?: ((payload: Event) => void) | undefined;
315
317
  onVolumechange?: ((payload: Event) => void) | undefined;
316
318
  onWaiting?: ((payload: Event) => void) | undefined;
317
- onSelect?: ((payload: Event) => void) | undefined;
318
319
  onScroll?: ((payload: Event) => void) | undefined;
319
320
  onScrollend?: ((payload: Event) => void) | undefined;
320
321
  onTouchcancel?: ((payload: TouchEvent) => void) | undefined;
@@ -348,7 +349,6 @@ declare const __VLS_base: import("vue").DefineComponent<{
348
349
  onTransitionstart?: ((payload: TransitionEvent) => void) | undefined;
349
350
  innerHTML?: string | undefined | undefined;
350
351
  color?: string | undefined | undefined;
351
- id?: string | undefined | undefined;
352
352
  lang?: string | undefined | undefined;
353
353
  tabindex?: (string | number) | undefined;
354
354
  'aria-activedescendant'?: string | undefined | undefined;
@@ -14,6 +14,9 @@ declare const __VLS_base: import("vue").DefineComponent<{
14
14
  results?: (string | number) | undefined;
15
15
  placeholder?: string | undefined;
16
16
  bind?: Record<string, unknown>;
17
+ id?: string | undefined;
18
+ href?: string | undefined;
19
+ onSelect?: ((payload: Event) => void) | undefined;
17
20
  dir?: string | undefined;
18
21
  contextmenu?: string | undefined;
19
22
  hidden?: (boolean | "true" | "false") | "" | "hidden" | "until-found" | undefined;
@@ -83,7 +86,6 @@ declare const __VLS_base: import("vue").DefineComponent<{
83
86
  onTimeupdate?: ((payload: Event) => void) | undefined;
84
87
  onVolumechange?: ((payload: Event) => void) | undefined;
85
88
  onWaiting?: ((payload: Event) => void) | undefined;
86
- onSelect?: ((payload: Event) => void) | undefined;
87
89
  onScroll?: ((payload: Event) => void) | undefined;
88
90
  onScrollend?: ((payload: Event) => void) | undefined;
89
91
  onTouchcancel?: ((payload: TouchEvent) => void) | undefined;
@@ -117,13 +119,11 @@ declare const __VLS_base: import("vue").DefineComponent<{
117
119
  onTransitionstart?: ((payload: TransitionEvent) => void) | undefined;
118
120
  innerHTML?: string | undefined;
119
121
  color?: string | undefined;
120
- id?: string | undefined;
121
122
  lang?: string | undefined;
122
123
  media?: string | undefined;
123
124
  target?: string | undefined;
124
125
  type?: string | undefined;
125
126
  tabindex?: (string | number) | undefined;
126
- href?: string | undefined;
127
127
  'aria-activedescendant'?: string | undefined;
128
128
  'aria-atomic'?: (boolean | "true" | "false") | undefined;
129
129
  'aria-autocomplete'?: "none" | "inline" | "list" | "both" | undefined;
@@ -225,6 +225,9 @@ declare const __VLS_base: import("vue").DefineComponent<{
225
225
  results?: (string | number) | undefined;
226
226
  placeholder?: string | undefined;
227
227
  bind?: Record<string, unknown>;
228
+ id?: string | undefined;
229
+ href?: string | undefined;
230
+ onSelect?: ((payload: Event) => void) | undefined;
228
231
  dir?: string | undefined;
229
232
  contextmenu?: string | undefined;
230
233
  hidden?: (boolean | "true" | "false") | "" | "hidden" | "until-found" | undefined;
@@ -294,7 +297,6 @@ declare const __VLS_base: import("vue").DefineComponent<{
294
297
  onTimeupdate?: ((payload: Event) => void) | undefined;
295
298
  onVolumechange?: ((payload: Event) => void) | undefined;
296
299
  onWaiting?: ((payload: Event) => void) | undefined;
297
- onSelect?: ((payload: Event) => void) | undefined;
298
300
  onScroll?: ((payload: Event) => void) | undefined;
299
301
  onScrollend?: ((payload: Event) => void) | undefined;
300
302
  onTouchcancel?: ((payload: TouchEvent) => void) | undefined;
@@ -328,13 +330,11 @@ declare const __VLS_base: import("vue").DefineComponent<{
328
330
  onTransitionstart?: ((payload: TransitionEvent) => void) | undefined;
329
331
  innerHTML?: string | undefined;
330
332
  color?: string | undefined;
331
- id?: string | undefined;
332
333
  lang?: string | undefined;
333
334
  media?: string | undefined;
334
335
  target?: string | undefined;
335
336
  type?: string | undefined;
336
337
  tabindex?: (string | number) | undefined;
337
- href?: string | undefined;
338
338
  'aria-activedescendant'?: string | undefined;
339
339
  'aria-atomic'?: (boolean | "true" | "false") | undefined;
340
340
  'aria-autocomplete'?: "none" | "inline" | "list" | "both" | undefined;
@@ -37,6 +37,8 @@ declare const __VLS_base: import("vue").DefineComponent<{
37
37
  style?: import("vue").StyleValue;
38
38
  results?: (string | number) | undefined;
39
39
  placeholder?: string | undefined | undefined;
40
+ id?: string | undefined | undefined;
41
+ onSelect?: ((payload: Event) => void) | undefined;
40
42
  dir?: string | undefined | undefined;
41
43
  contextmenu?: string | undefined | undefined;
42
44
  hidden?: "" | "hidden" | (boolean | "true" | "false") | "until-found" | undefined;
@@ -106,7 +108,6 @@ declare const __VLS_base: import("vue").DefineComponent<{
106
108
  onTimeupdate?: ((payload: Event) => void) | undefined;
107
109
  onVolumechange?: ((payload: Event) => void) | undefined;
108
110
  onWaiting?: ((payload: Event) => void) | undefined;
109
- onSelect?: ((payload: Event) => void) | undefined;
110
111
  onScroll?: ((payload: Event) => void) | undefined;
111
112
  onScrollend?: ((payload: Event) => void) | undefined;
112
113
  onTouchcancel?: ((payload: TouchEvent) => void) | undefined;
@@ -140,7 +141,6 @@ declare const __VLS_base: import("vue").DefineComponent<{
140
141
  onTransitionstart?: ((payload: TransitionEvent) => void) | undefined;
141
142
  innerHTML?: string | undefined | undefined;
142
143
  color?: string | undefined | undefined;
143
- id?: string | undefined | undefined;
144
144
  lang?: string | undefined | undefined;
145
145
  tabindex?: (string | number) | undefined;
146
146
  'aria-activedescendant'?: string | undefined | undefined;
@@ -256,6 +256,8 @@ declare const __VLS_base: import("vue").DefineComponent<{
256
256
  style?: import("vue").StyleValue;
257
257
  results?: (string | number) | undefined;
258
258
  placeholder?: string | undefined | undefined;
259
+ id?: string | undefined | undefined;
260
+ onSelect?: ((payload: Event) => void) | undefined;
259
261
  dir?: string | undefined | undefined;
260
262
  contextmenu?: string | undefined | undefined;
261
263
  hidden?: "" | "hidden" | (boolean | "true" | "false") | "until-found" | undefined;
@@ -325,7 +327,6 @@ declare const __VLS_base: import("vue").DefineComponent<{
325
327
  onTimeupdate?: ((payload: Event) => void) | undefined;
326
328
  onVolumechange?: ((payload: Event) => void) | undefined;
327
329
  onWaiting?: ((payload: Event) => void) | undefined;
328
- onSelect?: ((payload: Event) => void) | undefined;
329
330
  onScroll?: ((payload: Event) => void) | undefined;
330
331
  onScrollend?: ((payload: Event) => void) | undefined;
331
332
  onTouchcancel?: ((payload: TouchEvent) => void) | undefined;
@@ -359,7 +360,6 @@ declare const __VLS_base: import("vue").DefineComponent<{
359
360
  onTransitionstart?: ((payload: TransitionEvent) => void) | undefined;
360
361
  innerHTML?: string | undefined | undefined;
361
362
  color?: string | undefined | undefined;
362
- id?: string | undefined | undefined;
363
363
  lang?: string | undefined | undefined;
364
364
  tabindex?: (string | number) | undefined;
365
365
  'aria-activedescendant'?: string | undefined | undefined;
@@ -6,7 +6,7 @@
6
6
  <slot name="leading" :item="item" />
7
7
  <div class="k-record-list-text">
8
8
  <span class="k-record-list-title-row">
9
- <span class="k-record-list-title">{{ item.title }}</span>
9
+ <span class="k-record-list-title" :title="item.title">{{ item.title }}</span>
10
10
  <Badge
11
11
  v-if="item.badge"
12
12
  :label="item.badge.label"