@xleddyl/443-components-vue 0.16.62 → 0.16.64

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 (88) hide show
  1. package/CATALOG.md +120 -119
  2. package/README.md +48 -13
  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/Stat.vue.d.ts +4 -4
  13. package/dist/components/data/Tag.vue.d.ts +4 -4
  14. package/dist/components/data/Tree.vue.d.ts +2 -2
  15. package/dist/components/feedback/Alert.vue.d.ts +4 -4
  16. package/dist/components/forms/Calendar.vue.d.ts +2 -2
  17. package/dist/components/forms/ColorInput.vue.d.ts +4 -4
  18. package/dist/components/forms/DateInput.vue.d.ts +4 -4
  19. package/dist/components/forms/DatePicker.vue.d.ts +4 -4
  20. package/dist/components/forms/FileInput.vue.d.ts +4 -4
  21. package/dist/components/forms/NumberInput.vue.d.ts +5 -5
  22. package/dist/components/forms/PaletteSelect.vue.d.ts +4 -4
  23. package/dist/components/forms/PasswordInput.vue.d.ts +4 -4
  24. package/dist/components/forms/PinInput.vue.d.ts +4 -4
  25. package/dist/components/forms/Slider.vue.d.ts +4 -4
  26. package/dist/components/forms/Switch.vue.d.ts +5 -5
  27. package/dist/components/forms/TimeInput.vue.d.ts +4 -4
  28. package/dist/components/forms/TreeSelect.vue.d.ts +4 -4
  29. package/dist/components/layout/Accordion.vue.d.ts +4 -4
  30. package/dist/components/layout/AppShell.vue.d.ts +5 -5
  31. package/dist/components/layout/Card.vue.d.ts +4 -4
  32. package/dist/components/layout/CopyButton.vue.d.ts +4 -4
  33. package/dist/components/layout/NavLink.vue.d.ts +4 -4
  34. package/dist/components/layout/PageHeader.vue.d.ts +1 -1
  35. package/dist/components/layout/Separator.vue.d.ts +1 -1
  36. package/dist/components/layout/Stack.vue.d.ts +6 -6
  37. package/dist/components/layout/Stepper.vue.d.ts +3 -3
  38. package/dist/components/layout/Tabs.vue.d.ts +4 -4
  39. package/dist/components/overlays/CommandPalette.vue.d.ts +2 -2
  40. package/dist/components/overlays/ConfirmDialog.vue.d.ts +4 -4
  41. package/dist/components/overlays/ConfirmHost.vue.d.ts +4 -4
  42. package/dist/components/overlays/ContextMenu.vue.d.ts +2 -2
  43. package/dist/components/overlays/Drawer.vue.d.ts +5 -5
  44. package/dist/components/overlays/DropdownMenu.vue.d.ts +2 -2
  45. package/dist/components/overlays/HoverCard.vue.d.ts +4 -4
  46. package/dist/components/overlays/Modal.vue.d.ts +4 -4
  47. package/dist/components/overlays/Popover.vue.d.ts +4 -4
  48. package/dist/components/overlays/Toaster.vue.d.ts +4 -4
  49. package/dist/components/templates/AccountMenu.vue.d.ts +4 -4
  50. package/dist/components/templates/Brand.vue.d.ts +4 -4
  51. package/dist/components/templates/DashboardLayout.vue.d.ts +2 -2
  52. package/dist/components/templates/DetailPage.vue.d.ts +4 -4
  53. package/dist/components/templates/FormDrawer.vue +7 -2
  54. package/dist/components/templates/FormDrawer.vue.d.ts +2 -2
  55. package/dist/components/templates/SaveBar.vue.d.ts +4 -4
  56. package/dist/components/templates/SettingsModal.vue.d.ts +4 -4
  57. package/dist/components/templates/SettingsPage.vue.d.ts +4 -4
  58. package/dist/components/templates/SettingsSection.vue.d.ts +10 -10
  59. package/dist/components/templates/types.d.ts +1 -0
  60. package/dist/composables/data.d.ts +1 -0
  61. package/dist/composables/data.mjs +1 -0
  62. package/dist/composables/useField.mjs +5 -1
  63. package/dist/composables/useGridConfig.d.ts +14 -0
  64. package/dist/composables/useGridConfig.mjs +16 -0
  65. package/dist/composables/useRouteRecord.d.ts +1 -0
  66. package/dist/composables/useRouteRecord.mjs +29 -2
  67. package/dist/editor/RichTextEditor.vue.d.ts +4 -4
  68. package/dist/grid/DataGrid.vue +18 -12
  69. package/dist/grid/GridToolbar.vue.d.ts +4 -4
  70. package/dist/grid/types.d.ts +1 -1
  71. package/dist/index.d.ts +1 -1
  72. package/dist/index.mjs +1 -0
  73. package/dist/internal/forms/disabled.d.ts +3 -0
  74. package/dist/internal/forms/disabled.mjs +11 -0
  75. package/dist/internal/keys.d.ts +2 -0
  76. package/dist/internal/keys.mjs +1 -0
  77. package/dist/internal/layout/CollapsedTrail.vue.d.ts +4 -4
  78. package/dist/internal/layout/NavGroup.vue.d.ts +4 -4
  79. package/dist/internal/overlays/DialogFrame.vue.d.ts +4 -4
  80. package/dist/internal/overlays/DialogTrail.vue.d.ts +4 -4
  81. package/dist/internal/overlays/OverlayView.vue.d.ts +6 -6
  82. package/dist/nuxt/module.d.ts +3 -1
  83. package/dist/nuxt/module.mjs +3 -1
  84. package/dist/nuxt/runtime/grid.d.ts +2 -0
  85. package/dist/nuxt/runtime/grid.mjs +9 -0
  86. package/dist/nuxt/runtime/layouts/auth.vue.d.ts +6 -6
  87. package/dist/nuxt/runtime/layouts/dashboard.vue.d.ts +6 -6
  88. 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. 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.
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
 
