@xleddyl/443-components-vue 0.16.59 → 0.16.61

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 (43) hide show
  1. package/CATALOG.md +116 -116
  2. package/README.md +15 -15
  3. package/dist/chart/chart.css +6 -0
  4. package/dist/components/forms/PasswordInput.vue +2 -2
  5. package/dist/components/forms/Select.vue +4 -1
  6. package/dist/components/layout/Tabs.vue +19 -1
  7. package/dist/components/overlays/ContextMenu.vue +2 -1
  8. package/dist/grid/DataGrid.vue +1 -0
  9. package/dist/grid/data-grid.css +17 -6
  10. package/dist/styles/core/form-field.css +2 -0
  11. package/dist/styles/core/form.css +1 -1
  12. package/dist/styles/core/textarea.css +5 -2
  13. package/dist/styles/data/filter-pills.css +15 -0
  14. package/dist/styles/data/stat.css +2 -1
  15. package/dist/styles/data/tag-list.css +4 -0
  16. package/dist/styles/data/timeline.css +1 -0
  17. package/dist/styles/feedback/alert.css +1 -0
  18. package/dist/styles/feedback/loading-overlay.css +1 -0
  19. package/dist/styles/feedback/progress.css +1 -2
  20. package/dist/styles/forms/choice.css +2 -1
  21. package/dist/styles/forms/color-input.css +6 -0
  22. package/dist/styles/forms/palette-select.css +1 -0
  23. package/dist/styles/forms/password-input.css +7 -0
  24. package/dist/styles/forms/pin-input.css +3 -1
  25. package/dist/styles/forms/popover.css +1 -0
  26. package/dist/styles/forms/segmented.css +2 -0
  27. package/dist/styles/forms/select.css +1 -0
  28. package/dist/styles/forms/slider.css +4 -4
  29. package/dist/styles/forms/tree-select.css +1 -0
  30. package/dist/styles/layout/accordion.css +5 -1
  31. package/dist/styles/layout/card.css +3 -1
  32. package/dist/styles/layout/stepper.css +1 -6
  33. package/dist/styles/overlays/command.css +5 -0
  34. package/dist/styles/overlays/confirm.css +5 -0
  35. package/dist/styles/overlays/menu.css +1 -0
  36. package/dist/styles/overlays/modal.css +3 -0
  37. package/dist/styles/shared.css +7 -7
  38. package/dist/styles/templates/auth-layout.css +1 -1
  39. package/dist/styles/templates/error-page.css +5 -0
  40. package/dist/styles/templates/save-bar.css +3 -1
  41. package/dist/styles/templates/settings-modal.css +5 -0
  42. package/dist/styles/templates/settings-page.css +1 -1
  43. package/package.json +1 -1
