@universal-material/data-grid 0.0.0-stage → 0.1.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/LICENSE +21 -0
- package/README.md +155 -2
- package/custom-elements.json +4624 -0
- package/dist/attribute-converters.d.ts +53 -0
- package/dist/attribute-converters.js +98 -0
- package/dist/attribute-converters.js.map +1 -0
- package/dist/change-source.d.ts +3 -0
- package/dist/change-source.js +2 -0
- package/dist/change-source.js.map +1 -0
- package/dist/data/data-source.d.ts +164 -0
- package/dist/data/data-source.js +75 -0
- package/dist/data/data-source.js.map +1 -0
- package/dist/data/local-source.d.ts +20 -0
- package/dist/data/local-source.js +94 -0
- package/dist/data/local-source.js.map +1 -0
- package/dist/data/remote-loader.d.ts +190 -0
- package/dist/data/remote-loader.js +608 -0
- package/dist/data/remote-loader.js.map +1 -0
- package/dist/export/csv.d.ts +28 -0
- package/dist/export/csv.js +61 -0
- package/dist/export/csv.js.map +1 -0
- package/dist/export/download.d.ts +7 -0
- package/dist/export/download.js +17 -0
- package/dist/export/download.js.map +1 -0
- package/dist/export/rows.d.ts +75 -0
- package/dist/export/rows.js +134 -0
- package/dist/export/rows.js.map +1 -0
- package/dist/export/slice.d.ts +15 -0
- package/dist/export/slice.js +35 -0
- package/dist/export/slice.js.map +1 -0
- package/dist/export/types.d.ts +155 -0
- package/dist/export/types.js +2 -0
- package/dist/export/types.js.map +1 -0
- package/dist/export/write.d.ts +38 -0
- package/dist/export/write.js +178 -0
- package/dist/export/write.js.map +1 -0
- package/dist/export-pdf/client.d.ts +75 -0
- package/dist/export-pdf/client.js +155 -0
- package/dist/export-pdf/client.js.map +1 -0
- package/dist/export-pdf/engine.d.ts +73 -0
- package/dist/export-pdf/engine.js +131 -0
- package/dist/export-pdf/engine.js.map +1 -0
- package/dist/export-pdf/grid-pdf.wasm +0 -0
- package/dist/export-pdf/index.d.ts +27 -0
- package/dist/export-pdf/index.js +566 -0
- package/dist/export-pdf/index.js.map +1 -0
- package/dist/export-pdf/serialize.d.ts +23 -0
- package/dist/export-pdf/serialize.js +127 -0
- package/dist/export-pdf/serialize.js.map +1 -0
- package/dist/export-pdf/types.d.ts +150 -0
- package/dist/export-pdf/types.js +2 -0
- package/dist/export-pdf/types.js.map +1 -0
- package/dist/export-pdf/worker.d.ts +2 -0
- package/dist/export-pdf/worker.js +81 -0
- package/dist/export-pdf/worker.js.map +1 -0
- package/dist/export-xlsx/formats.d.ts +14 -0
- package/dist/export-xlsx/formats.js +40 -0
- package/dist/export-xlsx/formats.js.map +1 -0
- package/dist/export-xlsx/index.d.ts +74 -0
- package/dist/export-xlsx/index.js +137 -0
- package/dist/export-xlsx/index.js.map +1 -0
- package/dist/features/adaptive.d.ts +25 -0
- package/dist/features/adaptive.js +47 -0
- package/dist/features/adaptive.js.map +1 -0
- package/dist/features/cell-content-focus.d.ts +29 -0
- package/dist/features/cell-content-focus.js +95 -0
- package/dist/features/cell-content-focus.js.map +1 -0
- package/dist/features/cell-range.d.ts +97 -0
- package/dist/features/cell-range.js +75 -0
- package/dist/features/cell-range.js.map +1 -0
- package/dist/features/clipboard.d.ts +28 -0
- package/dist/features/clipboard.js +48 -0
- package/dist/features/clipboard.js.map +1 -0
- package/dist/features/column-chooser.d.ts +91 -0
- package/dist/features/column-chooser.js +450 -0
- package/dist/features/column-chooser.js.map +1 -0
- package/dist/features/column-dnd.d.ts +10 -0
- package/dist/features/column-dnd.js +126 -0
- package/dist/features/column-dnd.js.map +1 -0
- package/dist/features/context-menu.d.ts +122 -0
- package/dist/features/context-menu.js +153 -0
- package/dist/features/context-menu.js.map +1 -0
- package/dist/features/drag-helper.d.ts +39 -0
- package/dist/features/drag-helper.js +108 -0
- package/dist/features/drag-helper.js.map +1 -0
- package/dist/features/drop-position.d.ts +15 -0
- package/dist/features/drop-position.js +24 -0
- package/dist/features/drop-position.js.map +1 -0
- package/dist/features/editing.d.ts +111 -0
- package/dist/features/editing.js +244 -0
- package/dist/features/editing.js.map +1 -0
- package/dist/features/filter-row.d.ts +80 -0
- package/dist/features/filter-row.js +537 -0
- package/dist/features/filter-row.js.map +1 -0
- package/dist/features/filtering.d.ts +55 -0
- package/dist/features/filtering.js +209 -0
- package/dist/features/filtering.js.map +1 -0
- package/dist/features/group-dnd.d.ts +11 -0
- package/dist/features/group-dnd.js +119 -0
- package/dist/features/group-dnd.js.map +1 -0
- package/dist/features/header-filter.d.ts +96 -0
- package/dist/features/header-filter.js +579 -0
- package/dist/features/header-filter.js.map +1 -0
- package/dist/features/host-label.d.ts +36 -0
- package/dist/features/host-label.js +184 -0
- package/dist/features/host-label.js.map +1 -0
- package/dist/features/keyboard.d.ts +59 -0
- package/dist/features/keyboard.js +127 -0
- package/dist/features/keyboard.js.map +1 -0
- package/dist/features/menu.d.ts +113 -0
- package/dist/features/menu.js +491 -0
- package/dist/features/menu.js.map +1 -0
- package/dist/features/resize.d.ts +82 -0
- package/dist/features/resize.js +214 -0
- package/dist/features/resize.js.map +1 -0
- package/dist/features/search.d.ts +45 -0
- package/dist/features/search.js +123 -0
- package/dist/features/search.js.map +1 -0
- package/dist/features/selection.d.ts +37 -0
- package/dist/features/selection.js +103 -0
- package/dist/features/selection.js.map +1 -0
- package/dist/features/sorting.d.ts +39 -0
- package/dist/features/sorting.js +53 -0
- package/dist/features/sorting.js.map +1 -0
- package/dist/features/toolbar.d.ts +125 -0
- package/dist/features/toolbar.js +135 -0
- package/dist/features/toolbar.js.map +1 -0
- package/dist/features/tree.d.ts +53 -0
- package/dist/features/tree.js +94 -0
- package/dist/features/tree.js.map +1 -0
- package/dist/features/validation.d.ts +48 -0
- package/dist/features/validation.js +172 -0
- package/dist/features/validation.js.map +1 -0
- package/dist/grid-column-def.d.ts +509 -0
- package/dist/grid-column-def.js +32 -0
- package/dist/grid-column-def.js.map +1 -0
- package/dist/grid-column.d.ts +167 -0
- package/dist/grid-column.js +376 -0
- package/dist/grid-column.js.map +1 -0
- package/dist/grid-i18n.d.ts +469 -0
- package/dist/grid-i18n.js +3222 -0
- package/dist/grid-i18n.js.map +1 -0
- package/dist/grid.d.ts +1484 -0
- package/dist/grid.js +15579 -0
- package/dist/grid.js.map +1 -0
- package/dist/grid.min.js +3858 -0
- package/dist/grid.styles.d.ts +2 -0
- package/dist/grid.styles.js +2747 -0
- package/dist/grid.styles.js.map +1 -0
- package/dist/render/cell.d.ts +16 -0
- package/dist/render/cell.js +78 -0
- package/dist/render/cell.js.map +1 -0
- package/dist/render/column-window.d.ts +18 -0
- package/dist/render/column-window.js +50 -0
- package/dist/render/column-window.js.map +1 -0
- package/dist/render/content.d.ts +45 -0
- package/dist/render/content.js +140 -0
- package/dist/render/content.js.map +1 -0
- package/dist/render/editors.d.ts +28 -0
- package/dist/render/editors.js +41 -0
- package/dist/render/editors.js.map +1 -0
- package/dist/render/footer.d.ts +61 -0
- package/dist/render/footer.js +61 -0
- package/dist/render/footer.js.map +1 -0
- package/dist/render/group-row.d.ts +35 -0
- package/dist/render/group-row.js +59 -0
- package/dist/render/group-row.js.map +1 -0
- package/dist/render/header.d.ts +92 -0
- package/dist/render/header.js +103 -0
- package/dist/render/header.js.map +1 -0
- package/dist/render/keyed-rows.d.ts +25 -0
- package/dist/render/keyed-rows.js +98 -0
- package/dist/render/keyed-rows.js.map +1 -0
- package/dist/render/virtualizer.d.ts +110 -0
- package/dist/render/virtualizer.js +509 -0
- package/dist/render/virtualizer.js.map +1 -0
- package/dist/row-model/added-rows.d.ts +32 -0
- package/dist/row-model/added-rows.js +95 -0
- package/dist/row-model/added-rows.js.map +1 -0
- package/dist/row-model/cell-range.d.ts +71 -0
- package/dist/row-model/cell-range.js +187 -0
- package/dist/row-model/cell-range.js.map +1 -0
- package/dist/row-model/columns.d.ts +80 -0
- package/dist/row-model/columns.js +207 -0
- package/dist/row-model/columns.js.map +1 -0
- package/dist/row-model/compare.d.ts +40 -0
- package/dist/row-model/compare.js +590 -0
- package/dist/row-model/compare.js.map +1 -0
- package/dist/row-model/distinct.d.ts +39 -0
- package/dist/row-model/distinct.js +105 -0
- package/dist/row-model/distinct.js.map +1 -0
- package/dist/row-model/filter.d.ts +80 -0
- package/dist/row-model/filter.js +582 -0
- package/dist/row-model/filter.js.map +1 -0
- package/dist/row-model/flatten.d.ts +129 -0
- package/dist/row-model/flatten.js +511 -0
- package/dist/row-model/flatten.js.map +1 -0
- package/dist/row-model/fold.d.ts +25 -0
- package/dist/row-model/fold.js +104 -0
- package/dist/row-model/fold.js.map +1 -0
- package/dist/row-model/format.d.ts +58 -0
- package/dist/row-model/format.js +239 -0
- package/dist/row-model/format.js.map +1 -0
- package/dist/row-model/group.d.ts +30 -0
- package/dist/row-model/group.js +173 -0
- package/dist/row-model/group.js.map +1 -0
- package/dist/row-model/lru.d.ts +19 -0
- package/dist/row-model/lru.js +48 -0
- package/dist/row-model/lru.js.map +1 -0
- package/dist/row-model/sort.d.ts +30 -0
- package/dist/row-model/sort.js +107 -0
- package/dist/row-model/sort.js.map +1 -0
- package/dist/row-model/summary.d.ts +64 -0
- package/dist/row-model/summary.js +213 -0
- package/dist/row-model/summary.js.map +1 -0
- package/dist/row-model/tree.d.ts +116 -0
- package/dist/row-model/tree.js +478 -0
- package/dist/row-model/tree.js.map +1 -0
- package/dist/row-model/types.d.ts +109 -0
- package/dist/row-model/types.js +5 -0
- package/dist/row-model/types.js.map +1 -0
- package/dist/row-model/value.d.ts +20 -0
- package/dist/row-model/value.js +57 -0
- package/dist/row-model/value.js.map +1 -0
- package/dist/state/grid-state.d.ts +147 -0
- package/dist/state/grid-state.js +295 -0
- package/dist/state/grid-state.js.map +1 -0
- package/dist/state/storage.d.ts +33 -0
- package/dist/state/storage.js +62 -0
- package/dist/state/storage.js.map +1 -0
- package/dist/state/versioned.d.ts +18 -0
- package/dist/state/versioned.js +56 -0
- package/dist/state/versioned.js.map +1 -0
- package/package.json +141 -6
|
@@ -0,0 +1,469 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Set of user facing strings rendered by the grid. Column labels are provided
|
|
3
|
+
* by the consumer and are therefore not part of this contract.
|
|
4
|
+
*/
|
|
5
|
+
export interface GridI18n {
|
|
6
|
+
/** Empty-state message. */
|
|
7
|
+
noData: string;
|
|
8
|
+
/** Hint in the group panel while nothing is grouped (mentions the Ctrl+G keyboard alternative). */
|
|
9
|
+
dragToGroup: string;
|
|
10
|
+
/** Between the column label and the value in group rows (`": "`). */
|
|
11
|
+
groupLabelSeparator: string;
|
|
12
|
+
/** Ascending direction, used in `sortedAnnouncement` and in the group chip label. */
|
|
13
|
+
sortAscending: string;
|
|
14
|
+
/** Descending direction, used in `sortedAnnouncement` and in the group chip label. */
|
|
15
|
+
sortDescending: string;
|
|
16
|
+
/** Screen reader announcement after removing a column from the sorting. `{column}` = column label. */
|
|
17
|
+
sortClearedAnnouncement: string;
|
|
18
|
+
/** Screen reader announcement after sorting. `{column}` = column label, `{order}` = direction. */
|
|
19
|
+
sortedAnnouncement: string;
|
|
20
|
+
/** Text of `true` in `boolean` columns (cells and group rows). */
|
|
21
|
+
trueText: string;
|
|
22
|
+
/** Text of `false` in `boolean` columns (cells and group rows). */
|
|
23
|
+
falseText: string;
|
|
24
|
+
/** Column chooser button label and popover title. */
|
|
25
|
+
columnChooser: string;
|
|
26
|
+
/** Tooltip of a checked column in the chooser (and of the chooser drop target). */
|
|
27
|
+
hideColumn: string;
|
|
28
|
+
/** Tooltip of an unchecked column in the chooser. */
|
|
29
|
+
showColumn: string;
|
|
30
|
+
/** "Pin column" submenu item (column header menu) that pins the column to the start. */
|
|
31
|
+
fixStart: string;
|
|
32
|
+
/** "Pin column" submenu item (column header menu) that pins the column to the end. */
|
|
33
|
+
fixEnd: string;
|
|
34
|
+
/** "Pin column" submenu item (column header menu) that unpins the column. */
|
|
35
|
+
unfix: string;
|
|
36
|
+
/** Tooltip of the column resize handle: double-click or Enter auto-sizes. */
|
|
37
|
+
autoSize: string;
|
|
38
|
+
/** Name of the `sum` summary. */
|
|
39
|
+
summarySum: string;
|
|
40
|
+
/** Name of the `min` summary. */
|
|
41
|
+
summaryMin: string;
|
|
42
|
+
/** Name of the `max` summary. */
|
|
43
|
+
summaryMax: string;
|
|
44
|
+
/** Name of the `avg` summary. */
|
|
45
|
+
summaryAvg: string;
|
|
46
|
+
/** Name of the `count` summary. */
|
|
47
|
+
summaryCount: string;
|
|
48
|
+
/** Summary text in a cell. `{type}` = summary name (or `label`), `{value}` = formatted value. */
|
|
49
|
+
summaryText: string;
|
|
50
|
+
/** Summary text with its column (group row text and accessible label of every summary). `{type}`, `{column}`, `{value}`. */
|
|
51
|
+
summaryColumnText: string;
|
|
52
|
+
/** Count and inline summaries after the group value. `{info}` = the items joined as a list of the language. */
|
|
53
|
+
groupInfoText: string;
|
|
54
|
+
/** Group panel and group row menus: removes the column from the grouping. */
|
|
55
|
+
ungroupColumn: string;
|
|
56
|
+
/** Group panel menu: removes every column from the grouping. */
|
|
57
|
+
ungroupAll: string;
|
|
58
|
+
/** Group panel and group row menus: expands every group. */
|
|
59
|
+
expandAllGroups: string;
|
|
60
|
+
/** Group panel and group row menus: collapses every group. */
|
|
61
|
+
collapseAllGroups: string;
|
|
62
|
+
/** Accessible name of the group panel menu. */
|
|
63
|
+
groupPanelMenuLabel: string;
|
|
64
|
+
/** Filter operation `=` (operation menu). */
|
|
65
|
+
filterEquals: string;
|
|
66
|
+
/** Filter operation `<>`. */
|
|
67
|
+
filterNotEquals: string;
|
|
68
|
+
/** Filter operation `<`. */
|
|
69
|
+
filterLessThan: string;
|
|
70
|
+
/** Filter operation `<=`. */
|
|
71
|
+
filterLessThanOrEqual: string;
|
|
72
|
+
/** Filter operation `>`. */
|
|
73
|
+
filterGreaterThan: string;
|
|
74
|
+
/** Filter operation `>=`. */
|
|
75
|
+
filterGreaterThanOrEqual: string;
|
|
76
|
+
/** Filter operation `contains`. */
|
|
77
|
+
filterContains: string;
|
|
78
|
+
/** Filter operation `notcontains`. */
|
|
79
|
+
filterNotContains: string;
|
|
80
|
+
/** Filter operation `startswith`. */
|
|
81
|
+
filterStartsWith: string;
|
|
82
|
+
/** Filter operation `endswith`. */
|
|
83
|
+
filterEndsWith: string;
|
|
84
|
+
/** Filter operation `between`. */
|
|
85
|
+
filterBetween: string;
|
|
86
|
+
/** Filter operation `anyof`. */
|
|
87
|
+
filterAnyOf: string;
|
|
88
|
+
/** Filter operation `noneof`. */
|
|
89
|
+
filterNoneOf: string;
|
|
90
|
+
/** Filter operation `isblank`. */
|
|
91
|
+
filterIsBlank: string;
|
|
92
|
+
/** Filter operation `isnotblank`. */
|
|
93
|
+
filterIsNotBlank: string;
|
|
94
|
+
/** Last item of the operation menu: removes the condition and restores the default operation. */
|
|
95
|
+
filterReset: string;
|
|
96
|
+
/** Accessible name of the filter row editors. `{column}` = column label. */
|
|
97
|
+
filterEditorLabel: string;
|
|
98
|
+
/** Name of the filter row operation menu (the button uses `filterOperationButtonLabel`). */
|
|
99
|
+
filterOperationLabel: string;
|
|
100
|
+
/** Header filter button and popover name. `{column}` = column label. */
|
|
101
|
+
headerFilterLabel: string;
|
|
102
|
+
/** Accessible name suffix of the first `between` editor. */
|
|
103
|
+
filterBetweenStart: string;
|
|
104
|
+
/** Accessible name suffix of the second `between` editor. */
|
|
105
|
+
filterBetweenEnd: string;
|
|
106
|
+
/** Boolean filter row option without condition. */
|
|
107
|
+
filterAll: string;
|
|
108
|
+
/** Header filter entry of the empty values. */
|
|
109
|
+
filterBlanks: string;
|
|
110
|
+
/** Header filter button that removes every condition of the column. */
|
|
111
|
+
filterClear: string;
|
|
112
|
+
/** Placeholder of the search panel and of the header filter search (their names are `searchPanelLabel` and `headerFilterSearchLabel`). */
|
|
113
|
+
searchPlaceholder: string;
|
|
114
|
+
/** Header filter "select all" checkbox. */
|
|
115
|
+
selectAll: string;
|
|
116
|
+
/** Confirm button (header filter). */
|
|
117
|
+
ok: string;
|
|
118
|
+
/** Cancel button (header filter, row editing, delete dialog). */
|
|
119
|
+
cancel: string;
|
|
120
|
+
/** Screen reader announcement after the user filters. `{count}` = rows that pass (no plural forms: keep it a label). */
|
|
121
|
+
filteredAnnouncement: string;
|
|
122
|
+
/** Label of the row selection checkbox. */
|
|
123
|
+
selectRow: string;
|
|
124
|
+
/** Name of the row details toggle button and column (master-detail and `autoHideColumns`; the state is in `aria-expanded`). */
|
|
125
|
+
rowDetails: string;
|
|
126
|
+
/** Screen reader announcement when columns move to the row details for lack of space (`autoHideColumns`). `{columns}` = up to 3 labels as a list, else their count. */
|
|
127
|
+
adaptiveColumnsAnnouncement: string;
|
|
128
|
+
/** Screen reader announcement when every column hidden for lack of space is back in the table (`autoHideColumns`). */
|
|
129
|
+
noAdaptiveColumnsAnnouncement: string;
|
|
130
|
+
/** Column chooser: under a column hidden for lack of space, whose values are in the row details (`autoHideColumns`). */
|
|
131
|
+
adaptiveColumnDescription: string;
|
|
132
|
+
/** Between the label and the value of a hidden column in the row details (`": "`). */
|
|
133
|
+
adaptiveLabelSeparator: string;
|
|
134
|
+
/** Name of the row group of the rows fixed at the top (`fixedTopItems`). */
|
|
135
|
+
fixedTopRowsLabel: string;
|
|
136
|
+
/** Name of the row group of the rows fixed at the bottom (`fixedBottomItems`). */
|
|
137
|
+
fixedBottomRowsLabel: string;
|
|
138
|
+
/** Label of the "select all" checkbox in the header of the selection column. */
|
|
139
|
+
selectAllRows: string;
|
|
140
|
+
/** Screen reader announcement after a bulk selection change. `{count}` = number of selected rows. */
|
|
141
|
+
rowsSelectedAnnouncement: string;
|
|
142
|
+
/** Screen reader announcement after Ctrl+C, the row menu or `copySelection()` copied rows. `{count}` = copied rows (no plural forms: keep it a label). */
|
|
143
|
+
rowsCopiedAnnouncement: string;
|
|
144
|
+
/** Screen reader announcement after Ctrl+C, the row menu or `copySelection()` copied a cell. */
|
|
145
|
+
cellCopiedAnnouncement: string;
|
|
146
|
+
/** Screen reader announcement after moving a column (keyboard or column header menu). `{column}`, `{position}`, `{count}`. */
|
|
147
|
+
columnMovedAnnouncement: string;
|
|
148
|
+
/** Screen reader announcement after grouping by a new column (keyboard or column header menu). `{column}`. */
|
|
149
|
+
groupedAnnouncement: string;
|
|
150
|
+
/** Screen reader announcement after ungrouping a column (keyboard or group panel menu). `{column}`. */
|
|
151
|
+
ungroupedAnnouncement: string;
|
|
152
|
+
/** Name of the column header menu. `{column}` = column label. */
|
|
153
|
+
columnHeaderMenuLabel: string;
|
|
154
|
+
/** Column header menu item that groups by the column. */
|
|
155
|
+
groupColumn: string;
|
|
156
|
+
/** Menu item (column header and group chip) that moves the column one position to the left (physical side, also in RTL). */
|
|
157
|
+
moveLeft: string;
|
|
158
|
+
/** Menu item (column header and group chip) that moves the column one position to the right (physical side, also in RTL). */
|
|
159
|
+
moveRight: string;
|
|
160
|
+
/** Column header menu item that fits the column width to its content. */
|
|
161
|
+
autoSizeColumn: string;
|
|
162
|
+
/** Column header menu item that widens the column by one keyboard step (keeps the menu open). */
|
|
163
|
+
increaseColumnWidth: string;
|
|
164
|
+
/** Column header menu item that narrows the column by one keyboard step (keeps the menu open). */
|
|
165
|
+
decreaseColumnWidth: string;
|
|
166
|
+
/** Description of a filtered column header and of its header filter button. */
|
|
167
|
+
columnFiltered: string;
|
|
168
|
+
/** Description of a column header pinned to the start. */
|
|
169
|
+
columnFixedStart: string;
|
|
170
|
+
/** Description of a column header pinned to the end. */
|
|
171
|
+
columnFixedEnd: string;
|
|
172
|
+
/** Description of a column header sorted after the first one. `{order}` = direction, `{priority}` = position in the sorting. */
|
|
173
|
+
columnSortPriority: string;
|
|
174
|
+
/** Screen reader announcement after sorting when more than one column is sorted. `{column}`, `{order}`, `{priority}`. */
|
|
175
|
+
sortedWithPriorityAnnouncement: string;
|
|
176
|
+
/** Screen reader announcement after moving a grouped column to another level. `{column}`, `{level}`, `{count}`. */
|
|
177
|
+
groupLevelChangedAnnouncement: string;
|
|
178
|
+
/** Screen reader announcement after ungrouping every column. */
|
|
179
|
+
groupingClearedAnnouncement: string;
|
|
180
|
+
/** Screen reader announcement after expanding all groups. */
|
|
181
|
+
groupsExpandedAnnouncement: string;
|
|
182
|
+
/** Screen reader announcement after collapsing all groups. */
|
|
183
|
+
groupsCollapsedAnnouncement: string;
|
|
184
|
+
/** Screen reader announcement after resizing a column from the header (keyboard or menu). `{column}`, `{width}` = pixels. */
|
|
185
|
+
columnResizedAnnouncement: string;
|
|
186
|
+
/** Name of the column resize handle. `{column}` = column label. */
|
|
187
|
+
resizeHandleLabel: string;
|
|
188
|
+
/** Name of the group panel (a `role="group"` of group chips inside the toolbar). */
|
|
189
|
+
groupPanelLabel: string;
|
|
190
|
+
/** Name of the filter row operation button. `{column}` = column label, `{operation}` = current operation. */
|
|
191
|
+
filterOperationButtonLabel: string;
|
|
192
|
+
/** Name of the search panel field (the placeholder is `searchPlaceholder`). */
|
|
193
|
+
searchPanelLabel: string;
|
|
194
|
+
/** Name of the search field in the header filter. */
|
|
195
|
+
headerFilterSearchLabel: string;
|
|
196
|
+
/** Header filter note when only part of the values is listed. `{shown}`, `{count}`. */
|
|
197
|
+
headerFilterTruncated: string;
|
|
198
|
+
/** Header filter announcement after searching. `{count}` = values found (no plural forms: keep it a label). */
|
|
199
|
+
headerFilterSearchAnnouncement: string;
|
|
200
|
+
/** "Select all" checkbox of the header filter while searching. `{count}` = values found. */
|
|
201
|
+
selectAllResults: string;
|
|
202
|
+
/** Load panel text while a data source loads. */
|
|
203
|
+
loading: string;
|
|
204
|
+
/** Message when the data source failed. */
|
|
205
|
+
loadError: string;
|
|
206
|
+
/** Button that asks the data source again after an error. */
|
|
207
|
+
retry: string;
|
|
208
|
+
/** Pager info. `{page}`, `{pageCount}`, `{count}` = number of rows. */
|
|
209
|
+
pageInfo: string;
|
|
210
|
+
/** Pager info when the total is unknown. `{page}`. */
|
|
211
|
+
pageInfoUnknownCount: string;
|
|
212
|
+
/** Label of the page size selector. */
|
|
213
|
+
pageSizeLabel: string;
|
|
214
|
+
/** Accessible name of the pager. */
|
|
215
|
+
paginationLabel: string;
|
|
216
|
+
/** First page button. */
|
|
217
|
+
firstPage: string;
|
|
218
|
+
/** Previous page button. */
|
|
219
|
+
previousPage: string;
|
|
220
|
+
/** Next page button. */
|
|
221
|
+
nextPage: string;
|
|
222
|
+
/** Last page button. */
|
|
223
|
+
lastPage: string;
|
|
224
|
+
/** Edit button of a row (`editMode="row"`) and the row menu Edit item. */
|
|
225
|
+
editRow: string;
|
|
226
|
+
/** Save button of the row being edited (`editMode="row"`). */
|
|
227
|
+
saveRow: string;
|
|
228
|
+
/** Delete button of a row, the row menu Delete item and the confirm button of the delete dialog. */
|
|
229
|
+
removeRow: string;
|
|
230
|
+
/** Button and row menu item that restore a row marked for removal (`editMode="batch"`). */
|
|
231
|
+
restoreRow: string;
|
|
232
|
+
/** Toolbar button that adds a row (`allowAdding`). */
|
|
233
|
+
addRow: string;
|
|
234
|
+
/** Toolbar button that saves the pending changes (`editMode="batch"`). */
|
|
235
|
+
saveChanges: string;
|
|
236
|
+
/** Toolbar button that discards the pending changes (`editMode="batch"`). */
|
|
237
|
+
discardChanges: string;
|
|
238
|
+
/** Header of the column with the row buttons (edit, delete). */
|
|
239
|
+
commandColumn: string;
|
|
240
|
+
/** Title of the delete confirmation dialog. */
|
|
241
|
+
confirmRemoveTitle: string;
|
|
242
|
+
/** Text of the delete confirmation dialog. */
|
|
243
|
+
confirmRemoveMessage: string;
|
|
244
|
+
/** Screen reader description of the cells of a new, unsaved row. */
|
|
245
|
+
addedRowDescription: string;
|
|
246
|
+
/** Screen reader description of the cells of a row marked for removal. */
|
|
247
|
+
removedRowDescription: string;
|
|
248
|
+
/** Screen reader description of an edited, unsaved cell. */
|
|
249
|
+
modifiedCellDescription: string;
|
|
250
|
+
/** Screen reader announcement after saving. */
|
|
251
|
+
changesSavedAnnouncement: string;
|
|
252
|
+
/** Screen reader announcement after discarding changes. `{count}` = number of rows. */
|
|
253
|
+
changesDiscardedAnnouncement: string;
|
|
254
|
+
/** Screen reader announcement after a row was deleted. */
|
|
255
|
+
rowRemovedAnnouncement: string;
|
|
256
|
+
/** Screen reader announcement after a row was marked for removal (`editMode="batch"`). */
|
|
257
|
+
rowMarkedForRemovalAnnouncement: string;
|
|
258
|
+
/** Screen reader announcement after a row marked for removal was restored. */
|
|
259
|
+
rowRestoredAnnouncement: string;
|
|
260
|
+
/** Screen reader announcement after a row was added (when the focus does not go to its editor). */
|
|
261
|
+
rowAddedAnnouncement: string;
|
|
262
|
+
/** Message shown when saving failed (the error text follows when it is a string). */
|
|
263
|
+
saveError: string;
|
|
264
|
+
/** Message shown when saving is blocked by validation. `{count}` = number of rows with errors. */
|
|
265
|
+
invalidRowsMessage: string;
|
|
266
|
+
/** Shown and announced while saving takes more than a second. */
|
|
267
|
+
saving: string;
|
|
268
|
+
/** Shown while an asynchronous validation rule runs. */
|
|
269
|
+
validating: string;
|
|
270
|
+
/** Appended to a validation error while the editor is open. */
|
|
271
|
+
validationEscapeHint: string;
|
|
272
|
+
/** Validation: empty value (`required`). */
|
|
273
|
+
validationRequired: string;
|
|
274
|
+
/** Validation: `range` with both bounds. `{min}`, `{max}`. */
|
|
275
|
+
validationRange: string;
|
|
276
|
+
/** Validation: `range` with `min` only. `{min}`. */
|
|
277
|
+
validationRangeMin: string;
|
|
278
|
+
/** Validation: `range` with `max` only. `{max}`. */
|
|
279
|
+
validationRangeMax: string;
|
|
280
|
+
/** Validation: `stringLength` with both bounds. `{min}`, `{max}`. */
|
|
281
|
+
validationStringLength: string;
|
|
282
|
+
/** Validation: `stringLength` with `min` only. `{min}`. */
|
|
283
|
+
validationStringLengthMin: string;
|
|
284
|
+
/** Validation: `stringLength` with `max` only. `{max}`. */
|
|
285
|
+
validationStringLengthMax: string;
|
|
286
|
+
/** Validation: `pattern`. */
|
|
287
|
+
validationPattern: string;
|
|
288
|
+
/** Validation: `email`. */
|
|
289
|
+
validationEmail: string;
|
|
290
|
+
/** Validation: text that is not a number in a number column. */
|
|
291
|
+
validationNumber: string;
|
|
292
|
+
/** Validation: text that is not a date in a date column. */
|
|
293
|
+
validationDate: string;
|
|
294
|
+
/** Validation: `custom` rule without its own text. */
|
|
295
|
+
validationInvalid: string;
|
|
296
|
+
/** Accessible name of the toolbar (`role="toolbar"`) above the table. */
|
|
297
|
+
toolbarLabel: string;
|
|
298
|
+
/** Name of the toolbar button that lists the items that do not fit ("More actions"). */
|
|
299
|
+
toolbarMoreButtonLabel: string;
|
|
300
|
+
/** Name of the toolbar export button (a menu when there are several entries). */
|
|
301
|
+
exportButtonLabel: string;
|
|
302
|
+
/** Export menu entry: the rows the user sees as CSV. */
|
|
303
|
+
exportCsv: string;
|
|
304
|
+
/** Export menu entry: the rows the user sees as an Excel file (`xlsxExporter`). */
|
|
305
|
+
exportXlsx: string;
|
|
306
|
+
/** Export menu entry and row menu item: the selected rows as CSV. */
|
|
307
|
+
exportSelectedCsv: string;
|
|
308
|
+
/** Export menu entry and row menu item: the selected rows as an Excel file. */
|
|
309
|
+
exportSelectedXlsx: string;
|
|
310
|
+
/** Export menu entry: the rows the user sees as a PDF file (`pdfExporter`). */
|
|
311
|
+
exportPdf: string;
|
|
312
|
+
/** Export menu entry and row menu item: the selected rows as a PDF file. */
|
|
313
|
+
exportSelectedPdf: string;
|
|
314
|
+
/** Export button (one format) or first export menu entry while an export runs: cancels it. */
|
|
315
|
+
exportCancel: string;
|
|
316
|
+
/** Screen reader announcement after the user (or the host) canceled an export started from the UI. */
|
|
317
|
+
exportCanceledAnnouncement: string;
|
|
318
|
+
/** Description of the export button while an export reports progress. `{percent}` = formatted number. */
|
|
319
|
+
exportProgress: string;
|
|
320
|
+
/** PDF page footer. `{page}` = page number, `{pageCount}` = number of pages. */
|
|
321
|
+
pdfPageNumber: string;
|
|
322
|
+
/** PDF title when the grid has no accessible name and no `title` option. */
|
|
323
|
+
pdfDefaultTitle: string;
|
|
324
|
+
/** First cell of the totals row in a PDF when it has no text of its own. */
|
|
325
|
+
pdfTotalRow: string;
|
|
326
|
+
/** Screen reader announcement while an export started from the UI takes more than a second. */
|
|
327
|
+
exportingAnnouncement: string;
|
|
328
|
+
/** Screen reader announcement after an export started from the UI. `{format}` = `CSV`, `Excel` or `PDF`. */
|
|
329
|
+
exportCompleteAnnouncement: string;
|
|
330
|
+
/** Screen reader announcement when an export started from the UI failed. */
|
|
331
|
+
exportErrorAnnouncement: string;
|
|
332
|
+
/** Row menu item: copies the cell the menu was opened on. */
|
|
333
|
+
copyCell: string;
|
|
334
|
+
/** Row menu item: copies the selected rows (like Ctrl+C). */
|
|
335
|
+
copySelectedRows: string;
|
|
336
|
+
/** Accessible name of the context menu of a data row. */
|
|
337
|
+
rowMenuLabel: string;
|
|
338
|
+
/** Accessible name of the context menu of a group row. `{value}` = group value text. */
|
|
339
|
+
groupRowMenuLabel: string;
|
|
340
|
+
/** Column header menu item: sorts the column ascending. */
|
|
341
|
+
sortColumnAscending: string;
|
|
342
|
+
/** Column header menu item: sorts the column descending. */
|
|
343
|
+
sortColumnDescending: string;
|
|
344
|
+
/** Column header menu item: removes the column from the sorting. */
|
|
345
|
+
clearColumnSorting: string;
|
|
346
|
+
/** Group row menu item: expands the group. */
|
|
347
|
+
expandGroup: string;
|
|
348
|
+
/** Group row menu item: collapses the group. */
|
|
349
|
+
collapseGroup: string;
|
|
350
|
+
/** Row menu item: shows the detail row (master-detail). */
|
|
351
|
+
expandRow: string;
|
|
352
|
+
/** Row menu item: hides the detail row (master-detail). */
|
|
353
|
+
collapseRow: string;
|
|
354
|
+
/** Announced when a menu Copy item (row menu; cell menu "Copy selected cells") cannot write to the clipboard. */
|
|
355
|
+
copyFailedAnnouncement: string;
|
|
356
|
+
/** Announced (debounced) when one cell range is selected. `{cells}`, `{rows}`, `{columns}`. */
|
|
357
|
+
cellRangeSelectedAnnouncement: string;
|
|
358
|
+
/** Announced (debounced) with several cell ranges. `{count}` = ranges, `{cells}`. */
|
|
359
|
+
cellRangesSelectedAnnouncement: string;
|
|
360
|
+
/** Announced when Shift+F8 turns "add to selection" on. */
|
|
361
|
+
addToSelectionOnAnnouncement: string;
|
|
362
|
+
/** Announced when "add to selection" turns off. */
|
|
363
|
+
addToSelectionOffAnnouncement: string;
|
|
364
|
+
/** Visible text while "add to selection" (Shift+F8) is on. */
|
|
365
|
+
addingToSelection: string;
|
|
366
|
+
/** Announced after copying cell ranges. `{count}`. */
|
|
367
|
+
cellsCopiedAnnouncement: string;
|
|
368
|
+
/** Announced after pasting. `{count}`. */
|
|
369
|
+
cellsPastedAnnouncement: string;
|
|
370
|
+
/** Announced after pasting when cells were skipped (read only, not loaded). `{count}` = pasted, `{skipped}`. */
|
|
371
|
+
cellsSkippedAnnouncement: string;
|
|
372
|
+
/** Announced when a copy is refused for its size. `{count}`, `{max}`. */
|
|
373
|
+
copyLimitExceededAnnouncement: string;
|
|
374
|
+
/** Announced when a paste is refused for its size. `{count}`, `{max}`. */
|
|
375
|
+
pasteLimitExceededAnnouncement: string;
|
|
376
|
+
/** Announced when a copy is refused because rows of the range are not loaded (remote data source). */
|
|
377
|
+
rowsNotLoadedAnnouncement: string;
|
|
378
|
+
/** Accessible name of the cell range summary bar. */
|
|
379
|
+
cellRangeSummaryLabel: string;
|
|
380
|
+
/** Cell context menu item: extends the active range to the cell (alternative to dragging). */
|
|
381
|
+
extendSelectionToCell: string;
|
|
382
|
+
/** Cell context menu item: adds the cell as a new range (`cell-selection-mode="multiple"`). */
|
|
383
|
+
addCellToSelection: string;
|
|
384
|
+
/** Cell context menu item: copies the cell ranges. */
|
|
385
|
+
copySelectedCells: string;
|
|
386
|
+
/** Cell context menu item: pastes the clipboard into editable cells (`clipboard-mode="copy-paste"`). */
|
|
387
|
+
paste: string;
|
|
388
|
+
/** Announced when the cell menu "Paste" cannot read the clipboard (permission denied, no Clipboard API) or it is empty. */
|
|
389
|
+
pasteFailedAnnouncement: string;
|
|
390
|
+
/** Row context menu item (tree data): expands the node. */
|
|
391
|
+
expandNode: string;
|
|
392
|
+
/** Row context menu item (tree data): collapses the node. */
|
|
393
|
+
collapseNode: string;
|
|
394
|
+
/** Row context menu item (tree data, `allowAdding`): adds a child row under the node. */
|
|
395
|
+
addChildRow: string;
|
|
396
|
+
/** Announced when loading child rows from a `dataSource` takes more than a second. */
|
|
397
|
+
childRowsLoadingAnnouncement: string;
|
|
398
|
+
/** Announced when child rows arrive (`{count}`). */
|
|
399
|
+
childRowsLoadedAnnouncement: string;
|
|
400
|
+
/** Announced when loading child rows fails. */
|
|
401
|
+
childRowsLoadErrorAnnouncement: string;
|
|
402
|
+
/** Announced after `*` expands the sibling nodes (`{count}`). */
|
|
403
|
+
nodesExpandedAnnouncement: string;
|
|
404
|
+
/** Column header menu item that opens the "Pin column" submenu (`fixStart`, `fixEnd`, `unfix`). */
|
|
405
|
+
fixColumn: string;
|
|
406
|
+
/** Column header menu item that fits the width of every visible column to its content. */
|
|
407
|
+
autoSizeAllColumns: string;
|
|
408
|
+
/** Column header menu item that opens the column chooser (`column-chooser`). */
|
|
409
|
+
openColumnChooser: string;
|
|
410
|
+
/** Column header menu item that puts order, width, visibility and pinning back to the column definitions. */
|
|
411
|
+
resetColumns: string;
|
|
412
|
+
/** Name (and placeholder) of the search field of the column chooser. */
|
|
413
|
+
columnChooserSearchLabel: string;
|
|
414
|
+
/** Column chooser announcement after searching. `{count}` = columns found (no plural forms: keep it a label). */
|
|
415
|
+
columnChooserSearchAnnouncement: string;
|
|
416
|
+
/** Column chooser checkbox that shows (or hides) every listed column. */
|
|
417
|
+
selectAllColumns: string;
|
|
418
|
+
/** Description of the column chooser checkboxes: the keys that move the column. */
|
|
419
|
+
reorderColumnLabel: string;
|
|
420
|
+
/** Screen reader announcement after pinning a column to the start from the column header menu. `{column}`. */
|
|
421
|
+
columnFixedStartAnnouncement: string;
|
|
422
|
+
/** Screen reader announcement after pinning a column to the end from the column header menu. `{column}`. */
|
|
423
|
+
columnFixedEndAnnouncement: string;
|
|
424
|
+
/** Screen reader announcement after unpinning a column from the column header menu. `{column}`. */
|
|
425
|
+
columnUnfixedAnnouncement: string;
|
|
426
|
+
/** Screen reader announcement after "Auto-size all columns" in the column header menu. */
|
|
427
|
+
allColumnsAutoSizedAnnouncement: string;
|
|
428
|
+
/** Column chooser announcement when `Alt+Shift+↑/↓` cannot move a column past its neighbor (pinned and unpinned columns, or another band). `{column}`, `{target}`. */
|
|
429
|
+
columnMoveRefusedAnnouncement: string;
|
|
430
|
+
/** Screen reader announcement after "Reset columns" in the column header menu. */
|
|
431
|
+
columnsResetAnnouncement: string;
|
|
432
|
+
}
|
|
433
|
+
/** Translation that may still use the deprecated key names. */
|
|
434
|
+
export type GridI18nInput = Partial<GridI18n> & {
|
|
435
|
+
/** @deprecated Use `sortClearedAnnouncement`. */
|
|
436
|
+
clearSorting?: string;
|
|
437
|
+
/** @deprecated Use `fixStart`. */
|
|
438
|
+
pinStart?: string;
|
|
439
|
+
/** @deprecated Use `fixEnd`. */
|
|
440
|
+
pinEnd?: string;
|
|
441
|
+
/** @deprecated Use `unfix`. */
|
|
442
|
+
unpin?: string;
|
|
443
|
+
/** @deprecated Use `groupPanelMenuLabel`. */
|
|
444
|
+
groupPanelMenu?: string;
|
|
445
|
+
/** @deprecated Ignored: the column chooser has no pin buttons any more (pin from the column header menu). */
|
|
446
|
+
fixStartLabel?: string;
|
|
447
|
+
/** @deprecated Ignored: the column chooser has no pin buttons any more (pin from the column header menu). */
|
|
448
|
+
fixEndLabel?: string;
|
|
449
|
+
};
|
|
450
|
+
/**
|
|
451
|
+
* Lit context carrying the default language for every grid in the subtree.
|
|
452
|
+
* Uses a shared symbol so duplicate module copies resolve to the same context.
|
|
453
|
+
*/
|
|
454
|
+
export declare const gridLanguageContext: {
|
|
455
|
+
__context__: string | undefined;
|
|
456
|
+
};
|
|
457
|
+
/**
|
|
458
|
+
* Overrides part (or all) of a built-in translation. Missing keys keep their
|
|
459
|
+
* previous value, so a partial object is enough. The deprecated key names
|
|
460
|
+
* (`clearSorting`, `pinStart`, `pinEnd`, `unpin`, `groupPanelMenu`) are still accepted, with a
|
|
461
|
+
* console warning.
|
|
462
|
+
*/
|
|
463
|
+
export declare const setGridTranslation: (language: string, translation: GridI18nInput) => void;
|
|
464
|
+
/**
|
|
465
|
+
* Provides a default language through Lit context on `host` (the document body
|
|
466
|
+
* by default). Every grid without an explicit `language` inherits this value.
|
|
467
|
+
*/
|
|
468
|
+
export declare const setGridLanguage: (language: string, host?: HTMLElement) => void;
|
|
469
|
+
//# sourceMappingURL=grid-i18n.d.ts.map
|