@@ -506,6 +514,25 @@ On your own elements, `paletteClass(color)` gives the class of a palette name an
506
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.
507
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']`.
508
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
+
509
536
  ## Imperative hooks
510
537
 
511
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.
@@ -591,7 +618,15 @@ const confirmDiscard = () => !dirty.value || confirm({ title: 'Discard changes?'
591
618
 
592
619
  ### Deep links
593
620
 
594
- `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
+ ```
595
630
 
596
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.
597
632
 
@@ -744,16 +779,16 @@ Both take the `AuthLayout` frame props and the `brand`, `corner`, `footer` and `
744
779
 
745
780
  ### Page templates
746
781
 
747
- | Component | What it gives you |
748
- | -------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
749
- | `DashboardPage` | PageHeader (`title`, `eyebrow`, `description`, `#actions`), a Stat grid from `stats` (or `#stats`), a content grid (`columns`, default 1 then 3 columns). |
750
- | `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. |
751
- | `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. |
752
- | `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`). |
753
- | `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`. |
754
- | `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`. |
755
- | `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`. |
756
- | `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`. |
757
792
 
758
793
  `useDirtyGuard(dirty, options?)` asks before leaving (router navigation through `ConfirmHost`, or the native confirm) and on tab close. Returns `confirmLeave()` and `allowNext()`.
759
794
 
@@ -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, default: void 0 }
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;
@@ -40,6 +40,8 @@ declare const __VLS_base: import("vue").DefineComponent<{
40
40
  results?: (string | number) | undefined;
41
41
  placeholder?: string | undefined;
42
42
  bind?: Record<string, unknown>;
43
+ id?: string | undefined;
44
+ onSelect?: ((payload: Event) => void) | undefined;
43
45
  dir?: string | undefined;
44
46
  contextmenu?: string | undefined;
45
47
  hidden?: (boolean | "true" | "false") | "" | "hidden" | "until-found" | undefined;
@@ -109,7 +111,6 @@ declare const __VLS_base: import("vue").DefineComponent<{
109
111
  onTimeupdate?: ((payload: Event) => void) | undefined;
110
112
  onVolumechange?: ((payload: Event) => void) | undefined;
111
113
  onWaiting?: ((payload: Event) => void) | undefined;
112
- onSelect?: ((payload: Event) => void) | undefined;
113
114
  onScroll?: ((payload: Event) => void) | undefined;
114
115
  onScrollend?: ((payload: Event) => void) | undefined;
115
116
  onTouchcancel?: ((payload: TouchEvent) => void) | undefined;
@@ -143,7 +144,6 @@ declare const __VLS_base: import("vue").DefineComponent<{
143
144
  onTransitionstart?: ((payload: TransitionEvent) => void) | undefined;
144
145
  innerHTML?: string | undefined;
145
146
  color?: string | undefined;
146
- id?: string | undefined;
147
147
  lang?: string | undefined;
148
148
  media?: string | undefined;
149
149
  target?: string | undefined;
@@ -266,6 +266,8 @@ declare const __VLS_base: import("vue").DefineComponent<{
266
266
  results?: (string | number) | undefined;
267
267
  placeholder?: string | undefined;
268
268
  bind?: Record<string, unknown>;
269
+ id?: string | undefined;
270
+ onSelect?: ((payload: Event) => void) | undefined;
269
271
  dir?: string | undefined;
270
272
  contextmenu?: string | undefined;
271
273
  hidden?: (boolean | "true" | "false") | "" | "hidden" | "until-found" | undefined;
@@ -335,7 +337,6 @@ declare const __VLS_base: import("vue").DefineComponent<{
335
337
  onTimeupdate?: ((payload: Event) => void) | undefined;
336
338
  onVolumechange?: ((payload: Event) => void) | undefined;
337
339
  onWaiting?: ((payload: Event) => void) | undefined;
338
- onSelect?: ((payload: Event) => void) | undefined;
339
340
  onScroll?: ((payload: Event) => void) | undefined;
340
341
  onScrollend?: ((payload: Event) => void) | undefined;
341
342
  onTouchcancel?: ((payload: TouchEvent) => void) | undefined;
@@ -369,7 +370,6 @@ declare const __VLS_base: import("vue").DefineComponent<{
369
370
  onTransitionstart?: ((payload: TransitionEvent) => void) | undefined;
370
371
  innerHTML?: string | undefined;
371
372
  color?: string | undefined;
372
- id?: string | undefined;
373
373
  lang?: string | undefined;
374
374
  media?: string | undefined;
375
375
  target?: string | undefined;
@@ -21,6 +21,8 @@ declare const __VLS_base: import("vue").DefineComponent<{
21
21
  style?: import("vue").StyleValue;
22
22
  results?: (string | number) | undefined;
23
23
  placeholder?: string | undefined | undefined;
24
+ id?: string | undefined | undefined;
25
+ onSelect?: ((payload: Event) => void) | undefined;
24
26
  dir?: string | undefined | undefined;
25
27
  contextmenu?: string | undefined | undefined;
26
28
  hidden?: "" | "hidden" | (boolean | "true" | "false") | "until-found" | undefined;
@@ -90,7 +92,6 @@ declare const __VLS_base: import("vue").DefineComponent<{
90
92
  onTimeupdate?: ((payload: Event) => void) | undefined;
91
93
  onVolumechange?: ((payload: Event) => void) | undefined;
92
94
  onWaiting?: ((payload: Event) => void) | undefined;
93
- onSelect?: ((payload: Event) => void) | undefined;
94
95
  onScroll?: ((payload: Event) => void) | undefined;
95
96
  onScrollend?: ((payload: Event) => void) | undefined;
96
97
  onTouchcancel?: ((payload: TouchEvent) => void) | undefined;
@@ -123,7 +124,6 @@ declare const __VLS_base: import("vue").DefineComponent<{
123
124
  onTransitionrun?: ((payload: TransitionEvent) => void) | undefined;
124
125
  onTransitionstart?: ((payload: TransitionEvent) => void) | undefined;
125
126
  innerHTML?: string | undefined | undefined;
126
- id?: string | undefined | undefined;
127
127
  lang?: string | undefined | undefined;
128
128
  tabindex?: (string | number) | undefined;
129
129
  'aria-activedescendant'?: string | undefined | undefined;
@@ -224,6 +224,8 @@ declare const __VLS_base: import("vue").DefineComponent<{
224
224
  style?: import("vue").StyleValue;
225
225
  results?: (string | number) | undefined;
226
226
  placeholder?: string | undefined | undefined;
227
+ id?: string | undefined | undefined;
228
+ onSelect?: ((payload: Event) => void) | undefined;
227
229
  dir?: string | undefined | undefined;
228
230
  contextmenu?: string | undefined | undefined;
229
231
  hidden?: "" | "hidden" | (boolean | "true" | "false") | "until-found" | undefined;
@@ -293,7 +295,6 @@ declare const __VLS_base: import("vue").DefineComponent<{
293
295
  onTimeupdate?: ((payload: Event) => void) | undefined;
294
296
  onVolumechange?: ((payload: Event) => void) | undefined;
295
297
  onWaiting?: ((payload: Event) => void) | undefined;
296
- onSelect?: ((payload: Event) => void) | undefined;
297
298
  onScroll?: ((payload: Event) => void) | undefined;
298
299
  onScrollend?: ((payload: Event) => void) | undefined;
299
300
  onTouchcancel?: ((payload: TouchEvent) => void) | undefined;
@@ -326,7 +327,6 @@ declare const __VLS_base: import("vue").DefineComponent<{
326
327
  onTransitionrun?: ((payload: TransitionEvent) => void) | undefined;
327
328
  onTransitionstart?: ((payload: TransitionEvent) => void) | undefined;
328
329
  innerHTML?: string | undefined | undefined;
329
- id?: string | undefined | undefined;
330
330
  lang?: string | undefined | undefined;
331
331
  tabindex?: (string | number) | undefined;
332
332
  'aria-activedescendant'?: string | undefined | undefined;