@vaadin/grid 23.1.13 → 23.1.14

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vaadin/grid",
3
- "version": "23.1.13",
3
+ "version": "23.1.14",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -44,20 +44,20 @@
44
44
  "dependencies": {
45
45
  "@open-wc/dedupe-mixin": "^1.3.0",
46
46
  "@polymer/polymer": "^3.0.0",
47
- "@vaadin/checkbox": "~23.1.13",
48
- "@vaadin/component-base": "~23.1.13",
49
- "@vaadin/lit-renderer": "~23.1.13",
50
- "@vaadin/text-field": "~23.1.13",
51
- "@vaadin/vaadin-lumo-styles": "~23.1.13",
52
- "@vaadin/vaadin-material-styles": "~23.1.13",
53
- "@vaadin/vaadin-themable-mixin": "~23.1.13"
47
+ "@vaadin/checkbox": "~23.1.14",
48
+ "@vaadin/component-base": "~23.1.14",
49
+ "@vaadin/lit-renderer": "~23.1.14",
50
+ "@vaadin/text-field": "~23.1.14",
51
+ "@vaadin/vaadin-lumo-styles": "~23.1.14",
52
+ "@vaadin/vaadin-material-styles": "~23.1.14",
53
+ "@vaadin/vaadin-themable-mixin": "~23.1.14"
54
54
  },
55
55
  "devDependencies": {
56
56
  "@esm-bundle/chai": "^4.3.4",
57
- "@vaadin/polymer-legacy-adapter": "~23.1.13",
57
+ "@vaadin/polymer-legacy-adapter": "~23.1.14",
58
58
  "@vaadin/testing-helpers": "^0.3.2",
59
59
  "lit": "^2.0.0",
60
60
  "sinon": "^13.0.2"
61
61
  },
62
- "gitHead": "f1000c776f3644ed1968b7095ad59a65b1e306ff"
62
+ "gitHead": "3065d26b1e7417c4efed0eb72c54e429031dc86c"
63
63
  }
@@ -500,6 +500,7 @@ export const DataProviderMixin = (superClass) =>
500
500
  }
501
501
  }
502
502
 