package/CATALOG.md CHANGED
@@ -28,117 +28,116 @@ Playground paths in this file are relative to `playground/nuxt/app/pages/compone
28
28
 
29
29
  ## Which component for which task
30
30
 
31
- | Task | Use |
32
- | --------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------- |
33
- | Form with validation, dirty state and server errors | `useForm` + `Form` + `FormField` + field components |
34
- | One labelled field with error, hint and required marker | `FormField` |
35
- | Map a server error (409, 422) to fields | `useForm` option `submitError`, `form.setErrors`, `form.setIssues` |
36
- | Form as a full page with sticky save footer | `FormPage` |
37
- | Create or edit form in a side panel (cancel, save, delete, guard) | `FormDrawer` (`form`, `creating`, `readonly`, `deletable`, `loading`) |
38
- | Warn before the user leaves with unsaved changes | `useDirtyGuard` (or `FormPage`, it has `guard`) |
39
- | Floating "unsaved changes" bar | `SaveBar` |
40
- | Single line text | `Input` |
41
- | Multi line text | `Textarea` |
42
- | Rich text (bold, lists, links) | `RichTextEditor` (group `editor`) |
43
- | Password with strength meter and generator | `PasswordInput` |
44
- | Number with stepper, locale format | `NumberInput` |
45
- | Money or unit prefix and suffix around an input | `InputGroup` + `InputAddon` |
46
- | One choice from a short list (5 or fewer) | `RadioGroup` or `SegmentedControl` |
47
- | One choice from a longer list, no search | `Select` |
48
- | Searchable select, async search, multi select, create option | `Combobox` |
49
- | Pick one node of a hierarchy (category, folder) | `TreeSelect` (`leavesOnly` to allow only leaves) |
50
- | Create new values with a format or rule (tags, codes) | `Combobox` with `creatable`, `createTransform`, `createValidate` |
51
- | Several create actions for the typed text (create here, create in a form) | `Combobox` with `createActions` |
52
- | Several choices as checkboxes | `CheckboxGroup` |
53
- | One yes or no | `Switch` (instant setting) or `Checkbox` (part of a form) |
54
- | Date, date and time, month | `DateInput` (native) or `DatePicker` (popover calendar, ranges) |
55
- | Inline calendar | `Calendar` |
56
- | Time of day | `TimeInput` |
57
- | Color | `ColorInput` |
58
- | Number in a range | `Slider` |
59
- | One time code, OTP | `PinInput` |
60
- | File or folder upload with drop zone | `FileInput` |
61
- | Drop files on any element | `useFileDrop` |
62
- | `useSortable` | Reorder any small list by pointer drag (live, Escape cancels) and Alt with the arrow keys, with an announcement. `TagList` uses it. | `useSortable(containerRef, { items, onMove(items, move), orientation, disabled, handle, canMove, label, movedText })` returns `{ itemProps(index), move(from, to), canMove, dragging, announcement }`. Bind `itemProps(index)` on each item and render `announcement` in a live region. | `data/tag-list.vue` |
63
- | Confirm a destructive action | `useConfirm` |
64
- | Show a message the user must acknowledge | `useAlert` |
65
- | Ask for one text value | `usePrompt` |
66
- | Short message after an action | `toast` |
67
- | Toast for a promise (loading, success, error) | `toast.promise` |
68
- | Toast after saving in an open Drawer | `toast` (the stack moves beside the drawer or above its footer) |
69
- | Detail or edit panel from the side | `Drawer` (or `useDrawer().open`). At 640px or less, a left or right drawer is a full-width sheet from the bottom. |
70
- | Dialog with a form or content | `Modal` (or `useModal().open` to get the result as a promise) |
71
- | Tabs or subpages (breadcrumb and back) in a Modal or Drawer | `tabs` + `v-model:tab`; `trail` + `@navigate` on `Modal` / `Drawer` |
72
- | Buttons in a Modal or Drawer header | `#actions` slot of `Modal` / `Drawer` (right side, before the close button) |
73
- | Deep link to a drawer or modal (`?family=fam_1`, `#family/fam_1`) | `useRouteState('family')` + `:open="!!familyId"`, `location: 'hash'`; settings: `route`, `settingsRoute` |
74
- | One record in the URL (`#family/fam_1`, `#family/new`), with linked entries | `useRouteRecord(key, { find, loaded, canCreate, linkedKeys })`: `open`, `current`, `loading`, `openRecord`, `close`, `replaceId` |
75
- | Commands of the open page in the command search | `usePageCommands(() => CommandItem[])` (DashboardLayout adds the group "This page") |
76
- | A button made from a command (same label, icon and action as the palette) | `CommandButton` (`command`) |
77
- | Short list of records with title, badge, action, skeleton and empty state | `RecordList` |
78
- | Menu opened by a button | `DropdownMenu` |
79
- | Right click menu | `ContextMenu` |
80
- | Small floating panel with content or a form | `Popover` |
81
- | Preview on hover (user card) | `HoverCard` |
82
- | Short label on hover or focus | `Tooltip` |
83
- | Global search, command menu (Cmd+K) | `CommandPalette` (the `DashboardLayout` has it with `search`) |
84
- | Small table, simple sort | `Table` (+ `useTableSort` for client sort) |
85
- | Big table, many rows, editing, Excel-like | `DataGrid` (+ `spreadsheet` prop for Excel-like editing) |
86
- | Filters for a grid (selects, dates in a modal from the toolbar) | `DataGrid` `#filters` slot with `activeFilters` (or `filterCount`), `@filter-remove` and `@filters-reset` |
87
- | Several tags or statuses in one grid cell | `BadgeCell` with an array value (`max` adds a `+N` badge) |
88
- | Whole list page: search, filters, table, pagination | `ListPage` |
89
- | Page numbers and page size | `Pagination` |
90
- | Bulk actions bar for selected rows | `SelectionBar` |
91
- | Filter chips, active filters | `FilterPills` |
92
- | Tags, chips, removable labels | `Tag` |
93
- | Color per group or category (tags, labels, series) | `color` (palette name or hex) on `Tag`, `Badge`, `FilterPill`, `Combobox` options, `BadgeCell` `colors`; `paletteColor(key)` |
94
- | Choose a palette color (a group, a division) | `PaletteSelect` (`v-model` color or null, `clearable` for "Automatic", `custom` for any hex color) |
95
- | Reorder chips by drag and keyboard, drop items from another panel | `TagList` (`sortable`, `removable`, `accept` + `@item-drop`) |
96
- | Reorder any list by drag and keyboard | `useSortable` |
97
- | Status label, counter, dot | `Badge` |
98
- | User picture or initials; stack of users | `Avatar`; `AvatarGroup` |
99
- | Key figure with delta and trend (KPI) | `Stat` |
100
- | Label and value pairs (details) | `DescriptionList` |
101
- | Event history, activity feed | `Timeline` |
102
- | Hierarchy, folders, drag to reorder | `Tree` |
103
- | Charts (line, bar, doughnut) | `ChartPanel` + `LineChart` / `BarChart` / `DoughnutChart` (group `chart`) |
104
- | Tabs | `Tabs` |
105
- | Wizard steps, step indicator (Step 2 of 4) | `Stepper` |
106
- | Collapsible sections, FAQ | `Accordion` |
107
- | Container with title and actions | `Card` |
108
- | Page title, description, breadcrumbs, actions | `PageHeader` (or a page template) |
109
- | Breadcrumbs only | `Breadcrumbs` |
110
- | Dashboard layout with sidebar, search, account and settings | `DashboardLayout` (or the Nuxt layout `k-dashboard`) |
111
- | Actions in a settings section header ("Add user") | `#actions-<id>` on `SettingsModal`, `#settings-actions-<id>` on `DashboardLayout` (gets `page`, `openPage`, `back`) |
112
- | Tabs in a settings section header, like a drawer | `#tabs-<id>` on `SettingsModal`, `#settings-tabs-<id>` on `DashboardLayout`: put a `Tabs` `variant="underline"` `size="sm"` in it |
113
- | Page that fills the panel height (a full height grid) | `content="fill"` or `"centered"` on `DashboardLayout` / `AppShell`, `definePageMeta({ content: 'fill' })` |
114
- | Custom app frame with your own sidebar | `AppShell` + `Sidebar` + `SidebarNav` |
115
- | Login, sign up, reset password page | `AuthLogin` + `AuthLogout` (two step flow); `AuthLayout` (or `k-auth`) for other pages |
116
- | Settings in a modal (account, appearance, your sections) | `SettingsModal` (the `DashboardLayout` embeds it) |
117
- | Settings as a page with sections | `SettingsPage` + `SettingsSection` + `SettingsGroup` |
118
- | Theme and preset choice | `AppearanceSettings`, `ThemeSwitch`, `useTheme`, `usePreset` |
119
- | Remember UI choices per user (theme, sidebar, grid columns, page size) | `createPreferences` with your store (`createRemotePreferenceStore` for an API), `usePreference` for your own keys |
120
- | Detail page of one record with tabs and aside | `DetailPage` |
121
- | Overview page with stats | `DashboardPage` |
122
- | First run screen with steps | `EmptyPage` |
123
- | Error page, 404 page | `ErrorPage`, `NotFoundPage` |
124
- | Empty state inside a card or list | `EmptyState` |
125
- | Loading placeholder for content | `Skeleton` |
126
- | Loading placeholder for a form or a list (rough, not 1:1 with the UI) | `SkeletonForm` (`fields`, `columns`), `SkeletonList` (`rows`, `lines`, `avatar`, `action`) |
127
- | Spinner; spinner that fills its container | `Spinner`; `Spinner block` |
128
- | Cover an area while it loads | `LoadingOverlay` |
129
- | Global loading bar or blocking screen | `useLoading` / `withLoading` (needs `OverlayHost`) |
130
- | Loading flag for one button or form | `useLoadingState`, or `loading` prop of `Button` |
131
- | Progress of a task | `Progress` (bar) or `ProgressRing` |
132
- | Value in a known range (quota, score) | `Meter` |
133
- | Inline message (info, warning, error) | `Alert` |
134
- | Copy text to the clipboard | `CopyButton` or `useCopy` |
135
- | Keyboard shortcut handler; show a shortcut | `useHotkey`; `Kbd` |
136
- | Row or column layout with gap; responsive grid | `Stack`; `Grid` |
137
- | Line or labelled divider; section heading with actions | `Separator` |
138
- | Group of buttons or tools with arrow key navigation | `Toolbar` |
139
- | Text for screen readers only | `VisuallyHidden` |
140
- | Translations of the component texts | `useLocale` (languages: en, it, de) |
141
- | Custom icons | `createIcons`, `provideIcons`, Nuxt option `k.icons` |
31
+ | Task | Use |
32
+ | --------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- |
33
+ | Form with validation, dirty state and server errors | `useForm` + `Form` + `FormField` + field components |
34
+ | One labelled field with error, hint and required marker | `FormField` |
35
+ | Map a server error (409, 422) to fields | `useForm` option `submitError`, `form.setErrors`, `form.setIssues` |
36
+ | Form as a full page with sticky save footer | `FormPage` |
37
+ | Create or edit form in a side panel (cancel, save, delete, guard) | `FormDrawer` (`form`, `creating`, `readonly`, `deletable`, `loading`) |
38
+ | Warn before the user leaves with unsaved changes | `useDirtyGuard` (or `FormPage`, it has `guard`) |
39
+ | Floating "unsaved changes" bar | `SaveBar` |
40
+ | Single line text | `Input` |
41
+ | Multi line text | `Textarea` |
42
+ | Rich text (bold, lists, links) | `RichTextEditor` (group `editor`) |
43
+ | Password with strength meter and generator | `PasswordInput` |
44
+ | Number with stepper, locale format | `NumberInput` |
45
+ | Money or unit prefix and suffix around an input | `InputGroup` + `InputAddon` |
46
+ | One choice from a short list (5 or fewer) | `RadioGroup` or `SegmentedControl` |
47
+ | One choice from a longer list, no search | `Select` |
48
+ | Searchable select, async search, multi select, create option | `Combobox` |
49
+ | Pick one node of a hierarchy (category, folder) | `TreeSelect` (`leavesOnly` to allow only leaves) |
50
+ | Create new values with a format or rule (tags, codes) | `Combobox` with `creatable`, `createTransform`, `createValidate` |
51
+ | Several create actions for the typed text (create here, create in a form) | `Combobox` with `createActions` |
52
+ | Several choices as checkboxes | `CheckboxGroup` |
53
+ | One yes or no | `Switch` (instant setting) or `Checkbox` (part of a form) |
54
+ | Date, date and time, month | `DateInput` (native) or `DatePicker` (popover calendar, ranges) |
55
+ | Inline calendar | `Calendar` |
56
+ | Time of day | `TimeInput` |
57
+ | Color | `ColorInput` |
58
+ | Number in a range | `Slider` |
59
+ | One time code, OTP | `PinInput` |
60
+ | File or folder upload with drop zone | `FileInput` |
61
+ | Drop files on any element | `useFileDrop` |
62
+ | Confirm a destructive action | `useConfirm` |
63
+ | Show a message the user must acknowledge | `useAlert` |
64
+ | Ask for one text value | `usePrompt` |
65
+ | Short message after an action | `toast` |
66
+ | Toast for a promise (loading, success, error) | `toast.promise` |
67
+ | Toast after saving in an open Drawer | `toast` (the stack moves beside the drawer or above its footer) |
68
+ | Detail or edit panel from the side | `Drawer` (or `useDrawer().open`). At 640px or less, a left or right drawer is a full-width sheet from the bottom. |
69
+ | Dialog with a form or content | `Modal` (or `useModal().open` to get the result as a promise) |
70
+ | Tabs or subpages (breadcrumb and back) in a Modal or Drawer | `tabs` + `v-model:tab`; `trail` + `@navigate` on `Modal` / `Drawer` |
71
+ | Buttons in a Modal or Drawer header | `#actions` slot of `Modal` / `Drawer` (right side, before the close button) |
72
+ | Deep link to a drawer or modal (`?family=fam_1`, `#family/fam_1`) | `useRouteState('family')` + `:open="!!familyId"`, `location: 'hash'`; settings: `route`, `settingsRoute` |
73
+ | One record in the URL (`#family/fam_1`, `#family/new`), with linked entries | `useRouteRecord(key, { find, loaded, canCreate, linkedKeys })`: `open`, `current`, `loading`, `openRecord`, `close`, `replaceId` |
74
+ | Commands of the open page in the command search | `usePageCommands(() => CommandItem[])` (DashboardLayout adds the group "This page") |
75
+ | A button made from a command (same label, icon and action as the palette) | `CommandButton` (`command`) |
76
+ | Short list of records with title, badge, action, skeleton and empty state | `RecordList` |
77
+ | Menu opened by a button | `DropdownMenu` |
78
+ | Right click menu | `ContextMenu` |
79
+ | Small floating panel with content or a form | `Popover` |
80
+ | Preview on hover (user card) | `HoverCard` |
81
+ | Short label on hover or focus | `Tooltip` |
82
+ | Global search, command menu (Cmd+K) | `CommandPalette` (the `DashboardLayout` has it with `search`) |
83
+ | Small table, simple sort | `Table` (+ `useTableSort` for client sort) |
84
+ | Big table, many rows, editing, Excel-like | `DataGrid` (+ `spreadsheet` prop for Excel-like editing) |
85
+ | Filters for a grid (selects, dates in a modal from the toolbar) | `DataGrid` `#filters` slot with `activeFilters` (or `filterCount`), `@filter-remove` and `@filters-reset` |
86
+ | Several tags or statuses in one grid cell | `BadgeCell` with an array value (`max` adds a `+N` badge) |
87
+ | Whole list page: search, filters, table, pagination | `ListPage` |
88
+ | Page numbers and page size | `Pagination` |
89
+ | Bulk actions bar for selected rows | `SelectionBar` |
90
+ | Filter chips, active filters | `FilterPills` |
91
+ | Tags, chips, removable labels | `Tag` |
92
+ | Color per group or category (tags, labels, series) | `color` (palette name or hex) on `Tag`, `Badge`, `FilterPill`, `Combobox` options, `BadgeCell` `colors`; `paletteColor(key)` |
93
+ | Choose a palette color (a group, a division) | `PaletteSelect` (`v-model` color or null, `clearable` for "Automatic", `custom` for any hex color) |
94
+ | Reorder chips by drag and keyboard, drop items from another panel | `TagList` (`sortable`, `removable`, `accept` + `@item-drop`) |
95
+ | Reorder any list by drag and keyboard | `useSortable` |
96
+ | Status label, counter, dot | `Badge` |
97
+ | User picture or initials; stack of users | `Avatar`; `AvatarGroup` |
98
+ | Key figure with delta and trend (KPI) | `Stat` |
99
+ | Label and value pairs (details) | `DescriptionList` |
100
+ | Event history, activity feed | `Timeline` |
101
+ | Hierarchy, folders, drag to reorder | `Tree` |
102
+ | Charts (line, bar, doughnut) | `ChartPanel` + `LineChart` / `BarChart` / `DoughnutChart` (group `chart`) |
103
+ | Tabs | `Tabs` |
104
+ | Wizard steps, step indicator (Step 2 of 4) | `Stepper` |
105
+ | Collapsible sections, FAQ | `Accordion` |
106
+ | Container with title and actions | `Card` |
107
+ | Page title, description, breadcrumbs, actions | `PageHeader` (or a page template) |
108
+ | Breadcrumbs only | `Breadcrumbs` |
109
+ | Dashboard layout with sidebar, search, account and settings | `DashboardLayout` (or the Nuxt layout `k-dashboard`) |
110
+ | Actions in a settings section header ("Add user") | `#actions-<id>` on `SettingsModal`, `#settings-actions-<id>` on `DashboardLayout` (gets `page`, `openPage`, `back`) |
111
+ | Tabs in a settings section header, like a drawer | `#tabs-<id>` on `SettingsModal`, `#settings-tabs-<id>` on `DashboardLayout`: put a `Tabs` `variant="underline"` `size="sm"` in it |
112
+ | Page that fills the panel height (a full height grid) | `content="fill"` or `"centered"` on `DashboardLayout` / `AppShell`, `definePageMeta({ content: 'fill' })` |
113
+ | Custom app frame with your own sidebar | `AppShell` + `Sidebar` + `SidebarNav` |
114
+ | Login, sign up, reset password page | `AuthLogin` + `AuthLogout` (two step flow); `AuthLayout` (or `k-auth`) for other pages |
115
+ | Settings in a modal (account, appearance, your sections) | `SettingsModal` (the `DashboardLayout` embeds it) |
116
+ | Settings as a page with sections | `SettingsPage` + `SettingsSection` + `SettingsGroup` |
117
+ | Theme and preset choice | `AppearanceSettings`, `ThemeSwitch`, `useTheme`, `usePreset` |
118
+ | Remember UI choices per user (theme, sidebar, grid columns, page size) | `createPreferences` with your store (`createRemotePreferenceStore` for an API), `usePreference` for your own keys |
119
+ | Detail page of one record with tabs and aside | `DetailPage` |
120
+ | Overview page with stats | `DashboardPage` |
121
+ | First run screen with steps | `EmptyPage` |
122
+ | Error page, 404 page | `ErrorPage`, `NotFoundPage` |
123
+ | Empty state inside a card or list | `EmptyState` |
124
+ | Loading placeholder for content | `Skeleton` |
125
+ | Loading placeholder for a form or a list (rough, not 1:1 with the UI) | `SkeletonForm` (`fields`, `columns`), `SkeletonList` (`rows`, `lines`, `avatar`, `action`) |
126
+ | Spinner; spinner that fills its container | `Spinner`; `Spinner block` |
127
+ | Cover an area while it loads | `LoadingOverlay` |
128
+ | Global loading bar or blocking screen | `useLoading` / `withLoading` (needs `OverlayHost`) |
129
+ | Loading flag for one button or form | `useLoadingState`, or `loading` prop of `Button` |
130
+ | Progress of a task | `Progress` (bar) or `ProgressRing` |
131
+ | Value in a known range (quota, score) | `Meter` |
132
+ | Inline message (info, warning, error) | `Alert` |
133
+ | Copy text to the clipboard | `CopyButton` or `useCopy` |
134
+ | Keyboard shortcut handler; show a shortcut | `useHotkey`; `Kbd` |
135
+ | Row or column layout with gap; responsive grid | `Stack`; `Grid` |
136
+ | Line or labelled divider; section heading with actions | `Separator` |
137
+ | Group of buttons or tools with arrow key navigation | `Toolbar` |
138
+ | Text for screen readers only | `VisuallyHidden` |
139
+ | Translations of the component texts | `useLocale` (languages: en, it, de) |
140
+ | Custom icons | `createIcons`, `provideIcons`, Nuxt option `k.icons` |
142
141
 
