@nocopypaste/vue-grid 0.4.3 → 0.6.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.
Files changed (47) hide show
  1. package/AGENTS.md +5 -2
  2. package/CHANGELOG.md +27 -0
  3. package/README.md +83 -30
  4. package/agent/api.json +35 -2
  5. package/agent/api.md +7 -2
  6. package/agent/grid-config.schema.json +4 -0
  7. package/dist/agent/api.js +33 -2
  8. package/dist/agent/requirements.js +2 -1
  9. package/dist/agent/requirements.js.map +1 -1
  10. package/dist/base.css +1 -1
  11. package/dist/components/VGrid.vue_vue_type_script_setup_true_lang.js +204 -180
  12. package/dist/components/VGrid.vue_vue_type_script_setup_true_lang.js.map +1 -1
  13. package/dist/components/VGridStatusBar.js +6 -0
  14. package/dist/components/VGridStatusBar.js.map +1 -0
  15. package/dist/components/VGridStatusBar.vue_vue_type_script_setup_true_lang.js +55 -0
  16. package/dist/components/VGridStatusBar.vue_vue_type_script_setup_true_lang.js.map +1 -0
  17. package/dist/composables/useGridExport.js +83 -51
  18. package/dist/composables/useGridExport.js.map +1 -1
  19. package/dist/composables/useStatusBar.js +73 -0
  20. package/dist/composables/useStatusBar.js.map +1 -0
  21. package/dist/core/xlsx.js +172 -0
  22. package/dist/core/xlsx.js.map +1 -0
  23. package/dist/core.css +1 -1
  24. package/dist/features/export.js.map +1 -1
  25. package/dist/features/index.js +9 -7
  26. package/dist/features/index.js.map +1 -1
  27. package/dist/features/statusBar.js +11 -0
  28. package/dist/features/statusBar.js.map +1 -0
  29. package/dist/index.js +55 -53
  30. package/dist/internal/features.js.map +1 -1
  31. package/dist/theme.css +1 -1
  32. package/dist/types/agent/requirements.d.ts +1 -1
  33. package/dist/types/components/VGrid.vue.d.ts +9 -1
  34. package/dist/types/components/VGridStatusBar.vue.d.ts +14 -0
  35. package/dist/types/composables/useGridExport.d.ts +5 -1
  36. package/dist/types/composables/useStatusBar.d.ts +45 -0
  37. package/dist/types/core/xlsx.d.ts +34 -0
  38. package/dist/types/features/export.d.ts +5 -4
  39. package/dist/types/features/index.d.ts +2 -1
  40. package/dist/types/features/statusBar.d.ts +8 -0
  41. package/dist/types/index.d.ts +1 -0
  42. package/dist/types/internal/features.d.ts +2 -1
  43. package/dist/types/types.d.ts +61 -1
  44. package/dist/vue-grid.css +1 -1
  45. package/llms-full.txt +95 -34
  46. package/llms.txt +1 -1
  47. package/package.json +1 -1
