@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.
|
|
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.
|
|
48
|
-
"@vaadin/component-base": "~23.1.
|
|
49
|
-
"@vaadin/lit-renderer": "~23.1.
|
|
50
|
-
"@vaadin/text-field": "~23.1.
|
|
51
|
-
"@vaadin/vaadin-lumo-styles": "~23.1.
|
|
52
|
-
"@vaadin/vaadin-material-styles": "~23.1.
|
|
53
|
-
"@vaadin/vaadin-themable-mixin": "~23.1.
|
|
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.
|
|
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": "
|
|
62
|
+
"gitHead": "3065d26b1e7417c4efed0eb72c54e429031dc86c"
|
|
63
63
|
}
|
|
@@ -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;
|
package/src/vaadin-grid.d.ts
CHANGED
|
@@ -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
|
|
301
|
-
*
|
|
302
|
-
* `loading`
|
|
303
|
-
* `interacting`
|
|
304
|
-
* `navigating`
|
|
305
|
-
* `overflow`
|
|
306
|
-
* `reordering`
|
|
307
|
-
* `dragover`
|
|
308
|
-
* `dragging-rows`
|
|
309
|
-
* `reorder-status`
|
|
310
|
-
* `frozen`
|
|
311
|
-
* `
|
|
312
|
-
* `
|
|
313
|
-
* `
|
|
314
|
-
* `
|
|
315
|
-
* `
|
|
316
|
-
* `
|
|
317
|
-
* `
|
|
318
|
-
* `
|
|
319
|
-
* `
|
|
320
|
-
* `
|
|
321
|
-
* `
|
|
322
|
-
* `
|
|
323
|
-
* `
|
|
324
|
-
* `
|
|
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
|
*
|
package/src/vaadin-grid.js
CHANGED
|
@@ -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
|
|
187
|
-
*
|
|
188
|
-
* `loading`
|
|
189
|
-
* `interacting`
|
|
190
|
-
* `navigating`
|
|
191
|
-
* `overflow`
|
|
192
|
-
* `reordering`
|
|
193
|
-
* `dragover`
|
|
194
|
-
* `dragging-rows`
|
|
195
|
-
* `reorder-status`
|
|
196
|
-
* `frozen`
|
|
197
|
-
* `
|
|
198
|
-
* `
|
|
199
|
-
* `
|
|
200
|
-
* `
|
|
201
|
-
* `
|
|
202
|
-
* `
|
|
203
|
-
* `
|
|
204
|
-
* `
|
|
205
|
-
* `
|
|
206
|
-
* `
|
|
207
|
-
* `
|
|
208
|
-
* `
|
|
209
|
-
* `
|
|
210
|
-
* `
|
|
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) {
|