@xleddyl/443-components-vue 0.16.60 → 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.
- package/CATALOG.md +116 -116
- package/README.md +15 -15
- package/dist/chart/chart.css +6 -0
- package/dist/components/forms/PasswordInput.vue +2 -2
- package/dist/components/forms/Select.vue +4 -1
- package/dist/components/layout/Tabs.vue +19 -1
- package/dist/components/overlays/ContextMenu.vue +2 -1
- package/dist/grid/DataGrid.vue +1 -0
- package/dist/grid/data-grid.css +17 -6
- package/dist/styles/core/form-field.css +2 -0
- package/dist/styles/core/form.css +1 -1
- package/dist/styles/core/textarea.css +5 -2
- package/dist/styles/data/filter-pills.css +15 -0
- package/dist/styles/data/stat.css +2 -1
- package/dist/styles/data/tag-list.css +4 -0
- package/dist/styles/data/timeline.css +1 -0
- package/dist/styles/feedback/alert.css +1 -0
- package/dist/styles/feedback/loading-overlay.css +1 -0
- package/dist/styles/feedback/progress.css +1 -2
- package/dist/styles/forms/choice.css +2 -1
- package/dist/styles/forms/color-input.css +6 -0
- package/dist/styles/forms/password-input.css +7 -0
- package/dist/styles/forms/pin-input.css +3 -1
- package/dist/styles/forms/popover.css +1 -0
- package/dist/styles/forms/segmented.css +2 -0
- package/dist/styles/forms/select.css +1 -0
- package/dist/styles/forms/slider.css +4 -4
- package/dist/styles/forms/tree-select.css +1 -0
- package/dist/styles/layout/accordion.css +5 -1
- package/dist/styles/layout/card.css +3 -1
- package/dist/styles/layout/stepper.css +1 -6
- package/dist/styles/overlays/command.css +5 -0
- package/dist/styles/overlays/confirm.css +5 -0
- package/dist/styles/overlays/menu.css +1 -0
- package/dist/styles/overlays/modal.css +3 -0
- package/dist/styles/shared.css +7 -7
- package/dist/styles/templates/auth-layout.css +1 -1
- package/dist/styles/templates/error-page.css +5 -0
- package/dist/styles/templates/save-bar.css +3 -1
- package/dist/styles/templates/settings-modal.css +5 -0
- package/dist/styles/templates/settings-page.css +1 -1
- 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
|
-
|
|
|
63
|
-
|
|
|
64
|
-
|
|
|
65
|
-
|
|
|
66
|
-
|
|
|
67
|
-
| Toast
|
|
68
|
-
|
|
|
69
|
-
|
|
|
70
|
-
|
|
|
71
|
-
|
|
|
72
|
-
|
|
|
73
|
-
|
|
|
74
|
-
|
|
|
75
|
-
|
|
|
76
|
-
|
|
|
77
|
-
|
|
|
78
|
-
|
|
|
79
|
-
|
|
|
80
|
-
|
|
|
81
|
-
|
|
|
82
|
-
|
|
|
83
|
-
|
|
|
84
|
-
|
|
|
85
|
-
|
|
|
86
|
-
|
|
|
87
|
-
|
|
|
88
|
-
|
|
|
89
|
-
|
|
|
90
|
-
|
|
|
91
|
-
|
|
|
92
|
-
|
|
|
93
|
-
|
|
|
94
|
-
|
|
|
95
|
-
| Reorder
|
|
96
|
-
|
|
|
97
|
-
|
|
|
98
|
-
|
|
|
99
|
-
|
|
|
100
|
-
|
|
|
101
|
-
|
|
|
102
|
-
|
|
|
103
|
-
|
|
|
104
|
-
|
|
|
105
|
-
|
|
|
106
|
-
|
|
|
107
|
-
|
|
|
108
|
-
|
|
|
109
|
-
|
|
|
110
|
-
|
|
|
111
|
-
|
|
|
112
|
-
|
|
|
113
|
-
|
|
|
114
|
-
|
|
|
115
|
-
|
|
|
116
|
-
| Settings
|
|
117
|
-
|
|
|
118
|
-
|
|
|
119
|
-
|
|
|
120
|
-
|
|
|
121
|
-
|
|
|
122
|
-
|
|
|
123
|
-
|
|
|
124
|
-
|
|
|
125
|
-
| Loading placeholder for
|
|
126
|
-
|
|
|
127
|
-
|
|
|
128
|
-
|
|
|
129
|
-
|
|
|
130
|
-
|
|
|
131
|
-
|
|
|
132
|
-
|
|
|
133
|
-
|
|
|
134
|
-
|
|
|
135
|
-
|
|
|
136
|
-
|
|
|
137
|
-
|
|
|
138
|
-
|
|
|
139
|
-
|
|
|
140
|
-
|
|
|
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
|
|
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`.
|
|
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.
|
|
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,
|
|
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
|
|
package/dist/chart/chart.css
CHANGED
|
@@ -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
|
|
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(
|
|
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
|
|
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(
|
package/dist/grid/DataGrid.vue
CHANGED
|
@@ -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
|
package/dist/grid/data-grid.css
CHANGED
|
@@ -122,9 +122,10 @@
|
|
|
122
122
|
.k-data-grid-toast {
|
|
123
123
|
position: absolute;
|
|
124
124
|
inset-block-end: 0.75rem;
|
|
125
|
-
inset-inline
|
|
126
|
-
|
|
127
|
-
|
|
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-
|
|
214
|
+
display: inline-block;
|
|
213
215
|
vertical-align: middle;
|
|
214
|
-
|
|
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]) {
|
|
@@ -10,11 +10,13 @@
|
|
|
10
10
|
field-sizing: content;
|
|
11
11
|
resize: none;
|
|
12
12
|
overflow-y: auto;
|
|
13
|
-
min-height: calc(
|
|
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 {
|
|
@@ -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) {
|
|
@@ -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
|
-
|
|
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);
|
|
@@ -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
|
}
|
|
@@ -121,15 +121,15 @@
|
|
|
121
121
|
|
|
122
122
|
.k-slider-input:focus-visible::-webkit-slider-thumb {
|
|
123
123
|
box-shadow:
|
|
124
|
-
0 0 0
|
|
125
|
-
0 0 0
|
|
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
|
|
132
|
-
0 0 0
|
|
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
|
|
|
@@ -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
|
-
|
|
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 {
|
|
@@ -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,
|
package/dist/styles/shared.css
CHANGED
|
@@ -60,13 +60,8 @@
|
|
|
60
60
|
min-width: 0;
|
|
61
61
|
}
|
|
62
62
|
|
|
63
|
-
:is(
|
|
64
|
-
|
|
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,
|
|
@@ -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
|
}
|
package/package.json
CHANGED