143
142
  ## Core
144
143
 
@@ -160,7 +159,7 @@ Playground paths in this file are relative to `playground/nuxt/app/pages/compone
160
159
 
161
160
  ## Forms
162
161
 
163
- All field components work inside `FormField` and take `invalid`, `disabled`, `readonly`, `required` and `size`. They use `v-model`.
162
+ All field components work inside `FormField` and take `invalid`, `disabled`, `readonly`, `required` and `size`, except: `Select` has no `readonly`, `Slider` and `PaletteSelect` have no `required`, `Calendar` takes only `disabled` and `readonly`. They use `v-model`.
164
163
 
165
164
  | Component | Purpose and when to use it | Main props, models, slots, events | Playground |
166
165
  | ------------------ | ---------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------- |
@@ -237,7 +236,7 @@ Mount `OverlayHost` once for the imperative hooks (see [Composables](#composable
237
236
  | `Stepper` | Step indicator for wizards and multi step flows (import, checkout). Horizontal or vertical, compact on narrow widths. | Model: `v-model` (current step value). Props: `steps` (`value`, `label`, `description`, `icon`, `disabled`, `state`: `complete` or `error`), `label`, `orientation`, `size`, `linear` (only completed and current steps clickable), `readonly`, `compact` (`'auto'` by default, `true`, `false`), `summary` (false hides the compact "Step 2 of 4" line), `positionLabel`, `completeLabel`, `errorLabel`. Event: `select`. | `layout/stepper.vue` |
238
237
  | `Tabs` | Tabs with panels, badges and dots. Segmented or underline. | Model: `v-model` (active value). Props: `items` (`value`, `label`, `icon`, `badge`, `badgeTone`, `dot`, `disabled`), `variant`, `size`, `lazy`, `fill`, `stretch`, `inset`, `controls` (id of a panel outside the component: only the tab list renders). Slots: `panel-<value>`, `panel`. | `layout/tabs.vue` |
239
238
  | `Accordion` | Collapsible sections. | Model: `v-model` (open value or values). Props: `items` (`value`, `title`, `description`, `content`, `icon`), `multiple`, `collapsible`, `variant`. Slots: default, `title`. | `layout/accordion.vue` |
240
- | `Separator` | Divider, labelled divider, or section heading with description and actions. | Props: `orientation`, `variant` (label, heading), `label`, `description`, `align`, `level`. Slots: default, `description`, `actions`. | `layout/separator.vue` |
239
+ | `Separator` | Divider, labelled divider, or section heading with description and actions. | Props: `orientation`, `variant` (label, heading), `label`, `description`, `align`, `level`, `lines` (default `true`; `false` hides the lines of either variant). Slots: default, `description`, `actions`. | `layout/separator.vue` |
241
240
  | `Stack` | Flex row or column with gap. | Props: `direction`, `gap` (none to xl), `align`, `justify`, `wrap`, `responsive`, `as`. | `layout/stack.vue` |
242
241
  | `Grid` | Responsive CSS grid. | Props: `columns` (number or breakpoints), `minItemWidth` (auto fit), `gap`, `as`. | `layout/grid.vue` |
243
242
  | `Toolbar` | Group of controls with arrow key navigation (ARIA toolbar). | Props: `label`, `orientation`, `roving`, `bordered`. | `layout/toolbar.vue` |
@@ -284,7 +283,7 @@ Templates combine core parts into whole pages and layouts. Start from them for n
284
283
  | `SettingsModal` | Settings dialog with nav, built-in account and appearance sections, your own sections and subpages. A subpage title is a one line trail. | Models: `v-model:open`, `v-model:section`, `v-model:pages`. Props: `sections` (`id`, `label`, `icon`, `group`, `badge`, `to`), `account`, `presets`, `title`, `onSignOut`, `hideSession`, `beforeClose`, `route` (sync with `?settings=<section>/<page>`), `routeLocation` (`'hash'`: `#settings/<section>/<page>`), `accountSection` (id with the built-in account content, default `account`), `resolvePage(section, id, parents)`. Slots: `section-<id>`, `actions-<id>` (right of the header row, also on a subpage), `tabs-<id>` (tabs at the bottom of the header, like a drawer; the strip shows only when the slot renders content), `account-start` (above the profile card), `account-fields`. | `templates/settings-modal.vue` |
