@nocopypaste/vue-grid 0.10.0 → 0.11.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 +33 -29
- package/CHANGELOG.md +13 -0
- package/README.md +24 -0
- package/agent/api.json +1 -1
- package/agent/api.md +1 -1
- package/dist/agent/api.js +1 -1
- package/dist/components/VGridSortMarker.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/components/VGridSortMarker.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VGridStatusBar.vue_vue_type_script_setup_true_lang.js +2 -2
- package/dist/components/VGridStatusBar.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/locales/de.js +133 -0
- package/dist/locales/de.js.map +1 -0
- package/dist/locales/en.js +133 -0
- package/dist/locales/en.js.map +1 -0
- package/dist/locales/es.js +151 -0
- package/dist/locales/es.js.map +1 -0
- package/dist/locales/fr.js +151 -0
- package/dist/locales/fr.js.map +1 -0
- package/dist/locales/plural.js +11 -0
- package/dist/locales/plural.js.map +1 -0
- package/dist/locales/sr-Latn.js +135 -0
- package/dist/locales/sr-Latn.js.map +1 -0
- package/dist/locales/sr.js +135 -0
- package/dist/locales/sr.js.map +1 -0
- package/dist/types/locales/de.d.ts +124 -0
- package/dist/types/locales/en.d.ts +127 -0
- package/dist/types/locales/es.d.ts +124 -0
- package/dist/types/locales/fr.d.ts +124 -0
- package/dist/types/locales/plural.d.ts +11 -0
- package/dist/types/locales/sr-Latn.d.ts +124 -0
- package/dist/types/locales/sr.d.ts +124 -0
- package/dist/types/types.d.ts +13 -7
- package/llms-full.txt +58 -30
- package/llms.txt +1 -1
- package/package.json +5 -1
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
/** Српски (ћирилица). `messages: sr` (per grid) or `createVueGrid({ messages: sr })`; Latin script: `srLatn`. */
|
|
2
|
+
export declare const sr: {
|
|
3
|
+
loading: string;
|
|
4
|
+
empty: string;
|
|
5
|
+
noMatch: string;
|
|
6
|
+
clearFilters: string;
|
|
7
|
+
loadError: string;
|
|
8
|
+
staleRows: string;
|
|
9
|
+
retry: string;
|
|
10
|
+
subRowsError: string;
|
|
11
|
+
total: string;
|
|
12
|
+
blank: string;
|
|
13
|
+
groupRowCount: (count: number) => string;
|
|
14
|
+
selectAllRows: string;
|
|
15
|
+
selectRow: string;
|
|
16
|
+
selectGroup: string;
|
|
17
|
+
pageSelected: (count: number) => string;
|
|
18
|
+
selectAllMatching: (total: number) => string;
|
|
19
|
+
allSelected: (total: number) => string;
|
|
20
|
+
clearSelection: string;
|
|
21
|
+
expandRow: string;
|
|
22
|
+
collapseRow: string;
|
|
23
|
+
expandGroup: string;
|
|
24
|
+
collapseGroup: string;
|
|
25
|
+
columnMenu: (column: string) => string;
|
|
26
|
+
rowActions: string;
|
|
27
|
+
sortAscending: string;
|
|
28
|
+
sortDescending: string;
|
|
29
|
+
clearSort: string;
|
|
30
|
+
thenSortAscending: string;
|
|
31
|
+
thenSortDescending: string;
|
|
32
|
+
sortPosition: (position: number, dir: "asc" | "desc", count: number) => string;
|
|
33
|
+
filterMenu: string;
|
|
34
|
+
clearFilter: string;
|
|
35
|
+
clearAllFilters: string;
|
|
36
|
+
groupBy: (column: string) => string;
|
|
37
|
+
ungroup: string;
|
|
38
|
+
ungroupAll: string;
|
|
39
|
+
pinLeft: string;
|
|
40
|
+
pinRight: string;
|
|
41
|
+
unpin: string;
|
|
42
|
+
moveLeft: string;
|
|
43
|
+
moveRight: string;
|
|
44
|
+
fitWidth: string;
|
|
45
|
+
resetWidth: string;
|
|
46
|
+
hideColumn: string;
|
|
47
|
+
resetColumns: string;
|
|
48
|
+
resizeColumn: (column: string) => string;
|
|
49
|
+
columns: string;
|
|
50
|
+
filterColumns: string;
|
|
51
|
+
noMatchingColumns: string;
|
|
52
|
+
menu: string;
|
|
53
|
+
filterColumn: (column: string) => string;
|
|
54
|
+
filterColumnActive: (column: string) => string;
|
|
55
|
+
filterPlaceholder: string;
|
|
56
|
+
filterSummary: (column: string, summary: string) => string;
|
|
57
|
+
customFilter: string;
|
|
58
|
+
valuesSelected: (count: number) => string;
|
|
59
|
+
filterCondition: (column: string) => string;
|
|
60
|
+
filterValue: string;
|
|
61
|
+
filterFrom: (column: string) => string;
|
|
62
|
+
filterTo: (column: string) => string;
|
|
63
|
+
opContains: string;
|
|
64
|
+
opNotContains: string;
|
|
65
|
+
opEquals: string;
|
|
66
|
+
opNotEquals: string;
|
|
67
|
+
opStartsWith: string;
|
|
68
|
+
opEndsWith: string;
|
|
69
|
+
opEmpty: string;
|
|
70
|
+
opNotEmpty: string;
|
|
71
|
+
opBetween: string;
|
|
72
|
+
opOn: string;
|
|
73
|
+
opBefore: string;
|
|
74
|
+
opAfter: string;
|
|
75
|
+
any: string;
|
|
76
|
+
yes: string;
|
|
77
|
+
no: string;
|
|
78
|
+
emptyValue: string;
|
|
79
|
+
blanks: string;
|
|
80
|
+
searchValues: string;
|
|
81
|
+
all: string;
|
|
82
|
+
allShown: string;
|
|
83
|
+
moreValues: (count: number) => string;
|
|
84
|
+
noMatchingValues: string;
|
|
85
|
+
searchPlaceholder: string;
|
|
86
|
+
searchLabel: string;
|
|
87
|
+
pagination: string;
|
|
88
|
+
rowsPerPage: string;
|
|
89
|
+
pageSize: (size: number) => string;
|
|
90
|
+
pageSummary: (from: string, to: string, total: string) => string;
|
|
91
|
+
firstPage: string;
|
|
92
|
+
previousPage: string;
|
|
93
|
+
nextPage: string;
|
|
94
|
+
lastPage: string;
|
|
95
|
+
page: (page: number) => string;
|
|
96
|
+
statusBar: string;
|
|
97
|
+
rowCount: (shown: string, total: string | undefined, count: number, totalCount: number | undefined) => string;
|
|
98
|
+
selectedCount: (count: string, all: boolean) => string;
|
|
99
|
+
filterCount: (count: number) => string;
|
|
100
|
+
clear: string;
|
|
101
|
+
sum: string;
|
|
102
|
+
average: string;
|
|
103
|
+
min: string;
|
|
104
|
+
max: string;
|
|
105
|
+
editCell: (column: string) => string;
|
|
106
|
+
editNotANumber: string;
|
|
107
|
+
editOutOfRange: (min: number | undefined, max: number | undefined) => string;
|
|
108
|
+
editSaveFailed: string;
|
|
109
|
+
editSaving: string;
|
|
110
|
+
view: string;
|
|
111
|
+
close: string;
|
|
112
|
+
copy: string;
|
|
113
|
+
copied: string;
|
|
114
|
+
actions: string;
|
|
115
|
+
details: string;
|
|
116
|
+
moreInfo: string;
|
|
117
|
+
moreItems: (count: number) => string;
|
|
118
|
+
showLess: string;
|
|
119
|
+
increased: string;
|
|
120
|
+
decreased: string;
|
|
121
|
+
toggle: string;
|
|
122
|
+
edit: string;
|
|
123
|
+
};
|
|
124
|
+
export default sr;
|
package/dist/types/types.d.ts
CHANGED
|
@@ -757,9 +757,9 @@ export interface GridMessages {
|
|
|
757
757
|
thenSortDescending?: string;
|
|
758
758
|
/**
|
|
759
759
|
* Multi-column sort, for screen readers on a sorted header. Default
|
|
760
|
-
* `` `, sorted ${position} of ${count}, ascending` `` (`count`: how many keys).
|
|
760
|
+
* `` `, sorted ${position} of ${count}, ascending` `` (`count`: how many keys; the third argument).
|
|
761
761
|
*/
|
|
762
|
-
sortPosition?: (position: number, dir: 'asc' | 'desc') => string;
|
|
762
|
+
sortPosition?: (position: number, dir: 'asc' | 'desc', count: number) => string;
|
|
763
763
|
/** The header menu item that opens the column's filter. Default `Filter…`. */
|
|
764
764
|
filterMenu?: string;
|
|
765
765
|
/** Default `Clear filter`. */
|
|
@@ -874,7 +874,7 @@ export interface GridMessages {
|
|
|
874
874
|
rowsPerPage?: string;
|
|
875
875
|
/** A page size option. Default `` `${size} / page` `` */
|
|
876
876
|
pageSize?: (size: number) => string;
|
|
877
|
-
/** Default `` `${from}–${to} of ${total}` `` (numbers
|
|
877
|
+
/** Default `` `${from}–${to} of ${total}` `` (the numbers as text). */
|
|
878
878
|
pageSummary?: (from: string, to: string, total: string) => string;
|
|
879
879
|
/** Default `First page`. */
|
|
880
880
|
firstPage?: string;
|
|
@@ -888,10 +888,16 @@ export interface GridMessages {
|
|
|
888
888
|
page?: (page: number) => string;
|
|
889
889
|
/** The status bar's name for screen readers. Default `Grid status`. */
|
|
890
890
|
statusBar?: string;
|
|
891
|
-
/**
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
891
|
+
/**
|
|
892
|
+
* Default `` `${shown} of ${total} rows` `` while filtered, else `` `${shown} rows` `` (`1 row`).
|
|
893
|
+
* `shown` and `total` are formatted; `count` and `totalCount` are the numbers, for plurals.
|
|
894
|
+
*/
|
|
895
|
+
rowCount?: (shown: string, total: string | undefined, count: number, totalCount: number | undefined) => string;
|
|
896
|
+
/**
|
|
897
|
+
* Default `` `${count} selected` `` (`All ${count} selected` with all matching rows). `count` is
|
|
898
|
+
* formatted; `amount` is the number, for plurals.
|
|
899
|
+
*/
|
|
900
|
+
selectedCount?: (count: string, all: boolean, amount: number) => string;
|
|
895
901
|
/** Default `` `${count} filters` `` (`1 filter`). */
|
|
896
902
|
filterCount?: (count: number) => string;
|
|
897
903
|
/** The status bar's button. Default `Clear`. */
|
package/llms-full.txt
CHANGED
|
@@ -49,34 +49,34 @@ runs in the [live examples](https://eboye.github.io/eboye-vue-grid/), each with
|
|
|
49
49
|
|
|
50
50
|
## Which feature for what
|
|
51
51
|
|
|
52
|
-
| The user wants… | Feature(s) | Props / column options
|
|
53
|
-
| ------------------------------------------------- | --------------------------------------------------------------------- |
|
|
54
|
-
| Click a header to sort | `sortingFeature` | column `sortable: true`; `sort-mode="client"` (or handle `v-model:sort`)
|
|
55
|
-
| Sort by several columns ("city, then stake") | `sortingFeature` | `multi-sort`, `v-model:sorts="[{ key, dir }, …]"`; Shift-click adds a column; server: `query.sorts`
|
|
56
|
-
| Filters per column, a filter row, quick search | `filteringFeature` | column `filterable: true` (`filter: 'text' \| 'number' \| 'date' \| 'boolean' \| 'set'`); `filter-row`; `<VGridSearch />` in `#toolbar`
|
|
57
|
-
| Pages | `paginationFeature` | `pagination` (or `{ pageSizes: [10, 25, 50] }`), `v-model:page`, `v-model:page-size`
|
|
58
|
-
| Backend sorting / filtering / paging | `serverDataFeature` (+ the above) | `:data-source="(query, { signal }) => Promise<{ rows, total }>"`
|
|
59
|
-
| Checkboxes / row selection, batch actions | `selectionFeature` | `selectable` (or `'single'`), `v-model:selected`, `is-row-selectable`, `prune-selection`; `#toolbar="{ selected, selectedCount, clearSelection }"`; server data: `v-model:select-all-matching`
|
|
60
|
-
| Nested child rows aligned to the parent's columns | `subGridsFeature` | `:sub-rows="(row) => row.children"` or `:load-sub-rows` + `:has-sub-rows`
|
|
61
|
-
| An expandable panel under a row | — | `#detail="{ row }"` slot (`row-expandable` to limit it)
|
|
62
|
-
| 10,000+ rows | `virtualScrollingFeature` | `:virtual="{ rowHeight: 40 }"` + bounded height
|
|
63
|
-
| Right-click menus (cells, headers) | `menusFeature` | `:context-menu="(ctx) => MenuItem[]"` + `@context-action`; header menu is on by default
|
|
64
|
-
| Freeze columns left / right | `columnPinningFeature` | column `pinned: 'left' \| 'right'`; on narrow grids they scroll unless `pinned-max-share` allows (default half the width)
|
|
65
|
-
| Show / hide columns | `columnVisibilityFeature` | column `hidden: true`; `<VGridColumnMenu>` in `#toolbar`
|
|
66
|
-
| Drag columns to reorder | `columnReorderFeature` | column `reorderable: false` to lock one
|
|
67
|
-
| Drag column edges to resize | `columnResizingFeature` | `minWidth` / `maxWidth`, `resizable: false`
|
|
68
|
-
| Grouped headers ("Q1" over three columns) | `columnGroupsFeature` | column `group: 'Q1'`
|
|
69
|
-
| Rows that stay on top / bottom | `rowPinningFeature` | `v-model:pinned-rows="{ top: [id], bottom: [] }"`, `pinRow()`, `pinned-top-rows`
|
|
70
|
-
| A totals row (sum, avg, …) | `aggregationFeature` | column `aggregate: 'sum' \| 'avg' \| 'min' \| 'max' \| 'count' \| fn`; `totals` (or `'top'`)
|
|
71
|
-
| Group server data across all rows (not the page) | `serverGroupingFeature` (+ `rowGroupingFeature`, `serverDataFeature`) | return `{ groups: [{ value, count, aggregates }], total }` for `query.groupBy` / `query.groupPath`, `{ rows }` at the last level; `v-model:selected-groups`
|
|
72
|
-
| 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
|
|
73
|
-
| Download CSV / Excel, print, copy rows / cells | `exportFeature` | `grid.exportCsv()`, `getCsv()`, `exportXlsx()`, `getXlsx()`, `print()`, `copyRows()`, `@copy`; column `exportValue`, `exportable: false`
|
|
74
|
-
| Row / selection counts, sum of the selected rows | `statusBarFeature` | `status-bar` (or `{ summary: ['total'], aggregates?: ['sum', 'avg'] }`); `#status-bar="{ rowCount, selectedCount, summary, … }"`
|
|
75
|
-
| Edit cells in place (spreadsheet-like) | `editingFeature` (+ `keyboardNavigationFeature` for typing / Enter) | column `editable: true \| (row) => boolean`, `editor`, `editorOptions`, `validate`; `@cell-edit` (store `value`: `setCellValue(e.row, e.column, e.value)`), `:save-cell` (async, rejection = error)
|
|
76
|
-
| Translate / reword the grid, drop built-in pieces | — | `messages` (`GridMessages`), `parts` (`GridParts`): app-wide in `createVueGrid` or per grid; slots `#load-error`, `#no-match`, `#select-all-banner`
|
|
77
|
-
| Arrow-key navigation (ARIA grid) | `keyboardNavigationFeature` | —
|
|
78
|
-
| Remember column layout | — | `storage="orders-grid"` (localStorage key)
|
|
79
|
-
| Cell type (money, date, badge, link, …) | — | `renderer: currencyRenderer` etc. (list below)
|
|
52
|
+
| The user wants… | Feature(s) | Props / column options |
|
|
53
|
+
| ------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
54
|
+
| Click a header to sort | `sortingFeature` | column `sortable: true`; `sort-mode="client"` (or handle `v-model:sort`) |
|
|
55
|
+
| Sort by several columns ("city, then stake") | `sortingFeature` | `multi-sort`, `v-model:sorts="[{ key, dir }, …]"`; Shift-click adds a column; server: `query.sorts` |
|
|
56
|
+
| Filters per column, a filter row, quick search | `filteringFeature` | column `filterable: true` (`filter: 'text' \| 'number' \| 'date' \| 'boolean' \| 'set'`); `filter-row`; `<VGridSearch />` in `#toolbar` |
|
|
57
|
+
| Pages | `paginationFeature` | `pagination` (or `{ pageSizes: [10, 25, 50] }`), `v-model:page`, `v-model:page-size` |
|
|
58
|
+
| Backend sorting / filtering / paging | `serverDataFeature` (+ the above) | `:data-source="(query, { signal }) => Promise<{ rows, total }>"` |
|
|
59
|
+
| Checkboxes / row selection, batch actions | `selectionFeature` | `selectable` (or `'single'`), `v-model:selected`, `is-row-selectable`, `prune-selection`; `#toolbar="{ selected, selectedCount, clearSelection }"`; server data: `v-model:select-all-matching` |
|
|
60
|
+
| Nested child rows aligned to the parent's columns | `subGridsFeature` | `:sub-rows="(row) => row.children"` or `:load-sub-rows` + `:has-sub-rows` |
|
|
61
|
+
| An expandable panel under a row | — | `#detail="{ row }"` slot (`row-expandable` to limit it) |
|
|
62
|
+
| 10,000+ rows | `virtualScrollingFeature` | `:virtual="{ rowHeight: 40 }"` + bounded height |
|
|
63
|
+
| Right-click menus (cells, headers) | `menusFeature` | `:context-menu="(ctx) => MenuItem[]"` + `@context-action`; header menu is on by default |
|
|
64
|
+
| Freeze columns left / right | `columnPinningFeature` | column `pinned: 'left' \| 'right'`; on narrow grids they scroll unless `pinned-max-share` allows (default half the width) |
|
|
65
|
+
| Show / hide columns | `columnVisibilityFeature` | column `hidden: true`; `<VGridColumnMenu>` in `#toolbar` |
|
|
66
|
+
| Drag columns to reorder | `columnReorderFeature` | column `reorderable: false` to lock one |
|
|
67
|
+
| Drag column edges to resize | `columnResizingFeature` | `minWidth` / `maxWidth`, `resizable: false` |
|
|
68
|
+
| Grouped headers ("Q1" over three columns) | `columnGroupsFeature` | column `group: 'Q1'` |
|
|
69
|
+
| Rows that stay on top / bottom | `rowPinningFeature` | `v-model:pinned-rows="{ top: [id], bottom: [] }"`, `pinRow()`, `pinned-top-rows` |
|
|
70
|
+
| A totals row (sum, avg, …) | `aggregationFeature` | column `aggregate: 'sum' \| 'avg' \| 'min' \| 'max' \| 'count' \| fn`; `totals` (or `'top'`) |
|
|
71
|
+
| Group server data across all rows (not the page) | `serverGroupingFeature` (+ `rowGroupingFeature`, `serverDataFeature`) | return `{ groups: [{ value, count, aggregates }], total }` for `query.groupBy` / `query.groupPath`, `{ rows }` at the last level; `v-model:selected-groups` |
|
|
72
|
+
| 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 |
|
|
73
|
+
| Download CSV / Excel, print, copy rows / cells | `exportFeature` | `grid.exportCsv()`, `getCsv()`, `exportXlsx()`, `getXlsx()`, `print()`, `copyRows()`, `@copy`; column `exportValue`, `exportable: false` |
|
|
74
|
+
| Row / selection counts, sum of the selected rows | `statusBarFeature` | `status-bar` (or `{ summary: ['total'], aggregates?: ['sum', 'avg'] }`); `#status-bar="{ rowCount, selectedCount, summary, … }"` |
|
|
75
|
+
| Edit cells in place (spreadsheet-like) | `editingFeature` (+ `keyboardNavigationFeature` for typing / Enter) | column `editable: true \| (row) => boolean`, `editor`, `editorOptions`, `validate`; `@cell-edit` (store `value`: `setCellValue(e.row, e.column, e.value)`), `:save-cell` (async, rejection = error) |
|
|
76
|
+
| Translate / reword the grid, drop built-in pieces | — | a language pack (`import { de } from '@nocopypaste/vue-grid/locales/de'`; also `fr`, `es`, `sr`, `sr-Latn`) or your own `messages` (`GridMessages`), `parts` (`GridParts`): app-wide in `createVueGrid` or per grid; slots `#load-error`, `#no-match`, `#select-all-banner` |
|
|
77
|
+
| Arrow-key navigation (ARIA grid) | `keyboardNavigationFeature` | — |
|
|
78
|
+
| Remember column layout | — | `storage="orders-grid"` (localStorage key) |
|
|
79
|
+
| Cell type (money, date, badge, link, …) | — | `renderer: currencyRenderer` etc. (list below) |
|
|
80
80
|
|
|
81
81
|
## Renderers (pick by data)
|
|
82
82
|
|
|
@@ -553,7 +553,11 @@ only sees stylesheet rules. Density:
|
|
|
553
553
|
(or select rows first); `exportFeature` must be registered too.
|
|
554
554
|
- An exported column of `⋯` / buttons / `[object Object]` → `exportable: false`, or `exportValue: (row) => …`.
|
|
555
555
|
- Printing the page (Ctrl+P) shows only the rows on screen, clipped to the grid → use `grid.print()`.
|
|
556
|
-
- Translating by replacing components or CSS `content` → set `messages` (every built-in text has a
|
|
556
|
+
- Translating by replacing components or CSS `content` → set `messages` (every built-in text has a
|
|
557
|
+
key); for German, French, Spanish or Serbian import the ready-made pack
|
|
558
|
+
(`@nocopypaste/vue-grid/locales/de` …) instead of writing it.
|
|
559
|
+
- Text translated but money / dates still formatted in English → a pack only translates text; set
|
|
560
|
+
`locale` too (`createVueGrid({ messages: de, locale: 'de' })`).
|
|
557
561
|
- Hiding a built-in piece with CSS → `parts: { filterButtons: false, … }` leaves it out of the DOM (and the tab order).
|
|
558
562
|
- Grouped server data shows groups of one page only → add `serverGroupingFeature` and answer `query.groupBy` with `{ groups }` (`count` per group, `total` = number of groups).
|
|
559
563
|
- A batch action on a selected server group touched only loaded rows → act on `selectedGroups` (paths) with the filters on the server.
|
|
@@ -567,7 +571,7 @@ only sees stylesheet rules. Density:
|
|
|
567
571
|
|
|
568
572
|
---
|
|
569
573
|
|
|
570
|
-
# @nocopypaste/vue-grid 0.
|
|
574
|
+
# @nocopypaste/vue-grid 0.11.0 — API reference
|
|
571
575
|
|
|
572
576
|
> Generated from the TypeScript sources (`scripts/gen-agent.mjs`). Machine-readable: `agent/api.json`, `agent/grid-config.schema.json`.
|
|
573
577
|
|
|
@@ -2651,6 +2655,30 @@ A grid's own `:messages` win over the app's, and props that name a text (`empty-
|
|
|
2651
2655
|
`<VGridPagination>`, `<VGridSearch>`, `<VGridColumnMenu>` and `<VGridMenu>` use the app's messages on
|
|
2652
2656
|
their own too. Every key, with its English default, is in the API reference (`GridMessages`).
|
|
2653
2657
|
|
|
2658
|
+
**Language packs.** Ready-made, complete translations, each its own import (so only the ones you
|
|
2659
|
+
import are bundled, about 2 kB gzipped each):
|
|
2660
|
+
|
|
2661
|
+
| Import | Export | Language |
|
|
2662
|
+
| --------------------------------------- | -------- | ---------------------------------------------------- |
|
|
2663
|
+
| `@nocopypaste/vue-grid/locales/de` | `de` | German |
|
|
2664
|
+
| `@nocopypaste/vue-grid/locales/fr` | `fr` | French |
|
|
2665
|
+
| `@nocopypaste/vue-grid/locales/es` | `es` | Spanish |
|
|
2666
|
+
| `@nocopypaste/vue-grid/locales/sr` | `sr` | Serbian, Cyrillic |
|
|
2667
|
+
| `@nocopypaste/vue-grid/locales/sr-Latn` | `srLatn` | Serbian, Latin |
|
|
2668
|
+
| `@nocopypaste/vue-grid/locales/en` | `en` | English (the built-in text, a template for your own) |
|
|
2669
|
+
|
|
2670
|
+
```ts
|
|
2671
|
+
import { de } from '@nocopypaste/vue-grid/locales/de'
|
|
2672
|
+
|
|
2673
|
+
app.use(createVueGrid({ messages: de })) // or per grid: <VGrid :messages="de" />
|
|
2674
|
+
// change a few texts on top: { ...de, total: 'Gesamt' }
|
|
2675
|
+
```
|
|
2676
|
+
|
|
2677
|
+
Counts follow the language's plural rules (`1 red`, `2 reda`, `5 redova`). A pack only translates
|
|
2678
|
+
text: money, numbers and dates follow `locale` (`<VGrid locale="de">` or `createVueGrid({ locale })`).
|
|
2679
|
+
Text that takes a count gets the number too (`rowCount(shown, total, count, totalCount)`,
|
|
2680
|
+
`selectedCount(count, all, amount)`, `sortPosition(position, dir, count)`), for your own plurals.
|
|
2681
|
+
|
|
2654
2682
|
**Parts.** `GridParts` turns off what a feature adds, each on by default; app-wide in
|
|
2655
2683
|
`createVueGrid({ parts })`, per grid with `:parts`:
|
|
2656
2684
|
|
package/llms.txt
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @nocopypaste/vue-grid
|
|
2
2
|
|
|
3
|
-
> A Vue 3 data grid laid out with CSS Grid and `subgrid`. A plain grid is a read-only table (15.3 kB gzip); sorting, filtering, server data, pagination, selection, sub-grids, menus, column pinning / reordering / resizing / visibility / groups, pinned rows, totals, row grouping (also on the server), inline cell editing, CSV and Excel export, printing, copying, a status bar, virtual scrolling and keyboard navigation are opt-in features, and 29 cell renderers are opt-in imports. Every built-in text is translatable (`messages`) and every piece a feature adds can be turned off (`parts`). Typed end to end, accessible, themeable with CSS variables, mobile and touch ready.
|
|
3
|
+
> A Vue 3 data grid laid out with CSS Grid and `subgrid`. A plain grid is a read-only table (15.3 kB gzip); sorting, filtering, server data, pagination, selection, sub-grids, menus, column pinning / reordering / resizing / visibility / groups, pinned rows, totals, row grouping (also on the server), inline cell editing, CSV and Excel export, printing, copying, a status bar, virtual scrolling and keyboard navigation are opt-in features, and 29 cell renderers are opt-in imports. Every built-in text is translatable (`messages`), with ready-made language packs (`@nocopypaste/vue-grid/locales/de`, `fr`, `es`, `sr`, `sr-Latn`), with ready-made language packs (`@nocopypaste/vue-grid/locales/de`, `fr`, `es`, `sr`, `sr-Latn`) and every piece a feature adds can be turned off (`parts`). Typed end to end, accessible, themeable with CSS variables, mobile and touch ready.
|
|
4
4
|
|
|
5
5
|
Read AGENTS.md first: it lists the rules that cause silent bugs when skipped (register features, pass renderer definitions, `sort-mode="client"`, bounded height), a "which feature for what" table and copy-paste recipes. Validate a grid config with `validateGridConfig()` from `@nocopypaste/vue-grid/agent`.
|
|
6
6
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nocopypaste/vue-grid",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.11.0",
|
|
4
4
|
"description": "CSS-Grid based data grid for Vue 3 with opt-in features, pluggable cell renderers, sub-grids and CSS-variable theming — documented for coding agents (AGENTS.md, llms.txt, JSON Schema, validator).",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -43,6 +43,10 @@
|
|
|
43
43
|
"types": "./dist/types/agent/index.d.ts",
|
|
44
44
|
"import": "./dist/agent/index.js"
|
|
45
45
|
},
|
|
46
|
+
"./locales/*": {
|
|
47
|
+
"types": "./dist/types/locales/*.d.ts",
|
|
48
|
+
"import": "./dist/locales/*.js"
|
|
49
|
+
},
|
|
46
50
|
"./agent/api.json": "./agent/api.json",
|
|
47
51
|
"./agent/grid-config.schema.json": "./agent/grid-config.schema.json",
|
|
48
52
|
"./AGENTS.md": "./AGENTS.md",
|