@vc-shell/vc-app-skill 2.11.0 → 2.12.0-pr417.8c07e1b
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/package.json +1 -1
- package/runtime/VERSION +1 -1
- package/runtime/knowledge/components.json +6396 -0
- package/runtime/knowledge/docs/_BUILD_HASH.md +1 -1
- package/runtime/knowledge/docs/core/blade-navigation/table-query-state/useTableQueryState.docs.md +1 -1
- package/runtime/knowledge/docs/core/plugins/i18n/i18n.docs.md +34 -8
- package/runtime/knowledge/docs/modules/assets/assets-details.docs.md +107 -40
- package/runtime/knowledge/docs/modules/assets-manager/assets-manager.docs.md +1 -0
- package/runtime/knowledge/docs/ui/components/atoms/vc-badge/vc-badge.docs.md +16 -14
- package/runtime/knowledge/docs/ui/components/atoms/vc-button/vc-button.docs.md +24 -11
- package/runtime/knowledge/docs/ui/components/molecules/vc-accordion/vc-accordion.docs.md +18 -4
- package/runtime/knowledge/docs/ui/components/molecules/vc-dropdown/vc-dropdown.docs.md +71 -43
- package/runtime/knowledge/docs/ui/components/molecules/vc-input/vc-input.docs.md +56 -46
- package/runtime/knowledge/docs/ui/components/molecules/vc-popover/vc-popover.docs.md +2 -0
- package/runtime/knowledge/docs/ui/components/molecules/vc-switch/vc-switch.docs.md +4 -3
- package/runtime/knowledge/docs/ui/components/organisms/vc-data-table/vc-data-table.docs.md +140 -26
- package/runtime/knowledge/docs/ui/components/organisms/vc-sidebar/vc-sidebar.docs.md +46 -28
- package/runtime/knowledge/index.md +14 -0
- package/runtime/knowledge/docs/core/composables/useKeyboardShortcuts/useKeyboardShortcuts.docs.md +0 -219
- package/runtime/knowledge/docs/core/composables/useLatestRequest/useLatestRequest.docs.md +0 -151
- package/runtime/knowledge/docs/core/utilities/focus.docs.md +0 -48
|
@@ -203,6 +203,29 @@ By default the panel is unmounted while closed. Set `forceMount` to keep it in t
|
|
|
203
203
|
</VcDropdown>
|
|
204
204
|
```
|
|
205
205
|
|
|
206
|
+
### Combobox Mode
|
|
207
|
+
|
|
208
|
+
A text field that suggests values keeps the focus while its list is open: the field's own keys move the active option, and the list only shows it. Set `combobox`, put the field in the `trigger` slot, mark the active option with `isItemActive`, and name it on the field with the slot's `itemId`:
|
|
209
|
+
|
|
210
|
+
```vue
|
|
211
|
+
<VcDropdown :model-value="open" :items="suggestions" role="listbox" combobox floating :teleport="false" placement="bottom-start" :auto-focus-panel="false" :close-on-escape="false" :close-on-click-outside="false" :is-item-active="(s) => suggestions.indexOf(s) === active" @item-click="pick">
|
|
212
|
+
<template #trigger="{ panelId, itemId }">
|
|
213
|
+
<VcInput
|
|
214
|
+
v-model="text"
|
|
215
|
+
:input-attrs="{
|
|
216
|
+
role: 'combobox',
|
|
217
|
+
'aria-expanded': open,
|
|
218
|
+
'aria-controls': open ? panelId : undefined,
|
|
219
|
+
'aria-activedescendant': open ? itemId(active) : undefined,
|
|
220
|
+
}"
|
|
221
|
+
@keydown="onArrowKeys"
|
|
222
|
+
/>
|
|
223
|
+
</template>
|
|
224
|
+
</VcDropdown>
|
|
225
|
+
```
|
|
226
|
+
|
|
227
|
+
The panel is not focusable and a mouse press on it is cancelled, so the field keeps the focus (and its caret) while an option is clicked.
|
|
228
|
+
|
|
206
229
|
## Recipes
|
|
207
230
|
|
|
208
231
|
### Confirmation Dropdown
|
|
@@ -322,31 +345,32 @@ By default the panel is unmounted while closed. Set `forceMount` to keep it in t
|
|
|
322
345
|
|
|
323
346
|
## Props
|
|
324
347
|
|
|
325
|
-
| Prop | Type | Default | Description
|
|
326
|
-
| --------------------- | ---------------------------------------------- | ------------------------------- |
|
|
327
|
-
| `modelValue` | `boolean` | `false` | Controls open/closed state via `v-model`
|
|
328
|
-
| `items` | `T[]` | `[]` | Items to render in the dropdown
|
|
329
|
-
| `emptyText` | `string` | `""` | Text shown when items array is empty
|
|
330
|
-
| `itemText` | `(item: T) => string` | -- | Maps an item to display text (default renderer only)
|
|
331
|
-
| `isItemActive` | `(item: T) => boolean` | -- | Marks the currently active item (highlighted state)
|
|
332
|
-
| `isItemDisabled` | `(item: T) => boolean` | -- | Marks an item `aria-disabled`: focusable, cannot be chosen
|
|
333
|
-
| `itemKey` | `(item: T, index: number) => string \| number` | index | Unique key function for items
|
|
334
|
-
| `floating` | `boolean` | `false` | Enable floating positioning via `@floating-ui`
|
|
335
|
-
| `teleport` | `boolean` | -- | Force teleport to body (defaults to match `floating`)
|
|
336
|
-
| `teleportTo` | `string \| HTMLElement` | -- | Custom teleport target
|
|
337
|
-
| `placement` | `Placement` | `"bottom"` | Floating UI placement
|
|
338
|
-
| `offset` | `{ mainAxis?: number; crossAxis?: number }` | `{ mainAxis: 0, crossAxis: 0 }` | Offset from the trigger element
|
|
339
|
-
| `variant` | `"default" \| "secondary"` | `"default"` | Visual style variant
|
|
340
|
-
| `maxHeight` | `number \| string` | `300` | Maximum panel height (number = px, string = CSS value)
|
|
341
|
-
| `role` | `"menu" \| "listbox"` | `"menu"` | ARIA role for the dropdown panel
|
|
342
|
-
| `ariaLabel` | `string` | -- | Accessible name for the panel. Required for a named `listbox`.
|
|
343
|
-
| `closeOnClickOutside` | `boolean` | `true` | Close when clicking outside the dropdown
|
|
344
|
-
| `closeOnEscape` | `boolean` | `true` | Close on Escape key press
|
|
345
|
-
| `closeOnSelect` | `boolean` | `false` | Close after selecting an item
|
|
346
|
-
| `autoFocusPanel` | `boolean` | `true` | Focus the panel element when opened
|
|
347
|
-
| `padded` | `boolean` | `true` | Apply compact padding and rounded item backgrounds
|
|
348
|
-
| `zIndex` | `number` | `9300` | Z-index for the floating panel
|
|
349
|
-
| `forceMount` | `boolean` | `false` | Keep the panel content mounted (hidden, inert) while closed
|
|
348
|
+
| Prop | Type | Default | Description |
|
|
349
|
+
| --------------------- | ---------------------------------------------- | ------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
350
|
+
| `modelValue` | `boolean` | `false` | Controls open/closed state via `v-model` |
|
|
351
|
+
| `items` | `T[]` | `[]` | Items to render in the dropdown |
|
|
352
|
+
| `emptyText` | `string` | `""` | Text shown when items array is empty |
|
|
353
|
+
| `itemText` | `(item: T) => string` | -- | Maps an item to display text (default renderer only) |
|
|
354
|
+
| `isItemActive` | `(item: T) => boolean` | -- | Marks the currently active item (highlighted state) |
|
|
355
|
+
| `isItemDisabled` | `(item: T) => boolean` | -- | Marks an item `aria-disabled`: focusable, cannot be chosen |
|
|
356
|
+
| `itemKey` | `(item: T, index: number) => string \| number` | index | Unique key function for items |
|
|
357
|
+
| `floating` | `boolean` | `false` | Enable floating positioning via `@floating-ui` |
|
|
358
|
+
| `teleport` | `boolean` | -- | Force teleport to body (defaults to match `floating`) |
|
|
359
|
+
| `teleportTo` | `string \| HTMLElement` | -- | Custom teleport target |
|
|
360
|
+
| `placement` | `Placement` | `"bottom"` | Floating UI placement |
|
|
361
|
+
| `offset` | `{ mainAxis?: number; crossAxis?: number }` | `{ mainAxis: 0, crossAxis: 0 }` | Offset from the trigger element |
|
|
362
|
+
| `variant` | `"default" \| "secondary"` | `"default"` | Visual style variant |
|
|
363
|
+
| `maxHeight` | `number \| string` | `300` | Maximum panel height (number = px, string = CSS value) |
|
|
364
|
+
| `role` | `"menu" \| "listbox"` | `"menu"` | ARIA role for the dropdown panel |
|
|
365
|
+
| `ariaLabel` | `string` | -- | Accessible name for the panel. Required for a named `listbox`. |
|
|
366
|
+
| `closeOnClickOutside` | `boolean` | `true` | Close when clicking outside the dropdown |
|
|
367
|
+
| `closeOnEscape` | `boolean` | `true` | Close on Escape key press |
|
|
368
|
+
| `closeOnSelect` | `boolean` | `false` | Close after selecting an item |
|
|
369
|
+
| `autoFocusPanel` | `boolean` | `true` | Focus the panel element when opened |
|
|
370
|
+
| `padded` | `boolean` | `true` | Apply compact padding and rounded item backgrounds |
|
|
371
|
+
| `zIndex` | `number` | `9300` | Z-index for the floating panel |
|
|
372
|
+
| `forceMount` | `boolean` | `false` | Keep the panel content mounted (hidden, inert) while closed |
|
|
373
|
+
| `combobox` | `boolean` | `false` | The trigger is a text field that keeps the focus while the panel is open: the panel leaves the tab order, a press on it does not take the focus, and the field names the active option (see [Combobox Mode](#combobox-mode)) |
|
|
350
374
|
|
|
351
375
|
## Events
|
|
352
376
|
|
|
@@ -359,33 +383,37 @@ By default the panel is unmounted while closed. Set `forceMount` to keep it in t
|
|
|
359
383
|
|
|
360
384
|
## Slots
|
|
361
385
|
|
|
362
|
-
| Slot | Props
|
|
363
|
-
| ----------------- |
|
|
364
|
-
| `trigger` | `{ isActive: boolean, toggle: () => void, open: () => void, close: () => void, panelId: string }` | Custom trigger element. Render a real interactive control (e.g. `VcButton`) that calls `toggle` — the wrapper is a passive container, so nesting a button inside a `role="button"` wrapper is avoided. Use `panelId` to wire `aria-controls`/`aria-expanded` on your control
|
|
365
|
-
| `item` | `{ item: T, click: () => void }`
|
|
366
|
-
| `empty` | --
|
|
367
|
-
| `items-container` | `{ items: T[], close: () => void }`
|
|
386
|
+
| Slot | Props | Description |
|
|
387
|
+
| ----------------- | ------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
388
|
+
| `trigger` | `{ isActive: boolean, toggle: () => void, open: () => void, close: () => void, panelId: string, itemId: (index: number) => string }` | Custom trigger element. Render a real interactive control (e.g. `VcButton`) that calls `toggle` — the wrapper is a passive container, so nesting a button inside a `role="button"` wrapper is avoided. Use `panelId` to wire `aria-controls`/`aria-expanded` on your control, and `itemId` for a combobox field's `aria-activedescendant`. |
|
|
389
|
+
| `item` | `{ item: T, click: () => void }` | Custom item rendering |
|
|
390
|
+
| `empty` | -- | Content when items array is empty |
|
|
391
|
+
| `items-container` | `{ items: T[], close: () => void }` | Full control over the items list |
|
|
392
|
+
| `header` | -- | Content above the items, e.g. a title. Not part of the item list or its keyboard navigation |
|
|
368
393
|
|
|
369
394
|
## CSS Variables
|
|
370
395
|
|
|
371
|
-
| Variable | Default
|
|
372
|
-
| ----------------------------------------- |
|
|
373
|
-
| `--vc-dropdown-bg` | `var(--additional-50)`
|
|
374
|
-
| `--vc-dropdown-text` | `var(--neutrals-950)`
|
|
375
|
-
| `--vc-dropdown-border` | `var(--neutrals-200)`
|
|
376
|
-
| `--vc-dropdown-accent` | `var(--neutrals-100)`
|
|
377
|
-
| `--vc-dropdown-accent-foreground` | `var(--neutrals-900)`
|
|
378
|
-
| `--vc-dropdown-divider` | `var(--neutrals-200)`
|
|
379
|
-
| `--vc-dropdown-trigger-focus-ring-width` | `2px`
|
|
380
|
-
| `--vc-dropdown-trigger-focus-ring-offset` | `1px`
|
|
381
|
-
| `--vc-dropdown-trigger-focus-ring-color` | `var(--primary-300)`
|
|
396
|
+
| Variable | Default | Description |
|
|
397
|
+
| ----------------------------------------- | -------------------------------- | ----------------------------------------------------------------------------------------------- |
|
|
398
|
+
| `--vc-dropdown-bg` | `var(--additional-50)` | Panel background color |
|
|
399
|
+
| `--vc-dropdown-text` | `var(--neutrals-950)` | Default text color |
|
|
400
|
+
| `--vc-dropdown-border` | `var(--neutrals-200)` | Floating panel border color |
|
|
401
|
+
| `--vc-dropdown-accent` | `var(--neutrals-100)` | Hover/focus background color |
|
|
402
|
+
| `--vc-dropdown-accent-foreground` | `var(--neutrals-900)` | Hover/focus text color |
|
|
403
|
+
| `--vc-dropdown-divider` | `var(--neutrals-200)` | Mobile item divider color |
|
|
404
|
+
| `--vc-dropdown-trigger-focus-ring-width` | `2px` | Trigger focus ring width |
|
|
405
|
+
| `--vc-dropdown-trigger-focus-ring-offset` | `1px` | Trigger focus ring offset |
|
|
406
|
+
| `--vc-dropdown-trigger-focus-ring-color` | `var(--primary-300)` | Trigger focus ring color |
|
|
407
|
+
| `--vc-dropdown-trigger-flex` | `initial` | `flex` of the trigger wrapper; `1 1 auto` lets a field in the trigger fill the dropdown's width |
|
|
408
|
+
| `--vc-dropdown-radius` | `6px` | Corner radius of a floating panel |
|
|
409
|
+
| `--vc-dropdown-shadow` | `0 4px 16px rgba(0, 0, 0, 0.08)` | Shadow of a floating panel |
|
|
382
410
|
|
|
383
411
|
## Accessibility
|
|
384
412
|
|
|
385
413
|
- **Trigger element**: a passive wrapper — the interactive control lives in the `#trigger` slot. Render a real `<button>` (e.g. `VcButton`) that calls `toggle`; wire `aria-expanded`/`aria-haspopup`/`aria-controls` (via the slot's `panelId`) on it. This avoids nesting interactive controls (WCAG 4.1.2).
|
|
386
414
|
- **Panel**: uses the specified `role` attribute (`"menu"` or `"listbox"`), is keyboard-focusable (`tabindex="0"`), and takes an accessible name from `ariaLabel`
|
|
387
415
|
- **Items**: use `role="menuitem"` (menu mode) or `role="option"` (listbox mode)
|
|
388
|
-
- **Active item tracking**: `aria-activedescendant` on the panel tracks the currently focused item
|
|
416
|
+
- **Active item tracking**: `aria-activedescendant` on the panel tracks the currently focused item. In `combobox` mode the panel drops it and leaves the tab order: the field carries `aria-activedescendant` (`itemId` from the trigger slot)
|
|
389
417
|
- **Listbox selection**: `aria-selected` is set on items when `role="listbox"` and `isItemActive` returns `true`
|
|
390
418
|
- **Keyboard navigation**:
|
|
391
419
|
- **Arrow Down / Arrow Up** -- move focus between items (wraps around)
|
|
@@ -671,33 +671,34 @@ VcInput blocks the minus key for both `number` and `integer` types. If you need
|
|
|
671
671
|
|
|
672
672
|
### Props
|
|
673
673
|
|
|
674
|
-
| Prop | Type | Default | Description
|
|
675
|
-
| ------------------- | ------------------------------------------------------------------------------------------------------------------------------- | ----------- |
|
|
676
|
-
| `modelValue` | `string \| number \| Date \| null` | `undefined` | Bound value via `v-model`
|
|
677
|
-
| `type` | `"text" \| "password" \| "email" \| "tel" \| "url" \| "time" \| "number" \| "integer" \| "date" \| "datetime-local" \| "color"` | `"text"` | Input type. `date`/`datetime-local` delegate to VcDatePicker; `color` delegates to VcColorInput
|
|
678
|
-
| `label` | `string` | -- | Label text displayed above the field
|
|
679
|
-
| `placeholder` | `string` | -- | Placeholder text inside the field
|
|
680
|
-
| `hint` | `string` | -- | Help text displayed below the field
|
|
681
|
-
| `tooltip` | `string` | -- | Tooltip text shown on hover next to the label
|
|
682
|
-
| `prefix` | `string` | -- | Static text rendered before the input value
|
|
683
|
-
| `suffix` | `string` | -- | Static text rendered after the input value
|
|
684
|
-
| `name` | `string` | `"Field"` | HTML `name` attribute on the native input
|
|
685
|
-
| `clearable` | `boolean` | `false` | Shows a clear (x) button when the field has a value
|
|
686
|
-
| `disabled` | `boolean` | `false` | Disables the input (also inherits from `VcInputGroup` context)
|
|
687
|
-
| `required` | `boolean` | `false` | Adds a red asterisk to the label (visual only, no validation)
|
|
688
|
-
| `loading` | `boolean` | `false` | Shows a spinning loader icon inside the field
|
|
689
|
-
| `autofocus` | `boolean` | `false` | Auto-focuses the input on mount
|
|
690
|
-
| `autocomplete` | `string` | -- | Autofill hint set on the native input (e.g. `"username"`, `"current-password"`)
|
|
691
|
-
| `ariaLabel` | `string` | -- | Accessible name used when no visible `label` is provided; forwarded to the delegated date picker and color input too
|
|
692
|
-
| `error` | `boolean` | `false` | Activates error styling (red border and ring)
|
|
693
|
-
| `errorMessage` | `string` | -- | Error text shown below the field; also activates error styling when truthy
|
|
694
|
-
| `debounce` | `string \| number` | -- | Delay in ms before emitting model updates
|
|
695
|
-
| `maxlength` | `string \| number` | `"1024"` | Maximum character length
|
|
696
|
-
| `step` | `string` | — | Step granularity, set on the native input only when given
|
|
697
|
-
| `size` | `"default" \| "small"` | `"default"` | Field height variant (36px / 32px)
|
|
698
|
-
| `multilanguage` | `boolean` | `false` | Shows a language indicator badge on the label
|
|
699
|
-
| `currentLanguage` | `string` | -- | Language code to display in the multilanguage badge
|
|
700
|
-
| `datePickerOptions` | `VueDatePickerProps` | -- | Options forwarded to VcDatePicker (only when `type` is `date` or `datetime-local`)
|
|
674
|
+
| Prop | Type | Default | Description |
|
|
675
|
+
| ------------------- | ------------------------------------------------------------------------------------------------------------------------------- | ----------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
676
|
+
| `modelValue` | `string \| number \| Date \| null` | `undefined` | Bound value via `v-model` |
|
|
677
|
+
| `type` | `"text" \| "password" \| "email" \| "tel" \| "url" \| "time" \| "number" \| "integer" \| "date" \| "datetime-local" \| "color"` | `"text"` | Input type. `date`/`datetime-local` delegate to VcDatePicker; `color` delegates to VcColorInput |
|
|
678
|
+
| `label` | `string` | -- | Label text displayed above the field |
|
|
679
|
+
| `placeholder` | `string` | -- | Placeholder text inside the field |
|
|
680
|
+
| `hint` | `string` | -- | Help text displayed below the field |
|
|
681
|
+
| `tooltip` | `string` | -- | Tooltip text shown on hover next to the label |
|
|
682
|
+
| `prefix` | `string` | -- | Static text rendered before the input value |
|
|
683
|
+
| `suffix` | `string` | -- | Static text rendered after the input value |
|
|
684
|
+
| `name` | `string` | `"Field"` | HTML `name` attribute on the native input |
|
|
685
|
+
| `clearable` | `boolean` | `false` | Shows a clear (x) button when the field has a value |
|
|
686
|
+
| `disabled` | `boolean` | `false` | Disables the input (also inherits from `VcInputGroup` context) |
|
|
687
|
+
| `required` | `boolean` | `false` | Adds a red asterisk to the label (visual only, no validation) |
|
|
688
|
+
| `loading` | `boolean` | `false` | Shows a spinning loader icon inside the field |
|
|
689
|
+
| `autofocus` | `boolean` | `false` | Auto-focuses the input on mount |
|
|
690
|
+
| `autocomplete` | `string` | -- | Autofill hint set on the native input (e.g. `"username"`, `"current-password"`) |
|
|
691
|
+
| `ariaLabel` | `string` | -- | Accessible name used when no visible `label` is provided; forwarded to the delegated date picker and color input too |
|
|
692
|
+
| `error` | `boolean` | `false` | Activates error styling (red border and ring) |
|
|
693
|
+
| `errorMessage` | `string` | -- | Error text shown below the field; also activates error styling when truthy |
|
|
694
|
+
| `debounce` | `string \| number` | -- | Delay in ms before emitting model updates |
|
|
695
|
+
| `maxlength` | `string \| number` | `"1024"` | Maximum character length |
|
|
696
|
+
| `step` | `string` | — | Step granularity, set on the native input only when given |
|
|
697
|
+
| `size` | `"default" \| "small"` | `"default"` | Field height variant (36px / 32px) |
|
|
698
|
+
| `multilanguage` | `boolean` | `false` | Shows a language indicator badge on the label |
|
|
699
|
+
| `currentLanguage` | `string` | -- | Language code to display in the multilanguage badge |
|
|
700
|
+
| `datePickerOptions` | `VueDatePickerProps` | -- | Options forwarded to VcDatePicker (only when `type` is `date` or `datetime-local`) |
|
|
701
|
+
| `inputAttrs` | `Record<string, string \| number \| boolean \| undefined>` | -- | Attributes bound to the native `<input>` rather than the root, e.g. `role="combobox"` and the `aria-*` state of a field with a suggestion list. Not used with the date and color types |
|
|
701
702
|
|
|
702
703
|
### Events
|
|
703
704
|
|
|
@@ -707,6 +708,12 @@ VcInput blocks the minus key for both `number` and `integer` types. If you need
|
|
|
707
708
|
| `blur` | `Event` | Emitted when the native input loses focus |
|
|
708
709
|
| `focus` | -- | Emitted when the native input receives focus |
|
|
709
710
|
|
|
711
|
+
### Exposed Methods
|
|
712
|
+
|
|
713
|
+
| Method | Description |
|
|
714
|
+
| --------- | ----------------------------------- |
|
|
715
|
+
| `focus()` | Moves the focus to the native input |
|
|
716
|
+
|
|
710
717
|
### Slots
|
|
711
718
|
|
|
712
719
|
| Slot | Scope | Description |
|
|
@@ -725,25 +732,28 @@ VcInput blocks the minus key for both `number` and `integer` types. If you need
|
|
|
725
732
|
|
|
726
733
|
VcInput uses CSS custom properties for theming, defined on `:root`. Override these to customize the appearance across your application.
|
|
727
734
|
|
|
728
|
-
| Variable | Default | Description
|
|
729
|
-
| ----------------------------- | ---------------------- |
|
|
730
|
-
| `--input-height` | `36px` | Height of the default size field
|
|
731
|
-
| `--input-height-small` | `32px` | Height of the small size field
|
|
732
|
-
| `--input-border-radius` | `6px` | Border radius of the field wrapper
|
|
733
|
-
| `--input-border-color` | `var(--neutrals-300)` | Border color in the normal state
|
|
734
|
-
| `--input-padding` | `12px` | Horizontal padding inside the field
|
|
735
|
-
| `--input-
|
|
736
|
-
| `--input-
|
|
737
|
-
| `--input-
|
|
738
|
-
| `--input-
|
|
739
|
-
| `--input-
|
|
740
|
-
| `--input-
|
|
741
|
-
| `--input-
|
|
742
|
-
| `--input-
|
|
743
|
-
| `--input-
|
|
744
|
-
| `--input-
|
|
745
|
-
| `--input-
|
|
746
|
-
| `--input-
|
|
735
|
+
| Variable | Default | Description |
|
|
736
|
+
| ----------------------------- | ---------------------- | -------------------------------------------------------------------------------------- |
|
|
737
|
+
| `--input-height` | `36px` | Height of the default size field |
|
|
738
|
+
| `--input-height-small` | `32px` | Height of the small size field |
|
|
739
|
+
| `--input-border-radius` | `6px` | Border radius of the field wrapper |
|
|
740
|
+
| `--input-border-color` | `var(--neutrals-300)` | Border color in the normal state |
|
|
741
|
+
| `--input-padding` | `12px` | Horizontal padding inside the field |
|
|
742
|
+
| `--input-padding-start` | `var(--input-padding)` | Padding at the field's start (not defined by default: falls back to `--input-padding`) |
|
|
743
|
+
| `--input-padding-end` | `var(--input-padding)` | Padding at the field's end (not defined by default: falls back to `--input-padding`) |
|
|
744
|
+
| `--input-adornment-gap` | `12px` | Space between the input and the `prepend-inner` / `append-inner` content |
|
|
745
|
+
| `--input-background-color` | `var(--additional-50)` | Background color of the field |
|
|
746
|
+
| `--input-placeholder-color` | `var(--neutrals-400)` | Color of placeholder text |
|
|
747
|
+
| `--input-text-color` | `var(--neutrals-800)` | Color of the input text |
|
|
748
|
+
| `--input-clear-color` | `var(--neutrals-400)` | Color of the clear and show/hide buttons |
|
|
749
|
+
| `--input-clear-color-hover` | `var(--neutrals-600)` | Hover color of the clear and show/hide buttons |
|
|
750
|
+
| `--input-disabled-text-color` | `var(--neutrals-500)` | Text color when disabled |
|
|
751
|
+
| `--input-disabled-bg-color` | `var(--neutrals-200)` | Background color when disabled |
|
|
752
|
+
| `--input-text-color-error` | `var(--danger-500)` | Text color in error state |
|
|
753
|
+
| `--input-border-color-error` | `var(--danger-500)` | Border color in error state |
|
|
754
|
+
| `--input-border-color-focus` | `var(--primary-500)` | Border color when focused |
|
|
755
|
+
| `--input-focus-ring-color` | `var(--primary-100)` | Focus ring color (3px outline) |
|
|
756
|
+
| `--input-error-ring-color` | `var(--danger-100)` | Error ring color (3px outline) |
|
|
747
757
|
|
|
748
758
|
### Theming Example
|
|
749
759
|
|
|
@@ -56,10 +56,12 @@ const open = ref(false);
|
|
|
56
56
|
| `width` | `string` | `"280px"` | Panel min-width |
|
|
57
57
|
| `maxWidth` | `string` | `"400px"` | Panel max-width |
|
|
58
58
|
| `maxHeight` | `number` | `350` | Max height in pixels (clamped by viewport) |
|
|
59
|
+
| `offset` | `number` | `4` | Gap between the anchor and the panel, in pixels |
|
|
59
60
|
| `contentScrollable` | `boolean` | `true` | Enable scrolling in the content area |
|
|
60
61
|
| `closeOnClickOutside` | `boolean` | `true` | Close when clicking outside |
|
|
61
62
|
| `closeOnEscape` | `boolean` | `true` | Close on Escape key |
|
|
62
63
|
| `inert` | `boolean` | `false` | Hide the panel from assistive technology and keyboard focus while something covers it. The panel is teleported, so it does not inherit `inert` from an ancestor — pass it explicitly |
|
|
64
|
+
| `panelClass` | `string` | — | Extra class on the teleported panel (`.vc-popover`), to style one popover without `:has()` selectors |
|
|
63
65
|
|
|
64
66
|
## Events
|
|
65
67
|
|
|
@@ -264,9 +264,10 @@ const isActive = ref(true);
|
|
|
264
264
|
|
|
265
265
|
## Slots
|
|
266
266
|
|
|
267
|
-
| Slot
|
|
268
|
-
|
|
|
269
|
-
| `error`
|
|
267
|
+
| Slot | Description |
|
|
268
|
+
| --------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
269
|
+
| `error` | Custom error message markup. Replaces the default `VcHint` error. |
|
|
270
|
+
| `default` | Inline label after the track, in the same row. It is a `<label>` for the switch: it names it (without `ariaLabel`) and toggles it on click. Long text truncates. |
|
|
270
271
|
|
|
271
272
|
## CSS Variables
|
|
272
273
|
|
|
@@ -1030,7 +1030,7 @@ Filters not tied to a specific column -- displayed in a separate filter panel:
|
|
|
1030
1030
|
</VcDataTable>
|
|
1031
1031
|
```
|
|
1032
1032
|
|
|
1033
|
-
A filter icon button appears in the toolbar. Clicking it opens the global filter panel.
|
|
1033
|
+
A filter icon button appears in the toolbar. Clicking it opens the global filter panel. With [`search-bar`](#search-bar-opt-in) the same filters become chips and a Filters panel in the search bar; the `@filter` payload is the same.
|
|
1034
1034
|
|
|
1035
1035
|
### Combining Column and Global Filters
|
|
1036
1036
|
|
|
@@ -1069,7 +1069,108 @@ function onSearch(value: string) {
|
|
|
1069
1069
|
}
|
|
1070
1070
|
```
|
|
1071
1071
|
|
|
1072
|
-
The search bar appears above the table. When `global-filters` are also set, the filter button renders beside the search input.
|
|
1072
|
+
The search bar appears above the table. When `global-filters` are also set, the filter button renders beside the search input. Content of the `search-header-actions` slot renders in the same toolbar row.
|
|
1073
|
+
|
|
1074
|
+
### Search bar (opt-in)
|
|
1075
|
+
|
|
1076
|
+
Set `search-bar` to replace the search header with `VcSearchBar`: the search, applied filters as chips, a Filters panel, saved views, a filter status in the footer and an empty state that names what filtered the rows out. Without `search-bar` the table renders the classic header described above; the default may change in the next major version.
|
|
1077
|
+
|
|
1078
|
+
```vue
|
|
1079
|
+
<VcDataTable :items="orders" :total-count="totalCount" :pagination="pagination" state-key="orders-list" searchable search-bar :global-filters="orderFilters" :search-views="orderViews" :unfiltered-count="allOrdersCount" @filter="onFilter" @search="onSearch">
|
|
1080
|
+
<template #search-header-actions>
|
|
1081
|
+
<VcButton icon="lucide-download" variant="outline" size="sm">Export</VcButton>
|
|
1082
|
+
</template>
|
|
1083
|
+
<VcColumn id="number" field="number" title="Number" />
|
|
1084
|
+
</VcDataTable>
|
|
1085
|
+
```
|
|
1086
|
+
|
|
1087
|
+
```ts
|
|
1088
|
+
const orderViews: SearchBarView[] = [
|
|
1089
|
+
{ id: "open", name: "Open orders", values: { status: ["New", "Processing"] }, default: true },
|
|
1090
|
+
{ id: "paid", name: "Paid", values: { status: ["Paid"] } },
|
|
1091
|
+
];
|
|
1092
|
+
```
|
|
1093
|
+
|
|
1094
|
+
- **Header.** The bar sits in a header with the table's `--table-header-bg` and `--table-header-border`. Content of the `search-header-actions` slot sits at the end of the bar's row (see [Search bar slots](#search-bar-slots)).
|
|
1095
|
+
- **Search.** Typing emits `update:searchValue` and `search` once per pause (`searchDebounce`), so a screen that loads on `v-model:search-value` does not load on every keystroke. A change that moves the search and the filters together ("Clear all", a typed `field:value` chip) emits `search` right before `filter`, not after the pause. The table owns the search text: `searchValue` from the parent shows in the bar.
|
|
1096
|
+
- **Filters.** `global-filters` become the bar's fields. The `@filter` payload is the same flat object, merged with column filters; date ranges are split into their two fields. Column filters stay outside the bar: they are not counted, not shown as chips and not cleared by the bar.
|
|
1097
|
+
- **Wide bar layout.** `search-bar-variant="inline"` (default) shows applied filters as chips in the row; `"summary"` shows the applied field names on the Filters button instead.
|
|
1098
|
+
- **Counts.** `filter-counts` gives a result count per option value, per filter id (`{ status: { Paid: 12 } }`); the Filters panel shows them when given.
|
|
1099
|
+
- **Views.** `search-views` are views from code; one may be the `default` the list opens on. The view selector sits next to the blade title. With a `state-key`, users save their own views in `localStorage` under `VC_SEARCHBAR_<STATE-KEY>`, separate from the column layout, also when `state-storage` is `"session"`. The search text is not part of a view.
|
|
1100
|
+
- **Footer status.** Next to the range text the footer reads `filtered from 120 · 2 filters + search · Clear all` while bar filters or search are applied. "filtered from M" appears only when `unfiltered-count` is set; a footer under 520px shows just the filter part and "Clear all". "Clear all" clears the bar's filters and the search and selects the "All" view; column filters stay. The status shows only with `pagination`; on a phone the summary line under the bar shows it instead.
|
|
1101
|
+
- **Empty state.** When the result is empty because of bar filters or search, the table names the reason ("No results match “acme” with 2 filters"), lists the applied filters as removable tags, and offers "Clear search" and "Clear filters". The `not-found` slot and `not-found-state` win over it.
|
|
1102
|
+
|
|
1103
|
+
### Search bar slots
|
|
1104
|
+
|
|
1105
|
+
With `search-bar`, two slots place custom content around the bar:
|
|
1106
|
+
|
|
1107
|
+
- `#header` renders above everything, full width. Put list-wide content here: breadcrumbs, a list/grid toggle, a title.
|
|
1108
|
+
- `#search-header-actions` renders in the bar's row, after the Filters button, at its own width; the bar takes the rest and picks its mode from that width. On a phone the row is the search, the filter icon and the slot. Keep it to one or two buttons.
|
|
1109
|
+
|
|
1110
|
+
When you turn on `search-bar` for a screen that has wide content (breadcrumbs, several buttons) in `#search-header-actions`, move that content to `#header`. In development the table warns in the console once when the slot takes more than 40% of the row.
|
|
1111
|
+
|
|
1112
|
+
`#search-header-actions` gets the bar's status as slot props (`SearchBarSlotProps`); `#not-found` gets the same plus two actions (`SearchBarNotFoundSlotProps`). Without `search-bar` both slots get no props.
|
|
1113
|
+
|
|
1114
|
+
| Prop | Type | Description |
|
|
1115
|
+
| -------------- | ------------------------------------------- | -------------------------------------------------------------------------------- |
|
|
1116
|
+
| `mode` | `"wide" \| "medium" \| "narrow" \| "phone"` | The bar's width mode (wide from 720px, medium from 480px), `"phone"` on a phone. |
|
|
1117
|
+
| `filtered` | `boolean` | Filters or search text applied. |
|
|
1118
|
+
| `filterCount` | `number` | Number of bar filters with a value. |
|
|
1119
|
+
| `search` | `string` | The search text. |
|
|
1120
|
+
| `clearAll` | `() => void` | Clears the filters and the search in one `@filter`. |
|
|
1121
|
+
| `clearSearch` | `() => void` | `#not-found` only. Clears the search, keeps the filters. |
|
|
1122
|
+
| `clearFilters` | `() => void` | `#not-found` only. Clears the filters, keeps the search. |
|
|
1123
|
+
|
|
1124
|
+
```vue
|
|
1125
|
+
<VcDataTable :items="orders" state-key="orders-list" searchable search-bar :global-filters="orderFilters">
|
|
1126
|
+
<template #header>
|
|
1127
|
+
<VcBreadcrumbs :items="breadcrumbs" />
|
|
1128
|
+
</template>
|
|
1129
|
+
<template #search-header-actions="{ mode }">
|
|
1130
|
+
<VcButton v-if="mode === 'narrow' || mode === 'phone'" icon="lucide-download" variant="outline" size="sm" aria-label="Export" />
|
|
1131
|
+
<VcButton v-else icon="lucide-download" variant="outline" size="sm">Export</VcButton>
|
|
1132
|
+
</template>
|
|
1133
|
+
<template #not-found="{ search, clearAll }">
|
|
1134
|
+
<p>Nothing matches "{{ search }}"</p>
|
|
1135
|
+
<VcButton size="sm" @click="clearAll">Clear all</VcButton>
|
|
1136
|
+
</template>
|
|
1137
|
+
<VcColumn id="number" field="number" title="Number" />
|
|
1138
|
+
</VcDataTable>
|
|
1139
|
+
```
|
|
1140
|
+
|
|
1141
|
+
### Filters and the view in the URL
|
|
1142
|
+
|
|
1143
|
+
With `search-bar` and a `state-key`, the applied filters are kept in the blade URL under `<state-key>_filters` and the current view under `<state-key>_view`, next to `<state-key>_sort`, `_search` and `_page` (see [URL query persistence](#url-query-persistence)). A copied link opens the screen with the same filters and view, and a reload keeps them. When the table opens with filters in the URL (or a default view), it emits `@filter` once before the screen's own `onMounted`, so a handler that keeps the filters in the screen's query lets the first load in `onMounted` use them, as it uses a search or sort restored in setup. Nothing is emitted when there is nothing to apply.
|
|
1144
|
+
|
|
1145
|
+
The table holds the bar's state: if the bar unmounts (no `searchable`, `global-filters` or `search-header-actions` left) and comes back, it shows the filters of the last `@filter` payload, with or without a `state-key`. Without a `state-key` nothing outlives the table.
|
|
1146
|
+
|
|
1147
|
+
- The value is compact and readable, for example `?orders_filters=status:Paid,New;created:7d;total:>=100`. The full format is in the VcSearchBar docs, "Filters and the View in the URL".
|
|
1148
|
+
- Relative dates stay relative: `created:7d` always means the last 7 days from the day the link is opened.
|
|
1149
|
+
- The search words are not part of `_filters`; `useTableSearch` keeps them in `_search`.
|
|
1150
|
+
- A blade without a URL, a table outside a blade, or a table without `state-key` remembers no filters.
|
|
1151
|
+
|
|
1152
|
+
### Filters from other modules (`searchName`)
|
|
1153
|
+
|
|
1154
|
+
With `search-bar`, modules can add fields and views to a list with `registerExternalSearchFilters({ id, targetBlades, fields, views })`. By default the table's bar answers to the blade's name; set `search-name` to address it by another name (a table outside a blade, or two tables in one blade). A table without `search-bar` ignores these registrations (in development, `search-name` without `search-bar` logs a warning). Registered fields show the bar even on a table without `searchable` and `global-filters`.
|
|
1155
|
+
|
|
1156
|
+
### VcTableAdapter
|
|
1157
|
+
|
|
1158
|
+
Legacy `VcTableAdapter` screens keep the classic header. Pass `search-bar` to the adapter to get the bar: the legacy filters button and `search-header-actions` sit at the end of the bar's row, and with no `global-filters` the bar shows only the search.
|
|
1159
|
+
|
|
1160
|
+
### Your own bar
|
|
1161
|
+
|
|
1162
|
+
For full control over the bar's state, leave `searchable` and `global-filters` off and put your own `VcSearchBar` into the `#header` slot; load data from the bar's `v-model` or `@change` instead of the table's events:
|
|
1163
|
+
|
|
1164
|
+
```vue
|
|
1165
|
+
<VcDataTable :items="orders" :loading="loading">
|
|
1166
|
+
<template #header>
|
|
1167
|
+
<VcSearchBar v-model="query" :fields="orderFields" storage-key="orders-list" @change="load" />
|
|
1168
|
+
</template>
|
|
1169
|
+
...
|
|
1170
|
+
</VcDataTable>
|
|
1171
|
+
```
|
|
1172
|
+
|
|
1173
|
+
`VcSearchBar` also works on its own, on any blade or in any component, with or without a table.
|
|
1073
1174
|
|
|
1074
1175
|
---
|
|
1075
1176
|
|
|
@@ -1123,7 +1224,7 @@ async function loadNextPage() {
|
|
|
1123
1224
|
!!! tip "Use unique state keys"
|
|
1124
1225
|
Every table in your application must have a distinct `state-key`. Two tables sharing the same key will silently overwrite each other's persisted column widths, order, and hidden/shown column lists.
|
|
1125
1226
|
|
|
1126
|
-
Persist column widths, column order, and column visibility across page reloads. Column layout is stored in `localStorage`/`sessionStorage` (keyed by `state-key`). Sort, search, and the current page are NOT persisted by the table itself -- use the state composables with a matching `stateKey` instead (see [URL query persistence](#url-query-persistence) below). Selection, column filters, and other transient state are session-scoped and are deliberately excluded from any persistence:
|
|
1227
|
+
Persist column widths, column order, and column visibility across page reloads. Column layout is stored in `localStorage`/`sessionStorage` (keyed by `state-key`). Sort, search, and the current page are NOT persisted by the table itself -- use the state composables with a matching `stateKey` instead (see [URL query persistence](#url-query-persistence) below). Selection, column filters, and other transient state are session-scoped and are deliberately excluded from any persistence. With `search-bar`, the bar keeps saved views and the applied filters under the same key (see [Filters and the view in the URL](#filters-and-the-view-in-the-url)):
|
|
1127
1228
|
|
|
1128
1229
|
```vue
|
|
1129
1230
|
<VcDataTable :items="products" state-key="product-list">
|
|
@@ -1165,8 +1266,8 @@ Sort, search, and the current page are owned by the state composables, not by `V
|
|
|
1165
1266
|
To persist query state to the blade URL, use `useDataTableSort`, `useTableSearch`, and `useDataTablePagination` with a matching `stateKey`. Each composable restores its slice from the URL on creation and persists changes via `router.replace` (no history entries added).
|
|
1166
1267
|
|
|
1167
1268
|
- **Namespacing:** URL keys are prefixed with the `stateKey` value -- e.g. `?offers_list_sort=name:DESC&offers_list_search=foo&offers_list_page=2`. Use the same string for all three composables on a given page.
|
|
1168
|
-
- **Keys:** `<stateKey>_sort` (`field:ASC` / `field:DESC`), `<stateKey>_search`, `<stateKey>_page` (1-based).
|
|
1169
|
-
- **Scope:** sort, search, and
|
|
1269
|
+
- **Keys:** `<stateKey>_sort` (`field:ASC` / `field:DESC`), `<stateKey>_search`, `<stateKey>_page` (1-based). With `search-bar`, the table's bar adds `<stateKey>_filters` and `<stateKey>_view` on its own when the table has the same `state-key` (see [Filters and the view in the URL](#filters-and-the-view-in-the-url)).
|
|
1270
|
+
- **Scope:** sort, search, page and, with `search-bar`, the bar's filters and view. Column layout still uses localStorage/sessionStorage; column filters and selection are not persisted.
|
|
1170
1271
|
|
|
1171
1272
|
Canonical list-page pattern:
|
|
1172
1273
|
|
|
@@ -1632,18 +1733,31 @@ function onRowRemove(event: { data: Product; index: number; cancel: () => void }
|
|
|
1632
1733
|
| `searchPlaceholder` | `string` | `"Search..."` | Placeholder text. |
|
|
1633
1734
|
| `searchDebounce` | `number` | `300` | Debounce delay in ms. |
|
|
1634
1735
|
|
|
1736
|
+
### Opt-in Search Bar
|
|
1737
|
+
|
|
1738
|
+
These props apply only with `searchBar`.
|
|
1739
|
+
|
|
1740
|
+
| Prop | Type | Default | Description |
|
|
1741
|
+
| ------------------ | ---------------------------------------- | ---------- | ----------------------------------------------------------------------------------- |
|
|
1742
|
+
| `searchBar` | `boolean` | `false` | Show `VcSearchBar` instead of the classic search header. |
|
|
1743
|
+
| `searchBarVariant` | `"inline" \| "summary"` | `"inline"` | Wide bar: chips in the row, or the applied field names on the Filters button. |
|
|
1744
|
+
| `searchViews` | `SearchBarView[]` | -- | Views from code; one may be the `default`. |
|
|
1745
|
+
| `searchName` | `string` | -- | Bar name for external filters. Defaults to the blade's name. |
|
|
1746
|
+
| `filterCounts` | `Record<string, Record<string, number>>` | -- | Result count per option value, per filter id. |
|
|
1747
|
+
| `unfilteredCount` | `number` | -- | Rows without the bar's filters and search; the footer status reads "filtered from". |
|
|
1748
|
+
|
|
1635
1749
|
### Filters
|
|
1636
1750
|
|
|
1637
|
-
| Prop | Type | Default | Description
|
|
1638
|
-
| --------------- | ---------------------- | ------- |
|
|
1639
|
-
| `globalFilters` | `GlobalFilterConfig[]` | -- | Global filter panel configuration. |
|
|
1751
|
+
| Prop | Type | Default | Description |
|
|
1752
|
+
| --------------- | ---------------------- | ------- | ---------------------------------------------------------------- |
|
|
1753
|
+
| `globalFilters` | `GlobalFilterConfig[]` | -- | Global filter panel configuration (bar fields with `searchBar`). |
|
|
1640
1754
|
|
|
1641
1755
|
### State Persistence
|
|
1642
1756
|
|
|
1643
|
-
| Prop | Type | Default | Description
|
|
1644
|
-
| -------------- | ---------------------- | --------- |
|
|
1645
|
-
| `stateKey` | `string` | -- | Key for persisting state. Omit to disable persistence. |
|
|
1646
|
-
| `stateStorage` | `"local" \| "session"` | `"local"` | Storage backend.
|
|
1757
|
+
| Prop | Type | Default | Description |
|
|
1758
|
+
| -------------- | ---------------------- | --------- | -------------------------------------------------------------------------------------------------------------------- |
|
|
1759
|
+
| `stateKey` | `string` | -- | Key for persisting state; with `searchBar` also the key of saved views and URL filters. Omit to disable persistence. |
|
|
1760
|
+
| `stateStorage` | `"local" \| "session"` | `"local"` | Storage backend. |
|
|
1647
1761
|
|
|
1648
1762
|
### Empty States
|
|
1649
1763
|
|
|
@@ -1751,20 +1865,20 @@ function onRowRemove(event: { data: Product; index: number; cancel: () => void }
|
|
|
1751
1865
|
|
|
1752
1866
|
## VcDataTable Slots Reference
|
|
1753
1867
|
|
|
1754
|
-
| Slot | Props | Description
|
|
1755
|
-
| ----------------------- | --------------------------------------------------------------- |
|
|
1756
|
-
| `default` | -- | VcColumn declarations (required).
|
|
1757
|
-
| `header` | -- | Custom header content above the table.
|
|
1758
|
-
| `footer` | -- | Custom footer content below the table body.
|
|
1759
|
-
| `search-header-actions` | --
|
|
1760
|
-
| `selection-banner` | `{ count, totalCount, isSelectAll, selectAll, clearSelection }` | Custom selection banner.
|
|
1761
|
-
| `expansion` | `{ data: T, index: number }` | Content rendered below an expanded row (desktop and mobile).
|
|
1762
|
-
| `empty` | -- | Custom empty state (no items, no search).
|
|
1763
|
-
| `not-found` | --
|
|
1764
|
-
| `loading` | -- | Custom loading state.
|
|
1765
|
-
| `groupheader` | `{ data: T, index: number }` | Custom row group header.
|
|
1766
|
-
| `groupfooter` | `{ data: T, index: number }` | Custom row group footer.
|
|
1767
|
-
| `pagination` | `{ pages, currentPage, onPageClick }` | Custom pagination replacing built-in VcPagination.
|
|
1868
|
+
| Slot | Props | Description |
|
|
1869
|
+
| ----------------------- | --------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- |
|
|
1870
|
+
| `default` | -- | VcColumn declarations (required). |
|
|
1871
|
+
| `header` | -- | Custom header content above the table. |
|
|
1872
|
+
| `footer` | -- | Custom footer content below the table body. |
|
|
1873
|
+
| `search-header-actions` | `SearchBarSlotProps` with `searchBar`, else -- | Extra buttons in the search toolbar (beside filter icon); at the end of the bar's row with `searchBar`. |
|
|
1874
|
+
| `selection-banner` | `{ count, totalCount, isSelectAll, selectAll, clearSelection }` | Custom selection banner. |
|
|
1875
|
+
| `expansion` | `{ data: T, index: number }` | Content rendered below an expanded row (desktop and mobile). |
|
|
1876
|
+
| `empty` | -- | Custom empty state (no items, no search). |
|
|
1877
|
+
| `not-found` | `SearchBarNotFoundSlotProps` with `searchBar`, else -- | Custom not-found state (no items + active search/filters). |
|
|
1878
|
+
| `loading` | -- | Custom loading state. |
|
|
1879
|
+
| `groupheader` | `{ data: T, index: number }` | Custom row group header. |
|
|
1880
|
+
| `groupfooter` | `{ data: T, index: number }` | Custom row group footer. |
|
|
1881
|
+
| `pagination` | `{ pages, currentPage, onPageClick }` | Custom pagination replacing built-in VcPagination. |
|
|
1768
1882
|
|
|
1769
1883
|
---
|
|
1770
1884
|
|