@nocopypaste/vue-grid 0.4.2 → 0.5.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 -1
- package/CHANGELOG.md +24 -0
- package/README.md +63 -30
- package/agent/api.json +23 -2
- package/agent/api.md +5 -2
- package/agent/grid-config.schema.json +4 -0
- package/dist/agent/api.js +21 -2
- package/dist/agent/requirements.js +2 -1
- 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 +392 -361
- package/dist/components/VGrid.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VGridStatusBar.js +6 -0
- package/dist/components/VGridStatusBar.js.map +1 -0
- package/dist/components/VGridStatusBar.vue_vue_type_script_setup_true_lang.js +55 -0
- package/dist/components/VGridStatusBar.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/composables/useStatusBar.js +73 -0
- package/dist/composables/useStatusBar.js.map +1 -0
- package/dist/core.css +1 -1
- package/dist/features/index.js +9 -7
- package/dist/features/index.js.map +1 -1
- package/dist/features/statusBar.js +11 -0
- package/dist/features/statusBar.js.map +1 -0
- package/dist/index.js +5 -4
- package/dist/internal/features.js.map +1 -1
- package/dist/theme.css +1 -1
- package/dist/types/agent/requirements.d.ts +1 -1
- package/dist/types/components/VGrid.vue.d.ts +9 -1
- package/dist/types/components/VGridStatusBar.vue.d.ts +14 -0
- package/dist/types/composables/useStatusBar.d.ts +45 -0
- package/dist/types/features/index.d.ts +2 -1
- package/dist/types/features/statusBar.d.ts +8 -0
- package/dist/types/internal/features.d.ts +2 -1
- package/dist/types/types.d.ts +47 -1
- package/dist/vue-grid.css +1 -1
- package/llms-full.txt +70 -33
- package/llms.txt +1 -1
- package/package.json +1 -1
package/AGENTS.md
CHANGED
|
@@ -65,6 +65,7 @@ runs in the [live examples](https://eboye.github.io/eboye-vue-grid/), each with
|
|
|
65
65
|
| A totals row (sum, avg, …) | `aggregationFeature` | column `aggregate: 'sum' \| 'avg' \| 'min' \| 'max' \| 'count' \| fn`; `totals` (or `'top'`) |
|
|
66
66
|
| Group rows by a column ("by status, then city") | `rowGroupingFeature` | `v-model:group-by="['status', 'city']"`, `groups-expanded`; column `groupable: true` (header menu), `groupValue: (row) => …` (e.g. month); `aggregate` shows per group |
|
|
67
67
|
| Download CSV, copy rows / cells (Ctrl+C) | `exportFeature` | `grid.exportCsv()`, `getCsv()`, `copyRows()`, `@copy`; column `exportValue`, `exportable: false` |
|
|
68
|
+
| Row / selection counts, sum of the selected rows | `statusBarFeature` | `status-bar` (or `{ summary: ['total'], aggregates?: ['sum', 'avg'] }`); `#status-bar="{ rowCount, selectedCount, summary, … }"` |
|
|
68
69
|
| Arrow-key navigation (ARIA grid) | `keyboardNavigationFeature` | — |
|
|
69
70
|
| Remember column layout | — | `storage="orders-grid"` (localStorage key) |
|
|
70
71
|
| Cell type (money, date, badge, link, …) | — | `renderer: currencyRenderer` etc. (list below) |
|
|
@@ -215,7 +216,7 @@ const fetchOrders: DataSource<Order> = async (query, { signal }) => {
|
|
|
215
216
|
body: JSON.stringify(query),
|
|
216
217
|
signal,
|
|
217
218
|
})
|
|
218
|
-
if (!res.ok) throw new Error(res.statusText) //
|
|
219
|
+
if (!res.ok) throw new Error(res.statusText) // the grid shows the error with Retry, emits load-error
|
|
219
220
|
return res.json() as Promise<{ rows: Order[]; total: number }>
|
|
220
221
|
}
|
|
221
222
|
```
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,29 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.5.0 — 2026-11-24
|
|
4
|
+
|
|
5
|
+
**Status bar** (`statusBarFeature`): `status-bar` adds a bar under the grid with the rows that pass
|
|
6
|
+
the filters (`84 of 200 rows`, or the server's `total`), the selected rows, and the active filters
|
|
7
|
+
with a Clear button. `{ summary: ['stake'] }` adds, like a spreadsheet, the sum and average of
|
|
8
|
+
those columns over the selected rows (`aggregates` picks sum, average, min, max), formatted like
|
|
9
|
+
the column's cells; selected child rows count too. The `#status-bar` slot replaces the content
|
|
10
|
+
(`rowCount`, `totalRowCount`, `selectedCount`, `allSelected`, `filterCount`, `summary`,
|
|
11
|
+
`clearFilters`). Its component loads on demand; a grid without the feature grows by 0.1 kB gzip.
|
|
12
|
+
New exported types `StatusBarOptions`, `StatusBarScope`, `StatusBarSummary`, `StatusBarAggregate`.
|
|
13
|
+
|
|
14
|
+
Docs: the bundle sizes in the READMEs are measured again (a plain grid is 14.0 kB gzip; the
|
|
15
|
+
numbers had last been taken at 0.3.0).
|
|
16
|
+
|
|
17
|
+
## 0.4.3 — 2026-11-24
|
|
18
|
+
|
|
19
|
+
**Server data: a failed request no longer leaves the old rows looking current.** When a
|
|
20
|
+
`dataSource` request failed while rows were on screen, the grid kept them and emitted
|
|
21
|
+
`load-error`, but showed nothing, so the rows looked up to date (the _Couldn't load the rows_ /
|
|
22
|
+
_Retry_ message only appeared with no rows to show). Now a notice above the grid says _Couldn't
|
|
23
|
+
load the rows. These are from before._ with a _Retry_ button (`.vg-load-error-banner`,
|
|
24
|
+
`role="alert"`, themed like the selection banner in the danger tone). The next request, a retry or
|
|
25
|
+
a new sort, filter or page, clears it.
|
|
26
|
+
|
|
3
27
|
## 0.4.2 — 2026-11-24
|
|
4
28
|
|
|
5
29
|
**Fix: theme colours in production builds that rewrite `light-dark()`.** Lightning CSS (the CSS
|
package/README.md
CHANGED
|
@@ -131,6 +131,7 @@ an opt-in feature:
|
|
|
131
131
|
| `aggregationFeature` | Column `aggregate` (`sum`, `avg`, `min`, `max`, `count`, a function) and `totals`: a sticky totals row over the filtered rows |
|
|
132
132
|
| `rowGroupingFeature` | `v-model:group-by`: rows grouped by one or more columns into collapsible group rows with the value, row count and aggregates; Group by / Ungroup in the header menu for `groupable` columns |
|
|
133
133
|
| `exportFeature` | `exportCsv()` / `getCsv()` / `copyRows()`, Ctrl/⌘+C for the selected rows or the focused cell, the `copy` event; column `exportValue` / `exportable` |
|
|
134
|
+
| `statusBarFeature` | `status-bar`: a bar under the grid with the rows that pass the filters, the selected rows, the active filters (with Clear), and `{ summary: [keys] }` columns' sum and average over the selected rows; the `#status-bar` slot |
|
|
134
135
|
|
|
135
136
|
```ts
|
|
136
137
|
// per grid
|
|
@@ -163,43 +164,44 @@ what you import.
|
|
|
163
164
|
|
|
164
165
|
| File | What | gzip |
|
|
165
166
|
| --------------- | --------------------------------------------------------------------------------------------------------------------------------------- | ------ |
|
|
166
|
-
| `base.css` | Structure only: grid layout, subgrid, sticky header and pins, tree indent, popover placement, virtual rows, pinned rows, truncation | 2.
|
|
167
|
-
| `theme.css` | The default look on top of `base.css`: `--vg-*` tokens, colours, dark mode, densities, spacing, borders, typography, shadows, animation | 3.
|
|
168
|
-
| `core.css` | `base.css` + `theme.css` | 5.
|
|
167
|
+
| `base.css` | Structure only: grid layout, subgrid, sticky header and pins, tree indent, popover placement, virtual rows, pinned rows, truncation | 2.3 kB |
|
|
168
|
+
| `theme.css` | The default look on top of `base.css`: `--vg-*` tokens, colours, dark mode, densities, spacing, borders, typography, shadows, animation | 3.6 kB |
|
|
169
|
+
| `core.css` | `base.css` + `theme.css` | 5.4 kB |
|
|
169
170
|
| `renderers.css` | Styles for the cell renderers (other than text); uses the theme's tokens | 2.2 kB |
|
|
170
|
-
| `style.css` | All of the above |
|
|
171
|
+
| `style.css` | All of the above | 7.0 kB |
|
|
171
172
|
|
|
172
173
|
For a fully custom look, import only `base.css` (and `renderers.css` if you use renderers)
|
|
173
174
|
and style the `.vg-*` classes yourself. See [Theming](#theming).
|
|
174
175
|
|
|
175
176
|
| Import (minified / gzip, Vue excluded) | Initial chunk |
|
|
176
177
|
| ---------------------------------------------------------------------------- | ------------------ |
|
|
177
|
-
| `VGrid` (no features) |
|
|
178
|
-
| `VGrid` + `sortingFeature` |
|
|
179
|
-
| `VGrid` + `filteringFeature` |
|
|
180
|
-
| `VGrid` + `serverDataFeature` |
|
|
181
|
-
| `VGrid` + `paginationFeature` |
|
|
182
|
-
| `VGrid` + `selectionFeature` |
|
|
183
|
-
| `VGrid` + `subGridsFeature` |
|
|
184
|
-
| `VGrid` + `menusFeature` |
|
|
185
|
-
| `VGrid` + `columnReorderFeature` |
|
|
186
|
-
| `VGrid` + `columnPinningFeature` |
|
|
187
|
-
| `VGrid` + `virtualScrollingFeature` |
|
|
188
|
-
| `VGrid` + `columnVisibilityFeature` |
|
|
189
|
-
| `VGrid` + `keyboardNavigationFeature` |
|
|
190
|
-
| `VGrid` + `columnResizingFeature` |
|
|
191
|
-
| `VGrid` + `columnGroupsFeature` |
|
|
192
|
-
| `VGrid` + `rowPinningFeature` |
|
|
193
|
-
| `VGrid` + `aggregationFeature` |
|
|
194
|
-
| `VGrid` + `rowGroupingFeature` |
|
|
195
|
-
| `VGrid` + `exportFeature` |
|
|
196
|
-
| `VGrid` + `
|
|
197
|
-
| `VGrid` + `
|
|
198
|
-
| `VGrid` + `
|
|
178
|
+
| `VGrid` (no features) | 40.3 kB / 14.0 kB |
|
|
179
|
+
| `VGrid` + `sortingFeature` | 41.0 kB / 14.3 kB |
|
|
180
|
+
| `VGrid` + `filteringFeature` | 50.9 kB / 17.8 kB |
|
|
181
|
+
| `VGrid` + `serverDataFeature` | 41.6 kB / 14.6 kB |
|
|
182
|
+
| `VGrid` + `paginationFeature` | 40.4 kB / 14.1 kB |
|
|
183
|
+
| `VGrid` + `selectionFeature` | 44.4 kB / 15.4 kB |
|
|
184
|
+
| `VGrid` + `subGridsFeature` | 42.6 kB / 14.8 kB |
|
|
185
|
+
| `VGrid` + `menusFeature` | 50.7 kB / 17.5 kB |
|
|
186
|
+
| `VGrid` + `columnReorderFeature` | 44.0 kB / 15.2 kB |
|
|
187
|
+
| `VGrid` + `columnPinningFeature` | 43.2 kB / 15.0 kB |
|
|
188
|
+
| `VGrid` + `virtualScrollingFeature` | 46.0 kB / 16.2 kB |
|
|
189
|
+
| `VGrid` + `columnVisibilityFeature` | 40.4 kB / 14.0 kB |
|
|
190
|
+
| `VGrid` + `keyboardNavigationFeature` | 43.0 kB / 15.0 kB |
|
|
191
|
+
| `VGrid` + `columnResizingFeature` | 43.5 kB / 15.2 kB |
|
|
192
|
+
| `VGrid` + `columnGroupsFeature` | 41.6 kB / 14.5 kB |
|
|
193
|
+
| `VGrid` + `rowPinningFeature` | 45.2 kB / 15.3 kB |
|
|
194
|
+
| `VGrid` + `aggregationFeature` | 45.4 kB / 15.4 kB |
|
|
195
|
+
| `VGrid` + `rowGroupingFeature` | 50.0 kB / 16.9 kB |
|
|
196
|
+
| `VGrid` + `exportFeature` | 44.0 kB / 15.5 kB |
|
|
197
|
+
| `VGrid` + `statusBarFeature` | 42.6 kB / 14.9 kB |
|
|
198
|
+
| `VGrid` + `allFeatures` + `VGridSearch` | 106.9 kB / 36.0 kB |
|
|
199
|
+
| `VGrid` + `currencyRenderer` | 41.6 kB / 14.5 kB |
|
|
200
|
+
| `VGrid` + `VGridPagination` + `VGridColumnMenu` | 47.0 kB / 16.2 kB |
|
|
199
201
|
| `sortRows` only | 0.7 kB / 0.4 kB |
|
|
200
202
|
| `toCsv` only | 1.1 kB / 0.6 kB |
|
|
201
|
-
| everything |
|
|
202
|
-
| `validateGridConfig` (`@nocopypaste/vue-grid/agent`, never in an app bundle) |
|
|
203
|
+
| everything | 151.7 kB / 48.5 kB |
|
|
204
|
+
| `validateGridConfig` (`@nocopypaste/vue-grid/agent`, never in an app bundle) | 69.7 kB / 18.9 kB |
|
|
203
205
|
|
|
204
206
|
With `filteringFeature`, the filter popover body and the filter-row editors are **on-demand
|
|
205
207
|
chunks**: they load the first time a popover opens or `filter-row` is on. With
|
|
@@ -685,8 +687,10 @@ const fetchBets: DataSource<Bet> = async (query, { signal }) => {
|
|
|
685
687
|
|
|
686
688
|
- **Cancellation.** A new query aborts the previous request through `signal`, and a late response
|
|
687
689
|
from a superseded request is ignored, so fast typing never shows stale rows.
|
|
688
|
-
- **States.** The grid shows a progress bar while loading. If the function throws, it
|
|
689
|
-
_Couldn't load the rows._ with a _Retry_ button
|
|
690
|
+
- **States.** The grid shows a progress bar while loading. If the function throws, it emits
|
|
691
|
+
`load-error` and shows _Couldn't load the rows._ with a _Retry_ button: in place of the rows
|
|
692
|
+
when there are none, or above the rows from before (_These are from before._), which stay on
|
|
693
|
+
screen. The next request clears it. The notice is `.vg-load-error-banner` (`role="alert"`).
|
|
690
694
|
- **Paging.** `pagination` adds the pager and sends `page` / `pageSize`; return `total` so the
|
|
691
695
|
pager knows how many pages there are. Without `pagination`, `pageSize` is `null` (fetch
|
|
692
696
|
everything). The page resets to 1 when sort or filters change.
|
|
@@ -918,6 +922,35 @@ Without the grid: `toCsv(rows, columns, { delimiter, header, guard })` writes CS
|
|
|
918
922
|
and column definitions (raw values, `exportValue`, `exportable`); `toDelimited(table)`,
|
|
919
923
|
`plainText(value)` and `guardFormula(text)` are its parts.
|
|
920
924
|
|
|
925
|
+
## Status bar
|
|
926
|
+
|
|
927
|
+
`statusBarFeature` adds a bar under the grid, like a spreadsheet's:
|
|
928
|
+
|
|
929
|
+
```vue
|
|
930
|
+
<VGrid
|
|
931
|
+
v-model:selected="selected"
|
|
932
|
+
:rows="orders"
|
|
933
|
+
:columns="columns"
|
|
934
|
+
row-key="id"
|
|
935
|
+
selectable
|
|
936
|
+
:status-bar="{ summary: ['total'] }"
|
|
937
|
+
:features="[statusBarFeature, selectionFeature, filteringFeature]"
|
|
938
|
+
/>
|
|
939
|
+
<!-- 84 of 200 rows · 3 selected · 1 filter Clear Total: Sum €917.03 Average €305.68 -->
|
|
940
|
+
```
|
|
941
|
+
|
|
942
|
+
- **Counts**: the top-level rows that pass the filters, on every page (`84 of 200 rows`, or the
|
|
943
|
+
server's `total` with a data source), the selected rows, and the active filters with a **Clear**
|
|
944
|
+
button.
|
|
945
|
+
- **Summary**: `summary` lists column keys; while rows are selected, the bar shows each column's
|
|
946
|
+
sum and average over them (`aggregates: ['sum', 'avg', 'min', 'max']` picks), formatted
|
|
947
|
+
like the column's cells. Selected child rows count too. With "select all N matching rows" on
|
|
948
|
+
(server data) the summary hides: only the loaded page is known.
|
|
949
|
+
- **Your own content**: the `#status-bar` slot gets `{ rowCount, totalRowCount, selectedCount,
|
|
950
|
+
allSelected, filterCount, summary, clearFilters }` and replaces the default content.
|
|
951
|
+
- The bar is a `group` labelled "Grid status"; style it with `.vg-status-bar`. Its component loads
|
|
952
|
+
on demand (own chunk).
|
|
953
|
+
|
|
921
954
|
## Virtual scrolling
|
|
922
955
|
|
|
923
956
|
```vue
|
package/agent/api.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"package": "@nocopypaste/vue-grid",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"component": "VGrid",
|
|
5
5
|
"props": [
|
|
6
6
|
{
|
|
@@ -43,6 +43,13 @@
|
|
|
43
43
|
"description": "Built-in pagination under the grid (server-side with `dataSource`, client-side otherwise).",
|
|
44
44
|
"feature": "pagination"
|
|
45
45
|
},
|
|
46
|
+
{
|
|
47
|
+
"name": "statusBar",
|
|
48
|
+
"type": "boolean | StatusBarOptions",
|
|
49
|
+
"required": false,
|
|
50
|
+
"description": "A status bar under the grid (status bar feature): rows that pass the filters (\"84 of 200 rows\"), selected rows, active filters with Clear; `{ summary: ['total'] }` adds the sum and average of those columns over the selected rows. `#status-bar` replaces its content.",
|
|
51
|
+
"feature": "statusBar"
|
|
52
|
+
},
|
|
46
53
|
{
|
|
47
54
|
"name": "sortMode",
|
|
48
55
|
"type": "'controlled' | 'client'",
|
|
@@ -381,7 +388,7 @@
|
|
|
381
388
|
{
|
|
382
389
|
"name": "load-error",
|
|
383
390
|
"payload": "[error: unknown]",
|
|
384
|
-
"description": "A `dataSource` call failed
|
|
391
|
+
"description": "A `dataSource` call failed. The grid shows an error with Retry, above the rows from before if any."
|
|
385
392
|
},
|
|
386
393
|
{
|
|
387
394
|
"name": "row-click",
|
|
@@ -450,6 +457,11 @@
|
|
|
450
457
|
"scope": null,
|
|
451
458
|
"description": "Shown when there are no rows."
|
|
452
459
|
},
|
|
460
|
+
{
|
|
461
|
+
"name": "status-bar",
|
|
462
|
+
"scope": "StatusBarScope",
|
|
463
|
+
"description": "The status bar's content (status bar feature): replaces the counts and the summary."
|
|
464
|
+
},
|
|
453
465
|
{
|
|
454
466
|
"name": "loading",
|
|
455
467
|
"scope": null,
|
|
@@ -989,6 +1001,15 @@
|
|
|
989
1001
|
"sortFn"
|
|
990
1002
|
]
|
|
991
1003
|
},
|
|
1004
|
+
{
|
|
1005
|
+
"id": "statusBar",
|
|
1006
|
+
"export": "statusBarFeature",
|
|
1007
|
+
"description": "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).",
|
|
1008
|
+
"props": [
|
|
1009
|
+
"statusBar"
|
|
1010
|
+
],
|
|
1011
|
+
"columnOptions": []
|
|
1012
|
+
},
|
|
992
1013
|
{
|
|
993
1014
|
"id": "subGrids",
|
|
994
1015
|
"export": "subGridsFeature",
|
package/agent/api.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @nocopypaste/vue-grid 0.
|
|
1
|
+
# @nocopypaste/vue-grid 0.5.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,6 +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
|
| `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. | | `sortable` `sortValue` `sortFn` |
|
|
27
|
+
| `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` | |
|
|
27
28
|
| `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` | |
|
|
28
29
|
| `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` | |
|
|
29
30
|
|
|
@@ -37,6 +38,7 @@ Opt-in: pass them as `:features="[…]"` on `<VGrid>` or once via `createVueGrid
|
|
|
37
38
|
| `features` | `readonly GridFeature[]` | | | Opt-in features for this grid (added to the app-wide `createVueGrid({ features })`): `sortingFeature`, `filteringFeature`, `serverDataFeature`, `paginationFeature`, or `allFeatures`. Read once, when the grid is created. |
|
|
38
39
|
| `dataSource` | `DataSource<T>` | | `serverDataFeature` | Server data: called with the current query (sort, filters, search, page) whenever it changes. The grid cancels superseded requests, shows loading and errors, and sorts / filters / pages nothing itself. |
|
|
39
40
|
| `pagination` | `boolean \| { pageSizes?: number[] }` | `false` | `paginationFeature` | Built-in pagination under the grid (server-side with `dataSource`, client-side otherwise). |
|
|
41
|
+
| `statusBar` | `boolean \| StatusBarOptions` | | `statusBarFeature` | A status bar under the grid (status bar feature): rows that pass the filters ("84 of 200 rows"), selected rows, active filters with Clear; `{ summary: ['total'] }` adds the sum and average of those columns over the selected rows. `#status-bar` replaces its content. |
|
|
40
42
|
| `sortMode` | `'controlled' \| 'client'` | `'controlled'` | | `controlled` (default): a header click only updates `v-model:sort` (sort on the server or in your own code). `client`: the grid sorts the rows itself. Ignored with `dataSource`. |
|
|
41
43
|
| `filterMode` | `'client' \| 'controlled'` | `'client'` | `filteringFeature` | `client` (default): the grid filters its rows. `controlled`: it only emits `update:filters`. |
|
|
42
44
|
| `filterRow` | `boolean` | `false` | `filteringFeature` | Show the filter row: an input under each filterable column's header. |
|
|
@@ -95,7 +97,7 @@ Opt-in: pass them as `:features="[…]"` on `<VGrid>` or once via `createVueGrid
|
|
|
95
97
|
| Event | Payload | Description |
|
|
96
98
|
|---|---|---|
|
|
97
99
|
| `query-change` | `[query: GridQuery]` | The combined query (sort, filters, search, page) — on mount and whenever it changes. |
|
|
98
|
-
| `load-error` | `[error: unknown]` | A `dataSource` call failed
|
|
100
|
+
| `load-error` | `[error: unknown]` | A `dataSource` call failed. The grid shows an error with Retry, above the rows from before if any. |
|
|
99
101
|
| `row-click` | `[row: T, event: MouseEvent \| KeyboardEvent]` | A row was clicked (not on a link, button or input inside it, nor a `clickable` column). |
|
|
100
102
|
| `cell-click` | `[event: CellClickEvent<T>]` | A cell of a `clickable: true` column was clicked. |
|
|
101
103
|
| `cell-action` | `[event: CellActionEvent<T>]` | A renderer emitted an action (buttons, toggles, menus, edit, copy). |
|
|
@@ -114,6 +116,7 @@ Opt-in: pass them as `:features="[…]"` on `<VGrid>` or once via `createVueGrid
|
|
|
114
116
|
| `group-<key>` | `{ value: unknown; count: number; rows: readonly T[]; column: ColumnDef<T>; group: RowGroup<T> }` | The value of a group row grouped by this column (row grouping feature): `#group-<key>`. |
|
|
115
117
|
| `detail` | `{ row: T; rowKey: RowKey; depth: number }` | Expandable detail row under a row: any content, even another grid. |
|
|
116
118
|
| `empty` | | Shown when there are no rows. |
|
|
119
|
+
| `status-bar` | `StatusBarScope` | The status bar's content (status bar feature): replaces the counts and the summary. |
|
|
117
120
|
| `loading` | | Shown while loading with no rows yet. |
|
|
118
121
|
| `sub-rows-loading` | `{ row: T }` | Shown while a row's lazy children load. |
|
|
119
122
|
| `toolbar` | `{ columns: readonly ColumnDef<T>[]; columnState: ColumnState; setColumnState: (state: ColumnState) => void; filters: FilterState; setFilters: (state: FilterState) => void; clearFilters: () => void; activeFilterCount: number; selected: readonly RowKey[]; selectedCount: number; selectAllMatching: boolean; clearSelection: () => void }` | Above the grid: put a search box, column menu, filter summary or batch actions here. |
|
|
@@ -41,6 +41,7 @@
|
|
|
41
41
|
"selectionFeature",
|
|
42
42
|
"serverDataFeature",
|
|
43
43
|
"sortingFeature",
|
|
44
|
+
"statusBarFeature",
|
|
44
45
|
"subGridsFeature",
|
|
45
46
|
"virtualScrollingFeature"
|
|
46
47
|
]
|
|
@@ -61,6 +62,9 @@
|
|
|
61
62
|
],
|
|
62
63
|
"description": "Built-in pagination under the grid (server-side with `dataSource`, client-side otherwise)."
|
|
63
64
|
},
|
|
65
|
+
"statusBar": {
|
|
66
|
+
"description": "A status bar under the grid (status bar feature): rows that pass the filters (\"84 of 200 rows\"), selected rows, active filters with Clear; `{ summary: ['total'] }` adds the sum and average of those columns over the selected rows. `#status-bar` replaces its content."
|
|
67
|
+
},
|
|
64
68
|
"sortMode": {
|
|
65
69
|
"enum": [
|
|
66
70
|
"controlled",
|
package/dist/agent/api.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// src/agent/api.json
|
|
2
|
-
var e = "0.
|
|
2
|
+
var e = "0.5.0", t = "VGrid", n = [
|
|
3
3
|
{
|
|
4
4
|
name: "rows",
|
|
5
5
|
type: "readonly T[]",
|
|
@@ -40,6 +40,13 @@ var e = "0.4.2", t = "VGrid", n = [
|
|
|
40
40
|
description: "Built-in pagination under the grid (server-side with `dataSource`, client-side otherwise).",
|
|
41
41
|
feature: "pagination"
|
|
42
42
|
},
|
|
43
|
+
{
|
|
44
|
+
name: "statusBar",
|
|
45
|
+
type: "boolean | StatusBarOptions",
|
|
46
|
+
required: !1,
|
|
47
|
+
description: "A status bar under the grid (status bar feature): rows that pass the filters (\"84 of 200 rows\"), selected rows, active filters with Clear; `{ summary: ['total'] }` adds the sum and average of those columns over the selected rows. `#status-bar` replaces its content.",
|
|
48
|
+
feature: "statusBar"
|
|
49
|
+
},
|
|
43
50
|
{
|
|
44
51
|
name: "sortMode",
|
|
45
52
|
type: "'controlled' | 'client'",
|
|
@@ -376,7 +383,7 @@ var e = "0.4.2", t = "VGrid", n = [
|
|
|
376
383
|
{
|
|
377
384
|
name: "load-error",
|
|
378
385
|
payload: "[error: unknown]",
|
|
379
|
-
description: "A `dataSource` call failed
|
|
386
|
+
description: "A `dataSource` call failed. The grid shows an error with Retry, above the rows from before if any."
|
|
380
387
|
},
|
|
381
388
|
{
|
|
382
389
|
name: "row-click",
|
|
@@ -444,6 +451,11 @@ var e = "0.4.2", t = "VGrid", n = [
|
|
|
444
451
|
scope: null,
|
|
445
452
|
description: "Shown when there are no rows."
|
|
446
453
|
},
|
|
454
|
+
{
|
|
455
|
+
name: "status-bar",
|
|
456
|
+
scope: "StatusBarScope",
|
|
457
|
+
description: "The status bar's content (status bar feature): replaces the counts and the summary."
|
|
458
|
+
},
|
|
447
459
|
{
|
|
448
460
|
name: "loading",
|
|
449
461
|
scope: null,
|
|
@@ -949,6 +961,13 @@ var e = "0.4.2", t = "VGrid", n = [
|
|
|
949
961
|
"sortFn"
|
|
950
962
|
]
|
|
951
963
|
},
|
|
964
|
+
{
|
|
965
|
+
id: "statusBar",
|
|
966
|
+
export: "statusBarFeature",
|
|
967
|
+
description: "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).",
|
|
968
|
+
props: ["statusBar"],
|
|
969
|
+
columnOptions: []
|
|
970
|
+
},
|
|
952
971
|
{
|
|
953
972
|
id: "subGrids",
|
|
954
973
|
export: "subGridsFeature",
|
|
@@ -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\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}\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":";
|
|
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\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 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":";AA2BA,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,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{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-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{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}}
|