@vaadin/grid 24.6.5 → 24.7.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 (95) hide show
  1. package/package.json +12 -12
  2. package/src/all-imports.js +1 -1
  3. package/src/lit/column-renderer-directives.d.ts +1 -1
  4. package/src/lit/column-renderer-directives.js +1 -1
  5. package/src/lit/renderer-directives.d.ts +1 -1
  6. package/src/lit/renderer-directives.js +1 -1
  7. package/src/lit-all-imports.js +1 -1
  8. package/src/vaadin-grid-a11y-mixin.d.ts +1 -1
  9. package/src/vaadin-grid-a11y-mixin.js +1 -1
  10. package/src/vaadin-grid-active-item-mixin.d.ts +1 -1
  11. package/src/vaadin-grid-active-item-mixin.js +1 -1
  12. package/src/vaadin-grid-array-data-provider-mixin.d.ts +1 -1
  13. package/src/vaadin-grid-array-data-provider-mixin.js +1 -1
  14. package/src/vaadin-grid-column-auto-width-mixin.d.ts +17 -0
  15. package/src/vaadin-grid-column-auto-width-mixin.js +307 -0
  16. package/src/vaadin-grid-column-group-mixin.d.ts +1 -1
  17. package/src/vaadin-grid-column-group-mixin.js +2 -1
  18. package/src/vaadin-grid-column-group.d.ts +1 -1
  19. package/src/vaadin-grid-column-group.js +1 -1
  20. package/src/vaadin-grid-column-mixin.d.ts +1 -1
  21. package/src/vaadin-grid-column-mixin.js +9 -6
  22. package/src/vaadin-grid-column-reordering-mixin.d.ts +1 -1
  23. package/src/vaadin-grid-column-reordering-mixin.js +1 -1
  24. package/src/vaadin-grid-column-resizing-mixin.js +1 -1
  25. package/src/vaadin-grid-column.d.ts +1 -1
  26. package/src/vaadin-grid-column.js +1 -1
  27. package/src/vaadin-grid-data-provider-mixin.d.ts +1 -1
  28. package/src/vaadin-grid-data-provider-mixin.js +1 -1
  29. package/src/vaadin-grid-drag-and-drop-mixin.d.ts +1 -1
  30. package/src/vaadin-grid-drag-and-drop-mixin.js +3 -11
  31. package/src/vaadin-grid-dynamic-columns-mixin.js +5 -11
  32. package/src/vaadin-grid-event-context-mixin.d.ts +1 -1
  33. package/src/vaadin-grid-event-context-mixin.js +1 -1
  34. package/src/vaadin-grid-filter-column-mixin.d.ts +1 -1
  35. package/src/vaadin-grid-filter-column-mixin.js +1 -1
  36. package/src/vaadin-grid-filter-column.d.ts +1 -1
  37. package/src/vaadin-grid-filter-column.js +1 -1
  38. package/src/vaadin-grid-filter-element-mixin.d.ts +1 -1
  39. package/src/vaadin-grid-filter-element-mixin.js +1 -1
  40. package/src/vaadin-grid-filter-mixin.js +1 -1
  41. package/src/vaadin-grid-filter.d.ts +1 -1
  42. package/src/vaadin-grid-filter.js +1 -1
  43. package/src/vaadin-grid-helpers.js +1 -1
  44. package/src/vaadin-grid-keyboard-navigation-mixin.js +1 -1
  45. package/src/vaadin-grid-mixin.d.ts +11 -6
  46. package/src/vaadin-grid-mixin.js +18 -243
  47. package/src/vaadin-grid-row-details-mixin.d.ts +1 -1
  48. package/src/vaadin-grid-row-details-mixin.js +1 -1
  49. package/src/vaadin-grid-scroll-mixin.d.ts +1 -1
  50. package/src/vaadin-grid-scroll-mixin.js +1 -1
  51. package/src/vaadin-grid-selection-column-base-mixin.d.ts +6 -1
  52. package/src/vaadin-grid-selection-column-base-mixin.js +32 -1
  53. package/src/vaadin-grid-selection-column-mixin.d.ts +1 -1
  54. package/src/vaadin-grid-selection-column-mixin.js +19 -1
  55. package/src/vaadin-grid-selection-column.d.ts +1 -1
  56. package/src/vaadin-grid-selection-column.js +1 -1
  57. package/src/vaadin-grid-selection-mixin.d.ts +1 -1
  58. package/src/vaadin-grid-selection-mixin.js +11 -1
  59. package/src/vaadin-grid-sort-column-mixin.d.ts +1 -1
  60. package/src/vaadin-grid-sort-column-mixin.js +1 -1
  61. package/src/vaadin-grid-sort-column.d.ts +1 -1
  62. package/src/vaadin-grid-sort-column.js +1 -1
  63. package/src/vaadin-grid-sort-mixin.d.ts +1 -1
  64. package/src/vaadin-grid-sort-mixin.js +1 -1
  65. package/src/vaadin-grid-sorter-mixin.d.ts +1 -1
  66. package/src/vaadin-grid-sorter-mixin.js +2 -1
  67. package/src/vaadin-grid-sorter.d.ts +1 -1
  68. package/src/vaadin-grid-sorter.js +1 -1
  69. package/src/vaadin-grid-styles.js +3 -5
  70. package/src/vaadin-grid-styling-mixin.d.ts +1 -1
  71. package/src/vaadin-grid-styling-mixin.js +1 -1
  72. package/src/vaadin-grid-tree-column-mixin.d.ts +1 -1
  73. package/src/vaadin-grid-tree-column-mixin.js +1 -5
  74. package/src/vaadin-grid-tree-column.d.ts +1 -1
  75. package/src/vaadin-grid-tree-column.js +1 -1
  76. package/src/vaadin-grid-tree-toggle-mixin.d.ts +1 -1
  77. package/src/vaadin-grid-tree-toggle-mixin.js +1 -1
  78. package/src/vaadin-grid-tree-toggle.d.ts +1 -1
  79. package/src/vaadin-grid-tree-toggle.js +1 -1
  80. package/src/vaadin-grid.d.ts +2 -1
  81. package/src/vaadin-grid.js +1 -1
  82. package/src/vaadin-lit-grid-column-group.js +1 -1
  83. package/src/vaadin-lit-grid-column.js +1 -1
  84. package/src/vaadin-lit-grid-filter-column.js +1 -1
  85. package/src/vaadin-lit-grid-filter.js +1 -1
  86. package/src/vaadin-lit-grid-selection-column.js +1 -1
  87. package/src/vaadin-lit-grid-sort-column.js +1 -1
  88. package/src/vaadin-lit-grid-sorter.js +1 -1
  89. package/src/vaadin-lit-grid-tree-column.js +1 -1
  90. package/src/vaadin-lit-grid-tree-toggle.js +1 -1
  91. package/src/vaadin-lit-grid.js +4 -4
  92. package/theme/lumo/vaadin-grid-sorter-styles.js +0 -1
  93. package/theme/material/vaadin-grid-sorter-styles.js +0 -1
  94. package/web-types.json +8 -4
  95. package/web-types.lit.json +11 -4
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license
3
- * Copyright (c) 2016 - 2024 Vaadin Ltd.
3
+ * Copyright (c) 2016 - 2025 Vaadin Ltd.
4
4
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
5
  */
