@vaadin/grid 25.0.0-alpha10 → 25.0.0-alpha12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (59) hide show
  1. package/all-imports.js +1 -1
  2. package/package.json +11 -14
  3. package/src/styles/vaadin-grid-base-styles.js +1 -1
  4. package/src/styles/vaadin-grid-sorter-base-styles.js +1 -1
  5. package/src/styles/vaadin-grid-tree-toggle-base-styles.js +1 -1
  6. package/src/vaadin-grid-a11y-mixin.js +14 -8
  7. package/src/vaadin-grid-filter.js +1 -1
  8. package/src/vaadin-grid-mixin.js +1 -0
  9. package/src/vaadin-grid-sorter.js +1 -1
  10. package/src/vaadin-grid-tree-toggle.js +1 -1
  11. package/src/vaadin-grid.js +1 -1
  12. package/vaadin-grid-column-group.js +1 -1
  13. package/vaadin-grid-column.js +1 -1
  14. package/vaadin-grid-filter-column.js +1 -1
  15. package/vaadin-grid-filter.js +1 -1
  16. package/vaadin-grid-selection-column.js +1 -1
  17. package/vaadin-grid-sort-column.js +1 -1
  18. package/vaadin-grid-sorter.js +1 -1
  19. package/vaadin-grid-tree-column.js +1 -1
  20. package/vaadin-grid-tree-toggle.js +1 -1
  21. package/vaadin-grid.js +1 -1
  22. package/web-types.json +4 -4
  23. package/web-types.lit.json +4 -4
  24. package/src/styles/vaadin-grid-core-styles.d.ts +0 -8
  25. package/src/styles/vaadin-grid-core-styles.js +0 -388
  26. package/src/styles/vaadin-grid-filter-core-styles.d.ts +0 -8
  27. package/src/styles/vaadin-grid-filter-core-styles.js +0 -18
  28. package/src/styles/vaadin-grid-sorter-core-styles.d.ts +0 -8
  29. package/src/styles/vaadin-grid-sorter-core-styles.js +0 -61
  30. package/src/styles/vaadin-grid-tree-toggle-core-styles.d.ts +0 -8
  31. package/src/styles/vaadin-grid-tree-toggle-core-styles.js +0 -78
  32. package/theme/lumo/all-imports.d.ts +0 -11
  33. package/theme/lumo/all-imports.js +0 -11
  34. package/theme/lumo/vaadin-grid-column-group.d.ts +0 -1
  35. package/theme/lumo/vaadin-grid-column-group.js +0 -1
  36. package/theme/lumo/vaadin-grid-column.d.ts +0 -1
  37. package/theme/lumo/vaadin-grid-column.js +0 -1
  38. package/theme/lumo/vaadin-grid-filter-column.d.ts +0 -2
  39. package/theme/lumo/vaadin-grid-filter-column.js +0 -2
  40. package/theme/lumo/vaadin-grid-filter.d.ts +0 -2
  41. package/theme/lumo/vaadin-grid-filter.js +0 -2
  42. package/theme/lumo/vaadin-grid-selection-column.d.ts +0 -2
  43. package/theme/lumo/vaadin-grid-selection-column.js +0 -2
  44. package/theme/lumo/vaadin-grid-sort-column.d.ts +0 -2
  45. package/theme/lumo/vaadin-grid-sort-column.js +0 -2
  46. package/theme/lumo/vaadin-grid-sorter-styles.d.ts +0 -3
  47. package/theme/lumo/vaadin-grid-sorter-styles.js +0 -52
  48. package/theme/lumo/vaadin-grid-sorter.d.ts +0 -2
  49. package/theme/lumo/vaadin-grid-sorter.js +0 -2
  50. package/theme/lumo/vaadin-grid-styles.d.ts +0 -6
  51. package/theme/lumo/vaadin-grid-styles.js +0 -405
  52. package/theme/lumo/vaadin-grid-tree-column.d.ts +0 -2
  53. package/theme/lumo/vaadin-grid-tree-column.js +0 -2
  54. package/theme/lumo/vaadin-grid-tree-toggle-styles.d.ts +0 -3
  55. package/theme/lumo/vaadin-grid-tree-toggle-styles.js +0 -81
  56. package/theme/lumo/vaadin-grid-tree-toggle.d.ts +0 -2
  57. package/theme/lumo/vaadin-grid-tree-toggle.js +0 -2
  58. package/theme/lumo/vaadin-grid.d.ts +0 -2
  59. package/theme/lumo/vaadin-grid.js +0 -2
