@vaadin/grid 25.2.7 → 25.3.0-alpha10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (33) hide show
  1. package/custom-elements.json +248 -128
  2. package/package.json +12 -12
  3. package/src/directives/cell-content-directive.js +33 -0
  4. package/src/styles/vaadin-grid-base-styles.js +0 -4
  5. package/src/vaadin-grid-a11y-mixin.js +20 -31
  6. package/src/vaadin-grid-active-item-mixin.js +1 -1
  7. package/src/vaadin-grid-column-auto-width-mixin.js +4 -13
  8. package/src/vaadin-grid-column-group-mixin.js +5 -20
  9. package/src/vaadin-grid-column-mixin.d.ts +3 -3
  10. package/src/vaadin-grid-column-mixin.js +57 -98
  11. package/src/vaadin-grid-column-reordering-mixin.js +10 -5
  12. package/src/vaadin-grid-column-resizing-mixin.js +4 -0
  13. package/src/vaadin-grid-data-provider-mixin.js +1 -1
  14. package/src/vaadin-grid-drag-and-drop-mixin.js +2 -5
  15. package/src/vaadin-grid-dynamic-columns-mixin.js +0 -5
  16. package/src/vaadin-grid-filter-column-mixin.js +1 -1
  17. package/src/vaadin-grid-filter-element-mixin.js +1 -3
  18. package/src/vaadin-grid-filter.js +1 -0
  19. package/src/vaadin-grid-header-footer-rendering-mixin.js +296 -0
  20. package/src/vaadin-grid-helpers.js +13 -0
  21. package/src/vaadin-grid-keyboard-navigation-mixin.js +3 -7
  22. package/src/vaadin-grid-mixin.js +69 -228
  23. package/src/vaadin-grid-row-details-mixin.js +1 -1
  24. package/src/vaadin-grid-scroll-mixin.js +2 -11
  25. package/src/vaadin-grid-selection-column-base-mixin.js +66 -21
  26. package/src/vaadin-grid-sort-column-mixin.js +11 -2
  27. package/src/vaadin-grid-sorter-mixin.js +22 -2
  28. package/src/vaadin-grid-sorter.js +2 -1
  29. package/src/vaadin-grid-tree-toggle.js +1 -0
  30. package/src/vaadin-grid.d.ts +63 -1
  31. package/src/vaadin-grid.js +51 -2
  32. package/web-types.json +29 -94
  33. package/web-types.lit.json +17 -10
@@ -46,16 +46,25 @@ export const GridSortColumnMixin = (superClass) =>
46
46
  */
47
47
  _defaultHeaderRenderer(root, _column) {
48
48
  let sorter = root.firstElementChild;
49
- if (!sorter) {
49
+ const isNewSorter = !sorter;
50
+ if (isNewSorter) {
50
51
  sorter = document.createElement('vaadin-grid-sorter');
51
52
  sorter.addEventListener('direction-changed', this.__boundOnDirectionChanged);
52
- root.appendChild(sorter);
53
53
  }
54
54
 
55
55
  sorter.path = this.path;
56
56
  sorter.__rendererDirection = this.direction;
57
57
  sorter.direction = this.direction;
58
58
  sorter.textContent = this.__getHeader(this.header, this.path);
59
+
60
+ // Append the sorter only after its direction has been set. If the cell
61
+ // content is already connected (as with the declarative header rendering),
62
+ // appending an unconfigured sorter makes it notify its default `null`
63
+ // direction before `__rendererDirection` is set, which would reset the
64
+ // column's direction. See __onDirectionChanged.
65
+ if (isNewSorter) {
66
+ root.appendChild(sorter);
67
+ }
59
68
  }
60
69
 
61
70
  /**
@@ -3,6 +3,8 @@
3
3
  * Copyright (c) 2016 - 2026 Vaadin Ltd.
4
4
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
5
  */
6
+ import { setOrRemoveAttribute } from '@vaadin/component-base/src/dom-utils.js';
7
+ import { getClosestCell } from './vaadin-grid-helpers.js';
6
8
 
7
9
  /**
8
10
  * A mixin providing common sorter functionality.
@@ -51,6 +53,8 @@ export const GridSorterMixin = (superClass) =>
51
53
  ready() {
52
54
  super.ready();
53
55
  this.addEventListener('click', this._onClick.bind(this));
56
+
57
+ this.__updateAccessibleName();
54
58
  }
55
59
 
56
60
  /** @protected */
@@ -80,6 +84,23 @@ export const GridSorterMixin = (superClass) =>
80
84
  this.__dispatchSorterChangedEvenIfPossible();
81
85
  }
82
86
 
87
+ /**
88
+ * Updates the sorter accessible name based on the grid i18n.
89
+ *
90
+ * @private
91
+ */
92
+ __updateAccessibleName() {
93
+ // `_grid` is only assigned once the sorter becomes activated.
94
+ // Resolve the grid from the parent cell column as a fallback.
95
+ const grid = this._grid || getClosestCell(this)?.getRootNode().host;
96
+ if (!grid) {
97
+ return;
98
+ }
99
+
100
+ const ariaLabel = grid.__effectiveI18n.sorter?.replace('{column}', this.textContent.trim());
101
+ setOrRemoveAttribute(this, 'aria-label', ariaLabel);
102
+ }
103
+
83
104
  /** @private */