6
6
  import { addListener } from '@vaadin/component-base/src/gestures.js';
@@ -92,6 +92,16 @@ export const GridSelectionColumnBaseMixin = (superClass) =>
92
92
 
93
93
  /** @protected */
94
94
  _selectAllHidden: Boolean,
95
+
96
+ /**
97
+ * Indicates whether the shift key is currently pressed.
98
+ *
99
+ * @protected
100
+ */
101
+ _shiftKeyDown: {
102
+ type: Boolean,
103
+ value: false,
104
+ },
95
105
  };
96
106
  }
97
107
 
@@ -106,6 +116,7 @@ export const GridSelectionColumnBaseMixin = (superClass) =>
106
116
  this.__onCellTrack = this.__onCellTrack.bind(this);
107
117
  this.__onCellClick = this.__onCellClick.bind(this);
108
118
  this.__onCellMouseDown = this.__onCellMouseDown.bind(this);
119
+ this.__onGridInteraction = this.__onGridInteraction.bind(this);
109
120
  this.__onActiveItemChanged = this.__onActiveItemChanged.bind(this);
110
121
  this.__onSelectRowCheckboxChange = this.__onSelectRowCheckboxChange.bind(this);
111
122
  this.__onSelectAllCheckboxChange = this.__onSelectAllCheckboxChange.bind(this);