285
284
  | `AppearanceSettings` | Theme (light, dark, system) and preset cards. Used by `SettingsModal`. Use alone in a settings page. | Props: `presets` (list or false), `themes`, `level`. | `presets.vue` (pages root) |
286
285
  | `SaveBar` | Floating bar with save and discard for unsaved changes. | Props: `visible`, `saving`, `message`, `saveLabel`, `discardLabel`, `form`. Slots: default, `actions`. Events: `save`, `discard`. | `templates/settings-page.vue` |
287
- | `EmptyPage` | First run screen with illustration, actions and onboarding steps. | Props: `title`, `description`, `icon`, `actionLabel`, `actionTo`, `onAction`, `secondaryLabel`, `steps` (`title`, `description`, `done`, `to`), `fill`. Slots: default, `illustration`, `title`, `description`, `actions`. | `templates/empty-page.vue` |
286
+ | `EmptyPage` | First run screen with illustration, actions and onboarding steps. | Props: `title`, `description`, `icon`, `actionLabel`, `actionTo`, `onAction`, `actionIcon`, `secondaryLabel`, `secondaryTo`, `secondaryHref`, `onSecondary`, `steps` (`title`, `description`, `done`, `to`), `fill`. Slots: default, `illustration`, `title`, `description`, `actions`. | `templates/empty-page.vue` |
288
287
  | `ErrorPage` | Error screen. Reads a Nuxt `error`. Use it in `app/error.vue`. | Props: `error`, `statusCode`, `title`, `message`, `homeTo`, `homeLabel`, `retryLabel`, `brandName`, `fill`, `onHome`, `onRetry`. Slots: default, `title`, `message`, `actions`, `brand`. | `templates/error-page.vue` |
289
288
  | `NotFoundPage` | 404 screen. | Props: `title`, `message`, `homeTo`, `homeLabel`, `backLabel`, `brandName`, `fill`, `onHome`. Slots: default, `actions`, `brand`. | `templates/error-page.vue` |
290
289
  | `Brand` | Logo and name block (image URL, inline SVG or component). | Props: `name`, `subtitle`, `icon`, `logo`, `to`, `size`, `accent`, `hideText`, `showName`. Slots: default, `logo`, `mark`, `subtitle`. | `templates/dashboard-layout.vue` |
@@ -299,8 +298,8 @@ Import from `@xleddyl/443-components-vue/grid`. It wraps AG Grid Community.
299
298
  | Component | Purpose and when to use it | Main props, models, slots, events | Playground |
300
299
  | ----------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------- |
301
300
  | `DataGrid` | Big table: virtual scroll, column menu, search, CSV export, selection, server sort and paging, inline editing. For small tables use `Table`. | Models: `v-model:query`, `v-model:page`, `v-model:pageSize`, `v-model:sort` (`{ column, direction }`). Props: `rows`, `columns` (AG Grid `ColDef`), `rowIdKey` or `getRowId`, `storageKey` (columns and page size in the preferences store; without `columnMenu` the column visibility always comes from `columns`), `density`, `selectable`, `loading`, `height`, `fill`, `autoHeight`, `toolbar`, `searchable`, `columnMenu`, `exportable`, `serverSort`, `pagination`, `serverPagination`, `total`, `filterable`, `editable`, `spreadsheet`, `gridOptions`, `messages`, `filterCount`, `activeFilters` (`{ id, label, value }[]`, removable pills next to the filter button; a click opens the filters). Slots: `actions`, `actions-end` (after the column menu and export buttons), `filters` (`{ close, count }`, hosted in a modal opened by a funnel button next to the search). Events: `filtersReset`, `filterRemove` (id), `rowClick`, `selectionChange`, `sortChange`, `filterChange`, `cellsChange`, `cellsInvalid`, `dirtyChange`, `rangeChange`, `copy`. | `grid/data-grid.vue` |
302
- | `DataGrid` with `spreadsheet` | Excel-like editing: cell range selection, copy and paste (TSV), fill down and right, clear, undo and redo, dirty cell tracking. Set `rowIdKey` or `getRowId`. | Template ref methods (`GridSpreadsheetMethods`): `getRange`, `getSelectedCells`, `selectRange`, `selectAll`, `setRangeValue`, `copyRange`, `paste`, `fillDown`, `fillRight`, `clearCells`, `undo`, `redo`, `getDirtyCells`, `clearDirty`. The `actions` slot gets the same methods plus `range`, `selectedCellCount`, `dirtyCount`, `canUndo`, `canRedo`. Use `cellsChange` to save edits, `cellsInvalid` for rejected input. | `grid/spreadsheet.vue` |
303
- | `GridToolbar` | Toolbar of `DataGrid` (search, column menu, export). `DataGrid` already renders it. Use it alone only for a custom grid setup. | Props: `api`, `searchable`, `columnMenu`, `exportable`, `exportFileName`, `debounce`, `filterCount`, `activeFilters`. Model: `v-model` (query). Slots: default (actions), `filters`. Events: `resetColumns`, `filtersReset`, `filterRemove`. | - |
301
+ | `DataGrid` with `spreadsheet` | Excel-like editing: cell range selection, copy and paste (TSV), fill down and right, clear, undo and redo, dirty cell tracking. Set `rowIdKey` or `getRowId`. | Template ref methods (`GridSpreadsheetMethods`): `getRange`, `getSelectedCells`, `selectRange`, `selectAll`, `setRangeValue`, `copyRange`, `paste`, `fillDown`, `fillRight`, `clearCells`, `clearRange`, `undo`, `redo`, `clearHistory`, `getDirtyCells`, `clearDirty`. The `actions` slot gets the same methods plus `range`, `selectedCellCount`, `dirtyCount`, `canUndo`, `canRedo`. Use `cellsChange` to save edits, `cellsInvalid` for rejected input. | `grid/spreadsheet.vue` |
302
+ | `GridToolbar` | Toolbar of `DataGrid` (search, column menu, export). `DataGrid` already renders it. Use it alone only for a custom grid setup. | Props: `api`, `searchable`, `columnMenu`, `exportable`, `exportFileName`, `debounce`, `filterCount`, `activeFilters`. Model: `v-model` (query). Slots: default (actions), `end`, `filters`. Events: `resetColumns`, `filtersReset`, `filterRemove`. | - |
304
303
  | Cell renderers | Use as `cellRenderer` in a column definition, with `cellRendererParams`. | `BadgeCell` (`tones`, `colors`, `labels`, `titles` (a record or a function of the value), `defaultTone`, `variant`; array values render one badge each, `max` adds a `+N` badge, `wrap`), `BooleanCell` (`trueLabel`, `falseLabel`), `DateCell` (`locale`, `options`, `relative`), `EmptyCell` (placeholder for empty values), `ImageCell` (`alt`, `rounded`, `fit`: `cover`, `contain` or `natural` (original aspect, height `size`), `size`), `LinkCell` (`href`, `label`, `target`), `ButtonCell` (`onClick`, `label`, `ariaLabel`, `emptyLabel`; an inline button that does not trigger the row click). | `grid/data-grid.vue` |