84
105
  __dispatchSorterChangedEvenIfPossible() {
85
106
  if (this.path === undefined || this.direction === undefined || !this.isConnected) {
@@ -110,8 +131,7 @@ export const GridSorterMixin = (superClass) =>
110
131
  return;
111
132
  }
112
133
 
113
- const activeElement = this.getRootNode().activeElement;
114
- if (this !== activeElement && this.contains(activeElement)) {
134
+ if (this.matches(':focus-within') && !this.matches(':focus')) {
115
135
  // Some focusable content inside the sorter was clicked, do nothing.
116
136
  return;
117
137
  }
@@ -51,6 +51,7 @@ import { GridSorterMixin } from './vaadin-grid-sorter-mixin.js';
51
51
  * @fires {CustomEvent} direction-changed - Fired when the `direction` property changes.
52
52
  * @fires {CustomEvent} sorter-changed - Fired when the `path` or `direction` property changes.
53
53
  *
54
+ * @attr {string} theme - The theme variants to apply to the component.
54
55
  * @customElement vaadin-grid-sorter
55
56
  * @extends HTMLElement
56
57
  */
@@ -67,7 +68,7 @@ class GridSorter extends GridSorterMixin(ThemableMixin(DirMixin(PolylitMixin(Lum
67
68
  render() {
68
69
  return html`
69
70
  <div part="content">
70
- <slot></slot>
71
+ <slot @slotchange="${this.__updateAccessibleName}"></slot>
71
72
  </div>
72
73
  <div part="indicators">
73
74
  <span part="order">${this._getDisplayOrder(this._order)}</span>
@@ -59,6 +59,7 @@ import { GridTreeToggleMixin } from './vaadin-grid-tree-toggle-mixin.js';
59
59
  *
60
60
  * @fires {CustomEvent} expanded-changed - Fired when the `expanded` property changes.
61
61
  *
62
+ * @attr {string} theme - The theme variants to apply to the component.
62
63
  * @customElement vaadin-grid-tree-toggle
63
64
  * @extends HTMLElement
64
65
  */
@@ -5,6 +5,7 @@
5
5
  */
6
6
  import type { DisabledMixinClass } from '@vaadin/a11y-base/src/disabled-mixin.js';
7
7
  import type { ElementMixinClass } from '@vaadin/component-base/src/element-mixin.js';
8
+ import type { I18nMixinClass } from '@vaadin/component-base/src/i18n-mixin.js';
8
9
  import type { ThemableMixinClass } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
9
10
  import type { ThemePropertyMixinClass } from '@vaadin/vaadin-themable-mixin/vaadin-theme-property-mixin.js';
10
11
  import type { GridEventMap, GridMixinClass } from './vaadin-grid-mixin.js';
@@ -13,6 +14,34 @@ export * from './vaadin-grid-mixin.js';
13
14
 
14
15
  export type GridDefaultItem = any;
15
16
 
17
+ export interface GridI18n {
18
+ /**
19
+ * The accessible name (aria-label) for the Select All checkbox in the
20
+ * selection column header cell.
21
+ */
22
+ selectAll?: string;
23
+
24
+ /**
25
+ * The accessible name announced for the selection column header cell when the
26
+ * Select All checkbox is hidden (e.g. a data provider is used or conditional
27
+ * selection is enabled), rendered as a screen-reader-only label in the cell.
28
+ */
29
+ selectAllUnavailable?: string;
30
+
31
+ /**
32
+ * The accessible name (aria-label) template for the Select Row checkbox in
33
+ * each selection column body cell. The `{rowHeader}` placeholder is replaced with
34
+ * the row header cell text content or row index if there is no row header column.
35
+ */
36
+ selectRow?: string;
37
+
38
+ /**
39
+ * Accessible name (aria-label) for the grid sorters. The `{column}`
40
+ * placeholder is replaced with the sorter text content.
41
+ */
42
+ sorter?: string;
43
+ }
44
+
16
45
  /**
17
46
  * `<vaadin-grid>` is a free, high quality data grid / data table Web Component. The content of the
18
47
  * the grid can be populated by using renderer callback function.
@@ -265,6 +294,33 @@ export type GridDefaultItem = any;
265
294
  * @fires {CustomEvent} item-toggle - Fired when the user selects or deselects an item through the selection column.
266
295
  */
267
296
  declare class Grid<TItem = GridDefaultItem> extends HTMLElement {
297
+ /**
298
+ * The object used to localize this component. To change the default
299
+ * localization, replace this with an object that provides all properties, or
300
+ * just the individual properties you want to change.
301
+ *
302
+ * The object has the following JSON structure and default values:
303
+ *
304
+ * ```js
305
+ * {
306
+ * // Accessible name (aria-label) for the select all checkbox in the
307
+ * // selection column header cell.
308
+ * selectAll: 'Select All',
309
+ * // Screen-reader-only label announced for the selection column header cell
310
+ * // when the Select All checkbox is hidden (data provider or conditional selection).
311
+ * selectAllUnavailable: 'Select All unavailable',
312
+ * // Accessible name (aria-label) for the select row checkbox in each
313
+ * // selection column body cell. The `{rowHeader}` placeholder is replaced with the
314
+ * // row header cell text content or row index if there is no row header column.
315
+ * selectRow: 'Select Row {rowHeader}',
316
+ * // Accessible name (aria-label) for the grid sorters. The `{column}`
317
+ * // placeholder is replaced with the sorter text content.
318
+ * sorter: 'Sort by {column}',
319
+ * }
320
+ * ```
321
+ */
322
+ i18n: GridI18n;
323
+
268
324
  addEventListener<K extends keyof GridEventMap<TItem>>(
269
325
  type: K,
270
326
  listener: (this: Grid<TItem>, ev: GridEventMap<TItem>[K]) => void,
@@ -279,7 +335,13 @@ declare class Grid<TItem = GridDefaultItem> extends HTMLElement {
279
335
  }
280
336
 
281
337
  interface Grid<TItem = GridDefaultItem>
282
- extends DisabledMixinClass, ElementMixinClass, ThemableMixinClass, ThemePropertyMixinClass, GridMixinClass<TItem> {}
338
+ extends
339
+ DisabledMixinClass,
340
+ ElementMixinClass,
341
+ I18nMixinClass<GridI18n>,
342
+ ThemableMixinClass,
343
+ ThemePropertyMixinClass,
344
+ GridMixinClass<TItem> {}
283
345
 
284
346
  declare global {
285
347
  interface HTMLElementTagNameMap {
@@ -6,14 +6,23 @@
6
6
  import './vaadin-grid-column.js';
7
7
  import { html, LitElement } from 'lit';
8
8
  import { ifDefined } from 'lit/directives/if-defined.js';
9
+ import { screenReaderOnly } from '@vaadin/a11y-base/src/styles/sr-only-styles.js';
9
10
  import { defineCustomElement } from '@vaadin/component-base/src/define.js';
10
11
  import { ElementMixin } from '@vaadin/component-base/src/element-mixin.js';
12
+ import { I18nMixin } from '@vaadin/component-base/src/i18n-mixin.js';
11
13
  import { PolylitMixin } from '@vaadin/component-base/src/polylit-mixin.js';
12
14
  import { LumoInjectionMixin } from '@vaadin/vaadin-themable-mixin/lumo-injection-mixin.js';
13
15
  import { ThemableMixin } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
14
16
  import { gridStyles } from './styles/vaadin-grid-base-styles.js';
15
17
  import { GridMixin } from './vaadin-grid-mixin.js';
16
18
 
19
+ const DEFAULT_I18N = {
20
+ selectAll: 'Select All',
21
+ selectAllUnavailable: 'Select All unavailable',
22
+ selectRow: 'Select Row {rowHeader}',
23
+ sorter: 'Sort by {column}',
24
+ };
25
+
17
26
  /**
18
27
  * `<vaadin-grid>` is a free, high quality data grid / data table Web Component. The content of the
19
28
  * the grid can be populated by using renderer callback function.
@@ -265,16 +274,56 @@ import { GridMixin } from './vaadin-grid-mixin.js';
265
274
  * @fires {CustomEvent} size-changed - Fired when the `size` property changes.
266
275
  * @fires {CustomEvent} item-toggle - Fired when the user selects or deselects an item through the selection column.
267
276
  *
277
+ * @attr {string} theme - The theme variants to apply to the component.
268
278
  * @customElement vaadin-grid
269
279
  * @extends HTMLElement
270
280
  */
271
- class Grid extends GridMixin(ElementMixin(ThemableMixin(PolylitMixin(LumoInjectionMixin(LitElement))))) {
281
+ class Grid extends GridMixin(I18nMixin(ElementMixin(ThemableMixin(PolylitMixin(LumoInjectionMixin(LitElement)))))) {
272
282
  static get is() {
273
283
  return 'vaadin-grid';
274
284
  }
275
285
 
276
286
  static get styles() {
277
- return gridStyles;
287
+ return [gridStyles, screenReaderOnly];
288
+ }
289
+
290
+ static get defaultI18n() {
291
+ return DEFAULT_I18N;
292
+ }
293
+
294
+ /**
295
+ * The object used to localize this component. To change the default
296
+ * localization, replace this with an object that provides all properties, or
297
+ * just the individual properties you want to change.
298
+ *
299
+ * The object has the following JSON structure and default values:
300
+ *
301
+ * ```js
302
+ * {
303
+ * // Accessible name (aria-label) for the select all checkbox in the
304
+ * // selection column header cell.
305
+ * selectAll: 'Select All',
306
+ * // Screen-reader-only label announced for the selection column header cell
307
+ * // when the Select All checkbox is hidden (data provider or conditional selection).
308
+ * selectAllUnavailable: 'Select All unavailable',
309
+ * // Accessible name (aria-label) for the select row checkbox in each
310
+ * // selection column body cell. The `{rowHeader}` placeholder is replaced with the
311
+ * // row header cell text content or row index if there is no row header column.
312
+ * selectRow: 'Select Row {rowHeader}',
313
+ * // Accessible name (aria-label) for the grid sorters. The `{column}`
314
+ * // placeholder is replaced with the sorter text content.
315
+ * sorter: 'Sort by {column}',
316
+ * }
317
+ * ```
318
+ *
319
+ * @return {!GridI18n}
320
+ */
321
+ get i18n() {
322
+ return super.i18n;
323
+ }
324
+
325
+ set i18n(value) {
326
+ super.i18n = value;
278
327
  }
279
328
 
280
329
  /** @protected */
package/web-types.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "name": "@vaadin/grid",
4
- "version": "25.2.7",
4
+ "version": "25.3.0-alpha10",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
@@ -84,23 +84,12 @@
84
84
  },
85
85
  {
86
86
  "name": "text-align",
87
- "description": "Aligns the columns cell content horizontally.\nSupported values: \"start\", \"center\" and \"end\".",
87
+ "description": "Aligns the columns cell content horizontally.",
88
88
  "value": {
89
89
  "type": [
90
90
  "string"
91
91
  ]
92
92
  }
93
- },
94
- {
95
- "name": "theme",
96
- "description": "The theme variants to apply to the component.",
97
- "value": {
98
- "type": [
99
- "string",
100
- "null",
101
- "undefined"
102
- ]
103
- }
104
93
  }
105
94
  ],
106
95
  "js": {
@@ -201,7 +190,7 @@
201
190
  },
202
191
  {
203
192
  "name": "textAlign",
204
- "description": "Aligns the columns cell content horizontally.\nSupported values: \"start\", \"center\" and \"end\".",
193
+ "description": "Aligns the columns cell content horizontally.",
205
194
  "value": {
206
195
  "type": [
207
196
  "string"
@@ -214,7 +203,7 @@
214
203
  },
215
204
  {
216
205
  "name": "vaadin-grid-column",
217
- "description": "A `<vaadin-grid-column>` is used to configure how a column in `<vaadin-grid>`\nshould look like.\n\nSee [`<vaadin-grid>`](https://cdn.vaadin.com/vaadin-web-components/25.2.7/#/elements/vaadin-grid) documentation for instructions on how\nto configure the `<vaadin-grid-column>`.",
206
+ "description": "A `<vaadin-grid-column>` is used to configure how a column in `<vaadin-grid>`\nshould look like.\n\nSee [`<vaadin-grid>`](https://cdn.vaadin.com/vaadin-web-components/25.3.0-alpha10/#/elements/vaadin-grid) documentation for instructions on how\nto configure the `<vaadin-grid-column>`.",
218
207
  "attributes": [
219
208
  {
220
209
  "name": "auto-width",
@@ -317,24 +306,13 @@
317
306
  },
318
307
  {
319
308
  "name": "text-align",
320
- "description": "Aligns the columns cell content horizontally.\nSupported values: \"start\", \"center\" and \"end\".",
309
+ "description": "Aligns the columns cell content horizontally.",
321
310
  "value": {
322
311
  "type": [
323
312
  "string"
324
313
  ]
325
314
  }
326
315
  },
327
- {
328
- "name": "theme",
329
- "description": "The theme variants to apply to the component.",
330
- "value": {
331
- "type": [
332
- "string",
333
- "null",
334
- "undefined"
335
- ]
336
- }
337
- },
338
316
  {
339
317
  "name": "width",
340
318
  "description": "Width of the cells for this column.\n\nPlease note that using the `em` length unit is discouraged as\nit might lead to misalignment issues if the header, body, and footer\ncells have different font sizes. Instead, use `rem` if you need\na length unit relative to the font size.",
@@ -481,7 +459,7 @@
481
459
  },
482
460
  {
483
461
  "name": "textAlign",
484
- "description": "Aligns the columns cell content horizontally.\nSupported values: \"start\", \"center\" and \"end\".",
462
+ "description": "Aligns the columns cell content horizontally.",
485
463
  "value": {
486
464
  "type": [
487
465
  "string"
@@ -606,24 +584,13 @@
606
584
  },
607
585
  {
608
586
  "name": "text-align",
609
- "description": "Aligns the columns cell content horizontally.\nSupported values: \"start\", \"center\" and \"end\".",
587
+ "description": "Aligns the columns cell content horizontally.",
610
588
  "value": {
611
589
  "type": [
612
590
  "string"
613
591
  ]
614
592
  }
615
593
  },
616
- {
617
- "name": "theme",
618
- "description": "The theme variants to apply to the component.",
619
- "value": {
620
- "type": [
621
- "string",
622
- "null",
623
- "undefined"
624
- ]
625
- }
626
- },
627
594
  {
628
595
  "name": "width",
629
596
  "description": "Width of the cells for this column.\n\nPlease note that using the `em` length unit is discouraged as\nit might lead to misalignment issues if the header, body, and footer\ncells have different font sizes. Instead, use `rem` if you need\na length unit relative to the font size.",
@@ -770,7 +737,7 @@
770
737
  },
771
738
  {
772
739
  "name": "textAlign",
773
- "description": "Aligns the columns cell content horizontally.\nSupported values: \"start\", \"center\" and \"end\".",
740
+ "description": "Aligns the columns cell content horizontally.",
774
741
  "value": {
775
742
  "type": [
776
743
  "string"
@@ -808,9 +775,7 @@
808
775
  "description": "The theme variants to apply to the component.",
809
776
  "value": {
810
777
  "type": [
811
- "string",
812
- "null",
813
- "undefined"
778
+ "string"
814
779
  ]
815
780
  }
816
781
  },
@@ -855,7 +820,7 @@
855
820
  },
856
821
  {
857
822
  "name": "vaadin-grid-selection-column",
858
- "description": "`<vaadin-grid-selection-column>` is a helper element for the `<vaadin-grid>`\nthat provides default renderers and functionality for item selection.\n\n#### Example:\n```html\n<vaadin-grid>\n <vaadin-grid-selection-column frozen auto-select></vaadin-grid-selection-column>\n\n <vaadin-grid-column>\n ...\n```\n\nBy default the selection column displays `<vaadin-checkbox>` elements in the\ncolumn cells. The checkboxes in the body rows toggle selection of the corresponding row items.\n\nWhen the grid data is provided as an array of [`items`](https://cdn.vaadin.com/vaadin-web-components/25.2.7/#/elements/vaadin-grid#property-items),\nthe column header gets an additional checkbox that can be used for toggling\nselection for all the items at once.\n\n__The default content can also be overridden__",
823
+ "description": "`<vaadin-grid-selection-column>` is a helper element for the `<vaadin-grid>`\nthat provides default renderers and functionality for item selection.\n\n#### Example:\n```html\n<vaadin-grid>\n <vaadin-grid-selection-column frozen auto-select></vaadin-grid-selection-column>\n\n <vaadin-grid-column>\n ...\n```\n\nBy default the selection column displays `<vaadin-checkbox>` elements in the\ncolumn cells. The checkboxes in the body rows toggle selection of the corresponding row items.\n\nWhen the grid data is provided as an array of [`items`](https://cdn.vaadin.com/vaadin-web-components/25.3.0-alpha10/#/elements/vaadin-grid#property-items),\nthe column header gets an additional checkbox that can be used for toggling\nselection for all the items at once.\n\n__The default content can also be overridden__",
859
824
  "attributes": [
860
825
  {
861
826
  "name": "auto-select",
@@ -985,24 +950,13 @@
985
950
  },
986
951
  {
987
952
  "name": "text-align",
988
- "description": "Aligns the columns cell content horizontally.\nSupported values: \"start\", \"center\" and \"end\".",
953
+ "description": "Aligns the columns cell content horizontally.",
989
954
  "value": {
990
955
  "type": [
991
956
  "string"
992
957
  ]
993
958
  }
994
959
  },
995
- {
996
- "name": "theme",
997
- "description": "The theme variants to apply to the component.",
998
- "value": {
999
- "type": [
1000
- "string",
1001
- "null",
1002
- "undefined"
1003
- ]
1004
- }
1005
- },
1006
960
  {
1007
961
  "name": "width",
1008
962
  "description": "Width of the cells for this column.",
@@ -1176,7 +1130,7 @@
1176
1130
  },
1177
1131
  {
1178
1132
  "name": "textAlign",
1179
- "description": "Aligns the columns cell content horizontally.\nSupported values: \"start\", \"center\" and \"end\".",
1133
+ "description": "Aligns the columns cell content horizontally.",
1180
1134
  "value": {
1181
1135
  "type": [
1182
1136
  "string"
@@ -1315,24 +1269,13 @@
1315
1269
  },
1316
1270
  {
1317
1271
  "name": "text-align",
1318
- "description": "Aligns the columns cell content horizontally.\nSupported values: \"start\", \"center\" and \"end\".",
1272
+ "description": "Aligns the columns cell content horizontally.",
1319
1273
  "value": {
1320
1274
  "type": [
1321
1275
  "string"
1322
1276
  ]
1323
1277
  }
1324
1278
  },
1325
- {
1326
- "name": "theme",
1327
- "description": "The theme variants to apply to the component.",
1328
- "value": {
1329
- "type": [
1330
- "string",
1331
- "null",
1332
- "undefined"
1333
- ]
1334
- }
1335
- },
1336
1279
  {
1337
1280
  "name": "width",
1338
1281
  "description": "Width of the cells for this column.\n\nPlease note that using the `em` length unit is discouraged as\nit might lead to misalignment issues if the header, body, and footer\ncells have different font sizes. Instead, use `rem` if you need\na length unit relative to the font size.",
@@ -1488,7 +1431,7 @@
1488
1431
  },
1489
1432
  {
1490
1433
  "name": "textAlign",
1491
- "description": "Aligns the columns cell content horizontally.\nSupported values: \"start\", \"center\" and \"end\".",
1434
+ "description": "Aligns the columns cell content horizontally.",
1492
1435
  "value": {
1493
1436
  "type": [
1494
1437
  "string"
@@ -1540,9 +1483,7 @@
1540
1483
  "description": "The theme variants to apply to the component.",
1541
1484
  "value": {
1542
1485
  "type": [
1543
- "string",
1544
- "null",
1545
- "undefined"
1486
+ "string"
1546
1487
  ]
1547
1488
  }
1548
1489
  }
@@ -1685,24 +1626,13 @@
1685
1626
  },
1686
1627
  {
1687
1628
  "name": "text-align",
1688
- "description": "Aligns the columns cell content horizontally.\nSupported values: \"start\", \"center\" and \"end\".",
1629
+ "description": "Aligns the columns cell content horizontally.",
1689
1630
  "value": {
1690
1631
  "type": [
1691
1632
  "string"
1692
1633
  ]
1693
1634
  }
1694
1635
  },
1695
- {
1696
- "name": "theme",
1697
- "description": "The theme variants to apply to the component.",
1698
- "value": {
1699
- "type": [
1700
- "string",
1701
- "null",
1702
- "undefined"
1703
- ]
1704
- }
1705
- },
1706
1636
  {
1707
1637
  "name": "width",
1708
1638
  "description": "Width of the cells for this column.\n\nPlease note that using the `em` length unit is discouraged as\nit might lead to misalignment issues if the header, body, and footer\ncells have different font sizes. Instead, use `rem` if you need\na length unit relative to the font size.",
@@ -1849,7 +1779,7 @@
1849
1779
  },
1850
1780
  {
1851
1781
  "name": "textAlign",
1852
- "description": "Aligns the columns cell content horizontally.\nSupported values: \"start\", \"center\" and \"end\".",
1782
+ "description": "Aligns the columns cell content horizontally.",
1853
1783
  "value": {
1854
1784
  "type": [
1855
1785
  "string"
@@ -1905,9 +1835,7 @@
1905
1835
  "description": "The theme variants to apply to the component.",
1906
1836
  "value": {
1907
1837
  "type": [
1908
- "string",
1909
- "null",
1910
- "undefined"
1838
+ "string"
1911
1839
  ]
1912
1840
  }
1913
1841
  }
@@ -1952,7 +1880,7 @@
1952
1880
  },
1953
1881
  {
1954
1882
  "name": "vaadin-grid",
1955
- "description": "`<vaadin-grid>` is a free, high quality data grid / data table Web Component. The content of the\nthe grid can be populated by using renderer callback function.\n\n### Quick Start\n\nStart with an assigning an array to the [`items`](https://cdn.vaadin.com/vaadin-web-components/25.2.7/#/elements/vaadin-grid#property-items) property to visualize your data.\n\nUse the [`<vaadin-grid-column>`](https://cdn.vaadin.com/vaadin-web-components/25.2.7/#/elements/vaadin-grid-column) element to configure the grid columns. Set `path` and `header`\nshorthand properties for the columns to define what gets rendered in the cells of the column.\n\n#### Example:\n```html\n<vaadin-grid>\n <vaadin-grid-column path=\"name.first\" header=\"First name\"></vaadin-grid-column>\n <vaadin-grid-column path=\"name.last\" header=\"Last name\"></vaadin-grid-column>\n <vaadin-grid-column path=\"email\"></vaadin-grid-column>\n</vaadin-grid>\n```\n\nFor custom content `vaadin-grid-column` element provides you with three types of `renderer` callback functions: `headerRenderer`,\n`renderer` and `footerRenderer`.\n\nEach of those renderer functions provides `root`, `column`, `model` arguments when applicable.\nGenerate DOM content, append it to the `root` element and control the state\nof the host element by accessing `column`. Before generating new content,\nusers are able to check if there is already content in `root` for reusing it.\n\nRenderers are called on initialization of new column cells and each time the\nrelated row model is updated. DOM generated during the renderer call can be reused\nin the next renderer call and will be provided with the `root` argument.\nOn first call it will be empty.\n\n#### Example:\n```html\n<vaadin-grid>\n <vaadin-grid-column></vaadin-grid-column>\n <vaadin-grid-column></vaadin-grid-column>\n <vaadin-grid-column></vaadin-grid-column>\n</vaadin-grid>\n```\n```js\nconst grid = document.querySelector('vaadin-grid');\ngrid.items = [{'name': 'John', 'surname': 'Lennon', 'role': 'singer'},\n {'name': 'Ringo', 'surname': 'Starr', 'role': 'drums'}];\n\nconst columns = grid.querySelectorAll('vaadin-grid-column');\n\ncolumns[0].headerRenderer = function(root) {\n root.textContent = 'Name';\n};\ncolumns[0].renderer = function(root, column, model) {\n root.textContent = model.item.name;\n};\n\ncolumns[1].headerRenderer = function(root) {\n root.textContent = 'Surname';\n};\ncolumns[1].renderer = function(root, column, model) {\n root.textContent = model.item.surname;\n};\n\ncolumns[2].headerRenderer = function(root) {\n root.textContent = 'Role';\n};\ncolumns[2].renderer = function(root, column, model) {\n root.textContent = model.item.role;\n};\n```\n\nThe following properties are available in the `model` argument:\n\nProperty name | Type | Description\n--------------|------|------------\n`index`| Number | The index of the item.\n`item` | String or Object | The item.\n`level` | Number | Number of the item's tree sublevel, starts from 0.\n`expanded` | Boolean | True if the item's tree sublevel is expanded.\n`selected` | Boolean | True if the item is selected.\n`detailsOpened` | Boolean | True if the item's row details are open.\n`hasChildren` | Boolean | True if the item has children\n\nThe following helper elements can be used for further customization:\n- [`<vaadin-grid-column-group>`](https://cdn.vaadin.com/vaadin-web-components/25.2.7/#/elements/vaadin-grid-column-group)\n- [`<vaadin-grid-filter>`](https://cdn.vaadin.com/vaadin-web-components/25.2.7/#/elements/vaadin-grid-filter)\n- [`<vaadin-grid-sorter>`](https://cdn.vaadin.com/vaadin-web-components/25.2.7/#/elements/vaadin-grid-sorter)\n- [`<vaadin-grid-selection-column>`](https://cdn.vaadin.com/vaadin-web-components/25.2.7/#/elements/vaadin-grid-selection-column)\n- [`<vaadin-grid-tree-toggle>`](https://cdn.vaadin.com/vaadin-web-components/25.2.7/#/elements/vaadin-grid-tree-toggle)\n\n__Note that the helper elements must be explicitly imported.__\nIf you want to import everything at once you can use the `all-imports.js` entrypoint.\n\n### Lazy Loading with Function Data Provider\n\nIn addition to assigning an array to the items property, you can alternatively\nprovide the `<vaadin-grid>` data through the\n[`dataProvider`](https://cdn.vaadin.com/vaadin-web-components/25.2.7/#/elements/vaadin-grid#property-dataProvider) function property.\nThe `<vaadin-grid>` calls this function lazily, only when it needs more data\nto be displayed.\n\nSee the [`dataProvider`](https://cdn.vaadin.com/vaadin-web-components/25.2.7/#/elements/vaadin-grid#property-dataProvider) property\ndocumentation for the detailed data provider arguments description.\n\n__Note that expanding the tree grid's item will trigger a call to the `dataProvider`.__\n\n__Also, note that when using function data providers, the total number of items\nneeds to be set manually. The total number of items can be returned\nin the second argument of the data provider callback:__\n\n```javascript\ngrid.dataProvider = ({page, pageSize}, callback) => {\n // page: the requested page index\n // pageSize: number of items on one page\n const url = `https://api.example/data?page=${page}&per_page=${pageSize}`;\n\n fetch(url)\n .then((res) => res.json())\n .then(({ employees, totalSize }) => {\n callback(employees, totalSize);\n });\n};\n```\n\n__Alternatively, you can use the `size` property to set the total number of items:__\n\n```javascript\ngrid.size = 200; // The total number of items\ngrid.dataProvider = ({page, pageSize}, callback) => {\n const url = `https://api.example/data?page=${page}&per_page=${pageSize}`;\n\n fetch(url)\n .then((res) => res.json())\n .then((resJson) => callback(resJson.employees));\n};\n```\n\n### Styling\n\nThe following shadow DOM parts are available for styling:\n\nPart name | Description\n---------------------------|----------------\n`row` | Row in the internal table\n`body-row` | Body row in the internal table\n`header-row` | Header row in the internal table\n`footer-row` | Footer row in the internal table\n`collapsed-row` | Collapsed row\n`expanded-row` | Expanded row\n`selected-row` | Selected row\n`nonselectable-row` | Row that the user may not select or deselect\n`details-opened-row` | Row with details open\n`odd-row` | Odd row\n`even-row` | Even row\n`first-row` | The first body row\n`first-header-row` | The first header row\n`first-footer-row` | The first footer row\n`last-row` | The last body row\n`last-header-row` | The last header row\n`last-footer-row` | The last footer row\n`dragstart-row` | Set on the row for one frame when drag is starting.\n`dragover-above-row` | Set on the row when the a row is dragged over above\n`dragover-below-row` | Set on the row when the a row is dragged over below\n`dragover-on-top-row` | Set on the row when the a row is dragged over on top\n`drag-disabled-row` | Set to a row that isn't available for dragging\n`drop-disabled-row` | Set to a row that can't be dropped on top of\n`cell` | Cell in the internal table\n`header-cell` | Header cell in the internal table\n`body-cell` | Body cell in the internal table\n`footer-cell` | Footer cell in the internal table\n`details-cell` | Row details cell in the internal table\n`focused-cell` | Focused cell in the internal table\n`odd-row-cell` | Cell in an odd row\n`even-row-cell` | Cell in an even row\n`first-row-cell` | Cell in the first body row\n`last-row-cell` | Cell in the last body row\n`first-header-row-cell` | Cell in the first header row\n`first-footer-row-cell` | Cell in the first footer row\n`last-header-row-cell` | Cell in the last header row\n`last-footer-row-cell` | Cell in the last footer row\n`loading-row-cell` | Cell in a row that is waiting for data from data provider\n`selected-row-cell` | Cell in a selected row\n`nonselectable-row-cell` | Cell in a row that the user may not select or deselect\n`collapsed-row-cell` | Cell in a collapsed row\n`expanded-row-cell` | Cell in an expanded row\n`details-opened-row-cell` | Cell in an row with details open\n`dragstart-row-cell` | Cell in the ghost image row, but not in a source row\n`drag-source-row-cell` | Cell in a source row, but not in the ghost image\n`dragover-above-row-cell` | Cell in a row that has another row dragged over above\n`dragover-below-row-cell` | Cell in a row that has another row dragged over below\n`dragover-on-top-row-cell` | Cell in a row that has another row dragged over on top\n`drag-disabled-row-cell` | Cell in a row that isn't available for dragging\n`drop-disabled-row-cell` | Cell in a row that can't be dropped on top of\n`frozen-cell` | Frozen cell in the internal table\n`frozen-to-end-cell` | Frozen to end cell in the internal table\n`last-frozen-cell` | Last frozen cell\n`first-frozen-to-end-cell` | First cell frozen to end\n`first-column-cell` | First visible cell on a row\n`last-column-cell` | Last visible cell on a row\n`reorder-allowed-cell` | Cell in a column where another column can be reordered\n`reorder-dragging-cell` | Cell in a column currently being reordered\n`resize-handle` | Handle for resizing the columns\n`empty-state` | The container for the content to be displayed when there are no body rows to show\n`reorder-ghost` | Ghost element of the header cell being dragged\n\nThe following state attributes are available for styling:\n\nAttribute | Description | Part name\n----------------------|---------------------------------------------------------------------------------------------------|-----------\n`loading` | Set when the grid is loading data from data provider | :host\n`interacting` | Keyboard navigation in interaction mode | :host\n`navigating` | Keyboard navigation in navigation mode | :host\n`overflow` | Set when rows are overflowing the grid viewport. Possible values: `top`, `bottom`, `start`, `end` | :host\n`reordering` | Set when the grid's columns are being reordered | :host\n`dragover` | Set when the grid (not a specific row) is dragged over | :host\n`dragging-rows` | Set when grid rows are dragged | :host\n`reorder-status` | Reflects the status of a cell while columns are being reordered | cell\n`frozen` | Frozen cell | cell\n`frozen-to-end` | Cell frozen to end | cell\n`last-frozen` | Last frozen cell | cell\n`first-frozen-to-end` | First cell frozen to end | cell\n`first-column` | First visible cell on a row | cell\n`last-column` | Last visible cell on a row | cell\n`selected` | Selected row | row\n`expanded` | Expanded row | row\n`details-opened` | Row with details open | row\n`loading` | Row that is waiting for data from data provider | row\n`odd` | Odd row | row\n`first` | The first body row | row\n`last` | The last body row | row\n`dragstart` | Set for one frame when starting to drag a row. The value is a number when dragging multiple rows | row\n`dragover` | Set when the row is dragged over | row\n`drag-disabled` | Set to a row that isn't available for dragging | row\n`drop-disabled` | Set to a row that can't be dropped on top of | row\n\nSee [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.",
1883
+ "description": "`<vaadin-grid>` is a free, high quality data grid / data table Web Component. The content of the\nthe grid can be populated by using renderer callback function.\n\n### Quick Start\n\nStart with an assigning an array to the [`items`](https://cdn.vaadin.com/vaadin-web-components/25.3.0-alpha10/#/elements/vaadin-grid#property-items) property to visualize your data.\n\nUse the [`<vaadin-grid-column>`](https://cdn.vaadin.com/vaadin-web-components/25.3.0-alpha10/#/elements/vaadin-grid-column) element to configure the grid columns. Set `path` and `header`\nshorthand properties for the columns to define what gets rendered in the cells of the column.\n\n#### Example:\n```html\n<vaadin-grid>\n <vaadin-grid-column path=\"name.first\" header=\"First name\"></vaadin-grid-column>\n <vaadin-grid-column path=\"name.last\" header=\"Last name\"></vaadin-grid-column>\n <vaadin-grid-column path=\"email\"></vaadin-grid-column>\n</vaadin-grid>\n```\n\nFor custom content `vaadin-grid-column` element provides you with three types of `renderer` callback functions: `headerRenderer`,\n`renderer` and `footerRenderer`.\n\nEach of those renderer functions provides `root`, `column`, `model` arguments when applicable.\nGenerate DOM content, append it to the `root` element and control the state\nof the host element by accessing `column`. Before generating new content,\nusers are able to check if there is already content in `root` for reusing it.\n\nRenderers are called on initialization of new column cells and each time the\nrelated row model is updated. DOM generated during the renderer call can be reused\nin the next renderer call and will be provided with the `root` argument.\nOn first call it will be empty.\n\n#### Example:\n```html\n<vaadin-grid>\n <vaadin-grid-column></vaadin-grid-column>\n <vaadin-grid-column></vaadin-grid-column>\n <vaadin-grid-column></vaadin-grid-column>\n</vaadin-grid>\n```\n```js\nconst grid = document.querySelector('vaadin-grid');\ngrid.items = [{'name': 'John', 'surname': 'Lennon', 'role': 'singer'},\n {'name': 'Ringo', 'surname': 'Starr', 'role': 'drums'}];\n\nconst columns = grid.querySelectorAll('vaadin-grid-column');\n\ncolumns[0].headerRenderer = function(root) {\n root.textContent = 'Name';\n};\ncolumns[0].renderer = function(root, column, model) {\n root.textContent = model.item.name;\n};\n\ncolumns[1].headerRenderer = function(root) {\n root.textContent = 'Surname';\n};\ncolumns[1].renderer = function(root, column, model) {\n root.textContent = model.item.surname;\n};\n\ncolumns[2].headerRenderer = function(root) {\n root.textContent = 'Role';\n};\ncolumns[2].renderer = function(root, column, model) {\n root.textContent = model.item.role;\n};\n```\n\nThe following properties are available in the `model` argument:\n\nProperty name | Type | Description\n--------------|------|------------\n`index`| Number | The index of the item.\n`item` | String or Object | The item.\n`level` | Number | Number of the item's tree sublevel, starts from 0.\n`expanded` | Boolean | True if the item's tree sublevel is expanded.\n`selected` | Boolean | True if the item is selected.\n`detailsOpened` | Boolean | True if the item's row details are open.\n`hasChildren` | Boolean | True if the item has children\n\nThe following helper elements can be used for further customization:\n- [`<vaadin-grid-column-group>`](https://cdn.vaadin.com/vaadin-web-components/25.3.0-alpha10/#/elements/vaadin-grid-column-group)\n- [`<vaadin-grid-filter>`](https://cdn.vaadin.com/vaadin-web-components/25.3.0-alpha10/#/elements/vaadin-grid-filter)\n- [`<vaadin-grid-sorter>`](https://cdn.vaadin.com/vaadin-web-components/25.3.0-alpha10/#/elements/vaadin-grid-sorter)\n- [`<vaadin-grid-selection-column>`](https://cdn.vaadin.com/vaadin-web-components/25.3.0-alpha10/#/elements/vaadin-grid-selection-column)\n- [`<vaadin-grid-tree-toggle>`](https://cdn.vaadin.com/vaadin-web-components/25.3.0-alpha10/#/elements/vaadin-grid-tree-toggle)\n\n__Note that the helper elements must be explicitly imported.__\nIf you want to import everything at once you can use the `all-imports.js` entrypoint.\n\n### Lazy Loading with Function Data Provider\n\nIn addition to assigning an array to the items property, you can alternatively\nprovide the `<vaadin-grid>` data through the\n[`dataProvider`](https://cdn.vaadin.com/vaadin-web-components/25.3.0-alpha10/#/elements/vaadin-grid#property-dataProvider) function property.\nThe `<vaadin-grid>` calls this function lazily, only when it needs more data\nto be displayed.\n\nSee the [`dataProvider`](https://cdn.vaadin.com/vaadin-web-components/25.3.0-alpha10/#/elements/vaadin-grid#property-dataProvider) property\ndocumentation for the detailed data provider arguments description.\n\n__Note that expanding the tree grid's item will trigger a call to the `dataProvider`.__\n\n__Also, note that when using function data providers, the total number of items\nneeds to be set manually. The total number of items can be returned\nin the second argument of the data provider callback:__\n\n```javascript\ngrid.dataProvider = ({page, pageSize}, callback) => {\n // page: the requested page index\n // pageSize: number of items on one page\n const url = `https://api.example/data?page=${page}&per_page=${pageSize}`;\n\n fetch(url)\n .then((res) => res.json())\n .then(({ employees, totalSize }) => {\n callback(employees, totalSize);\n });\n};\n```\n\n__Alternatively, you can use the `size` property to set the total number of items:__\n\n```javascript\ngrid.size = 200; // The total number of items\ngrid.dataProvider = ({page, pageSize}, callback) => {\n const url = `https://api.example/data?page=${page}&per_page=${pageSize}`;\n\n fetch(url)\n .then((res) => res.json())\n .then((resJson) => callback(resJson.employees));\n};\n```\n\n### Styling\n\nThe following shadow DOM parts are available for styling:\n\nPart name | Description\n---------------------------|----------------\n`row` | Row in the internal table\n`body-row` | Body row in the internal table\n`header-row` | Header row in the internal table\n`footer-row` | Footer row in the internal table\n`collapsed-row` | Collapsed row\n`expanded-row` | Expanded row\n`selected-row` | Selected row\n`nonselectable-row` | Row that the user may not select or deselect\n`details-opened-row` | Row with details open\n`odd-row` | Odd row\n`even-row` | Even row\n`first-row` | The first body row\n`first-header-row` | The first header row\n`first-footer-row` | The first footer row\n`last-row` | The last body row\n`last-header-row` | The last header row\n`last-footer-row` | The last footer row\n`dragstart-row` | Set on the row for one frame when drag is starting.\n`dragover-above-row` | Set on the row when the a row is dragged over above\n`dragover-below-row` | Set on the row when the a row is dragged over below\n`dragover-on-top-row` | Set on the row when the a row is dragged over on top\n`drag-disabled-row` | Set to a row that isn't available for dragging\n`drop-disabled-row` | Set to a row that can't be dropped on top of\n`cell` | Cell in the internal table\n`header-cell` | Header cell in the internal table\n`body-cell` | Body cell in the internal table\n`footer-cell` | Footer cell in the internal table\n`details-cell` | Row details cell in the internal table\n`focused-cell` | Focused cell in the internal table\n`odd-row-cell` | Cell in an odd row\n`even-row-cell` | Cell in an even row\n`first-row-cell` | Cell in the first body row\n`last-row-cell` | Cell in the last body row\n`first-header-row-cell` | Cell in the first header row\n`first-footer-row-cell` | Cell in the first footer row\n`last-header-row-cell` | Cell in the last header row\n`last-footer-row-cell` | Cell in the last footer row\n`loading-row-cell` | Cell in a row that is waiting for data from data provider\n`selected-row-cell` | Cell in a selected row\n`nonselectable-row-cell` | Cell in a row that the user may not select or deselect\n`collapsed-row-cell` | Cell in a collapsed row\n`expanded-row-cell` | Cell in an expanded row\n`details-opened-row-cell` | Cell in an row with details open\n`dragstart-row-cell` | Cell in the ghost image row, but not in a source row\n`drag-source-row-cell` | Cell in a source row, but not in the ghost image\n`dragover-above-row-cell` | Cell in a row that has another row dragged over above\n`dragover-below-row-cell` | Cell in a row that has another row dragged over below\n`dragover-on-top-row-cell` | Cell in a row that has another row dragged over on top\n`drag-disabled-row-cell` | Cell in a row that isn't available for dragging\n`drop-disabled-row-cell` | Cell in a row that can't be dropped on top of\n`frozen-cell` | Frozen cell in the internal table\n`frozen-to-end-cell` | Frozen to end cell in the internal table\n`last-frozen-cell` | Last frozen cell\n`first-frozen-to-end-cell` | First cell frozen to end\n`first-column-cell` | First visible cell on a row\n`last-column-cell` | Last visible cell on a row\n`reorder-allowed-cell` | Cell in a column where another column can be reordered\n`reorder-dragging-cell` | Cell in a column currently being reordered\n`resize-handle` | Handle for resizing the columns\n`empty-state` | The container for the content to be displayed when there are no body rows to show\n`reorder-ghost` | Ghost element of the header cell being dragged\n\nThe following state attributes are available for styling:\n\nAttribute | Description | Part name\n----------------------|---------------------------------------------------------------------------------------------------|-----------\n`loading` | Set when the grid is loading data from data provider | :host\n`interacting` | Keyboard navigation in interaction mode | :host\n`navigating` | Keyboard navigation in navigation mode | :host\n`overflow` | Set when rows are overflowing the grid viewport. Possible values: `top`, `bottom`, `start`, `end` | :host\n`reordering` | Set when the grid's columns are being reordered | :host\n`dragover` | Set when the grid (not a specific row) is dragged over | :host\n`dragging-rows` | Set when grid rows are dragged | :host\n`reorder-status` | Reflects the status of a cell while columns are being reordered | cell\n`frozen` | Frozen cell | cell\n`frozen-to-end` | Cell frozen to end | cell\n`last-frozen` | Last frozen cell | cell\n`first-frozen-to-end` | First cell frozen to end | cell\n`first-column` | First visible cell on a row | cell\n`last-column` | Last visible cell on a row | cell\n`selected` | Selected row | row\n`expanded` | Expanded row | row\n`details-opened` | Row with details open | row\n`loading` | Row that is waiting for data from data provider | row\n`odd` | Odd row | row\n`first` | The first body row | row\n`last` | The last body row | row\n`dragstart` | Set for one frame when starting to drag a row. The value is a number when dragging multiple rows | row\n`dragover` | Set when the row is dragged over | row\n`drag-disabled` | Set to a row that isn't available for dragging | row\n`drop-disabled` | Set to a row that can't be dropped on top of | row\n\nSee [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.",
1956
1884
  "attributes": [
1957
1885
  {
1958
1886
  "name": "accessible-name",
@@ -2085,9 +2013,7 @@
2085
2013
  "description": "The theme variants to apply to the component.",
2086
2014
  "value": {
2087
2015
  "type": [
2088
- "string",
2089
- "null",
2090
- "undefined"
2016
+ "string"
2091
2017
  ]
2092
2018
  }
2093
2019
  }
@@ -2219,6 +2145,15 @@
2219
2145
  ]
2220
2146
  }
2221
2147
  },
2148
+ {
2149
+ "name": "i18n",
2150
+ "description": "The object used to localize this component. To change the default\nlocalization, replace this with an object that provides all properties, or\njust the individual properties you want to change.\n\nThe object has the following JSON structure and default values:\n\n```js\n{\n // Accessible name (aria-label) for the select all checkbox in the\n // selection column header cell.\n selectAll: 'Select All',\n // Screen-reader-only label announced for the selection column header cell\n // when the Select All checkbox is hidden (data provider or conditional selection).\n selectAllUnavailable: 'Select All unavailable',\n // Accessible name (aria-label) for the select row checkbox in each\n // selection column body cell. The `{rowHeader}` placeholder is replaced with the\n // row header cell text content or row index if there is no row header column.\n selectRow: 'Select Row {rowHeader}',\n // Accessible name (aria-label) for the grid sorters. The `{column}`\n // placeholder is replaced with the sorter text content.\n sorter: 'Sort by {column}',\n}\n```",
2151
+ "value": {
2152
+ "type": [
2153
+ "Object"
2154
+ ]
2155
+ }
2156
+ },
2222
2157
  {
2223
2158
  "name": "isItemSelectable",
2224
2159
  "description": "A function to check whether a specific item in the grid may be\nselected or deselected by the user. Used by the selection column to\nconditionally enable to disable checkboxes for individual items. This\nfunction does not prevent programmatic selection/deselection of\nitems. Changing the function does not modify the currently selected\nitems.\n\nConfiguring this function hides the select all checkbox of the grid\nselection column, which means users can not select or deselect all\nitems anymore, nor do they get feedback on whether all items are\nselected or not.\n\nReceives an item instance and should return a boolean indicating\nwhether users may change the selection state of that item.",