@vaadin/grid 25.0.0-alpha2 → 25.0.0-alpha21

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 (84) hide show
  1. package/all-imports.js +1 -1
  2. package/package.json +12 -13
  3. package/src/array-data-provider.js +9 -2
  4. package/src/lit/column-renderer-directives.d.ts +0 -1
  5. package/src/styles/vaadin-grid-base-styles.d.ts +8 -0
  6. package/src/styles/vaadin-grid-base-styles.js +677 -0
  7. package/src/styles/vaadin-grid-filter-base-styles.d.ts +8 -0
  8. package/src/styles/vaadin-grid-filter-base-styles.js +18 -0
  9. package/src/styles/vaadin-grid-sorter-base-styles.d.ts +8 -0
  10. package/src/styles/vaadin-grid-sorter-base-styles.js +76 -0
  11. package/src/styles/vaadin-grid-tree-toggle-base-styles.d.ts +8 -0
  12. package/src/styles/vaadin-grid-tree-toggle-base-styles.js +76 -0
  13. package/src/vaadin-grid-a11y-mixin.js +26 -10
  14. package/src/vaadin-grid-column-auto-width-mixin.js +9 -6
  15. package/src/vaadin-grid-column-mixin.d.ts +1 -0
  16. package/src/vaadin-grid-column-mixin.js +1 -16
  17. package/src/vaadin-grid-column-reordering-mixin.js +2 -2
  18. package/src/vaadin-grid-data-provider-mixin.js +33 -85
  19. package/src/vaadin-grid-drag-and-drop-mixin.js +3 -0
  20. package/src/vaadin-grid-event-context-mixin.d.ts +2 -0
  21. package/src/vaadin-grid-event-context-mixin.js +1 -0
  22. package/src/vaadin-grid-filter-element-mixin.js +0 -17
  23. package/src/vaadin-grid-filter.js +7 -1
  24. package/src/vaadin-grid-helpers.js +9 -0
  25. package/src/vaadin-grid-keyboard-navigation-mixin.js +2 -6
  26. package/src/vaadin-grid-mixin.d.ts +1 -0
  27. package/src/vaadin-grid-mixin.js +64 -32
  28. package/src/vaadin-grid-row-details-mixin.js +5 -5
  29. package/src/vaadin-grid-scroll-mixin.js +57 -77
  30. package/src/vaadin-grid-selection-column-base-mixin.d.ts +1 -1
  31. package/src/vaadin-grid-selection-column-base-mixin.js +1 -1
  32. package/src/vaadin-grid-selection-column.d.ts +2 -0
  33. package/src/vaadin-grid-selection-column.js +2 -1
  34. package/src/vaadin-grid-sort-column.d.ts +2 -0
  35. package/src/vaadin-grid-sorter-mixin.js +0 -60
  36. package/src/vaadin-grid-sorter.d.ts +3 -3
  37. package/src/vaadin-grid-sorter.js +10 -4
  38. package/src/vaadin-grid-tree-column-mixin.js +2 -7
  39. package/src/vaadin-grid-tree-toggle-mixin.js +0 -77
  40. package/src/vaadin-grid-tree-toggle.d.ts +4 -4
  41. package/src/vaadin-grid-tree-toggle.js +13 -5
  42. package/src/vaadin-grid.d.ts +2 -1
  43. package/src/vaadin-grid.js +6 -3
  44. package/vaadin-grid-column-group.js +1 -1
  45. package/vaadin-grid-column.js +1 -1
  46. package/vaadin-grid-filter-column.js +1 -1
  47. package/vaadin-grid-filter.js +1 -1
  48. package/vaadin-grid-selection-column.js +1 -1
  49. package/vaadin-grid-sort-column.js +1 -1
  50. package/vaadin-grid-sorter.js +1 -1
  51. package/vaadin-grid-tree-column.js +1 -1
  52. package/vaadin-grid-tree-toggle.js +1 -1
  53. package/vaadin-grid.js +1 -1
  54. package/web-types.json +13 -13
  55. package/web-types.lit.json +12 -12
  56. package/src/vaadin-grid-styles.js +0 -389
  57. package/theme/lumo/all-imports.d.ts +0 -11
  58. package/theme/lumo/all-imports.js +0 -11
  59. package/theme/lumo/vaadin-grid-column-group.d.ts +0 -1
  60. package/theme/lumo/vaadin-grid-column-group.js +0 -1
  61. package/theme/lumo/vaadin-grid-column.d.ts +0 -1
  62. package/theme/lumo/vaadin-grid-column.js +0 -1
  63. package/theme/lumo/vaadin-grid-filter-column.d.ts +0 -2
  64. package/theme/lumo/vaadin-grid-filter-column.js +0 -2
  65. package/theme/lumo/vaadin-grid-filter.d.ts +0 -2
  66. package/theme/lumo/vaadin-grid-filter.js +0 -2
  67. package/theme/lumo/vaadin-grid-selection-column.d.ts +0 -2
  68. package/theme/lumo/vaadin-grid-selection-column.js +0 -2
  69. package/theme/lumo/vaadin-grid-sort-column.d.ts +0 -2
  70. package/theme/lumo/vaadin-grid-sort-column.js +0 -2
  71. package/theme/lumo/vaadin-grid-sorter-styles.d.ts +0 -3
  72. package/theme/lumo/vaadin-grid-sorter-styles.js +0 -52
  73. package/theme/lumo/vaadin-grid-sorter.d.ts +0 -2
  74. package/theme/lumo/vaadin-grid-sorter.js +0 -2
  75. package/theme/lumo/vaadin-grid-styles.d.ts +0 -6
  76. package/theme/lumo/vaadin-grid-styles.js +0 -405
  77. package/theme/lumo/vaadin-grid-tree-column.d.ts +0 -2
  78. package/theme/lumo/vaadin-grid-tree-column.js +0 -2
  79. package/theme/lumo/vaadin-grid-tree-toggle-styles.d.ts +0 -3
  80. package/theme/lumo/vaadin-grid-tree-toggle-styles.js +0 -81
  81. package/theme/lumo/vaadin-grid-tree-toggle.d.ts +0 -2
  82. package/theme/lumo/vaadin-grid-tree-toggle.js +0 -2
  83. package/theme/lumo/vaadin-grid.d.ts +0 -2
  84. package/theme/lumo/vaadin-grid.js +0 -2
