@nocopypaste/vue-grid 0.6.0 → 0.7.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 +7 -1
- package/CHANGELOG.md +24 -0
- package/README.md +143 -67
- package/agent/api.json +51 -9
- package/agent/api.md +14 -6
- package/agent/grid-config.schema.json +9 -11
- package/dist/agent/api.js +51 -9
- package/dist/components/VGrid.vue_vue_type_script_setup_true_lang.js +545 -520
- package/dist/components/VGrid.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VGridCell.vue_vue_type_script_setup_true_lang.js +4 -3
- package/dist/components/VGridCell.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VGridColumnMenu.vue_vue_type_script_setup_true_lang.js +58 -53
- package/dist/components/VGridColumnMenu.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VGridFilterInput.vue_vue_type_script_setup_true_lang.js +50 -49
- package/dist/components/VGridFilterInput.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VGridFilterPanel.vue_vue_type_script_setup_true_lang.js +151 -146
- package/dist/components/VGridFilterPanel.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VGridFilterPopover.vue_vue_type_script_setup_true_lang.js +44 -43
- package/dist/components/VGridFilterPopover.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VGridGroupCells.vue_vue_type_script_setup_true_lang.js +10 -8
- package/dist/components/VGridGroupCells.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VGridHeader.vue_vue_type_script_setup_true_lang.js +62 -57
- package/dist/components/VGridHeader.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VGridMenu.vue_vue_type_script_setup_true_lang.js +59 -58
- package/dist/components/VGridMenu.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VGridPagination.vue_vue_type_script_setup_true_lang.js +62 -55
- package/dist/components/VGridPagination.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VGridResizeHandle.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/components/VGridResizeHandle.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VGridRows.vue_vue_type_script_setup_true_lang.js +60 -59
- package/dist/components/VGridRows.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VGridSearch.vue_vue_type_script_setup_true_lang.js +27 -26
- package/dist/components/VGridSearch.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VGridSelectionBanner.vue_vue_type_script_setup_true_lang.js +12 -11
- package/dist/components/VGridSelectionBanner.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VGridStatusBar.vue_vue_type_script_setup_true_lang.js +37 -30
- package/dist/components/VGridStatusBar.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/composables/useGridExport.js +21 -6
- package/dist/composables/useGridExport.js.map +1 -1
- package/dist/composables/useGridMenus.js +41 -41
- package/dist/composables/useGridMenus.js.map +1 -1
- package/dist/composables/useStatusBar.js +9 -0
- package/dist/composables/useStatusBar.js.map +1 -1
- package/dist/features/export.js.map +1 -1
- package/dist/internal/context.js.map +1 -1
- package/dist/internal/messages.js +20 -0
- package/dist/internal/messages.js.map +1 -0
- package/dist/internal/print.js +51 -0
- package/dist/internal/print.js.map +1 -0
- package/dist/renderers/ActionsMenuCell.vue_vue_type_script_setup_true_lang.js +31 -30
- package/dist/renderers/ActionsMenuCell.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/renderers/ChangeCell.vue_vue_type_script_setup_true_lang.js +28 -27
- package/dist/renderers/ChangeCell.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/renderers/CopyCell.vue_vue_type_script_setup_true_lang.js +22 -21
- package/dist/renderers/CopyCell.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/renderers/DetailsCell.vue_vue_type_script_setup_true_lang.js +37 -36
- package/dist/renderers/DetailsCell.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/renderers/EditCell.vue_vue_type_script_setup_true_lang.js +16 -15
- package/dist/renderers/EditCell.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/renderers/IconToggleCell.vue_vue_type_script_setup_true_lang.js +19 -18
- package/dist/renderers/IconToggleCell.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/renderers/JsonCell.vue_vue_type_script_setup_true_lang.js +21 -20
- package/dist/renderers/JsonCell.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/renderers/JsonTreeCell.vue_vue_type_script_setup_true_lang.js +21 -20
- package/dist/renderers/JsonTreeCell.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/renderers/ListCell.vue_vue_type_script_setup_true_lang.js +18 -17
- package/dist/renderers/ListCell.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/renderers/MultiLineCell.vue_vue_type_script_setup_true_lang.js +35 -34
- package/dist/renderers/MultiLineCell.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/renderers/parts/CopyButton.vue_vue_type_script_setup_true_lang.js +19 -18
- package/dist/renderers/parts/CopyButton.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/types/components/VGrid.vue.d.ts +34 -7
- package/dist/types/components/VGridColumnMenu.vue.d.ts +4 -5
- package/dist/types/components/VGridMenu.vue.d.ts +1 -1
- package/dist/types/components/VGridPagination.vue.d.ts +8 -3
- package/dist/types/components/VGridSearch.vue.d.ts +2 -2
- package/dist/types/composables/useGridExport.d.ts +2 -1
- package/dist/types/composables/useGridMenus.d.ts +3 -1
- package/dist/types/composables/useStatusBar.d.ts +7 -0
- package/dist/types/features/export.d.ts +2 -1
- package/dist/types/internal/context.d.ts +5 -1
- package/dist/types/internal/messages.d.ts +16 -0
- package/dist/types/internal/print.d.ts +16 -0
- package/dist/types/renderers/parts/CopyButton.vue.d.ts +1 -3
- package/dist/types/types.d.ts +300 -0
- package/llms-full.txt +164 -74
- package/llms.txt +1 -1
- package/package.json +1 -1
package/agent/api.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @nocopypaste/vue-grid 0.
|
|
1
|
+
# @nocopypaste/vue-grid 0.7.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 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` |
|
|
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.print()` prints every matching row as a table with the header on each page, `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` | |
|
|
@@ -37,13 +37,15 @@ Opt-in: pass them as `:features="[…]"` on `<VGrid>` or once via `createVueGrid
|
|
|
37
37
|
| `rowKey` (required) | `RowKeyGetter<T>` | | | Stable unique id of a row: a property name or `(row) => string \| number`. All row state is keyed by it. |
|
|
38
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. |
|
|
39
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. |
|
|
40
|
-
| `pagination` | `boolean \|
|
|
40
|
+
| `pagination` | `boolean \| PaginationOptions` | `false` | `paginationFeature` | Built-in pagination under the grid (server-side with `dataSource`, client-side otherwise). |
|
|
41
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. |
|
|
42
|
+
| `messages` | `GridMessages` | | | Built-in text (translations, wording), over `createVueGrid({ messages })`. |
|
|
43
|
+
| `parts` | `GridParts` | | | Built-in parts to leave out (`{ progressBar: false }`), over `createVueGrid({ parts })`. |
|
|
42
44
|
| `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`. |
|
|
43
45
|
| `filterMode` | `'client' \| 'controlled'` | `'client'` | `filteringFeature` | `client` (default): the grid filters its rows. `controlled`: it only emits `update:filters`. |
|
|
44
46
|
| `filterRow` | `boolean` | `false` | `filteringFeature` | Show the filter row: an input under each filterable column's header. |
|
|
45
47
|
| `filterStorage` | `FilterStateStorage \| string` | | `filteringFeature` | Persist the filter model (`string` = localStorage key). |
|
|
46
|
-
| `noMatchText` | `string` |
|
|
48
|
+
| `noMatchText` | `string` | | `filteringFeature` | Shown when filters hide every row. Default: `messages.noMatch`, else `No rows match the current filters.` |
|
|
47
49
|
| `selectable` | `boolean \| 'single'` | `false` | `selectionFeature` | A selection column: `true` = multi-select (with select-all), `'single'` = one row. |
|
|
48
50
|
| `selectionMode` | `'cascade' \| 'independent'` | `'cascade'` | `selectionFeature` | `cascade` (default): selecting a parent selects its children. `independent`: rows alone. |
|
|
49
51
|
| `isRowSelectable` | `(row: T) => boolean` | | `selectionFeature` | Rows that can't be selected get a disabled checkbox. |
|
|
@@ -65,7 +67,7 @@ Opt-in: pass them as `:features="[…]"` on `<VGrid>` or once via `createVueGrid
|
|
|
65
67
|
| `timeZone` | `string` | | | IANA time zone for date renderers and date filters. |
|
|
66
68
|
| `density` | `Density` | | | Cell padding scale. |
|
|
67
69
|
| `loading` | `boolean` | `false` | | Shows a progress bar and sets `aria-busy` (server data sets it by itself). |
|
|
68
|
-
| `emptyText` | `string` |
|
|
70
|
+
| `emptyText` | `string` | | | Shown when there are no rows. Default: `messages.empty`, else `No data to show.` |
|
|
69
71
|
| `ariaLabel` | `string` | | | Accessible name of the grid. |
|
|
70
72
|
| `ui` | `Partial<Record<GridPart, ClassValue>>` | | | Extra classes per part (`root`, `header`, `headerCell`, `row`, `cell`, `subgrid`, `detail`, `empty`), e.g. Tailwind utilities. |
|
|
71
73
|
| `contextMenu` | `(ctx: CellContext<T>) => MenuItem[] \| null \| undefined` | | `menusFeature` | Right-click menu items for a body cell. Return `null`/`[]` to keep the browser's menu. |
|
|
@@ -73,7 +75,7 @@ Opt-in: pass them as `:features="[…]"` on `<VGrid>` or once via `createVueGrid
|
|
|
73
75
|
| `pinnedTopRows` | `readonly T[]` | | `rowPinningFeature` | Extra rows above the body, not part of the data (row pinning feature). |
|
|
74
76
|
| `pinnedBottomRows` | `readonly T[]` | | `rowPinningFeature` | Extra rows below the body, not part of the data (row pinning feature). |
|
|
75
77
|
| `totals` | `boolean \| 'top' \| 'bottom'` | `false` | `aggregationFeature` | A totals row with each column's `aggregate` (aggregation feature): `true` / `'bottom'` sticks it to the bottom, `'top'` under the header. |
|
|
76
|
-
| `totalsLabel` | `string` |
|
|
78
|
+
| `totalsLabel` | `string` | | `aggregationFeature` | The totals row's label, in its first column (unless that column has an aggregate). Default: `messages.total`, else `Total`. |
|
|
77
79
|
| `aggregates` | `Record<string, unknown>` | | `aggregationFeature` | Totals row values by column key, instead of computing them (e.g. totals from a server). |
|
|
78
80
|
| `groupsExpanded` | `boolean` | `false` | `rowGroupingFeature` | Groups start expanded (row grouping feature). Default: collapsed. |
|
|
79
81
|
|
|
@@ -116,6 +118,9 @@ Opt-in: pass them as `:features="[…]"` on `<VGrid>` or once via `createVueGrid
|
|
|
116
118
|
| `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>`. |
|
|
117
119
|
| `detail` | `{ row: T; rowKey: RowKey; depth: number }` | Expandable detail row under a row: any content, even another grid. |
|
|
118
120
|
| `empty` | | Shown when there are no rows. |
|
|
121
|
+
| `no-match` | `{ clearFilters: () => void; filterCount: number }` | Shown when filters hide every row, instead of the message and its Clear filters button. |
|
|
122
|
+
| `load-error` | `{ error: unknown; retry: () => Promise<void>; stale: boolean }` | A failed server request (server data): `stale` when the rows from before stay on screen (the notice above them), else in place of the rows. `retry()` asks again. |
|
|
123
|
+
| `select-all-banner` | `{ total: number; page: number; all: boolean; selectAll: () => void; clearSelection: () => void }` | Selection with server data: the "Select all N rows" banner. |
|
|
119
124
|
| `status-bar` | `StatusBarScope` | The status bar's content (status bar feature): replaces the counts and the summary. |
|
|
120
125
|
| `loading` | | Shown while loading with no rows yet. |
|
|
121
126
|
| `sub-rows-loading` | `{ row: T }` | Shown while a row's lazy children load. |
|
|
@@ -142,6 +147,7 @@ Opt-in: pass them as `:features="[…]"` on `<VGrid>` or once via `createVueGrid
|
|
|
142
147
|
| `exportCsv` | `void` | | Downloads the rows as a CSV file (`filename`, default `export.csv`; UTF-8 with a BOM). Export feature. |
|
|
143
148
|
| `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
149
|
| `exportXlsx` | `Promise<void>` | | Downloads the rows as an Excel file (`filename`, default `export.xlsx`). Export feature. |
|
|
150
|
+
| `print` | `Promise<void>` | | Prints the rows as a table (the browser's print dialog): the filtered, sorted rows on every page (not just those in view), as the cells show them, the header repeated on each printed page, numbers right-aligned, the totals in bold. Resolves when printing is over. Export feature. |
|
|
145
151
|
| `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. |
|
|
146
152
|
|
|
147
153
|
## `ColumnDef<T>`
|
|
@@ -651,4 +657,6 @@ The first items of a list, with a “+N more” toggle. Emits `expand`. Align: `
|
|
|
651
657
|
| `currency`? | `string` | Default ISO 4217 currency for currency renderers. |
|
|
652
658
|
| `timeZone`? | `string` | Default IANA time zone for date renderers and date filters. |
|
|
653
659
|
| `density`? | `Density` | Default density: `compact`, `cozy` (default) or `comfortable`. |
|
|
660
|
+
| `messages`? | `GridMessages` | Built-in text for every grid (translations, wording); a grid's own `messages` win. |
|
|
661
|
+
| `parts`? | `GridParts` | Built-in parts to turn off in every grid; a grid's own `parts` win. |
|
|
654
662
|
|
|
@@ -52,19 +52,17 @@
|
|
|
52
52
|
"description": "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."
|
|
53
53
|
},
|
|
54
54
|
"pagination": {
|
|
55
|
-
"anyOf": [
|
|
56
|
-
{
|
|
57
|
-
"type": "boolean"
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
"type": "object"
|
|
61
|
-
}
|
|
62
|
-
],
|
|
63
55
|
"description": "Built-in pagination under the grid (server-side with `dataSource`, client-side otherwise)."
|
|
64
56
|
},
|
|
65
57
|
"statusBar": {
|
|
66
58
|
"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
59
|
},
|
|
60
|
+
"messages": {
|
|
61
|
+
"description": "Built-in text (translations, wording), over `createVueGrid({ messages })`."
|
|
62
|
+
},
|
|
63
|
+
"parts": {
|
|
64
|
+
"description": "Built-in parts to leave out (`{ progressBar: false }`), over `createVueGrid({ parts })`."
|
|
65
|
+
},
|
|
68
66
|
"sortMode": {
|
|
69
67
|
"enum": [
|
|
70
68
|
"controlled",
|
|
@@ -88,7 +86,7 @@
|
|
|
88
86
|
},
|
|
89
87
|
"noMatchText": {
|
|
90
88
|
"type": "string",
|
|
91
|
-
"description": "Shown when filters hide every row."
|
|
89
|
+
"description": "Shown when filters hide every row. Default: `messages.noMatch`, else `No rows match the current filters.`"
|
|
92
90
|
},
|
|
93
91
|
"selectable": {
|
|
94
92
|
"anyOf": [
|
|
@@ -231,7 +229,7 @@
|
|
|
231
229
|
},
|
|
232
230
|
"emptyText": {
|
|
233
231
|
"type": "string",
|
|
234
|
-
"description": "Shown when there are no rows."
|
|
232
|
+
"description": "Shown when there are no rows. Default: `messages.empty`, else `No data to show.`"
|
|
235
233
|
},
|
|
236
234
|
"ariaLabel": {
|
|
237
235
|
"type": "string",
|
|
@@ -273,7 +271,7 @@
|
|
|
273
271
|
},
|
|
274
272
|
"totalsLabel": {
|
|
275
273
|
"type": "string",
|
|
276
|
-
"description": "The totals row's label, in its first column (unless that column has an aggregate)."
|
|
274
|
+
"description": "The totals row's label, in its first column (unless that column has an aggregate). Default: `messages.total`, else `Total`."
|
|
277
275
|
},
|
|
278
276
|
"aggregates": {
|
|
279
277
|
"type": "object",
|
package/dist/agent/api.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// src/agent/api.json
|
|
2
|
-
var e = "0.
|
|
2
|
+
var e = "0.7.0", t = "VGrid", n = [
|
|
3
3
|
{
|
|
4
4
|
name: "rows",
|
|
5
5
|
type: "readonly T[]",
|
|
@@ -34,7 +34,7 @@ var e = "0.6.0", t = "VGrid", n = [
|
|
|
34
34
|
},
|
|
35
35
|
{
|
|
36
36
|
name: "pagination",
|
|
37
|
-
type: "boolean |
|
|
37
|
+
type: "boolean | PaginationOptions",
|
|
38
38
|
required: !1,
|
|
39
39
|
default: "false",
|
|
40
40
|
description: "Built-in pagination under the grid (server-side with `dataSource`, client-side otherwise).",
|
|
@@ -47,6 +47,18 @@ var e = "0.6.0", t = "VGrid", n = [
|
|
|
47
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
48
|
feature: "statusBar"
|
|
49
49
|
},
|
|
50
|
+
{
|
|
51
|
+
name: "messages",
|
|
52
|
+
type: "GridMessages",
|
|
53
|
+
required: !1,
|
|
54
|
+
description: "Built-in text (translations, wording), over `createVueGrid({ messages })`."
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
name: "parts",
|
|
58
|
+
type: "GridParts",
|
|
59
|
+
required: !1,
|
|
60
|
+
description: "Built-in parts to leave out (`{ progressBar: false }`), over `createVueGrid({ parts })`."
|
|
61
|
+
},
|
|
50
62
|
{
|
|
51
63
|
name: "sortMode",
|
|
52
64
|
type: "'controlled' | 'client'",
|
|
@@ -81,8 +93,7 @@ var e = "0.6.0", t = "VGrid", n = [
|
|
|
81
93
|
name: "noMatchText",
|
|
82
94
|
type: "string",
|
|
83
95
|
required: !1,
|
|
84
|
-
|
|
85
|
-
description: "Shown when filters hide every row.",
|
|
96
|
+
description: "Shown when filters hide every row. Default: `messages.noMatch`, else `No rows match the current filters.`",
|
|
86
97
|
feature: "filtering"
|
|
87
98
|
},
|
|
88
99
|
{
|
|
@@ -231,8 +242,7 @@ var e = "0.6.0", t = "VGrid", n = [
|
|
|
231
242
|
name: "emptyText",
|
|
232
243
|
type: "string",
|
|
233
244
|
required: !1,
|
|
234
|
-
|
|
235
|
-
description: "Shown when there are no rows."
|
|
245
|
+
description: "Shown when there are no rows. Default: `messages.empty`, else `No data to show.`"
|
|
236
246
|
},
|
|
237
247
|
{
|
|
238
248
|
name: "ariaLabel",
|
|
@@ -287,8 +297,7 @@ var e = "0.6.0", t = "VGrid", n = [
|
|
|
287
297
|
name: "totalsLabel",
|
|
288
298
|
type: "string",
|
|
289
299
|
required: !1,
|
|
290
|
-
|
|
291
|
-
description: "The totals row's label, in its first column (unless that column has an aggregate).",
|
|
300
|
+
description: "The totals row's label, in its first column (unless that column has an aggregate). Default: `messages.total`, else `Total`.",
|
|
292
301
|
feature: "aggregation"
|
|
293
302
|
},
|
|
294
303
|
{
|
|
@@ -451,6 +460,21 @@ var e = "0.6.0", t = "VGrid", n = [
|
|
|
451
460
|
scope: null,
|
|
452
461
|
description: "Shown when there are no rows."
|
|
453
462
|
},
|
|
463
|
+
{
|
|
464
|
+
name: "no-match",
|
|
465
|
+
scope: "{ clearFilters: () => void; filterCount: number }",
|
|
466
|
+
description: "Shown when filters hide every row, instead of the message and its Clear filters button."
|
|
467
|
+
},
|
|
468
|
+
{
|
|
469
|
+
name: "load-error",
|
|
470
|
+
scope: "{ error: unknown; retry: () => Promise<void>; stale: boolean }",
|
|
471
|
+
description: "A failed server request (server data): `stale` when the rows from before stay on screen (the notice above them), else in place of the rows. `retry()` asks again."
|
|
472
|
+
},
|
|
473
|
+
{
|
|
474
|
+
name: "select-all-banner",
|
|
475
|
+
scope: "{ total: number; page: number; all: boolean; selectAll: () => void; clearSelection: () => void }",
|
|
476
|
+
description: "Selection with server data: the \"Select all N rows\" banner."
|
|
477
|
+
},
|
|
454
478
|
{
|
|
455
479
|
name: "status-bar",
|
|
456
480
|
scope: "StatusBarScope",
|
|
@@ -579,6 +603,12 @@ var e = "0.6.0", t = "VGrid", n = [
|
|
|
579
603
|
required: !0,
|
|
580
604
|
description: "Downloads the rows as an Excel file (`filename`, default `export.xlsx`). Export feature."
|
|
581
605
|
},
|
|
606
|
+
{
|
|
607
|
+
name: "print",
|
|
608
|
+
type: "Promise<void>",
|
|
609
|
+
required: !0,
|
|
610
|
+
description: "Prints the rows as a table (the browser's print dialog): the filtered, sorted rows on every page (not just those in view), as the cells show them, the header repeated on each printed page, numbers right-aligned, the totals in bold. Resolves when printing is over. Export feature."
|
|
611
|
+
},
|
|
582
612
|
{
|
|
583
613
|
name: "copyRows",
|
|
584
614
|
type: "Promise<boolean>",
|
|
@@ -874,7 +904,7 @@ var e = "0.6.0", t = "VGrid", n = [
|
|
|
874
904
|
{
|
|
875
905
|
id: "export",
|
|
876
906
|
export: "exportFeature",
|
|
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.",
|
|
907
|
+
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.print()` prints every matching row as a table with the header on each page, `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.",
|
|
878
908
|
props: [],
|
|
879
909
|
columnOptions: ["exportValue", "exportable"]
|
|
880
910
|
},
|
|
@@ -2427,6 +2457,18 @@ var e = "0.6.0", t = "VGrid", n = [
|
|
|
2427
2457
|
type: "Density",
|
|
2428
2458
|
required: !1,
|
|
2429
2459
|
description: "Default density: `compact`, `cozy` (default) or `comfortable`."
|
|
2460
|
+
},
|
|
2461
|
+
{
|
|
2462
|
+
name: "messages",
|
|
2463
|
+
type: "GridMessages",
|
|
2464
|
+
required: !1,
|
|
2465
|
+
description: "Built-in text for every grid (translations, wording); a grid's own `messages` win."
|
|
2466
|
+
},
|
|
2467
|
+
{
|
|
2468
|
+
name: "parts",
|
|
2469
|
+
type: "GridParts",
|
|
2470
|
+
required: !1,
|
|
2471
|
+
description: "Built-in parts to turn off in every grid; a grid's own `parts` win."
|
|
2430
2472
|
}
|
|
2431
2473
|
]
|
|
2432
2474
|
}, d = {
|