@@ -1,388 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright (c) 2016 - 2025 Vaadin Ltd.
4
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
- */
6
- import { css } from 'lit';
7
-
8
- export const gridStyles = css`
9
- @keyframes vaadin-grid-appear {
10
- to {
11
- opacity: 1;
12
- }
13
- }
14
-
15
- :host {
16
- display: flex;
17
- flex-direction: column;
18
- animation: 1ms vaadin-grid-appear;
19
- height: 400px;
20
- min-height: var(--_grid-min-height, 0);
21
- flex: 1 1 auto;
22
- align-self: stretch;
23
- position: relative;
24
- box-sizing: border-box;
25
- }
26
-
27
- :host([hidden]) {
28
- display: none !important;
29
- }
30
-
31
- :host([disabled]) {
32
- pointer-events: none;
33
- }
34
-
35
- #scroller {
36
- display: flex;
37
- flex-direction: column;
38
- min-height: 100%;
39
- transform: translateY(0);
40
- width: auto;
41
- height: auto;
42
- position: absolute;
43
- inset: 0;
44
- }
45
-
46
- :host([all-rows-visible]) {
47
- height: auto;
48
- align-self: flex-start;
49
- min-height: auto;
50
- flex-grow: 0;
51
- width: 100%;
52
- }
53
-
54
- :host([all-rows-visible]) #scroller {
55
- width: 100%;
56
- height: 100%;
57
- position: relative;
58
- }
59
-
60
- :host([all-rows-visible]) #items {
61
- min-height: 1px;
62
- }
63
-
64
- #table {
65
- display: flex;
66
- flex-direction: column;
67
- width: 100%;
68
- height: 100%;
69
- overflow: auto;
70
- position: relative;
71
- outline: none;
72
- /* Workaround for a Desktop Safari bug: new stacking context here prevents the scrollbar from getting hidden */
73
- z-index: 0;
74
- }
75
-
76
- #header,
77
- #footer {
78
- display: block;
79
- position: sticky;
80
- left: 0;
81
- overflow: visible;
82
- width: 100%;
83
- z-index: 1;
84
- }
85
-
86
- #header {
87
- top: 0;
88
- }
89
-
90
- th {
91
- text-align: inherit;
92
- }
93
-
94
- /* Safari doesn't work with "inherit" */
95
- [safari] th {
96
- text-align: initial;
97
- }
98
-
99
- #footer {
100
- bottom: 0;
101
- }
102
-
103
- #items {
104
- flex-grow: 1;
105
- flex-shrink: 0;
106
- display: block;
107
- position: sticky;
108
- width: 100%;
109
- left: 0;
110
- overflow: visible;
111
- }
112
-
113
- [part~='row'] {
114
- display: flex;
115
- width: 100%;
116
- box-sizing: border-box;
117
- margin: 0;
118
- }
119
-
120
- [part~='row'][loading] [part~='body-cell'] ::slotted(vaadin-grid-cell-content) {
121
- visibility: hidden;
122
- }
123
-
124
- [column-rendering='lazy'] [part~='body-cell']:not([frozen]):not([frozen-to-end]) {
125
- transform: translateX(var(--_grid-lazy-columns-start));
126
- }
127
-
128
- #items [part~='row'] {
129
- position: absolute;
130
- }
131
-
132
- #items [part~='row']:empty {
133
- height: 100%;
134
- }
135
-
136
- [part~='cell']:not([part~='details-cell']) {
137
- flex-shrink: 0;
138
- flex-grow: 1;
139
- box-sizing: border-box;
140
- display: flex;
141
- width: 100%;
142
- position: relative;
143
- align-items: center;
144
- padding: 0;
145
- white-space: nowrap;
146
- }
147
-
148
- [part~='cell'] {
149
- outline: none;
150
- }
151
-
152
- [part~='cell'] > [tabindex] {
153
- display: flex;
154
- align-items: inherit;
155
- outline: none;
156
- position: absolute;
157
- inset: 0;
158
- }
159
-
160
- /* Switch the focusButtonMode wrapping element to "position: static" temporarily
161
- when measuring real width of the cells in the auto-width columns. */
162
- [measuring-auto-width] [part~='cell'] > [tabindex] {
163
- position: static;
164
- }
165
-
166
- [part~='details-cell'] {
167
- position: absolute;
168
- bottom: 0;
169
- width: 100%;
170
- box-sizing: border-box;
171
- padding: 0;
172
- }
173
-
174
- [part~='cell'] ::slotted(vaadin-grid-cell-content) {
175
- display: block;
176
- width: 100%;
177
- box-sizing: border-box;
178
- overflow: hidden;
179
- text-overflow: ellipsis;
180
- }
181
-
182
- [hidden] {
183
- display: none !important;
184
- }
185
-
186
- [frozen],
187
- [frozen-to-end] {
188
- z-index: 2;
189
- will-change: transform;
190
- }
191
-
192
- [no-scrollbars][safari] #table,
193
- [no-scrollbars][firefox] #table {
194
- overflow: hidden;
195
- }
196
-
197
- /* Empty state */
198
-
199
- #scroller:not([empty-state]) #emptystatebody,
200
- #scroller[empty-state] #items {
201
- display: none;
202
- }
203
-
204
- #emptystatebody {
205
- display: flex;
206
- position: sticky;
207
- inset: 0;
208
- flex: 1;
209
- overflow: hidden;
210
- }
211
-
212
- #emptystaterow {
213
- display: flex;
214
- flex: 1;
215
- }
216
-
217
- #emptystatecell {
218
- display: block;
219
- flex: 1;
220
- overflow: auto;
221
- }
222
-
223
- /* Reordering styles */
224
- :host([reordering]) [part~='cell'] ::slotted(vaadin-grid-cell-content),
225
- :host([reordering]) [part~='resize-handle'],
226
- #scroller[no-content-pointer-events] [part~='cell'] ::slotted(vaadin-grid-cell-content) {
227
- pointer-events: none;
228
- }
229
-
230
- [part~='reorder-ghost'] {
231
- visibility: hidden;
232
- position: fixed;
233
- pointer-events: none;
234
- opacity: 0.5;
235
-
236
- /* Prevent overflowing the grid in Firefox */
237
- top: 0;
238
- left: 0;
239
- }
240
-
241
- :host([reordering]) {
242
- -webkit-user-select: none;
243
- user-select: none;
244
- }
245
-
246
- /* Resizing styles */
247
- [part~='resize-handle'] {
248
- position: absolute;
249
- top: 0;
250
- right: 0;
251
- height: 100%;
252
- cursor: col-resize;
253
- z-index: 1;
254
- }
255
-
256
- [part~='resize-handle']::before {
257
- position: absolute;
258
- content: '';
259
- height: 100%;
260
- width: 35px;
261
- transform: translateX(-50%);
262
- }
263
-
264
- [last-column] [part~='resize-handle']::before,
265
- [last-frozen] [part~='resize-handle']::before {
266
- width: 18px;
267
- transform: none;
268
- right: 0;
269
- }
270
-
271
- [frozen-to-end] [part~='resize-handle'] {
272
- left: 0;
273
- right: auto;
274
- }
275
-
276
- [frozen-to-end] [part~='resize-handle']::before {
277
- left: 0;
278
- right: auto;
279
- }
280
-
281
- [first-frozen-to-end] [part~='resize-handle']::before {
282
- width: 18px;
283
- transform: none;
284
- }
285
-
286
- [first-frozen-to-end] {
287
- margin-inline-start: auto;
288
- }
289
-
290
- /* Hide resize handle if scrolled to end */
291
- :host(:not([overflow~='end'])) [first-frozen-to-end] [part~='resize-handle'] {
292
- display: none;
293
- }
294
-
295
- #scroller[column-resizing],
296
- #scroller[range-selecting] {
297
- -webkit-user-select: none;
298
- user-select: none;
299
- }
300
-
301
- /* Sizer styles */
302
- #sizer {
303
- display: flex;
304
- position: absolute;
305
- visibility: hidden;
306
- }
307
-
308
- #sizer [part~='details-cell'] {
309
- display: none !important;
310
- }
311
-
312
- #sizer [part~='cell'][hidden] {
313
- display: none !important;
314
- }
315
-
316
- #sizer [part~='cell'] {
317
- display: block;
318
- flex-shrink: 0;
319
- line-height: 0;
320
- height: 0 !important;
321
- min-height: 0 !important;
322
- max-height: 0 !important;
323
- padding: 0 !important;
324
- border: none !important;
325
- }
326
-
327
- #sizer [part~='cell']::before {
328
- content: '-';
329
- }
330
-
331
- #sizer [part~='cell'] ::slotted(vaadin-grid-cell-content) {
332
- display: none !important;
333
- }
334
-
335
- /* RTL specific styles */
336
-
337
- :host([dir='rtl']) #items,
338
- :host([dir='rtl']) #header,
339
- :host([dir='rtl']) #footer {
340
- left: auto;
341
- }
342
-
343
- :host([dir='rtl']) [part~='reorder-ghost'] {
344
- left: auto;
345
- right: 0;
346
- }
347
-
348
- :host([dir='rtl']) [part~='resize-handle'] {
349
- left: 0;
350
- right: auto;
351
- }
352
-
353
- :host([dir='rtl']) [part~='resize-handle']::before {
354
- transform: translateX(50%);
355
- }
356
-
357
- :host([dir='rtl']) [last-column] [part~='resize-handle']::before,
358
- :host([dir='rtl']) [last-frozen] [part~='resize-handle']::before {
359
- left: 0;
360
- right: auto;
361
- }
362
-
363
- :host([dir='rtl']) [frozen-to-end] [part~='resize-handle'] {
364
- right: 0;
365
- left: auto;
366
- }
367
-
368
- :host([dir='rtl']) [frozen-to-end] [part~='resize-handle']::before {
369
- right: 0;
370
- left: auto;
371
- }
372
-
373
- @media (forced-colors: active) {
374
- [part~='selected-row'] [part~='first-column-cell']::after {
375
- content: '';
376
- position: absolute;
377
- top: 0;
378
- left: 0;
379
- bottom: 0;
380
- border: 2px solid;
381
- }
382
-
383
- [part~='focused-cell']::before {
384
- outline: 2px solid !important;
385
- outline-offset: -1px;
386
- }
387
- }
388
- `;
@@ -1,8 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright (c) 2016 - 2025 Vaadin Ltd.
4
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
- */
6
- import type { CSSResult } from 'lit';
7
-
8
- export const gridFilterStyles: CSSResult;
@@ -1,18 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright (c) 2016 - 2025 Vaadin Ltd.
4
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
- */
6
- import { css } from 'lit';
7
-
8
- export const gridFilterStyles = css`
9
- :host {
10
- display: inline-flex;
11
- max-width: 100%;
12
- }
13
-
14
- ::slotted(*) {
15
- width: 100%;
16
- box-sizing: border-box;
17
- }
18
- `;
@@ -1,8 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright (c) 2016 - 2025 Vaadin Ltd.
4
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
- */
6
- import type { CSSResult } from 'lit';
7
-
8
- export const gridSorterStyles: CSSResult;
@@ -1,61 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright (c) 2016 - 2025 Vaadin Ltd.
4
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
- */
6
- import { css } from 'lit';
7
-
8
- const template = document.createElement('template');
9
-
10
- template.innerHTML = `
11
- <style>
12
- @font-face {
13
- font-family: 'vaadin-grid-sorter-icons';
14
- src: url(data:application/font-woff;charset=utf-8;base64,d09GRgABAAAAAAQwAA0AAAAABuwAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABGRlRNAAAEFAAAABkAAAAcfep+mUdERUYAAAP4AAAAHAAAAB4AJwAOT1MvMgAAAZgAAAA/AAAAYA8TBPpjbWFwAAAB7AAAAFUAAAFeF1fZ4mdhc3AAAAPwAAAACAAAAAgAAAAQZ2x5ZgAAAlgAAABcAAAAnMvguMloZWFkAAABMAAAAC8AAAA2C5Ap72hoZWEAAAFgAAAAHQAAACQGbQPHaG10eAAAAdgAAAAUAAAAHAoAAABsb2NhAAACRAAAABIAAAASAIwAYG1heHAAAAGAAAAAFgAAACAACwAKbmFtZQAAArQAAAECAAACZ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font-style: normal;
17
- }
18
- </style>
19
- `;
20
-
21
- document.head.appendChild(template.content);
22
-
23
- export const gridSorterStyles = css`
24
- :host {
25
- display: inline-flex;
26
- cursor: pointer;
27
- max-width: 100%;
28
- }
29
-
30
- [part='content'] {
31
- flex: 1 1 auto;
32
- }
33
-
34
- [part='indicators'] {
35
- position: relative;
36
- align-self: center;
37
- flex: none;
38
- }
39
-
40
- [part='order'] {
41
- display: inline;
42
- vertical-align: super;
43
- }
44
-
45
- [part='indicators']::before {
46
- font-family: 'vaadin-grid-sorter-icons';
47
- display: inline-block;
48
- }
49
-
50
- :host(:not([direction])) [part='indicators']::before {
51
- content: '\\e901';
52
- }
53
-
54
- :host([direction='asc']) [part='indicators']::before {
55
- content: '\\e900';
56
- }
57
-
58
- :host([direction='desc']) [part='indicators']::before {
59
- content: '\\e902';
60
- }
61
- `;
@@ -1,8 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright (c) 2016 - 2025 Vaadin Ltd.
4
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
- */
6
- import type { CSSResult } from 'lit';
7
-
8
- export const gridTreeToggleStyles: CSSResult;
@@ -1,78 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright (c) 2016 - 2025 Vaadin Ltd.
4
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
- */
6
- import { css } from 'lit';
7
-
8
- const template = document.createElement('template');
9
-
10
- template.innerHTML = `
11
- <style>
12
- @font-face {
13
- font-family: "vaadin-grid-tree-icons";
14
- src: url(data:application/font-woff;charset=utf-8;base64,d09GRgABAAAAAAQkAA0AAAAABrwAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABGRlRNAAAECAAAABoAAAAcgHwa6EdERUYAAAPsAAAAHAAAAB4AJwAOT1MvMgAAAZQAAAA/AAAAYA8TBIJjbWFwAAAB8AAAAFUAAAFeGJvXWmdhc3AAAAPkAAAACAAAAAgAAAAQZ2x5ZgAAAlwAAABLAAAAhIrPOhFoZWFkAAABM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zlHaB0q4A76kLlwAAAAEAAf//AA94nGNgZGBg4AFiMSBmYmAEQnYgZgHzGAAD6wA2eJxjYGBgZACCKxJigiD6mhFTNowGACmcA/8AAA==) format('woff');
15
- font-weight: normal;
16
- font-style: normal;
17
- }
18
- </style>
19
- `;
20
-
21
- document.head.appendChild(template.content);
22
-
23
- export const gridTreeToggleStyles = css`
24
- :host {
25
- display: inline-flex;
26
- align-items: baseline;
27
- max-width: 100%;
28
-
29
- /* CSS API for :host */
30
- --vaadin-grid-tree-toggle-level-offset: 1em;
31
- --_collapsed-icon: '\\e7be\\00a0';
32
- }
33
-
34
- :host([dir='rtl']) {
35
- --_collapsed-icon: '\\e7bd\\00a0';
36
- }
37
-
38
- :host([hidden]) {
39
- display: none !important;
40
- }
41
-
42
- :host(:not([leaf])) {
43
- cursor: pointer;
44
- }
45
-
46
- #level-spacer,
47
- [part='toggle'] {
48
- flex: none;
49
- }
50
-
51
- #level-spacer {
52
- display: inline-block;
53
- width: calc(var(--_level, '0') * var(--vaadin-grid-tree-toggle-level-offset));
54
- }
55
-
56
- [part='toggle']::before {
57
- font-family: 'vaadin-grid-tree-icons';
58
- line-height: 1em; /* make icon font metrics not affect baseline */
59
- }
60
-
61
- :host(:not([expanded])) [part='toggle']::before {
62
- content: var(--_collapsed-icon);
63
- }
64
-
65
- :host([expanded]) [part='toggle']::before {
66
- content: '\\e7bc\\00a0'; /* icon glyph + single non-breaking space */
67
- }
68
-
69
- :host([leaf]) [part='toggle'] {
70
- visibility: hidden;
71
- }
72
-
73
- slot {
74
- display: block;
75
- overflow: hidden;
76
- text-overflow: ellipsis;
77
- }
78
- `;
@@ -1,11 +0,0 @@
1
- import './vaadin-grid-column-group.js';
2
- import './vaadin-grid-column.js';
3
- import './vaadin-grid-filter.js';
4
- import './vaadin-grid-filter-column.js';
5
- import './vaadin-grid-selection-column.js';
6
- import './vaadin-grid-sorter.js';
7
- import './vaadin-grid-sort-column.js';
8
- import './vaadin-grid-tree-toggle.js';
9
- import './vaadin-grid-tree-column.js';
10
- import './vaadin-grid.js';
11
- import '../../src/all-imports.js';
@@ -1,11 +0,0 @@
1
- import './vaadin-grid-column-group.js';
2
- import './vaadin-grid-column.js';
3
- import './vaadin-grid-filter.js';
4
- import './vaadin-grid-filter-column.js';
5
- import './vaadin-grid-selection-column.js';
6
- import './vaadin-grid-sorter.js';
7
- import './vaadin-grid-sort-column.js';
8
- import './vaadin-grid-tree-toggle.js';
9
- import './vaadin-grid-tree-column.js';
10
- import './vaadin-grid.js';
11
- import '../../src/all-imports.js';
@@ -1 +0,0 @@
1
- import '../../src/vaadin-grid-column-group.js';
@@ -1 +0,0 @@
1
- import '../../src/vaadin-grid-column-group.js';
@@ -1 +0,0 @@
1
- import '../../src/vaadin-grid-column.js';
@@ -1 +0,0 @@
1
- import '../../src/vaadin-grid-column.js';
@@ -1,2 +0,0 @@
1
- import './vaadin-grid-filter.js';
2
- import '../../src/vaadin-grid-filter-column.js';
@@ -1,2 +0,0 @@
1
- import './vaadin-grid-filter.js';
2
- import '../../src/vaadin-grid-filter-column.js';
@@ -1,2 +0,0 @@
1
- import '@vaadin/text-field/theme/lumo/vaadin-text-field.js';
2
- import '../../src/vaadin-grid-filter.js';
@@ -1,2 +0,0 @@
1
- import '@vaadin/text-field/theme/lumo/vaadin-text-field.js';
2
- import '../../src/vaadin-grid-filter.js';
@@ -1,2 +0,0 @@
1
- import '@vaadin/checkbox/theme/lumo/vaadin-checkbox.js';
2
- import '../../src/vaadin-grid-selection-column.js';
@@ -1,2 +0,0 @@
1
- import '@vaadin/checkbox/theme/lumo/vaadin-checkbox.js';
2
- import '../../src/vaadin-grid-selection-column.js';
@@ -1,2 +0,0 @@
1
- import './vaadin-grid-sorter.js';
2
- import '../../src/vaadin-grid-sort-column.js';
@@ -1,2 +0,0 @@
1
- import './vaadin-grid-sorter.js';
2
- import '../../src/vaadin-grid-sort-column.js';
@@ -1,3 +0,0 @@
1
- import '@vaadin/vaadin-lumo-styles/color.js';
2
- import '@vaadin/vaadin-lumo-styles/style.js';
3
- import '@vaadin/vaadin-lumo-styles/spacing.js';