@nocopypaste/vue-grid 0.8.0 → 0.9.0
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/AGENTS.md +2 -0
- package/CHANGELOG.md +14 -0
- package/README.md +72 -29
- package/agent/api.json +19 -2
- package/agent/api.md +4 -2
- package/agent/grid-config.schema.json +25 -0
- package/dist/agent/api.js +16 -2
- package/dist/agent/requirements.js +2 -0
- package/dist/agent/requirements.js.map +1 -1
- package/dist/base.css +1 -1
- package/dist/components/VGrid.vue_vue_type_script_setup_true_lang.js +585 -584
- package/dist/components/VGrid.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VGridHeader.vue_vue_type_script_setup_true_lang.js +82 -53
- package/dist/components/VGridHeader.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VGridSortMarker.js +6 -0
- package/dist/components/VGridSortMarker.js.map +1 -0
- package/dist/components/VGridSortMarker.vue_vue_type_script_setup_true_lang.js +21 -0
- package/dist/components/VGridSortMarker.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/composables/useDataSource.js.map +1 -1
- package/dist/composables/useGridKeyboard.js +5 -1
- package/dist/composables/useGridKeyboard.js.map +1 -1
- package/dist/composables/useGridMenus.js +24 -12
- package/dist/composables/useGridMenus.js.map +1 -1
- package/dist/composables/useRowGrouping.js.map +1 -1
- package/dist/composables/useSorting.js +48 -0
- package/dist/composables/useSorting.js.map +1 -0
- package/dist/core/grouping.js +1 -1
- package/dist/core/grouping.js.map +1 -1
- package/dist/core/sort.js +31 -1
- package/dist/core/sort.js.map +1 -1
- package/dist/core.css +1 -1
- package/dist/features/sorting.js +8 -4
- package/dist/features/sorting.js.map +1 -1
- package/dist/index.js +60 -60
- package/dist/internal/context.js.map +1 -1
- package/dist/theme.css +1 -1
- package/dist/types/components/VGrid.vue.d.ts +10 -1
- package/dist/types/components/VGridHeader.vue.d.ts +4 -3
- package/dist/types/components/VGridSortMarker.vue.d.ts +9 -0
- package/dist/types/composables/useDataSource.d.ts +3 -0
- package/dist/types/composables/useGridMenus.d.ts +5 -0
- package/dist/types/composables/useRowGrouping.d.ts +2 -1
- package/dist/types/composables/useSorting.d.ts +24 -0
- package/dist/types/core/grouping.d.ts +5 -2
- package/dist/types/core/sort.d.ts +16 -0
- package/dist/types/index.d.ts +1 -1
- package/dist/types/internal/context.d.ts +2 -0
- package/dist/types/types.d.ts +12 -0
- package/dist/vue-grid.css +1 -1
- package/llms-full.txt +78 -31
- package/llms.txt +1 -1
- package/package.json +1 -1
package/AGENTS.md
CHANGED
|
@@ -48,6 +48,7 @@ runs in the [live examples](https://eboye.github.io/eboye-vue-grid/), each with
|
|
|
48
48
|
| The user wants… | Feature(s) | Props / column options |
|
|
49
49
|
| ------------------------------------------------- | --------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
50
50
|
| Click a header to sort | `sortingFeature` | column `sortable: true`; `sort-mode="client"` (or handle `v-model:sort`) |
|
|
51
|
+
| Sort by several columns ("city, then stake") | `sortingFeature` | `multi-sort`, `v-model:sorts="[{ key, dir }, …]"`; Shift-click adds a column; server: `query.sorts` |
|
|
51
52
|
| Filters per column, a filter row, quick search | `filteringFeature` | column `filterable: true` (`filter: 'text' \| 'number' \| 'date' \| 'boolean' \| 'set'`); `filter-row`; `<VGridSearch />` in `#toolbar` |
|
|
52
53
|
| Pages | `paginationFeature` | `pagination` (or `{ pageSizes: [10, 25, 50] }`), `v-model:page`, `v-model:page-size` |
|
|
53
54
|
| Backend sorting / filtering / paging | `serverDataFeature` (+ the above) | `:data-source="(query, { signal }) => Promise<{ rows, total }>"` |
|
|
@@ -501,6 +502,7 @@ only sees stylesheet rules. Density:
|
|
|
501
502
|
## Pitfalls
|
|
502
503
|
|
|
503
504
|
- Nothing sorts → `sort-mode="client"` missing (or `sortingFeature` missing).
|
|
505
|
+
- Shift-click sorts by one column only → add `multi-sort`, and bind `v-model:sorts` (not `sort`) to read every key; a `dataSource` reads `query.sorts`.
|
|
504
506
|
- Columns are squeezed / the page scrolls sideways → give `width`s (`minmax(8rem, 1fr)`); the grid
|
|
505
507
|
scrolls horizontally inside itself when columns are wider than it.
|
|
506
508
|
- Grid grows forever / no sticky header → no bounded height.
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.9.0 — 2026-11-24
|
|
4
|
+
|
|
5
|
+
**Multi-column sort** (`sortingFeature`): with `multi-sort`, Shift-click a header (Shift+Enter on
|
|
6
|
+
a focused one) to sort by it after the others: ascending, descending, then removed; a plain click
|
|
7
|
+
still sorts by that column alone. `v-model:sorts` holds every key (`sort` stays the first, and
|
|
8
|
+
setting it from outside makes it the only one). Headers show each column's number; `aria-sort` stays
|
|
9
|
+
on the first key and screen readers hear “sorted 2 of 3, descending” for the others. The header
|
|
10
|
+
menu gains **Then sort ascending / descending**, and its Clear sort drops only that column. A
|
|
11
|
+
`dataSource` gets every key in `query.sorts` (only with `multi-sort`). Row groups follow their own
|
|
12
|
+
column's key wherever it is in the list. New exports: `sortRowsBy(rows, keys)`, `nextSorts(sorts,
|
|
13
|
+
key)`, `type SortKey`; `GridQuery.sorts`; messages `thenSortAscending`, `thenSortDescending`,
|
|
14
|
+
`sortPosition(position, dir)`. The logic lives in `sortingFeature`: a plain grid grows by 0.2 kB
|
|
15
|
+
gzip (to 15.0), a grid with sorting by 0.9 kB (to 16.0).
|
|
16
|
+
|
|
3
17
|
## 0.8.0 — 2026-11-24
|
|
4
18
|
|
|
5
19
|
**Server-side row grouping** (`serverGroupingFeature`, with `rowGroupingFeature` and
|
package/README.md
CHANGED
|
@@ -178,34 +178,34 @@ what you import.
|
|
|
178
178
|
|
|
179
179
|
| Import (minified / gzip, Vue excluded) | Initial chunk |
|
|
180
180
|
| ---------------------------------------------------------------------------- | ------------------ |
|
|
181
|
-
| `VGrid` (no features) | 43.
|
|
182
|
-
| `VGrid` + `sortingFeature` |
|
|
183
|
-
| `VGrid` + `filteringFeature` |
|
|
184
|
-
| `VGrid` + `serverDataFeature` |
|
|
185
|
-
| `VGrid` + `paginationFeature` | 43.
|
|
186
|
-
| `VGrid` + `selectionFeature` | 47.
|
|
187
|
-
| `VGrid` + `subGridsFeature` |
|
|
188
|
-
| `VGrid` + `menusFeature` |
|
|
189
|
-
| `VGrid` + `columnReorderFeature` |
|
|
190
|
-
| `VGrid` + `columnPinningFeature` | 46.
|
|
191
|
-
| `VGrid` + `virtualScrollingFeature` |
|
|
192
|
-
| `VGrid` + `columnVisibilityFeature` | 43.
|
|
193
|
-
| `VGrid` + `keyboardNavigationFeature` |
|
|
194
|
-
| `VGrid` + `columnResizingFeature` |
|
|
195
|
-
| `VGrid` + `columnGroupsFeature` |
|
|
196
|
-
| `VGrid` + `rowPinningFeature` | 48.
|
|
197
|
-
| `VGrid` + `aggregationFeature` | 48.
|
|
198
|
-
| `VGrid` + `rowGroupingFeature` |
|
|
199
|
-
| `VGrid` + `exportFeature` | 48.
|
|
200
|
-
| `VGrid` + `statusBarFeature` |
|
|
201
|
-
| `VGrid` + `serverGroupingFeature` | 46.
|
|
202
|
-
| `VGrid` + `allFeatures` + `VGridSearch` |
|
|
203
|
-
| `VGrid` + `currencyRenderer` |
|
|
204
|
-
| `VGrid` + `VGridPagination` + `VGridColumnMenu` |
|
|
181
|
+
| `VGrid` (no features) | 43.7 kB / 15.0 kB |
|
|
182
|
+
| `VGrid` + `sortingFeature` | 46.4 kB / 16.0 kB |
|
|
183
|
+
| `VGrid` + `filteringFeature` | 54.5 kB / 18.9 kB |
|
|
184
|
+
| `VGrid` + `serverDataFeature` | 45.2 kB / 15.6 kB |
|
|
185
|
+
| `VGrid` + `paginationFeature` | 43.9 kB / 15.1 kB |
|
|
186
|
+
| `VGrid` + `selectionFeature` | 47.9 kB / 16.5 kB |
|
|
187
|
+
| `VGrid` + `subGridsFeature` | 46.1 kB / 15.8 kB |
|
|
188
|
+
| `VGrid` + `menusFeature` | 55.0 kB / 18.8 kB |
|
|
189
|
+
| `VGrid` + `columnReorderFeature` | 47.4 kB / 16.3 kB |
|
|
190
|
+
| `VGrid` + `columnPinningFeature` | 46.7 kB / 16.1 kB |
|
|
191
|
+
| `VGrid` + `virtualScrollingFeature` | 49.5 kB / 17.2 kB |
|
|
192
|
+
| `VGrid` + `columnVisibilityFeature` | 43.9 kB / 15.1 kB |
|
|
193
|
+
| `VGrid` + `keyboardNavigationFeature` | 46.5 kB / 16.0 kB |
|
|
194
|
+
| `VGrid` + `columnResizingFeature` | 47.0 kB / 16.3 kB |
|
|
195
|
+
| `VGrid` + `columnGroupsFeature` | 45.0 kB / 15.5 kB |
|
|
196
|
+
| `VGrid` + `rowPinningFeature` | 48.7 kB / 16.3 kB |
|
|
197
|
+
| `VGrid` + `aggregationFeature` | 48.9 kB / 16.5 kB |
|
|
198
|
+
| `VGrid` + `rowGroupingFeature` | 54.6 kB / 18.6 kB |
|
|
199
|
+
| `VGrid` + `exportFeature` | 48.7 kB / 16.9 kB |
|
|
200
|
+
| `VGrid` + `statusBarFeature` | 46.2 kB / 16.0 kB |
|
|
201
|
+
| `VGrid` + `serverGroupingFeature` | 46.8 kB / 16.2 kB |
|
|
202
|
+
| `VGrid` + `allFeatures` + `VGridSearch` | 118.3 kB / 39.8 kB |
|
|
203
|
+
| `VGrid` + `currencyRenderer` | 45.1 kB / 15.5 kB |
|
|
204
|
+
| `VGrid` + `VGridPagination` + `VGridColumnMenu` | 51.0 kB / 17.5 kB |
|
|
205
205
|
| `sortRows` only | 0.7 kB / 0.4 kB |
|
|
206
206
|
| `toCsv` only | 1.1 kB / 0.6 kB |
|
|
207
|
-
| everything |
|
|
208
|
-
| `validateGridConfig` (`@nocopypaste/vue-grid/agent`, never in an app bundle) |
|
|
207
|
+
| everything | 171.9 kB / 55.2 kB |
|
|
208
|
+
| `validateGridConfig` (`@nocopypaste/vue-grid/agent`, never in an app bundle) | 73.4 kB / 20.0 kB |
|
|
209
209
|
|
|
210
210
|
With `filteringFeature`, the filter popover body and the filter-row editors are **on-demand
|
|
211
211
|
chunks**: they load the first time a popover opens or `filter-row` is on. With
|
|
@@ -230,6 +230,8 @@ chunks that on-demand imports share with the entry, even when nothing uses them.
|
|
|
230
230
|
| `columns` | `ColumnDef<T>[]` | — | See below. |
|
|
231
231
|
| `rowKey` | `keyof T \| (row) => string \| number` | — | Stable unique id; all row state is keyed by it. |
|
|
232
232
|
| `v-model:sort` | `{ key, dir: 'asc' \| 'desc' } \| null` | `null` | Header click cycles asc → desc → none. Needs `sortingFeature` for the header UI. |
|
|
233
|
+
| `multiSort` | `boolean` | `false` | Shift-click (Shift+Enter) a header to sort by it next; `v-model:sorts` holds every key. See [Sorting](#sorting). |
|
|
234
|
+
| `v-model:sorts` | `SortState[]` | `[]` | Every sort key, the first one first (with `multiSort`). `sort` follows its first key. |
|
|
233
235
|
| `sortMode` | `'controlled' \| 'client'` | `'controlled'` | `controlled` only emits (server-side sorting). Ignored with `dataSource`. |
|
|
234
236
|
| `v-model:filters` | `FilterState \| null` | `null` | `{ columns: Record<key, ColumnFilter>, search }`. Needs `filteringFeature` (as do the next four). See [Filtering](#filtering). |
|
|
235
237
|
| `filterMode` | `'client' \| 'controlled'` | `'client'` | `controlled` only emits (server-side filtering). Ignored with `dataSource`. |
|
|
@@ -502,7 +504,7 @@ typeahead move through items; focus returns to the cell on close.
|
|
|
502
504
|
### Column headers
|
|
503
505
|
|
|
504
506
|
Right-clicking a header opens a built-in menu: **Sort ascending / descending / Clear sort** (sortable
|
|
505
|
-
columns), **Pin left / Pin right / Unpin**, **Move left / right**, **Hide column**, **Reset columns**.
|
|
507
|
+
columns; with `multi-sort` also **Then sort ascending / descending**, and Clear sort drops only that column), **Pin left / Pin right / Unpin**, **Move left / right**, **Hide column**, **Reset columns**.
|
|
506
508
|
Pin items need `columnPinningFeature`, move items `columnReorderFeature`, Hide column `columnVisibilityFeature`. Runtime pins are stored in column state (`columnState.pinned`) and persisted with `storage`.
|
|
507
509
|
|
|
508
510
|
```vue
|
|
@@ -529,6 +531,47 @@ The same component powers the `actions-menu` renderer and is exported for add-on
|
|
|
529
531
|
<!-- or imperatively: menuRef.value.openAt(element | { x, y }) -->
|
|
530
532
|
```
|
|
531
533
|
|
|
534
|
+
## Sorting
|
|
535
|
+
|
|
536
|
+
A `sortable` column (with `sortingFeature`) sorts on a header click: ascending, descending, none.
|
|
537
|
+
`v-model:sort` holds `{ key, dir }`. The grid sorts the rows itself with `sort-mode="client"`;
|
|
538
|
+
otherwise it only updates `sort` (or asks the `dataSource`). Values sort by type (numbers, dates,
|
|
539
|
+
text with `localeCompare`), a renderer can define its sort value, and a column can override it with
|
|
540
|
+
`sortValue: (row) => …` or `sortFn: (a, b) => …`. Empty values sort last in both directions.
|
|
541
|
+
|
|
542
|
+
**Several columns.** With `multi-sort`, Shift-click a header (Shift+Enter on a focused one) to sort
|
|
543
|
+
by it after the others: ascending, then descending, then removed. A plain click still sorts by that
|
|
544
|
+
column alone. The headers show each column's number (1, 2, …); `aria-sort` stays on the first key, as
|
|
545
|
+
the ARIA grid pattern has it, and screen readers hear the rest as “sorted 2 of 3, descending”. The
|
|
546
|
+
header menu adds **Then sort ascending / descending**.
|
|
547
|
+
|
|
548
|
+
```vue
|
|
549
|
+
<script setup lang="ts">
|
|
550
|
+
import { VGrid, sortingFeature, type SortState } from '@nocopypaste/vue-grid'
|
|
551
|
+
const sorts = ref<SortState[]>([
|
|
552
|
+
{ key: 'city', dir: 'asc' },
|
|
553
|
+
{ key: 'stake', dir: 'desc' },
|
|
554
|
+
])
|
|
555
|
+
</script>
|
|
556
|
+
|
|
557
|
+
<template>
|
|
558
|
+
<VGrid
|
|
559
|
+
v-model:sorts="sorts"
|
|
560
|
+
multi-sort
|
|
561
|
+
sort-mode="client"
|
|
562
|
+
:rows
|
|
563
|
+
:columns
|
|
564
|
+
row-key="id"
|
|
565
|
+
:features="[sortingFeature]"
|
|
566
|
+
/>
|
|
567
|
+
</template>
|
|
568
|
+
```
|
|
569
|
+
|
|
570
|
+
`v-model:sort` keeps working beside it: it is the first key, and setting it from outside makes it
|
|
571
|
+
the only one. A `dataSource` gets every key in `query.sorts` (only with `multi-sort`; `query.sort`
|
|
572
|
+
is still the first). Row groups follow their own column's key wherever it is in the list.
|
|
573
|
+
`sortRowsBy(rows, keys)` and `nextSorts(sorts, key)` sort and cycle without a grid.
|
|
574
|
+
|
|
532
575
|
## Filtering
|
|
533
576
|
|
|
534
577
|
```vue
|
|
@@ -674,7 +717,7 @@ import {
|
|
|
674
717
|
} from '@nocopypaste/vue-grid'
|
|
675
718
|
|
|
676
719
|
const fetchBets: DataSource<Bet> = async (query, { signal }) => {
|
|
677
|
-
// query: { sort: { key, dir } | null, filters: FilterState, page: number, pageSize: number | null }
|
|
720
|
+
// query: { sort: { key, dir } | null, sorts?: SortState[] (multi-sort), filters: FilterState, page: number, pageSize: number | null }
|
|
678
721
|
const res = await fetch('/api/bets', { method: 'POST', body: JSON.stringify(query), signal })
|
|
679
722
|
if (!res.ok) throw new Error(res.statusText)
|
|
680
723
|
return res.json() // { rows: Bet[], total?: number }
|
|
@@ -1144,7 +1187,7 @@ and the grid's own controls (sort buttons, expanders, checkboxes, filter buttons
|
|
|
1144
1187
|
normal Tab order.
|
|
1145
1188
|
|
|
1146
1189
|
With `keyboardNavigationFeature` it is an ARIA `grid` (`treegrid` with sub-grids). The grid is one tab stop. Arrow keys move between cells (header, rows, sub-grid rows, detail rows),
|
|
1147
|
-
`Home`/`End`, `Ctrl+Home`/`Ctrl+End`, `PageUp`/`PageDown`; `ContextMenu` / `Shift+F10` opens the context menu. `Enter` sorts a header or activates the
|
|
1190
|
+
`Home`/`End`, `Ctrl+Home`/`Ctrl+End`, `PageUp`/`PageDown`; `ContextMenu` / `Shift+F10` opens the context menu. `Enter` sorts a header (`Shift+Enter` adds it with `multi-sort`) or activates the
|
|
1148
1191
|
cell's control; `Space` toggles row selection; `→`/`←` on a tree cell expands/collapses; `Alt+←/→` on a
|
|
1149
1192
|
header moves the column; `Alt+Shift+←/→` on a header resizes it (with `columnResizingFeature`).
|
|
1150
1193
|
|
package/agent/api.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"package": "@nocopypaste/vue-grid",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.9.0",
|
|
4
4
|
"component": "VGrid",
|
|
5
5
|
"props": [
|
|
6
6
|
{
|
|
@@ -317,6 +317,13 @@
|
|
|
317
317
|
"default": "false",
|
|
318
318
|
"description": "Groups start expanded (row grouping feature). Default: collapsed.",
|
|
319
319
|
"feature": "rowGrouping"
|
|
320
|
+
},
|
|
321
|
+
{
|
|
322
|
+
"name": "multiSort",
|
|
323
|
+
"type": "boolean",
|
|
324
|
+
"required": false,
|
|
325
|
+
"description": "Multi-column sort (sorting feature): Shift-click (or Shift+Enter) on a header adds it as the next key, Shift-click again turns it descending, then removes it. `v-model:sorts` holds every key, `v-model:sort` the first; server queries get `sorts` too.",
|
|
326
|
+
"feature": "sorting"
|
|
320
327
|
}
|
|
321
328
|
],
|
|
322
329
|
"models": [
|
|
@@ -326,6 +333,13 @@
|
|
|
326
333
|
"default": "null",
|
|
327
334
|
"description": "Sort state: a header click cycles asc → desc → none. Header UI needs the sorting feature."
|
|
328
335
|
},
|
|
336
|
+
{
|
|
337
|
+
"name": "sorts",
|
|
338
|
+
"type": "SortState[]",
|
|
339
|
+
"default": "[]",
|
|
340
|
+
"description": "Every sort key, the first one first (`multi-sort`). `sort` is the first of them.",
|
|
341
|
+
"feature": "sorting"
|
|
342
|
+
},
|
|
329
343
|
{
|
|
330
344
|
"name": "columnState",
|
|
331
345
|
"type": "ColumnState | undefined",
|
|
@@ -1052,7 +1066,10 @@
|
|
|
1052
1066
|
"id": "sorting",
|
|
1053
1067
|
"export": "sortingFeature",
|
|
1054
1068
|
"description": "Sorting: the sort button on `sortable` column headers, the sort items of the header menu and, with `sort-mode=\"client\"`, sorting the rows in the browser.",
|
|
1055
|
-
"props": [
|
|
1069
|
+
"props": [
|
|
1070
|
+
"multiSort",
|
|
1071
|
+
"sorts"
|
|
1072
|
+
],
|
|
1056
1073
|
"columnOptions": [
|
|
1057
1074
|
"sortable",
|
|
1058
1075
|
"sortValue",
|
package/agent/api.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @nocopypaste/vue-grid 0.
|
|
1
|
+
# @nocopypaste/vue-grid 0.9.0 — API reference
|
|
2
2
|
|
|
3
3
|
> Generated from the TypeScript sources (`scripts/gen-agent.mjs`). Machine-readable: `agent/api.json`, `agent/grid-config.schema.json`.
|
|
4
4
|
|
|
@@ -24,7 +24,7 @@ Opt-in: pass them as `:features="[…]"` on `<VGrid>` or once via `createVueGrid
|
|
|
24
24
|
| `selectionFeature` | Row selection: the `selectable` prop (multi or single), `v-model:selected`, `selection-mode` (cascade through sub-grids), `is-row-selectable`, Space on a row, shift-click (or Shift+Space) for a range, the select-all checkbox, `prune-selection`, and with server data a "select all N matching rows" banner (`v-model:select-all-matching`; it loads on demand, its own chunk). | `selectable` `selectionMode` `isRowSelectable` `pruneSelection` `selected` `selectAllMatching` | |
|
|
25
25
|
| `serverDataFeature` | Server data: the `dataSource` prop. The grid sends sort, filters and page to your function, cancels superseded requests, and shows loading, error and retry states. | `dataSource` | |
|
|
26
26
|
| `serverGroupingFeature` | Row grouping with server data: with `group-by` and a `data-source`, the query carries `groupBy` and `groupPath`, the server answers with groups (value, count, aggregates), and each group's contents load when it expands. A group's checkbox selects it by query (`v-model:selected-groups`), without loading its rows. Needs the row grouping and server data features too. Without it, a grouped server grid groups only the rows it has loaded. | `selectedGroups` | |
|
|
27
|
-
| `sortingFeature` | Sorting: the sort button on `sortable` column headers, the sort items of the header menu and, with `sort-mode="client"`, sorting the rows in the browser. |
|
|
27
|
+
| `sortingFeature` | Sorting: the sort button on `sortable` column headers, the sort items of the header menu and, with `sort-mode="client"`, sorting the rows in the browser. | `multiSort` `sorts` | `sortable` `sortValue` `sortFn` |
|
|
28
28
|
| `statusBarFeature` | A status bar under the grid (`status-bar`): how many rows pass the filters ("84 of 200 rows"), how many are selected, how many filters are on (with Clear), and with `{ summary: ['total'] }` the sum and average of those columns over the selected rows, as the cells show them. The `#status-bar` slot replaces its content. Its component loads on demand (own chunk). | `statusBar` | |
|
|
29
29
|
| `subGridsFeature` | Sub-grids: nested child rows in a CSS `subgrid`, from `sub-rows` (synchronous) or `load-sub-rows` (lazy, cached, with loading / error / retry). Detail rows (`#detail` slot) don't need it. | `subRows` `loadSubRows` `hasSubRows` | |
|
|
30
30
|
| `virtualScrollingFeature` | Virtual scrolling: `:virtual="{ rowHeight, overscan?, detailHeight? }"` renders only the rows in view (plus `overscan`), so tens of thousands of rows stay fast — sub-grids and detail rows included, inside the same CSS grid / subgrid layout. Without it, `virtual` is ignored and every row renders. | `virtual` | |
|
|
@@ -79,12 +79,14 @@ Opt-in: pass them as `:features="[…]"` on `<VGrid>` or once via `createVueGrid
|
|
|
79
79
|
| `totalsLabel` | `string` | | `aggregationFeature` | The totals row's label, in its first column (unless that column has an aggregate). Default: `messages.total`, else `Total`. |
|
|
80
80
|
| `aggregates` | `Record<string, unknown>` | | `aggregationFeature` | Totals row values by column key, instead of computing them (e.g. totals from a server). |
|
|
81
81
|
| `groupsExpanded` | `boolean` | `false` | `rowGroupingFeature` | Groups start expanded (row grouping feature). Default: collapsed. |
|
|
82
|
+
| `multiSort` | `boolean` | | `sortingFeature` | Multi-column sort (sorting feature): Shift-click (or Shift+Enter) on a header adds it as the next key, Shift-click again turns it descending, then removes it. `v-model:sorts` holds every key, `v-model:sort` the first; server queries get `sorts` too. |
|
|
82
83
|
|
|
83
84
|
## `v-model`s
|
|
84
85
|
|
|
85
86
|
| Model | Type | Default | Needs | Description |
|
|
86
87
|
|---|---|---|---|---|
|
|
87
88
|
| `v-model:sort` | `SortState \| null` | `null` | | Sort state: a header click cycles asc → desc → none. Header UI needs the sorting feature. |
|
|
89
|
+
| `v-model:sorts` | `SortState[]` | `[]` | `sortingFeature` | Every sort key, the first one first (`multi-sort`). `sort` is the first of them. |
|
|
88
90
|
| `v-model:columnState` | `ColumnState \| undefined` | `undefined` | | Column order, hidden columns, runtime pins and resized widths (persisted with `storage`). |
|
|
89
91
|
| `v-model:expanded` | `RowKey[]` | `[]` | | Keys of expanded rows (sub-grids and detail rows). |
|
|
90
92
|
| `v-model:selected` | `RowKey[]` | `[]` | `selectionFeature` | Keys of selected rows. Needs the selection feature. |
|
|
@@ -282,6 +282,10 @@
|
|
|
282
282
|
"type": "boolean",
|
|
283
283
|
"description": "Groups start expanded (row grouping feature). Default: collapsed."
|
|
284
284
|
},
|
|
285
|
+
"multiSort": {
|
|
286
|
+
"type": "boolean",
|
|
287
|
+
"description": "Multi-column sort (sorting feature): Shift-click (or Shift+Enter) on a header adds it as the next key, Shift-click again turns it descending, then removes it. `v-model:sorts` holds every key, `v-model:sort` the first; server queries get `sorts` too."
|
|
288
|
+
},
|
|
285
289
|
"sort": {
|
|
286
290
|
"anyOf": [
|
|
287
291
|
{
|
|
@@ -307,6 +311,27 @@
|
|
|
307
311
|
],
|
|
308
312
|
"description": "Sort state: a header click cycles asc → desc → none. Header UI needs the sorting feature."
|
|
309
313
|
},
|
|
314
|
+
"sorts": {
|
|
315
|
+
"type": "array",
|
|
316
|
+
"items": {
|
|
317
|
+
"type": "object",
|
|
318
|
+
"properties": {
|
|
319
|
+
"key": {
|
|
320
|
+
"type": "string",
|
|
321
|
+
"description": "The sorted column’s `key`."
|
|
322
|
+
},
|
|
323
|
+
"dir": {
|
|
324
|
+
"description": "`asc` or `desc`."
|
|
325
|
+
}
|
|
326
|
+
},
|
|
327
|
+
"required": [
|
|
328
|
+
"key",
|
|
329
|
+
"dir"
|
|
330
|
+
],
|
|
331
|
+
"additionalProperties": false
|
|
332
|
+
},
|
|
333
|
+
"description": "Every sort key, the first one first (`multi-sort`). `sort` is the first of them."
|
|
334
|
+
},
|
|
310
335
|
"columnState": {
|
|
311
336
|
"anyOf": [
|
|
312
337
|
{
|
package/dist/agent/api.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// src/agent/api.json
|
|
2
|
-
var e = "0.
|
|
2
|
+
var e = "0.9.0", t = "VGrid", n = [
|
|
3
3
|
{
|
|
4
4
|
name: "rows",
|
|
5
5
|
type: "readonly T[]",
|
|
@@ -314,6 +314,13 @@ var e = "0.8.0", t = "VGrid", n = [
|
|
|
314
314
|
default: "false",
|
|
315
315
|
description: "Groups start expanded (row grouping feature). Default: collapsed.",
|
|
316
316
|
feature: "rowGrouping"
|
|
317
|
+
},
|
|
318
|
+
{
|
|
319
|
+
name: "multiSort",
|
|
320
|
+
type: "boolean",
|
|
321
|
+
required: !1,
|
|
322
|
+
description: "Multi-column sort (sorting feature): Shift-click (or Shift+Enter) on a header adds it as the next key, Shift-click again turns it descending, then removes it. `v-model:sorts` holds every key, `v-model:sort` the first; server queries get `sorts` too.",
|
|
323
|
+
feature: "sorting"
|
|
317
324
|
}
|
|
318
325
|
], r = [
|
|
319
326
|
{
|
|
@@ -322,6 +329,13 @@ var e = "0.8.0", t = "VGrid", n = [
|
|
|
322
329
|
default: "null",
|
|
323
330
|
description: "Sort state: a header click cycles asc → desc → none. Header UI needs the sorting feature."
|
|
324
331
|
},
|
|
332
|
+
{
|
|
333
|
+
name: "sorts",
|
|
334
|
+
type: "SortState[]",
|
|
335
|
+
default: "[]",
|
|
336
|
+
description: "Every sort key, the first one first (`multi-sort`). `sort` is the first of them.",
|
|
337
|
+
feature: "sorting"
|
|
338
|
+
},
|
|
325
339
|
{
|
|
326
340
|
name: "columnState",
|
|
327
341
|
type: "ColumnState | undefined",
|
|
@@ -1010,7 +1024,7 @@ var e = "0.8.0", t = "VGrid", n = [
|
|
|
1010
1024
|
id: "sorting",
|
|
1011
1025
|
export: "sortingFeature",
|
|
1012
1026
|
description: "Sorting: the sort button on `sortable` column headers, the sort items of the header menu and, with `sort-mode=\"client\"`, sorting the rows in the browser.",
|
|
1013
|
-
props: [],
|
|
1027
|
+
props: ["multiSort", "sorts"],
|
|
1014
1028
|
columnOptions: [
|
|
1015
1029
|
"sortable",
|
|
1016
1030
|
"sortValue",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"requirements.js","names":["propFeatures","columnFeatures","optOuts","featureExport","id"],"sources":["../../src/agent/requirements.ts"],"sourcesContent":["/**\n * Which feature each grid prop and column option needs (without it the option does nothing). The\n * one fact about the API the types don't carry: the agent API reference (`api.json`), the JSON\n * Schema and `validateGridConfig()` all read it from here.\n */\nexport type FeatureId =\n | 'sorting'\n | 'filtering'\n | 'serverData'\n | 'pagination'\n | 'selection'\n | 'subGrids'\n | 'menus'\n | 'columnReorder'\n | 'columnPinning'\n | 'virtualScrolling'\n | 'columnVisibility'\n | 'keyboardNavigation'\n | 'columnResizing'\n | 'columnGroups'\n | 'rowPinning'\n | 'aggregation'\n | 'rowGrouping'\n | 'export'\n | 'statusBar'\n | 'serverGrouping'\n\n/** Grid props (and `v-model`s) that need a feature. */\nexport const propFeatures: Readonly<Record<string, FeatureId>> = {\n dataSource: 'serverData',\n pagination: 'pagination',\n page: 'pagination',\n pageSize: 'pagination',\n selectable: 'selection',\n selected: 'selection',\n pruneSelection: 'selection',\n selectAllMatching: 'selection',\n selectionMode: 'selection',\n pinnedMaxShare: 'columnPinning',\n isRowSelectable: 'selection',\n subRows: 'subGrids',\n loadSubRows: 'subGrids',\n hasSubRows: 'subGrids',\n virtual: 'virtualScrolling',\n contextMenu: 'menus',\n headerMenu: 'menus',\n filters: 'filtering',\n filterMode: 'filtering',\n filterRow: 'filtering',\n filterStorage: 'filtering',\n noMatchText: 'filtering',\n pinnedRows: 'rowPinning',\n pinnedTopRows: 'rowPinning',\n pinnedBottomRows: 'rowPinning',\n totals: 'aggregation',\n totalsLabel: 'aggregation',\n aggregates: 'aggregation',\n groupBy: 'rowGrouping',\n groupsExpanded: 'rowGrouping',\n selectedGroups: 'serverGrouping',\n statusBar: 'statusBar',\n}\n\n/** Column options that need a feature. */\nexport const columnFeatures: Readonly<Record<string, FeatureId>> = {\n sortable: 'sorting',\n sortValue: 'sorting',\n sortFn: 'sorting',\n filterable: 'filtering',\n filter: 'filtering',\n filterValue: 'filtering',\n filterFn: 'filtering',\n filterComponent: 'filtering',\n searchable: 'filtering',\n pinned: 'columnPinning',\n pinnable: 'columnPinning',\n hidden: 'columnVisibility',\n hideable: 'columnVisibility',\n reorderable: 'columnReorder',\n resizable: 'columnResizing',\n maxWidth: 'columnResizing',\n group: 'columnGroups',\n aggregate: 'aggregation',\n groupable: 'rowGrouping',\n groupValue: 'rowGrouping',\n exportValue: 'export',\n exportable: 'export',\n}\n\n/**\n * Options whose default is \"on\" and that only opt *out*: setting them without the feature changes\n * nothing worth a warning (`pinnable: false` on a grid without pinning is fine).\n */\nexport const optOuts: ReadonlySet<string> = new Set([\n 'pinnable',\n 'hideable',\n 'reorderable',\n 'resizable',\n 'searchable',\n 'headerMenu',\n 'exportable',\n 'pinnedMaxShare',\n])\n\n/** The export name of a feature: `sorting` → `sortingFeature`. */\nexport const featureExport = (id: FeatureId) => `${id}Feature`\n"],"mappings":";AA4BA,IAAaA,IAAoD;CAC/D,YAAY;CACZ,YAAY;CACZ,MAAM;CACN,UAAU;CACV,YAAY;CACZ,UAAU;CACV,gBAAgB;CAChB,mBAAmB;CACnB,eAAe;CACf,gBAAgB;CAChB,iBAAiB;CACjB,SAAS;CACT,aAAa;CACb,YAAY;CACZ,SAAS;CACT,aAAa;CACb,YAAY;CACZ,SAAS;CACT,YAAY;CACZ,WAAW;CACX,eAAe;CACf,aAAa;CACb,YAAY;CACZ,eAAe;CACf,kBAAkB;CAClB,QAAQ;CACR,aAAa;CACb,YAAY;CACZ,SAAS;CACT,gBAAgB;CAChB,gBAAgB;CAChB,WAAW;AACb,GAGaC,IAAsD;CACjE,UAAU;CACV,WAAW;CACX,QAAQ;CACR,YAAY;CACZ,QAAQ;CACR,aAAa;CACb,UAAU;CACV,iBAAiB;CACjB,YAAY;CACZ,QAAQ;CACR,UAAU;CACV,QAAQ;CACR,UAAU;CACV,aAAa;CACb,WAAW;CACX,UAAU;CACV,OAAO;CACP,WAAW;CACX,WAAW;CACX,YAAY;CACZ,aAAa;CACb,YAAY;AACd,GAMaC,oBAA+B,IAAI,IAAI;CAClD;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACF,CAAC,GAGYC,KAAiB,MAAkB,GAAGC,EAAG"}
|
|
1
|
+
{"version":3,"file":"requirements.js","names":["propFeatures","columnFeatures","optOuts","featureExport","id"],"sources":["../../src/agent/requirements.ts"],"sourcesContent":["/**\n * Which feature each grid prop and column option needs (without it the option does nothing). The\n * one fact about the API the types don't carry: the agent API reference (`api.json`), the JSON\n * Schema and `validateGridConfig()` all read it from here.\n */\nexport type FeatureId =\n | 'sorting'\n | 'filtering'\n | 'serverData'\n | 'pagination'\n | 'selection'\n | 'subGrids'\n | 'menus'\n | 'columnReorder'\n | 'columnPinning'\n | 'virtualScrolling'\n | 'columnVisibility'\n | 'keyboardNavigation'\n | 'columnResizing'\n | 'columnGroups'\n | 'rowPinning'\n | 'aggregation'\n | 'rowGrouping'\n | 'export'\n | 'statusBar'\n | 'serverGrouping'\n\n/** Grid props (and `v-model`s) that need a feature. */\nexport const propFeatures: Readonly<Record<string, FeatureId>> = {\n dataSource: 'serverData',\n pagination: 'pagination',\n page: 'pagination',\n pageSize: 'pagination',\n selectable: 'selection',\n selected: 'selection',\n pruneSelection: 'selection',\n selectAllMatching: 'selection',\n selectionMode: 'selection',\n pinnedMaxShare: 'columnPinning',\n isRowSelectable: 'selection',\n subRows: 'subGrids',\n loadSubRows: 'subGrids',\n hasSubRows: 'subGrids',\n virtual: 'virtualScrolling',\n contextMenu: 'menus',\n headerMenu: 'menus',\n filters: 'filtering',\n filterMode: 'filtering',\n filterRow: 'filtering',\n filterStorage: 'filtering',\n noMatchText: 'filtering',\n pinnedRows: 'rowPinning',\n pinnedTopRows: 'rowPinning',\n pinnedBottomRows: 'rowPinning',\n totals: 'aggregation',\n totalsLabel: 'aggregation',\n aggregates: 'aggregation',\n groupBy: 'rowGrouping',\n groupsExpanded: 'rowGrouping',\n selectedGroups: 'serverGrouping',\n multiSort: 'sorting',\n sorts: 'sorting',\n statusBar: 'statusBar',\n}\n\n/** Column options that need a feature. */\nexport const columnFeatures: Readonly<Record<string, FeatureId>> = {\n sortable: 'sorting',\n sortValue: 'sorting',\n sortFn: 'sorting',\n filterable: 'filtering',\n filter: 'filtering',\n filterValue: 'filtering',\n filterFn: 'filtering',\n filterComponent: 'filtering',\n searchable: 'filtering',\n pinned: 'columnPinning',\n pinnable: 'columnPinning',\n hidden: 'columnVisibility',\n hideable: 'columnVisibility',\n reorderable: 'columnReorder',\n resizable: 'columnResizing',\n maxWidth: 'columnResizing',\n group: 'columnGroups',\n aggregate: 'aggregation',\n groupable: 'rowGrouping',\n groupValue: 'rowGrouping',\n exportValue: 'export',\n exportable: 'export',\n}\n\n/**\n * Options whose default is \"on\" and that only opt *out*: setting them without the feature changes\n * nothing worth a warning (`pinnable: false` on a grid without pinning is fine).\n */\nexport const optOuts: ReadonlySet<string> = new Set([\n 'pinnable',\n 'hideable',\n 'reorderable',\n 'resizable',\n 'searchable',\n 'headerMenu',\n 'exportable',\n 'pinnedMaxShare',\n])\n\n/** The export name of a feature: `sorting` → `sortingFeature`. */\nexport const featureExport = (id: FeatureId) => `${id}Feature`\n"],"mappings":";AA4BA,IAAaA,IAAoD;CAC/D,YAAY;CACZ,YAAY;CACZ,MAAM;CACN,UAAU;CACV,YAAY;CACZ,UAAU;CACV,gBAAgB;CAChB,mBAAmB;CACnB,eAAe;CACf,gBAAgB;CAChB,iBAAiB;CACjB,SAAS;CACT,aAAa;CACb,YAAY;CACZ,SAAS;CACT,aAAa;CACb,YAAY;CACZ,SAAS;CACT,YAAY;CACZ,WAAW;CACX,eAAe;CACf,aAAa;CACb,YAAY;CACZ,eAAe;CACf,kBAAkB;CAClB,QAAQ;CACR,aAAa;CACb,YAAY;CACZ,SAAS;CACT,gBAAgB;CAChB,gBAAgB;CAChB,WAAW;CACX,OAAO;CACP,WAAW;AACb,GAGaC,IAAsD;CACjE,UAAU;CACV,WAAW;CACX,QAAQ;CACR,YAAY;CACZ,QAAQ;CACR,aAAa;CACb,UAAU;CACV,iBAAiB;CACjB,YAAY;CACZ,QAAQ;CACR,UAAU;CACV,QAAQ;CACR,UAAU;CACV,aAAa;CACb,WAAW;CACX,UAAU;CACV,OAAO;CACP,WAAW;CACX,WAAW;CACX,YAAY;CACZ,aAAa;CACb,YAAY;AACd,GAMaC,oBAA+B,IAAI,IAAI;CAClD;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACF,CAAC,GAGYC,KAAiB,MAAkB,GAAGC,EAAG"}
|
package/dist/base.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
@layer vue-grid{:root{--vg-select-column-width:2.75rem;--vg-expander-size:1.5rem;--vg-subgrid-indent:1.25rem;--vg-z-header:3;--vg-z-pinned:2;--vg-z-pinned-header:4;--vg-menu-gap:4px}.vg-root{flex-direction:column;min-width:0;min-height:0;max-height:100%;display:flex}.vg-toolbar{flex-wrap:wrap;justify-content:flex-end;align-items:center;display:flex}.vg-selection-banner,.vg-load-error-banner{flex-wrap:wrap;justify-content:center;align-items:center;display:flex}.vg-viewport{flex-direction:column;flex:auto;min-width:0;min-height:0;display:flex;position:relative;overflow:hidden}.vg{grid-template-columns:var(--vg-columns);isolation:isolate;overscroll-behavior:contain;flex:auto;grid-auto-rows:min-content;align-content:start;min-height:0;display:grid;overflow:auto}.vg-header,.vg-row,.vg-detail-row,.vg-status-row,.vg-empty-row{display:contents}.vg-header-cell{z-index:var(--vg-z-header);user-select:none;white-space:nowrap;align-items:center;display:flex;position:sticky;top:0}.vg-header-cell.vg-reorderable{cursor:grab}.vg-is-dragging,.vg-is-dragging .vg-header-cell{cursor:grabbing}.vg-header-label{text-overflow:ellipsis;min-width:0;overflow:hidden}.vg-sort{cursor:pointer;align-items:center;min-width:0;display:inline-flex}.vg-sort-icon{fill:none;stroke:currentColor;stroke-width:1.75px;stroke-linecap:round;stroke-linejoin:round;flex:none;width:.875rem;height:.875rem}.vg-sort-icon path{opacity:.35}[aria-sort=ascending] .vg-sort-up,[aria-sort=descending] .vg-sort-down{opacity:1}.vg-cell{align-items:center;display:flex}.vg-cell-content{flex:auto;align-items:center;min-width:0;display:flex}.vg-align-center,.vg-align-center>.vg-cell-content{text-align:center;justify-content:center}.vg-align-end,.vg-align-end>.vg-cell-content{text-align:end;justify-content:flex-end}.vg-header-cell.vg-align-end,.vg-header-cell.vg-align-end .vg-sort{flex-direction:row-reverse}.vg-row-clickable>.vg-cell,.vg-cell-clickable{cursor:pointer}.vg-cell-select,.vg-header-select{justify-content:center}.vg-pin-left,.vg-pin-right{z-index:var(--vg-z-pinned);position:sticky}.vg-pin-left{left:var(--vg-pin-offset,0)}.vg-pin-right{right:var(--vg-pin-offset,0)}.vg-header-cell.vg-pin-left,.vg-header-cell.vg-pin-right{z-index:var(--vg-z-pinned-header)}@supports (container-type:scroll-state){.vg{container-type:scroll-state}}.vg-cell-tree{--vg-depth:inherit}.vg-tree-gutter{width:calc(var(--vg-expander-size) + var(--vg-depth,0) * var(--vg-subgrid-indent));flex:none;justify-content:flex-end;display:inline-flex}.vg-expander{width:var(--vg-expander-size);height:var(--vg-expander-size);cursor:pointer;place-items:center;display:inline-grid}.vg-expander-icon{width:1rem;height:1rem}.vg-expander[aria-expanded=true] .vg-expander-icon{transform:rotate(90deg)}.vg-rowgroup-cell{cursor:pointer;container-type:inline-size}.vg-rowgroup-label{white-space:nowrap}.vg-rowgroup-name{flex:none;margin-inline-end:.5rem}@container (width<12rem){.vg-rowgroup-name{display:none}}.vg-rowgroup-value{text-overflow:ellipsis;flex:0 auto;min-width:0;display:block;overflow:hidden}.vg-rowgroup-count{flex:none;margin-inline-start:.5rem}.vg-subgrid{grid-column:1/-1;grid-template-columns:subgrid;display:grid}.vg-detail{grid-column:1/-1}.vg-status,.vg-empty{grid-column:1/-1;align-items:center;display:flex}.vg-empty{justify-content:center}.vg-spinner{width:.875rem;height:.875rem}.vg-progress{z-index:calc(var(--vg-z-pinned-header) + 1);height:2px;position:absolute;inset:0 0 auto;overflow:hidden}.vg-progress:after{content:"";width:40%;position:absolute;inset:0}.vg-spacer{grid-column:1/-1}.vg-virtual{overflow-anchor:none}.vg-virtual .vg-row>.vg-cell{box-sizing:border-box;height:var(--vg-row-height);overflow:hidden}.vg-checkbox{cursor:pointer;display:inline-flex}.vg-checkbox input{width:1rem;height:1rem;cursor:inherit}.vg-checkbox input:disabled{cursor:not-allowed}.vg-button{cursor:pointer;align-items:center;display:inline-flex}.vg-button-icon{width:1rem;height:1rem}.vg-icon-button{cursor:pointer;place-items:center;width:1.75rem;height:1.75rem;display:inline-grid}.vg-icon-button svg{fill:currentColor;width:1rem;height:1rem}.vg-link-button{text-align:inherit;cursor:pointer}.vg-menu{margin:var(--vg-menu-gap) 0;position-area:bottom span-left;position-try-fallbacks:flip-block, flip-inline, flip-block flip-inline;position-visibility:anchor-visible;min-width:10rem;max-height:min(22rem,70vh);position:fixed;inset:auto;overflow:auto}.vg-menu[data-placement=bottom-start]{position-area:bottom span-right}.vg-menu[data-placement=point]{position-area:bottom right;margin:2px}.vg-menu[data-vg-anchor-hidden]{visibility:hidden}.vg-menu-point{pointer-events:none;width:0;height:0;position:fixed}.vg-menu-item{text-align:start;white-space:nowrap;cursor:pointer;align-items:center;width:100%;display:flex}.vg-menu-item:disabled{cursor:not-allowed}.vg-menu-label{flex:auto}.vg-menu-icon{flex:none;width:1rem;height:1rem}.vg-filter-button{flex:none;width:1.5rem;height:1.5rem;margin-inline-start:auto}.vg-filter-button svg{fill:none;stroke:currentColor;stroke-width:1.5px;stroke-linejoin:round;width:.875rem;height:.875rem}.vg-filter-button.vg-filter-on svg{fill:currentColor}.vg-header-cell.vg-has-filter-row{flex-wrap:wrap;align-content:flex-start}.vg-filter-input{flex:1 0 100%;order:10}.vg-filter-input .vg-input{box-sizing:border-box;width:100%}.vg-filter-summary{text-align:start;cursor:pointer}.vg-filter-popover{min-width:15rem;max-width:min(20rem,90vw)}.vg-filter-panel{display:grid}.vg-filter-head{justify-content:space-between;align-items:center;display:flex}.vg-filter-head .vg-link-button:disabled{cursor:default}.vg-filter-fields{display:grid}.vg-filter-fields .vg-input{box-sizing:border-box;width:100%}.vg-filter-option{cursor:pointer;align-items:center;display:flex}.vg-filter-values{max-height:14rem;overflow:auto}.vg-filter-value-label{text-overflow:ellipsis;white-space:nowrap;flex:auto;min-width:0;overflow:hidden}.vg-search{min-width:12rem}.vg-no-match{flex-wrap:wrap;justify-content:center;align-items:center;display:inline-flex}.vg-column-panel{min-width:14rem}.vg-column-panel:popover-open{display:grid}.vg-column-list{display:grid}.vg-column-option{cursor:pointer;align-items:center;display:flex}.vg-pagination{flex-wrap:wrap;justify-content:space-between;align-items:center;display:flex}.vg-status-bar{flex-wrap:wrap;align-items:center;display:flex}.vg-status-item{flex-wrap:wrap;align-items:baseline;display:inline-flex}.vg-status-summary{flex-wrap:wrap;margin-inline-start:auto;display:flex}.vg-pagination-pages{flex-wrap:wrap;align-items:center;margin-inline-start:auto;display:flex}.vg-page{cursor:pointer;min-width:2rem;height:2rem}.vg-page:disabled{cursor:not-allowed}@media (width<30rem){.vg-page-first,.vg-page-last{display:none}}.vg-text{overflow-wrap:break-word;min-width:0}.vg-text-ellipsis{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.vg-text-clamp{-webkit-line-clamp:var(--vg-text-lines);line-clamp:var(--vg-text-lines);-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.vg-text-pre{white-space:pre-line}.vg-text-fill{display:inline-block}.vg-text-adorned{align-items:center;min-width:0;max-width:100%;display:inline-flex}.vg-text-icon{flex:none;display:inline-flex}.vg-text-icon>svg{width:1rem;height:1rem}.vg-badge{flex:none;place-items:center;min-width:1.125rem;height:1.125rem;display:inline-grid}.vg-copy-button{flex:none}.vg-sr-only{clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.vg-resize-handle{z-index:1;cursor:col-resize;touch-action:none;user-select:none;inline-size:8px;position:absolute;inset-block:0;inset-inline-end:0}.vg-header-groups{display:contents}.vg-group-cell{z-index:var(--vg-z-header);white-space:nowrap;justify-content:center;align-items:center;min-width:0;display:flex;position:sticky;top:0;overflow:hidden}.vg-group-label{text-overflow:ellipsis;min-width:0;overflow:hidden}.vg-group-cell.vg-pin-left,.vg-group-cell.vg-pin-right{z-index:var(--vg-z-pinned-header)}.vg-has-groups .vg-header-cell{top:var(--vg-group-row-height,0px)}.vg-pinned-rows{grid-column:1/-1;grid-template-columns:subgrid;z-index:var(--vg-z-header);display:grid;position:sticky}.vg-pinned-top{top:calc(var(--vg-group-row-height,0px) + var(--vg-header-height,0px))}.vg-pinned-bottom{bottom:0}.vg-has-pinned-rows{scroll-padding-block:calc(var(--vg-group-row-height,0px) + var(--vg-header-height,0px) + var(--vg-pinned-top-height,0px)) var(--vg-pinned-bottom-height,0px)}@media (pointer:coarse){.vg-header-cell,.vg-has-cell-menu .vg-cell{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}}.vg-col-sized{min-width:0;overflow:hidden}.vg-is-resizing,.vg-is-resizing .vg-header-cell,.vg-is-resizing .vg-sort{cursor:col-resize;user-select:none}.vg-header-cell,.vg-group-cell,.vg-pin-left,.vg-pin-right{background-color:canvas}}
|
|
1
|
+
@layer vue-grid{:root{--vg-select-column-width:2.75rem;--vg-expander-size:1.5rem;--vg-subgrid-indent:1.25rem;--vg-z-header:3;--vg-z-pinned:2;--vg-z-pinned-header:4;--vg-menu-gap:4px}.vg-root{flex-direction:column;min-width:0;min-height:0;max-height:100%;display:flex}.vg-toolbar{flex-wrap:wrap;justify-content:flex-end;align-items:center;display:flex}.vg-selection-banner,.vg-load-error-banner{flex-wrap:wrap;justify-content:center;align-items:center;display:flex}.vg-viewport{flex-direction:column;flex:auto;min-width:0;min-height:0;display:flex;position:relative;overflow:hidden}.vg{grid-template-columns:var(--vg-columns);isolation:isolate;overscroll-behavior:contain;flex:auto;grid-auto-rows:min-content;align-content:start;min-height:0;display:grid;overflow:auto}.vg-header,.vg-row,.vg-detail-row,.vg-status-row,.vg-empty-row{display:contents}.vg-header-cell{z-index:var(--vg-z-header);user-select:none;white-space:nowrap;align-items:center;display:flex;position:sticky;top:0}.vg-header-cell.vg-reorderable{cursor:grab}.vg-is-dragging,.vg-is-dragging .vg-header-cell{cursor:grabbing}.vg-header-label{text-overflow:ellipsis;min-width:0;overflow:hidden}.vg-sort{cursor:pointer;align-items:center;min-width:0;display:inline-flex}.vg-sort-icon{fill:none;stroke:currentColor;stroke-width:1.75px;stroke-linecap:round;stroke-linejoin:round;flex:none;width:.875rem;height:.875rem}.vg-sort-icon path{opacity:.35}[aria-sort=ascending] .vg-sort-up,[aria-sort=descending] .vg-sort-down,[data-sort-dir=asc] .vg-sort-up,[data-sort-dir=desc] .vg-sort-down{opacity:1}.vg-sort-index{place-items:center;display:inline-grid}.vg-cell{align-items:center;display:flex}.vg-cell-content{flex:auto;align-items:center;min-width:0;display:flex}.vg-align-center,.vg-align-center>.vg-cell-content{text-align:center;justify-content:center}.vg-align-end,.vg-align-end>.vg-cell-content{text-align:end;justify-content:flex-end}.vg-header-cell.vg-align-end,.vg-header-cell.vg-align-end .vg-sort{flex-direction:row-reverse}.vg-row-clickable>.vg-cell,.vg-cell-clickable{cursor:pointer}.vg-cell-select,.vg-header-select{justify-content:center}.vg-pin-left,.vg-pin-right{z-index:var(--vg-z-pinned);position:sticky}.vg-pin-left{left:var(--vg-pin-offset,0)}.vg-pin-right{right:var(--vg-pin-offset,0)}.vg-header-cell.vg-pin-left,.vg-header-cell.vg-pin-right{z-index:var(--vg-z-pinned-header)}@supports (container-type:scroll-state){.vg{container-type:scroll-state}}.vg-cell-tree{--vg-depth:inherit}.vg-tree-gutter{width:calc(var(--vg-expander-size) + var(--vg-depth,0) * var(--vg-subgrid-indent));flex:none;justify-content:flex-end;display:inline-flex}.vg-expander{width:var(--vg-expander-size);height:var(--vg-expander-size);cursor:pointer;place-items:center;display:inline-grid}.vg-expander-icon{width:1rem;height:1rem}.vg-expander[aria-expanded=true] .vg-expander-icon{transform:rotate(90deg)}.vg-rowgroup-cell{cursor:pointer;container-type:inline-size}.vg-rowgroup-label{white-space:nowrap}.vg-rowgroup-name{flex:none;margin-inline-end:.5rem}@container (width<12rem){.vg-rowgroup-name{display:none}}.vg-rowgroup-value{text-overflow:ellipsis;flex:0 auto;min-width:0;display:block;overflow:hidden}.vg-rowgroup-count{flex:none;margin-inline-start:.5rem}.vg-subgrid{grid-column:1/-1;grid-template-columns:subgrid;display:grid}.vg-detail{grid-column:1/-1}.vg-status,.vg-empty{grid-column:1/-1;align-items:center;display:flex}.vg-empty{justify-content:center}.vg-spinner{width:.875rem;height:.875rem}.vg-progress{z-index:calc(var(--vg-z-pinned-header) + 1);height:2px;position:absolute;inset:0 0 auto;overflow:hidden}.vg-progress:after{content:"";width:40%;position:absolute;inset:0}.vg-spacer{grid-column:1/-1}.vg-virtual{overflow-anchor:none}.vg-virtual .vg-row>.vg-cell{box-sizing:border-box;height:var(--vg-row-height);overflow:hidden}.vg-checkbox{cursor:pointer;display:inline-flex}.vg-checkbox input{width:1rem;height:1rem;cursor:inherit}.vg-checkbox input:disabled{cursor:not-allowed}.vg-button{cursor:pointer;align-items:center;display:inline-flex}.vg-button-icon{width:1rem;height:1rem}.vg-icon-button{cursor:pointer;place-items:center;width:1.75rem;height:1.75rem;display:inline-grid}.vg-icon-button svg{fill:currentColor;width:1rem;height:1rem}.vg-link-button{text-align:inherit;cursor:pointer}.vg-menu{margin:var(--vg-menu-gap) 0;position-area:bottom span-left;position-try-fallbacks:flip-block, flip-inline, flip-block flip-inline;position-visibility:anchor-visible;min-width:10rem;max-height:min(22rem,70vh);position:fixed;inset:auto;overflow:auto}.vg-menu[data-placement=bottom-start]{position-area:bottom span-right}.vg-menu[data-placement=point]{position-area:bottom right;margin:2px}.vg-menu[data-vg-anchor-hidden]{visibility:hidden}.vg-menu-point{pointer-events:none;width:0;height:0;position:fixed}.vg-menu-item{text-align:start;white-space:nowrap;cursor:pointer;align-items:center;width:100%;display:flex}.vg-menu-item:disabled{cursor:not-allowed}.vg-menu-label{flex:auto}.vg-menu-icon{flex:none;width:1rem;height:1rem}.vg-filter-button{flex:none;width:1.5rem;height:1.5rem;margin-inline-start:auto}.vg-filter-button svg{fill:none;stroke:currentColor;stroke-width:1.5px;stroke-linejoin:round;width:.875rem;height:.875rem}.vg-filter-button.vg-filter-on svg{fill:currentColor}.vg-header-cell.vg-has-filter-row{flex-wrap:wrap;align-content:flex-start}.vg-filter-input{flex:1 0 100%;order:10}.vg-filter-input .vg-input{box-sizing:border-box;width:100%}.vg-filter-summary{text-align:start;cursor:pointer}.vg-filter-popover{min-width:15rem;max-width:min(20rem,90vw)}.vg-filter-panel{display:grid}.vg-filter-head{justify-content:space-between;align-items:center;display:flex}.vg-filter-head .vg-link-button:disabled{cursor:default}.vg-filter-fields{display:grid}.vg-filter-fields .vg-input{box-sizing:border-box;width:100%}.vg-filter-option{cursor:pointer;align-items:center;display:flex}.vg-filter-values{max-height:14rem;overflow:auto}.vg-filter-value-label{text-overflow:ellipsis;white-space:nowrap;flex:auto;min-width:0;overflow:hidden}.vg-search{min-width:12rem}.vg-no-match{flex-wrap:wrap;justify-content:center;align-items:center;display:inline-flex}.vg-column-panel{min-width:14rem}.vg-column-panel:popover-open{display:grid}.vg-column-list{display:grid}.vg-column-option{cursor:pointer;align-items:center;display:flex}.vg-pagination{flex-wrap:wrap;justify-content:space-between;align-items:center;display:flex}.vg-status-bar{flex-wrap:wrap;align-items:center;display:flex}.vg-status-item{flex-wrap:wrap;align-items:baseline;display:inline-flex}.vg-status-summary{flex-wrap:wrap;margin-inline-start:auto;display:flex}.vg-pagination-pages{flex-wrap:wrap;align-items:center;margin-inline-start:auto;display:flex}.vg-page{cursor:pointer;min-width:2rem;height:2rem}.vg-page:disabled{cursor:not-allowed}@media (width<30rem){.vg-page-first,.vg-page-last{display:none}}.vg-text{overflow-wrap:break-word;min-width:0}.vg-text-ellipsis{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.vg-text-clamp{-webkit-line-clamp:var(--vg-text-lines);line-clamp:var(--vg-text-lines);-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.vg-text-pre{white-space:pre-line}.vg-text-fill{display:inline-block}.vg-text-adorned{align-items:center;min-width:0;max-width:100%;display:inline-flex}.vg-text-icon{flex:none;display:inline-flex}.vg-text-icon>svg{width:1rem;height:1rem}.vg-badge{flex:none;place-items:center;min-width:1.125rem;height:1.125rem;display:inline-grid}.vg-copy-button{flex:none}.vg-sr-only{clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.vg-resize-handle{z-index:1;cursor:col-resize;touch-action:none;user-select:none;inline-size:8px;position:absolute;inset-block:0;inset-inline-end:0}.vg-header-groups{display:contents}.vg-group-cell{z-index:var(--vg-z-header);white-space:nowrap;justify-content:center;align-items:center;min-width:0;display:flex;position:sticky;top:0;overflow:hidden}.vg-group-label{text-overflow:ellipsis;min-width:0;overflow:hidden}.vg-group-cell.vg-pin-left,.vg-group-cell.vg-pin-right{z-index:var(--vg-z-pinned-header)}.vg-has-groups .vg-header-cell{top:var(--vg-group-row-height,0px)}.vg-pinned-rows{grid-column:1/-1;grid-template-columns:subgrid;z-index:var(--vg-z-header);display:grid;position:sticky}.vg-pinned-top{top:calc(var(--vg-group-row-height,0px) + var(--vg-header-height,0px))}.vg-pinned-bottom{bottom:0}.vg-has-pinned-rows{scroll-padding-block:calc(var(--vg-group-row-height,0px) + var(--vg-header-height,0px) + var(--vg-pinned-top-height,0px)) var(--vg-pinned-bottom-height,0px)}@media (pointer:coarse){.vg-header-cell,.vg-has-cell-menu .vg-cell{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}}.vg-col-sized{min-width:0;overflow:hidden}.vg-is-resizing,.vg-is-resizing .vg-header-cell,.vg-is-resizing .vg-sort{cursor:col-resize;user-select:none}.vg-header-cell,.vg-group-cell,.vg-pin-left,.vg-pin-right{background-color:canvas}}
|