503
+ /** @private */
503
504
  __scrollToPendingIndex() {
504
505
  if (this.__pendingScrollToIndex && this.$.items.children.length) {
505
506
  const index = this.__pendingScrollToIndex;
@@ -116,6 +116,7 @@ registerStyles(
116
116
  width: 100%;
117
117
  box-sizing: border-box;
118
118
  margin: 0;
119
+ pointer-events: none;
119
120
  }
120
121
 
121
122
  [part~='row'][loading] [part~='body-cell'] ::slotted(vaadin-grid-cell-content) {
@@ -158,6 +159,10 @@ registerStyles(
158
159
  text-overflow: ellipsis;
159
160
  }
160
161
 
162
+ [part~='cell'] {
163
+ pointer-events: initial;
164
+ }
165
+
161
166
  [hidden] {
162
167
  display: none !important;
163
168
  }
@@ -237,6 +242,10 @@ registerStyles(
237
242
  transform: none;
238
243
  }
239
244
 
245
+ [first-frozen-to-end] {
246
+ margin-inline-start: auto;
247
+ }
248
+
240
249
  /* Hide resize handle if scrolled to end */
241
250
  :host(:not([overflow~='end'])) [first-frozen-to-end] [part~='resize-handle'] {
242
251
  display: none;
@@ -37,6 +37,7 @@ export const StylingMixin = (superClass) =>
37
37
  return ['__cellClassNameGeneratorChanged(cellClassNameGenerator)'];
38
38
  }
39
39
 
40
+ /** @private */
40
41
  __cellClassNameGeneratorChanged() {
41
42
  this.generateCellClassNames();
42
43
  }
@@ -297,31 +297,33 @@ export interface GridEventMap<TItem> extends HTMLElementEventMap, GridCustomEven
297
297
  *
298
298
  * The following state attributes are available for styling:
299
299
  *
300
- * Attribute | Description | Part name
301
- * -------------|-------------|------------
302
- * `loading` | Set when the grid is loading data from data provider | :host
303
- * `interacting` | Keyboard navigation in interaction mode | :host
304
- * `navigating` | Keyboard navigation in navigation mode | :host
305
- * `overflow` | Set when rows are overflowing the grid viewport. Possible values: `top`, `bottom`, `start`, `end` | :host
306
- * `reordering` | Set when the grid's columns are being reordered | :host
307
- * `dragover` | Set when the grid (not a specific row) is dragged over | :host
308
- * `dragging-rows` : Set when grid rows are dragged | :host
309
- * `reorder-status` | Reflects the status of a cell while columns are being reordered | cell
310
- * `frozen` | Frozen cell | cell
311
- * `last-frozen` | Last frozen cell | cell
312
- * `first-column` | First visible cell on a row | cell
313
- * `last-column` | Last visible cell on a row | cell
314
- * `selected` | Selected row | row
315
- * `expanded` | Expanded row | row
316
- * `details-opened` | Row with details open | row
317
- * `loading` | Row that is waiting for data from data provider | row
318
- * `odd` | Odd row | row
319
- * `first` | The first body row | row
320
- * `last` | The last body row | row
321
- * `dragstart` | Set for one frame when drag of a row is starting. The value is a number when multiple rows are dragged | row
322
- * `dragover` | Set when the row is dragged over | row
323
- * `drag-disabled` | Set to a row that isn't available for dragging | row
324
- * `drop-disabled` | Set to a row that can't be dropped on top of | row
300
+ * Attribute | Description | Part name
301
+ * -----------------------|---------------------------------------------------------------------------------------------------|-----------
302
+ * `loading` | Set when the grid is loading data from data provider | :host
303
+ * `interacting` | Keyboard navigation in interaction mode | :host
304
+ * `navigating` | Keyboard navigation in navigation mode | :host
305
+ * `overflow` | Set when rows are overflowing the grid viewport. Possible values: `top`, `bottom`, `start`, `end` | :host
306
+ * `reordering` | Set when the grid's columns are being reordered | :host
307
+ * `dragover` | Set when the grid (not a specific row) is dragged over | :host
308
+ * `dragging-rows` | Set when grid rows are dragged | :host
309
+ * `reorder-status` | Reflects the status of a cell while columns are being reordered | cell
310
+ * `frozen` | Frozen cell | cell
311
+ * `frozen-to-end` | Cell frozen to end | cell
312
+ * `last-frozen` | Last frozen cell | cell
313
+ * `first-frozen-to-end` | First cell frozen to end | cell
314
+ * `first-column` | First visible cell on a row | cell
315
+ * `last-column` | Last visible cell on a row | cell
316
+ * `selected` | Selected row | row
317
+ * `expanded` | Expanded row | row
318
+ * `details-opened` | Row with details open | row
319
+ * `loading` | Row that is waiting for data from data provider | row
320
+ * `odd` | Odd row | row
321
+ * `first` | The first body row | row
322
+ * `last` | The last body row | row
323
+ * `dragstart` | Set for one frame when starting to drag a row. The value is a number when dragging multiple rows | row
324
+ * `dragover` | Set when the row is dragged over | row
325
+ * `drag-disabled` | Set to a row that isn't available for dragging | row
326
+ * `drop-disabled` | Set to a row that can't be dropped on top of | row
325
327
  *
326
328
  * See [Styling Components](https://vaadin.com/docs/latest/ds/customization/styling-components) documentation.
327
329
  *
@@ -183,31 +183,33 @@ import { StylingMixin } from './vaadin-grid-styling-mixin.js';
183
183
  *
184
184
  * The following state attributes are available for styling:
185
185
  *
186
- * Attribute | Description | Part name
187
- * -------------|-------------|------------
188
- * `loading` | Set when the grid is loading data from data provider | :host
189
- * `interacting` | Keyboard navigation in interaction mode | :host
190
- * `navigating` | Keyboard navigation in navigation mode | :host
191
- * `overflow` | Set when rows are overflowing the grid viewport. Possible values: `top`, `bottom`, `start`, `end` | :host
192
- * `reordering` | Set when the grid's columns are being reordered | :host
193
- * `dragover` | Set when the grid (not a specific row) is dragged over | :host
194
- * `dragging-rows` : Set when grid rows are dragged | :host
195
- * `reorder-status` | Reflects the status of a cell while columns are being reordered | cell
196
- * `frozen` | Frozen cell | cell
197
- * `last-frozen` | Last frozen cell | cell
198
- * `first-column` | First visible cell on a row | cell
199
- * `last-column` | Last visible cell on a row | cell
200
- * `selected` | Selected row | row
201
- * `expanded` | Expanded row | row
202
- * `details-opened` | Row with details open | row
203
- * `loading` | Row that is waiting for data from data provider | row
204
- * `odd` | Odd row | row
205
- * `first` | The first body row | row
206
- * `last` | The last body row | row
207
- * `dragstart` | Set for one frame when drag of a row is starting. The value is a number when multiple rows are dragged | row
208
- * `dragover` | Set when the row is dragged over | row
209
- * `drag-disabled` | Set to a row that isn't available for dragging | row
210
- * `drop-disabled` | Set to a row that can't be dropped on top of | row
186
+ * Attribute | Description | Part name
187
+ * ----------------------|---------------------------------------------------------------------------------------------------|-----------
188
+ * `loading` | Set when the grid is loading data from data provider | :host
189
+ * `interacting` | Keyboard navigation in interaction mode | :host
190
+ * `navigating` | Keyboard navigation in navigation mode | :host
191
+ * `overflow` | Set when rows are overflowing the grid viewport. Possible values: `top`, `bottom`, `start`, `end` | :host
192
+ * `reordering` | Set when the grid's columns are being reordered | :host
193
+ * `dragover` | Set when the grid (not a specific row) is dragged over | :host
194
+ * `dragging-rows` | Set when grid rows are dragged | :host
195
+ * `reorder-status` | Reflects the status of a cell while columns are being reordered | cell
196
+ * `frozen` | Frozen cell | cell
197
+ * `frozen-to-end` | Cell frozen to end | cell
198
+ * `last-frozen` | Last frozen cell | cell
199
+ * `first-frozen-to-end` | First cell frozen to end | cell
200
+ * `first-column` | First visible cell on a row | cell
201
+ * `last-column` | Last visible cell on a row | cell
202
+ * `selected` | Selected row | row
203
+ * `expanded` | Expanded row | row
204
+ * `details-opened` | Row with details open | row
205
+ * `loading` | Row that is waiting for data from data provider | row
206
+ * `odd` | Odd row | row
207
+ * `first` | The first body row | row
208
+ * `last` | The last body row | row
209
+ * `dragstart` | Set for one frame when starting to drag a row. The value is a number when dragging multiple rows | row
210
+ * `dragover` | Set when the row is dragged over | row
211
+ * `drag-disabled` | Set to a row that isn't available for dragging | row
212
+ * `drop-disabled` | Set to a row that can't be dropped on top of | row
211
213
  *
212
214
  * See [Styling Components](https://vaadin.com/docs/latest/ds/customization/styling-components) documentation.
213
215
  *
@@ -901,6 +903,7 @@ class Grid extends ElementMixin(
901
903
  this.generateCellClassNames();
902
904
  }
903
905
 
906
+ /** @private */
904
907
  __updateFooterPositioning() {
905
908
  // TODO: fixed in Firefox 99, remove when we can drop Firefox ESR 91 support
906
909
  if (this._firefox && parseFloat(navigator.userAgent.match(/Firefox\/(\d{2,3}.\d)/)[1]) < 99) {