305
304
 
306
305
  Grid helpers: `registerGridModules`, `registerGridEditorModules`, `registerGridFilterModules`, `registerGridSpreadsheetModules` (register AG Grid modules by hand), `createGridTheme`, `parseTsv`, `formatTsv`.
@@ -350,6 +349,7 @@ All are exported from `@xleddyl/443-components-vue` and auto-imported in Nuxt.
350
349
  | `useLoadingState` | Local loading and error flag for a button or form. | `const { loading, error, run } = useLoadingState()`; `await run(() => api.save())`. | `overlays/hooks.vue` |
351
350
  | `useDirtyGuard` | Ask before leaving a page or closing the tab with unsaved changes. | `useDirtyGuard(dirty, options?)`. Returns `confirmLeave()` and `allowNext()`. `FormPage` already uses it. | `templates/form-page.vue` |
352
351
  | `useFileDrop` | Make any element a drop zone. Use `FileInput` when you need the full control. | `useFileDrop(targetRef, { onDrop(files, event), disabled, ignore })` returns `{ over, reset }`. `readDroppedFiles(dataTransfer)` walks dropped folders. | `forms/file-input.vue` |
352
+ | `useSortable` | Reorder any small list by pointer drag (live, Escape cancels) and Alt with the arrow keys, with an announcement. `TagList` uses it. | `useSortable(containerRef, { items, onMove(items, move), orientation, disabled, handle, canMove, label, movedText })` returns `{ itemProps(index), move(from, to), canMove, dragging, announcement }`. Bind `itemProps(index)` on each item and render `announcement` in a live region. | `data/tag-list.vue` |
353
353
  | `useHotkey` | Keyboard shortcut for a page or component. | `useHotkey('mod+k', handler, { enabled, preventDefault, allowInInputs, target })`. `formatHotkey` and `ariaKeyShortcuts` are exported. | `overlays/command-palette.vue` |
354
354
  | `useCopy` | Copy text with a `copied` flag. | `const { copy, copied, error } = useCopy({ resetAfter })`. | `layout/copy-button.vue` |
355
355
  | `useTableSort` | Client side sort for `Table`. | `const { sort, sorted } = useTableSort(rows, { columns, initial, locale })`. Bind `sort` to `v-model:sort` and render `sorted`. | `data/table.vue` |
package/README.md CHANGED
@@ -342,7 +342,7 @@ const form = useForm({
342
342
  })
343
343
  ```
344
344
 
345
- Issues are keyed by their first path segment and by their full dotted path (`blocks.0.title`), so a nested `FormField name="blocks.0.title"` shows its own error. Pass `issueKey: (path) => string | string[]` to choose the keys yourself. Issues with an empty path become `rootErrors`, which `Form` renders as alerts above the content (`alerts="end"` moves them below, `alerts="false"` hides them, the `#alerts` slot replaces them). `setError('', message)` adds a root error, for example from the server.
345
+ Issues are keyed by their first path segment and by their full dotted path (`blocks.0.title`), so a nested `FormField name="blocks.0.title"` shows its own error. Pass `issueKey: (path) => string | string[]` to choose the keys yourself. Issues with an empty path become `rootErrors`, which `Form` renders as alerts above the content (`alerts="end"` moves them below, `:alerts="false"` hides them, the `#alerts` slot replaces them). `setError('', message)` adds a root error, for example from the server.
346
346
 
347
347
  Server errors. `form.setIssues(issues)` takes Standard Schema shaped issues (`FormIssueInput`, `{ message, path? }`), keys them like validator issues (first segment and dotted path) and shows them on their fields; an empty path becomes a root error. Messages go through `translateMessage` (`kind: 'error'`). When `onSubmit` throws, a `submitError` resolver (`FormSubmitErrorResolver`, `(error) => FormSubmitError | null | undefined`, with `FormSubmitError` `{ message?, issues? }`) turns the error into issues: `submit()` then resolves `false` instead of throwing, `Form` focuses the first invalid field (or the alerts), `form.submitError` holds the mapped result, and `message` becomes a root error when no issue landed on a field. Set the resolver once in `createFormConfig` / `provideFormConfig`, or per form in `useForm({ submitError })`, which wins. Without a resolver, or when it returns nothing (or neither a message nor issues), the error is thrown as before. Server errors are stale once the user edits: changing a field drops the server errors of that field and its nested paths, and the next submit drops the rest. `setError` keeps its behavior: its errors stay until the field validates again (after the first submit every edit validates the field, so they clear on edit too; before it they stay).
348
348
 
@@ -424,20 +424,20 @@ Several controls in one `FormField`. Only the primary control takes the field id
424
424
 
425
425
  ## Components
426
426
 
427
- | Group | Components |
428
- | --------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
429
- | core | Root, Icon, Button, Spinner, Input, Textarea, FormField, FieldMessage, FieldBoundary, Form, FormAlerts, Kbd, VisuallyHidden |
430
- | forms | Calendar, Checkbox, CheckboxGroup, ColorInput, Combobox, DateInput, DatePicker, FileInput, InputAddon, InputGroup, NumberInput, PaletteSelect, PasswordInput, PinInput, Radio, RadioGroup, SegmentedControl, Select, Slider, Switch, TimeInput |
431
- | overlays | CommandPalette, ConfirmDialog, ConfirmHost, ContextMenu, Drawer, DropdownMenu, HoverCard, Modal, OverlayHost, Popover, Toaster, Tooltip |
432
- | data | Avatar, AvatarGroup, Badge, DescriptionList, FilterPill, FilterPills, Pagination, SelectionBar, Stat, Table, Tag, TagList, Timeline, Tree |
433
- | layout | Accordion, AppShell, Breadcrumbs, Card, CopyButton, Grid, NavLink, PageHeader, Separator, Sidebar, SidebarNav, SidebarSection, Stack, Stepper, Tabs, ThemeSwitch, Toolbar |
434
- | templates | DashboardLayout, AuthLayout, AuthLogin, AuthLogout, DashboardPage, ListPage, DetailPage, FormPage, SettingsPage, SettingsSection, SettingsModal, SettingsGroup, AppearanceSettings, SaveBar, ErrorPage, NotFoundPage, EmptyPage, Brand, AccountMenu |
435
- | feedback | Alert, EmptyState, LoadingOverlay, Meter, Progress, ProgressRing, Skeleton |
436
- | grid | DataGrid, GridToolbar, cell renderers (BadgeCell, BooleanCell, ButtonCell, DateCell, EmptyCell, ImageCell, LinkCell) |
437
- | editor | RichTextEditor |
438
- | chart | ChartPanel, ChartLegend, LineChart, BarChart, DoughnutChart |
439
-
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`, `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).
427
+ | Group | Components |
428
+ | --------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
429
+ | core | Root, Icon, Button, Spinner, Input, Textarea, FormField, FieldMessage, FieldBoundary, Form, FormAlerts, Kbd, VisuallyHidden |
430
+ | forms | Calendar, Checkbox, CheckboxGroup, ColorInput, Combobox, DateInput, DatePicker, FileInput, InputAddon, InputGroup, NumberInput, PaletteSelect, PasswordInput, PinInput, Radio, RadioGroup, SegmentedControl, Select, Slider, Switch, TimeInput, TreeSelect |
431
+ | overlays | CommandButton, CommandPalette, ConfirmDialog, ConfirmHost, ContextMenu, Drawer, DropdownMenu, HoverCard, Modal, OverlayHost, Popover, Toaster, Tooltip |
432
+ | data | Avatar, AvatarGroup, Badge, DescriptionList, FilterPill, FilterPills, Pagination, RecordList, SelectionBar, Stat, Table, Tag, TagList, Timeline, Tree |
433
+ | layout | Accordion, AppShell, Breadcrumbs, Card, CopyButton, Grid, NavLink, PageHeader, Separator, Sidebar, SidebarNav, SidebarSection, Stack, Stepper, Tabs, ThemeSwitch, Toolbar |
434
+ | templates | DashboardLayout, AuthLayout, AuthLogin, AuthLogout, DashboardPage, ListPage, DetailPage, FormPage, SettingsPage, SettingsSection, SettingsModal, SettingsGroup, AppearanceSettings, SaveBar, ErrorPage, NotFoundPage, EmptyPage, Brand, AccountMenu, FormDrawer |
435
+ | feedback | Alert, EmptyState, LoadingOverlay, Meter, Progress, ProgressRing, Skeleton, SkeletonForm, SkeletonList |
436
+ | grid | DataGrid, GridToolbar, cell renderers (BadgeCell, BooleanCell, ButtonCell, DateCell, EmptyCell, ImageCell, LinkCell) |
437
+ | editor | RichTextEditor |
438
+ | chart | ChartPanel, ChartLegend, LineChart, BarChart, DoughnutChart |
439
+
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).
441
441
 