@@ -115,6 +126,9 @@ export const GridSelectionColumnBaseMixin = (superClass) =>
115
126
  connectedCallback() {
116
127
  super.connectedCallback();
117
128
  if (this._grid) {
129
+ this._grid.addEventListener('keyup', this.__onGridInteraction);
130
+ this._grid.addEventListener('keydown', this.__onGridInteraction, { capture: true });
131
+ this._grid.addEventListener('mousedown', this.__onGridInteraction);
118
132
  this._grid.addEventListener('active-item-changed', this.__onActiveItemChanged);
119
133
  }
120
134
  }
@@ -123,6 +137,9 @@ export const GridSelectionColumnBaseMixin = (superClass) =>
123
137
  disconnectedCallback() {
124
138
  super.disconnectedCallback();
125
139
  if (this._grid) {
140
+ this._grid.removeEventListener('keyup', this.__onGridInteraction);
141
+ this._grid.removeEventListener('keydown', this.__onGridInteraction, { capture: true });
142
+ this._grid.removeEventListener('mousedown', this.__onGridInteraction);
126
143
  this._grid.removeEventListener('active-item-changed', this.__onActiveItemChanged);
127
144
  }
128
145
  }
@@ -187,6 +204,20 @@ export const GridSelectionColumnBaseMixin = (superClass) =>
187
204
  }
188
205
  }
189
206
 
207
+ /** @private */
208
+ __onGridInteraction(e) {
209
+ if (e instanceof KeyboardEvent) {
210
+ this._shiftKeyDown = e.key !== 'Shift' && e.shiftKey;
211
+ } else {
212
+ this._shiftKeyDown = e.shiftKey;
213
+ }
214
+
215
+ if (this.autoSelect) {
216
+ // Prevent text selection when shift-clicking to select a range of items.
217
+ this._grid.$.scroller.toggleAttribute('range-selecting', this._shiftKeyDown);
218
+ }
219
+ }
220
+
190
221
  /**
191
222
  * Selects or deselects the row when the Select Row checkbox is switched.
192
223
  * The listener handles only user-fired events.
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license
3
- * Copyright (c) 2016 - 2024 Vaadin Ltd.
3
+ * Copyright (c) 2016 - 2025 Vaadin Ltd.
4
4
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
5
  */
6
6
  import type { Constructor } from '@open-wc/dedupe-mixin';
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license
3
- * Copyright (c) 2016 - 2024 Vaadin Ltd.
3
+ * Copyright (c) 2016 - 2025 Vaadin Ltd.
4
4
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
5
  */
6
6
  import { GridSelectionColumnBaseMixin } from './vaadin-grid-selection-column-base-mixin.js';
@@ -113,6 +113,15 @@ export const GridSelectionColumnMixin = (superClass) =>
113
113
  _selectItem(item) {
114
114
  if (this._grid.__isItemSelectable(item)) {
115
115
  this._grid.selectItem(item);
116
+ this._grid.dispatchEvent(
117
+ new CustomEvent('item-toggle', {
118
+ detail: {
119
+ item,
120
+ selected: true,
121
+ shiftKey: this._shiftKeyDown,
122
+ },
123
+ }),
124
+ );
116
125
  }
117
126
  }
118
127
 
@@ -127,6 +136,15 @@ export const GridSelectionColumnMixin = (superClass) =>
127
136
  _deselectItem(item) {
128
137
  if (this._grid.__isItemSelectable(item)) {
129
138
  this._grid.deselectItem(item);
139
+ this._grid.dispatchEvent(
140
+ new CustomEvent('item-toggle', {
141
+ detail: {
142
+ item,
143
+ selected: false,
144
+ shiftKey: this._shiftKeyDown,
145
+ },
146
+ }),
147
+ );
130
148
  }
131
149
  }
132
150
 
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license
3
- * Copyright (c) 2016 - 2024 Vaadin Ltd.
3
+ * Copyright (c) 2016 - 2025 Vaadin Ltd.
4
4
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
5
  */
6
6
  import type { GridDefaultItem } from './vaadin-grid.js';
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license
3
- * Copyright (c) 2016 - 2024 Vaadin Ltd.
3
+ * Copyright (c) 2016 - 2025 Vaadin Ltd.
4
4
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
5
  */