package/AGENTS.md CHANGED
@@ -64,7 +64,8 @@ runs in the [live examples](https://eboye.github.io/eboye-vue-grid/), each with
64
64
  | Rows that stay on top / bottom | `rowPinningFeature` | `v-model:pinned-rows="{ top: [id], bottom: [] }"`, `pinRow()`, `pinned-top-rows` |
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
- | Download CSV, copy rows / cells (Ctrl+C) | `exportFeature` | `grid.exportCsv()`, `getCsv()`, `copyRows()`, `@copy`; column `exportValue`, `exportable: false` |
67
+ | Download CSV or Excel, copy rows / cells (Ctrl+C) | `exportFeature` | `grid.exportCsv()`, `getCsv()`, `exportXlsx()`, `getXlsx()`, `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) |
@@ -364,7 +365,7 @@ visible column and runs across the next ones up to the first with an `aggregate`
364
365
  column it drops the column name and ellipsizes the value (full label as tooltip), so give it room
365
366
  where the value matters. `#group-<key>="{ value, count }"` renders a group's value yourself.
366
367
 
367
- ### CSV export and copy
368
+ ### CSV / Excel export and copy
368
369
 
369
370
  ```vue
370
371
  <script setup lang="ts">
@@ -397,6 +398,8 @@ const grid = ref<VGridExposed>()
397
398
  raw values; `copyRows` and Ctrl/⌘+C to the selected rows as displayed, tab-separated. Options:
398
399
  `rows: 'filtered' | 'all' | 'page' | 'selected'`, `columns: [keys]`, `values: 'raw' | 'formatted'`,
399
400
  `header`, `totals`, `children`, `delimiter`. `toCsv(rows, columns)` works without a grid.
401
+ `exportXlsx({ filename, sheetName })` / `getXlsx()` (a Promise) write an Excel file with typed cells
402
+ (numbers, dates, booleans) and number formats from the renderers; `toXlsx(rows, columns)` without a grid.
400
403
 
401
404
  ### Row actions and context menu
402
405
 
package/CHANGELOG.md CHANGED
@@ -1,5 +1,32 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.6.0 — 2026-11-24
4
+
5
+ **Excel export** (export feature): `grid.exportXlsx()` downloads the rows as an `.xlsx` workbook
6
+ and `grid.getXlsx()` resolves to it as a `Blob`. They take the CSV options (which rows, columns,
7
+ raw or formatted values, header, totals, sub-grid rows) plus `sheetName`. Cells are typed:
8
+ numbers, booleans and dates stay what they are, so the sheet can sum and sort them, with number
9
+ formats from the columns' renderers (money `#,##0.00`, percentages, `yyyy-mm-dd` dates and date-
10
+ times in the grid's time zone). The header is bold and frozen, the totals line bold, and column
11
+ widths follow the content. Text is never written as a formula. The writer has no dependencies and
12
+ loads the first time you export (2.9 kB gzip); the export feature itself grows by 0.3 kB gzip.
13
+ `toXlsx(rows, columns)` writes a workbook without a grid. New exported types `XlsxExportOptions`,
14
+ `ToXlsxOptions`, `XlsxFormat`.
15
+
16
+ ## 0.5.0 — 2026-11-24
17
+
18
+ **Status bar** (`statusBarFeature`): `status-bar` adds a bar under the grid with the rows that pass
19
+ the filters (`84 of 200 rows`, or the server's `total`), the selected rows, and the active filters
20
+ with a Clear button. `{ summary: ['stake'] }` adds, like a spreadsheet, the sum and average of
21
+ those columns over the selected rows (`aggregates` picks sum, average, min, max), formatted like
22
+ the column's cells; selected child rows count too. The `#status-bar` slot replaces the content
23
+ (`rowCount`, `totalRowCount`, `selectedCount`, `allSelected`, `filterCount`, `summary`,
24
+ `clearFilters`). Its component loads on demand; a grid without the feature grows by 0.1 kB gzip.
25
+ New exported types `StatusBarOptions`, `StatusBarScope`, `StatusBarSummary`, `StatusBarAggregate`.
26
+
27
+ Docs: the bundle sizes in the READMEs are measured again (a plain grid is 14.0 kB gzip; the
28
+ numbers had last been taken at 0.3.0).
29
+
3
30
  ## 0.4.3 — 2026-11-24
4
31
 
5
32
  **Server data: a failed request no longer leaves the old rows looking current.** When a
package/README.md CHANGED
@@ -130,7 +130,8 @@ an opt-in feature:
130
130
  | `rowPinningFeature` | `v-model:pinned-rows` / `pinRow()`: rows that stay in view above or below the body, plus `pinned-top-rows` / `pinned-bottom-rows` for rows that aren't in the data |
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
- | `exportFeature` | `exportCsv()` / `getCsv()` / `copyRows()`, Ctrl/⌘+C for the selected rows or the focused cell, the `copy` event; column `exportValue` / `exportable` |
133
+ | `exportFeature` | `exportCsv()` / `getCsv()`, `exportXlsx()` / `getXlsx()` (Excel, typed cells), `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.2 kB |
167
- | `theme.css` | The default look on top of `base.css`: `--vg-*` tokens, colours, dark mode, densities, spacing, borders, typography, shadows, animation | 3.3 kB |
168
- | `core.css` | `base.css` + `theme.css` | 5.1 kB |
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 | 6.6 kB |
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) | 39.0 kB / 13.6 kB |
178
- | `VGrid` + `sortingFeature` | 39.8 kB / 13.9 kB |
179
- | `VGrid` + `filteringFeature` | 49.7 kB / 17.4 kB |
180
- | `VGrid` + `serverDataFeature` | 40.4 kB / 14.2 kB |
181
- | `VGrid` + `paginationFeature` | 39.2 kB / 13.7 kB |
182
- | `VGrid` + `selectionFeature` | 43.2 kB / 15.1 kB |
183
- | `VGrid` + `subGridsFeature` | 41.4 kB / 14.5 kB |
184
- | `VGrid` + `menusFeature` | 49.6 kB / 17.2 kB |
185
- | `VGrid` + `columnReorderFeature` | 42.7 kB / 14.9 kB |
186
- | `VGrid` + `columnPinningFeature` | 41.2 kB / 14.5 kB |
187
- | `VGrid` + `virtualScrollingFeature` | 44.8 kB / 15.8 kB |
188
- | `VGrid` + `columnVisibilityFeature` | 39.2 kB / 13.7 kB |
189
- | `VGrid` + `keyboardNavigationFeature` | 41.5 kB / 14.5 kB |
190
- | `VGrid` + `columnResizingFeature` | 41.8 kB / 14.7 kB |
191
- | `VGrid` + `columnGroupsFeature` | 40.3 kB / 14.1 kB |
192
- | `VGrid` + `rowPinningFeature` | 44.0 kB / 15.0 kB |
193
- | `VGrid` + `aggregationFeature` | 44.2 kB / 15.1 kB |
194
- | `VGrid` + `rowGroupingFeature` | 48.6 kB / 16.4 kB |
195
- | `VGrid` + `exportFeature` | 42.8 kB / 15.1 kB |
196
- | `VGrid` + `allFeatures` + `VGridSearch` | 102.8 kB / 34.7 kB |
197
- | `VGrid` + `currencyRenderer` | 40.4 kB / 14.1 kB |
198
- | `VGrid` + `VGridPagination` + `VGridColumnMenu` | 45.8 kB / 15.9 kB |
178
+ | `VGrid` (no features) | 40.4 kB / 14.1 kB |
179
+ | `VGrid` + `sortingFeature` | 41.2 kB / 14.3 kB |
180
+ | `VGrid` + `filteringFeature` | 51.0 kB / 17.8 kB |
181
+ | `VGrid` + `serverDataFeature` | 41.8 kB / 14.6 kB |
182
+ | `VGrid` + `paginationFeature` | 40.6 kB / 14.1 kB |
183
+ | `VGrid` + `selectionFeature` | 44.6 kB / 15.5 kB |
184
+ | `VGrid` + `subGridsFeature` | 42.8 kB / 14.9 kB |
185
+ | `VGrid` + `menusFeature` | 50.9 kB / 17.6 kB |
186
+ | `VGrid` + `columnReorderFeature` | 44.1 kB / 15.3 kB |
187
+ | `VGrid` + `columnPinningFeature` | 43.4 kB / 15.1 kB |
188
+ | `VGrid` + `virtualScrollingFeature` | 46.2 kB / 16.2 kB |
189
+ | `VGrid` + `columnVisibilityFeature` | 40.6 kB / 14.1 kB |
190
+ | `VGrid` + `keyboardNavigationFeature` | 43.2 kB / 15.1 kB |
191
+ | `VGrid` + `columnResizingFeature` | 43.7 kB / 15.2 kB |
192
+ | `VGrid` + `columnGroupsFeature` | 41.7 kB / 14.5 kB |
193
+ | `VGrid` + `rowPinningFeature` | 45.4 kB / 15.4 kB |
194
+ | `VGrid` + `aggregationFeature` | 45.6 kB / 15.5 kB |
195
+ | `VGrid` + `rowGroupingFeature` | 50.2 kB / 16.9 kB |
196
+ | `VGrid` + `exportFeature` | 45.0 kB / 15.8 kB |
197
+ | `VGrid` + `statusBarFeature` | 42.8 kB / 15.0 kB |
198
+ | `VGrid` + `allFeatures` + `VGridSearch` | 107.7 kB / 36.3 kB |
199
+ | `VGrid` + `currencyRenderer` | 41.8 kB / 14.5 kB |
200
+ | `VGrid` + `VGridPagination` + `VGridColumnMenu` | 47.2 kB / 16.3 kB |
199
201
  | `sortRows` only | 0.7 kB / 0.4 kB |
200
202
  | `toCsv` only | 1.1 kB / 0.6 kB |
201
- | everything | 147.4 kB / 47.2 kB |
202
- | `validateGridConfig` (`@nocopypaste/vue-grid/agent`, never in an app bundle) | 63.7 kB / 17.1 kB |
203
+ | everything | 160.4 kB / 51.3 kB |
204
+ | `validateGridConfig` (`@nocopypaste/vue-grid/agent`, never in an app bundle) | 70.2 kB / 19.1 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
@@ -861,7 +863,7 @@ same grouping elsewhere.
861
863
 
862
864
  ## Export and copy
863
865
 
864
- `exportFeature` turns the grid's rows into CSV and copies them to the clipboard.
866
+ `exportFeature` turns the grid's rows into CSV or an Excel workbook and copies them to the clipboard.
865
867
 
866
868
  ```vue
867
869
  <script setup lang="ts">
@@ -920,6 +922,57 @@ Without the grid: `toCsv(rows, columns, { delimiter, header, guard })` writes CS
920
922
  and column definitions (raw values, `exportValue`, `exportable`); `toDelimited(table)`,
921
923
  `plainText(value)` and `guardFormula(text)` are its parts.
922
924
 
925
+ ### Excel (.xlsx)
926
+
927
+ **`exportXlsx(options)`** downloads an Excel workbook (`filename`, default `export.xlsx`) and
928
+ **`getXlsx(options)`** resolves to it as a `Blob`; both take the options above (but `delimiter` and
929
+ `guard`) plus `sheetName`.
930
+
931
+ ```ts
932
+ await grid.value?.exportXlsx({ filename: 'orders.xlsx', sheetName: 'Orders', totals: true })
933
+ ```
934
+
935
+ - **Typed cells**: numbers stay numbers, booleans booleans, and dates are Excel dates, so the sheet
936
+ can sum, sort and filter them. Number formats follow the renderer: `currency` (and `change` with
937
+ `currency`) → `#,##0.00`, a percent `number` → `0.00%`, `date` → `yyyy-mm-dd`, `datetime` →
938
+ `yyyy-mm-dd hh:mm`, in the grid's `time-zone` (date-only values stay that day).
939
+ - A bold header frozen at the top, the totals as a bold last line, column widths from the content.
940
+ - Text is written as text, never as a formula. `values: 'formatted'` writes the cells as shown.
941
+ - The writer (2.9 kB gzip) loads the first time you export; it has no dependencies.
942
+
943
+ Without the grid: `toXlsx(rows, columns, { sheetName, header, timeZone, formats })` returns the
944
+ file's bytes (`Uint8Array`); `formats` overrides the guess per column key (`'money'`, `'percent'`,
945
+ `'date'`, `'datetime'`, `'number'`, `'auto'`).
946
+
947
+ ## Status bar
948
+
949
+ `statusBarFeature` adds a bar under the grid, like a spreadsheet's:
950
+
951
+ ```vue
952
+ <VGrid
953
+ v-model:selected="selected"
954
+ :rows="orders"
955
+ :columns="columns"
956
+ row-key="id"
957
+ selectable
958
+ :status-bar="{ summary: ['total'] }"
959
+ :features="[statusBarFeature, selectionFeature, filteringFeature]"
960
+ />
961
+ <!-- 84 of 200 rows · 3 selected · 1 filter Clear Total: Sum €917.03 Average €305.68 -->
962
+ ```
963
+
964
+ - **Counts**: the top-level rows that pass the filters, on every page (`84 of 200 rows`, or the
965
+ server's `total` with a data source), the selected rows, and the active filters with a **Clear**
966
+ button.
967
+ - **Summary**: `summary` lists column keys; while rows are selected, the bar shows each column's
968
+ sum and average over them (`aggregates: ['sum', 'avg', 'min', 'max']` picks), formatted
969
+ like the column's cells. Selected child rows count too. With "select all N matching rows" on
970
+ (server data) the summary hides: only the loaded page is known.
971
+ - **Your own content**: the `#status-bar` slot gets `{ rowCount, totalRowCount, selectedCount,
972
+ allSelected, filterCount, summary, clearFilters }` and replaces the default content.
973
+ - The bar is a `group` labelled "Grid status"; style it with `.vg-status-bar`. Its component loads
974
+ on demand (own chunk).
975
+
923
976
  ## Virtual scrolling
924
977
 
925
978
  ```vue
package/agent/api.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "package": "@nocopypaste/vue-grid",
3
- "version": "0.4.3",
3
+ "version": "0.6.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'",
@@ -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,
@@ -562,6 +574,18 @@
562
574
  "required": true,
563
575
  "description": "Downloads the rows as a CSV file (`filename`, default `export.csv`; UTF-8 with a BOM). Export feature."
564
576
  },
577
+ {
578
+ "name": "getXlsx",
579
+ "type": "Promise<Blob>",
580
+ "required": true,
581
+ "description": "The rows as an Excel workbook (.xlsx): typed cells (numbers, dates, booleans), number formats from the columns' renderers, a bold frozen header. The writer loads on demand. Export feature."
582
+ },
583
+ {
584
+ "name": "exportXlsx",
585
+ "type": "Promise<void>",
586
+ "required": true,
587
+ "description": "Downloads the rows as an Excel file (`filename`, default `export.xlsx`). Export feature."
588
+ },
565
589
  {
566
590
  "name": "copyRows",
567
591
  "type": "Promise<boolean>",
@@ -876,7 +900,7 @@
876
900
  {
877
901
  "id": "export",
878
902
  "export": "exportFeature",
879
- "description": "CSV export and copying: `grid.exportCsv()` downloads the filtered, sorted rows as a CSV file, `grid.getCsv()` returns the text, `grid.copyRows()` copies rows as tab-separated text, and Ctrl/⌘+C copies the selected rows, else the focused cell, as displayed. Columns can set `exportValue` and `exportable: false`. Without it those methods only warn.",
903
+ "description": "CSV and Excel export and copying: `grid.exportCsv()` downloads the filtered, sorted rows as a CSV file, `grid.getCsv()` returns the text, `grid.exportXlsx()` / `grid.getXlsx()` write an Excel workbook with typed cells (the writer loads on demand), `grid.copyRows()` copies rows as tab-separated text, and Ctrl/⌘+C copies the selected rows, else the focused cell, as displayed. Columns can set `exportValue` and `exportable: false`. Without it those methods only warn.",
880
904
  "props": [],
881
905
  "columnOptions": [
882
906
  "exportValue",
@@ -989,6 +1013,15 @@
989
1013
  "sortFn"
990
1014
  ]
991
1015
  },
1016
+ {
1017
+ "id": "statusBar",
1018
+ "export": "statusBarFeature",
1019
+ "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).",
1020
+ "props": [
1021
+ "statusBar"
1022
+ ],
1023
+ "columnOptions": []
1024
+ },
992
1025
  {
993
1026
  "id": "subGrids",
994
1027
  "export": "subGridsFeature",
package/agent/api.md CHANGED
@@ -1,4 +1,4 @@
1
- # @nocopypaste/vue-grid 0.4.3 — API reference
1
+ # @nocopypaste/vue-grid 0.6.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
 
@@ -14,7 +14,7 @@ Opt-in: pass them as `:features="[…]"` on `<VGrid>` or once via `createVueGrid
14
14
  | `columnReorderFeature` | Column reordering: drag a header (mouse, pen, touch), Alt+←/→ on a focused header, and the header menu's Move left / Move right. Columns opt out with `reorderable: false`. The order is part of `v-model:column-state` and persisted with `storage`; `<VGridColumnMenu>` works without it. | | `reorderable` |
15
15
  | `columnResizingFeature` | Column resizing: drag a header's edge (mouse, pen, touch), use ←/→ on the focused edge (Alt+Shift+←/→ on a header with keyboard navigation), or double-click the edge to fit the content. `minWidth` / `maxWidth` bound it; columns opt out with `resizable: false`. Widths are kept in `columnState.widths` and persisted with `storage`. The header menu gains Fit width / Reset width. | | `maxWidth` `resizable` |
16
16
  | `columnVisibilityFeature` | Column visibility: `hidden: true` columns, `columnState.hidden` (persisted with `storage`), the header menu's Hide column item and `<VGridColumnMenu>`'s checkboxes. Columns opt out with `hideable: false`. Without it, every column shows. | | `hidden` `hideable` |
17
- | `exportFeature` | CSV export and copying: `grid.exportCsv()` downloads the filtered, sorted rows as a CSV file, `grid.getCsv()` returns the text, `grid.copyRows()` copies rows as tab-separated text, and Ctrl/⌘+C copies the selected rows, else the focused cell, as displayed. Columns can set `exportValue` and `exportable: false`. Without it those methods only warn. | | `exportValue` `exportable` |
17
+ | `exportFeature` | CSV and Excel export and copying: `grid.exportCsv()` downloads the filtered, sorted rows as a CSV file, `grid.getCsv()` returns the text, `grid.exportXlsx()` / `grid.getXlsx()` write an Excel workbook with typed cells (the writer loads on demand), `grid.copyRows()` copies rows as tab-separated text, and Ctrl/⌘+C copies the selected rows, else the focused cell, as displayed. Columns can set `exportValue` and `exportable: false`. Without it those methods only warn. | | `exportValue` `exportable` |
18
18
  | `filteringFeature` | Filtering: header funnels with typed filter popovers on `filterable` columns, the filter row, `<VGridSearch>`, the filter items of the header menu, `v-model:filters` and filter persistence. The popover body and the filter-row editors load on demand (own chunks). | `filterMode` `filterRow` `filterStorage` `noMatchText` `filters` | `filterable` `filter` `filterValue` `filterFn` `filterComponent` `searchable` |
19
19
  | `keyboardNavigationFeature` | Keyboard navigation (the ARIA grid pattern): the grid is one tab stop, arrow keys / Home / End / PageUp / PageDown move between cells, Enter activates a cell's control, Space selects a row, →/← expand and collapse, Alt+←/→ move a column, ContextMenu / Shift+F10 open the cell menu. Without it the grid is an ARIA `table`: its own controls (sort buttons, expanders, checkboxes, filter buttons) sit in the normal Tab order instead. | | |
20
20
  | `menusFeature` | Context menus: the built-in header menu (sort, filter, pin, move, hide, reset, your own items via `header-menu`) and body-cell menus (`context-menu`), opened by right-click, the ContextMenu key or Shift+F10. Without it the browser's own menu shows. The standalone `<VGridMenu>` and the `actions-menu` renderer don't need it. | `contextMenu` `headerMenu` | |
@@ -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. |
@@ -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. |
@@ -137,6 +140,8 @@ Opt-in: pass them as `:features="[…]"` on `<VGrid>` or once via `createVueGrid
137
140
  | `clearSelection` | `void` | | Clears the selection, "all matching rows" included. Selection feature. |
138
141
  | `getCsv` | `string` | | The rows as CSV text: the filtered, sorted rows, visible columns, raw values. Export feature. |
139
142
  | `exportCsv` | `void` | | Downloads the rows as a CSV file (`filename`, default `export.csv`; UTF-8 with a BOM). Export feature. |
143
+ | `getXlsx` | `Promise<Blob>` | | The rows as an Excel workbook (.xlsx): typed cells (numbers, dates, booleans), number formats from the columns' renderers, a bold frozen header. The writer loads on demand. Export feature. |
144
+ | `exportXlsx` | `Promise<void>` | | Downloads the rows as an Excel file (`filename`, default `export.xlsx`). Export feature. |
140
145
  | `copyRows` | `Promise<boolean>` | | Copies rows to the clipboard as tab-separated text (pastes as cells into spreadsheets): the selected rows by default, as displayed, no header. Resolves `false` if nothing was copied. Export feature. |
141
146
 
142
147
  ## `ColumnDef<T>`
@@ -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.4.3", t = "VGrid", n = [
2
+ var e = "0.6.0", t = "VGrid", n = [
3
3
  {
4
4
  name: "rows",
5
5
  type: "readonly T[]",
@@ -40,6 +40,13 @@ var e = "0.4.3", 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'",
@@ -444,6 +451,11 @@ var e = "0.4.3", 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,
@@ -555,6 +567,18 @@ var e = "0.4.3", t = "VGrid", n = [
555
567
  required: !0,
556
568
  description: "Downloads the rows as a CSV file (`filename`, default `export.csv`; UTF-8 with a BOM). Export feature."
557
569
  },
570
+ {
571
+ name: "getXlsx",
572
+ type: "Promise<Blob>",
573
+ required: !0,
574
+ description: "The rows as an Excel workbook (.xlsx): typed cells (numbers, dates, booleans), number formats from the columns' renderers, a bold frozen header. The writer loads on demand. Export feature."
575
+ },
576
+ {
577
+ name: "exportXlsx",
578
+ type: "Promise<void>",
579
+ required: !0,
580
+ description: "Downloads the rows as an Excel file (`filename`, default `export.xlsx`). Export feature."
581
+ },
558
582
  {
559
583
  name: "copyRows",
560
584
  type: "Promise<boolean>",
@@ -850,7 +874,7 @@ var e = "0.4.3", t = "VGrid", n = [
850
874
  {
851
875
  id: "export",
852
876
  export: "exportFeature",
853
- description: "CSV export and copying: `grid.exportCsv()` downloads the filtered, sorted rows as a CSV file, `grid.getCsv()` returns the text, `grid.copyRows()` copies rows as tab-separated text, and Ctrl/⌘+C copies the selected rows, else the focused cell, as displayed. Columns can set `exportValue` and `exportable: false`. Without it those methods only warn.",
877
+ description: "CSV and Excel export and copying: `grid.exportCsv()` downloads the filtered, sorted rows as a CSV file, `grid.getCsv()` returns the text, `grid.exportXlsx()` / `grid.getXlsx()` write an Excel workbook with typed cells (the writer loads on demand), `grid.copyRows()` copies rows as tab-separated text, and Ctrl/⌘+C copies the selected rows, else the focused cell, as displayed. Columns can set `exportValue` and `exportable: false`. Without it those methods only warn.",
854
878
  props: [],
855
879
  columnOptions: ["exportValue", "exportable"]
856
880
  },
@@ -949,6 +973,13 @@ var e = "0.4.3", t = "VGrid", n = [
949
973
  "sortFn"
950
974
  ]
951
975
  },
976
+ {
977
+ id: "statusBar",
978
+ export: "statusBarFeature",
979
+ 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).",
980
+ props: ["statusBar"],
981
+ columnOptions: []
982
+ },
952
983
  {
953
984
  id: "subGrids",
954
985
  export: "subGridsFeature",
@@ -29,7 +29,8 @@ var e = {
29
29
  totalsLabel: "aggregation",
30
30
  aggregates: "aggregation",
31
31
  groupBy: "rowGrouping",
32
- groupsExpanded: "rowGrouping"
32
+ groupsExpanded: "rowGrouping",
33
+ statusBar: "statusBar"
33
34
  }, t = {
34
35
  sortable: "sorting",
35
36
  sortValue: "sorting",
@@ -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":";AA0BA,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;AAClB,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\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,.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-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}}