442
442
  ### Colors
443
443
 
@@ -66,7 +66,9 @@
66
66
 
67
67
  .k-chart.k-chart-legend-right {
68
68
  flex-direction: row;
69
+ flex-wrap: wrap;
69
70
  align-items: center;
71
+ justify-content: center;
70
72
  gap: 1.25rem;
71
73
  }
72
74
 
@@ -121,6 +123,10 @@
121
123
  list-style: none;
122
124
  }
123
125
 
126
+ .k-chart-legend > li {
127
+ min-width: 0;
128
+ }
129
+
124
130
  .k-chart-legend.is-bottom {
125
131
  justify-content: center;
126
132
  }
@@ -45,7 +45,7 @@
45
45
  :class="{ 'is-done': copied }"
46
46
  :aria-label="copyText"
47
47
  :title="copied ? copiedText : copyText"
48
- :disabled="!value || disabled || void 0"
48
+ :disabled="!value || control.disabled.value || void 0"
49
49
  @click="copyValue"
50
50
  >
51
51
  <Icon :name="copied ? 'clipboard-document-check' : 'clipboard-document'" />
@@ -55,7 +55,7 @@
55
55
  class="k-password-input-action"
56
56
  :aria-label="visible ? hideText : showText"
57
57
  :title="visible ? hideText : showText"
58
- :disabled="disabled || void 0"
58
+ :disabled="control.disabled.value || void 0"
59
59
  @click="visible = !visible"
60
60
  >
61
61
  <Icon :name="visible ? 'eye-slash' : 'eye'" />
@@ -35,7 +35,10 @@
35
35
  >
36
36
  {{ placeholder }}
37
37
  </option>
38
- <template v-for="entry in options" :key="entry.label">
38
+ <template
39
+ v-for="entry in options"
40
+ :key="isGroup(entry) ? `group:${entry.label}` : keyOf(entry.value)"
41
+ >
39
42
  <optgroup v-if="isGroup(entry)" :label="entry.label" :disabled="entry.disabled">
40
43
  <option
41
44
  v-for="option in entry.options"
@@ -131,7 +131,10 @@ watch(
131
131
  (value) => {
132
132
  if (value !== void 0) visited.value.add(value);
133
133
  focusIndex.value = selectedIndex.value;
134
- nextTick(measure);
134
+ nextTick(() => {
135
+ measure();
136
+ revealSelected();
137
+ });
135
138
  },
136
139
  { immediate: true }
137
140
  );
@@ -176,6 +179,21 @@ function measure() {
176
179
  if (!tab || !list.value) return;
177
180
  indicator.value = { x: tab.offsetLeft, width: tab.offsetWidth };
178
181
  }
182
+ function revealSelected() {
183
+ const tab = tabElement(selectedIndex.value);
184
+ const scroller = list.value;
185
+ if (!tab || !scroller || scroller.scrollWidth <= scroller.clientWidth) return;
186
+ const start = tab.offsetLeft;
187
+ const end = start + tab.offsetWidth;
188
+ if (start < scroller.scrollLeft) scroller.scrollLeft = start;
189
+ else if (end > scroller.scrollLeft + scroller.clientWidth)
190
+ scroller.scrollLeft = end - scroller.clientWidth;
191
+ }
192
+ watch(
193
+ () => props.items,
194
+ () => nextTick(measure),
195
+ { deep: true }
196
+ );
179
197
  onMounted(() => {
180
198
  if (!props.label && !list.value?.hasAttribute("aria-labelledby"))
181
199
  warn("[@xleddyl/443-components-vue] Tabs needs a label to name the tab list.");
@@ -77,7 +77,8 @@ function onContextMenu(event) {
77
77
  });
78
78
  }
