@descope/web-components-ui 1.0.234 → 1.0.236
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/index.cjs.js +770 -647
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.esm.js +754 -632
- package/dist/index.esm.js.map +1 -1
- package/dist/umd/{4513.js → 1721.js} +1 -1
- package/dist/umd/3003.js +1 -1
- package/dist/umd/3092.js +23 -18
- package/dist/umd/322.js +90 -0
- package/dist/umd/4226.js +1 -1
- package/dist/umd/4447.js +1 -2
- package/dist/umd/5345.js +1 -1
- package/dist/umd/5517.js +2 -0
- package/dist/umd/5806.js +3 -3
- package/dist/umd/5977.js +18 -13
- package/dist/umd/6091.js +1 -1
- package/dist/umd/6542.js +22 -22
- package/dist/umd/6770.js +2 -2
- package/dist/umd/7531.js +77 -6
- package/dist/umd/849.js +744 -0
- package/dist/umd/849.js.LICENSE.txt +11 -0
- package/dist/umd/8623.js +2 -0
- package/dist/umd/8725.js +2 -2
- package/dist/umd/{1990.js → 9092.js} +21 -17
- package/dist/umd/9211.js +33 -19
- package/dist/umd/{7514.js → 9558.js} +128 -110
- package/dist/umd/descope-badge-index-js.js +1 -0
- package/dist/umd/descope-button-index-js.js +1 -1
- package/dist/umd/descope-date-picker-index-js.js +1 -1
- package/dist/umd/descope-grid-descope-grid-selection-column-index-js.js +1 -1
- package/dist/umd/descope-grid-descope-grid-status-column-index-js.js +1 -1
- package/dist/umd/descope-grid-descope-grid-text-column-index-js.js +1 -1
- package/dist/umd/descope-grid-index-js.js +1 -1
- package/dist/umd/index.js +1 -1
- package/package.json +14 -13
- package/src/components/descope-badge/BadgeClass.js +54 -0
- package/src/components/descope-badge/index.js +5 -0
- package/src/index.cjs.js +1 -0
- package/src/index.d.ts +1 -0
- package/src/theme/components/badge.js +71 -0
- package/src/theme/components/index.js +2 -0
- package/dist/umd/2873.js +0 -738
- package/dist/umd/2873.js.LICENSE.txt +0 -21
- package/dist/umd/446.js +0 -92
- package/dist/umd/729.js +0 -1
- package/dist/umd/9629.js +0 -2
- package/dist/umd/9671.js +0 -1
- /package/dist/umd/{4447.js.LICENSE.txt → 322.js.LICENSE.txt} +0 -0
- /package/dist/umd/{446.js.LICENSE.txt → 5517.js.LICENSE.txt} +0 -0
- /package/dist/umd/{9629.js.LICENSE.txt → 8623.js.LICENSE.txt} +0 -0
- /package/dist/umd/{1990.js.LICENSE.txt → 9092.js.LICENSE.txt} +0 -0
- /package/dist/umd/{7514.js.LICENSE.txt → 9558.js.LICENSE.txt} +0 -0
package/dist/umd/849.js
ADDED
@@ -0,0 +1,744 @@
|
|
1
|
+
/*! For license information please see 849.js.LICENSE.txt */
|
2
|
+
"use strict";(self.webpackChunkDescopeUI=self.webpackChunkDescopeUI||[]).push([[849],{849:(e,t,r)=>{r(1195),r(1735),r(9098),r(9416),r(9849),r(4173),r(8473);var i=r(6570);(0,i.hC)("vaadin-grid",i.iv`
|
3
|
+
:host {
|
4
|
+
font-family: var(--lumo-font-family);
|
5
|
+
font-size: var(--lumo-font-size-m);
|
6
|
+
line-height: var(--lumo-line-height-s);
|
7
|
+
color: var(--lumo-body-text-color);
|
8
|
+
background-color: var(--lumo-base-color);
|
9
|
+
box-sizing: border-box;
|
10
|
+
-webkit-text-size-adjust: 100%;
|
11
|
+
-webkit-tap-highlight-color: transparent;
|
12
|
+
-webkit-font-smoothing: antialiased;
|
13
|
+
-moz-osx-font-smoothing: grayscale;
|
14
|
+
--_focus-ring-color: var(--vaadin-focus-ring-color, var(--lumo-primary-color-50pct));
|
15
|
+
--_focus-ring-width: var(--vaadin-focus-ring-width, 2px);
|
16
|
+
/* For internal use only */
|
17
|
+
--_lumo-grid-border-color: var(--lumo-contrast-20pct);
|
18
|
+
--_lumo-grid-secondary-border-color: var(--lumo-contrast-10pct);
|
19
|
+
--_lumo-grid-border-width: 1px;
|
20
|
+
--_lumo-grid-selected-row-color: var(--lumo-primary-color-10pct);
|
21
|
+
}
|
22
|
+
|
23
|
+
/* No (outer) border */
|
24
|
+
|
25
|
+
:host(:not([theme~='no-border'])) {
|
26
|
+
border: var(--_lumo-grid-border-width) solid var(--_lumo-grid-border-color);
|
27
|
+
}
|
28
|
+
|
29
|
+
:host([disabled]) {
|
30
|
+
opacity: 0.7;
|
31
|
+
}
|
32
|
+
|
33
|
+
/* Cell styles */
|
34
|
+
|
35
|
+
[part~='cell'] {
|
36
|
+
min-height: var(--lumo-size-m);
|
37
|
+
background-color: var(--vaadin-grid-cell-background, var(--lumo-base-color));
|
38
|
+
cursor: default;
|
39
|
+
--_cell-padding: var(--vaadin-grid-cell-padding, var(--_cell-default-padding));
|
40
|
+
--_cell-default-padding: var(--lumo-space-xs) var(--lumo-space-m);
|
41
|
+
}
|
42
|
+
|
43
|
+
[part~='cell'] ::slotted(vaadin-grid-cell-content) {
|
44
|
+
cursor: inherit;
|
45
|
+
padding: var(--_cell-padding);
|
46
|
+
}
|
47
|
+
|
48
|
+
/* Apply row borders by default and introduce the "no-row-borders" variant */
|
49
|
+
:host(:not([theme~='no-row-borders'])) [part~='cell']:not([part~='details-cell']) {
|
50
|
+
border-top: var(--_lumo-grid-border-width) solid var(--_lumo-grid-secondary-border-color);
|
51
|
+
}
|
52
|
+
|
53
|
+
/* Hide first body row top border */
|
54
|
+
:host(:not([theme~='no-row-borders'])) [part~='first-row'] [part~='cell']:not([part~='details-cell']) {
|
55
|
+
border-top: 0;
|
56
|
+
min-height: calc(var(--lumo-size-m) - var(--_lumo-grid-border-width));
|
57
|
+
}
|
58
|
+
|
59
|
+
/* Focus-ring */
|
60
|
+
|
61
|
+
[part~='row'] {
|
62
|
+
position: relative;
|
63
|
+
}
|
64
|
+
|
65
|
+
[part~='row']:focus,
|
66
|
+
[part~='focused-cell']:focus {
|
67
|
+
outline: none;
|
68
|
+
}
|
69
|
+
|
70
|
+
:host([navigating]) [part~='row']:focus::before,
|
71
|
+
:host([navigating]) [part~='focused-cell']:focus::before {
|
72
|
+
content: '';
|
73
|
+
position: absolute;
|
74
|
+
inset: 0;
|
75
|
+
pointer-events: none;
|
76
|
+
box-shadow: inset 0 0 0 var(--_focus-ring-width) var(--_focus-ring-color);
|
77
|
+
}
|
78
|
+
|
79
|
+
:host([navigating]) [part~='row']:focus::before {
|
80
|
+
transform: translateX(calc(-1 * var(--_grid-horizontal-scroll-position)));
|
81
|
+
z-index: 3;
|
82
|
+
}
|
83
|
+
|
84
|
+
/* Drag and Drop styles */
|
85
|
+
:host([dragover])::after {
|
86
|
+
content: '';
|
87
|
+
position: absolute;
|
88
|
+
z-index: 100;
|
89
|
+
inset: 0;
|
90
|
+
pointer-events: none;
|
91
|
+
box-shadow: inset 0 0 0 var(--_focus-ring-width) var(--_focus-ring-color);
|
92
|
+
}
|
93
|
+
|
94
|
+
[part~='row'][dragover] {
|
95
|
+
z-index: 100 !important;
|
96
|
+
}
|
97
|
+
|
98
|
+
[part~='row'][dragover] [part~='cell'] {
|
99
|
+
overflow: visible;
|
100
|
+
}
|
101
|
+
|
102
|
+
[part~='row'][dragover] [part~='cell']::after {
|
103
|
+
content: '';
|
104
|
+
position: absolute;
|
105
|
+
inset: 0;
|
106
|
+
height: calc(var(--_lumo-grid-border-width) + 2px);
|
107
|
+
pointer-events: none;
|
108
|
+
background: var(--lumo-primary-color-50pct);
|
109
|
+
}
|
110
|
+
|
111
|
+
[part~='row'][dragover] [part~='cell'][last-frozen]::after {
|
112
|
+
right: -1px;
|
113
|
+
}
|
114
|
+
|
115
|
+
:host([theme~='no-row-borders']) [dragover] [part~='cell']::after {
|
116
|
+
height: 2px;
|
117
|
+
}
|
118
|
+
|
119
|
+
[part~='row'][dragover='below'] [part~='cell']::after {
|
120
|
+
top: 100%;
|
121
|
+
bottom: auto;
|
122
|
+
margin-top: -1px;
|
123
|
+
}
|
124
|
+
|
125
|
+
:host([all-rows-visible]) [part~='last-row'][dragover='below'] [part~='cell']::after {
|
126
|
+
height: 1px;
|
127
|
+
}
|
128
|
+
|
129
|
+
[part~='row'][dragover='above'] [part~='cell']::after {
|
130
|
+
top: auto;
|
131
|
+
bottom: 100%;
|
132
|
+
margin-bottom: -1px;
|
133
|
+
}
|
134
|
+
|
135
|
+
[part~='row'][details-opened][dragover='below'] [part~='cell']:not([part~='details-cell'])::after,
|
136
|
+
[part~='row'][details-opened][dragover='above'] [part~='details-cell']::after {
|
137
|
+
display: none;
|
138
|
+
}
|
139
|
+
|
140
|
+
[part~='row'][dragover][dragover='on-top'] [part~='cell']::after {
|
141
|
+
height: 100%;
|
142
|
+
opacity: 0.5;
|
143
|
+
}
|
144
|
+
|
145
|
+
[part~='row'][dragstart] [part~='cell'] {
|
146
|
+
border: none !important;
|
147
|
+
box-shadow: none !important;
|
148
|
+
}
|
149
|
+
|
150
|
+
[part~='row'][dragstart] [part~='cell'][last-column] {
|
151
|
+
border-radius: 0 var(--lumo-border-radius-s) var(--lumo-border-radius-s) 0;
|
152
|
+
}
|
153
|
+
|
154
|
+
[part~='row'][dragstart] [part~='cell'][first-column] {
|
155
|
+
border-radius: var(--lumo-border-radius-s) 0 0 var(--lumo-border-radius-s);
|
156
|
+
}
|
157
|
+
|
158
|
+
#scroller [part~='row'][dragstart]:not([dragstart=''])::after {
|
159
|
+
display: block;
|
160
|
+
position: absolute;
|
161
|
+
left: var(--_grid-drag-start-x);
|
162
|
+
top: var(--_grid-drag-start-y);
|
163
|
+
z-index: 100;
|
164
|
+
content: attr(dragstart);
|
165
|
+
align-items: center;
|
166
|
+
justify-content: center;
|
167
|
+
box-sizing: border-box;
|
168
|
+
padding: calc(var(--lumo-space-xs) * 0.8);
|
169
|
+
color: var(--lumo-error-contrast-color);
|
170
|
+
background-color: var(--lumo-error-color);
|
171
|
+
border-radius: var(--lumo-border-radius-m);
|
172
|
+
font-family: var(--lumo-font-family);
|
173
|
+
font-size: var(--lumo-font-size-xxs);
|
174
|
+
line-height: 1;
|
175
|
+
font-weight: 500;
|
176
|
+
text-transform: initial;
|
177
|
+
letter-spacing: initial;
|
178
|
+
min-width: calc(var(--lumo-size-s) * 0.7);
|
179
|
+
text-align: center;
|
180
|
+
}
|
181
|
+
|
182
|
+
/* Headers and footers */
|
183
|
+
|
184
|
+
[part~='header-cell'],
|
185
|
+
[part~='footer-cell'],
|
186
|
+
[part~='reorder-ghost'] {
|
187
|
+
font-size: var(--lumo-font-size-s);
|
188
|
+
font-weight: 500;
|
189
|
+
}
|
190
|
+
|
191
|
+
[part~='footer-cell'] {
|
192
|
+
font-weight: 400;
|
193
|
+
}
|
194
|
+
|
195
|
+
[part~='row']:only-child [part~='header-cell'] {
|
196
|
+
min-height: var(--lumo-size-xl);
|
197
|
+
}
|
198
|
+
|
199
|
+
/* Header borders */
|
200
|
+
|
201
|
+
/* Hide first header row top border */
|
202
|
+
:host(:not([theme~='no-row-borders'])) [part~='row']:first-child [part~='header-cell'] {
|
203
|
+
border-top: 0;
|
204
|
+
}
|
205
|
+
|
206
|
+
/* Hide header row top border if previous row is hidden */
|
207
|
+
[part~='row'][hidden] + [part~='row'] [part~='header-cell'] {
|
208
|
+
border-top: 0;
|
209
|
+
}
|
210
|
+
|
211
|
+
[part~='row']:last-child [part~='header-cell'] {
|
212
|
+
border-bottom: var(--_lumo-grid-border-width) solid transparent;
|
213
|
+
}
|
214
|
+
|
215
|
+
:host(:not([theme~='no-row-borders'])) [part~='row']:last-child [part~='header-cell'] {
|
216
|
+
border-bottom-color: var(--_lumo-grid-secondary-border-color);
|
217
|
+
}
|
218
|
+
|
219
|
+
/* Overflow uses a stronger border color */
|
220
|
+
:host([overflow~='top']) [part~='row']:last-child [part~='header-cell'] {
|
221
|
+
border-bottom-color: var(--_lumo-grid-border-color);
|
222
|
+
}
|
223
|
+
|
224
|
+
/* Footer borders */
|
225
|
+
|
226
|
+
[part~='row']:first-child [part~='footer-cell'] {
|
227
|
+
border-top: var(--_lumo-grid-border-width) solid transparent;
|
228
|
+
}
|
229
|
+
|
230
|
+
:host(:not([theme~='no-row-borders'])) [part~='row']:first-child [part~='footer-cell'] {
|
231
|
+
border-top-color: var(--_lumo-grid-secondary-border-color);
|
232
|
+
}
|
233
|
+
|
234
|
+
/* Overflow uses a stronger border color */
|
235
|
+
:host([overflow~='bottom']) [part~='row']:first-child [part~='footer-cell'] {
|
236
|
+
border-top-color: var(--_lumo-grid-border-color);
|
237
|
+
}
|
238
|
+
|
239
|
+
/* Column reordering */
|
240
|
+
|
241
|
+
:host([reordering]) [part~='cell'] {
|
242
|
+
background: linear-gradient(var(--lumo-shade-20pct), var(--lumo-shade-20pct)) var(--lumo-base-color);
|
243
|
+
}
|
244
|
+
|
245
|
+
:host([reordering]) [part~='cell'][reorder-status='allowed'] {
|
246
|
+
background: var(--lumo-base-color);
|
247
|
+
}
|
248
|
+
|
249
|
+
:host([reordering]) [part~='cell'][reorder-status='dragging'] {
|
250
|
+
background: linear-gradient(var(--lumo-contrast-5pct), var(--lumo-contrast-5pct)) var(--lumo-base-color);
|
251
|
+
}
|
252
|
+
|
253
|
+
[part~='reorder-ghost'] {
|
254
|
+
opacity: 0.85;
|
255
|
+
box-shadow: var(--lumo-box-shadow-s);
|
256
|
+
/* TODO Use the same styles as for the cell element (reorder-ghost copies styles from the cell element) */
|
257
|
+
padding: var(--lumo-space-s) var(--lumo-space-m) !important;
|
258
|
+
}
|
259
|
+
|
260
|
+
/* Column resizing */
|
261
|
+
|
262
|
+
[part='resize-handle'] {
|
263
|
+
width: 3px;
|
264
|
+
background-color: var(--lumo-primary-color-50pct);
|
265
|
+
opacity: 0;
|
266
|
+
transition: opacity 0.2s;
|
267
|
+
}
|
268
|
+
|
269
|
+
:host(:not([reordering])) *:not([column-resizing]) [part~='cell']:hover [part='resize-handle'],
|
270
|
+
[part='resize-handle']:active {
|
271
|
+
opacity: 1;
|
272
|
+
transition-delay: 0.15s;
|
273
|
+
}
|
274
|
+
|
275
|
+
/* Column borders */
|
276
|
+
|
277
|
+
:host([theme~='column-borders']) [part~='cell']:not([last-column]):not([part~='details-cell']) {
|
278
|
+
border-right: var(--_lumo-grid-border-width) solid var(--_lumo-grid-secondary-border-color);
|
279
|
+
}
|
280
|
+
|
281
|
+
/* Frozen columns */
|
282
|
+
|
283
|
+
[last-frozen] {
|
284
|
+
border-right: var(--_lumo-grid-border-width) solid transparent;
|
285
|
+
overflow: hidden;
|
286
|
+
}
|
287
|
+
|
288
|
+
:host([overflow~='start']) [part~='cell'][last-frozen]:not([part~='details-cell']) {
|
289
|
+
border-right-color: var(--_lumo-grid-border-color);
|
290
|
+
}
|
291
|
+
|
292
|
+
[first-frozen-to-end] {
|
293
|
+
border-left: var(--_lumo-grid-border-width) solid transparent;
|
294
|
+
}
|
295
|
+
|
296
|
+
:host([overflow~='end']) [part~='cell'][first-frozen-to-end]:not([part~='details-cell']) {
|
297
|
+
border-left-color: var(--_lumo-grid-border-color);
|
298
|
+
}
|
299
|
+
|
300
|
+
/* Row stripes */
|
301
|
+
|
302
|
+
:host([theme~='row-stripes']) [part~='even-row'] [part~='body-cell'],
|
303
|
+
:host([theme~='row-stripes']) [part~='even-row'] [part~='details-cell'] {
|
304
|
+
background-image: linear-gradient(var(--lumo-contrast-5pct), var(--lumo-contrast-5pct));
|
305
|
+
background-repeat: repeat-x;
|
306
|
+
}
|
307
|
+
|
308
|
+
/* Selected row */
|
309
|
+
|
310
|
+
/* Raise the selected rows above unselected rows (so that box-shadow can cover unselected rows) */
|
311
|
+
:host(:not([reordering])) [part~='row'][selected] {
|
312
|
+
z-index: 1;
|
313
|
+
}
|
314
|
+
|
315
|
+
:host(:not([reordering])) [part~='row'][selected] [part~='body-cell']:not([part~='details-cell']) {
|
316
|
+
background-image: linear-gradient(var(--_lumo-grid-selected-row-color), var(--_lumo-grid-selected-row-color));
|
317
|
+
background-repeat: repeat;
|
318
|
+
}
|
319
|
+
|
320
|
+
/* Cover the border of an unselected row */
|
321
|
+
:host(:not([theme~='no-row-borders'])) [part~='row'][selected] [part~='cell']:not([part~='details-cell']) {
|
322
|
+
box-shadow: 0 var(--_lumo-grid-border-width) 0 0 var(--_lumo-grid-selected-row-color);
|
323
|
+
}
|
324
|
+
|
325
|
+
/* Compact */
|
326
|
+
|
327
|
+
:host([theme~='compact']) [part~='row']:only-child [part~='header-cell'] {
|
328
|
+
min-height: var(--lumo-size-m);
|
329
|
+
}
|
330
|
+
|
331
|
+
:host([theme~='compact']) [part~='cell'] {
|
332
|
+
min-height: var(--lumo-size-s);
|
333
|
+
--_cell-default-padding: var(--lumo-space-xs) var(--lumo-space-s);
|
334
|
+
}
|
335
|
+
|
336
|
+
:host([theme~='compact']) [part~='first-row'] [part~='cell']:not([part~='details-cell']) {
|
337
|
+
min-height: calc(var(--lumo-size-s) - var(--_lumo-grid-border-width));
|
338
|
+
}
|
339
|
+
|
340
|
+
/* Wrap cell contents */
|
341
|
+
|
342
|
+
:host([theme~='wrap-cell-content']) [part~='cell'] ::slotted(vaadin-grid-cell-content) {
|
343
|
+
white-space: normal;
|
344
|
+
}
|
345
|
+
|
346
|
+
/* RTL specific styles */
|
347
|
+
|
348
|
+
:host([dir='rtl']) [part~='row'][dragstart] [part~='cell'][last-column] {
|
349
|
+
border-radius: var(--lumo-border-radius-s) 0 0 var(--lumo-border-radius-s);
|
350
|
+
}
|
351
|
+
|
352
|
+
:host([dir='rtl']) [part~='row'][dragstart] [part~='cell'][first-column] {
|
353
|
+
border-radius: 0 var(--lumo-border-radius-s) var(--lumo-border-radius-s) 0;
|
354
|
+
}
|
355
|
+
|
356
|
+
:host([dir='rtl'][theme~='column-borders']) [part~='cell']:not([last-column]):not([part~='details-cell']) {
|
357
|
+
border-right: none;
|
358
|
+
border-left: var(--_lumo-grid-border-width) solid var(--_lumo-grid-secondary-border-color);
|
359
|
+
}
|
360
|
+
|
361
|
+
:host([dir='rtl']) [last-frozen] {
|
362
|
+
border-right: none;
|
363
|
+
border-left: var(--_lumo-grid-border-width) solid transparent;
|
364
|
+
}
|
365
|
+
|
366
|
+
:host([dir='rtl']) [first-frozen-to-end] {
|
367
|
+
border-left: none;
|
368
|
+
border-right: var(--_lumo-grid-border-width) solid transparent;
|
369
|
+
}
|
370
|
+
|
371
|
+
:host([dir='rtl'][overflow~='start']) [part~='cell'][last-frozen]:not([part~='details-cell']) {
|
372
|
+
border-left-color: var(--_lumo-grid-border-color);
|
373
|
+
}
|
374
|
+
|
375
|
+
:host([dir='rtl'][overflow~='end']) [part~='cell'][first-frozen-to-end]:not([part~='details-cell']) {
|
376
|
+
border-right-color: var(--_lumo-grid-border-color);
|
377
|
+
}
|
378
|
+
`,{moduleId:"lumo-grid"}),r(5517);var o=r(4241),s=r(6155),a=r(2807),n=r(2521),l=r(3550),d=r(8298),h=r(7913),c=r(1037),_=r(6139),u=r(3726),p=r(262),g=r(4463),m=r(3003),f=r(4346);const b=e=>class extends e{static get observers(){return["_a11yUpdateGridSize(size, _columnTree)"]}_a11yGetHeaderRowCount(e){return e.filter((e=>e.some((e=>e.headerRenderer||e.path||e.header)))).length}_a11yGetFooterRowCount(e){return e.filter((e=>e.some((e=>e.headerRenderer)))).length}_a11yUpdateGridSize(e,t){if(void 0===e||void 0===t)return;const r=t[t.length-1];this.$.table.setAttribute("aria-rowcount",e+this._a11yGetHeaderRowCount(t)+this._a11yGetFooterRowCount(t)),this.$.table.setAttribute("aria-colcount",r&&r.length||0),this._a11yUpdateHeaderRows(),this._a11yUpdateFooterRows()}_a11yUpdateHeaderRows(){(0,f.pj)(this.$.header,((e,t)=>{e.setAttribute("aria-rowindex",t+1)}))}_a11yUpdateFooterRows(){(0,f.pj)(this.$.footer,((e,t)=>{e.setAttribute("aria-rowindex",this._a11yGetHeaderRowCount(this._columnTree)+this.size+t+1)}))}_a11yUpdateRowRowindex(e,t){e.setAttribute("aria-rowindex",t+this._a11yGetHeaderRowCount(this._columnTree)+1)}_a11yUpdateRowSelected(e,t){e.setAttribute("aria-selected",Boolean(t)),(0,f.CL)(e,(e=>{e.setAttribute("aria-selected",Boolean(t))}))}_a11yUpdateRowExpanded(e){this.__isRowExpandable(e)?e.setAttribute("aria-expanded","false"):this.__isRowCollapsible(e)?e.setAttribute("aria-expanded","true"):e.removeAttribute("aria-expanded")}_a11yUpdateRowLevel(e,t){t>0||this.__isRowCollapsible(e)||this.__isRowExpandable(e)?e.setAttribute("aria-level",t+1):e.removeAttribute("aria-level")}_a11ySetRowDetailsCell(e,t){(0,f.CL)(e,(e=>{e!==t&&e.setAttribute("aria-controls",t.id)}))}_a11yUpdateCellColspan(e,t){e.setAttribute("aria-colspan",Number(t))}_a11yUpdateSorters(){Array.from(this.querySelectorAll("vaadin-grid-sorter")).forEach((e=>{let t=e.parentNode;for(;t&&"vaadin-grid-cell-content"!==t.localName;)t=t.parentNode;t&&t.assignedSlot&&t.assignedSlot.parentNode.setAttribute("aria-sort",{asc:"ascending",desc:"descending"}[String(e.direction)]||"none")}))}},v=e=>class extends e{static get properties(){return{activeItem:{type:Object,notify:!0,value:null,sync:!0}}}ready(){super.ready(),this.$.scroller.addEventListener("click",this._onClick.bind(this)),this.addEventListener("cell-activate",this._activateItem.bind(this)),this.addEventListener("row-activate",this._activateItem.bind(this))}_activateItem(e){const t=e.detail.model,r=t?t.item:null;r&&(this.activeItem=this._itemsEqual(this.activeItem,r)?null:r)}_onClick(e){if(e.defaultPrevented)return;const t=e.composedPath(),r=t[t.indexOf(this.$.table)-3];if(!r||r.getAttribute("part").indexOf("details-cell")>-1)return;const i=r._content,o=this.getRootNode().activeElement;i.contains(o)||this._isFocusable(e.target)||e.target instanceof HTMLLabelElement||this.dispatchEvent(new CustomEvent("cell-activate",{detail:{model:this.__getRowModel(r.parentElement)}}))}_isFocusable(e){return(e=>{if(!e.parentNode)return!1;const t=Array.from(e.parentNode.querySelectorAll("[tabindex], button, input, select, textarea, object, iframe, a[href], area[href]")).filter((e=>{const t=e.getAttribute("part");return!(t&&t.includes("body-cell"))})).includes(e);return!e.disabled&&t&&e.offsetParent&&"hidden"!==getComputedStyle(e).visibility})(e)}};function C(e,t){return e.split(".").reduce(((e,t)=>e[t]),t)}function w(e,t,r){if(0===r.length)return!1;let i=!0;return e.forEach((({path:e})=>{e&&-1!==e.indexOf(".")&&void 0===C(e.replace(/\.[^.]*$/u,""),r[0])&&(console.warn(`Path "${e}" used for ${t} does not exist in all of the items, ${t} is disabled.`),i=!1)})),i}function y(e){return[void 0,null].indexOf(e)>=0?"":isNaN(e)?e.toString():e}function x(e,t){return(e=y(e))<(t=y(t))?-1:e>t?1:0}const I=e=>class extends e{static get properties(){return{items:{type:Array,sync:!0}}}static get observers(){return["__dataProviderOrItemsChanged(dataProvider, items, isAttached, _filters, _sorters, items.*)"]}__setArrayDataProvider(e){const t=(r=this.items,(e,t)=>{let i=r?[...r]:[];e.filters&&w(e.filters,"filtering",i)&&(i=function(e,t){return e.filter((e=>t.every((t=>{const r=y(C(t.path,e)),i=y(t.value).toString().toLowerCase();return r.toString().toLowerCase().includes(i)}))))}(i,e.filters)),Array.isArray(e.sortOrders)&&e.sortOrders.length&&w(e.sortOrders,"sorting",i)&&(i=function(e,t){return e.sort(((e,r)=>t.map((t=>"asc"===t.direction?x(C(t.path,e),C(t.path,r)):"desc"===t.direction?x(C(t.path,r),C(t.path,e)):0)).reduce(((e,t)=>0!==e?e:t),0)))}(i,e.sortOrders));const o=Math.min(i.length,e.pageSize),s=e.page*o,a=s+o;t(i.slice(s,a),i.length)});var r;t.__items=e,this._arrayDataProvider=t,this.size=e.length,this.dataProvider=t}__dataProviderOrItemsChanged(e,t,r){r&&(this._arrayDataProvider?e!==this._arrayDataProvider?(this._arrayDataProvider=void 0,this.items=void 0):t?this._arrayDataProvider.__items===t?(this.clearCache(),this.size=this._flatSize):this.__setArrayDataProvider(t):(this._arrayDataProvider=void 0,this.dataProvider=void 0,this.size=0,this.clearCache()):t&&this.__setArrayDataProvider(t))}};var z=r(9109);const S=e=>class extends e{static get properties(){return{columnReorderingAllowed:{type:Boolean,value:!1},_orderBaseScope:{type:Number,value:1e7}}}static get observers(){return["_updateOrders(_columnTree)"]}ready(){super.ready(),(0,z.NH)(this,"track",this._onTrackEvent),this._reorderGhost=this.shadowRoot.querySelector('[part="reorder-ghost"]'),this.addEventListener("touchstart",this._onTouchStart.bind(this)),this.addEventListener("touchmove",this._onTouchMove.bind(this)),this.addEventListener("touchend",this._onTouchEnd.bind(this)),this.addEventListener("contextmenu",this._onContextMenu.bind(this))}_onContextMenu(e){this.hasAttribute("reordering")&&(e.preventDefault(),c.T||this._onTrackEnd())}_onTouchStart(e){this._startTouchReorderTimeout=setTimeout((()=>{this._onTrackStart({detail:{x:e.touches[0].clientX,y:e.touches[0].clientY}})}),100)}_onTouchMove(e){this._draggedColumn&&e.preventDefault(),clearTimeout(this._startTouchReorderTimeout)}_onTouchEnd(){clearTimeout(this._startTouchReorderTimeout),this._onTrackEnd()}_onTrackEvent(e){if("start"===e.detail.state){const t=e.composedPath(),r=t[t.indexOf(this.$.header)-2];if(!r||!r._content)return;if(r._content.contains(this.getRootNode().activeElement))return;if(this.$.scroller.hasAttribute("column-resizing"))return;this._touchDevice||this._onTrackStart(e)}else"track"===e.detail.state?this._onTrack(e):"end"===e.detail.state&&this._onTrackEnd(e)}_onTrackStart(e){if(!this.columnReorderingAllowed)return;const t=e.composedPath&&e.composedPath();if(t&&t.some((e=>e.hasAttribute&&e.hasAttribute("draggable"))))return;const r=this._cellFromPoint(e.detail.x,e.detail.y);if(r&&r.getAttribute("part").includes("header-cell")){for(this.toggleAttribute("reordering",!0),this._draggedColumn=r._column;1===this._draggedColumn.parentElement.childElementCount;)this._draggedColumn=this._draggedColumn.parentElement;this._setSiblingsReorderStatus(this._draggedColumn,"allowed"),this._draggedColumn._reorderStatus="dragging",this._updateGhost(r),this._reorderGhost.style.visibility="visible",this._updateGhostPosition(e.detail.x,this._touchDevice?e.detail.y-50:e.detail.y),this._autoScroller()}}_onTrack(e){if(!this._draggedColumn)return;const t=this._cellFromPoint(e.detail.x,e.detail.y);if(!t)return;const r=this._getTargetColumn(t,this._draggedColumn);if(this._isSwapAllowed(this._draggedColumn,r)&&this._isSwappableByPosition(r,e.detail.x)){const e=this._columnTree.findIndex((e=>e.includes(r))),t=this._getColumnsInOrder(e),i=t.indexOf(this._draggedColumn),o=t.indexOf(r),s=i<o?1:-1;for(let e=i;e!==o;e+=s)this._swapColumnOrders(this._draggedColumn,t[e+s])}this._updateGhostPosition(e.detail.x,this._touchDevice?e.detail.y-50:e.detail.y),this._lastDragClientX=e.detail.x}_onTrackEnd(){this._draggedColumn&&(this.toggleAttribute("reordering",!1),this._draggedColumn._reorderStatus="",this._setSiblingsReorderStatus(this._draggedColumn,""),this._draggedColumn=null,this._lastDragClientX=null,this._reorderGhost.style.visibility="hidden",this.dispatchEvent(new CustomEvent("column-reorder",{detail:{columns:this._getColumnsInOrder()}})))}_getColumnsInOrder(e=this._columnTree.length-1){return this._columnTree[e].filter((e=>!e.hidden)).sort(((e,t)=>e._order-t._order))}_cellFromPoint(e=0,t=0){this._draggedColumn||this.$.scroller.toggleAttribute("no-content-pointer-events",!0);const r=this.shadowRoot.elementFromPoint(e,t);if(this.$.scroller.toggleAttribute("no-content-pointer-events",!1),r&&r._column)return r}_updateGhostPosition(e,t){const r=this._reorderGhost.getBoundingClientRect(),i=e-r.width/2,o=t-r.height/2,s=parseInt(this._reorderGhost._left||0),a=parseInt(this._reorderGhost._top||0);this._reorderGhost._left=s-(r.left-i),this._reorderGhost._top=a-(r.top-o),this._reorderGhost.style.transform=`translate(${this._reorderGhost._left}px, ${this._reorderGhost._top}px)`}_updateGhost(e){const t=this._reorderGhost;t.textContent=e._content.innerText;const r=window.getComputedStyle(e);return["boxSizing","display","width","height","background","alignItems","padding","border","flex-direction","overflow"].forEach((e=>{t.style[e]=r[e]})),t}_updateOrders(e){void 0!==e&&(e[0].forEach((e=>{e._order=0})),(0,f.kp)(e[0],this._orderBaseScope,0))}_setSiblingsReorderStatus(e,t){(0,f.pj)(e.parentNode,(r=>{/column/u.test(r.localName)&&this._isSwapAllowed(r,e)&&(r._reorderStatus=t)}))}_autoScroller(){if(this._lastDragClientX){const e=this._lastDragClientX-this.getBoundingClientRect().right+50,t=this.getBoundingClientRect().left-this._lastDragClientX+50;e>0?this.$.table.scrollLeft+=e/10:t>0&&(this.$.table.scrollLeft-=t/10)}this._draggedColumn&&setTimeout((()=>this._autoScroller()),10)}_isSwapAllowed(e,t){if(e&&t){const r=e!==t,i=e.parentElement===t.parentElement,o=e.frozen&&t.frozen||e.frozenToEnd&&t.frozenToEnd||!e.frozen&&!e.frozenToEnd&&!t.frozen&&!t.frozenToEnd;return r&&i&&o}}_isSwappableByPosition(e,t){const r=Array.from(this.$.header.querySelectorAll('tr:not([hidden]) [part~="cell"]')).find((t=>e.contains(t._column))),i=this.$.header.querySelector("tr:not([hidden]) [reorder-status=dragging]").getBoundingClientRect(),o=r.getBoundingClientRect();return o.left>i.left?t>o.right-i.width:t<o.left+i.width}_swapColumnOrders(e,t){[e._order,t._order]=[t._order,e._order],this._debounceUpdateFrozenColumn(),this._updateFirstAndLastColumn()}_getTargetColumn(e,t){if(e&&t){let r=e._column;for(;r.parentElement!==t.parentElement&&r!==this;)r=r.parentElement;return r.parentElement===t.parentElement?r:e._column}}},E=e=>class extends e{ready(){super.ready();const e=this.$.scroller;(0,z.NH)(e,"track",this._onHeaderTrack.bind(this)),e.addEventListener("touchmove",(t=>e.hasAttribute("column-resizing")&&t.preventDefault())),e.addEventListener("contextmenu",(e=>"resize-handle"===e.target.getAttribute("part")&&e.preventDefault())),e.addEventListener("mousedown",(e=>"resize-handle"===e.target.getAttribute("part")&&e.preventDefault()))}_onHeaderTrack(e){const t=e.target;if("resize-handle"===t.getAttribute("part")){let r=t.parentElement._column;for(this.$.scroller.toggleAttribute("column-resizing",!0);"vaadin-grid-column-group"===r.localName;)r=r._childColumns.slice(0).sort(((e,t)=>e._order-t._order)).filter((e=>!e.hidden)).pop();const i=this.__isRTL,o=e.detail.x,s=Array.from(this.$.header.querySelectorAll('[part~="row"]:last-child [part~="cell"]')),a=s.find((e=>e._column===r));if(a.offsetWidth){const e=getComputedStyle(a._content),t=10+parseInt(e.paddingLeft)+parseInt(e.paddingRight)+parseInt(e.borderLeftWidth)+parseInt(e.borderRightWidth)+parseInt(e.marginLeft)+parseInt(e.marginRight);let s;const n=a.offsetWidth,l=a.getBoundingClientRect();s=a.hasAttribute("frozen-to-end")?n+(i?o-l.right:l.left-o):n+(i?l.left-o:o-l.right),r.width=`${Math.max(t,s)}px`,r.flexGrow=0}s.sort(((e,t)=>e._column._order-t._column._order)).forEach(((e,t,r)=>{t<r.indexOf(a)&&(e._column.width=`${e.offsetWidth}px`,e._column.flexGrow=0)}));const n=this._frozenToEndCells[0];if(n&&this.$.table.scrollWidth>this.$.table.offsetWidth){const e=n.getBoundingClientRect(),t=o-(i?e.right:e.left);(i&&t<=0||!i&&t>=0)&&(this.$.table.scrollLeft+=t)}"end"===e.detail.state&&(this.$.scroller.toggleAttribute("column-resizing",!1),this.dispatchEvent(new CustomEvent("column-resize",{detail:{resizedColumn:r}}))),this._resizeHandler()}}};function R(e,t,r=0){let i=t;for(const t of e.subCaches){const e=t.parentCacheIndex;if(i<=e)break;if(i<=e+t.flatSize)return R(t,i-e-1,r+1);i-=t.flatSize}return{cache:e,item:e.items[i],index:i,page:Math.floor(i/e.pageSize),level:r}}function F({getItemId:e},t,r,i=0,o=0){for(let s=0;s<t.items.length;s++){const a=t.items[s];if(a&&e(a)===e(r))return{cache:t,level:i,item:a,index:s,page:Math.floor(s/t.pageSize),subCache:t.getSubCache(s),flatIndex:o+t.getFlatIndex(s)}}for(const s of t.subCaches){const a=F({getItemId:e},s,r,i+1,o+t.getFlatIndex(s.parentCacheIndex)+1);if(a)return a}}function A(e,[t,...r],i=0){t===1/0&&(t=e.size-1);const o=e.getFlatIndex(t),s=e.getSubCache(t);return s&&s.flatSize>0&&r.length?A(s,r,i+o+1):i+o}class P{context;size=0;pageSize;items=[];pendingRequests={};__subCacheByIndex={};__flatSize=0;constructor(e,t,r,i,o){this.context=e,this.pageSize=t,this.size=r||0,this.parentCache=i,this.parentCacheIndex=o,this.__flatSize=r||0}get parentItem(){return this.parentCache&&this.parentCache.items[this.parentCacheIndex]}get subCaches(){return Object.values(this.__subCacheByIndex)}get isLoading(){return Object.keys(this.pendingRequests).length>0||this.subCaches.some((e=>e.isLoading))}get flatSize(){return this.__flatSize}get effectiveSize(){return console.warn("<vaadin-grid> The `effectiveSize` property of ItemCache is deprecated and will be removed in Vaadin 25."),this.flatSize}recalculateFlatSize(){this.__flatSize=!this.parentItem||this.context.isExpanded(this.parentItem)?this.size+this.subCaches.reduce(((e,t)=>(t.recalculateFlatSize(),e+t.flatSize)),0):0}setPage(e,t){const r=e*this.pageSize;t.forEach(((e,t)=>{this.items[r+t]=e}))}getSubCache(e){return this.__subCacheByIndex[e]}removeSubCache(e){delete this.__subCacheByIndex[e]}removeSubCaches(){this.__subCacheByIndex={}}createSubCache(e){const t=new P(this.context,this.pageSize,0,this,e);return this.__subCacheByIndex[e]=t,t}getFlatIndex(e){const t=Math.max(0,Math.min(this.size-1,e));return this.subCaches.reduce(((e,r)=>{const i=r.parentCacheIndex;return t>i?e+r.flatSize:e}),t)}getItemForIndex(e){console.warn("<vaadin-grid> The `getItemForIndex` method of ItemCache is deprecated and will be removed in Vaadin 25.");const{item:t}=R(this,e);return t}getCacheAndIndex(e){console.warn("<vaadin-grid> The `getCacheAndIndex` method of ItemCache is deprecated and will be removed in Vaadin 25.");const{cache:t,index:r}=R(this,e);return{cache:t,scaledIndex:r}}updateSize(){console.warn("<vaadin-grid> The `updateSize` method of ItemCache is deprecated and will be removed in Vaadin 25."),this.recalculateFlatSize()}ensureSubCacheForScaledIndex(e){if(console.warn("<vaadin-grid> The `ensureSubCacheForScaledIndex` method of ItemCache is deprecated and will be removed in Vaadin 25."),!this.getSubCache(e)){const t=this.createSubCache(e);this.context.__controller.__loadCachePage(t,0)}}get grid(){return console.warn("<vaadin-grid> The `grid` property of ItemCache is deprecated and will be removed in Vaadin 25."),this.context.__controller.host}get itemCaches(){return console.warn("<vaadin-grid> The `itemCaches` property of ItemCache is deprecated and will be removed in Vaadin 25."),this.__subCacheByIndex}}class T extends EventTarget{host;dataProvider;dataProviderParams;size;pageSize;isExpanded;getItemId;rootCache;constructor(e,{size:t,pageSize:r,isExpanded:i,getItemId:o,dataProvider:s,dataProviderParams:a}){super(),this.host=e,this.pageSize=r,this.getItemId=o,this.isExpanded=i,this.dataProvider=s,this.dataProviderParams=a,this.rootCache=this.__createRootCache(t)}get flatSize(){return this.rootCache.flatSize}get __cacheContext(){return{isExpanded:this.isExpanded,__controller:this}}isLoading(){return this.rootCache.isLoading}setPageSize(e){this.pageSize=e,this.clearCache()}setDataProvider(e){this.dataProvider=e,this.clearCache()}recalculateFlatSize(){this.rootCache.recalculateFlatSize()}clearCache(){this.rootCache=this.__createRootCache(this.rootCache.size)}getFlatIndexContext(e){return R(this.rootCache,e)}getItemContext(e){return F({getItemId:this.getItemId},this.rootCache,e)}getFlatIndexByPath(e){return A(this.rootCache,e)}ensureFlatIndexLoaded(e){const{cache:t,page:r,item:i}=this.getFlatIndexContext(e);i||this.__loadCachePage(t,r)}ensureFlatIndexHierarchy(e){const{cache:t,item:r,index:i}=this.getFlatIndexContext(e);if(r&&this.isExpanded(r)&&!t.getSubCache(i)){const e=t.createSubCache(i);this.__loadCachePage(e,0)}}loadFirstPage(){this.__loadCachePage(this.rootCache,0)}__createRootCache(e){return new P(this.__cacheContext,this.pageSize,e)}__loadCachePage(e,t){if(!this.dataProvider||e.pendingRequests[t])return;let r={page:t,pageSize:this.pageSize,parentItem:e.parentItem};this.dataProviderParams&&(r={...r,...this.dataProviderParams()});const i=(i,o)=>{void 0!==o?e.size=o:r.parentItem&&(e.size=i.length),e.setPage(t,i),this.recalculateFlatSize(),this.dispatchEvent(new CustomEvent("page-received")),delete e.pendingRequests[t],this.dispatchEvent(new CustomEvent("page-loaded"))};e.pendingRequests[t]=i,this.dispatchEvent(new CustomEvent("page-requested")),this.dataProvider(r,i)}}var $=r(4905);const D=e=>class extends e{static get properties(){return{size:{type:Number,notify:!0,sync:!0},_flatSize:{type:Number,sync:!0},pageSize:{type:Number,value:50,observer:"_pageSizeChanged",sync:!0},dataProvider:{type:Object,notify:!0,observer:"_dataProviderChanged",sync:!0},loading:{type:Boolean,notify:!0,readOnly:!0,reflectToAttribute:!0},_hasData:{type:Boolean,value:!1,sync:!0},itemHasChildrenPath:{type:String,value:"children",observer:"__itemHasChildrenPathChanged",sync:!0},itemIdPath:{type:String,value:null,sync:!0},expandedItems:{type:Object,notify:!0,value:()=>[],sync:!0},__expandedKeys:{type:Object,computed:"__computeExpandedKeys(itemIdPath, expandedItems)"}}}static get observers(){return["_sizeChanged(size)","_expandedItemsChanged(expandedItems)"]}constructor(){super(),this._dataProviderController=new T(this,{size:this.size,pageSize:this.pageSize,getItemId:this.getItemId.bind(this),isExpanded:this._isExpanded.bind(this),dataProvider:this.dataProvider?this.dataProvider.bind(this):null,dataProviderParams:()=>({sortOrders:this._mapSorters(),filters:this._mapFilters()})}),this._dataProviderController.addEventListener("page-requested",this._onDataProviderPageRequested.bind(this)),this._dataProviderController.addEventListener("page-received",this._onDataProviderPageReceived.bind(this)),this._dataProviderController.addEventListener("page-loaded",this._onDataProviderPageLoaded.bind(this))}get _cache(){return console.warn("<vaadin-grid> The `_cache` property is deprecated and will be removed in Vaadin 25."),this._dataProviderController.rootCache}get _effectiveSize(){return console.warn("<vaadin-grid> The `_effectiveSize` property is deprecated and will be removed in Vaadin 25."),this._flatSize}_sizeChanged(e){this._dataProviderController.rootCache.size=e,this._dataProviderController.recalculateFlatSize(),this._flatSize=this._dataProviderController.flatSize}__itemHasChildrenPathChanged(e,t){(t||"children"!==e)&&this.requestContentUpdate()}_getItem(e,t){if(e>=this._flatSize)return;t.index=e;const{item:r}=this._dataProviderController.getFlatIndexContext(e);r?(this.__updateLoading(t,!1),this._updateItem(t,r),this._isExpanded(r)&&this._dataProviderController.ensureFlatIndexHierarchy(e)):(this.__updateLoading(t,!0),this._dataProviderController.ensureFlatIndexLoaded(e))}__updateLoading(e,t){const r=(0,f.Fy)(e);(0,f.xq)(e,"loading",t),(0,f.c0)(r,"loading-row-cell",t)}getItemId(e){return this.itemIdPath?(0,$.U)(this.itemIdPath,e):e}_isExpanded(e){return this.__expandedKeys&&this.__expandedKeys.has(this.getItemId(e))}_expandedItemsChanged(){this._dataProviderController.recalculateFlatSize(),this._flatSize=this._dataProviderController.flatSize,this.__updateVisibleRows()}__computeExpandedKeys(e,t){const r=t||[],i=new Set;return r.forEach((e=>{i.add(this.getItemId(e))})),i}expandItem(e){this._isExpanded(e)||(this.expandedItems=[...this.expandedItems,e])}collapseItem(e){this._isExpanded(e)&&(this.expandedItems=this.expandedItems.filter((t=>!this._itemsEqual(t,e))))}_getIndexLevel(e=0){const{level:t}=this._dataProviderController.getFlatIndexContext(e);return t}_loadPage(e,t){console.warn("<vaadin-grid> The `_loadPage` method is deprecated and will be removed in Vaadin 25."),this._dataProviderController.__loadCachePage(t,e)}_onDataProviderPageRequested(){this._setLoading(!0)}_onDataProviderPageReceived(){this._flatSize=this._dataProviderController.flatSize,this._getRenderedRows().forEach((e=>{this._dataProviderController.ensureFlatIndexHierarchy(e.index)})),this._hasData=!0}_onDataProviderPageLoaded(){this._debouncerApplyCachedData=_.dx.debounce(this._debouncerApplyCachedData,h.Wc.after(0),(()=>{this._setLoading(!1),this._getRenderedRows().forEach((e=>{const{item:t}=this._dataProviderController.getFlatIndexContext(e.index);t&&this._getItem(e.index,e)})),this.__scrollToPendingIndexes(),this.__dispatchPendingBodyCellFocus()})),this._dataProviderController.isLoading()||this._debouncerApplyCachedData.flush()}__debounceClearCache(){this.__clearCacheDebouncer=_.dx.debounce(this.__clearCacheDebouncer,h.YA,(()=>this.clearCache()))}clearCache(){this._dataProviderController.clearCache(),this._dataProviderController.rootCache.size=this.size,this._dataProviderController.recalculateFlatSize(),this._hasData=!1,this.__updateVisibleRows(),this.__virtualizer.size||this._dataProviderController.loadFirstPage()}_pageSizeChanged(e,t){this._dataProviderController.setPageSize(e),void 0!==t&&e!==t&&this.clearCache()}_checkSize(){void 0===this.size&&0===this._flatSize&&console.warn("The <vaadin-grid> needs the total number of items in order to display rows, which you can specify either by setting the `size` property, or by providing it to the second argument of the `dataProvider` function `callback` call.")}_dataProviderChanged(e,t){this._dataProviderController.setDataProvider(e?e.bind(this):null),void 0!==t&&this.clearCache(),this._ensureFirstPageLoaded(),this._debouncerCheckSize=_.dx.debounce(this._debouncerCheckSize,h.Wc.after(2e3),this._checkSize.bind(this))}_ensureFirstPageLoaded(){this._hasData||this._dataProviderController.loadFirstPage()}_itemsEqual(e,t){return this.getItemId(e)===this.getItemId(t)}_getItemIndexInArray(e,t){let r=-1;return t.forEach(((t,i)=>{this._itemsEqual(t,e)&&(r=i)})),r}scrollToIndex(...e){let t;for(;t!==(t=this._dataProviderController.getFlatIndexByPath(e));)this._scrollToFlatIndex(t);!this._dataProviderController.isLoading()&&this.clientHeight||(this.__pendingScrollToIndexes=e)}__scrollToPendingIndexes(){if(this.__pendingScrollToIndexes&&this.$.items.children.length){const e=this.__pendingScrollToIndexes;delete this.__pendingScrollToIndexes,this.scrollToIndex(...e)}}},L="between",O="on-top-or-between",k="above",N="below",H="empty",M=!("draggable"in document.createElement("div")),B=e=>class extends e{static get properties(){return{dropMode:{type:String,sync:!0},rowsDraggable:{type:Boolean,sync:!0},dragFilter:{type:Function,sync:!0},dropFilter:{type:Function,sync:!0},__dndAutoScrollThreshold:{value:50}}}static get observers(){return["_dragDropAccessChanged(rowsDraggable, dropMode, dragFilter, dropFilter, loading)"]}ready(){super.ready(),this.$.table.addEventListener("dragstart",this._onDragStart.bind(this)),this.$.table.addEventListener("dragend",this._onDragEnd.bind(this)),this.$.table.addEventListener("dragover",this._onDragOver.bind(this)),this.$.table.addEventListener("dragleave",this._onDragLeave.bind(this)),this.$.table.addEventListener("drop",this._onDrop.bind(this)),this.$.table.addEventListener("dragenter",(e=>{this.dropMode&&(e.preventDefault(),e.stopPropagation())}))}_onDragStart(e){if(this.rowsDraggable){let t=e.target;if("vaadin-grid-cell-content"===t.localName&&(t=t.assignedSlot.parentNode.parentNode),t.parentNode!==this.$.items)return;if(e.stopPropagation(),this.toggleAttribute("dragging-rows",!0),this._safari){const e=t.style.transform;t.style.top=/translateY\((.*)\)/u.exec(e)[1],t.style.transform="none",requestAnimationFrame((()=>{t.style.top="",t.style.transform=e}))}const r=t.getBoundingClientRect();M?e.dataTransfer.setDragImage(t):e.dataTransfer.setDragImage(t,e.clientX-r.left,e.clientY-r.top);let i=[t];this._isSelected(t._item)&&(i=this.__getViewportRows().filter((e=>this._isSelected(e._item))).filter((e=>!this.dragFilter||this.dragFilter(this.__getRowModel(e))))),e.dataTransfer.setData("text",this.__formatDefaultTransferData(i)),(0,f.UN)(t,{dragstart:i.length>1?`${i.length}`:""}),this.style.setProperty("--_grid-drag-start-x",e.clientX-r.left+20+"px"),this.style.setProperty("--_grid-drag-start-y",e.clientY-r.top+10+"px"),requestAnimationFrame((()=>{(0,f.UN)(t,{dragstart:!1}),this.style.setProperty("--_grid-drag-start-x",""),this.style.setProperty("--_grid-drag-start-y","")}));const o=new CustomEvent("grid-dragstart",{detail:{draggedItems:i.map((e=>e._item)),setDragData:(t,r)=>e.dataTransfer.setData(t,r),setDraggedItemsCount:e=>t.setAttribute("dragstart",e)}});o.originalEvent=e,this.dispatchEvent(o)}}_onDragEnd(e){this.toggleAttribute("dragging-rows",!1),e.stopPropagation();const t=new CustomEvent("grid-dragend");t.originalEvent=e,this.dispatchEvent(t)}_onDragLeave(e){e.stopPropagation(),this._clearDragStyles()}_onDragOver(e){if(this.dropMode){if(this._dropLocation=void 0,this._dragOverItem=void 0,this.__dndAutoScroll(e.clientY))return void this._clearDragStyles();let t=e.composedPath().find((e=>"tr"===e.localName));if(this._flatSize&&"on-grid"!==this.dropMode)if(t&&t.parentNode===this.$.items){const r=t.getBoundingClientRect();if(this._dropLocation="on-top",this.dropMode===L){const t=e.clientY-r.top<r.bottom-e.clientY;this._dropLocation=t?k:N}else this.dropMode===O&&(e.clientY-r.top<r.height/3?this._dropLocation=k:e.clientY-r.top>r.height/3*2&&(this._dropLocation=N))}else{if(t)return;if(this.dropMode!==L&&this.dropMode!==O)return;t=Array.from(this.$.items.children).filter((e=>!e.hidden)).pop(),this._dropLocation=N}else this._dropLocation=H;if(t&&t.hasAttribute("drop-disabled"))return void(this._dropLocation=void 0);e.stopPropagation(),e.preventDefault(),this._dropLocation===H?this.toggleAttribute("dragover",!0):t?(this._dragOverItem=t._item,t.getAttribute("dragover")!==this._dropLocation&&(0,f.cO)(t,{dragover:this._dropLocation})):this._clearDragStyles()}}__dndAutoScroll(e){if(this.__dndAutoScrolling)return!0;const t=this.$.header.getBoundingClientRect().bottom,r=this.$.footer.getBoundingClientRect().top,i=t-e+this.__dndAutoScrollThreshold,o=e-r+this.__dndAutoScrollThreshold;let s=0;if(o>0?s=2*o:i>0&&(s=2*-i),s){const e=this.$.table.scrollTop;if(this.$.table.scrollTop+=s,e!==this.$.table.scrollTop)return this.__dndAutoScrolling=!0,setTimeout((()=>{this.__dndAutoScrolling=!1}),20),!0}}__getViewportRows(){const e=this.$.header.getBoundingClientRect().bottom,t=this.$.footer.getBoundingClientRect().top;return Array.from(this.$.items.children).filter((r=>{const i=r.getBoundingClientRect();return i.bottom>e&&i.top<t}))}_clearDragStyles(){this.removeAttribute("dragover"),(0,f.pj)(this.$.items,(e=>{(0,f.cO)(e,{dragover:null})}))}_onDrop(e){if(this.dropMode){e.stopPropagation(),e.preventDefault();const t=e.dataTransfer.types&&Array.from(e.dataTransfer.types).map((t=>({type:t,data:e.dataTransfer.getData(t)})));this._clearDragStyles();const r=new CustomEvent("grid-drop",{bubbles:e.bubbles,cancelable:e.cancelable,detail:{dropTargetItem:this._dragOverItem,dropLocation:this._dropLocation,dragData:t}});r.originalEvent=e,this.dispatchEvent(r)}}__formatDefaultTransferData(e){return e.map((e=>Array.from(e.children).filter((e=>!e.hidden&&-1===e.getAttribute("part").indexOf("details-cell"))).sort(((e,t)=>e._column._order>t._column._order?1:-1)).map((e=>e._content.textContent.trim())).filter((e=>e)).join("\t"))).join("\n")}_dragDropAccessChanged(){this.filterDragAndDrop()}filterDragAndDrop(){(0,f.pj)(this.$.items,(e=>{e.hidden||this._filterDragAndDrop(e,this.__getRowModel(e))}))}_filterDragAndDrop(e,t){const r=this.loading||e.hasAttribute("loading"),i=!this.rowsDraggable||r||this.dragFilter&&!this.dragFilter(t),o=!this.dropMode||r||this.dropFilter&&!this.dropFilter(t);(0,f.CL)(e,(e=>{i?e._content.removeAttribute("draggable"):e._content.setAttribute("draggable",!0)})),(0,f.UN)(e,{"drag-disabled":!!i,"drop-disabled":!!o})}};function W(e,t){if(!e||!t||e.length!==t.length)return!1;for(let r=0,i=e.length;r<i;r++)if(e[r]instanceof Array&&t[r]instanceof Array){if(!W(e[r],t[r]))return!1}else if(e[r]!==t[r])return!1;return!0}const G=e=>class extends e{static get properties(){return{_columnTree:Object}}ready(){super.ready(),this._addNodeObserver()}_hasColumnGroups(e){return e.some((e=>"vaadin-grid-column-group"===e.localName))}_getChildColumns(e){return f.cs.getColumns(e)}_flattenColumnGroups(e){return e.map((e=>"vaadin-grid-column-group"===e.localName?this._getChildColumns(e):[e])).reduce(((e,t)=>e.concat(t)),[])}_getColumnTree(){const e=f.cs.getColumns(this),t=[e];let r=e;for(;this._hasColumnGroups(r);)r=this._flattenColumnGroups(r),t.push(r);return t}_debounceUpdateColumnTree(){this.__updateColumnTreeDebouncer=_.dx.debounce(this.__updateColumnTreeDebouncer,h.YA,(()=>this._updateColumnTree()))}_updateColumnTree(){const e=this._getColumnTree();W(e,this._columnTree)||(e.forEach((e=>{e.forEach((e=>{e.performUpdate&&e.performUpdate()}))})),this._columnTree=e)}_addNodeObserver(){this._observer=new f.cs(this,((e,t)=>{const r=t.flatMap((e=>e._allCells)),i=e=>r.filter((t=>t&&t._content.contains(e))).length;this.__removeSorters(this._sorters.filter(i)),this.__removeFilters(this._filters.filter(i)),this._debounceUpdateColumnTree(),this._debouncerCheckImports=_.dx.debounce(this._debouncerCheckImports,h.Wc.after(2e3),this._checkImports.bind(this)),this._ensureFirstPageLoaded()}))}_checkImports(){["vaadin-grid-column-group","vaadin-grid-filter","vaadin-grid-filter-column","vaadin-grid-tree-toggle","vaadin-grid-selection-column","vaadin-grid-sort-column","vaadin-grid-sorter"].forEach((e=>{this.querySelector(e)&&!customElements.get(e)&&console.warn(`Make sure you have imported the required module for <${e}> element.`)}))}_updateFirstAndLastColumn(){Array.from(this.shadowRoot.querySelectorAll("tr")).forEach((e=>this._updateFirstAndLastColumnForRow(e)))}_updateFirstAndLastColumnForRow(e){Array.from(e.querySelectorAll('[part~="cell"]:not([part~="details-cell"])')).sort(((e,t)=>e._column._order-t._column._order)).forEach(((e,t,r)=>{(0,f.FQ)(e,"first-column",0===t),(0,f.FQ)(e,"last-column",t===r.length-1)}))}_isColumnElement(e){return e.nodeType===Node.ELEMENT_NODE&&/\bcolumn\b/u.test(e.localName)}},V=e=>class extends e{getEventContext(e){const t={},r=e.__composedPath||e.composedPath(),i=r[r.indexOf(this.$.table)-3];return i?(t.section=["body","header","footer","details"].find((e=>i.getAttribute("part").indexOf(e)>-1)),i._column&&(t.column=i._column),"body"!==t.section&&"details"!==t.section||Object.assign(t,this.__getRowModel(i.parentElement)),t):t}},U=e=>class extends e{static get properties(){return{_filters:{type:Array,value:()=>[]}}}constructor(){super(),this._filterChanged=this._filterChanged.bind(this),this.addEventListener("filter-changed",this._filterChanged)}_filterChanged(e){e.stopPropagation(),this.__addFilter(e.target),this.__applyFilters()}__removeFilters(e){0!==e.length&&(this._filters=this._filters.filter((t=>e.indexOf(t)<0)),this.__applyFilters())}__addFilter(e){-1===this._filters.indexOf(e)&&this._filters.push(e)}__applyFilters(){this.dataProvider&&this.isAttached&&this.clearCache()}_mapFilters(){return this._filters.map((e=>({path:e.path,value:e.value})))}},q=e=>class extends e{static get properties(){return{_headerFocusable:{type:Object,observer:"_focusableChanged",sync:!0},_itemsFocusable:{type:Object,observer:"_focusableChanged",sync:!0},_footerFocusable:{type:Object,observer:"_focusableChanged",sync:!0},_navigatingIsHidden:Boolean,_focusedItemIndex:{type:Number,value:0},_focusedColumnOrder:Number,_focusedCell:{type:Object,observer:"_focusedCellChanged",sync:!0},interacting:{type:Boolean,value:!1,reflectToAttribute:!0,readOnly:!0,observer:"_interactingChanged"}}}get __rowFocusMode(){return this.__isRow(this._itemsFocusable)||this.__isRow(this._headerFocusable)||this.__isRow(this._footerFocusable)}set __rowFocusMode(e){["_itemsFocusable","_footerFocusable","_headerFocusable"].forEach((t=>{const r=this[t];if(e){const e=r&&r.parentElement;this.__isCell(r)?this[t]=e:this.__isCell(e)&&(this[t]=e.parentElement)}else if(!e&&this.__isRow(r)){const e=r.firstElementChild;this[t]=e._focusButton||e}}))}ready(){super.ready(),this._ios||this._android||(this.addEventListener("keydown",this._onKeyDown),this.addEventListener("keyup",this._onKeyUp),this.addEventListener("focusin",this._onFocusIn),this.addEventListener("focusout",this._onFocusOut),this.$.table.addEventListener("focusin",this._onContentFocusIn.bind(this)),this.addEventListener("mousedown",(()=>{this.toggleAttribute("navigating",!1),this._isMousedown=!0,this._focusedColumnOrder=void 0})),this.addEventListener("mouseup",(()=>{this._isMousedown=!1})))}_focusableChanged(e,t){t&&t.setAttribute("tabindex","-1"),e&&this._updateGridSectionFocusTarget(e)}_focusedCellChanged(e,t){t&&(0,u.x_)(t,"part","focused-cell"),e&&(0,u.$2)(e,"part","focused-cell")}_interactingChanged(){this._updateGridSectionFocusTarget(this._headerFocusable),this._updateGridSectionFocusTarget(this._itemsFocusable),this._updateGridSectionFocusTarget(this._footerFocusable)}__updateItemsFocusable(){if(!this._itemsFocusable)return;const e=this.shadowRoot.activeElement===this._itemsFocusable;this._getRenderedRows().forEach((e=>{if(e.index===this._focusedItemIndex)if(this.__rowFocusMode)this._itemsFocusable=e;else{let t=this._itemsFocusable.parentElement,r=this._itemsFocusable;if(t){this.__isCell(t)&&(r=t,t=t.parentElement);const i=[...t.children].indexOf(r);this._itemsFocusable=this.__getFocusable(e,e.children[i])}}})),e&&this._itemsFocusable.focus()}_onKeyDown(e){const t=e.key;let r;switch(t){case"ArrowUp":case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"PageUp":case"PageDown":case"Home":case"End":r="Navigation";break;case"Enter":case"Escape":case"F2":r="Interaction";break;case"Tab":r="Tab";break;case" ":r="Space"}this._detectInteracting(e),this.interacting&&"Interaction"!==r&&(r=void 0),r&&this[`_on${r}KeyDown`](e,t)}_ensureScrolledToIndex(e){[...this.$.items.children].find((t=>t.index===e))?this.__scrollIntoViewport(e):this.scrollToIndex(e)}__isRowExpandable(e){if(this.itemHasChildrenPath){const t=e._item;return!(!t||!(0,$.U)(this.itemHasChildrenPath,t)||this._isExpanded(t))}}__isRowCollapsible(e){return this._isExpanded(e._item)}__isDetailsCell(e){return e.matches('[part~="details-cell"]')}__isCell(e){return e instanceof HTMLTableCellElement}__isRow(e){return e instanceof HTMLTableRowElement}__getIndexOfChildElement(e){return Array.prototype.indexOf.call(e.parentNode.children,e)}_onNavigationKeyDown(e,t){e.preventDefault();const r=this._lastVisibleIndex-this._firstVisibleIndex-1,i=this.__isRTL;let o=0,s=0;switch(t){case"ArrowRight":o=i?-1:1;break;case"ArrowLeft":o=i?1:-1;break;case"Home":this.__rowFocusMode||e.ctrlKey?s=-1/0:o=-1/0;break;case"End":this.__rowFocusMode||e.ctrlKey?s=1/0:o=1/0;break;case"ArrowDown":s=1;break;case"ArrowUp":s=-1;break;case"PageDown":s=r;break;case"PageUp":s=-r}const a=e.composedPath().find((e=>this.__isRow(e))),n=e.composedPath().find((e=>this.__isCell(e)));if(this.__rowFocusMode&&!a||!this.__rowFocusMode&&!n)return;const l=i?"ArrowRight":"ArrowLeft";if(t===(i?"ArrowLeft":"ArrowRight")){if(this.__rowFocusMode)return this.__isRowExpandable(a)?void this.expandItem(a._item):(this.__rowFocusMode=!1,void this._onCellNavigation(a.firstElementChild,0,0))}else if(t===l)if(this.__rowFocusMode){if(this.__isRowCollapsible(a))return void this.collapseItem(a._item)}else if(n===[...a.children].sort(((e,t)=>e._order-t._order))[0]||this.__isDetailsCell(n))return this.__rowFocusMode=!0,void this._onRowNavigation(a,0);this.__rowFocusMode?this._onRowNavigation(a,s):this._onCellNavigation(n,o,s)}_onRowNavigation(e,t){const{dstRow:r}=this.__navigateRows(t,e);r&&r.focus()}__getIndexInGroup(e,t){return e.parentNode===this.$.items?void 0!==t?t:e.index:this.__getIndexOfChildElement(e)}__navigateRows(e,t,r){const i=this.__getIndexInGroup(t,this._focusedItemIndex),o=t.parentNode,s=(o===this.$.items?this._flatSize:o.children.length)-1;let a=Math.max(0,Math.min(i+e,s));if(o!==this.$.items){if(a>i)for(;a<s&&o.children[a].hidden;)a+=1;else if(a<i)for(;a>0&&o.children[a].hidden;)a-=1;return this.toggleAttribute("navigating",!0),{dstRow:o.children[a]}}let n=!1;if(r){const s=this.__isDetailsCell(r);if(o===this.$.items){const r=t._item,{item:o}=this._dataProviderController.getFlatIndexContext(a);n=s?0===e:1===e&&this._isDetailsOpened(r)||-1===e&&a!==i&&this._isDetailsOpened(o),n!==s&&(1===e&&n||-1===e&&!n)&&(a=i)}}return this._ensureScrolledToIndex(a),this._focusedItemIndex=a,this.toggleAttribute("navigating",!0),{dstRow:[...o.children].find((e=>!e.hidden&&e.index===a)),dstIsRowDetails:n}}_onCellNavigation(e,t,r){const i=e.parentNode,{dstRow:o,dstIsRowDetails:s}=this.__navigateRows(r,i,e);if(!o)return;let a=this.__getIndexOfChildElement(e);this.$.items.contains(e)&&(a=[...this.$.sizer.children].findIndex((t=>t._column===e._column)));const n=this.__isDetailsCell(e),l=i.parentNode,d=this.__getIndexInGroup(i,this._focusedItemIndex);if(void 0===this._focusedColumnOrder&&(this._focusedColumnOrder=n?0:this._getColumns(l,d).filter((e=>!e.hidden))[a]._order),s)[...o.children].find((e=>this.__isDetailsCell(e))).focus();else{const i=this.__getIndexInGroup(o,this._focusedItemIndex),s=this._getColumns(l,i).filter((e=>!e.hidden)),a=s.map((e=>e._order)).sort(((e,t)=>e-t)),d=a.length-1,h=a.indexOf(a.slice(0).sort(((e,t)=>Math.abs(e-this._focusedColumnOrder)-Math.abs(t-this._focusedColumnOrder)))[0]),c=0===r&&n?h:Math.max(0,Math.min(h+t,d));c!==h&&(this._focusedColumnOrder=void 0);const _=s.reduce(((e,t,r)=>(e[t._order]=r,e)),{})[a[c]];let u;if(this.$.items.contains(e)){const e=this.$.sizer.children[_];this._lazyColumns&&(this.__isColumnInViewport(e._column)||e.scrollIntoView(),this.__updateColumnsBodyContentHidden(),this.__updateHorizontalScrollPosition()),u=[...o.children].find((t=>t._column===e._column)),this._scrollHorizontallyToCell(u)}else u=o.children[_],this._scrollHorizontallyToCell(u);u.focus()}}_onInteractionKeyDown(e,t){const r=e.composedPath()[0],i="input"===r.localName&&!/^(button|checkbox|color|file|image|radio|range|reset|submit)$/iu.test(r.type);let o;switch(t){case"Enter":o=!this.interacting||!i;break;case"Escape":o=!1;break;case"F2":o=!this.interacting}const{cell:s}=this._getGridEventLocation(e);if(this.interacting!==o&&null!==s)if(o){const t=s._content.querySelector("[focus-target]")||[...s._content.querySelectorAll("*")].find((e=>this._isFocusable(e)));t&&(e.preventDefault(),t.focus(),this._setInteracting(!0),this.toggleAttribute("navigating",!1))}else e.preventDefault(),this._focusedColumnOrder=void 0,s.focus(),this._setInteracting(!1),this.toggleAttribute("navigating",!0);"Escape"===t&&this._hideTooltip(!0)}_predictFocusStepTarget(e,t){const r=[this.$.table,this._headerFocusable,this._itemsFocusable,this._footerFocusable,this.$.focusexit];let i=r.indexOf(e);for(i+=t;i>=0&&i<=r.length-1;){let e=r[i];if(e&&!this.__rowFocusMode&&(e=r[i].parentNode),e&&!e.hidden)break;i+=t}let o=r[i];if(o&&!this.__isHorizontallyInViewport(o)){const e=this._getColumnsInOrder().find((e=>this.__isColumnInViewport(e)));if(e)if(o===this._headerFocusable)o=e._headerCell;else if(o===this._itemsFocusable){const t=o._column._cells.indexOf(o);o=e._cells[t]}else o===this._footerFocusable&&(o=e._footerCell)}return o}_onTabKeyDown(e){const t=this._predictFocusStepTarget(e.composedPath()[0],e.shiftKey?-1:1);if(t){if(e.stopPropagation(),t===this.$.table)this.$.table.focus();else if(t===this.$.focusexit)this.$.focusexit.focus();else if(t===this._itemsFocusable){let r=t;const i=this.__isRow(t)?t:t.parentNode;if(this._ensureScrolledToIndex(this._focusedItemIndex),i.index!==this._focusedItemIndex&&this.__isCell(t)){const e=Array.from(i.children).indexOf(this._itemsFocusable),t=Array.from(this.$.items.children).find((e=>!e.hidden&&e.index===this._focusedItemIndex));t&&(r=t.children[e])}e.preventDefault(),r.focus()}else e.preventDefault(),t.focus();this.toggleAttribute("navigating",!0)}}_onSpaceKeyDown(e){e.preventDefault();const t=e.composedPath()[0],r=this.__isRow(t);!r&&t._content&&t._content.firstElementChild||this.dispatchEvent(new CustomEvent(r?"row-activate":"cell-activate",{detail:{model:this.__getRowModel(r?t:t.parentElement)}}))}_onKeyUp(e){if(!/^( |SpaceBar)$/u.test(e.key)||this.interacting)return;e.preventDefault();const t=e.composedPath()[0];if(t._content&&t._content.firstElementChild){const r=this.hasAttribute("navigating");t._content.firstElementChild.dispatchEvent(new MouseEvent("click",{shiftKey:e.shiftKey,bubbles:!0,composed:!0,cancelable:!0})),this.toggleAttribute("navigating",r)}}_onFocusIn(e){this._isMousedown||this.toggleAttribute("navigating",!0);const t=e.composedPath()[0];t===this.$.table||t===this.$.focusexit?(this._predictFocusStepTarget(t,t===this.$.table?1:-1).focus(),this._setInteracting(!1)):this._detectInteracting(e)}_onFocusOut(e){this.toggleAttribute("navigating",!1),this._detectInteracting(e),this._hideTooltip(),this._focusedCell=null}_onContentFocusIn(e){const{section:t,cell:r,row:i}=this._getGridEventLocation(e);if(r||this.__rowFocusMode){if(this._detectInteracting(e),t&&(r||i))if(this._activeRowGroup=t,this.$.header===t?this._headerFocusable=this.__getFocusable(i,r):this.$.items===t?this._itemsFocusable=this.__getFocusable(i,r):this.$.footer===t&&(this._footerFocusable=this.__getFocusable(i,r)),r){const t=this.getEventContext(e);this.__pendingBodyCellFocus=this.loading&&"body"===t.section,this.__pendingBodyCellFocus||r.dispatchEvent(new CustomEvent("cell-focus",{bubbles:!0,composed:!0,detail:{context:t}})),this._focusedCell=r._focusButton||r,(0,l.LQ)()&&e.target===r&&this._showTooltip(e)}else this._focusedCell=null;this._detectFocusedItemIndex(e)}}__dispatchPendingBodyCellFocus(){this.__pendingBodyCellFocus&&this.shadowRoot.activeElement===this._itemsFocusable&&this._itemsFocusable.dispatchEvent(new Event("focusin",{bubbles:!0,composed:!0}))}__getFocusable(e,t){return this.__rowFocusMode?e:t._focusButton||t}_detectInteracting(e){const t=e.composedPath().some((e=>"vaadin-grid-cell-content"===e.localName));this._setInteracting(t),this.__updateHorizontalScrollPosition()}_detectFocusedItemIndex(e){const{section:t,row:r}=this._getGridEventLocation(e);t===this.$.items&&(this._focusedItemIndex=r.index)}_updateGridSectionFocusTarget(e){if(!e)return;const t=this._getGridSectionFromFocusTarget(e),r=this.interacting&&t===this._activeRowGroup;e.tabIndex=r?-1:0}_preventScrollerRotatingCellFocus(e,t){e.index===this._focusedItemIndex&&this.hasAttribute("navigating")&&this._activeRowGroup===this.$.items&&(this._navigatingIsHidden=!0,this.toggleAttribute("navigating",!1)),t===this._focusedItemIndex&&this._navigatingIsHidden&&(this._navigatingIsHidden=!1,this.toggleAttribute("navigating",!0))}_getColumns(e,t){let r=this._columnTree.length-1;return e===this.$.header?r=t:e===this.$.footer&&(r=this._columnTree.length-1-t),this._columnTree[r]}__isValidFocusable(e){return this.$.table.contains(e)&&e.offsetHeight}_resetKeyboardNavigation(){if(!this.$&&this.performUpdate&&this.performUpdate(),["header","footer"].forEach((e=>{if(!this.__isValidFocusable(this[`_${e}Focusable`])){const t=[...this.$[e].children].find((e=>e.offsetHeight)),r=t?[...t.children].find((e=>!e.hidden)):null;t&&r&&(this[`_${e}Focusable`]=this.__getFocusable(t,r))}})),!this.__isValidFocusable(this._itemsFocusable)&&this.$.items.firstElementChild){const e=this.__getFirstVisibleItem(),t=e?[...e.children].find((e=>!e.hidden)):null;t&&e&&(this._focusedColumnOrder=void 0,this._itemsFocusable=this.__getFocusable(e,t))}else this.__updateItemsFocusable()}_scrollHorizontallyToCell(e){if(e.hasAttribute("frozen")||e.hasAttribute("frozen-to-end")||this.__isDetailsCell(e))return;const t=e.getBoundingClientRect(),r=e.parentNode,i=Array.from(r.children).indexOf(e),o=this.$.table.getBoundingClientRect();let s=o.left,a=o.right;for(let e=i-1;e>=0;e--){const t=r.children[e];if(!t.hasAttribute("hidden")&&!this.__isDetailsCell(t)&&(t.hasAttribute("frozen")||t.hasAttribute("frozen-to-end"))){s=t.getBoundingClientRect().right;break}}for(let e=i+1;e<r.children.length;e++){const t=r.children[e];if(!t.hasAttribute("hidden")&&!this.__isDetailsCell(t)&&(t.hasAttribute("frozen")||t.hasAttribute("frozen-to-end"))){a=t.getBoundingClientRect().left;break}}t.left<s&&(this.$.table.scrollLeft+=Math.round(t.left-s)),t.right>a&&(this.$.table.scrollLeft+=Math.round(t.right-a))}_getGridEventLocation(e){const t=e.composedPath(),r=t.indexOf(this.$.table);return{section:r>=1?t[r-1]:null,row:r>=2?t[r-2]:null,cell:r>=3?t[r-3]:null}}_getGridSectionFromFocusTarget(e){return e===this._headerFocusable?this.$.header:e===this._itemsFocusable?this.$.items:e===this._footerFocusable?this.$.footer:null}},j=e=>class extends e{static get properties(){return{detailsOpenedItems:{type:Array,value:()=>[],sync:!0},rowDetailsRenderer:{type:Function,sync:!0},_detailsCells:{type:Array}}}static get observers(){return["_detailsOpenedItemsChanged(detailsOpenedItems, rowDetailsRenderer)","_rowDetailsRendererChanged(rowDetailsRenderer)"]}ready(){super.ready(),this._detailsCellResizeObserver=new ResizeObserver((e=>{e.forEach((({target:e})=>{this._updateDetailsCellHeight(e.parentElement)})),this.__virtualizer.__adapter._resizeHandler()}))}_rowDetailsRendererChanged(e){e&&this._columnTree&&(0,f.pj)(this.$.items,(e=>{if(!e.querySelector("[part~=details-cell]")){this._updateRow(e,this._columnTree[this._columnTree.length-1]);const t=this._isDetailsOpened(e._item);this._toggleDetailsCell(e,t)}}))}_detailsOpenedItemsChanged(e,t){(0,f.pj)(this.$.items,(e=>{(e.hasAttribute("details-opened")||t&&this._isDetailsOpened(e._item))&&this._updateItem(e,e._item)}))}_configureDetailsCell(e){e.setAttribute("part","cell details-cell"),e.toggleAttribute("frozen",!0),this._detailsCellResizeObserver.observe(e)}_toggleDetailsCell(e,t){const r=e.querySelector('[part~="details-cell"]');r&&(r.hidden=!t,r.hidden||this.rowDetailsRenderer&&(r._renderer=this.rowDetailsRenderer))}_updateDetailsCellHeight(e){const t=e.querySelector('[part~="details-cell"]');t&&(this.__updateDetailsRowPadding(e,t),requestAnimationFrame((()=>this.__updateDetailsRowPadding(e,t))))}__updateDetailsRowPadding(e,t){t.hidden?e.style.removeProperty("padding-bottom"):e.style.setProperty("padding-bottom",`${t.offsetHeight}px`)}_updateDetailsCellHeights(){(0,f.pj)(this.$.items,(e=>{this._updateDetailsCellHeight(e)}))}_isDetailsOpened(e){return this.detailsOpenedItems&&-1!==this._getItemIndexInArray(e,this.detailsOpenedItems)}openItemDetails(e){this._isDetailsOpened(e)||(this.detailsOpenedItems=[...this.detailsOpenedItems,e])}closeItemDetails(e){this._isDetailsOpened(e)&&(this.detailsOpenedItems=this.detailsOpenedItems.filter((t=>!this._itemsEqual(t,e))))}},K=document.createElement("div");function Y(e,t){const{scrollLeft:r}=e;return"rtl"!==t?r:e.scrollWidth-e.clientWidth+r}K.style.position="fixed",K.style.clip="rect(0px, 0px, 0px, 0px)",K.setAttribute("aria-live","polite"),document.body.appendChild(K),r(1224),r(1370),r(5229),r(9107),r(1360),r(1486),r(3392),r(2628);var X=r(9680);const J=e=>class extends((0,X.F)(e)){static get properties(){return{columnRendering:{type:String,value:"eager",sync:!0},_frozenCells:{type:Array,value:()=>[]},_frozenToEndCells:{type:Array,value:()=>[]},_rowWithFocusedElement:Element}}static get observers(){return["__columnRenderingChanged(_columnTree, columnRendering)"]}get _scrollLeft(){return this.$.table.scrollLeft}get _scrollTop(){return this.$.table.scrollTop}set _scrollTop(e){this.$.table.scrollTop=e}get _lazyColumns(){return"lazy"===this.columnRendering}ready(){super.ready(),this.scrollTarget=this.$.table,this.$.items.addEventListener("focusin",(e=>{const t=e.composedPath().indexOf(this.$.items);this._rowWithFocusedElement=e.composedPath()[t-1]})),this.$.items.addEventListener("focusout",(()=>{this._rowWithFocusedElement=void 0})),this.$.table.addEventListener("scroll",(()=>this._afterScroll()))}_onResize(){if(this._updateOverflow(),this.__updateHorizontalScrollPosition(),this._firefox){const e=!(0,l.GF)(this);e&&!1===this.__previousVisible&&(this._scrollTop=this.__memorizedScrollTop||0),this.__previousVisible=e}}_scrollToFlatIndex(e){e=Math.min(this._flatSize-1,Math.max(0,e)),this.__virtualizer.scrollToIndex(e),this.__scrollIntoViewport(e)}__scrollIntoViewport(e){const t=[...this.$.items.children].find((t=>t.index===e));if(t){const e=t.getBoundingClientRect(),r=this.$.footer.getBoundingClientRect().top,i=this.$.header.getBoundingClientRect().bottom;e.bottom>r?this.$.table.scrollTop+=e.bottom-r:e.top<i&&(this.$.table.scrollTop-=i-e.top)}}_scheduleScrolling(){this._scrollingFrame||(this._scrollingFrame=requestAnimationFrame((()=>this.$.scroller.toggleAttribute("scrolling",!0)))),this._debounceScrolling=_.dx.debounce(this._debounceScrolling,h.Wc.after(500),(()=>{cancelAnimationFrame(this._scrollingFrame),delete this._scrollingFrame,this.$.scroller.toggleAttribute("scrolling",!1)}))}_afterScroll(){this.__updateHorizontalScrollPosition(),this.hasAttribute("reordering")||this._scheduleScrolling(),this.hasAttribute("navigating")||this._hideTooltip(!0),this._updateOverflow(),this._debounceColumnContentVisibility=_.dx.debounce(this._debounceColumnContentVisibility,h.Wc.after(100),(()=>{this._lazyColumns&&this.__cachedScrollLeft!==this._scrollLeft&&(this.__cachedScrollLeft=this._scrollLeft,this.__updateColumnsBodyContentHidden())})),this._firefox&&!(0,l.GF)(this)&&!1!==this.__previousVisible&&(this.__memorizedScrollTop=this._scrollTop)}__updateColumnsBodyContentHidden(){if(!this._columnTree)return;const e=this._getColumnsInOrder();if(!e[0]||!e[0]._sizerCell)return;let t=!1;if(e.forEach((r=>{const i=this._lazyColumns&&!this.__isColumnInViewport(r);r._bodyContentHidden!==i&&(t=!0,r._cells.forEach((t=>{if(t!==r._sizerCell)if(i)t.remove();else if(t.__parentRow){const i=[...t.__parentRow.children].find((t=>e.indexOf(t._column)>e.indexOf(r)));t.__parentRow.insertBefore(t,i)}}))),r._bodyContentHidden=i})),t&&this._frozenCellsChanged(),this._lazyColumns){const t=[...e].reverse().find((e=>e.frozen)),r=this.__getColumnEnd(t),i=e.find((e=>!e.frozen&&!e._bodyContentHidden));this.__lazyColumnsStart=this.__getColumnStart(i)-r,this.$.items.style.setProperty("--_grid-lazy-columns-start",`${this.__lazyColumnsStart}px`),this._resetKeyboardNavigation()}}__getColumnEnd(e){return e?e._sizerCell.offsetLeft+(this.__isRTL?0:e._sizerCell.offsetWidth):this.__isRTL?this.$.table.clientWidth:0}__getColumnStart(e){return e?e._sizerCell.offsetLeft+(this.__isRTL?e._sizerCell.offsetWidth:0):this.__isRTL?this.$.table.clientWidth:0}__isColumnInViewport(e){return!(!e.frozen&&!e.frozenToEnd)||this.__isHorizontallyInViewport(e._sizerCell)}__isHorizontallyInViewport(e){return e.offsetLeft+e.offsetWidth>=this._scrollLeft&&e.offsetLeft<=this._scrollLeft+this.clientWidth}__columnRenderingChanged(e,t){"eager"===t?this.$.scroller.removeAttribute("column-rendering"):this.$.scroller.setAttribute("column-rendering",t),this.__updateColumnsBodyContentHidden()}_updateOverflow(){this._debounceOverflow=_.dx.debounce(this._debounceOverflow,h.rs,(()=>{this.__doUpdateOverflow()}))}__doUpdateOverflow(){let e="";const t=this.$.table;t.scrollTop<t.scrollHeight-t.clientHeight&&(e+=" bottom"),t.scrollTop>0&&(e+=" top");const r=Y(t,this.getAttribute("dir"));r>0&&(e+=" start"),r<t.scrollWidth-t.clientWidth&&(e+=" end"),this.__isRTL&&(e=e.replace(/start|end/giu,(e=>"start"===e?"end":"start"))),t.scrollLeft<t.scrollWidth-t.clientWidth&&(e+=" right"),t.scrollLeft>0&&(e+=" left");const i=e.trim();i.length>0&&this.getAttribute("overflow")!==i?this.setAttribute("overflow",i):0===i.length&&this.hasAttribute("overflow")&&this.removeAttribute("overflow")}_frozenCellsChanged(){this._debouncerCacheElements=_.dx.debounce(this._debouncerCacheElements,h.YA,(()=>{Array.from(this.shadowRoot.querySelectorAll('[part~="cell"]')).forEach((e=>{e.style.transform=""})),this._frozenCells=Array.prototype.slice.call(this.$.table.querySelectorAll("[frozen]")),this._frozenToEndCells=Array.prototype.slice.call(this.$.table.querySelectorAll("[frozen-to-end]")),this.__updateHorizontalScrollPosition()})),this._debounceUpdateFrozenColumn()}_debounceUpdateFrozenColumn(){this.__debounceUpdateFrozenColumn=_.dx.debounce(this.__debounceUpdateFrozenColumn,h.YA,(()=>this._updateFrozenColumn()))}_updateFrozenColumn(){if(!this._columnTree)return;const e=this._columnTree[this._columnTree.length-1].slice(0);let t,r;e.sort(((e,t)=>e._order-t._order));for(let i=0;i<e.length;i++){const o=e[i];o._lastFrozen=!1,o._firstFrozenToEnd=!1,void 0===r&&o.frozenToEnd&&!o.hidden&&(r=i),o.frozen&&!o.hidden&&(t=i)}void 0!==t&&(e[t]._lastFrozen=!0),void 0!==r&&(e[r]._firstFrozenToEnd=!0),this.__updateColumnsBodyContentHidden()}__updateHorizontalScrollPosition(){if(!this._columnTree)return;const e=this.$.table.scrollWidth,t=this.$.table.clientWidth,r=Math.max(0,this.$.table.scrollLeft),i=Y(this.$.table,this.getAttribute("dir")),o=`translate(${-r}px, 0)`;this.$.header.style.transform=o,this.$.footer.style.transform=o,this.$.items.style.transform=o;const s=this.__isRTL?i+t-e:r,a=`translate(${s}px, 0)`;this._frozenCells.forEach((e=>{e.style.transform=a}));const n=this.__isRTL?i:r+t-e,l=`translate(${n}px, 0)`;let d=l;if(this._lazyColumns){const e=this._getColumnsInOrder(),t=[...e].reverse().find((e=>!e.frozenToEnd&&!e._bodyContentHidden)),r=this.__getColumnEnd(t),i=e.find((e=>e.frozenToEnd)),o=n+(this.__getColumnStart(i)-r)+this.__lazyColumnsStart;d=`translate(${o}px, 0)`}this._frozenToEndCells.forEach((e=>{this.$.items.contains(e)?e.style.transform=d:e.style.transform=l})),this.hasAttribute("navigating")&&this.__rowFocusMode&&this.$.table.style.setProperty("--_grid-horizontal-scroll-position",-s+"px")}},Q=e=>class extends e{static get properties(){return{selectedItems:{type:Object,notify:!0,value:()=>[],sync:!0},__selectedKeys:{type:Object,computed:"__computeSelectedKeys(itemIdPath, selectedItems)"}}}static get observers(){return["__selectedItemsChanged(itemIdPath, selectedItems)"]}_isSelected(e){return this.__selectedKeys.has(this.getItemId(e))}selectItem(e){this._isSelected(e)||(this.selectedItems=[...this.selectedItems,e])}deselectItem(e){this._isSelected(e)&&(this.selectedItems=this.selectedItems.filter((t=>!this._itemsEqual(t,e))))}_toggleItem(e){this._isSelected(e)?this.deselectItem(e):this.selectItem(e)}__selectedItemsChanged(){this.requestContentUpdate()}__computeSelectedKeys(e,t){const r=t||[],i=new Set;return r.forEach((e=>{i.add(this.getItemId(e))})),i}};let Z="prepend";const ee=e=>class extends e{static get properties(){return{multiSort:{type:Boolean,value:!1},multiSortPriority:{type:String,value:()=>Z},multiSortOnShiftClick:{type:Boolean,value:!1},_sorters:{type:Array,value:()=>[]},_previousSorters:{type:Array,value:()=>[]}}}static setDefaultMultiSortPriority(e){Z=["append","prepend"].includes(e)?e:"prepend"}ready(){super.ready(),this.addEventListener("sorter-changed",this._onSorterChanged)}_onSorterChanged(e){const t=e.target;e.stopPropagation(),t._grid=this,this.__updateSorter(t,e.detail.shiftClick,e.detail.fromSorterClick),this.__applySorters()}__removeSorters(e){0!==e.length&&(this._sorters=this._sorters.filter((t=>e.indexOf(t)<0)),this.multiSort&&this.__updateSortOrders(),this.__applySorters())}__updateSortOrders(){this._sorters.forEach(((e,t)=>{e._order=this._sorters.length>1?t:null}))}__appendSorter(e){e.direction?this._sorters.includes(e)||this._sorters.push(e):this._removeArrayItem(this._sorters,e),this.__updateSortOrders()}__prependSorter(e){this._removeArrayItem(this._sorters,e),e.direction&&this._sorters.unshift(e),this.__updateSortOrders()}__updateSorter(e,t,r){if(e.direction||-1!==this._sorters.indexOf(e))if(e._order=null,this.multiSort&&(!this.multiSortOnShiftClick||!r)||this.multiSortOnShiftClick&&t)"append"===this.multiSortPriority?this.__appendSorter(e):this.__prependSorter(e);else if(e.direction||this.multiSortOnShiftClick){const t=this._sorters.filter((t=>t!==e));this._sorters=e.direction?[e]:[],t.forEach((e=>{e._order=null,e.direction=null}))}}__applySorters(){this.dataProvider&&this.isAttached&&JSON.stringify(this._previousSorters)!==JSON.stringify(this._mapSorters())&&this.__debounceClearCache(),this._a11yUpdateSorters(),this._previousSorters=this._mapSorters()}_mapSorters(){return this._sorters.map((e=>({path:e.path,direction:e.direction})))}_removeArrayItem(e,t){const r=e.indexOf(t);r>-1&&e.splice(r,1)}},te=e=>class extends e{static get properties(){return{cellClassNameGenerator:{type:Function,sync:!0},cellPartNameGenerator:{type:Function,sync:!0}}}static get observers(){return["__cellClassNameGeneratorChanged(cellClassNameGenerator)","__cellPartNameGeneratorChanged(cellPartNameGenerator)"]}__cellClassNameGeneratorChanged(){this.generateCellClassNames()}__cellPartNameGeneratorChanged(){this.generateCellPartNames()}generateCellClassNames(){(0,f.pj)(this.$.items,(e=>{e.hidden||e.hasAttribute("loading")||this._generateCellClassNames(e,this.__getRowModel(e))}))}generateCellPartNames(){(0,f.pj)(this.$.items,(e=>{e.hidden||e.hasAttribute("loading")||this._generateCellPartNames(e,this.__getRowModel(e))}))}_generateCellClassNames(e,t){(0,f.CL)(e,(e=>{if(e.__generatedClasses&&e.__generatedClasses.forEach((t=>e.classList.remove(t))),this.cellClassNameGenerator){const r=this.cellClassNameGenerator(e._column,t);e.__generatedClasses=r&&r.split(" ").filter((e=>e.length>0)),e.__generatedClasses&&e.__generatedClasses.forEach((t=>e.classList.add(t)))}}))}_generateCellPartNames(e,t){(0,f.CL)(e,(e=>{if(e.__generatedParts&&e.__generatedParts.forEach((t=>{(0,f.lJ)(e,null,t)})),this.cellPartNameGenerator){const r=this.cellPartNameGenerator(e._column,t);e.__generatedParts=r&&r.split(" ").filter((e=>e.length>0)),e.__generatedParts&&e.__generatedParts.forEach((t=>{(0,f.lJ)(e,!0,t)}))}}))}},re=e=>class extends(I(D(G(v(J(Q(ee(j(q(b(U(S(E(V(B(te((0,d.N)(e)))))))))))))))))){static get observers(){return["_columnTreeChanged(_columnTree)","_flatSizeChanged(_flatSize, __virtualizer, _hasData, _columnTree)"]}static get properties(){return{_safari:{type:Boolean,value:c.G6},_ios:{type:Boolean,value:c.gn},_firefox:{type:Boolean,value:c.vU},_android:{type:Boolean,value:c.Dt},_touchDevice:{type:Boolean,value:c.T},allRowsVisible:{type:Boolean,value:!1,reflectToAttribute:!0},__pendingRecalculateColumnWidths:{type:Boolean,value:!0},isAttached:{value:!1},__gridElement:{type:Boolean,value:!0}}}constructor(){super(),this.addEventListener("animationend",this._onAnimationEnd)}get _firstVisibleIndex(){const e=this.__getFirstVisibleItem();return e?e.index:void 0}get _lastVisibleIndex(){const e=this.__getLastVisibleItem();return e?e.index:void 0}connectedCallback(){super.connectedCallback(),this.isAttached=!0,this.recalculateColumnWidths()}disconnectedCallback(){super.disconnectedCallback(),this.isAttached=!1,this._hideTooltip(!0)}__getFirstVisibleItem(){return this._getRenderedRows().find((e=>this._isInViewport(e)))}__getLastVisibleItem(){return this._getRenderedRows().reverse().find((e=>this._isInViewport(e)))}_isInViewport(e){const t=this.$.table.getBoundingClientRect(),r=e.getBoundingClientRect(),i=this.$.header.getBoundingClientRect().height,o=this.$.footer.getBoundingClientRect().height;return r.bottom>t.top+i&&r.top<t.bottom-o}_getRenderedRows(){return Array.from(this.$.items.children).filter((e=>!e.hidden)).sort(((e,t)=>e.index-t.index))}_getRowContainingNode(e){const t=(0,u.Q4)("vaadin-grid-cell-content",e);if(t)return t.assignedSlot.parentElement.parentElement}_isItemAssignedToRow(e,t){const r=this.__getRowModel(t);return this.getItemId(e)===this.getItemId(r.item)}ready(){super.ready(),this.__virtualizer=new m.d({createElements:this._createScrollerRows.bind(this),updateElement:this._updateScrollerItem.bind(this),scrollContainer:this.$.items,scrollTarget:this.$.table,reorderElements:!0}),new ResizeObserver((()=>setTimeout((()=>{this.__updateColumnsBodyContentHidden(),this.__tryToRecalculateColumnWidthsIfPending()})))).observe(this.$.table),(0,p.k)(this),this._tooltipController=new g.f(this),this.addController(this._tooltipController),this._tooltipController.setManual(!0)}__getBodyCellCoordinates(e){if(this.$.items.contains(e)&&"td"===e.localName)return{item:e.parentElement._item,column:e._column}}__focusBodyCell({item:e,column:t}){const r=this._getRenderedRows().find((t=>t._item===e)),i=r&&[...r.children].find((e=>e._column===t));i&&i.focus()}_focusFirstVisibleRow(){const e=this.__getFirstVisibleItem();this.__rowFocusMode=!0,e.focus()}_flatSizeChanged(e,t,r,i){if(t&&r&&i){const r=this.shadowRoot.activeElement,i=this.__getBodyCellCoordinates(r),o=t.size||0;t.size=e,t.update(o-1,o-1),e<o&&t.update(e-1,e-1),i&&r.parentElement.hidden&&this.__focusBodyCell(i),this._resetKeyboardNavigation()}}__hasRowsWithClientHeight(){return!!Array.from(this.$.items.children).filter((e=>e.clientHeight)).length}__getIntrinsicWidth(e){return this.__intrinsicWidthCache.has(e)||this.__calculateAndCacheIntrinsicWidths([e]),this.__intrinsicWidthCache.get(e)}__getDistributedWidth(e,t){if(null==e||e===this)return 0;const r=Math.max(this.__getIntrinsicWidth(e),this.__getDistributedWidth((e.assignedSlot||e).parentElement,e));if(!t)return r;const i=r,o=e._visibleChildColumns.map((e=>this.__getIntrinsicWidth(e))).reduce(((e,t)=>e+t),0),s=Math.max(0,i-o),a=this.__getIntrinsicWidth(t)/o*s;return this.__getIntrinsicWidth(t)+a}_recalculateColumnWidths(e){this.__virtualizer.flush(),[...this.$.header.children,...this.$.footer.children].forEach((e=>{e.__debounceUpdateHeaderFooterRowVisibility&&e.__debounceUpdateHeaderFooterRowVisibility.flush()})),this._debouncerHiddenChanged&&this._debouncerHiddenChanged.flush(),this.__intrinsicWidthCache=new Map;const t=this._firstVisibleIndex,r=this._lastVisibleIndex;this.__viewportRowsCache=this._getRenderedRows().filter((e=>e.index>=t&&e.index<=r)),this.__calculateAndCacheIntrinsicWidths(e),e.forEach((e=>{e.width=`${this.__getDistributedWidth(e)}px`}))}__setVisibleCellContentAutoWidth(e,t){e._allCells.filter((e=>!this.$.items.contains(e)||this.__viewportRowsCache.includes(e.parentElement))).forEach((e=>{e.__measuringAutoWidth=t,e.__measuringAutoWidth?(e.__originalWidth=e.style.width,e.style.width="auto",e.style.position="absolute"):(e.style.width=e.__originalWidth,delete e.__originalWidth,e.style.position="")}))}__getAutoWidthCellsMaxWidth(e){return e._allCells.reduce(((e,t)=>t.__measuringAutoWidth?Math.max(e,t.offsetWidth+1):e),0)}__calculateAndCacheIntrinsicWidths(e){e.forEach((e=>this.__setVisibleCellContentAutoWidth(e,!0))),e.forEach((e=>{const t=this.__getAutoWidthCellsMaxWidth(e);this.__intrinsicWidthCache.set(e,t)})),e.forEach((e=>this.__setVisibleCellContentAutoWidth(e,!1)))}recalculateColumnWidths(){if(!this._columnTree)return;if((0,l.GF)(this)||this._dataProviderController.isLoading())return void(this.__pendingRecalculateColumnWidths=!0);const e=this._getColumns().filter((e=>!e.hidden&&e.autoWidth));this._recalculateColumnWidths(e)}__tryToRecalculateColumnWidthsIfPending(){this.__pendingRecalculateColumnWidths&&!(0,l.GF)(this)&&!this._dataProviderController.isLoading()&&this.__hasRowsWithClientHeight()&&(this.__pendingRecalculateColumnWidths=!1,this.recalculateColumnWidths())}_onDataProviderPageLoaded(){super._onDataProviderPageLoaded(),this.__tryToRecalculateColumnWidthsIfPending()}_createScrollerRows(e){const t=[];for(let r=0;r<e;r++){const e=document.createElement("tr");e.setAttribute("part","row body-row"),e.setAttribute("role","row"),e.setAttribute("tabindex","-1"),this._columnTree&&this._updateRow(e,this._columnTree[this._columnTree.length-1],"body",!1,!0),t.push(e)}return this._columnTree&&this._columnTree[this._columnTree.length-1].forEach((e=>{e.isConnected&&e._cells&&(e._cells=[...e._cells])})),this.__afterCreateScrollerRowsDebouncer=_.dx.debounce(this.__afterCreateScrollerRowsDebouncer,h.rs,(()=>{this._afterScroll(),this.__tryToRecalculateColumnWidthsIfPending()})),t}_createCell(e,t){const r=`vaadin-grid-cell-content-${this._contentIndex=this._contentIndex+1||0}`,i=document.createElement("vaadin-grid-cell-content");i.setAttribute("slot",r);const o=document.createElement(e);o.id=r.replace("-content-","-"),o.setAttribute("role","td"===e?"gridcell":"columnheader"),c.Dt||c.gn||(o.addEventListener("mouseenter",(e=>{this.$.scroller.hasAttribute("scrolling")||this._showTooltip(e)})),o.addEventListener("mouseleave",(()=>{this._hideTooltip()})),o.addEventListener("mousedown",(()=>{this._hideTooltip(!0)})));const s=document.createElement("slot");if(s.setAttribute("name",r),t&&t._focusButtonMode){const e=document.createElement("div");e.setAttribute("role","button"),e.setAttribute("tabindex","-1"),o.appendChild(e),o._focusButton=e,o.focus=function(){o._focusButton.focus()},e.appendChild(s)}else o.setAttribute("tabindex","-1"),o.appendChild(s);return o._content=i,i.addEventListener("mousedown",(()=>{if(c.i7){const e=t=>{const r=i.contains(this.getRootNode().activeElement),s=t.composedPath().includes(i);!r&&s&&o.focus(),document.removeEventListener("mouseup",e,!0)};document.addEventListener("mouseup",e,!0)}else setTimeout((()=>{i.contains(this.getRootNode().activeElement)||o.focus()}))})),o}_updateRow(e,t,r="body",i=!1,o=!1){const s=document.createDocumentFragment();(0,f.CL)(e,(e=>{e._vacant=!0})),e.innerHTML="","body"===r&&(e.__cells=[],e.__detailsCell=null),t.filter((e=>!e.hidden)).forEach(((t,a,n)=>{let l;if("body"===r){if(t._cells||(t._cells=[]),l=t._cells.find((e=>e._vacant)),l||(l=this._createCell("td",t),t._cells.push(l)),l.setAttribute("part","cell body-cell"),l.__parentRow=e,e.__cells.push(l),t._bodyContentHidden||e.appendChild(l),e===this.$.sizer&&(t._sizerCell=l),a===n.length-1&&this.rowDetailsRenderer){this._detailsCells||(this._detailsCells=[]);const t=this._detailsCells.find((e=>e._vacant))||this._createCell("td");-1===this._detailsCells.indexOf(t)&&this._detailsCells.push(t),t._content.parentElement||s.appendChild(t._content),this._configureDetailsCell(t),e.appendChild(t),e.__detailsCell=t,this._a11ySetRowDetailsCell(e,t),t._vacant=!1}o||(t._cells=[...t._cells])}else{const o="header"===r?"th":"td";i||"vaadin-grid-column-group"===t.localName?(l=t[`_${r}Cell`]||this._createCell(o),l._column=t,e.appendChild(l),t[`_${r}Cell`]=l):(t._emptyCells||(t._emptyCells=[]),l=t._emptyCells.find((e=>e._vacant))||this._createCell(o),l._column=t,e.appendChild(l),-1===t._emptyCells.indexOf(l)&&t._emptyCells.push(l)),l.part.add("cell",`${r}-cell`)}l._content.parentElement||s.appendChild(l._content),l._vacant=!1,l._column=t})),"body"!==r&&this.__debounceUpdateHeaderFooterRowVisibility(e),this.appendChild(s),this._frozenCellsChanged(),this._updateFirstAndLastColumnForRow(e)}__debounceUpdateHeaderFooterRowVisibility(e){e.__debounceUpdateHeaderFooterRowVisibility=_.dx.debounce(e.__debounceUpdateHeaderFooterRowVisibility,h.YA,(()=>this.__updateHeaderFooterRowVisibility(e)))}__updateHeaderFooterRowVisibility(e){if(!e)return;const t=Array.from(e.children).filter((t=>{const r=t._column;if(r._emptyCells&&r._emptyCells.indexOf(t)>-1)return!1;if(e.parentElement===this.$.header){if(r.headerRenderer)return!0;if(null===r.header)return!1;if(r.path||void 0!==r.header)return!0}else if(r.footerRenderer)return!0;return!1}));e.hidden!==!t.length&&(e.hidden=!t.length),this._resetKeyboardNavigation()}_updateScrollerItem(e,t){this._preventScrollerRotatingCellFocus(e,t),this._columnTree&&(this._updateRowOrderParts(e,t),this._a11yUpdateRowRowindex(e,t),this._getItem(t,e))}_columnTreeChanged(e){this._renderColumnTree(e),this.recalculateColumnWidths(),this.__updateColumnsBodyContentHidden()}_updateRowOrderParts(e,t=e.index){(0,f.UN)(e,{first:0===t,last:t===this._flatSize-1,odd:t%2!=0,even:t%2==0})}_updateRowStateParts(e,{expanded:t,selected:r,detailsOpened:i}){(0,f.UN)(e,{expanded:t,collapsed:this.__isRowExpandable(e),selected:r,"details-opened":i})}_renderColumnTree(e){for((0,f.pj)(this.$.items,(t=>{this._updateRow(t,e[e.length-1],"body",!1,!0);const r=this.__getRowModel(t);this._updateRowOrderParts(t),this._updateRowStateParts(t,r),this._filterDragAndDrop(t,r)}));this.$.header.children.length<e.length;){const e=document.createElement("tr");e.setAttribute("part","row"),e.setAttribute("role","row"),e.setAttribute("tabindex","-1"),this.$.header.appendChild(e);const t=document.createElement("tr");t.setAttribute("part","row"),t.setAttribute("role","row"),t.setAttribute("tabindex","-1"),this.$.footer.appendChild(t)}for(;this.$.header.children.length>e.length;)this.$.header.removeChild(this.$.header.firstElementChild),this.$.footer.removeChild(this.$.footer.firstElementChild);(0,f.pj)(this.$.header,((t,r,i)=>{this._updateRow(t,e[r],"header",r===e.length-1);const o=(0,f.Fy)(t);(0,f.c0)(o,"first-header-row-cell",0===r),(0,f.c0)(o,"last-header-row-cell",r===i.length-1)})),(0,f.pj)(this.$.footer,((t,r,i)=>{this._updateRow(t,e[e.length-1-r],"footer",0===r);const o=(0,f.Fy)(t);(0,f.c0)(o,"first-footer-row-cell",0===r),(0,f.c0)(o,"last-footer-row-cell",r===i.length-1)})),this._updateRow(this.$.sizer,e[e.length-1]),this._resizeHandler(),this._frozenCellsChanged(),this._updateFirstAndLastColumn(),this._resetKeyboardNavigation(),this._a11yUpdateHeaderRows(),this._a11yUpdateFooterRows(),this.generateCellClassNames(),this.generateCellPartNames(),this.__updateHeaderAndFooter()}_updateItem(e,t){e._item=t;const r=this.__getRowModel(e);this._toggleDetailsCell(e,r.detailsOpened),this._a11yUpdateRowLevel(e,r.level),this._a11yUpdateRowSelected(e,r.selected),this._updateRowStateParts(e,r),this._generateCellClassNames(e,r),this._generateCellPartNames(e,r),this._filterDragAndDrop(e,r),(0,f.pj)(e,(e=>{if(e._renderer){const t=e._column||this;e._renderer.call(t,e._content,t,r)}})),this._updateDetailsCellHeight(e),this._a11yUpdateRowExpanded(e,r.expanded)}_resizeHandler(){this._updateDetailsCellHeights(),this.__updateHorizontalScrollPosition()}_onAnimationEnd(e){0===e.animationName.indexOf("vaadin-grid-appear")&&(e.stopPropagation(),this.__tryToRecalculateColumnWidthsIfPending(),requestAnimationFrame((()=>{this.__scrollToPendingIndexes()})))}__getRowModel(e){return{index:e.index,item:e._item,level:this._getIndexLevel(e.index),expanded:this._isExpanded(e._item),selected:this._isSelected(e._item),detailsOpened:!!this.rowDetailsRenderer&&this._isDetailsOpened(e._item)}}_showTooltip(e){const t=this._tooltipController.node;t&&t.isConnected&&(this._tooltipController.setTarget(e.target),this._tooltipController.setContext(this.getEventContext(e)),t._stateController.open({focus:"focusin"===e.type,hover:"mouseenter"===e.type}))}_hideTooltip(e){const t=this._tooltipController&&this._tooltipController.node;t&&t._stateController.close(e)}requestContentUpdate(){this.__updateHeaderAndFooter(),this.__updateVisibleRows()}__updateHeaderAndFooter(){(this._columnTree||[]).forEach((e=>{e.forEach((e=>{e._renderHeaderAndFooter&&e._renderHeaderAndFooter()}))}))}__updateVisibleRows(e,t){this.__virtualizer&&this.__virtualizer.update(e,t)}},ie=i.iv`
|
379
|
+
@keyframes vaadin-grid-appear {
|
380
|
+
to {
|
381
|
+
opacity: 1;
|
382
|
+
}
|
383
|
+
}
|
384
|
+
|
385
|
+
:host {
|
386
|
+
display: flex;
|
387
|
+
flex-direction: column;
|
388
|
+
animation: 1ms vaadin-grid-appear;
|
389
|
+
height: 400px;
|
390
|
+
flex: 1 1 auto;
|
391
|
+
align-self: stretch;
|
392
|
+
position: relative;
|
393
|
+
}
|
394
|
+
|
395
|
+
:host([hidden]) {
|
396
|
+
display: none !important;
|
397
|
+
}
|
398
|
+
|
399
|
+
:host([disabled]) {
|
400
|
+
pointer-events: none;
|
401
|
+
}
|
402
|
+
|
403
|
+
#scroller {
|
404
|
+
display: flex;
|
405
|
+
flex-direction: column;
|
406
|
+
min-height: 100%;
|
407
|
+
transform: translateY(0);
|
408
|
+
width: auto;
|
409
|
+
height: auto;
|
410
|
+
position: absolute;
|
411
|
+
inset: 0;
|
412
|
+
}
|
413
|
+
|
414
|
+
:host([all-rows-visible]) {
|
415
|
+
height: auto;
|
416
|
+
align-self: flex-start;
|
417
|
+
flex-grow: 0;
|
418
|
+
width: 100%;
|
419
|
+
}
|
420
|
+
|
421
|
+
:host([all-rows-visible]) #scroller {
|
422
|
+
width: 100%;
|
423
|
+
height: 100%;
|
424
|
+
position: relative;
|
425
|
+
}
|
426
|
+
|
427
|
+
:host([all-rows-visible]) #items {
|
428
|
+
min-height: 1px;
|
429
|
+
}
|
430
|
+
|
431
|
+
#table {
|
432
|
+
display: flex;
|
433
|
+
flex-direction: column;
|
434
|
+
width: 100%;
|
435
|
+
height: 100%;
|
436
|
+
overflow: auto;
|
437
|
+
position: relative;
|
438
|
+
outline: none;
|
439
|
+
/* Workaround for a Desktop Safari bug: new stacking context here prevents the scrollbar from getting hidden */
|
440
|
+
z-index: 0;
|
441
|
+
}
|
442
|
+
|
443
|
+
#header,
|
444
|
+
#footer {
|
445
|
+
display: block;
|
446
|
+
position: -webkit-sticky;
|
447
|
+
position: sticky;
|
448
|
+
left: 0;
|
449
|
+
overflow: visible;
|
450
|
+
width: 100%;
|
451
|
+
z-index: 1;
|
452
|
+
}
|
453
|
+
|
454
|
+
#header {
|
455
|
+
top: 0;
|
456
|
+
}
|
457
|
+
|
458
|
+
th {
|
459
|
+
text-align: inherit;
|
460
|
+
}
|
461
|
+
|
462
|
+
/* Safari doesn't work with "inherit" */
|
463
|
+
[safari] th {
|
464
|
+
text-align: initial;
|
465
|
+
}
|
466
|
+
|
467
|
+
#footer {
|
468
|
+
bottom: 0;
|
469
|
+
}
|
470
|
+
|
471
|
+
#items {
|
472
|
+
flex-grow: 1;
|
473
|
+
flex-shrink: 0;
|
474
|
+
display: block;
|
475
|
+
position: -webkit-sticky;
|
476
|
+
position: sticky;
|
477
|
+
width: 100%;
|
478
|
+
left: 0;
|
479
|
+
overflow: visible;
|
480
|
+
}
|
481
|
+
|
482
|
+
[part~='row'] {
|
483
|
+
display: flex;
|
484
|
+
width: 100%;
|
485
|
+
box-sizing: border-box;
|
486
|
+
margin: 0;
|
487
|
+
}
|
488
|
+
|
489
|
+
[part~='row'][loading] [part~='body-cell'] ::slotted(vaadin-grid-cell-content) {
|
490
|
+
visibility: hidden;
|
491
|
+
}
|
492
|
+
|
493
|
+
[column-rendering='lazy'] [part~='body-cell']:not([frozen]):not([frozen-to-end]) {
|
494
|
+
transform: translateX(var(--_grid-lazy-columns-start));
|
495
|
+
}
|
496
|
+
|
497
|
+
#items [part~='row'] {
|
498
|
+
position: absolute;
|
499
|
+
}
|
500
|
+
|
501
|
+
#items [part~='row']:empty {
|
502
|
+
height: 100%;
|
503
|
+
}
|
504
|
+
|
505
|
+
[part~='cell']:not([part~='details-cell']) {
|
506
|
+
flex-shrink: 0;
|
507
|
+
flex-grow: 1;
|
508
|
+
box-sizing: border-box;
|
509
|
+
display: flex;
|
510
|
+
width: 100%;
|
511
|
+
position: relative;
|
512
|
+
align-items: center;
|
513
|
+
padding: 0;
|
514
|
+
white-space: nowrap;
|
515
|
+
}
|
516
|
+
|
517
|
+
[part~='cell'] > [tabindex] {
|
518
|
+
display: flex;
|
519
|
+
align-items: inherit;
|
520
|
+
outline: none;
|
521
|
+
position: absolute;
|
522
|
+
inset: 0;
|
523
|
+
}
|
524
|
+
|
525
|
+
[part~='details-cell'] {
|
526
|
+
position: absolute;
|
527
|
+
bottom: 0;
|
528
|
+
width: 100%;
|
529
|
+
box-sizing: border-box;
|
530
|
+
padding: 0;
|
531
|
+
}
|
532
|
+
|
533
|
+
[part~='cell'] ::slotted(vaadin-grid-cell-content) {
|
534
|
+
display: block;
|
535
|
+
width: 100%;
|
536
|
+
box-sizing: border-box;
|
537
|
+
overflow: hidden;
|
538
|
+
text-overflow: ellipsis;
|
539
|
+
}
|
540
|
+
|
541
|
+
[hidden] {
|
542
|
+
display: none !important;
|
543
|
+
}
|
544
|
+
|
545
|
+
[frozen],
|
546
|
+
[frozen-to-end] {
|
547
|
+
z-index: 2;
|
548
|
+
will-change: transform;
|
549
|
+
}
|
550
|
+
|
551
|
+
[no-scrollbars][safari] #table,
|
552
|
+
[no-scrollbars][firefox] #table {
|
553
|
+
overflow: hidden;
|
554
|
+
}
|
555
|
+
|
556
|
+
/* Reordering styles */
|
557
|
+
:host([reordering]) [part~='cell'] ::slotted(vaadin-grid-cell-content),
|
558
|
+
:host([reordering]) [part~='resize-handle'],
|
559
|
+
#scroller[no-content-pointer-events] [part~='cell'] ::slotted(vaadin-grid-cell-content) {
|
560
|
+
pointer-events: none;
|
561
|
+
}
|
562
|
+
|
563
|
+
[part~='reorder-ghost'] {
|
564
|
+
visibility: hidden;
|
565
|
+
position: fixed;
|
566
|
+
pointer-events: none;
|
567
|
+
opacity: 0.5;
|
568
|
+
|
569
|
+
/* Prevent overflowing the grid in Firefox */
|
570
|
+
top: 0;
|
571
|
+
left: 0;
|
572
|
+
}
|
573
|
+
|
574
|
+
:host([reordering]) {
|
575
|
+
-moz-user-select: none;
|
576
|
+
-webkit-user-select: none;
|
577
|
+
user-select: none;
|
578
|
+
}
|
579
|
+
|
580
|
+
/* Resizing styles */
|
581
|
+
[part~='resize-handle'] {
|
582
|
+
position: absolute;
|
583
|
+
top: 0;
|
584
|
+
right: 0;
|
585
|
+
height: 100%;
|
586
|
+
cursor: col-resize;
|
587
|
+
z-index: 1;
|
588
|
+
}
|
589
|
+
|
590
|
+
[part~='resize-handle']::before {
|
591
|
+
position: absolute;
|
592
|
+
content: '';
|
593
|
+
height: 100%;
|
594
|
+
width: 35px;
|
595
|
+
transform: translateX(-50%);
|
596
|
+
}
|
597
|
+
|
598
|
+
[last-column] [part~='resize-handle']::before,
|
599
|
+
[last-frozen] [part~='resize-handle']::before {
|
600
|
+
width: 18px;
|
601
|
+
transform: none;
|
602
|
+
right: 0;
|
603
|
+
}
|
604
|
+
|
605
|
+
[frozen-to-end] [part~='resize-handle'] {
|
606
|
+
left: 0;
|
607
|
+
right: auto;
|
608
|
+
}
|
609
|
+
|
610
|
+
[frozen-to-end] [part~='resize-handle']::before {
|
611
|
+
left: 0;
|
612
|
+
right: auto;
|
613
|
+
}
|
614
|
+
|
615
|
+
[first-frozen-to-end] [part~='resize-handle']::before {
|
616
|
+
width: 18px;
|
617
|
+
transform: none;
|
618
|
+
}
|
619
|
+
|
620
|
+
[first-frozen-to-end] {
|
621
|
+
margin-inline-start: auto;
|
622
|
+
}
|
623
|
+
|
624
|
+
/* Hide resize handle if scrolled to end */
|
625
|
+
:host(:not([overflow~='end'])) [first-frozen-to-end] [part~='resize-handle'] {
|
626
|
+
display: none;
|
627
|
+
}
|
628
|
+
|
629
|
+
#scroller[column-resizing] {
|
630
|
+
-ms-user-select: none;
|
631
|
+
-moz-user-select: none;
|
632
|
+
-webkit-user-select: none;
|
633
|
+
user-select: none;
|
634
|
+
}
|
635
|
+
|
636
|
+
/* Sizer styles */
|
637
|
+
#sizer {
|
638
|
+
display: flex;
|
639
|
+
position: absolute;
|
640
|
+
visibility: hidden;
|
641
|
+
}
|
642
|
+
|
643
|
+
#sizer [part~='details-cell'] {
|
644
|
+
display: none !important;
|
645
|
+
}
|
646
|
+
|
647
|
+
#sizer [part~='cell'][hidden] {
|
648
|
+
display: none !important;
|
649
|
+
}
|
650
|
+
|
651
|
+
#sizer [part~='cell'] {
|
652
|
+
display: block;
|
653
|
+
flex-shrink: 0;
|
654
|
+
line-height: 0;
|
655
|
+
height: 0 !important;
|
656
|
+
min-height: 0 !important;
|
657
|
+
max-height: 0 !important;
|
658
|
+
padding: 0 !important;
|
659
|
+
border: none !important;
|
660
|
+
}
|
661
|
+
|
662
|
+
#sizer [part~='cell']::before {
|
663
|
+
content: '-';
|
664
|
+
}
|
665
|
+
|
666
|
+
#sizer [part~='cell'] ::slotted(vaadin-grid-cell-content) {
|
667
|
+
display: none !important;
|
668
|
+
}
|
669
|
+
|
670
|
+
/* RTL specific styles */
|
671
|
+
|
672
|
+
:host([dir='rtl']) #items,
|
673
|
+
:host([dir='rtl']) #header,
|
674
|
+
:host([dir='rtl']) #footer {
|
675
|
+
left: auto;
|
676
|
+
}
|
677
|
+
|
678
|
+
:host([dir='rtl']) [part~='reorder-ghost'] {
|
679
|
+
left: auto;
|
680
|
+
right: 0;
|
681
|
+
}
|
682
|
+
|
683
|
+
:host([dir='rtl']) [part~='resize-handle'] {
|
684
|
+
left: 0;
|
685
|
+
right: auto;
|
686
|
+
}
|
687
|
+
|
688
|
+
:host([dir='rtl']) [part~='resize-handle']::before {
|
689
|
+
transform: translateX(50%);
|
690
|
+
}
|
691
|
+
|
692
|
+
:host([dir='rtl']) [last-column] [part~='resize-handle']::before,
|
693
|
+
:host([dir='rtl']) [last-frozen] [part~='resize-handle']::before {
|
694
|
+
left: 0;
|
695
|
+
right: auto;
|
696
|
+
}
|
697
|
+
|
698
|
+
:host([dir='rtl']) [frozen-to-end] [part~='resize-handle'] {
|
699
|
+
right: 0;
|
700
|
+
left: auto;
|
701
|
+
}
|
702
|
+
|
703
|
+
:host([dir='rtl']) [frozen-to-end] [part~='resize-handle']::before {
|
704
|
+
right: 0;
|
705
|
+
left: auto;
|
706
|
+
}
|
707
|
+
|
708
|
+
@media (forced-colors: active) {
|
709
|
+
[part~='selected-row'] [part~='first-column-cell']::after {
|
710
|
+
content: '';
|
711
|
+
position: absolute;
|
712
|
+
top: 0;
|
713
|
+
left: 0;
|
714
|
+
bottom: 0;
|
715
|
+
border: 2px solid;
|
716
|
+
}
|
717
|
+
|
718
|
+
[part~='focused-cell']::before {
|
719
|
+
outline: 2px solid !important;
|
720
|
+
outline-offset: -1px;
|
721
|
+
}
|
722
|
+
}
|
723
|
+
`;(0,i.hC)("vaadin-grid",ie,{moduleId:"vaadin-grid-styles"});class oe extends(re((0,n.S)((0,i.Tb)((0,s.k)(o.H3))))){static get template(){return o.dy`
|
724
|
+
<div
|
725
|
+
id="scroller"
|
726
|
+
safari$="[[_safari]]"
|
727
|
+
ios$="[[_ios]]"
|
728
|
+
loading$="[[loading]]"
|
729
|
+
column-reordering-allowed$="[[columnReorderingAllowed]]"
|
730
|
+
>
|
731
|
+
<table id="table" role="treegrid" aria-multiselectable="true" tabindex="0">
|
732
|
+
<caption id="sizer" part="row"></caption>
|
733
|
+
<thead id="header" role="rowgroup"></thead>
|
734
|
+
<tbody id="items" role="rowgroup"></tbody>
|
735
|
+
<tfoot id="footer" role="rowgroup"></tfoot>
|
736
|
+
</table>
|
737
|
+
|
738
|
+
<div part="reorder-ghost"></div>
|
739
|
+
</div>
|
740
|
+
|
741
|
+
<slot name="tooltip"></slot>
|
742
|
+
|
743
|
+
<div id="focusexit" tabindex="0"></div>
|
744
|
+
`}static get is(){return"vaadin-grid"}}(0,a.M)(oe)}}]);
|