6
6
  import '@vaadin/checkbox/src/vaadin-checkbox.js';
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license
3
- * Copyright (c) 2016 - 2024 Vaadin Ltd.
3
+ * Copyright (c) 2016 - 2025 Vaadin Ltd.
4
4
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
5
  */
6
6
  import type { Constructor } from '@open-wc/dedupe-mixin';
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license
3
- * Copyright (c) 2016 - 2024 Vaadin Ltd.
3
+ * Copyright (c) 2016 - 2025 Vaadin Ltd.
4
4
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
5
  */
6
6
 
@@ -130,4 +130,14 @@ export const SelectionMixin = (superClass) =>
130
130
  *
131
131
  * @event selected-items-changed
132
132
  */
133
+
134
+ /**
135
+ * Fired when the user selects or deselects an item through the selection column.
136
+ *
137
+ * @event item-toggle
138
+ * @param {Object} detail
139
+ * @param {GridItem} detail.item the item that was selected or deselected
140
+ * @param {boolean} detail.selected true if the item was selected
141
+ * @param {boolean} detail.shiftKey true if the shift key was pressed
142
+ */
133
143
  };
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license
3
- * Copyright (c) 2016 - 2024 Vaadin Ltd.
3
+ * Copyright (c) 2016 - 2025 Vaadin Ltd.
4
4
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
5
  */
6
6
  import type { Constructor } from '@open-wc/dedupe-mixin';
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license
3
- * Copyright (c) 2016 - 2024 Vaadin Ltd.
3
+ * Copyright (c) 2016 - 2025 Vaadin Ltd.
4
4
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
5
  */
6
6
 
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license
3
- * Copyright (c) 2016 - 2024 Vaadin Ltd.
3
+ * Copyright (c) 2016 - 2025 Vaadin Ltd.
4
4
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
5
  */
6
6
  import type { GridDefaultItem } from './vaadin-grid.js';
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license
3
- * Copyright (c) 2016 - 2024 Vaadin Ltd.
3
+ * Copyright (c) 2016 - 2025 Vaadin Ltd.
4
4
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
5
  */
6
6
  import './vaadin-grid-sorter.js';
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license
3
- * Copyright (c) 2016 - 2024 Vaadin Ltd.
3
+ * Copyright (c) 2016 - 2025 Vaadin Ltd.
4
4
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
5
  */
6
6
  import type { Constructor } from '@open-wc/dedupe-mixin';
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license
3
- * Copyright (c) 2016 - 2024 Vaadin Ltd.
3
+ * Copyright (c) 2016 - 2025 Vaadin Ltd.
4
4
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
5
  */
6
6
 
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license
3
- * Copyright (c) 2016 - 2024 Vaadin Ltd.
3
+ * Copyright (c) 2016 - 2025 Vaadin Ltd.
4
4
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
5
  */
6
6
  import type { Constructor } from '@open-wc/dedupe-mixin';
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license
3
- * Copyright (c) 2016 - 2024 Vaadin Ltd.
3
+ * Copyright (c) 2016 - 2025 Vaadin Ltd.
4
4
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
5
  */
6
6
  import { css, registerStyles } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
@@ -117,6 +117,7 @@ export const GridSorterMixin = (superClass) =>
117
117
  /** @protected */
118
118
  connectedCallback() {
119
119
  super.connectedCallback();
120
+
120
121
  if (this._grid) {
121
122
  this._grid.__applySorters();
122
123
  } else {
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license
3
- * Copyright (c) 2016 - 2024 Vaadin Ltd.
3
+ * Copyright (c) 2016 - 2025 Vaadin Ltd.
4
4
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
5
  */
6
6
  import { DirMixin } from '@vaadin/component-base/src/dir-mixin.js';
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license
3
- * Copyright (c) 2016 - 2024 Vaadin Ltd.
3
+ * Copyright (c) 2016 - 2025 Vaadin Ltd.
4
4
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
5
  */
6
6
  import { html, PolymerElement } from '@polymer/polymer/polymer-element.js';
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license
3
- * Copyright (c) 2016 - 2024 Vaadin Ltd.
3
+ * Copyright (c) 2016 - 2025 Vaadin Ltd.
4
4
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
5
  */
6
6
  import { css } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
@@ -240,7 +240,6 @@ export const gridStyles = css`
240
240
  }
241
241
 
242
242
  :host([reordering]) {
243
- -moz-user-select: none;
244
243
  -webkit-user-select: none;
245
244
  user-select: none;
246
245
  }
@@ -294,9 +293,8 @@ export const gridStyles = css`
294
293
  display: none;
295
294
  }
296
295
 
297
- #scroller[column-resizing] {
298
- -ms-user-select: none;
299
- -moz-user-select: none;
296
+ #scroller[column-resizing],
297
+ #scroller[range-selecting] {
300
298
  -webkit-user-select: none;
301
299
  user-select: none;
302
300
  }
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license
3
- * Copyright (c) 2016 - 2024 Vaadin Ltd.
3
+ * Copyright (c) 2016 - 2025 Vaadin Ltd.
4
4
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
5
  */