79
79
  function openFromElement(element) {
80
- const source = element instanceof Element ? element : targetRef.value;
80
+ const target = targetRef.value;
81
+ const source = element instanceof Element && element !== target ? element : target?.firstElementChild;
81
82
  if (!source) return;
82
83
  const rect = source.getBoundingClientRect();
83
84
  openAt(
@@ -230,6 +230,7 @@ const gridLocaleText = computed(() => ({
230
230
  nextPage: text.value.nextPage,
231
231
  previousPage: text.value.previousPage,
232
232
  noRowsToShow: text.value.noRows,
233
+ noMatchingRows: t("common.noResults"),
233
234
  loadingOoo: text.value.loading,
234
235
  ...props.gridOptions?.localeText,
235
236
  ...props.localeText
@@ -122,9 +122,10 @@
122
122
  .k-data-grid-toast {
123
123
  position: absolute;
124
124
  inset-block-end: 0.75rem;
125
- inset-inline-start: 50%;
126
- translate: -50% 0;
127
- margin: 0;
125
+ inset-inline: 0;
126
+ width: fit-content;
127
+ max-width: calc(100% - 1.5rem);
128
+ margin: 0 auto;
128
129
  padding: 0.375rem 0.75rem;
129
130
  font-size: 0.8125rem;
130
131
  color: var(--k-text);
@@ -168,7 +169,8 @@
168
169
  }
169
170
 
170
171
  .k-data-grid .ag-overlay-loading-center,
171
- .k-data-grid .ag-overlay-no-rows-center {
172
+ .k-data-grid .ag-overlay-no-rows-center,
173
+ .k-data-grid .ag-overlay-no-matching-rows-center {
172
174
  padding: 0;
173
175
  background: transparent;
174
176
  border: 0;
@@ -209,9 +211,11 @@
209
211
 
210
212
  .k-data-grid-badge {
211
213
  --k-badge-tone: var(--k-text-muted);
212
- display: inline-flex;
214
+ display: inline-block;
213
215
  vertical-align: middle;
214
- align-items: center;
216
+ max-width: 100%;
217
+ overflow: hidden;
218
+ text-overflow: ellipsis;
215
219
  padding: 0.125rem 0.5rem;
216
220
  font-size: 0.75rem;
217
221
  font-weight: var(--k-font-weight-medium, 500);
@@ -245,6 +249,13 @@
245
249
  flex-shrink: 0;
246
250
  }
247
251
 
252
+ .k-data-grid-badges:not(.is-wrap) > :first-child:is(:only-child, :nth-last-child(3)) {
253
+ flex-shrink: 1;
254
+ min-width: 0;
255
+ overflow: hidden;
256
+ text-overflow: ellipsis;
257
+ }
258
+
248
259
  .k-data-grid-badges > .k-data-grid-badge-more {
249
260
  font-variant-numeric: tabular-nums;
250
261
  }
@@ -47,6 +47,7 @@
47
47
  margin-left: auto;
48
48
  font-size: 0.75rem;
49
49
  color: var(--k-text-muted);
50
+ overflow-wrap: anywhere;
50
51
  }
51
52
 
52
53
  .k-form-field-description {
@@ -54,6 +55,7 @@
54
55
  font-size: 0.75rem;
55
56
  line-height: 1.4;
56
57
  color: var(--k-text-muted);
58
+ overflow-wrap: anywhere;
57
59
  }
58
60
 
59
61
  .k-form-field.is-shaking :is(.k-field, .k-input, [data-k-shake]) {
@@ -17,5 +17,5 @@
17
17
  }
18
18
 
19
19
  .k-form-alerts:focus {
20
- outline: none;
20
+ outline: 2px solid transparent;
21
21
  }
@@ -10,11 +10,13 @@
10
10
  field-sizing: content;
11
11
  resize: none;
12
12
  overflow-y: auto;
13
- min-height: calc(var(--k-textarea-min-rows, 2) * 1lh + 0.875rem + 2px);
13
+ min-height: calc(
14
+ var(--k-textarea-min-rows, 2) * 1lh + var(--k-textarea-padding, 0.875rem) + 2px
15
+ );
14
16
  }
15
17
 
16
18
  .k-textarea.has-max-rows {
17
- max-height: calc(var(--k-textarea-max-rows) * 1lh + 0.875rem + 2px);
19
+ max-height: calc(var(--k-textarea-max-rows) * 1lh + var(--k-textarea-padding, 0.875rem) + 2px);
18
20
  }
19
21
 
20
22
  .k-textarea-box {
@@ -45,5 +47,6 @@
45
47
  }
46
48
 
47
49
  .k-textarea-box.has-counter .k-textarea {
50
+ --k-textarea-padding: 1.9375rem;
48
51
  padding-bottom: 1.5rem;
49
52
  }
@@ -17,6 +17,8 @@
17
17
  background: transparent;
18
18
  font-size: 0.8125rem;
19
19
  font-weight: var(--k-font-weight-medium, 500);
20
+ max-width: 100%;
21
+ min-width: 0;
20
22
  white-space: nowrap;
21
23
  color: var(--k-text-muted);
22
24
  transition:
@@ -117,6 +119,17 @@
117
119
  color: var(--k-accent-text);
118
120
  }
119
121
 
122
+ .k-filter-pill > * {
123
+ flex-shrink: 0;
124
+ }
125
+
126
+ .k-filter-pill > :is(.k-filter-pill-label, .k-filter-pill-value) {
127
+ flex-shrink: 1;
128
+ min-width: 0;
129
+ overflow-x: clip;
130
+ text-overflow: ellipsis;
131
+ }
132
+
120
133
  .k-filter-pill-value {
121
134
  padding-left: 0.3125rem;
122
135
  border-left: 1px solid currentColor;
@@ -146,6 +159,8 @@
146
159
  position: relative;
147
160
  display: inline-flex;
148
161
  align-items: center;
162
+ max-width: 100%;
163
+ min-width: 0;
149
164
  }
150
165
 
151
166
  .k-filter-pill-group > .k-filter-pill {
@@ -78,7 +78,8 @@
78
78
  line-height: 1.15;
79
79
  letter-spacing: -0.022em;
80
80
  font-variant-numeric: tabular-nums;
81
- white-space: nowrap;
81
+ flex-wrap: wrap;
82
+ overflow-wrap: anywhere;
82
83
  color: var(--k-text);
83
84
  }
84
85
 
@@ -32,6 +32,10 @@
32
32
  border-radius: var(--k-radius-sm);
33
33
  }
34
34
 
35
+ .k-tag-list-item > .k-tag {
36
+ min-width: 0;
37
+ }
38
+
35
39
  .k-tag-list.is-sortable .k-tag-list-item {
36
40
  cursor: grab;
37
41
  touch-action: none;
@@ -78,6 +78,7 @@
78
78
  flex-direction: column;
79
79
  gap: 0.125rem;
80
80
  min-width: 0;
81
+ overflow-wrap: anywhere;
81
82
  padding-top: 0.1875rem;
82
83
  }
83
84
 
@@ -77,6 +77,7 @@
77
77
  min-width: 0;
78
78
  line-height: 1.4;
79
79
  padding-top: 0.0625rem;
80
+ overflow-wrap: anywhere;
80
81
  }
81
82
 
82
83
  .k-alert-title {
@@ -1,6 +1,7 @@
1
1
  .k-loading-overlay {
2
2
  position: relative;
3
3
  display: grid;
4
+ grid-template-columns: minmax(0, 1fr);
4
5
  min-width: 0;
5
6
  }
6
7
 
@@ -80,7 +80,6 @@
80
80
  }
81
81
 
82
82
  .k-progress-ring {
83
- --k-progress-tone: var(--k-accent);
84
83
  position: relative;
85
84
  display: inline-grid;
86
85
  place-items: center;
@@ -107,7 +106,7 @@
107
106
 
108
107
  .k-progress-ring-bar {
109
108
  fill: none;
110
- stroke: var(--k-progress-tone);
109
+ stroke: var(--k-progress-tone, var(--k-accent));
111
110
  stroke-linecap: round;
112
111
  transition: stroke-dashoffset 520ms var(--k-ease-out);
113
112
  }
@@ -44,7 +44,7 @@
44
44
 
45
45
  .k-radio-group-card.k-choice-group-horizontal > .k-choice-group-items {
46
46
  display: grid;
47
- grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
47
+ grid-template-columns: repeat(auto-fit, minmax(min(11rem, 100%), 1fr));
48
48
  }
49
49
 
50
50
  :is(.k-checkbox, .k-radio) {
@@ -128,6 +128,7 @@
128
128
  flex-direction: column;
129
129
  gap: 0.0625rem;
130
130
  min-width: 0;
131
+ overflow-wrap: anywhere;
131
132
  }
132
133
 
133
134
  :is(.k-checkbox-description, .k-radio-description, .k-switch-description) {
@@ -116,3 +116,9 @@
116
116
  opacity: 0.5;
117
117
  cursor: not-allowed;
118
118
  }
119
+
120
+ @media (pointer: coarse) {
121
+ .k-color-input .k-color-input-text {
122
+ font-size: 1rem;
123
+ }
124
+ }
@@ -1,5 +1,6 @@
1
1
  .k-palette-select {
2
2
  display: grid;
3
+ grid-template-columns: minmax(0, 1fr);
3
4
  gap: 0.5rem;
4
5
  min-width: 0;
5
6
  }
@@ -76,6 +76,7 @@
76
76
 
77
77
  .k-password-meter[data-score='3'] {
78
78
  --k-meter-tone: color-mix(in oklab, var(--k-success) 65%, var(--k-warning));
79
+ --k-meter-text: var(--k-success-text);
79
80
  }
80
81
 
81
82
  .k-password-meter[data-score='4'] {
@@ -108,3 +109,9 @@
108
109
  text-align: right;
109
110
  color: var(--k-meter-text, var(--k-meter-tone));
110
111
  }
112
+
113
+ @media (pointer: coarse) {
114
+ .k-password-input .k-input.has-trail .k-field {
115
+ font-size: 1rem;
116
+ }
117
+ }
@@ -50,6 +50,7 @@
50
50
 
51
51
  .k-pin-input-cells {
52
52
  display: flex;
53
+ min-width: 0;
53
54
  gap: var(--k-pin-gap);
54
55
  }
55
56
 
@@ -58,7 +59,8 @@
58
59
  display: grid;
59
60
  place-items: center;
60
61
  width: var(--k-pin-cell);
61
- height: var(--k-pin-cell);
62
+ min-width: 0;
63
+ aspect-ratio: 1;
62
64
  border: 1px solid var(--k-field-line);
63
65
  border-radius: var(--k-radius-md);
64
66
  background: var(--k-field);
@@ -1,5 +1,6 @@
1
1
  .k-floating.k-form-popover {
2
2
  padding: 0.25rem;
3
+ max-width: calc(100vw - 1rem);
3
4
  max-height: min(18rem, 60vh);
4
5
  overflow: auto;
5
6
  overscroll-behavior: contain;
@@ -11,6 +11,7 @@
11
11
  border-radius: var(--k-radius-md);
12
12
  background: color-mix(in oklab, var(--k-fill) 70%, transparent);
13
13
  font-size: 0.8125rem;
14
+ max-width: 100%;
14
15
  isolation: isolate;
15
16
  }
16
17
 
@@ -94,6 +95,7 @@
94
95
  }
95
96
 
96
97
  .k-segmented-label {
98
+ min-width: 0;
97
99
  overflow-x: clip;
98
100
  text-overflow: ellipsis;
99
101
  }
@@ -92,6 +92,7 @@
92
92
  margin-block: 0.375rem;
93
93
  padding: 0.25rem;
94
94
  min-width: anchor-size(width);
95
+ max-width: calc(100vw - 1rem);
95
96
  max-height: min(20rem, 60vh);
96
97
  line-height: 1.25;
97
98
  border: 0;
@@ -121,15 +121,15 @@
121
121
 
122
122
  .k-slider-input:focus-visible::-webkit-slider-thumb {
123
123
  box-shadow:
124
- 0 0 0 1px var(--k-slider-fill),
125
- 0 0 0 4px var(--k-ring-soft),
124
+ 0 0 0 2px var(--k-ring),
125
+ 0 0 0 5px var(--k-ring-soft),
126
126
  0 1px 3px var(--k-shadow-tint-strong);
127
127
  }
128
128
 
129
129
  .k-slider-input:focus-visible::-moz-range-thumb {
130
130
  box-shadow:
131
- 0 0 0 1px var(--k-slider-fill),
132
- 0 0 0 4px var(--k-ring-soft),
131
+ 0 0 0 2px var(--k-ring),
132
+ 0 0 0 5px var(--k-ring-soft),
133
133
  0 1px 3px var(--k-shadow-tint-strong);
134
134
  }
135
135
 
@@ -70,6 +70,7 @@
70
70
  }
71
71
 
72
72
  .k-tree-select-placeholder {
73
+ min-width: 0;
73
74
  overflow-x: clip;
74
75
  text-overflow: ellipsis;
75
76
  color: var(--k-text-muted);
@@ -156,8 +156,12 @@
156
156
  padding-inline: 0.25rem;
157
157
  }
158
158
 
159
+ .k-accordion.is-neutral .k-accordion-panel {
160
+ margin-inline: -0.25rem;
161
+ }
162
+
159
163
  .k-accordion.is-neutral .k-accordion-content {
160
- padding: 0;
164
+ padding: 0 0.25rem 0.25rem;
161
165
  font-size: inherit;
162
166
  color: inherit;
163
167
  }
@@ -42,6 +42,7 @@
42
42
 
43
43
  .k-card-header {
44
44
  display: flex;
45
+ flex-wrap: wrap;
45
46
  align-items: flex-start;
46
47
  gap: 0.75rem;
47
48
  padding: var(--k-card-pad) var(--k-card-pad) 0;
@@ -72,10 +73,11 @@
72
73
 
73
74
  .k-card-heading {
74
75
  display: flex;
75
- flex: 1;
76
+ flex: 1 1 8rem;
76
77
  flex-direction: column;
77
78
  gap: 0.125rem;
78
79
  min-width: 0;
80
+ overflow-wrap: anywhere;
79
81
  }
80
82
 
81
83
  .k-card-icon + .k-card-heading {
@@ -152,15 +152,10 @@ button.k-stepper-step:active {
152
152
  }
153
153
 
154
154
  .k-stepper-description {
155
- overflow: hidden;
156
155
  font-size: 0.75rem;
157
156
  line-height: 1.35;
158
157
  color: var(--k-text-muted);
159
- text-overflow: ellipsis;
160
- }
161
-
162
- .k-stepper-horizontal .k-stepper-description {
163
- white-space: nowrap;
158
+ overflow-wrap: anywhere;
164
159
  }
165
160
 
166
161
  .k-stepper-connector {
@@ -33,7 +33,11 @@
33
33
 
34
34
  .k-command-trigger-text {
35
35
  flex: 1;
36
+ min-width: 0;
37
+ overflow-x: clip;
36
38
  text-align: left;
39
+ text-overflow: ellipsis;
40
+ white-space: nowrap;
37
41
  }
38
42
 
39
43
  .k-command-trigger-keys {
@@ -97,6 +101,7 @@
97
101
  font-size: 0.8125rem;
98
102
  text-align: center;
99
103
  color: var(--k-text-muted);
104
+ overflow-wrap: anywhere;
100
105
  }
101
106
 
102
107
  .k-command-group + .k-command-group {
@@ -68,3 +68,8 @@
68
68
  color: var(--k-danger-text);
69
69
  animation: k-enter var(--k-duration-lg) var(--k-ease-out);
70
70
  }
71
+
72
+ .k-confirm-error > span {
73
+ min-width: 0;
74
+ overflow-wrap: anywhere;
75
+ }
@@ -59,6 +59,7 @@
59
59
 
60
60
  .k-menu-sub > .k-menu-item > .k-menu-item-label {
61
61
  flex: 1;
62
+ min-width: 0;
62
63
  }
63
64
 
64
65
  .k-menu-item-shortcut {
@@ -161,6 +161,7 @@
161
161
  .k-modal-heading,
162
162
  .k-drawer-heading {
163
163
  display: flex;
164
+ flex: 1 1 0;
164
165
  flex-direction: column;
165
166
  gap: 0.125rem;
166
167
  min-width: 0;
@@ -189,6 +190,7 @@
189
190
  line-height: 1.3;
190
191
  color: var(--k-text);
191
192
  letter-spacing: -0.015em;
193
+ overflow-wrap: anywhere;
192
194
  }
193
195
 
194
196
  .k-modal-title.has-trail,
@@ -274,6 +276,7 @@
274
276
  font-size: 0.8125rem;
275
277
  line-height: 1.4;
276
278
  color: var(--k-text-muted);
279
+ overflow-wrap: anywhere;
277
280
  }
278
281
 
279
282
  .k-modal-actions,
@@ -60,13 +60,8 @@
60
60
  min-width: 0;
61
61
  }
62
62
 
63
- :is(
64
- .k-menu-item-label,
65
- .k-combobox-option-label,
66
- .k-combobox-tag-label,
67
- .k-command-option-label,
68
- .k-command-option-description
69
- ) {
63
+ :is(.k-menu-item-label, .k-combobox-option-label, .k-combobox-tag-label, .k-command-option-label) {
64
+ min-width: 0;
70
65
  overflow-x: clip;
71
66
  text-overflow: ellipsis;
72
67
  white-space: nowrap;
@@ -75,6 +70,7 @@
75
70
  :is(.k-menu-item-description, .k-combobox-option-description, .k-command-option-description) {
76
71
  font-size: 0.75rem;
77
72
  color: var(--k-text-muted);
73
+ overflow-wrap: anywhere;
78
74
  }
79
75
 
80
76
  :is(.k-menu-item, .k-combobox-option, .k-command-option, .k-tree-row)[aria-disabled='true'] {
@@ -137,6 +133,8 @@
137
133
  .k-input-clear,
138
134
  .k-date-picker-clear,
139
135
  .k-combobox-icon-button,
136
+ .k-tree-select-icon-button,
137
+ .k-tree-select-drill,
140
138
  .k-combobox-tag-remove,
141
139
  .k-tag-remove,
142
140
  .k-tree-toggle,
@@ -150,6 +148,8 @@
150
148
  .k-input-clear,
151
149
  .k-date-picker-clear,
152
150
  .k-combobox-icon-button,
151
+ .k-tree-select-icon-button,
152
+ .k-tree-select-drill,
153
153
  .k-combobox-tag-remove,
154
154
  .k-tag-remove,
155
155
  .k-tree-toggle,
@@ -52,7 +52,7 @@
52
52
  align-items: center;
53
53
  min-width: 0;
54
54
  padding-block: 2.5rem;
55
- outline: none;
55
+ outline: 2px solid transparent;
56
56
  }
57
57
 
58
58
  .k-auth-content {
@@ -53,6 +53,11 @@
53
53
  color: transparent;
54
54
  }
55
55
 
56
+ .k-error-title,
57
+ .k-error-message {
58
+ overflow-wrap: anywhere;
59
+ }
60
+
56
61
  .k-error-title {
57
62
  font-size: 1.375rem;
58
63
  font-weight: var(--k-font-weight-display, 650);
@@ -9,6 +9,7 @@
9
9
 
10
10
  .k-savebar {
11
11
  display: flex;
12
+ flex-wrap: wrap;
12
13
  align-items: center;
13
14
  gap: 0.75rem;
14
15
  width: min(100%, 34rem);
@@ -30,7 +31,7 @@
30
31
  }
31
32
 
32
33
  .k-savebar-message {
33
- flex: 1;
34
+ flex: 1 1 10rem;
34
35
  min-width: 0;
35
36
  font-size: 0.8125rem;
36
37
  font-weight: var(--k-font-weight-medium, 500);
@@ -41,6 +42,7 @@
41
42
  display: flex;
42
43
  flex: none;
43
44
  align-items: center;
45
+ margin-inline-start: auto;
44
46
  gap: 0.25rem;
45
47
  }
46
48
 
@@ -287,6 +287,7 @@
287
287
 
288
288
  .k-settings-group-head {
289
289
  display: flex;
290
+ flex-wrap: wrap;
290
291
  align-items: center;
291
292
  justify-content: space-between;
292
293
  gap: 1rem;
@@ -294,6 +295,7 @@
294
295
 
295
296
  .k-settings-group-heading {
296
297
  display: flex;
298
+ flex: 1 1 8rem;
297
299
  flex-direction: column;
298
300
  gap: 0.125rem;
299
301
  min-width: 0;
@@ -318,6 +320,7 @@
318
320
  display: flex;
319
321
  flex: none;
320
322
  align-items: center;
323
+ margin-inline-start: auto;
321
324
  gap: 0.5rem;
322
325
  }
323
326
 
@@ -546,6 +549,8 @@
546
549
 
547
550
  .k-appearance-cards {
548
551
  grid-template-columns: repeat(3, minmax(5.5rem, 1fr));
552
+ margin: -0.3125rem;
553
+ padding: 0.3125rem;
549
554
  overflow-x: auto;
550
555
  }
551
556
  }
@@ -37,7 +37,7 @@
37
37
  flex-direction: column;
38
38
  gap: 1rem;
39
39
  min-width: 0;
40
- outline: none;
40
+ outline: 2px solid transparent;
41
41
  }
42
42
 
43
43
  .k-settings-panel {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xleddyl/443-components-vue",
3
- "version": "0.16.59",
3
+ "version": "0.16.61",
4
4
  "description": "Compact, scoped dashboard components for Vue and Nuxt",
5
5
  "license": "MIT",
6
6
  "author": "Edoardo Alberti (https://github.com/xleddyl)",