@xleddyl/443-components-vue 0.16.65 → 0.16.67
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
CHANGED
|
@@ -204,27 +204,27 @@ Mount `OverlayHost` once for the imperative hooks (see [Composables](#composable
|
|
|
204
204
|
| `HoverCard` | Rich preview on hover or focus (user card, link preview). Use `Tooltip` for plain text. | Model: `v-model:open`. Props: `placement`, `openDelay`, `closeDelay`, `arrow`, `disabled`. Slots: default (trigger), `content`. | `overlays/hover-card.vue` |
|
|
205
205
|
| `Tooltip` | Short text on hover or focus. Optional shortcut. | Props: `text`, `placement`, `openDelay`, `closeDelay`, `arrow`, `shortcut`, `disabled`. Slots: default (trigger), `content`. | `overlays/tooltip.vue` |
|
|
206
206
|
| `CommandPalette` | Search and command dialog (Cmd+K) with groups, recent items, async search and typed item data. Groups take `icon` (default item icon) and `more` (a last "show all" item). Matching (`matchesSearch`, exported) finds every word in any order, without case or accents. | Models: `v-model:open`, `v-model:query`. Props: `groups` (items with `id`, `label`, `description`, `icon`, `badge`, `shortcut`, `keywords`, `to`, `data`, `onSelect`), `search(query, signal)`, `shortcut`, `trigger`, `recentKey`, `emptyText`, `notice`. Slots: `item`, `empty`, `group-label`, `after-results`. Events: `select`, `open`, `close`. | `overlays/command-palette.vue` |
|
|
207
|
-
| `CommandButton` | A `Button` made from a `CommandItem`: label, icon, `to`, `href`, `disabled` and `onSelect` come from the command. | Props: `command`, `label`, `icon`, and every `Button` prop (size, variant, tone).
|
|
207
|
+
| `CommandButton` | A `Button` made from a `CommandItem`: label, icon, `to`, `href`, `disabled` and `onSelect` come from the command. | Props: `command`, `label`, `icon`, `iconOnly` (a square button with the icon only, the label as `title` and `aria-label`), and every `Button` prop (size, variant, tone). | `overlays/command-palette.vue` |
|
|
208
208
|
|
|
209
209
|
## Data
|
|
210
210
|
|
|
211
|
-
| Component | Purpose and when to use it | Main props, models, slots, events
|
|
212
|
-
| ----------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
213
|
-
| `Table` | Small to medium table with sort, selection, links and loading rows. For thousands of rows or editing use `DataGrid`. | Models: `v-model:sort` (`{ key, direction }`), `v-model:selected` (row keys). Props: `rows`, `columns` (`key`, `label`, `align`, `width`, `numeric`, `sortable`, `value`, `format`), `rowKey`, `selectable`, `rowTo`, `loading`, `emptyText`, `density`, `stickyHeader`, `maxHeight`, `bordered`, `caption`. Slots: `cell-<key>`, `header-<key>`, `empty`. Event: `rowClick`.
|
|
214
|
-
| `Pagination` | Page buttons, page size select and summary. Client or server paging. | Models: `v-model:page`, `v-model:pageSize`. Props: `total`, `pageSizes` (numbers, `'all'` for every row), `allLabel`, `showEdges`, `showJump`, `compact`, `loading`, `showSummary`. Slot: `summary`.
|
|
215
|
-
| `SelectionBar` | Shows the selected count and bulk actions for a list or table. | Props: `count`, `total`, `placement` (inline, sticky, floating), `onSelectAll`, `onClear`. Slots: `actions`, `count`. With `count` 0 it renders nothing visible.
|
|
216
|
-
| `FilterPills` | Quick filters as pills: single, multiple, menu or panel pills, removable active filters. | Model: value, array (`multiple`) or null. Props: `options` (`value`, `label`, `valueLabel`, `count`, `icon`, `color`, `menu`, `panel`, `removable`), `multiple`, `required`, `clearable`, `size`. Slots: `pill`, `panel-<value>`. Events: `select`, `remove`.
|
|
217
|
-
| `FilterPill` | One pill button. Use it alone for a custom filter trigger. `FilterPills` uses it. | Props: `label`, `valueLabel`, `icon`, `count`, `active`, `pressed`, `caret`, `size`, `disabled`. Slot: default.
|
|
218
|
-
| `Tag` | Chip or label, optionally removable. Use `Badge` for a status. | Props: `label`, `tone`, `color` (palette name or hex), `size`, `icon`, `removable`, `removeLabel`, `removeTabindex`, `disabled`. Slot: default. Event: `remove`.
|
|
219
|
-
| `TagList` | A list of `Tag` chips, reorderable by drag, by keyboard (Alt with an arrow key) or move buttons, removable, and a drop target for items dragged from another panel (columns of an export). | Model: `v-model` (`TagListItem[]`: `value`, `label`, `tone`, `icon`, `removable`, `disabled`). Props: `label`, `sortable`, `removable`, `moveButtons`, `accept` (MIME types or a function), `dropEffect`, `tone`, `size`, `disabled`, `emptyText`, `removeLabel`. Slots: `item`, `empty`. Events: `remove`, `move`, `itemDrop` (`{ index, dataTransfer, event }`).
|
|
220
|
-
| `Badge` | Status label, counter or dot. Not interactive. | Props: `label` (string or number), `tone`, `color` (palette name or hex), `variant` (soft, solid, outline), `size`, `dot`, `pulse`, `icon`. Slot: default.
|
|
221
|
-
| `Avatar` | User picture with initials fallback and status dot. | Props: `src`, `name`, `alt`, `size` (xs to xl), `shape` (circle, square), `status` (online, away, busy, offline), `decorative`. Slot: `fallback`.
|
|
222
|
-
| `AvatarGroup` | Overlapping stack of avatars with "+N". | Props: `items` (`src`, `name`, `alt`), `max`, `size`, `shape`, `moreLabel`.
|
|
223
|
-
| `Stat` | Key figure (KPI) with unit, delta, trend, hint and optional sparkline. Can be a link. | Props: `label`, `value`, `unit`, `delta`, `trend` (up, down, flat), `invert` (down is good), `hint`, `icon`, `loading`, `to`, `href`, `plain`. Slots: `label`, `value`, `icon`, `sparkline`, `footer`.
|
|
224
|
-
| `RecordList` | Short list of records (settings, users, tokens): title, badge, description, leading and action slots, `SkeletonList` while `loading`, empty state. | Props: `items` (`RecordListItem`: `id`, `title` (truncated, full text on hover), `description`, `badge` `{ label, tone }`), `loading`, `avatar`, `action`, `label`, `skeletonRows`, `emptyText`, `emptyDescription`, `emptyIcon`, `emptyVariant` (card, the default, or plain). Event: `row-click` (`item`, `event`):
|
|
225
|
-
| `DescriptionList` | Label and value pairs for a record. Use it on detail views. | Props: `items` (`key`, `label`, `value`, `hint`), `layout` (stacked, inline, grid), `columns`, `divided`, `emptyText`. Slots: `term`, `value`, `value-<key>`.
|
|
226
|
-
| `Timeline` | Vertical list of events or activity. | Props: `items` (`title`, `description`, `time`, `datetime`, `icon`, `tone`), `compact`. Slot: `item`.
|
|
227
|
-
| `Tree` | Expandable hierarchy with selection, drag to reorder and nesting. | Models: `v-model:expanded`, `v-model:selected`. Props: `nodes` (`id`, `label`, `description`, `meta`, `icon`, `children`, `disabled`), `selectable`, `reorderable`, `nestable`, `moveButtons` (default `true`; `false` hides the row arrows, drag and Alt+arrow keys still work), `canDrop`, `size`, `checkmark`, `emptyText`, `emptyDescription`, `emptyIcon`, `emptyVariant` (card, the default, or plain). Slots: `label`, `meta`, `empty`, `empty-actions` (buttons in the default empty state). Events: `select`, `move`.
|
|
211
|
+
| Component | Purpose and when to use it | Main props, models, slots, events | Playground |
|
|
212
|
+
| ----------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------- |
|
|
213
|
+
| `Table` | Small to medium table with sort, selection, links and loading rows. For thousands of rows or editing use `DataGrid`. | Models: `v-model:sort` (`{ key, direction }`), `v-model:selected` (row keys). Props: `rows`, `columns` (`key`, `label`, `align`, `width`, `numeric`, `sortable`, `value`, `format`), `rowKey`, `selectable`, `rowTo`, `loading`, `emptyText`, `density`, `stickyHeader`, `maxHeight`, `bordered`, `caption`. Slots: `cell-<key>`, `header-<key>`, `empty`. Event: `rowClick`. | `data/table.vue` |
|
|
214
|
+
| `Pagination` | Page buttons, page size select and summary. Client or server paging. | Models: `v-model:page`, `v-model:pageSize`. Props: `total`, `pageSizes` (numbers, `'all'` for every row), `allLabel`, `showEdges`, `showJump`, `compact`, `loading`, `showSummary`. Slot: `summary`. | `data/pagination.vue` |
|
|
215
|
+
| `SelectionBar` | Shows the selected count and bulk actions for a list or table. | Props: `count`, `total`, `placement` (inline, sticky, floating), `onSelectAll`, `onClear`. Slots: `actions`, `count`. With `count` 0 it renders nothing visible. | `data/selection-bar.vue` |
|
|
216
|
+
| `FilterPills` | Quick filters as pills: single, multiple, menu or panel pills, removable active filters. | Model: value, array (`multiple`) or null. Props: `options` (`value`, `label`, `valueLabel`, `count`, `icon`, `color`, `menu`, `panel`, `removable`), `multiple`, `required`, `clearable`, `size`. Slots: `pill`, `panel-<value>`. Events: `select`, `remove`. | `data/filter-pills.vue` |
|
|
217
|
+
| `FilterPill` | One pill button. Use it alone for a custom filter trigger. `FilterPills` uses it. | Props: `label`, `valueLabel`, `icon`, `count`, `active`, `pressed`, `caret`, `size`, `disabled`. Slot: default. | `data/filter-pills.vue` |
|
|
218
|
+
| `Tag` | Chip or label, optionally removable. Use `Badge` for a status. | Props: `label`, `tone`, `color` (palette name or hex), `size`, `icon`, `removable`, `removeLabel`, `removeTabindex`, `disabled`. Slot: default. Event: `remove`. | `data/tag.vue` |
|
|
219
|
+
| `TagList` | A list of `Tag` chips, reorderable by drag, by keyboard (Alt with an arrow key) or move buttons, removable, and a drop target for items dragged from another panel (columns of an export). | Model: `v-model` (`TagListItem[]`: `value`, `label`, `tone`, `icon`, `removable`, `disabled`). Props: `label`, `sortable`, `removable`, `moveButtons`, `accept` (MIME types or a function), `dropEffect`, `tone`, `size`, `disabled`, `emptyText`, `removeLabel`. Slots: `item`, `empty`. Events: `remove`, `move`, `itemDrop` (`{ index, dataTransfer, event }`). | `data/tag-list.vue` |
|
|
220
|
+
| `Badge` | Status label, counter or dot. Not interactive. | Props: `label` (string or number), `tone`, `color` (palette name or hex), `variant` (soft, solid, outline), `size`, `dot`, `pulse`, `icon`. Slot: default. | `data/badge.vue` |
|
|
221
|
+
| `Avatar` | User picture with initials fallback and status dot. | Props: `src`, `name`, `alt`, `size` (xs to xl), `shape` (circle, square), `status` (online, away, busy, offline), `decorative`. Slot: `fallback`. | `data/avatar.vue` |
|
|
222
|
+
| `AvatarGroup` | Overlapping stack of avatars with "+N". | Props: `items` (`src`, `name`, `alt`), `max`, `size`, `shape`, `moreLabel`. | `data/avatar.vue` |
|
|
223
|
+
| `Stat` | Key figure (KPI) with unit, delta, trend, hint and optional sparkline. Can be a link. | Props: `label`, `value`, `unit`, `delta`, `trend` (up, down, flat), `invert` (down is good), `hint`, `icon`, `loading`, `to`, `href`, `plain`. Slots: `label`, `value`, `icon`, `sparkline`, `footer`. | `data/stat.vue` |
|
|
224
|
+
| `RecordList` | Short list of records (settings, users, tokens): title, badge, description, leading and action slots, `SkeletonList` while `loading`, empty state. | Props: `items` (`RecordListItem`: `id`, `title` (truncated, full text on hover), `description`, `badge` `{ label, tone }`), `loading`, `avatar`, `action`, `label`, `skeletonRows`, `emptyText`, `emptyDescription`, `emptyIcon`, `emptyVariant` (card, the default, or plain). Event: `row-click` (`item`, `event`): each row becomes a navigation item (padding, hover and press background like a ghost button, no separators), clicks on buttons, links and inputs inside the row are ignored. Slots: `leading`, `action` (`{ item }`), `empty`, `empty-actions` (buttons in the default empty state). | `data/record-list.vue` |
|
|
225
|
+
| `DescriptionList` | Label and value pairs for a record. Use it on detail views. | Props: `items` (`key`, `label`, `value`, `hint`), `layout` (stacked, inline, grid), `columns`, `divided`, `emptyText`. Slots: `term`, `value`, `value-<key>`. | `data/description-list.vue` |
|
|
226
|
+
| `Timeline` | Vertical list of events or activity. | Props: `items` (`title`, `description`, `time`, `datetime`, `icon`, `tone`), `compact`. Slot: `item`. | `data/timeline.vue` |
|
|
227
|
+
| `Tree` | Expandable hierarchy with selection, drag to reorder and nesting. | Models: `v-model:expanded`, `v-model:selected`. Props: `nodes` (`id`, `label`, `description`, `meta`, `icon`, `children`, `disabled`), `selectable`, `reorderable`, `nestable`, `moveButtons` (default `true`; `false` hides the row arrows, drag and Alt+arrow keys still work), `canDrop`, `size`, `checkmark`, `emptyText`, `emptyDescription`, `emptyIcon`, `emptyVariant` (card, the default, or plain). Slots: `label`, `meta`, `empty`, `empty-actions` (buttons in the default empty state). Events: `select`, `move`. | `data/tree.vue` |
|
|
228
228
|
|
|
229
229
|
## Layout
|
|
230
230
|
|
package/README.md
CHANGED
|
@@ -470,7 +470,7 @@ On your own elements, `paletteClass(color)` gives the class of a palette name an
|
|
|
470
470
|
- `Combobox` with `creatable` takes `createTransform` (`ComboboxCreateTransform`, `(input) => string | null | undefined`) and `createValidate` (`ComboboxCreateValidate`, `(input) => string | true | undefined`). The transform runs on the typed text first: the "Create" option shows its result, and an empty result (or `null`) shows no create option. The validator gets the transformed text when the user picks the create option: a returned string is the error, shown inline through the surrounding `FormField` (`useFieldControl().setControlError`, or a `FieldMessage` under the control and an announcement without a field) with `aria-invalid` on the input, and nothing is created; `true` or nothing accepts it. The error clears when the query changes. Both work with `multiple`, where created values become tags: `<KCombobox v-model="tags" multiple creatable :create-transform="(input) => input.toLowerCase()" :create-validate="(input) => input.length >= 3 || 'Too short'" />`.
|
|
471
471
|
- `Combobox` takes `createActions` (`ComboboxCreateActions`, `(query) => ComboboxCreateAction[]`) to show several create items instead of the single "Create" item. Each action has `id` (the item key is `__create:<id>`), `label`, `icon` (default `plus`) and `run(query)`. The actions show at the end of the list under the same conditions as the create item: a non-empty query after `createTransform`, with no option whose label or value matches it exactly. The function gets that text, and an empty array shows no action. `createValidate` runs before `run`. When `run` returns an option, the combobox remembers it, emits `create` and selects it. When it returns nothing (for example it opens a form for the full record), nothing is selected: the query clears and the list closes (with `multiple`, only the query clears). Errors from `run` are logged. `createActions` replaces `creatable`: `<KCombobox v-model="category" :options="categories" :create-actions="(query) => [{ id: 'quick', label: 'Create here', run: createCategory }, { id: 'form', label: 'Create with details', icon: 'pencil-square', run: openForm }]" />`.
|
|
472
472
|
- `Combobox` with `multiple` takes `hideTags`: the selected values are not rendered as tags inside the control (the host shows them elsewhere), the placeholder stays visible and Backspace no longer removes the last value. Selection is still announced through the options. A long tag label is truncated with an ellipsis and the full label (with the option group or description) is in the tag tooltip.
|
|
473
|
-
- `RecordList` keeps each title on one line with an ellipsis; the full title is in its `title` attribute. With a `row-click` listener
|
|
473
|
+
- `RecordList` keeps each title on one line with an ellipsis; the full title is in its `title` attribute. With a `row-click` listener each row is a navigation item (padding, the hover and press background of a ghost button, no separators, the list bleeds into the inline padding so the text stays aligned); a click on a button, link or input inside the row does not emit it, so keep a button in `#action` for the keyboard.
|
|
474
474
|
- `Pagination` takes `showEdges` (first and last page buttons, `firstLabel`, `lastLabel`) and `showJump` (a typed page number, `jumpLabel`). Both are off by default. `page` is clamped to the page count only when `total` is known: while `total` is `0` or `loading` is set (it also sets `aria-busy`), the page is kept, so a server reload does not reset it.
|
|
475
475
|
- Page sizes are `PageSize` values (`number | 'all'`): `pageSizes: [25, 50, 100, 'all']` adds an "All" option (`pagination.all`, override with `allLabel`). With `'all'` the page size model is `'all'`, there is one page and the summary reads `1-<total> of <total>`. `Pagination`, `ListPage` and `DataGrid` take it; with `serverPagination` the grid emits `'all'` through `v-model:page-size` and your API returns every row.
|
|
476
476
|
- `FilterPills` can list active filters: options with `removable: true` render as active pills with a remove button (`removeLabel`, a `'Remove {label}'` template). Clicking the pill emits `select(value)`, the button emits `remove(value)` (and drops the value from the model when it is selected); focus moves to the next pill when the removed one disappears.
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<Button
|
|
3
|
-
v-bind="
|
|
4
|
-
:label="label ?? command.label"
|
|
3
|
+
v-bind="{ ...$attrs, ...labelProps }"
|
|
5
4
|
:icon="icon ?? command.icon"
|
|
6
5
|
:to="command.to"
|
|
7
6
|
:href="command.href"
|
|
@@ -11,11 +10,17 @@
|
|
|
11
10
|
</template>
|
|
12
11
|
|
|
13
12
|
<script setup>
|
|
13
|
+
import { computed } from "vue";
|
|
14
14
|
import Button from "../core/Button.vue";
|
|
15
15
|
defineOptions({ inheritAttrs: false });
|
|
16
|
-
defineProps({
|
|
16
|
+
const props = defineProps({
|
|
17
17
|
command: { type: Object, required: true },
|
|
18
18
|
label: { type: String, required: false },
|
|
19
|
-
icon: { type: null, required: false }
|
|
19
|
+
icon: { type: null, required: false },
|
|
20
|
+
iconOnly: { type: Boolean, required: false }
|
|
21
|
+
});
|
|
22
|
+
const labelProps = computed(() => {
|
|
23
|
+
const text = props.label ?? props.command.label;
|
|
24
|
+
return props.iconOnly ? { square: true, title: text, "aria-label": text } : { label: text };
|
|
20
25
|
});
|
|
21
26
|
</script>
|
|
@@ -5,232 +5,8 @@ declare const __VLS_export: <T = unknown>(__VLS_props: NonNullable<Awaited<typeo
|
|
|
5
5
|
command: CommandItem<T>;
|
|
6
6
|
label?: string;
|
|
7
7
|
icon?: IconName;
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
readonly type?: "submit" | "button" | "reset" | undefined;
|
|
11
|
-
readonly size?: import("../core/types.ts").ButtonSize | undefined;
|
|
12
|
-
readonly tone?: import("../core/types.ts").Tone | undefined;
|
|
13
|
-
readonly variant?: import("../core/types.ts").ButtonVariant | undefined;
|
|
14
|
-
readonly icon?: IconName | undefined;
|
|
15
|
-
readonly trailingIcon?: IconName | undefined;
|
|
16
|
-
readonly to?: import("../core/types.ts").LinkTarget | undefined;
|
|
17
|
-
readonly href?: string | undefined | undefined;
|
|
18
|
-
readonly target?: string | undefined | undefined;
|
|
19
|
-
readonly external?: boolean | undefined;
|
|
20
|
-
readonly disabled?: (boolean | "true" | "false") | undefined;
|
|
21
|
-
readonly loading?: boolean | undefined;
|
|
22
|
-
readonly block?: boolean | undefined;
|
|
23
|
-
readonly square?: boolean | undefined;
|
|
24
|
-
readonly download?: any;
|
|
25
|
-
readonly hreflang?: string | undefined | undefined;
|
|
26
|
-
readonly media?: string | undefined | undefined;
|
|
27
|
-
readonly ping?: string | undefined | undefined;
|
|
28
|
-
readonly rel?: string | undefined | undefined;
|
|
29
|
-
readonly referrerpolicy?: ("" | "origin" | "no-referrer" | "no-referrer-when-downgrade" | "origin-when-cross-origin" | "same-origin" | "strict-origin" | "strict-origin-when-cross-origin" | "unsafe-url") | undefined;
|
|
30
|
-
readonly innerHTML?: string | undefined | undefined;
|
|
31
|
-
readonly class?: import("vue").ClassValue;
|
|
32
|
-
readonly style?: import("vue").StyleValue;
|
|
33
|
-
readonly accesskey?: string | undefined | undefined;
|
|
34
|
-
readonly contenteditable?: (boolean | "true" | "false") | "inherit" | "plaintext-only" | undefined;
|
|
35
|
-
readonly contextmenu?: string | undefined | undefined;
|
|
36
|
-
readonly dir?: string | undefined | undefined;
|
|
37
|
-
readonly draggable?: (boolean | "true" | "false") | undefined;
|
|
38
|
-
readonly enterkeyhint?: "enter" | "done" | "go" | "next" | "previous" | "search" | "send" | undefined | undefined;
|
|
39
|
-
readonly enterKeyHint?: "search" | "done" | "previous" | "next" | "enter" | "go" | "send" | undefined;
|
|
40
|
-
readonly hidden?: "" | "hidden" | (boolean | "true" | "false") | "until-found" | undefined;
|
|
41
|
-
readonly id?: string | undefined | undefined;
|
|
42
|
-
readonly inert?: (boolean | "true" | "false") | undefined;
|
|
43
|
-
readonly lang?: string | undefined | undefined;
|
|
44
|
-
readonly placeholder?: string | undefined | undefined;
|
|
45
|
-
readonly spellcheck?: (boolean | "true" | "false") | undefined;
|
|
46
|
-
readonly tabindex?: (string | number) | undefined;
|
|
47
|
-
readonly title?: string | undefined | undefined;
|
|
48
|
-
readonly translate?: "yes" | "no" | undefined | undefined;
|
|
49
|
-
readonly radiogroup?: string | undefined | undefined;
|
|
50
|
-
readonly role?: string | undefined | undefined;
|
|
51
|
-
readonly about?: string | undefined | undefined;
|
|
52
|
-
readonly datatype?: string | undefined | undefined;
|
|
53
|
-
readonly inlist?: any;
|
|
54
|
-
readonly prefix?: string | undefined | undefined;
|
|
55
|
-
readonly property?: string | undefined | undefined;
|
|
56
|
-
readonly resource?: string | undefined | undefined;
|
|
57
|
-
readonly typeof?: string | undefined | undefined;
|
|
58
|
-
readonly vocab?: string | undefined | undefined;
|
|
59
|
-
readonly autocapitalize?: string | undefined | undefined;
|
|
60
|
-
readonly autocorrect?: string | undefined | undefined;
|
|
61
|
-
readonly autosave?: string | undefined | undefined;
|
|
62
|
-
readonly color?: string | undefined | undefined;
|
|
63
|
-
readonly itemprop?: string | undefined | undefined;
|
|
64
|
-
readonly itemscope?: (boolean | "true" | "false") | undefined;
|
|
65
|
-
readonly itemtype?: string | undefined | undefined;
|
|
66
|
-
readonly itemid?: string | undefined | undefined;
|
|
67
|
-
readonly itemref?: string | undefined | undefined;
|
|
68
|
-
readonly results?: (string | number) | undefined;
|
|
69
|
-
readonly security?: string | undefined | undefined;
|
|
70
|
-
readonly unselectable?: "on" | "off" | undefined | undefined;
|
|
71
|
-
readonly inputmode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | undefined | undefined;
|
|
72
|
-
readonly is?: string | undefined | undefined;
|
|
73
|
-
readonly exportparts?: string | undefined;
|
|
74
|
-
readonly part?: string | undefined;
|
|
75
|
-
readonly popover?: (import("../../index.ts").PopoverMode | "" | boolean) | undefined;
|
|
76
|
-
readonly 'aria-activedescendant'?: string | undefined | undefined;
|
|
77
|
-
readonly 'aria-atomic'?: (boolean | "true" | "false") | undefined;
|
|
78
|
-
readonly 'aria-autocomplete'?: "none" | "inline" | "list" | "both" | undefined | undefined;
|
|
79
|
-
readonly 'aria-busy'?: (boolean | "true" | "false") | undefined;
|
|
80
|
-
readonly 'aria-checked'?: (boolean | "true" | "false") | "mixed" | undefined;
|
|
81
|
-
readonly 'aria-colcount'?: (string | number) | undefined;
|
|
82
|
-
readonly 'aria-colindex'?: (string | number) | undefined;
|
|
83
|
-
readonly 'aria-colspan'?: (string | number) | undefined;
|
|
84
|
-
readonly 'aria-controls'?: string | undefined | undefined;
|
|
85
|
-
readonly 'aria-current'?: "page" | "time" | (boolean | "true" | "false") | "step" | "location" | "date" | undefined;
|
|
86
|
-
readonly 'aria-describedby'?: string | undefined | undefined;
|
|
87
|
-
readonly 'aria-details'?: string | undefined | undefined;
|
|
88
|
-
readonly 'aria-disabled'?: (boolean | "true" | "false") | undefined;
|
|
89
|
-
readonly 'aria-dropeffect'?: "none" | "copy" | "execute" | "link" | "move" | "popup" | undefined | undefined;
|
|
90
|
-
readonly 'aria-errormessage'?: string | undefined | undefined;
|
|
91
|
-
readonly 'aria-expanded'?: (boolean | "true" | "false") | undefined;
|
|
92
|
-
readonly 'aria-flowto'?: string | undefined | undefined;
|
|
93
|
-
readonly 'aria-grabbed'?: (boolean | "true" | "false") | undefined;
|
|
94
|
-
readonly 'aria-haspopup'?: "grid" | "tree" | "dialog" | "menu" | (boolean | "true" | "false") | "listbox" | undefined;
|
|
95
|
-
readonly 'aria-hidden'?: (boolean | "true" | "false") | undefined;
|
|
96
|
-
readonly 'aria-invalid'?: (boolean | "true" | "false") | "grammar" | "spelling" | undefined;
|
|
97
|
-
readonly 'aria-keyshortcuts'?: string | undefined | undefined;
|
|
98
|
-
readonly 'aria-label'?: string | undefined | undefined;
|
|
99
|
-
readonly 'aria-labelledby'?: string | undefined | undefined;
|
|
100
|
-
readonly 'aria-level'?: (string | number) | undefined;
|
|
101
|
-
readonly 'aria-live'?: "off" | "assertive" | "polite" | undefined | undefined;
|
|
102
|
-
readonly 'aria-modal'?: (boolean | "true" | "false") | undefined;
|
|
103
|
-
readonly 'aria-multiline'?: (boolean | "true" | "false") | undefined;
|
|
104
|
-
readonly 'aria-multiselectable'?: (boolean | "true" | "false") | undefined;
|
|
105
|
-
readonly 'aria-orientation'?: "horizontal" | "vertical" | undefined | undefined;
|
|
106
|
-
readonly 'aria-owns'?: string | undefined | undefined;
|
|
107
|
-
readonly 'aria-placeholder'?: string | undefined | undefined;
|
|
108
|
-
readonly 'aria-posinset'?: (string | number) | undefined;
|
|
109
|
-
readonly 'aria-pressed'?: (boolean | "true" | "false") | "mixed" | undefined;
|
|
110
|
-
readonly 'aria-readonly'?: (boolean | "true" | "false") | undefined;
|
|
111
|
-
readonly 'aria-relevant'?: "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text" | "text additions" | "text removals" | undefined | undefined;
|
|
112
|
-
readonly 'aria-required'?: (boolean | "true" | "false") | undefined;
|
|
113
|
-
readonly 'aria-roledescription'?: string | undefined | undefined;
|
|
114
|
-
readonly 'aria-rowcount'?: (string | number) | undefined;
|
|
115
|
-
readonly 'aria-rowindex'?: (string | number) | undefined;
|
|
116
|
-
readonly 'aria-rowspan'?: (string | number) | undefined;
|
|
117
|
-
readonly 'aria-selected'?: (boolean | "true" | "false") | undefined;
|
|
118
|
-
readonly 'aria-setsize'?: (string | number) | undefined;
|
|
119
|
-
readonly 'aria-sort'?: "none" | "ascending" | "descending" | "other" | undefined | undefined;
|
|
120
|
-
readonly 'aria-valuemax'?: (string | number) | undefined;
|
|
121
|
-
readonly 'aria-valuemin'?: (string | number) | undefined;
|
|
122
|
-
readonly 'aria-valuenow'?: (string | number) | undefined;
|
|
123
|
-
readonly 'aria-valuetext'?: string | undefined | undefined;
|
|
124
|
-
readonly onCopy?: ((payload: ClipboardEvent) => void) | undefined;
|
|
125
|
-
readonly onCut?: ((payload: ClipboardEvent) => void) | undefined;
|
|
126
|
-
readonly onPaste?: ((payload: ClipboardEvent) => void) | undefined;
|
|
127
|
-
readonly onCompositionend?: ((payload: CompositionEvent) => void) | undefined;
|
|
128
|
-
readonly onCompositionstart?: ((payload: CompositionEvent) => void) | undefined;
|
|
129
|
-
readonly onCompositionupdate?: ((payload: CompositionEvent) => void) | undefined;
|
|
130
|
-
readonly onDrag?: ((payload: DragEvent) => void) | undefined;
|
|
131
|
-
readonly onDragend?: ((payload: DragEvent) => void) | undefined;
|
|
132
|
-
readonly onDragenter?: ((payload: DragEvent) => void) | undefined;
|
|
133
|
-
readonly onDragexit?: ((payload: DragEvent) => void) | undefined;
|
|
134
|
-
readonly onDragleave?: ((payload: DragEvent) => void) | undefined;
|
|
135
|
-
readonly onDragover?: ((payload: DragEvent) => void) | undefined;
|
|
136
|
-
readonly onDragstart?: ((payload: DragEvent) => void) | undefined;
|
|
137
|
-
readonly onDrop?: ((payload: DragEvent) => void) | undefined;
|
|
138
|
-
readonly onFocus?: ((payload: FocusEvent) => void) | undefined;
|
|
139
|
-
readonly onFocusin?: ((payload: FocusEvent) => void) | undefined;
|
|
140
|
-
readonly onFocusout?: ((payload: FocusEvent) => void) | undefined;
|
|
141
|
-
readonly onBlur?: ((payload: FocusEvent) => void) | undefined;
|
|
142
|
-
readonly onChange?: ((payload: Event) => void) | undefined;
|
|
143
|
-
readonly onBeforeinput?: ((payload: InputEvent) => void) | undefined;
|
|
144
|
-
readonly onFormdata?: ((payload: FormDataEvent) => void) | undefined;
|
|
145
|
-
readonly onInput?: ((payload: InputEvent) => void) | undefined;
|
|
146
|
-
readonly onReset?: ((payload: Event) => void) | undefined;
|
|
147
|
-
readonly onSubmit?: ((payload: SubmitEvent) => void) | undefined;
|
|
148
|
-
readonly onInvalid?: ((payload: Event) => void) | undefined;
|
|
149
|
-
readonly onFullscreenchange?: ((payload: Event) => void) | undefined;
|
|
150
|
-
readonly onFullscreenerror?: ((payload: Event) => void) | undefined;
|
|
151
|
-
readonly onLoad?: ((payload: Event) => void) | undefined;
|
|
152
|
-
readonly onError?: ((payload: Event) => void) | undefined;
|
|
153
|
-
readonly onKeydown?: ((payload: KeyboardEvent) => void) | undefined;
|
|
154
|
-
readonly onKeypress?: ((payload: KeyboardEvent) => void) | undefined;
|
|
155
|
-
readonly onKeyup?: ((payload: KeyboardEvent) => void) | undefined;
|
|
156
|
-
readonly onDblclick?: ((payload: MouseEvent) => void) | undefined;
|
|
157
|
-
readonly onMousedown?: ((payload: MouseEvent) => void) | undefined;
|
|
158
|
-
readonly onMouseenter?: ((payload: MouseEvent) => void) | undefined;
|
|
159
|
-
readonly onMouseleave?: ((payload: MouseEvent) => void) | undefined;
|
|
160
|
-
readonly onMousemove?: ((payload: MouseEvent) => void) | undefined;
|
|
161
|
-
readonly onMouseout?: ((payload: MouseEvent) => void) | undefined;
|
|
162
|
-
readonly onMouseover?: ((payload: MouseEvent) => void) | undefined;
|
|
163
|
-
readonly onMouseup?: ((payload: MouseEvent) => void) | undefined;
|
|
164
|
-
readonly onAbort?: ((payload: UIEvent) => void) | undefined;
|
|
165
|
-
readonly onCanplay?: ((payload: Event) => void) | undefined;
|
|
166
|
-
readonly onCanplaythrough?: ((payload: Event) => void) | undefined;
|
|
167
|
-
readonly onDurationchange?: ((payload: Event) => void) | undefined;
|
|
168
|
-
readonly onEmptied?: ((payload: Event) => void) | undefined;
|
|
169
|
-
readonly onEncrypted?: ((payload: MediaEncryptedEvent) => void) | undefined;
|
|
170
|
-
readonly onEnded?: ((payload: Event) => void) | undefined;
|
|
171
|
-
readonly onLoadeddata?: ((payload: Event) => void) | undefined;
|
|
172
|
-
readonly onLoadedmetadata?: ((payload: Event) => void) | undefined;
|
|
173
|
-
readonly onLoadstart?: ((payload: Event) => void) | undefined;
|
|
174
|
-
readonly onPause?: ((payload: Event) => void) | undefined;
|
|
175
|
-
readonly onPlay?: ((payload: Event) => void) | undefined;
|
|
176
|
-
readonly onPlaying?: ((payload: Event) => void) | undefined;
|
|
177
|
-
readonly onProgress?: ((payload: ProgressEvent<EventTarget>) => void) | undefined;
|
|
178
|
-
readonly onRatechange?: ((payload: Event) => void) | undefined;
|
|
179
|
-
readonly onSeeked?: ((payload: Event) => void) | undefined;
|
|
180
|
-
readonly onSeeking?: ((payload: Event) => void) | undefined;
|
|
181
|
-
readonly onStalled?: ((payload: Event) => void) | undefined;
|
|
182
|
-
readonly onSuspend?: ((payload: Event) => void) | undefined;
|
|
183
|
-
readonly onTimeupdate?: ((payload: Event) => void) | undefined;
|
|
184
|
-
readonly onVolumechange?: ((payload: Event) => void) | undefined;
|
|
185
|
-
readonly onWaiting?: ((payload: Event) => void) | undefined;
|
|
186
|
-
readonly onSelect?: ((payload: Event) => void) | undefined;
|
|
187
|
-
readonly onScroll?: ((payload: Event) => void) | undefined;
|
|
188
|
-
readonly onScrollend?: ((payload: Event) => void) | undefined;
|
|
189
|
-
readonly onTouchcancel?: ((payload: TouchEvent) => void) | undefined;
|
|
190
|
-
readonly onTouchend?: ((payload: TouchEvent) => void) | undefined;
|
|
191
|
-
readonly onTouchmove?: ((payload: TouchEvent) => void) | undefined;
|
|
192
|
-
readonly onTouchstart?: ((payload: TouchEvent) => void) | undefined;
|
|
193
|
-
readonly onAuxclick?: ((payload: PointerEvent) => void) | undefined;
|
|
194
|
-
readonly onClick?: ((payload: PointerEvent) => void) | undefined;
|
|
195
|
-
readonly onContextmenu?: ((payload: PointerEvent) => void) | undefined;
|
|
196
|
-
readonly onGotpointercapture?: ((payload: PointerEvent) => void) | undefined;
|
|
197
|
-
readonly onLostpointercapture?: ((payload: PointerEvent) => void) | undefined;
|
|
198
|
-
readonly onPointerdown?: ((payload: PointerEvent) => void) | undefined;
|
|
199
|
-
readonly onPointermove?: ((payload: PointerEvent) => void) | undefined;
|
|
200
|
-
readonly onPointerup?: ((payload: PointerEvent) => void) | undefined;
|
|
201
|
-
readonly onPointercancel?: ((payload: PointerEvent) => void) | undefined;
|
|
202
|
-
readonly onPointerenter?: ((payload: PointerEvent) => void) | undefined;
|
|
203
|
-
readonly onPointerleave?: ((payload: PointerEvent) => void) | undefined;
|
|
204
|
-
readonly onPointerover?: ((payload: PointerEvent) => void) | undefined;
|
|
205
|
-
readonly onPointerout?: ((payload: PointerEvent) => void) | undefined;
|
|
206
|
-
readonly onBeforetoggle?: ((payload: ToggleEvent) => void) | undefined;
|
|
207
|
-
readonly onToggle?: ((payload: ToggleEvent) => void) | undefined;
|
|
208
|
-
readonly onWheel?: ((payload: WheelEvent) => void) | undefined;
|
|
209
|
-
readonly onAnimationcancel?: ((payload: AnimationEvent) => void) | undefined;
|
|
210
|
-
readonly onAnimationstart?: ((payload: AnimationEvent) => void) | undefined;
|
|
211
|
-
readonly onAnimationend?: ((payload: AnimationEvent) => void) | undefined;
|
|
212
|
-
readonly onAnimationiteration?: ((payload: AnimationEvent) => void) | undefined;
|
|
213
|
-
readonly onSecuritypolicyviolation?: ((payload: SecurityPolicyViolationEvent) => void) | undefined;
|
|
214
|
-
readonly onTransitioncancel?: ((payload: TransitionEvent) => void) | undefined;
|
|
215
|
-
readonly onTransitionend?: ((payload: TransitionEvent) => void) | undefined;
|
|
216
|
-
readonly onTransitionrun?: ((payload: TransitionEvent) => void) | undefined;
|
|
217
|
-
readonly onTransitionstart?: ((payload: TransitionEvent) => void) | undefined;
|
|
218
|
-
readonly key?: PropertyKey | undefined;
|
|
219
|
-
readonly ref?: import("vue").VNodeRef | undefined;
|
|
220
|
-
readonly ref_for?: boolean | undefined | undefined;
|
|
221
|
-
readonly ref_key?: string | undefined | undefined;
|
|
222
|
-
readonly autofocus?: (boolean | "true" | "false") | undefined;
|
|
223
|
-
readonly form?: string | undefined | undefined;
|
|
224
|
-
readonly formaction?: string | undefined | undefined;
|
|
225
|
-
readonly formenctype?: string | undefined | undefined;
|
|
226
|
-
readonly formmethod?: string | undefined | undefined;
|
|
227
|
-
readonly formnovalidate?: (boolean | "true" | "false") | undefined;
|
|
228
|
-
readonly formtarget?: string | undefined | undefined;
|
|
229
|
-
readonly name?: string | undefined | undefined;
|
|
230
|
-
readonly value?: string | number | readonly string[] | undefined;
|
|
231
|
-
readonly popovertarget?: string | undefined;
|
|
232
|
-
readonly popovertargetaction?: import("../../index.ts").PopoverTargetAction | undefined;
|
|
233
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps>>> & (typeof globalThis extends {
|
|
8
|
+
iconOnly?: boolean;
|
|
9
|
+
}> & (typeof globalThis extends {
|
|
234
10
|
__VLS_PROPS_FALLBACK: infer P;
|
|
235
11
|
} ? P : {});
|
|
236
12
|
expose: (exposed: {}) => void;
|
|
@@ -13,10 +13,6 @@
|
|
|
13
13
|
padding-block: 0.75rem;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
-
.k-record-list.is-interactive .k-record-list-item {
|
|
17
|
-
cursor: pointer;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
16
|
.k-record-list-item + .k-record-list-item {
|
|
21
17
|
border-top: 1px solid var(--k-line);
|
|
22
18
|
}
|
|
@@ -57,3 +53,24 @@
|
|
|
57
53
|
color: var(--k-text-muted);
|
|
58
54
|
overflow-wrap: anywhere;
|
|
59
55
|
}
|
|
56
|
+
|
|
57
|
+
.k-record-list.is-interactive {
|
|
58
|
+
gap: 0.125rem;
|
|
59
|
+
margin-inline: -0.75rem;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.k-record-list.is-interactive .k-record-list-item {
|
|
63
|
+
padding: 0.75rem;
|
|
64
|
+
border-top: 0;
|
|
65
|
+
border-radius: var(--k-radius-md);
|
|
66
|
+
cursor: pointer;
|
|
67
|
+
transition: background-color var(--k-duration) var(--k-ease);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.k-record-list.is-interactive .k-record-list-item:hover {
|
|
71
|
+
background: var(--k-hover);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.k-record-list.is-interactive .k-record-list-item:active {
|
|
75
|
+
background: var(--k-press);
|
|
76
|
+
}
|
package/package.json
CHANGED