6
6
  import type { Constructor } from '@open-wc/dedupe-mixin';
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license
3
- * Copyright (c) 2016 - 2024 Vaadin Ltd.
3
+ * Copyright (c) 2016 - 2025 Vaadin Ltd.
4
4
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
5
  */
6
6
  import { iterateChildren, iterateRowCells, updatePart } from './vaadin-grid-helpers.js';
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license
3
- * Copyright (c) 2016 - 2024 Vaadin Ltd.
3
+ * Copyright (c) 2016 - 2025 Vaadin Ltd.
4
4
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
5
  */
6
6
 
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license
3
- * Copyright (c) 2016 - 2024 Vaadin Ltd.
3
+ * Copyright (c) 2016 - 2025 Vaadin Ltd.
4
4
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
5
  */
6
6
  import { get } from '@vaadin/component-base/src/path-utils.js';
@@ -51,10 +51,6 @@ export const GridTreeColumnMixin = (superClass) =>
51
51
  toggle.leaf = this.__isLeafItem(item, this._grid.itemHasChildrenPath);
52
52
  toggle.textContent = this.__getToggleContent(this.path, item);
53
53
  toggle.level = level;
54
-
55
- if (toggle.performUpdate) {
56
- toggle.performUpdate();
57
- }
58
54
  }
59
55
 
60
56
  /**
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license
3
- * Copyright (c) 2016 - 2024 Vaadin Ltd.
3
+ * Copyright (c) 2016 - 2025 Vaadin Ltd.
4
4
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
5
  */
6
6
  import type { GridDefaultItem } from './vaadin-grid.js';
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license
3
- * Copyright (c) 2016 - 2024 Vaadin Ltd.
3
+ * Copyright (c) 2016 - 2025 Vaadin Ltd.
4
4
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
5
  */
6
6
  import './vaadin-grid-tree-toggle.js';
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license
3
- * Copyright (c) 2016 - 2024 Vaadin Ltd.
3
+ * Copyright (c) 2016 - 2025 Vaadin Ltd.
4
4
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
5
  */
6
6
  import type { Constructor } from '@open-wc/dedupe-mixin';
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license
3
- * Copyright (c) 2016 - 2024 Vaadin Ltd.
3
+ * Copyright (c) 2016 - 2025 Vaadin Ltd.
4
4
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
5
  */
6
6
  import { css, registerStyles } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license
3
- * Copyright (c) 2016 - 2024 Vaadin Ltd.
3
+ * Copyright (c) 2016 - 2025 Vaadin Ltd.
4
4
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
5
  */
6
6
  import { DirMixin } from '@vaadin/component-base/src/dir-mixin.js';
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license
3
- * Copyright (c) 2016 - 2024 Vaadin Ltd.
3
+ * Copyright (c) 2016 - 2025 Vaadin Ltd.
4
4
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
5
  */
6
6
  import { html, PolymerElement } from '@polymer/polymer/polymer-element.js';
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license
3
- * Copyright (c) 2016 - 2024 Vaadin Ltd.
3
+ * Copyright (c) 2016 - 2025 Vaadin Ltd.
4
4
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
5
  */
6
6
  import type { DisabledMixinClass } from '@vaadin/a11y-base/src/disabled-mixin.js';
@@ -256,6 +256,7 @@ export type GridDefaultItem = any;
256
256
  * @fires {CustomEvent} loading-changed - Fired when the `loading` property changes.
257
257
  * @fires {CustomEvent} selected-items-changed - Fired when the `selectedItems` property changes.
258
258
  * @fires {CustomEvent} size-changed - Fired when the `size` property changes.