@@ -1,52 +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';
4
- import { css, registerStyles } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
5
-
6
- registerStyles(
7
- 'vaadin-grid-sorter',
8
- css`
9
- :host {
10
- justify-content: flex-start;
11
- align-items: baseline;
12
- -webkit-user-select: none;
13
- user-select: none;
14
- cursor: var(--lumo-clickable-cursor);
15
- }
16
-
17
- [part='content'] {
18
- display: inline-block;
19
- overflow: hidden;
20
- text-overflow: ellipsis;
21
- }
22
-
23
- [part='indicators'] {
24
- margin-left: var(--lumo-space-s);
25
- }
26
-
27
- [part='indicators']::before {
28
- transform: scale(0.8);
29
- }
30
-
31
- :host(:not([direction]):not(:hover)) [part='indicators'] {
32
- color: var(--lumo-tertiary-text-color);
33
- }
34
-
35
- :host([direction]) {
36
- color: var(--vaadin-selection-color-text, var(--lumo-primary-text-color));
37
- }
38
-
39
- [part='order'] {
40
- font-size: var(--lumo-font-size-xxs);
41
- line-height: 1;
42
- }
43
-
44
- /* RTL specific styles */
45
-
46
- :host([dir='rtl']) [part='indicators'] {
47
- margin-right: var(--lumo-space-s);
48
- margin-left: 0;
49
- }
50
- `,
51
- { moduleId: 'lumo-grid-sorter' },
52
- );
@@ -1,2 +0,0 @@
1
- import './vaadin-grid-sorter-styles.js';
2
- import '../../src/vaadin-grid-sorter.js';
@@ -1,2 +0,0 @@
1
- import './vaadin-grid-sorter-styles.js';
2
- import '../../src/vaadin-grid-sorter.js';
@@ -1,6 +0,0 @@
1
- import '@vaadin/vaadin-lumo-styles/color.js';
2
- import '@vaadin/vaadin-lumo-styles/font-icons.js';
3
- import '@vaadin/vaadin-lumo-styles/sizing.js';
4
- import '@vaadin/vaadin-lumo-styles/spacing.js';
5
- import '@vaadin/vaadin-lumo-styles/style.js';
6
- import '@vaadin/vaadin-lumo-styles/typography.js';
@@ -1,405 +0,0 @@
1
- import '@vaadin/vaadin-lumo-styles/color.js';
2
- import '@vaadin/vaadin-lumo-styles/font-icons.js';
3
- import '@vaadin/vaadin-lumo-styles/sizing.js';
4
- import '@vaadin/vaadin-lumo-styles/spacing.js';
5
- import '@vaadin/vaadin-lumo-styles/style.js';
6
- import '@vaadin/vaadin-lumo-styles/typography.js';
7
- import { css, registerStyles } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
8
-
9
- registerStyles(
10
- 'vaadin-grid',
11
- css`
12
- :host {
13
- font-family: var(--lumo-font-family);
14
- font-size: var(--lumo-font-size-m);
15
- line-height: var(--lumo-line-height-s);
16
- color: var(--lumo-body-text-color);
17
- background-color: var(--lumo-base-color);
18
- box-sizing: border-box;
19
- -webkit-text-size-adjust: 100%;
20
- -webkit-tap-highlight-color: transparent;
21
- -webkit-font-smoothing: antialiased;
22
- -moz-osx-font-smoothing: grayscale;
23
- --_focus-ring-color: var(--vaadin-focus-ring-color, var(--lumo-primary-color-50pct));
24
- --_focus-ring-width: var(--vaadin-focus-ring-width, 2px);
25
- /* For internal use only */
26
- --_lumo-grid-border-color: var(--lumo-contrast-20pct);
27
- --_lumo-grid-secondary-border-color: var(--lumo-contrast-10pct);
28
- --_lumo-grid-border-width: 1px;
29
- --_lumo-grid-selected-row-color: var(--lumo-primary-color-10pct);
30
- }
31
-
32
- /* No (outer) border */
33
-
34
- :host(:not([theme~='no-border'])) {
35
- border: var(--_lumo-grid-border-width) solid var(--_lumo-grid-border-color);
36
- }
37
-
38
- :host([disabled]) {
39
- opacity: 0.7;
40
- }
41
-
42
- /* Cell styles */
43
-
44
- [part~='cell'] {
45
- min-height: var(--lumo-size-m);
46
- background-color: var(--vaadin-grid-cell-background, var(--lumo-base-color));
47
- cursor: default;
48
- --_cell-padding: var(--vaadin-grid-cell-padding, var(--_cell-default-padding));
49
- --_cell-default-padding: var(--lumo-space-xs) var(--lumo-space-m);
50
- }
51
-
52
- [part~='cell'] ::slotted(vaadin-grid-cell-content) {
53
- cursor: inherit;
54
- padding: var(--_cell-padding);
55
- }
56
-
57
- /* Apply row borders by default and introduce the "no-row-borders" variant */
58
- :host(:not([theme~='no-row-borders'])) [part~='cell']:not([part~='details-cell']) {
59
- border-top: var(--_lumo-grid-border-width) solid var(--_lumo-grid-secondary-border-color);
60
- }
61
-
62
- /* Hide first body row top border */
63
- :host(:not([theme~='no-row-borders'])) [part~='first-row'] [part~='cell']:not([part~='details-cell']) {
64
- border-top: 0;
65
- min-height: calc(var(--lumo-size-m) - var(--_lumo-grid-border-width));
66
- }
67
-
68
- /* Focus-ring */
69
-
70
- [part~='row'] {
71
- position: relative;
72
- }
73
-
74
- [part~='row']:focus,
75
- [part~='focused-cell']:focus {
76
- outline: none;
77
- }
78
-
79
- :host([navigating]) [part~='row']:focus::before,
80
- :host([navigating]) [part~='focused-cell']:focus::before {
81
- content: '';
82
- position: absolute;
83
- inset: 0;
84
- pointer-events: none;
85
- box-shadow: inset 0 0 0 var(--_focus-ring-width) var(--_focus-ring-color);
86
- }
87
-
88
- :host([navigating]) [part~='row']:focus::before {
89
- transform: translateX(calc(-1 * var(--_grid-horizontal-scroll-position)));
90
- z-index: 3;
91
- }
92
-
93
- /* Empty state */
94
- [part~='empty-state'] {
95
- padding: var(--lumo-space-m);
96
- color: var(--lumo-secondary-text-color);
97
- }
98
-
99
- /* Drag and Drop styles */
100
- :host([dragover])::after {
101
- content: '';
102
- position: absolute;
103
- z-index: 100;
104
- inset: 0;
105
- pointer-events: none;
106
- box-shadow: inset 0 0 0 var(--_focus-ring-width) var(--_focus-ring-color);
107
- }
108
-
109
- [part~='row'][dragover] {
110
- z-index: 100 !important;
111
- }
112
-
113
- [part~='row'][dragover] [part~='cell'] {
114
- overflow: visible;
115
- }
116
-
117
- [part~='row'][dragover] [part~='cell']::after {
118
- content: '';
119
- position: absolute;
120
- inset: 0;
121
- height: calc(var(--_lumo-grid-border-width) + 2px);
122
- pointer-events: none;
123
- background: var(--lumo-primary-color-50pct);
124
- }
125
-
126
- [part~='row'][dragover] [part~='cell'][last-frozen]::after {
127
- right: -1px;
128
- }
129
-
130
- :host([theme~='no-row-borders']) [dragover] [part~='cell']::after {
131
- height: 2px;
132
- }
133
-
134
- [part~='row'][dragover='below'] [part~='cell']::after {
135
- top: 100%;
136
- bottom: auto;
137
- margin-top: -1px;
138
- }
139
-
140
- :host([all-rows-visible]) [part~='last-row'][dragover='below'] [part~='cell']::after {
141
- height: 1px;
142
- }
143
-
144
- [part~='row'][dragover='above'] [part~='cell']::after {
145
- top: auto;
146
- bottom: 100%;
147
- margin-bottom: -1px;
148
- }
149
-
150
- [part~='row'][details-opened][dragover='below'] [part~='cell']:not([part~='details-cell'])::after,
151
- [part~='row'][details-opened][dragover='above'] [part~='details-cell']::after {
152
- display: none;
153
- }
154
-
155
- [part~='row'][dragover][dragover='on-top'] [part~='cell']::after {
156
- height: 100%;
157
- opacity: 0.5;
158
- }
159
-
160
- [part~='row'][dragstart] [part~='cell'] {
161
- border: none !important;
162
- box-shadow: none !important;
163
- }
164
-
165
- [part~='row'][dragstart] [part~='cell'][last-column] {
166
- border-radius: 0 var(--lumo-border-radius-s) var(--lumo-border-radius-s) 0;
167
- }
168
-
169
- [part~='row'][dragstart] [part~='cell'][first-column] {
170
- border-radius: var(--lumo-border-radius-s) 0 0 var(--lumo-border-radius-s);
171
- }
172
-
173
- #scroller [part~='row'][dragstart]:not([dragstart=''])::after {
174
- display: block;
175
- position: absolute;
176
- left: var(--_grid-drag-start-x);
177
- top: var(--_grid-drag-start-y);
178
- z-index: 100;
179
- content: attr(dragstart);
180
- align-items: center;
181
- justify-content: center;
182
- box-sizing: border-box;
183
- padding: calc(var(--lumo-space-xs) * 0.8);
184
- color: var(--lumo-error-contrast-color);
185
- background-color: var(--lumo-error-color);
186
- border-radius: var(--lumo-border-radius-m);
187
- font-family: var(--lumo-font-family);
188
- font-size: var(--lumo-font-size-xxs);
189
- line-height: 1;
190
- font-weight: 500;
191
- text-transform: initial;
192
- letter-spacing: initial;
193
- min-width: calc(var(--lumo-size-s) * 0.7);
194
- text-align: center;
195
- }
196
-
197
- /* Headers and footers */
198
-
199
- [part~='header-cell'],
200
- [part~='footer-cell'],
201
- [part~='reorder-ghost'] {
202
- font-size: var(--lumo-font-size-s);
203
- font-weight: 500;
204
- }
205
-
206
- [part~='footer-cell'] {
207
- font-weight: 400;
208
- }
209
-
210
- [part~='row']:only-child [part~='header-cell'] {
211
- min-height: var(--lumo-size-xl);
212
- }
213
-
214
- /* Header borders */
215
-
216
- /* Hide first header row top border */
217
- :host(:not([theme~='no-row-borders'])) [part~='row']:first-child [part~='header-cell'] {
218
- border-top: 0;
219
- }
220
-
221
- /* Hide header row top border if previous row is hidden */
222
- [part~='row'][hidden] + [part~='row'] [part~='header-cell'] {
223
- border-top: 0;
224
- }
225
-
226
- [part~='row']:last-child [part~='header-cell'] {
227
- border-bottom: var(--_lumo-grid-border-width) solid transparent;
228
- }
229
-
230
- :host(:not([theme~='no-row-borders'])) [part~='row']:last-child [part~='header-cell'] {
231
- border-bottom-color: var(--_lumo-grid-secondary-border-color);
232
- }
233
-
234
- /* Overflow uses a stronger border color */
235
- :host([overflow~='top']) [part~='row']:last-child [part~='header-cell'] {
236
- border-bottom-color: var(--_lumo-grid-border-color);
237
- }
238
-
239
- /* Footer borders */
240
-
241
- [part~='row']:first-child [part~='footer-cell'] {
242
- border-top: var(--_lumo-grid-border-width) solid transparent;
243
- }
244
-
245
- :host(:not([theme~='no-row-borders'])) [part~='row']:first-child [part~='footer-cell'] {
246
- border-top-color: var(--_lumo-grid-secondary-border-color);
247
- }
248
-
249
- /* Overflow uses a stronger border color */
250
- :host([overflow~='bottom']) [part~='row']:first-child [part~='footer-cell'] {
251
- border-top-color: var(--_lumo-grid-border-color);
252
- }
253
-
254
- /* Column reordering */
255
-
256
- :host([reordering]) [part~='cell'] {
257
- background: linear-gradient(var(--lumo-shade-20pct), var(--lumo-shade-20pct)) var(--lumo-base-color);
258
- }
259
-
260
- :host([reordering]) [part~='cell'][reorder-status='allowed'] {
261
- background: var(--lumo-base-color);
262
- }
263
-
264
- :host([reordering]) [part~='cell'][reorder-status='dragging'] {
265
- background: linear-gradient(var(--lumo-contrast-5pct), var(--lumo-contrast-5pct)) var(--lumo-base-color);
266
- }
267
-
268
- [part~='reorder-ghost'] {
269
- opacity: 0.85;
270
- box-shadow: var(--lumo-box-shadow-s);
271
- /* TODO Use the same styles as for the cell element (reorder-ghost copies styles from the cell element) */
272
- padding: var(--lumo-space-s) var(--lumo-space-m) !important;
273
- }
274
-
275
- /* Column resizing */
276
-
277
- [part='resize-handle'] {
278
- --_resize-handle-width: 3px;
279
- width: var(--_resize-handle-width);
280
- background-color: var(--lumo-primary-color-50pct);
281
- opacity: 0;
282
- transition: opacity 0.2s;
283
- }
284
-
285
- [part='resize-handle']::before {
286
- transform: translateX(calc(-50% + var(--_resize-handle-width) / 2));
287
- width: var(--lumo-size-s);
288
- }
289
-
290
- :host(:not([reordering])) *:not([column-resizing]) [part~='cell']:hover [part='resize-handle'],
291
- [part='resize-handle']:active {
292
- opacity: 1;
293
- transition-delay: 0.15s;
294
- }
295
-
296
- /* Column borders */
297
-
298
- :host([theme~='column-borders']) [part~='cell']:not([last-column]):not([part~='details-cell']) {
299
- border-right: var(--_lumo-grid-border-width) solid var(--_lumo-grid-secondary-border-color);
300
- }
301
-
302
- /* Frozen columns */
303
-
304
- [last-frozen] {
305
- border-right: var(--_lumo-grid-border-width) solid transparent;
306
- overflow: hidden;
307
- }
308
-
309
- :host([overflow~='start']) [part~='cell'][last-frozen]:not([part~='details-cell']) {
310
- border-right-color: var(--_lumo-grid-border-color);
311
- }
312
-
313
- [first-frozen-to-end] {
314
- border-left: var(--_lumo-grid-border-width) solid transparent;
315
- }
316
-
317
- :host([overflow~='end']) [part~='cell'][first-frozen-to-end]:not([part~='details-cell']) {
318
- border-left-color: var(--_lumo-grid-border-color);
319
- }
320
-
321
- /* Row stripes */
322
-
323
- :host([theme~='row-stripes']) [part~='even-row'] [part~='body-cell'],
324
- :host([theme~='row-stripes']) [part~='even-row'] [part~='details-cell'] {
325
- background-image: linear-gradient(var(--lumo-contrast-5pct), var(--lumo-contrast-5pct));
326
- background-repeat: repeat-x;
327
- }
328
-
329
- /* Selected row */
330
-
331
- /* Raise the selected rows above unselected rows (so that box-shadow can cover unselected rows) */
332
- :host(:not([reordering])) [part~='row'][selected] {
333
- z-index: 1;
334
- }
335
-
336
- :host(:not([reordering])) [part~='row'][selected] [part~='body-cell']:not([part~='details-cell']) {
337
- background-image: linear-gradient(var(--_lumo-grid-selected-row-color), var(--_lumo-grid-selected-row-color));
338
- background-repeat: repeat;
339
- }
340
-
341
- /* Cover the border of an unselected row */
342
- :host(:not([theme~='no-row-borders'])) [part~='row'][selected] [part~='cell']:not([part~='details-cell']) {
343
- box-shadow: 0 var(--_lumo-grid-border-width) 0 0 var(--_lumo-grid-selected-row-color);
344
- }
345
-
346
- /* Compact */
347
-
348
- :host([theme~='compact']) [part~='row']:only-child [part~='header-cell'] {
349
- min-height: var(--lumo-size-m);
350
- }
351
-
352
- :host([theme~='compact']) [part~='cell'] {
353
- min-height: var(--lumo-size-s);
354
- --_cell-default-padding: var(--lumo-space-xs) var(--lumo-space-s);
355
- }
356
-
357
- :host([theme~='compact']) [part~='first-row'] [part~='cell']:not([part~='details-cell']) {
358
- min-height: calc(var(--lumo-size-s) - var(--_lumo-grid-border-width));
359
- }
360
-
361
- :host([theme~='compact']) [part~='empty-state'] {
362
- padding: var(--lumo-space-s);
363
- }
364
-
365
- /* Wrap cell contents */
366
-
367
- :host([theme~='wrap-cell-content']) [part~='cell'] ::slotted(vaadin-grid-cell-content) {
368
- white-space: normal;
369
- }
370
-
371
- /* RTL specific styles */
372
-
373
- :host([dir='rtl']) [part~='row'][dragstart] [part~='cell'][last-column] {
374
- border-radius: var(--lumo-border-radius-s) 0 0 var(--lumo-border-radius-s);
375
- }
376
-
377
- :host([dir='rtl']) [part~='row'][dragstart] [part~='cell'][first-column] {
378
- border-radius: 0 var(--lumo-border-radius-s) var(--lumo-border-radius-s) 0;
379
- }
380
-
381
- :host([dir='rtl'][theme~='column-borders']) [part~='cell']:not([last-column]):not([part~='details-cell']) {
382
- border-right: none;
383
- border-left: var(--_lumo-grid-border-width) solid var(--_lumo-grid-secondary-border-color);
384
- }
385
-
386
- :host([dir='rtl']) [last-frozen] {
387
- border-right: none;
388
- border-left: var(--_lumo-grid-border-width) solid transparent;
389
- }
390
-
391
- :host([dir='rtl']) [first-frozen-to-end] {
392
- border-left: none;
393
- border-right: var(--_lumo-grid-border-width) solid transparent;
394
- }
395
-
396
- :host([dir='rtl'][overflow~='start']) [part~='cell'][last-frozen]:not([part~='details-cell']) {
397
- border-left-color: var(--_lumo-grid-border-color);
398
- }
399
-
400
- :host([dir='rtl'][overflow~='end']) [part~='cell'][first-frozen-to-end]:not([part~='details-cell']) {
401
- border-right-color: var(--_lumo-grid-border-color);
402
- }
403
- `,
404
- { moduleId: 'lumo-grid' },
405
- );
@@ -1,2 +0,0 @@
1
- import './vaadin-grid-tree-toggle.js';
2
- import '../../src/vaadin-grid-tree-column.js';
@@ -1,2 +0,0 @@
1
- import './vaadin-grid-tree-toggle.js';
2
- import '../../src/vaadin-grid-tree-column.js';
@@ -1,3 +0,0 @@
1
- import '@vaadin/vaadin-lumo-styles/color.js';
2
- import '@vaadin/vaadin-lumo-styles/spacing.js';
3
- import '@vaadin/vaadin-lumo-styles/style.js';
@@ -1,81 +0,0 @@
1
- import '@vaadin/vaadin-lumo-styles/color.js';
2
- import '@vaadin/vaadin-lumo-styles/spacing.js';
3
- import '@vaadin/vaadin-lumo-styles/style.js';
4
- import { css, registerStyles } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
5
-
6
- registerStyles(
7
- 'vaadin-grid-tree-toggle',
8
- css`
9
- :host {
10
- --vaadin-grid-tree-toggle-level-offset: 2em;
11
- align-items: center;
12
- vertical-align: middle;
13
- transform: translateX(calc(var(--lumo-space-s) * -1));
14
- -webkit-tap-highlight-color: transparent;
15
- }
16
-
17
- :host(:not([leaf])) {
18
- cursor: default;
19
- }
20
-
21
- [part='toggle'] {
22
- display: inline-block;
23
- font-size: 1.5em;
24
- line-height: 1;
25
- width: 1em;
26
- height: 1em;
27
- text-align: center;
28
- color: var(--lumo-contrast-50pct);
29
- cursor: var(--lumo-clickable-cursor);
30
- /* Increase touch target area */
31
- padding: calc(1em / 3);
32
- margin: calc(1em / -3);
33
- }
34
-
35
- :host(:not([dir='rtl'])) [part='toggle'] {
36
- margin-right: 0;
37
- }
38
-
39
- @media (hover: hover) {
40
- :host(:hover) [part='toggle'] {
41
- color: var(--lumo-contrast-80pct);
42
- }
43
- }
44
-
45
- [part='toggle']::before {
46
- font-family: 'lumo-icons';
47
- display: inline-block;
48
- height: 100%;
49
- }
50
-
51
- :host(:not([expanded])) [part='toggle']::before {
52
- content: var(--lumo-icons-angle-right);
53
- }
54
-
55
- :host([expanded]) [part='toggle']::before {
56
- content: var(--lumo-icons-angle-right);
57
- transform: rotate(90deg);
58
- }
59
-
60
- /* RTL specific styles */
61
-
62
- :host([dir='rtl']) {
63
- margin-left: 0;
64
- margin-right: calc(var(--lumo-space-s) * -1);
65
- }
66
-
67
- :host([dir='rtl']) [part='toggle'] {
68
- margin-left: 0;
69
- }
70
-
71
- :host([dir='rtl'][expanded]) [part='toggle']::before {
72
- transform: rotate(-90deg);
73
- }
74
-
75
- :host([dir='rtl']:not([expanded])) [part='toggle']::before,
76
- :host([dir='rtl'][expanded]) [part='toggle']::before {
77
- content: var(--lumo-icons-angle-left);
78
- }
79
- `,
80
- { moduleId: 'lumo-grid-tree-toggle' },
81
- );
@@ -1,2 +0,0 @@
1
- import './vaadin-grid-tree-toggle-styles.js';
2
- import '../../src/vaadin-grid-tree-toggle.js';
@@ -1,2 +0,0 @@
1
- import './vaadin-grid-tree-toggle-styles.js';
2
- import '../../src/vaadin-grid-tree-toggle.js';
@@ -1,2 +0,0 @@
1
- import './vaadin-grid-styles.js';
2
- import '../../src/vaadin-grid.js';
@@ -1,2 +0,0 @@
1
- import './vaadin-grid-styles.js';
2
- import '../../src/vaadin-grid.js';