259
+ * @fires {CustomEvent} item-toggle - Fired when the user selects or deselects an item through the selection column.
259
260
  */
260
261
  declare class Grid<TItem = GridDefaultItem> extends HTMLElement {
261
262
  addEventListener<K extends keyof GridEventMap<TItem>>(
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license
3
- * Copyright (c) 2016 - 2024 Vaadin Ltd.
3
+ * Copyright (c) 2016 - 2025 Vaadin Ltd.
4
4
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
5
  */
6
6
  import './vaadin-grid-column.js';
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license
3
- * Copyright (c) 2016 - 2024 Vaadin Ltd.
3
+ * Copyright (c) 2016 - 2025 Vaadin Ltd.
4
4
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
5
  */
6
6
  import { LitElement } from 'lit';
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license
3
- * Copyright (c) 2016 - 2024 Vaadin Ltd.
3
+ * Copyright (c) 2016 - 2025 Vaadin Ltd.
4
4
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
5
  */
6
6
  import { LitElement } from 'lit';
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license
3
- * Copyright (c) 2016 - 2024 Vaadin Ltd.
3
+ * Copyright (c) 2016 - 2025 Vaadin Ltd.
4
4
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
5
  */
6
6
  import './vaadin-lit-grid-filter.js';
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license
3
- * Copyright (c) 2016 - 2024 Vaadin Ltd.
3
+ * Copyright (c) 2016 - 2025 Vaadin Ltd.
4
4
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
5
  */
6
6
  import '@vaadin/text-field/src/vaadin-lit-text-field.js';
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license
3
- * Copyright (c) 2016 - 2024 Vaadin Ltd.
3
+ * Copyright (c) 2016 - 2025 Vaadin Ltd.
4
4
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
5
  */
6
6
  import '@vaadin/checkbox/src/vaadin-lit-checkbox.js';
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license
3
- * Copyright (c) 2016 - 2024 Vaadin Ltd.
3
+ * Copyright (c) 2016 - 2025 Vaadin Ltd.
4
4
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
5
  */
6
6
  import './vaadin-lit-grid-sorter.js';
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license
3
- * Copyright (c) 2016 - 2024 Vaadin Ltd.
3
+ * Copyright (c) 2016 - 2025 Vaadin Ltd.
4
4
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
5
  */
6
6
  import { html, LitElement } from 'lit';
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license
3
- * Copyright (c) 2016 - 2024 Vaadin Ltd.
3
+ * Copyright (c) 2016 - 2025 Vaadin Ltd.
4
4
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
5
  */
6
6
  import './vaadin-lit-grid-tree-toggle.js';
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license
3
- * Copyright (c) 2016 - 2024 Vaadin Ltd.
3
+ * Copyright (c) 2016 - 2025 Vaadin Ltd.
4
4
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
5
  */
6
6
  import { html, LitElement } from 'lit';
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license
3
- * Copyright (c) 2017 - 2024 Vaadin Ltd.
3
+ * Copyright (c) 2017 - 2025 Vaadin Ltd.
4
4
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
5
  */
6
6
  import './vaadin-lit-grid-column.js';
@@ -37,10 +37,10 @@ class Grid extends GridMixin(ElementMixin(ThemableMixin(PolylitMixin(LitElement)
37
37
  return html`
38
38
  <div
39
39
  id="scroller"
40
- safari="${isSafari}"
41
- ios="${isIOS}"
40
+ ?safari="${isSafari}"
41
+ ?ios="${isIOS}"
42
42
  ?loading="${this.loading}"
43
- column-reordering-allowed="${this.columnReorderingAllowed}"
43
+ ?column-reordering-allowed="${this.columnReorderingAllowed}"
44
44
  ?empty-state="${this.__emptyState}"
45
45
  >
46
46
  <table
@@ -10,7 +10,6 @@ registerStyles(
10
10
  justify-content: flex-start;
11
11
  align-items: baseline;
12
12
  -webkit-user-select: none;
13
- -moz-user-select: none;
14
13
  user-select: none;
15
14
  cursor: var(--lumo-clickable-cursor);
16
15
  }
@@ -10,7 +10,6 @@ registerStyles(
10
10
  height: 100%;
11
11
  align-items: center;
12
12
  -webkit-user-select: none;
13
- -moz-user-select: none;
14
13
  user-select: none;
15
14
  }
16
15