@slotted/styles 0.1.0-beta.4 → 0.1.0-beta.40
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +21 -1
- package/src/accordion/accordion.css +31 -13
- package/src/accordion/accordion.tokens.json +2 -0
- package/src/action-bar/action-bar.css +47 -44
- package/src/action-bar/action-bar.tokens.json +1 -0
- package/src/action-sheet/action-sheet.css +39 -39
- package/src/alert/alert.css +97 -97
- package/src/alert/alert.tokens.json +6 -1
- package/src/app-shell/app-shell.css +472 -342
- package/src/app-shell/app-shell.tokens.json +6 -3
- package/src/aspect-ratio/aspect-ratio.css +24 -23
- package/src/attachment/attachment.css +118 -114
- package/src/avatar/avatar.css +97 -67
- package/src/avatar/avatar.tokens.json +8 -0
- package/src/avatar-group/avatar-group.css +22 -23
- package/src/badge/badge.css +58 -47
- package/src/badge/badge.tokens.json +6 -0
- package/src/breadcrumb/breadcrumb.css +52 -52
- package/src/button/button.css +408 -93
- package/src/button/button.tokens.json +13 -0
- package/src/button-group/button-group.css +80 -79
- package/src/button-group/button-group.tokens.json +1 -0
- package/src/calendar/calendar.css +594 -267
- package/src/calendar/calendar.tokens.json +35 -3
- package/src/card/card.css +133 -70
- package/src/card/card.tokens.json +1 -0
- package/src/carousel/carousel.css +158 -169
- package/src/cascader/cascader.css +174 -159
- package/src/cascader/cascader.tokens.json +2 -0
- package/src/chart/chart.css +300 -271
- package/src/chart/chart.tokens.json +5 -0
- package/src/checkbox/checkbox.css +190 -148
- package/src/checkbox/checkbox.tokens.json +4 -0
- package/src/checkbox-group/checkbox-group.css +7 -7
- package/src/clock/clock.css +246 -0
- package/src/clock/clock.tokens.json +44 -0
- package/src/code-block/code-block.css +85 -89
- package/src/collapsible/collapsible.css +273 -85
- package/src/collapsible/collapsible.tokens.json +6 -0
- package/src/color-picker/color-picker.css +106 -114
- package/src/column-manager/column-manager.css +111 -119
- package/src/combobox/combobox.css +219 -132
- package/src/combobox/combobox.tokens.json +4 -0
- package/src/command-palette/command-palette.css +214 -102
- package/src/command-palette/command-palette.tokens.json +4 -0
- package/src/container/container.css +27 -27
- package/src/context-menu/context-menu.css +9 -9
- package/src/currency-field/currency-field.css +119 -119
- package/src/currency-field/currency-field.tokens.json +1 -0
- package/src/dashboard-grid/dashboard-grid.css +231 -115
- package/src/dashboard-grid/dashboard-grid.tokens.json +3 -1
- package/src/data-grid/data-grid.css +637 -496
- package/src/data-grid/data-grid.tokens.json +5 -1
- package/src/data-list/data-list.css +93 -76
- package/src/data-list/data-list.tokens.json +2 -1
- package/src/date-field/date-field.css +62 -57
- package/src/date-field/date-field.tokens.json +1 -0
- package/src/date-picker/date-picker.css +31 -269
- package/src/date-picker/date-picker.tokens.json +1 -21
- package/src/date-range-picker/date-range-picker.css +72 -528
- package/src/date-range-picker/date-range-picker.tokens.json +1 -37
- package/src/datetime-field/datetime-field.css +90 -90
- package/src/datetime-field/datetime-field.tokens.json +1 -0
- package/src/datetime-picker/datetime-picker.css +49 -711
- package/src/datetime-picker/datetime-picker.tokens.json +1 -50
- package/src/datetime-range-picker/datetime-range-picker.css +60 -985
- package/src/datetime-range-picker/datetime-range-picker.tokens.json +1 -67
- package/src/description-list/description-list.css +120 -76
- package/src/description-list/description-list.tokens.json +1 -0
- package/src/detail-panel/detail-panel.css +86 -71
- package/src/detail-panel/detail-panel.tokens.json +2 -0
- package/src/dialog/dialog.css +462 -199
- package/src/dialog/dialog.tokens.json +10 -0
- package/src/divider/divider.css +20 -20
- package/src/drawer/drawer.css +736 -237
- package/src/drawer/drawer.tokens.json +15 -0
- package/src/entity-picker/entity-picker.css +402 -272
- package/src/entity-picker/entity-picker.tokens.json +6 -0
- package/src/event-calendar/event-calendar.css +357 -399
- package/src/field/field.css +106 -93
- package/src/field/field.tokens.json +2 -0
- package/src/field-group/field-group.css +58 -38
- package/src/field-group/field-group.tokens.json +3 -0
- package/src/filter-bar/filter-bar.css +224 -216
- package/src/floating-panel/floating-panel.css +147 -0
- package/src/floating-panel/floating-panel.tokens.json +32 -0
- package/src/form/form.css +103 -26
- package/src/form/form.tokens.json +6 -1
- package/src/fullscreen/fullscreen.css +26 -27
- package/src/grid/grid.css +32 -31
- package/src/highlight/highlight.css +11 -11
- package/src/hover-card/hover-card.css +9 -9
- package/src/icon/icon.css +67 -20
- package/src/icon/icon.tokens.json +1 -0
- package/src/image/image.css +42 -42
- package/src/import-export-center/import-export-center.css +147 -168
- package/src/import-export-center/import-export-center.tokens.json +1 -0
- package/src/inline/inline.css +29 -29
- package/src/inline-message/inline-message.css +162 -86
- package/src/inline-message/inline-message.tokens.json +5 -0
- package/src/kbd/kbd.css +63 -51
- package/src/kbd/kbd.tokens.json +4 -0
- package/src/link/link.css +54 -33
- package/src/link/link.tokens.json +4 -0
- package/src/list/list.css +55 -24
- package/src/list/list.tokens.json +2 -0
- package/src/list-item/list-item.css +195 -80
- package/src/list-item/list-item.tokens.json +10 -0
- package/src/listbox/listbox.css +121 -72
- package/src/listbox/listbox.tokens.json +6 -1
- package/src/loading-overlay/loading-overlay.css +86 -103
- package/src/markdown/markdown.css +20 -20
- package/src/media-viewer/media-viewer.css +790 -0
- package/src/media-viewer/media-viewer.tokens.json +53 -0
- package/src/menu/menu.css +166 -83
- package/src/menu/menu.tokens.json +3 -1
- package/src/menubar/menubar.css +16 -16
- package/src/message/message.css +1296 -1243
- package/src/message/message.tokens.json +14 -0
- package/src/message-scroller/message-scroller.css +323 -320
- package/src/meter/meter.css +136 -0
- package/src/meter/meter.tokens.json +23 -0
- package/src/multi-select/multi-select.css +246 -174
- package/src/multi-select/multi-select.tokens.json +3 -0
- package/src/navigation-menu/navigation-menu.css +170 -191
- package/src/navigation-menu/navigation-menu.tokens.json +1 -0
- package/src/notification-center/notification-center.css +155 -163
- package/src/notification-center/notification-center.tokens.json +4 -0
- package/src/number-field/number-field.css +93 -93
- package/src/number-field/number-field.tokens.json +1 -0
- package/src/otp-input/otp-input.css +74 -64
- package/src/otp-input/otp-input.tokens.json +1 -0
- package/src/page/page.css +109 -31
- package/src/page/page.tokens.json +8 -0
- package/src/page-header/page-header.css +342 -287
- package/src/page-header/page-header.tokens.json +6 -1
- package/src/pagination/pagination.css +75 -79
- package/src/picker-panel/picker-panel.css +1074 -0
- package/src/picker-panel/picker-panel.tokens.json +77 -0
- package/src/popover/popover.css +85 -65
- package/src/popover/popover.tokens.json +2 -0
- package/src/progress-indicator/progress-indicator.css +194 -137
- package/src/progress-indicator/progress-indicator.tokens.json +1 -0
- package/src/prompt-composer/prompt-composer.css +274 -116
- package/src/prompt-composer/prompt-composer.tokens.json +15 -0
- package/src/prose/prose.css +77 -82
- package/src/radio-group/radio-group.css +107 -112
- package/src/rating/rating.css +147 -143
- package/src/rating/rating.tokens.json +2 -0
- package/src/result-state/result-state.css +95 -102
- package/src/result-state/result-state.tokens.json +1 -0
- package/src/runtime-properties.mjs +44 -6
- package/src/saved-views/saved-views.css +43 -49
- package/src/scroll-area/scroll-area.css +50 -37
- package/src/section/section.css +311 -46
- package/src/section/section.tokens.json +13 -1
- package/src/segmented-control/segmented-control.css +221 -133
- package/src/segmented-control/segmented-control.tokens.json +7 -11
- package/src/select/select.css +226 -149
- package/src/select/select.tokens.json +4 -0
- package/src/side-navigation/side-navigation.css +204 -201
- package/src/side-navigation/side-navigation.tokens.json +2 -0
- package/src/skeleton/skeleton.css +76 -58
- package/src/slider/slider.css +108 -104
- package/src/slider/slider.tokens.json +1 -0
- package/src/sparkline/sparkline.css +75 -53
- package/src/sparkline/sparkline.tokens.json +2 -0
- package/src/spinner/spinner.css +83 -180
- package/src/spinner/spinner.tokens.json +0 -1
- package/src/split-button/split-button.css +34 -35
- package/src/split-button/split-button.tokens.json +1 -0
- package/src/splitter/splitter.css +47 -48
- package/src/stack/stack.css +26 -26
- package/src/stat-card/stat-card.css +420 -245
- package/src/stat-card/stat-card.tokens.json +8 -0
- package/src/status-indicator/status-indicator.css +126 -101
- package/src/status-indicator/status-indicator.tokens.json +0 -3
- package/src/stepper/stepper.css +78 -82
- package/src/switch/switch.css +143 -125
- package/src/switch/switch.tokens.json +4 -0
- package/src/table/table.css +653 -222
- package/src/table/table.tokens.json +10 -0
- package/src/table-of-contents/table-of-contents.css +60 -59
- package/src/table-of-contents/table-of-contents.tokens.json +1 -0
- package/src/tabs/tabs.css +327 -294
- package/src/tabs/tabs.tokens.json +7 -1
- package/src/tag/tag.css +113 -89
- package/src/tag/tag.tokens.json +11 -0
- package/src/tags-input/tags-input.css +152 -87
- package/src/tags-input/tags-input.tokens.json +7 -1
- package/src/text-field/text-field.css +146 -148
- package/src/text-field/text-field.tokens.json +1 -0
- package/src/textarea/textarea.css +38 -33
- package/src/textarea/textarea.tokens.json +1 -0
- package/src/time-field/time-field.css +82 -77
- package/src/time-field/time-field.tokens.json +1 -0
- package/src/time-picker/time-picker.css +30 -519
- package/src/time-picker/time-picker.tokens.json +1 -38
- package/src/time-range-picker/time-range-picker.css +53 -895
- package/src/time-range-picker/time-range-picker.tokens.json +1 -66
- package/src/timeline/timeline.css +280 -292
- package/src/timeline/timeline.tokens.json +5 -0
- package/src/toast/toast.css +139 -122
- package/src/toast/toast.tokens.json +7 -0
- package/src/toggle/toggle.css +34 -38
- package/src/toggle-group/toggle-group.css +73 -77
- package/src/toolbar/toolbar.css +49 -40
- package/src/toolbar/toolbar.tokens.json +2 -1
- package/src/tooltip/tooltip.css +95 -39
- package/src/tooltip/tooltip.tokens.json +1 -0
- package/src/top-navigation/top-navigation.css +253 -269
- package/src/top-navigation/top-navigation.tokens.json +1 -0
- package/src/tour/tour.css +68 -74
- package/src/tour/tour.tokens.json +1 -0
- package/src/transfer/transfer.css +164 -168
- package/src/tree/tree.css +118 -122
- package/src/typography/typography.css +67 -38
- package/src/typography/typography.tokens.json +2 -0
- package/src/upload/upload.css +256 -257
- package/src/visually-hidden/visually-hidden.css +1 -1
- package/src/wizard/wizard.css +187 -199
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
* indicator, the group and the filter row — is declared after the shared
|
|
17
17
|
* set.
|
|
18
18
|
*/
|
|
19
|
-
[data-ui
|
|
19
|
+
[data-ui-data-grid][data-part-root] {
|
|
20
20
|
/* Geometry. Every value is the control scale's, so one theme decision
|
|
21
21
|
retunes the rows, the buttons and the fields together, and
|
|
22
22
|
`@media (pointer: coarse)` grows all three at once. */
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
/* What is left of the control's height around one line of text, so a
|
|
38
38
|
one-line row is exactly the control height at every density. A floor of
|
|
39
39
|
one space step keeps a wrapped row from losing its inset. Derived from
|
|
40
|
-
the head's height, not the row's: a stated row height
|
|
40
|
+
the head's height, not the row's: a stated row height centers its cells
|
|
41
41
|
and pads nothing. */
|
|
42
42
|
--_pad-block: var(
|
|
43
43
|
--slotted-data-grid-cell-padding-block,
|
|
@@ -98,22 +98,35 @@
|
|
|
98
98
|
--slotted-data-grid-row-surface-hover,
|
|
99
99
|
var(--slotted-tone-secondary-subtle-hover, ButtonFace)
|
|
100
100
|
);
|
|
101
|
+
/**
|
|
102
|
+
* A run of selected rows reads as one block: the accent border mixed
|
|
103
|
+
* into the row's ground, the same border closing the run above and
|
|
104
|
+
* below, and every rule inside it — between rows and at a pinned zone's
|
|
105
|
+
* edge — tinted toward that border; no rail (R1). The ink stays the
|
|
106
|
+
* row's own. The ground mixes the border, which is the light accent in
|
|
107
|
+
* the dark scheme and the dark one in the light: at 20% it stands 1.3:1
|
|
108
|
+
* from the page in both on the default theme, above the stripe and the
|
|
109
|
+
* hover. The accent's surfaces read as nothing on a dark row, and its
|
|
110
|
+
* solid ink at any one share was twice as strong in light as in dark.
|
|
111
|
+
*/
|
|
112
|
+
--_selected-edge: var(
|
|
113
|
+
--slotted-data-grid-row-border-color-selected,
|
|
114
|
+
var(--slotted-tone-accent-border, Highlight)
|
|
115
|
+
);
|
|
101
116
|
--_selected: var(
|
|
102
117
|
--slotted-data-grid-row-surface-selected,
|
|
103
|
-
var(--
|
|
118
|
+
color-mix(in oklab, var(--_selected-edge) 20%, var(--_surface))
|
|
104
119
|
);
|
|
105
120
|
--_selected-hover: var(
|
|
106
121
|
--slotted-data-grid-row-surface-selected-hover,
|
|
107
|
-
var(--
|
|
108
|
-
);
|
|
109
|
-
--_selected-text: var(
|
|
110
|
-
--slotted-data-grid-row-color-selected,
|
|
111
|
-
var(--slotted-tone-accent-text, CanvasText)
|
|
122
|
+
color-mix(in oklab, var(--_selected-edge) 28%, var(--_surface))
|
|
112
123
|
);
|
|
124
|
+
--_selected-text: var(--slotted-data-grid-row-color-selected, var(--_text));
|
|
125
|
+
--_selected-rule: color-mix(in oklab, var(--_selected-edge) 30%, var(--_selected));
|
|
113
126
|
/**
|
|
114
|
-
* The cursor and the range are one
|
|
127
|
+
* The cursor and the range are one color: the accent border, which holds
|
|
115
128
|
* the non-text ratio against the page and against the accent ground it
|
|
116
|
-
* encloses (`docs/token-foundation.md`, Semantic
|
|
129
|
+
* encloses (`docs/token-foundation.md`, Semantic color). The cursor is
|
|
117
130
|
* drawn at 60% while the grid has no focus — a reader back from a popover
|
|
118
131
|
* finds where they were — and whole under `:focus-visible`.
|
|
119
132
|
*/
|
|
@@ -147,6 +160,13 @@
|
|
|
147
160
|
var(--slotted-space-1, 0.125rem) * 2
|
|
148
161
|
)
|
|
149
162
|
);
|
|
163
|
+
/* The control scale as the theme states it, read here once: a body row
|
|
164
|
+
restates the scale for what its cells hold (below), and a property
|
|
165
|
+
cannot read its own inherited value. */
|
|
166
|
+
--_control-height-sm: var(--slotted-control-height-sm, 30px);
|
|
167
|
+
--_control-height-md: var(--slotted-control-height-md, 34px);
|
|
168
|
+
--_control-height-lg: var(--slotted-control-height-lg, 38px);
|
|
169
|
+
--_target-min: var(--slotted-target-min, 24px);
|
|
150
170
|
/* Its glyph keeps two pixels of air inside the control's ground, so at
|
|
151
171
|
dense — a 17-pixel control in a 25-pixel track — the ground reads as a
|
|
152
172
|
button and not as a filled cell. */
|
|
@@ -183,7 +203,7 @@
|
|
|
183
203
|
position: relative;
|
|
184
204
|
}
|
|
185
205
|
|
|
186
|
-
[data-ui
|
|
206
|
+
[data-ui-data-grid][data-variant='framed'] {
|
|
187
207
|
border: var(--_rule-width) solid var(--_rule);
|
|
188
208
|
border-radius: var(--_radius);
|
|
189
209
|
/* A box standing on the page takes the surface step, as table's frame does. */
|
|
@@ -199,12 +219,13 @@
|
|
|
199
219
|
* Both axes. It is the window the virtualiser measures, so it takes the room
|
|
200
220
|
* the frame leaves after the footer and scrolls what does not fit.
|
|
201
221
|
*/
|
|
202
|
-
[data-ui
|
|
203
|
-
/*
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
222
|
+
[data-ui-data-grid] > [data-part-scroll] {
|
|
223
|
+
/* No `container-type`. A detail row, a group row and the empty state are
|
|
224
|
+
held to the frame by `--slotted-data-grid-viewport`, the scroller's
|
|
225
|
+
width the binding measures. As a size container the scroller made the
|
|
226
|
+
browser recalculate and lay out everything inside it whenever a row
|
|
227
|
+
entered or left: 45 ms of layout per scroll step on a grid of 29 mounted
|
|
228
|
+
rows, against 3 ms without it. */
|
|
208
229
|
flex: 1 1 auto;
|
|
209
230
|
min-block-size: 0;
|
|
210
231
|
overflow: auto;
|
|
@@ -223,7 +244,7 @@
|
|
|
223
244
|
position: relative;
|
|
224
245
|
}
|
|
225
246
|
|
|
226
|
-
[data-ui
|
|
247
|
+
[data-ui-data-grid][data-sticky-to='page'] > [data-part-scroll] {
|
|
227
248
|
overflow: visible;
|
|
228
249
|
}
|
|
229
250
|
|
|
@@ -251,14 +272,14 @@
|
|
|
251
272
|
other: a widget inside a cell may hold rows of its own — a multi-select's
|
|
252
273
|
chips are a `row` of a grid pattern — and a descendant selector laid its
|
|
253
274
|
chips out on this grid's column template. */
|
|
254
|
-
[data-ui
|
|
255
|
-
> [data-part
|
|
275
|
+
[data-ui-data-grid]
|
|
276
|
+
> [data-part-scroll]
|
|
256
277
|
> :is(
|
|
257
|
-
[data-part
|
|
258
|
-
[data-part
|
|
259
|
-
[data-part
|
|
260
|
-
[data-part
|
|
261
|
-
[data-part
|
|
278
|
+
[data-part-head],
|
|
279
|
+
[data-part-body],
|
|
280
|
+
[data-part-pinned-rows],
|
|
281
|
+
[data-part-summary],
|
|
282
|
+
[data-part-loader]
|
|
262
283
|
)
|
|
263
284
|
> [role='row'] {
|
|
264
285
|
box-sizing: border-box;
|
|
@@ -279,7 +300,7 @@
|
|
|
279
300
|
|
|
280
301
|
/* The rules between rows are the rows' own: a row is a block box, unlike a
|
|
281
302
|
table row, so its border runs the whole width, filler included. */
|
|
282
|
-
[data-ui
|
|
303
|
+
[data-ui-data-grid] [data-part-header-row] {
|
|
283
304
|
background-color: var(--_head-surface);
|
|
284
305
|
border-block-end: var(--_rule-width) solid var(--_rule-strong);
|
|
285
306
|
}
|
|
@@ -287,27 +308,27 @@
|
|
|
287
308
|
/* A row of column groups stands above the row of names, and the rule
|
|
288
309
|
between the two is the lighter one; the strong rule is the last header
|
|
289
310
|
row's, over the values. */
|
|
290
|
-
[data-ui
|
|
311
|
+
[data-ui-data-grid] [data-part-header-row]:not(:last-of-type) {
|
|
291
312
|
border-block-end-color: var(--_rule);
|
|
292
313
|
}
|
|
293
314
|
|
|
294
|
-
[data-ui
|
|
315
|
+
[data-ui-data-grid][data-variant='plain'] [data-part-header-row] {
|
|
295
316
|
background-color: transparent;
|
|
296
317
|
}
|
|
297
318
|
|
|
298
|
-
[data-ui
|
|
319
|
+
[data-ui-data-grid] [data-part-filter-row] {
|
|
299
320
|
background-color: var(--_band-surface);
|
|
300
321
|
border-block-end: var(--_rule-width) solid var(--_rule);
|
|
301
322
|
}
|
|
302
323
|
|
|
303
|
-
[data-ui
|
|
304
|
-
> [data-part
|
|
324
|
+
[data-ui-data-grid]
|
|
325
|
+
> [data-part-scroll]
|
|
305
326
|
> :is(
|
|
306
|
-
[data-part
|
|
307
|
-
[data-part
|
|
308
|
-
[data-part
|
|
309
|
-
[data-part
|
|
310
|
-
[data-part
|
|
327
|
+
[data-part-head],
|
|
328
|
+
[data-part-body],
|
|
329
|
+
[data-part-pinned-rows],
|
|
330
|
+
[data-part-summary],
|
|
331
|
+
[data-part-loader]
|
|
311
332
|
)
|
|
312
333
|
> [role='row']
|
|
313
334
|
> * {
|
|
@@ -318,14 +339,14 @@
|
|
|
318
339
|
scroller's width with wider rows inside it is a box its own rows overflow,
|
|
319
340
|
which the page audit reads as a defect and a reader never sees. Sized to
|
|
320
341
|
the rows, the only thing that scrolls is the scroller. */
|
|
321
|
-
[data-ui
|
|
322
|
-
> [data-part
|
|
342
|
+
[data-ui-data-grid]
|
|
343
|
+
> [data-part-scroll]
|
|
323
344
|
> :is(
|
|
324
|
-
[data-part
|
|
325
|
-
[data-part
|
|
326
|
-
[data-part
|
|
327
|
-
[data-part
|
|
328
|
-
[data-part
|
|
345
|
+
[data-part-head],
|
|
346
|
+
[data-part-body],
|
|
347
|
+
[data-part-pinned-rows],
|
|
348
|
+
[data-part-summary],
|
|
349
|
+
[data-part-loader]
|
|
329
350
|
) {
|
|
330
351
|
inline-size: fit-content;
|
|
331
352
|
min-inline-size: 100%;
|
|
@@ -342,23 +363,23 @@
|
|
|
342
363
|
* `button` inside a `columnheader` would be a widget the cursor has to
|
|
343
364
|
* enter.
|
|
344
365
|
*/
|
|
345
|
-
[data-ui
|
|
366
|
+
[data-ui-data-grid] > [data-part-scroll] > [data-part-head] {
|
|
346
367
|
inset-block-start: var(--slotted-data-grid-sticky-offset, 0);
|
|
347
368
|
position: sticky;
|
|
348
369
|
z-index: calc(var(--slotted-z-index-sticky, 100) + 1);
|
|
349
370
|
}
|
|
350
371
|
|
|
351
|
-
[data-ui
|
|
372
|
+
[data-ui-data-grid]:not([data-sticky-header]) > [data-part-scroll] > [data-part-head] {
|
|
352
373
|
position: static;
|
|
353
374
|
}
|
|
354
375
|
|
|
355
|
-
[data-ui
|
|
356
|
-
[data-ui
|
|
357
|
-
[data-ui
|
|
358
|
-
> [data-part
|
|
359
|
-
> [data-part
|
|
376
|
+
[data-ui-data-grid] [data-part-column-header],
|
|
377
|
+
[data-ui-data-grid] [data-part-column-group],
|
|
378
|
+
[data-ui-data-grid]
|
|
379
|
+
> [data-part-scroll]
|
|
380
|
+
> [data-part-head]
|
|
360
381
|
> [role='row']
|
|
361
|
-
> [data-part
|
|
382
|
+
> [data-part-selection] {
|
|
362
383
|
align-items: center;
|
|
363
384
|
background-color: var(--_head-surface);
|
|
364
385
|
box-sizing: border-box;
|
|
@@ -378,21 +399,21 @@
|
|
|
378
399
|
transition: background-color var(--_transition);
|
|
379
400
|
}
|
|
380
401
|
|
|
381
|
-
[data-ui
|
|
382
|
-
:is([data-part
|
|
402
|
+
[data-ui-data-grid][data-variant='plain']
|
|
403
|
+
:is([data-part-column-header], [data-part-column-group]) {
|
|
383
404
|
background-color: transparent;
|
|
384
405
|
}
|
|
385
406
|
|
|
386
|
-
/* A group header is
|
|
407
|
+
/* A group header is centerd over the columns it spans and separated from
|
|
387
408
|
the row of column names by the same rule that separates the names from
|
|
388
409
|
the values, one step lighter. */
|
|
389
|
-
[data-ui
|
|
410
|
+
[data-ui-data-grid] [data-part-column-group] {
|
|
390
411
|
justify-content: center;
|
|
391
412
|
}
|
|
392
413
|
|
|
393
414
|
/* The name takes what is left and truncates: a column name is two or three
|
|
394
415
|
words and its full text is the header's own accessible name. */
|
|
395
|
-
[data-ui
|
|
416
|
+
[data-ui-data-grid] [data-part-column-header] > span:first-child {
|
|
396
417
|
flex: 1 1 auto;
|
|
397
418
|
min-inline-size: 0;
|
|
398
419
|
overflow: hidden;
|
|
@@ -401,30 +422,30 @@
|
|
|
401
422
|
}
|
|
402
423
|
|
|
403
424
|
/* An aligned column keeps its name over its values. */
|
|
404
|
-
[data-ui
|
|
425
|
+
[data-ui-data-grid] [data-part-column-header][data-align='center'] {
|
|
405
426
|
justify-content: center;
|
|
406
427
|
}
|
|
407
428
|
|
|
408
|
-
[data-ui
|
|
429
|
+
[data-ui-data-grid] [data-part-column-header][data-align='center'] > span:first-child {
|
|
409
430
|
flex: 0 1 auto;
|
|
410
431
|
margin-inline-start: auto;
|
|
411
432
|
}
|
|
412
433
|
|
|
413
|
-
[data-ui
|
|
414
|
-
[data-part
|
|
434
|
+
[data-ui-data-grid]
|
|
435
|
+
[data-part-column-header]:is([data-align='end'], [data-numeric]:not([data-align]))
|
|
415
436
|
> span:first-child {
|
|
416
437
|
text-align: end;
|
|
417
438
|
}
|
|
418
439
|
|
|
419
440
|
/* A sortable header is a control and takes the hand. */
|
|
420
|
-
[data-ui
|
|
441
|
+
[data-ui-data-grid] [data-part-column-header][data-sortable] {
|
|
421
442
|
cursor: pointer;
|
|
422
443
|
}
|
|
423
444
|
|
|
424
445
|
/* A header, a filter cell and a summary cell are controls, not prose: a
|
|
425
446
|
Shift-press that appends a sort key must not also select its name. */
|
|
426
|
-
[data-ui
|
|
427
|
-
[data-ui
|
|
447
|
+
[data-ui-data-grid] > [data-part-scroll] > [data-part-head] > [role='row'] > *,
|
|
448
|
+
[data-ui-data-grid] > [data-part-scroll] > [data-part-summary] > [role='row'] > * {
|
|
428
449
|
user-select: none;
|
|
429
450
|
}
|
|
430
451
|
|
|
@@ -432,12 +453,12 @@
|
|
|
432
453
|
selection of the grid's own and not of text: the browser's selection is
|
|
433
454
|
put out of the body for the two modes that press across cells. Ctrl+C
|
|
434
455
|
copies the range; a grid with no selection keeps its text selectable. */
|
|
435
|
-
[data-ui
|
|
436
|
-
:is([data-part
|
|
456
|
+
[data-ui-data-grid]:is([data-selection='multiple'], [data-selection='range'])
|
|
457
|
+
:is([data-part-body], [data-part-pinned-rows]) {
|
|
437
458
|
user-select: none;
|
|
438
459
|
}
|
|
439
460
|
|
|
440
|
-
[data-ui
|
|
461
|
+
[data-ui-data-grid] [data-part-column-header][data-sortable]:not([data-disabled]):hover {
|
|
441
462
|
background-color: var(--_head-surface-hover);
|
|
442
463
|
}
|
|
443
464
|
|
|
@@ -451,7 +472,7 @@
|
|
|
451
472
|
* header can be sorted is the hand, the darker band and the menu it
|
|
452
473
|
* reveals — the answer AG Grid gives.
|
|
453
474
|
*/
|
|
454
|
-
[data-ui
|
|
475
|
+
[data-ui-data-grid] [data-part-column-header] > [data-part-sort] {
|
|
455
476
|
--slotted-icon-size: var(--_icon-size);
|
|
456
477
|
align-items: center;
|
|
457
478
|
color: var(--_text);
|
|
@@ -463,29 +484,29 @@
|
|
|
463
484
|
line-height: 1;
|
|
464
485
|
}
|
|
465
486
|
|
|
466
|
-
[data-ui
|
|
487
|
+
[data-ui-data-grid] [data-part-column-header] > [data-part-sort] > [data-ui-icon] {
|
|
467
488
|
transition: rotate var(--_transition);
|
|
468
489
|
}
|
|
469
490
|
|
|
470
|
-
[data-ui
|
|
491
|
+
[data-ui-data-grid] [data-part-column-header][data-sorted] > [data-part-sort] {
|
|
471
492
|
display: inline-flex;
|
|
472
493
|
}
|
|
473
494
|
|
|
474
|
-
[data-ui
|
|
475
|
-
[data-part
|
|
476
|
-
> [data-part
|
|
477
|
-
> [data-ui
|
|
495
|
+
[data-ui-data-grid]
|
|
496
|
+
[data-part-column-header][data-sorted='ascending']
|
|
497
|
+
> [data-part-sort]
|
|
498
|
+
> [data-ui-icon] {
|
|
478
499
|
rotate: 180deg;
|
|
479
500
|
}
|
|
480
501
|
|
|
481
502
|
/* The index of a key past the first, drawn only then: `aria-sort` cannot say
|
|
482
503
|
which key came first, and the number is what says it. */
|
|
483
|
-
[data-ui
|
|
504
|
+
[data-ui-data-grid] [data-part-column-header] > [data-part-sort]::before {
|
|
484
505
|
content: attr(data-index);
|
|
485
506
|
font-weight: var(--slotted-font-weight-medium, 500);
|
|
486
507
|
}
|
|
487
508
|
|
|
488
|
-
[data-ui
|
|
509
|
+
[data-ui-data-grid] [data-part-column-header] > [data-part-sort]:not([data-index])::before {
|
|
489
510
|
content: none;
|
|
490
511
|
}
|
|
491
512
|
|
|
@@ -505,7 +526,7 @@
|
|
|
505
526
|
* filter row. Read on the first capture with both controls reserving room,
|
|
506
527
|
* a 120-pixel column had 34 pixels left for its name.
|
|
507
528
|
*/
|
|
508
|
-
[data-ui
|
|
529
|
+
[data-ui-data-grid] [data-part-column-actions] {
|
|
509
530
|
align-items: center;
|
|
510
531
|
display: inline-flex;
|
|
511
532
|
flex: none;
|
|
@@ -516,16 +537,33 @@
|
|
|
516
537
|
margin-inline-start: auto;
|
|
517
538
|
}
|
|
518
539
|
|
|
519
|
-
|
|
540
|
+
/**
|
|
541
|
+
* An end-aligned header ends its name where its values end, so the slot
|
|
542
|
+
* leaves the flow and stands over the start side of the name, where the name
|
|
543
|
+
* is short of the column's width. Reserved at the trailing edge it left the
|
|
544
|
+
* name the slot's width short of the numbers under it.
|
|
545
|
+
*/
|
|
546
|
+
[data-ui-data-grid]
|
|
547
|
+
[data-part-column-header]:is([data-align='end'], [data-numeric]:not([data-align]))
|
|
548
|
+
> [data-part-column-actions] {
|
|
549
|
+
inset-block-start: 50%;
|
|
550
|
+
inset-inline-start: var(--_pad-inline);
|
|
551
|
+
margin-block: 0;
|
|
552
|
+
margin-inline-start: 0;
|
|
553
|
+
position: absolute;
|
|
554
|
+
translate: 0 -50%;
|
|
555
|
+
}
|
|
556
|
+
|
|
557
|
+
[data-ui-data-grid] [data-part-column-actions] *:has([data-part-filter]) {
|
|
520
558
|
display: contents;
|
|
521
559
|
}
|
|
522
560
|
|
|
523
|
-
[data-ui
|
|
524
|
-
[data-ui
|
|
525
|
-
[data-ui
|
|
526
|
-
[data-ui
|
|
527
|
-
[data-ui
|
|
528
|
-
[data-ui
|
|
561
|
+
[data-ui-data-grid] [data-part-column-help],
|
|
562
|
+
[data-ui-data-grid] [data-part-column-menu],
|
|
563
|
+
[data-ui-data-grid] [data-part-column-header] [data-part-filter],
|
|
564
|
+
[data-ui-data-grid] [data-part-expander],
|
|
565
|
+
[data-ui-data-grid] [data-part-group-toggle],
|
|
566
|
+
[data-ui-data-grid] [data-part-tree-toggle] {
|
|
529
567
|
/* The mark inside is the `Glyph` the binding draws, at the controls' own
|
|
530
568
|
icon step rather than the box's. */
|
|
531
569
|
--slotted-icon-size: var(--_control-icon);
|
|
@@ -547,44 +585,42 @@
|
|
|
547
585
|
opacity var(--_transition);
|
|
548
586
|
}
|
|
549
587
|
|
|
550
|
-
[data-ui
|
|
588
|
+
[data-ui-data-grid] [data-part-column-menu] {
|
|
551
589
|
opacity: 0;
|
|
552
590
|
}
|
|
553
591
|
|
|
554
|
-
[data-ui
|
|
555
|
-
[data-part
|
|
556
|
-
[data-part
|
|
592
|
+
[data-ui-data-grid]
|
|
593
|
+
[data-part-column-header]
|
|
594
|
+
[data-part-filter]:not([data-filtered], [data-open]) {
|
|
557
595
|
display: none;
|
|
558
596
|
}
|
|
559
597
|
|
|
560
|
-
[data-ui
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
[data-ui
|
|
564
|
-
[data-ui='data-grid'] [data-part='column-header'][data-current] [data-part='column-menu'],
|
|
565
|
-
[data-ui='data-grid'] [data-part='column-menu'][data-open] {
|
|
598
|
+
[data-ui-data-grid] [data-part-column-header]:not([data-disabled]):hover [data-part-column-menu],
|
|
599
|
+
[data-ui-data-grid] [data-part-column-header]:focus-within [data-part-column-menu],
|
|
600
|
+
[data-ui-data-grid] [data-part-column-header][data-current] [data-part-column-menu],
|
|
601
|
+
[data-ui-data-grid] [data-part-column-menu][data-open] {
|
|
566
602
|
opacity: 1;
|
|
567
603
|
}
|
|
568
604
|
|
|
569
|
-
[data-ui
|
|
570
|
-
[data-ui
|
|
571
|
-
[data-ui
|
|
572
|
-
[data-ui
|
|
573
|
-
[data-ui
|
|
605
|
+
[data-ui-data-grid] [data-part-column-help]:not(:disabled):hover,
|
|
606
|
+
[data-ui-data-grid] [data-part-column-help][data-open],
|
|
607
|
+
[data-ui-data-grid] [data-part-column-menu]:not(:disabled):hover,
|
|
608
|
+
[data-ui-data-grid] [data-part-column-header] [data-part-filter]:not(:disabled):hover,
|
|
609
|
+
[data-ui-data-grid] [data-part-group-toggle]:not(:disabled):hover {
|
|
574
610
|
background-color: var(--_head-surface-hover);
|
|
575
611
|
color: var(--_text);
|
|
576
612
|
}
|
|
577
613
|
|
|
578
|
-
[data-ui
|
|
614
|
+
[data-ui-data-grid] [data-part-expander]:not(:disabled):hover {
|
|
579
615
|
background-color: var(--_hover);
|
|
580
616
|
color: var(--_text);
|
|
581
617
|
}
|
|
582
618
|
|
|
583
|
-
[data-ui
|
|
584
|
-
[data-ui
|
|
585
|
-
[data-ui
|
|
586
|
-
[data-ui
|
|
587
|
-
[data-ui
|
|
619
|
+
[data-ui-data-grid] [data-part-column-help]:focus-visible,
|
|
620
|
+
[data-ui-data-grid] [data-part-column-menu]:focus-visible,
|
|
621
|
+
[data-ui-data-grid] [data-part-column-header] [data-part-filter]:focus-visible,
|
|
622
|
+
[data-ui-data-grid] [data-part-expander]:focus-visible,
|
|
623
|
+
[data-ui-data-grid] [data-part-group-toggle]:focus-visible {
|
|
588
624
|
outline: var(--_ring-width) solid var(--slotted-focus-ring-color, Highlight);
|
|
589
625
|
outline-offset: calc(var(--slotted-focus-ring-offset, 2px) * -1);
|
|
590
626
|
}
|
|
@@ -596,7 +632,7 @@
|
|
|
596
632
|
|
|
597
633
|
/* The description is the header's `aria-describedby`: read, never drawn,
|
|
598
634
|
and out of the header's flow so it asks for no room beside the name. */
|
|
599
|
-
[data-ui
|
|
635
|
+
[data-ui-data-grid] [data-part-column-description] {
|
|
600
636
|
block-size: 1px;
|
|
601
637
|
border: 0;
|
|
602
638
|
clip-path: inset(50%);
|
|
@@ -610,7 +646,7 @@
|
|
|
610
646
|
|
|
611
647
|
/* The pop-in's column header names the pop-in for a reader: read, never
|
|
612
648
|
drawn, and out of the row's flow so it takes no track of the template. */
|
|
613
|
-
[data-ui
|
|
649
|
+
[data-ui-data-grid] [data-part-popin-header] {
|
|
614
650
|
block-size: 1px;
|
|
615
651
|
border: 0;
|
|
616
652
|
clip-path: inset(50%);
|
|
@@ -627,7 +663,7 @@
|
|
|
627
663
|
is set as a caption over the items, in the muted ink, on the items' inset.
|
|
628
664
|
The screen reader hears it once, through the menu's `aria-describedby`.
|
|
629
665
|
The menu lays its items on a grid of tracks; the caption spans them all. */
|
|
630
|
-
[data-ui
|
|
666
|
+
[data-ui-menu] [data-part-column-menu-description] {
|
|
631
667
|
grid-column: 1 / -1;
|
|
632
668
|
border-block-end: var(--slotted-border-width-thin, 1px) solid
|
|
633
669
|
var(--slotted-border-subtle, GrayText);
|
|
@@ -645,49 +681,47 @@
|
|
|
645
681
|
glyph scale for this family: `table` takes the artwork from the consumer,
|
|
646
682
|
and a control this family draws itself owes its glyph to the scale. */
|
|
647
683
|
|
|
648
|
-
[data-ui
|
|
649
|
-
[data-ui
|
|
684
|
+
[data-ui-data-grid] [data-part-column-header] [data-part-filter][data-filtered],
|
|
685
|
+
[data-ui-data-grid] [data-part-column-header] [data-part-filter][data-open] {
|
|
650
686
|
color: var(--slotted-tone-accent-text, CanvasText);
|
|
651
687
|
}
|
|
652
688
|
|
|
653
|
-
[data-ui
|
|
654
|
-
[data-part
|
|
655
|
-
[data-part
|
|
689
|
+
[data-ui-data-grid]
|
|
690
|
+
[data-part-column-header]
|
|
691
|
+
[data-part-filter][data-filtered]:not(:disabled):hover {
|
|
656
692
|
background-color: var(--slotted-tone-accent-surface, Canvas);
|
|
657
693
|
}
|
|
658
694
|
|
|
659
695
|
/* The expander and the group toggle are the `chevron-right` `Glyph` the
|
|
660
696
|
binding draws, turned a quarter turn when open and mirrored in a
|
|
661
697
|
right-to-left document. */
|
|
662
|
-
[data-ui
|
|
663
|
-
[data-ui
|
|
664
|
-
[data-ui
|
|
698
|
+
[data-ui-data-grid] [data-part-expander] > [data-ui-icon],
|
|
699
|
+
[data-ui-data-grid] [data-part-group-toggle] > [data-ui-icon],
|
|
700
|
+
[data-ui-data-grid] button[data-part-tree-toggle] > [data-ui-icon] {
|
|
665
701
|
transition: rotate var(--_transition);
|
|
666
702
|
}
|
|
667
703
|
|
|
668
|
-
[data-ui
|
|
669
|
-
[data-ui
|
|
670
|
-
[data-ui
|
|
671
|
-
[data-part
|
|
672
|
-
[data-part
|
|
673
|
-
> [data-ui
|
|
704
|
+
[data-ui-data-grid] [data-part-expander][aria-expanded='true'] > [data-ui-icon],
|
|
705
|
+
[data-ui-data-grid] button[data-part-tree-toggle][aria-expanded='true'] > [data-ui-icon],
|
|
706
|
+
[data-ui-data-grid]
|
|
707
|
+
[data-part-group-row][aria-expanded='true']
|
|
708
|
+
[data-part-group-toggle]
|
|
709
|
+
> [data-ui-icon] {
|
|
674
710
|
rotate: 90deg;
|
|
675
711
|
}
|
|
676
712
|
|
|
677
|
-
[data-ui
|
|
678
|
-
[data-ui
|
|
679
|
-
[data-ui
|
|
713
|
+
[data-ui-data-grid]:dir(rtl) [data-part-expander] > [data-ui-icon],
|
|
714
|
+
[data-ui-data-grid]:dir(rtl) [data-part-group-toggle] > [data-ui-icon],
|
|
715
|
+
[data-ui-data-grid]:dir(rtl) button[data-part-tree-toggle] > [data-ui-icon] {
|
|
680
716
|
rotate: 180deg;
|
|
681
717
|
}
|
|
682
718
|
|
|
683
|
-
[data-ui
|
|
684
|
-
[data-ui
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
[data-
|
|
689
|
-
[data-part='group-toggle']
|
|
690
|
-
> [data-ui='icon'] {
|
|
719
|
+
[data-ui-data-grid]:dir(rtl) [data-part-expander][aria-expanded='true'] > [data-ui-icon],
|
|
720
|
+
[data-ui-data-grid]:dir(rtl) button[data-part-tree-toggle][aria-expanded='true'] > [data-ui-icon],
|
|
721
|
+
[data-ui-data-grid]:dir(rtl)
|
|
722
|
+
[data-part-group-row][aria-expanded='true']
|
|
723
|
+
[data-part-group-toggle]
|
|
724
|
+
> [data-ui-icon] {
|
|
691
725
|
rotate: 90deg;
|
|
692
726
|
}
|
|
693
727
|
|
|
@@ -700,26 +734,26 @@
|
|
|
700
734
|
* horizontal arrows there open and close. A row waiting for its children
|
|
701
735
|
* turns the chevron into the loader's ring.
|
|
702
736
|
*/
|
|
703
|
-
[data-ui
|
|
704
|
-
[data-ui
|
|
737
|
+
[data-ui-data-grid] [data-part-cell][data-tree],
|
|
738
|
+
[data-ui-data-grid] [data-part-row-header][data-tree] {
|
|
705
739
|
gap: var(--slotted-space-1, 0.125rem);
|
|
706
740
|
padding-inline-start: calc(
|
|
707
741
|
var(--_pad-inline) + var(--_indent) * (var(--slotted-data-grid-level, 1) - 1)
|
|
708
742
|
);
|
|
709
743
|
}
|
|
710
744
|
|
|
711
|
-
[data-ui
|
|
745
|
+
[data-ui-data-grid] [data-part-tree-toggle][data-empty] {
|
|
712
746
|
/* The room, and nothing in it. */
|
|
713
747
|
cursor: default;
|
|
714
748
|
}
|
|
715
749
|
|
|
716
|
-
[data-ui
|
|
750
|
+
[data-ui-data-grid] button[data-part-tree-toggle]:not(:disabled):hover {
|
|
717
751
|
background-color: var(--_hover);
|
|
718
752
|
color: var(--_text);
|
|
719
753
|
}
|
|
720
754
|
|
|
721
755
|
/* The binding draws the loader's ring in place of the chevron. */
|
|
722
|
-
[data-ui
|
|
756
|
+
[data-ui-data-grid] button[data-part-tree-toggle][data-loading] > [data-ui-icon] {
|
|
723
757
|
animation: slotted-data-grid-turn var(--slotted-duration-loop) linear infinite;
|
|
724
758
|
rotate: 0deg;
|
|
725
759
|
}
|
|
@@ -739,12 +773,12 @@
|
|
|
739
773
|
* width and the reader hears why nothing moves. A row on its way is
|
|
740
774
|
* dimmed, as a column is.
|
|
741
775
|
*/
|
|
742
|
-
[data-ui
|
|
776
|
+
[data-ui-data-grid] [data-part-cell][data-kind='drag'] {
|
|
743
777
|
justify-content: center;
|
|
744
778
|
padding-inline: 0;
|
|
745
779
|
}
|
|
746
780
|
|
|
747
|
-
[data-ui
|
|
781
|
+
[data-ui-data-grid] [data-part-row-handle] {
|
|
748
782
|
/* The grip is the `Glyph` the binding draws, at the controls' icon step. */
|
|
749
783
|
--slotted-icon-size: var(--_control-icon);
|
|
750
784
|
align-items: center;
|
|
@@ -766,21 +800,21 @@
|
|
|
766
800
|
opacity var(--_transition);
|
|
767
801
|
}
|
|
768
802
|
|
|
769
|
-
[data-ui
|
|
803
|
+
[data-ui-data-grid] [data-part-row-handle]:not([data-disabled]):hover {
|
|
770
804
|
background-color: var(--_hover);
|
|
771
805
|
color: var(--_text);
|
|
772
806
|
}
|
|
773
807
|
|
|
774
|
-
[data-ui
|
|
808
|
+
[data-ui-data-grid] [data-part-row-handle][data-disabled] {
|
|
775
809
|
cursor: default;
|
|
776
810
|
opacity: 0.5;
|
|
777
811
|
}
|
|
778
812
|
|
|
779
|
-
[data-ui
|
|
813
|
+
[data-ui-data-grid] [data-part-row][data-dragging] {
|
|
780
814
|
opacity: 0.5;
|
|
781
815
|
}
|
|
782
816
|
|
|
783
|
-
[data-ui
|
|
817
|
+
[data-ui-data-grid] [data-part-row][data-dragging] [data-part-row-handle] {
|
|
784
818
|
cursor: grabbing;
|
|
785
819
|
}
|
|
786
820
|
|
|
@@ -788,13 +822,13 @@
|
|
|
788
822
|
* ── The resizer ────────────────────────────────────────────────────────
|
|
789
823
|
*
|
|
790
824
|
* Invisible at rest, a strong line under the pointer, the accent line while
|
|
791
|
-
* it is dragged. The target is `--slotted-target-min` wide and
|
|
825
|
+
* it is dragged. The target is `--slotted-target-min` wide and centerd on
|
|
792
826
|
* the column's trailing edge, so half of it stands over the next column;
|
|
793
827
|
* it is pointer-only — `aria-hidden`, no tab stop — because the keyboard
|
|
794
828
|
* resizes from the header cell itself, and a focusable handle inside a
|
|
795
829
|
* composite widget would be a second tab stop.
|
|
796
830
|
*/
|
|
797
|
-
[data-ui
|
|
831
|
+
[data-ui-data-grid] [data-part-resizer] {
|
|
798
832
|
cursor: col-resize;
|
|
799
833
|
inline-size: var(--slotted-target-min, 24px);
|
|
800
834
|
inset-block: 0;
|
|
@@ -808,16 +842,17 @@
|
|
|
808
842
|
|
|
809
843
|
/* The last column's handle stays inside the row: half a target hanging
|
|
810
844
|
past the last cell was twelve pixels of overflow on a row nothing could
|
|
811
|
-
scroll to.
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
> [data-part
|
|
845
|
+
scroll to. The last column header, not the row's last child: the pop-in
|
|
846
|
+
header follows it when columns yield to the frame. */
|
|
847
|
+
[data-ui-data-grid]
|
|
848
|
+
[data-part-header-row]
|
|
849
|
+
> [data-part-column-header]:not(:has(~ [data-part-column-header]))
|
|
850
|
+
> [data-part-resizer] {
|
|
816
851
|
inline-size: calc(var(--slotted-target-min, 24px) / 2);
|
|
817
852
|
inset-inline-end: 0;
|
|
818
853
|
}
|
|
819
854
|
|
|
820
|
-
[data-ui
|
|
855
|
+
[data-ui-data-grid] [data-part-resizer]::after {
|
|
821
856
|
background-color: transparent;
|
|
822
857
|
block-size: 100%;
|
|
823
858
|
content: '';
|
|
@@ -827,31 +862,55 @@
|
|
|
827
862
|
transition: background-color var(--_transition);
|
|
828
863
|
}
|
|
829
864
|
|
|
830
|
-
[data-ui
|
|
865
|
+
[data-ui-data-grid] [data-part-resizer]:not([data-disabled]):hover::after {
|
|
831
866
|
background-color: var(--_rule-strong);
|
|
832
867
|
}
|
|
833
868
|
|
|
834
|
-
[data-ui
|
|
835
|
-
[data-ui
|
|
869
|
+
[data-ui-data-grid] [data-part-resizer][data-resizing]::after,
|
|
870
|
+
[data-ui-data-grid] [data-part-column-header][data-resizing] > [data-part-resizer]::after {
|
|
836
871
|
background-color: var(--_cursor);
|
|
837
872
|
}
|
|
838
873
|
|
|
874
|
+
/**
|
|
875
|
+
* A drag of the resizer moves this line and nothing else:
|
|
876
|
+
* it stands on the column's edge, spans the scroller's visible height and
|
|
877
|
+
* slides by `translate`, which lays nothing out; the width is applied once,
|
|
878
|
+
* on release.
|
|
879
|
+
*/
|
|
880
|
+
[data-ui-data-grid] [data-part-resizer] > [data-part-resize-guide] {
|
|
881
|
+
background-color: var(
|
|
882
|
+
--slotted-data-grid-resize-guide-color,
|
|
883
|
+
var(--slotted-focus-ring-color, Highlight)
|
|
884
|
+
);
|
|
885
|
+
inline-size: var(
|
|
886
|
+
--slotted-data-grid-resize-guide-width,
|
|
887
|
+
var(--slotted-border-width-thick, 2px)
|
|
888
|
+
);
|
|
889
|
+
inset-block-start: 0;
|
|
890
|
+
inset-inline-start: calc(
|
|
891
|
+
50% - var(--slotted-data-grid-resize-guide-width, var(--slotted-border-width-thick, 2px)) / 2
|
|
892
|
+
);
|
|
893
|
+
pointer-events: none;
|
|
894
|
+
position: absolute;
|
|
895
|
+
z-index: 2;
|
|
896
|
+
}
|
|
897
|
+
|
|
839
898
|
/**
|
|
840
899
|
* ── Reordering ─────────────────────────────────────────────────────────
|
|
841
900
|
*
|
|
842
901
|
* The dragged header dims; the drop indicator is a line of the accent
|
|
843
|
-
*
|
|
902
|
+
* color between two columns, positioned by the binding through
|
|
844
903
|
* `--slotted-data-grid-drop-offset` from the scroller's start edge.
|
|
845
904
|
*/
|
|
846
|
-
[data-ui
|
|
905
|
+
[data-ui-data-grid] [data-part-column-header][data-dragging] {
|
|
847
906
|
opacity: 0.5;
|
|
848
907
|
}
|
|
849
908
|
|
|
850
|
-
[data-ui
|
|
909
|
+
[data-ui-data-grid] [data-part-column-header][data-drop-target] {
|
|
851
910
|
background-color: var(--_head-surface-hover);
|
|
852
911
|
}
|
|
853
912
|
|
|
854
|
-
[data-ui
|
|
913
|
+
[data-ui-data-grid] [data-part-drop-indicator] {
|
|
855
914
|
background-color: var(--_cursor);
|
|
856
915
|
/* Absolute in the scroller: its box is the content's, so the line is
|
|
857
916
|
moved down by the scrolled distance to span the viewport. */
|
|
@@ -868,9 +927,9 @@
|
|
|
868
927
|
|
|
869
928
|
/* The same line for a row on its way: horizontal, in the gap the drop
|
|
870
929
|
lands in, as wide as the viewport and moved by the sideways scroll. */
|
|
871
|
-
[data-ui
|
|
930
|
+
[data-ui-data-grid] [data-part-drop-indicator][data-axis='row'] {
|
|
872
931
|
block-size: var(--slotted-border-width-thick, 2px);
|
|
873
|
-
inline-size:
|
|
932
|
+
inline-size: var(--slotted-data-grid-viewport, 100%);
|
|
874
933
|
inset-block-start: calc(
|
|
875
934
|
var(--slotted-data-grid-drop-offset, 0px) - var(--slotted-border-width-thick, 2px) / 2
|
|
876
935
|
);
|
|
@@ -886,7 +945,7 @@
|
|
|
886
945
|
* head. It is a row of the grid — `role="row"`, one `gridcell` per column —
|
|
887
946
|
* so the cursor walks it.
|
|
888
947
|
*/
|
|
889
|
-
[data-ui
|
|
948
|
+
[data-ui-data-grid] [data-part-filter-row] > [data-part-filter-cell] {
|
|
890
949
|
/* The control inside draws no ring of its own: the cell draws the trace
|
|
891
950
|
around the whole of it while anything inside has the focus, so a field
|
|
892
951
|
in the row and the cell it fills are not two rings. The accent edge a
|
|
@@ -906,7 +965,7 @@
|
|
|
906
965
|
position: relative;
|
|
907
966
|
}
|
|
908
967
|
|
|
909
|
-
[data-ui
|
|
968
|
+
[data-ui-data-grid] [data-part-filter-row] > [data-part-filter-cell]:focus-within {
|
|
910
969
|
box-shadow: none;
|
|
911
970
|
outline: var(--_ring-width) solid var(--slotted-focus-ring-color, Highlight);
|
|
912
971
|
outline-offset: calc(var(--_ring-width) * -1);
|
|
@@ -923,11 +982,8 @@
|
|
|
923
982
|
named there, and `A > :is(host > B)` asks B to be A's child and the
|
|
924
983
|
host's at once. `data-grid.styles.test.mjs` holds the rule for every
|
|
925
984
|
hosted part. */
|
|
926
|
-
[data-ui
|
|
927
|
-
[data-ui
|
|
928
|
-
[data-part='filter-cell']
|
|
929
|
-
> :not([data-part])
|
|
930
|
-
> [data-part='filter-operand'] {
|
|
985
|
+
[data-ui-data-grid] [data-part-filter-cell] > [data-part-filter-operand],
|
|
986
|
+
[data-ui-data-grid] [data-part-filter-cell] > :not([data-part]) > [data-part-filter-operand] {
|
|
931
987
|
align-items: center;
|
|
932
988
|
display: flex;
|
|
933
989
|
flex: 1 1 auto;
|
|
@@ -944,15 +1000,15 @@
|
|
|
944
1000
|
/* The plain control inside takes what the trace leaves of the row's
|
|
945
1001
|
height and a short inset after the operator, the rule every cell
|
|
946
1002
|
holding a plain control applies. */
|
|
947
|
-
[data-ui
|
|
948
|
-
[data-part
|
|
949
|
-
[data-part
|
|
950
|
-
> [data-part
|
|
951
|
-
[data-ui
|
|
952
|
-
[data-part
|
|
953
|
-
[data-part
|
|
1003
|
+
[data-ui-data-grid]
|
|
1004
|
+
[data-part-filter-cell]
|
|
1005
|
+
[data-part-filter-operand]
|
|
1006
|
+
> [data-part-root][data-variant='plain'],
|
|
1007
|
+
[data-ui-data-grid]
|
|
1008
|
+
[data-part-filter-cell]
|
|
1009
|
+
[data-part-filter-operand]
|
|
954
1010
|
> :not([data-part])
|
|
955
|
-
> [data-part
|
|
1011
|
+
> [data-part-root][data-variant='plain'] {
|
|
956
1012
|
--slotted-control-padding-inline-sm: var(--slotted-space-3, 0.375rem);
|
|
957
1013
|
--slotted-control-height-sm: calc(var(--_head-block) - var(--_ring-width) * 2);
|
|
958
1014
|
|
|
@@ -963,34 +1019,34 @@
|
|
|
963
1019
|
/* Both fields of a numeric `between` share the line, a dash between them;
|
|
964
1020
|
a date, a time or a date-time `between` is one range picker and carries
|
|
965
1021
|
no `data-range`. */
|
|
966
|
-
[data-ui
|
|
967
|
-
[data-part
|
|
968
|
-
[data-part
|
|
969
|
-
> [data-part
|
|
970
|
-
[data-ui
|
|
971
|
-
[data-part
|
|
972
|
-
[data-part
|
|
1022
|
+
[data-ui-data-grid]
|
|
1023
|
+
[data-part-filter-cell]
|
|
1024
|
+
[data-part-filter-operand][data-range]
|
|
1025
|
+
> [data-part-root],
|
|
1026
|
+
[data-ui-data-grid]
|
|
1027
|
+
[data-part-filter-cell]
|
|
1028
|
+
[data-part-filter-operand][data-range]
|
|
973
1029
|
> :not([data-part])
|
|
974
|
-
> [data-part
|
|
1030
|
+
> [data-part-root] {
|
|
975
1031
|
flex: 1 1 0;
|
|
976
1032
|
inline-size: 0;
|
|
977
1033
|
}
|
|
978
1034
|
|
|
979
|
-
[data-ui
|
|
1035
|
+
[data-ui-data-grid] [data-part-filter-cell] [data-part-filter-operand][data-range]::before {
|
|
980
1036
|
color: var(--_muted);
|
|
981
1037
|
content: '–';
|
|
982
1038
|
order: 2;
|
|
983
1039
|
}
|
|
984
1040
|
|
|
985
|
-
[data-ui
|
|
986
|
-
[data-part
|
|
987
|
-
[data-part
|
|
988
|
-
> [data-part
|
|
989
|
-
[data-ui
|
|
990
|
-
[data-part
|
|
991
|
-
[data-part
|
|
1041
|
+
[data-ui-data-grid]
|
|
1042
|
+
[data-part-filter-cell]
|
|
1043
|
+
[data-part-filter-operand][data-range]
|
|
1044
|
+
> [data-part-root]:last-child,
|
|
1045
|
+
[data-ui-data-grid]
|
|
1046
|
+
[data-part-filter-cell]
|
|
1047
|
+
[data-part-filter-operand][data-range]
|
|
992
1048
|
> :not([data-part]):last-child
|
|
993
|
-
> [data-part
|
|
1049
|
+
> [data-part-root] {
|
|
994
1050
|
order: 3;
|
|
995
1051
|
}
|
|
996
1052
|
|
|
@@ -999,7 +1055,7 @@
|
|
|
999
1055
|
* square target the height of the inner control; it opens a `menu` naming
|
|
1000
1056
|
* every operator in full, and its accessible name is the operator in full.
|
|
1001
1057
|
*/
|
|
1002
|
-
[data-ui
|
|
1058
|
+
[data-ui-data-grid] [data-part-filter-cell] [data-part-filter-operator] {
|
|
1003
1059
|
display: inline-flex;
|
|
1004
1060
|
flex: none;
|
|
1005
1061
|
/* One space step off the cell's edge: glued to it, the symbol read as
|
|
@@ -1007,7 +1063,7 @@
|
|
|
1007
1063
|
padding-inline-start: var(--slotted-space-3, 0.375rem);
|
|
1008
1064
|
}
|
|
1009
1065
|
|
|
1010
|
-
[data-ui
|
|
1066
|
+
[data-ui-data-grid] [data-part-filter-cell] [data-part-filter-operator] > button {
|
|
1011
1067
|
align-items: center;
|
|
1012
1068
|
background-color: transparent;
|
|
1013
1069
|
block-size: var(--slotted-control-inner-size-sm, 22px);
|
|
@@ -1028,26 +1084,20 @@
|
|
|
1028
1084
|
color var(--_transition);
|
|
1029
1085
|
}
|
|
1030
1086
|
|
|
1031
|
-
[data-ui
|
|
1032
|
-
[data-part
|
|
1033
|
-
[data-part
|
|
1087
|
+
[data-ui-data-grid]
|
|
1088
|
+
[data-part-filter-cell]
|
|
1089
|
+
[data-part-filter-operator]
|
|
1034
1090
|
> button:not(:disabled):hover {
|
|
1035
1091
|
background-color: var(--_head-surface-hover);
|
|
1036
1092
|
color: var(--_text);
|
|
1037
1093
|
}
|
|
1038
1094
|
|
|
1039
|
-
[data-ui
|
|
1040
|
-
[data-part='filter-cell']
|
|
1041
|
-
[data-part='filter-operator']
|
|
1042
|
-
> button:focus-visible {
|
|
1095
|
+
[data-ui-data-grid] [data-part-filter-cell] [data-part-filter-operator] > button:focus-visible {
|
|
1043
1096
|
outline: var(--_ring-width) solid var(--slotted-focus-ring-color, Highlight);
|
|
1044
1097
|
outline-offset: calc(var(--slotted-focus-ring-offset, 2px) * -1);
|
|
1045
1098
|
}
|
|
1046
1099
|
|
|
1047
|
-
[data-ui
|
|
1048
|
-
[data-part='filter-cell'][data-filtered]
|
|
1049
|
-
[data-part='filter-operator']
|
|
1050
|
-
> button {
|
|
1100
|
+
[data-ui-data-grid] [data-part-filter-cell][data-filtered] [data-part-filter-operator] > button {
|
|
1051
1101
|
color: var(--slotted-tone-accent-text, CanvasText);
|
|
1052
1102
|
}
|
|
1053
1103
|
|
|
@@ -1069,7 +1119,7 @@
|
|
|
1069
1119
|
binding draws it inside a host element of its own (`display: contents`),
|
|
1070
1120
|
and a child combinator here left that popover at sixteen rem with the
|
|
1071
1121
|
panel standing out of it. */
|
|
1072
|
-
[data-ui
|
|
1122
|
+
[data-ui-popover]:has(> [data-part-content] [data-ui-data-grid][data-part-filter-panel]) {
|
|
1073
1123
|
--slotted-popover-measure-sm: calc(
|
|
1074
1124
|
var(--slotted-data-grid-filter-panel-size, 24rem) + 2 *
|
|
1075
1125
|
(var(--slotted-popover-gap, 0.5rem) + var(--slotted-border-width-thin, 1px))
|
|
@@ -1079,14 +1129,14 @@
|
|
|
1079
1129
|
/* A date's `between` is two dates in one frame and a date-time's two
|
|
1080
1130
|
date-times: the panel widens for the kinds whose operand is long, so the
|
|
1081
1131
|
range is read whole rather than clipped. */
|
|
1082
|
-
[data-ui
|
|
1083
|
-
> [data-part
|
|
1132
|
+
[data-ui-popover]:has(
|
|
1133
|
+
> [data-part-content] [data-ui-data-grid][data-part-filter-panel][data-kind='date']
|
|
1084
1134
|
) {
|
|
1085
1135
|
--slotted-data-grid-filter-panel-size: var(--slotted-data-grid-filter-panel-size-date, 28rem);
|
|
1086
1136
|
}
|
|
1087
1137
|
|
|
1088
|
-
[data-ui
|
|
1089
|
-
> [data-part
|
|
1138
|
+
[data-ui-popover]:has(
|
|
1139
|
+
> [data-part-content] [data-ui-data-grid][data-part-filter-panel][data-kind='datetime']
|
|
1090
1140
|
) {
|
|
1091
1141
|
--slotted-data-grid-filter-panel-size: var(
|
|
1092
1142
|
--slotted-data-grid-filter-panel-size-datetime,
|
|
@@ -1094,7 +1144,7 @@
|
|
|
1094
1144
|
);
|
|
1095
1145
|
}
|
|
1096
1146
|
|
|
1097
|
-
[data-ui
|
|
1147
|
+
[data-ui-data-grid][data-part-filter-panel] {
|
|
1098
1148
|
--_operator-size: var(--slotted-data-grid-filter-operator-size, 7rem);
|
|
1099
1149
|
--_panel-gap: var(--slotted-space-3, 0.375rem);
|
|
1100
1150
|
|
|
@@ -1119,7 +1169,7 @@
|
|
|
1119
1169
|
var(--slotted-popover-padding-inline-sm, var(--slotted-space-5, 0.75rem));
|
|
1120
1170
|
}
|
|
1121
1171
|
|
|
1122
|
-
[data-ui
|
|
1172
|
+
[data-ui-data-grid][data-part-filter-panel] > [data-part-filter-condition] {
|
|
1123
1173
|
align-items: center;
|
|
1124
1174
|
display: grid;
|
|
1125
1175
|
gap: var(--_panel-gap);
|
|
@@ -1129,22 +1179,22 @@
|
|
|
1129
1179
|
|
|
1130
1180
|
/* The first condition has no join: its operator starts in the second
|
|
1131
1181
|
column. A set filter has one condition and no join at all. */
|
|
1132
|
-
[data-ui
|
|
1133
|
-
> [data-part
|
|
1134
|
-
> [data-part
|
|
1182
|
+
[data-ui-data-grid][data-part-filter-panel]
|
|
1183
|
+
> [data-part-filter-condition]:first-child
|
|
1184
|
+
> [data-part-filter-operator] {
|
|
1135
1185
|
grid-column: 2;
|
|
1136
1186
|
}
|
|
1137
1187
|
|
|
1138
|
-
[data-ui
|
|
1188
|
+
[data-ui-data-grid][data-part-filter-panel] [data-part-filter-join] {
|
|
1139
1189
|
grid-column: 1;
|
|
1140
1190
|
}
|
|
1141
1191
|
|
|
1142
|
-
[data-ui
|
|
1192
|
+
[data-ui-data-grid][data-part-filter-panel] [data-part-filter-operator] {
|
|
1143
1193
|
grid-column: 2;
|
|
1144
1194
|
min-inline-size: 0;
|
|
1145
1195
|
}
|
|
1146
1196
|
|
|
1147
|
-
[data-ui
|
|
1197
|
+
[data-ui-data-grid][data-part-filter-panel] [data-part-filter-operand] {
|
|
1148
1198
|
align-items: center;
|
|
1149
1199
|
display: flex;
|
|
1150
1200
|
gap: var(--_panel-gap);
|
|
@@ -1154,46 +1204,44 @@
|
|
|
1154
1204
|
|
|
1155
1205
|
/* An operator taking no operand leaves the operand column empty rather than
|
|
1156
1206
|
drawing a disabled field. */
|
|
1157
|
-
[data-ui
|
|
1158
|
-
[data-part
|
|
1159
|
-
> [data-part
|
|
1207
|
+
[data-ui-data-grid][data-part-filter-panel]
|
|
1208
|
+
[data-part-filter-condition][data-operands='0']
|
|
1209
|
+
> [data-part-filter-operand] {
|
|
1160
1210
|
display: none;
|
|
1161
1211
|
}
|
|
1162
1212
|
|
|
1163
1213
|
/* Both operands of a `between` stand on the line with a dash between them:
|
|
1164
1214
|
the pair is one thought and one line says so. */
|
|
1165
|
-
[data-ui
|
|
1215
|
+
[data-ui-data-grid][data-part-filter-panel] [data-part-filter-operand][data-range] > * {
|
|
1166
1216
|
flex: 1 1 0;
|
|
1167
1217
|
inline-size: 0;
|
|
1168
1218
|
min-inline-size: 0;
|
|
1169
1219
|
}
|
|
1170
1220
|
|
|
1171
|
-
[data-ui
|
|
1221
|
+
[data-ui-data-grid][data-part-filter-panel] [data-part-filter-operand][data-range]::before {
|
|
1172
1222
|
color: var(--slotted-text-muted);
|
|
1173
1223
|
content: '–';
|
|
1174
1224
|
order: 1;
|
|
1175
1225
|
}
|
|
1176
1226
|
|
|
1177
|
-
[data-ui
|
|
1178
|
-
[data-part='filter-operand'][data-range]
|
|
1179
|
-
> :last-child {
|
|
1227
|
+
[data-ui-data-grid][data-part-filter-panel] [data-part-filter-operand][data-range] > :last-child {
|
|
1180
1228
|
order: 2;
|
|
1181
1229
|
}
|
|
1182
1230
|
|
|
1183
|
-
[data-ui
|
|
1184
|
-
[data-ui
|
|
1185
|
-
[data-part
|
|
1231
|
+
[data-ui-data-grid][data-part-filter-panel] [data-part-filter-operand] > [data-part-root],
|
|
1232
|
+
[data-ui-data-grid][data-part-filter-panel]
|
|
1233
|
+
[data-part-filter-operand]
|
|
1186
1234
|
> :not([data-part])
|
|
1187
|
-
> [data-part
|
|
1235
|
+
> [data-part-root] {
|
|
1188
1236
|
flex: 1 1 auto;
|
|
1189
1237
|
min-inline-size: 0;
|
|
1190
1238
|
}
|
|
1191
1239
|
|
|
1192
|
-
[data-ui
|
|
1240
|
+
[data-ui-data-grid][data-part-filter-panel] [data-part-filter-operand] [data-part-input] {
|
|
1193
1241
|
min-inline-size: 0;
|
|
1194
1242
|
}
|
|
1195
1243
|
|
|
1196
|
-
[data-ui
|
|
1244
|
+
[data-ui-data-grid][data-part-filter-panel] [data-part-filter-actions] {
|
|
1197
1245
|
display: flex;
|
|
1198
1246
|
gap: var(--_panel-gap);
|
|
1199
1247
|
grid-column: 1 / -1;
|
|
@@ -1204,8 +1252,10 @@
|
|
|
1204
1252
|
/**
|
|
1205
1253
|
* ── Rows and cells ─────────────────────────────────────────────────────
|
|
1206
1254
|
*/
|
|
1207
|
-
[data-ui
|
|
1255
|
+
[data-ui-data-grid] > [data-part-scroll] > [data-part-body] {
|
|
1208
1256
|
box-sizing: border-box;
|
|
1257
|
+
/* The containing block of the veil a busy grid lays over its rows. */
|
|
1258
|
+
position: relative;
|
|
1209
1259
|
/* The virtual window: the body is as tall as every row and its padding is
|
|
1210
1260
|
the offset of the first mounted one, so the mounted rows stand where the
|
|
1211
1261
|
unmounted ones would. No transform, so a pinned column's `sticky`
|
|
@@ -1214,9 +1264,13 @@
|
|
|
1214
1264
|
padding-block-start: var(--slotted-data-grid-window-start, 0);
|
|
1215
1265
|
}
|
|
1216
1266
|
|
|
1217
|
-
[data-ui
|
|
1267
|
+
[data-ui-data-grid] [data-part-row] {
|
|
1218
1268
|
background-color: var(--_surface);
|
|
1219
|
-
|
|
1269
|
+
/* The block's edges settle with its ground, not a frame before it. */
|
|
1270
|
+
transition:
|
|
1271
|
+
background-color var(--_transition),
|
|
1272
|
+
border-color var(--_transition),
|
|
1273
|
+
box-shadow var(--_transition);
|
|
1220
1274
|
}
|
|
1221
1275
|
|
|
1222
1276
|
/**
|
|
@@ -1234,66 +1288,85 @@
|
|
|
1234
1288
|
* content grows a `minmax(row, cap)` track to the cap — read on the content
|
|
1235
1289
|
* scene, every auto row was four rows tall, one line of text in each.
|
|
1236
1290
|
*/
|
|
1237
|
-
[data-ui
|
|
1238
|
-
> [data-part
|
|
1239
|
-
> :is([data-part
|
|
1240
|
-
> [data-part
|
|
1291
|
+
[data-ui-data-grid][data-rows='fixed']
|
|
1292
|
+
> [data-part-scroll]
|
|
1293
|
+
> :is([data-part-body], [data-part-pinned-rows])
|
|
1294
|
+
> [data-part-row] {
|
|
1241
1295
|
block-size: var(--_row-block);
|
|
1242
1296
|
grid-auto-rows: var(--_track);
|
|
1243
1297
|
}
|
|
1244
1298
|
|
|
1245
|
-
[data-ui
|
|
1246
|
-
> [data-part
|
|
1247
|
-
> :is([data-part
|
|
1248
|
-
> [data-part
|
|
1299
|
+
[data-ui-data-grid][data-rows='auto']
|
|
1300
|
+
> [data-part-scroll]
|
|
1301
|
+
> :is([data-part-body], [data-part-pinned-rows])
|
|
1302
|
+
> [data-part-row] {
|
|
1249
1303
|
grid-auto-rows: minmax(var(--_track), auto);
|
|
1250
1304
|
}
|
|
1251
1305
|
|
|
1252
1306
|
/* A value taller than the cap is clipped at it, on the block axis only: a
|
|
1253
1307
|
pinned cell's edge shadow is drawn past its inline end. The pop-in is not
|
|
1254
1308
|
a value of the row and has no cap. */
|
|
1255
|
-
[data-ui
|
|
1256
|
-
:is([data-part
|
|
1257
|
-
> [data-part
|
|
1258
|
-
> :is([role='gridcell'], [role='rowheader']):not([data-part
|
|
1309
|
+
[data-ui-data-grid][data-rows='auto']
|
|
1310
|
+
:is([data-part-body], [data-part-pinned-rows])
|
|
1311
|
+
> [data-part-row]
|
|
1312
|
+
> :is([role='gridcell'], [role='rowheader']):not([data-part-popin]) {
|
|
1259
1313
|
max-block-size: var(--_row-max-block);
|
|
1260
1314
|
overflow-y: clip;
|
|
1261
1315
|
}
|
|
1262
1316
|
|
|
1263
1317
|
/* A row that grows to its text aligns its cells to the top: a one-line
|
|
1264
|
-
value
|
|
1265
|
-
and the eye reads a row from its first line. Fixed rows stay
|
|
1266
|
-
[data-ui
|
|
1267
|
-
:is([data-part
|
|
1268
|
-
> [data-part
|
|
1318
|
+
value centerd beside a four-line one floats in the middle of nothing,
|
|
1319
|
+
and the eye reads a row from its first line. Fixed rows stay centerd. */
|
|
1320
|
+
[data-ui-data-grid][data-rows='auto']
|
|
1321
|
+
:is([data-part-body], [data-part-pinned-rows])
|
|
1322
|
+
> [data-part-row]
|
|
1269
1323
|
> [role='gridcell'],
|
|
1270
|
-
[data-ui
|
|
1271
|
-
:is([data-part
|
|
1272
|
-
> [data-part
|
|
1324
|
+
[data-ui-data-grid][data-rows='auto']
|
|
1325
|
+
:is([data-part-body], [data-part-pinned-rows])
|
|
1326
|
+
> [data-part-row]
|
|
1273
1327
|
> [role='rowheader'] {
|
|
1274
1328
|
align-items: start;
|
|
1275
1329
|
}
|
|
1276
1330
|
|
|
1277
|
-
[data-ui
|
|
1278
|
-
> [data-part
|
|
1279
|
-
> :is([data-part
|
|
1331
|
+
[data-ui-data-grid]:is([data-variant='ruled'], [data-variant='framed'])
|
|
1332
|
+
> [data-part-scroll]
|
|
1333
|
+
> :is([data-part-body], [data-part-pinned-rows]) {
|
|
1280
1334
|
--_track: calc(var(--_row-block) - var(--_rule-width));
|
|
1281
1335
|
}
|
|
1282
1336
|
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1337
|
+
/**
|
|
1338
|
+
* A control a cell renderer draws — a `Button`, an `IconButton`, a `Select` —
|
|
1339
|
+
* stands inside the cursor's trace: the row restates the control scale as
|
|
1340
|
+
* the track less the ring and one space step on each side, so a hovered
|
|
1341
|
+
* ground never covers the trace, at every density. The restatement is on
|
|
1342
|
+
* the row and not on each cell, so a row of eight cells computes it once.
|
|
1343
|
+
* A cell in edit states its own, the track less the ring.
|
|
1344
|
+
*/
|
|
1345
|
+
[data-ui-data-grid] > [data-part-scroll] > [data-part-body] > [data-part-row],
|
|
1346
|
+
[data-ui-data-grid] > [data-part-scroll] > [data-part-pinned-rows] > [data-part-row] {
|
|
1347
|
+
--_cell-control: calc(
|
|
1348
|
+
var(--_track) - var(--_ring-width) * 2 - var(--slotted-space-1, 0.125rem) * 2
|
|
1349
|
+
);
|
|
1350
|
+
--slotted-control-height-sm: min(var(--_control-height-sm), var(--_cell-control));
|
|
1351
|
+
--slotted-control-height-md: min(var(--_control-height-md), var(--_cell-control));
|
|
1352
|
+
--slotted-control-height-lg: min(var(--_control-height-lg), var(--_cell-control));
|
|
1353
|
+
--slotted-target-min: min(var(--_target-min), var(--_cell-control));
|
|
1354
|
+
}
|
|
1355
|
+
|
|
1356
|
+
[data-ui-data-grid] > [data-part-scroll] > [data-part-head] > [role='row'],
|
|
1357
|
+
[data-ui-data-grid] > [data-part-scroll] > [data-part-summary] > [role='row'],
|
|
1358
|
+
[data-ui-data-grid] > [data-part-scroll] > [data-part-loader] > [role='row'] {
|
|
1286
1359
|
grid-auto-rows: minmax(var(--_head-block), auto);
|
|
1287
1360
|
}
|
|
1288
1361
|
|
|
1289
|
-
[data-ui
|
|
1290
|
-
[data-ui
|
|
1291
|
-
[data-ui
|
|
1292
|
-
[data-ui
|
|
1293
|
-
> [data-part
|
|
1294
|
-
> :is([data-part
|
|
1362
|
+
[data-ui-data-grid] [data-part-cell],
|
|
1363
|
+
[data-ui-data-grid] [data-part-row-header],
|
|
1364
|
+
[data-ui-data-grid] [data-part-summary-cell],
|
|
1365
|
+
[data-ui-data-grid]
|
|
1366
|
+
> [data-part-scroll]
|
|
1367
|
+
> :is([data-part-body], [data-part-pinned-rows])
|
|
1295
1368
|
> [role='row']
|
|
1296
|
-
> [data-part
|
|
1369
|
+
> [data-part-selection] {
|
|
1297
1370
|
align-items: center;
|
|
1298
1371
|
box-sizing: border-box;
|
|
1299
1372
|
display: flex;
|
|
@@ -1305,7 +1378,7 @@
|
|
|
1305
1378
|
|
|
1306
1379
|
/* Every cell but a pinned one is a containing block, for the range edges
|
|
1307
1380
|
and the invalid mark; a pinned cell is already positioned by `sticky`. */
|
|
1308
|
-
[data-ui
|
|
1381
|
+
[data-ui-data-grid] [data-part-cell]:not([data-pinned]) {
|
|
1309
1382
|
position: relative;
|
|
1310
1383
|
}
|
|
1311
1384
|
|
|
@@ -1313,9 +1386,9 @@
|
|
|
1313
1386
|
keeps its own direction: an identifier, an email or a price in a
|
|
1314
1387
|
right-to-left document is left-to-right text, and read in `dir="rtl"`
|
|
1315
1388
|
"Bloom & Co." had its full stop moved to the front. */
|
|
1316
|
-
[data-ui
|
|
1317
|
-
[data-ui
|
|
1318
|
-
[data-ui
|
|
1389
|
+
[data-ui-data-grid] [data-part-cell] > span:not([data-ui], [data-part]),
|
|
1390
|
+
[data-ui-data-grid] [data-part-row-header] > span:not([data-ui], [data-part]),
|
|
1391
|
+
[data-ui-data-grid] [data-part-summary-cell] > span:not([data-ui], [data-part]) {
|
|
1319
1392
|
flex: 1 1 auto;
|
|
1320
1393
|
min-inline-size: 0;
|
|
1321
1394
|
unicode-bidi: plaintext;
|
|
@@ -1324,35 +1397,35 @@
|
|
|
1324
1397
|
/* A family drawn in a cell by a renderer — a badge, a tag — keeps its own
|
|
1325
1398
|
size: read on the status column, a badge filled the cell's whole width
|
|
1326
1399
|
because it was a span standing where the value stands. */
|
|
1327
|
-
[data-ui
|
|
1400
|
+
[data-ui-data-grid] [data-part-cell] > [data-ui]:not([data-part]) {
|
|
1328
1401
|
flex: 0 0 auto;
|
|
1329
1402
|
max-inline-size: 100%;
|
|
1330
1403
|
}
|
|
1331
1404
|
|
|
1332
1405
|
/* A row header names the record and carries one step of weight. */
|
|
1333
|
-
[data-ui
|
|
1406
|
+
[data-ui-data-grid] [data-part-row-header] {
|
|
1334
1407
|
font-weight: var(--slotted-font-weight-medium, 500);
|
|
1335
1408
|
}
|
|
1336
1409
|
|
|
1337
1410
|
/* The rule between two rows, on the row; the last gives its rule up so a
|
|
1338
1411
|
ruled grid does not end in a line with nothing under it. */
|
|
1339
|
-
[data-ui
|
|
1340
|
-
:is([data-part
|
|
1412
|
+
[data-ui-data-grid]:is([data-variant='ruled'], [data-variant='framed'])
|
|
1413
|
+
:is([data-part-body], [data-part-pinned-rows])
|
|
1341
1414
|
> [role='row'] {
|
|
1342
1415
|
border-block-end: var(--_rule-width) solid var(--_rule);
|
|
1343
1416
|
}
|
|
1344
1417
|
|
|
1345
|
-
[data-ui
|
|
1346
|
-
:is([data-part
|
|
1418
|
+
[data-ui-data-grid]:is([data-variant='ruled'], [data-variant='framed'])
|
|
1419
|
+
:is([data-part-body], [data-part-pinned-rows])
|
|
1347
1420
|
> [role='row']:last-child {
|
|
1348
1421
|
border-block-end-color: transparent;
|
|
1349
1422
|
}
|
|
1350
1423
|
|
|
1351
1424
|
/* The stripe, declared before every state. */
|
|
1352
|
-
[data-ui
|
|
1353
|
-
> [data-part
|
|
1354
|
-
> :is([data-part
|
|
1355
|
-
> [data-part
|
|
1425
|
+
[data-ui-data-grid][data-striped]
|
|
1426
|
+
> [data-part-scroll]
|
|
1427
|
+
> :is([data-part-body], [data-part-pinned-rows])
|
|
1428
|
+
> [data-part-row]:nth-child(even) {
|
|
1356
1429
|
background-color: var(--_stripe);
|
|
1357
1430
|
}
|
|
1358
1431
|
|
|
@@ -1361,28 +1434,53 @@
|
|
|
1361
1434
|
*
|
|
1362
1435
|
* In the order `STATE_PRECEDENCE` declares them, weakest last.
|
|
1363
1436
|
*/
|
|
1364
|
-
[data-ui
|
|
1365
|
-
> [data-part
|
|
1366
|
-
> :is([data-part
|
|
1367
|
-
> [data-part
|
|
1437
|
+
[data-ui-data-grid]
|
|
1438
|
+
> [data-part-scroll]
|
|
1439
|
+
> :is([data-part-body], [data-part-pinned-rows])
|
|
1440
|
+
> [data-part-row]:not([data-disabled]):hover {
|
|
1368
1441
|
background-color: var(--_hover);
|
|
1369
1442
|
}
|
|
1370
1443
|
|
|
1371
|
-
[data-ui
|
|
1372
|
-
> [data-part
|
|
1373
|
-
> :is([data-part
|
|
1374
|
-
> [data-part
|
|
1444
|
+
[data-ui-data-grid]
|
|
1445
|
+
> [data-part-scroll]
|
|
1446
|
+
> :is([data-part-body], [data-part-pinned-rows])
|
|
1447
|
+
> [data-part-row][data-selected] {
|
|
1375
1448
|
background-color: var(--_selected);
|
|
1376
1449
|
color: var(--_selected-text);
|
|
1377
1450
|
}
|
|
1378
1451
|
|
|
1379
|
-
[data-ui
|
|
1380
|
-
:is([data-part
|
|
1381
|
-
> [data-part
|
|
1452
|
+
[data-ui-data-grid]
|
|
1453
|
+
:is([data-part-body], [data-part-pinned-rows])
|
|
1454
|
+
> [data-part-row][data-selected]:not([data-disabled]):hover {
|
|
1382
1455
|
background-color: var(--_selected-hover);
|
|
1383
1456
|
}
|
|
1384
1457
|
|
|
1385
|
-
|
|
1458
|
+
/* The block's edges. The bottom is the row's own rule; the top is drawn
|
|
1459
|
+
over the rule of the row above, by a shadow one rule tall, because a row
|
|
1460
|
+
cannot reach its previous sibling. Inside a run the shadow takes the
|
|
1461
|
+
inner tint. A head above, being sticky, paints over the shadow and its
|
|
1462
|
+
own rule closes the block; a frame below closes it the same way. */
|
|
1463
|
+
[data-ui-data-grid]:is([data-variant='ruled'], [data-variant='framed'])
|
|
1464
|
+
:is([data-part-body], [data-part-pinned-rows])
|
|
1465
|
+
> [data-part-row][data-selected] {
|
|
1466
|
+
border-block-end-color: var(--_selected-edge);
|
|
1467
|
+
box-shadow: 0 calc(var(--_rule-width) * -1) 0 var(--_selected-edge);
|
|
1468
|
+
}
|
|
1469
|
+
|
|
1470
|
+
[data-ui-data-grid]:is([data-variant='ruled'], [data-variant='framed'])
|
|
1471
|
+
:is([data-part-body], [data-part-pinned-rows])
|
|
1472
|
+
> [data-part-row][data-selected]
|
|
1473
|
+
+ [data-part-row][data-selected] {
|
|
1474
|
+
box-shadow: 0 calc(var(--_rule-width) * -1) 0 var(--_selected-rule);
|
|
1475
|
+
}
|
|
1476
|
+
|
|
1477
|
+
[data-ui-data-grid][data-variant='framed']
|
|
1478
|
+
:is([data-part-body], [data-part-pinned-rows])
|
|
1479
|
+
> [data-part-row][data-selected]:last-child {
|
|
1480
|
+
border-block-end-color: transparent;
|
|
1481
|
+
}
|
|
1482
|
+
|
|
1483
|
+
[data-ui-data-grid] [data-part-row][data-disabled] {
|
|
1386
1484
|
color: var(--slotted-disabled-foreground, GrayText);
|
|
1387
1485
|
}
|
|
1388
1486
|
|
|
@@ -1395,11 +1493,11 @@
|
|
|
1395
1493
|
* cell has no margin for an outer ring and the row below would cover it.
|
|
1396
1494
|
* A cell in edit draws nothing: its control draws the inner ring.
|
|
1397
1495
|
*/
|
|
1398
|
-
[data-ui
|
|
1399
|
-
[data-ui
|
|
1400
|
-
[data-ui
|
|
1496
|
+
[data-ui-data-grid] [role='gridcell'][data-current]:not([data-editing]),
|
|
1497
|
+
[data-ui-data-grid] [role='rowheader'][data-current]:not([data-editing]),
|
|
1498
|
+
[data-ui-data-grid] [role='columnheader'][data-current] {
|
|
1401
1499
|
/* An inset shadow rather than an outline: an outline is a focus ring by
|
|
1402
|
-
the library's rule and is drawn in the ring
|
|
1500
|
+
the library's rule and is drawn in the ring color whole; this is the
|
|
1403
1501
|
place the reader left, at rest. */
|
|
1404
1502
|
box-shadow: inset 0 0 0 var(--_ring-width) var(--_cursor-rest);
|
|
1405
1503
|
}
|
|
@@ -1407,9 +1505,9 @@
|
|
|
1407
1505
|
/* The grid's own cells, the children of its rows: a chip in a multi-select
|
|
1408
1506
|
is a `gridcell` too, of the grid pattern the chips row is, and must keep
|
|
1409
1507
|
its own ring rather than take this one. */
|
|
1410
|
-
[data-ui
|
|
1411
|
-
[data-ui
|
|
1412
|
-
[data-ui
|
|
1508
|
+
[data-ui-data-grid] [role='row'] > [role='gridcell']:focus-visible:not([data-editing]),
|
|
1509
|
+
[data-ui-data-grid] [role='row'] > [role='rowheader']:focus-visible:not([data-editing]),
|
|
1510
|
+
[data-ui-data-grid] [role='row'] > [role='columnheader']:focus-visible {
|
|
1413
1511
|
box-shadow: none;
|
|
1414
1512
|
outline: var(--_ring-width) solid var(--slotted-focus-ring-color, Highlight);
|
|
1415
1513
|
outline-offset: calc(var(--_ring-width) * -1);
|
|
@@ -1419,8 +1517,8 @@
|
|
|
1419
1517
|
draws none, so there are not two. A cell in edit and a filter cell are
|
|
1420
1518
|
the other way round — the control inside is silenced and the cell draws
|
|
1421
1519
|
the trace — so they are left out. */
|
|
1422
|
-
[data-ui
|
|
1423
|
-
[role='gridcell'][data-current]:not([data-editing], [data-part
|
|
1520
|
+
[data-ui-data-grid]
|
|
1521
|
+
[role='gridcell'][data-current]:not([data-editing], [data-part-filter-cell]):focus-within:not(
|
|
1424
1522
|
:focus
|
|
1425
1523
|
) {
|
|
1426
1524
|
outline: none;
|
|
@@ -1435,11 +1533,11 @@
|
|
|
1435
1533
|
* pseudo-element rather than a border, because the cell's own bottom border
|
|
1436
1534
|
* is the rule between rows.
|
|
1437
1535
|
*/
|
|
1438
|
-
[data-ui
|
|
1536
|
+
[data-ui-data-grid] [data-part-cell][data-in-range] {
|
|
1439
1537
|
background-color: var(--_range);
|
|
1440
1538
|
}
|
|
1441
1539
|
|
|
1442
|
-
[data-ui
|
|
1540
|
+
[data-ui-data-grid] [data-part-cell][data-range-edge]::before {
|
|
1443
1541
|
border: 0 solid var(--_cursor);
|
|
1444
1542
|
content: '';
|
|
1445
1543
|
/* Past the cell's own bottom border, so a vertical edge runs unbroken
|
|
@@ -1449,22 +1547,22 @@
|
|
|
1449
1547
|
position: absolute;
|
|
1450
1548
|
}
|
|
1451
1549
|
|
|
1452
|
-
[data-ui
|
|
1550
|
+
[data-ui-data-grid] [data-part-cell][data-range-edge~='top']::before {
|
|
1453
1551
|
border-block-start-width: var(--_ring-width);
|
|
1454
1552
|
}
|
|
1455
1553
|
|
|
1456
1554
|
/* The bottom edge ends at the cell: run past it, over the row's rule, it
|
|
1457
1555
|
read one pixel thicker than the other three. */
|
|
1458
|
-
[data-ui
|
|
1556
|
+
[data-ui-data-grid] [data-part-cell][data-range-edge~='bottom']::before {
|
|
1459
1557
|
border-block-end-width: var(--_ring-width);
|
|
1460
1558
|
inset-block-end: 0;
|
|
1461
1559
|
}
|
|
1462
1560
|
|
|
1463
|
-
[data-ui
|
|
1561
|
+
[data-ui-data-grid] [data-part-cell][data-range-edge~='start']::before {
|
|
1464
1562
|
border-inline-start-width: var(--_ring-width);
|
|
1465
1563
|
}
|
|
1466
1564
|
|
|
1467
|
-
[data-ui
|
|
1565
|
+
[data-ui-data-grid] [data-part-cell][data-range-edge~='end']::before {
|
|
1468
1566
|
border-inline-end-width: var(--_ring-width);
|
|
1469
1567
|
}
|
|
1470
1568
|
|
|
@@ -1476,7 +1574,7 @@
|
|
|
1476
1574
|
* The control is the row's height, so a row in edit is as tall as one that
|
|
1477
1575
|
* is not.
|
|
1478
1576
|
*/
|
|
1479
|
-
[data-ui
|
|
1577
|
+
[data-ui-data-grid] [data-part-cell][data-editing] {
|
|
1480
1578
|
--slotted-control-padding-inline-sm: var(--_pad-inline);
|
|
1481
1579
|
--slotted-control-padding-inline-md: var(--_pad-inline);
|
|
1482
1580
|
--slotted-control-padding-inline-lg: var(--_pad-inline);
|
|
@@ -1507,19 +1605,19 @@
|
|
|
1507
1605
|
padding: 0;
|
|
1508
1606
|
}
|
|
1509
1607
|
|
|
1510
|
-
[data-ui
|
|
1608
|
+
[data-ui-data-grid] [data-part-cell][data-editing][data-current] {
|
|
1511
1609
|
box-shadow: none;
|
|
1512
1610
|
outline: var(--_ring-width) solid var(--slotted-focus-ring-color, Highlight);
|
|
1513
1611
|
outline-offset: calc(var(--_ring-width) * -1);
|
|
1514
1612
|
}
|
|
1515
1613
|
|
|
1516
|
-
/* An invalid draft keeps the cursor and
|
|
1614
|
+
/* An invalid draft keeps the cursor and recolors it the way every field
|
|
1517
1615
|
does — by pointing the ring at the invalid step: `invalid` does not erase
|
|
1518
1616
|
focus. The descendants' ring width is already zero, so the token moves
|
|
1519
1617
|
only this cell's own trace. */
|
|
1520
|
-
[data-ui
|
|
1618
|
+
[data-ui-data-grid] [data-part-cell][data-editing][data-invalid] {
|
|
1521
1619
|
--slotted-focus-ring-color: var(--slotted-focus-ring-color-invalid);
|
|
1522
|
-
/* Width as well as
|
|
1620
|
+
/* Width as well as color (WCAG 1.4.1): in `high-contrast` the invalid ring
|
|
1523
1621
|
is the valid ring's black, and the corner mark is withdrawn while the
|
|
1524
1622
|
cell edits. The trace widens inward by the edge every invalid control
|
|
1525
1623
|
adds, so the cell's box and its draft stay where they are. */
|
|
@@ -1532,11 +1630,11 @@
|
|
|
1532
1630
|
|
|
1533
1631
|
/* The editor of a numeric column keeps the digits at the end, where the
|
|
1534
1632
|
read value stood. */
|
|
1535
|
-
[data-ui
|
|
1633
|
+
[data-ui-data-grid] [data-numeric][data-editing] [data-part-input] {
|
|
1536
1634
|
text-align: end;
|
|
1537
1635
|
}
|
|
1538
1636
|
|
|
1539
|
-
[data-ui
|
|
1637
|
+
[data-ui-data-grid] [data-part-cell] > [data-part-editor] {
|
|
1540
1638
|
display: flex;
|
|
1541
1639
|
flex: 1 1 auto;
|
|
1542
1640
|
/* Inside the cell's trace, at every density. */
|
|
@@ -1544,12 +1642,8 @@
|
|
|
1544
1642
|
min-inline-size: 0;
|
|
1545
1643
|
}
|
|
1546
1644
|
|
|
1547
|
-
[data-ui
|
|
1548
|
-
[data-ui
|
|
1549
|
-
[data-part='cell']
|
|
1550
|
-
> [data-part='editor']
|
|
1551
|
-
> :not([data-part])
|
|
1552
|
-
> [data-part='root'] {
|
|
1645
|
+
[data-ui-data-grid] [data-part-cell] > [data-part-editor] > [data-part-root],
|
|
1646
|
+
[data-ui-data-grid] [data-part-cell] > [data-part-editor] > :not([data-part]) > [data-part-root] {
|
|
1553
1647
|
flex: 1 1 auto;
|
|
1554
1648
|
min-inline-size: 0;
|
|
1555
1649
|
}
|
|
@@ -1563,13 +1657,13 @@
|
|
|
1563
1657
|
* outside the motion scale; under reduced motion the ground stays flat and
|
|
1564
1658
|
* leaves when the mark does.
|
|
1565
1659
|
*/
|
|
1566
|
-
[data-ui
|
|
1660
|
+
[data-ui-data-grid] [data-part-cell][data-changed='a'] {
|
|
1567
1661
|
animation: slotted-data-grid-changed-a
|
|
1568
1662
|
var(--slotted-data-grid-changed-duration, var(--slotted-duration-long))
|
|
1569
1663
|
var(--slotted-easing-standard, ease-out) forwards;
|
|
1570
1664
|
}
|
|
1571
1665
|
|
|
1572
|
-
[data-ui
|
|
1666
|
+
[data-ui-data-grid] [data-part-cell][data-changed='b'] {
|
|
1573
1667
|
animation: slotted-data-grid-changed-b
|
|
1574
1668
|
var(--slotted-data-grid-changed-duration, var(--slotted-duration-long))
|
|
1575
1669
|
var(--slotted-easing-standard, ease-out) forwards;
|
|
@@ -1600,12 +1694,12 @@
|
|
|
1600
1694
|
}
|
|
1601
1695
|
|
|
1602
1696
|
@media (prefers-reduced-motion: reduce) {
|
|
1603
|
-
[data-ui
|
|
1697
|
+
[data-ui-data-grid] [data-part-cell][data-changed] {
|
|
1604
1698
|
animation: none;
|
|
1605
1699
|
background-color: var(--_changed);
|
|
1606
1700
|
}
|
|
1607
1701
|
|
|
1608
|
-
[data-ui
|
|
1702
|
+
[data-ui-data-grid] button[data-part-tree-toggle][data-loading] > [data-ui-icon] {
|
|
1609
1703
|
animation: none;
|
|
1610
1704
|
}
|
|
1611
1705
|
}
|
|
@@ -1613,7 +1707,7 @@
|
|
|
1613
1707
|
/* A cell whose draft failed, or whose value changed under the reader. The
|
|
1614
1708
|
mark is a corner in the danger ink, and the message is the control's own
|
|
1615
1709
|
`aria-errormessage`; the cell keeps the draft. */
|
|
1616
|
-
[data-ui
|
|
1710
|
+
[data-ui-data-grid] [data-part-cell][data-invalid]:not([data-editing])::after {
|
|
1617
1711
|
border-block-start: var(--slotted-space-3, 0.375rem) solid var(--slotted-tone-danger-border);
|
|
1618
1712
|
border-inline-start: var(--slotted-space-3, 0.375rem) solid transparent;
|
|
1619
1713
|
content: '';
|
|
@@ -1626,39 +1720,43 @@
|
|
|
1626
1720
|
}
|
|
1627
1721
|
|
|
1628
1722
|
/* A cell whose commit is pending dims its value; nothing moves. */
|
|
1629
|
-
[data-ui
|
|
1723
|
+
[data-ui-data-grid] [data-part-cell][data-loading] {
|
|
1630
1724
|
color: var(--_muted);
|
|
1631
1725
|
}
|
|
1632
1726
|
|
|
1633
1727
|
/* A cell that does not edit in a grid that does: no mark, no hand. It is a
|
|
1634
1728
|
fact the reader hears, not one the eye needs. */
|
|
1635
|
-
[data-ui
|
|
1729
|
+
[data-ui-data-grid] [data-part-cell][data-readonly] {
|
|
1636
1730
|
cursor: default;
|
|
1637
1731
|
}
|
|
1638
1732
|
|
|
1639
1733
|
/**
|
|
1640
1734
|
* ── Alignment, numerals and the text treatment ─────────────────────────
|
|
1735
|
+
*
|
|
1736
|
+
* Every rule is keyed on `data-column`, which only the grid's own cells
|
|
1737
|
+
* carry: `data-align` is a generic name, and a layout primitive rendered
|
|
1738
|
+
* inside a cell writes it with another meaning.
|
|
1641
1739
|
*/
|
|
1642
|
-
[data-ui
|
|
1740
|
+
[data-ui-data-grid] [data-column][data-align='start'] {
|
|
1643
1741
|
justify-content: start;
|
|
1644
1742
|
text-align: start;
|
|
1645
1743
|
}
|
|
1646
1744
|
|
|
1647
|
-
[data-ui
|
|
1745
|
+
[data-ui-data-grid] [data-column][data-align='center'] {
|
|
1648
1746
|
justify-content: center;
|
|
1649
1747
|
text-align: center;
|
|
1650
1748
|
}
|
|
1651
1749
|
|
|
1652
|
-
[data-ui
|
|
1750
|
+
[data-ui-data-grid] [data-column][data-align='end'] {
|
|
1653
1751
|
justify-content: end;
|
|
1654
1752
|
text-align: end;
|
|
1655
1753
|
}
|
|
1656
1754
|
|
|
1657
|
-
[data-ui
|
|
1755
|
+
[data-ui-data-grid] [data-column][data-numeric] {
|
|
1658
1756
|
font-variant-numeric: tabular-nums;
|
|
1659
1757
|
}
|
|
1660
1758
|
|
|
1661
|
-
[data-ui
|
|
1759
|
+
[data-ui-data-grid] [data-column][data-numeric]:not([data-align]) {
|
|
1662
1760
|
justify-content: end;
|
|
1663
1761
|
text-align: end;
|
|
1664
1762
|
}
|
|
@@ -1668,7 +1766,7 @@
|
|
|
1668
1766
|
is the span with no part of its own — in a tree column the toggle comes
|
|
1669
1767
|
first, and a rule on `:first-child` left "Barcelona" drawn over the next
|
|
1670
1768
|
column once the column was narrower than the name. */
|
|
1671
|
-
[data-ui
|
|
1769
|
+
[data-ui-data-grid] [data-text='truncate'] > span:not([data-ui], [data-part]) {
|
|
1672
1770
|
overflow: hidden;
|
|
1673
1771
|
text-overflow: ellipsis;
|
|
1674
1772
|
white-space: nowrap;
|
|
@@ -1677,12 +1775,12 @@
|
|
|
1677
1775
|
/* A value that is never broken is clipped at its cell rather than drawn over
|
|
1678
1776
|
the next one: a grid's columns are its layout, and a value crossing one is
|
|
1679
1777
|
a value in the wrong column. */
|
|
1680
|
-
[data-ui
|
|
1778
|
+
[data-ui-data-grid] [data-text='nowrap'] > span:not([data-ui], [data-part]) {
|
|
1681
1779
|
overflow: hidden;
|
|
1682
1780
|
white-space: nowrap;
|
|
1683
1781
|
}
|
|
1684
1782
|
|
|
1685
|
-
[data-ui
|
|
1783
|
+
[data-ui-data-grid] [data-text='wrap'] > span:not([data-ui], [data-part]) {
|
|
1686
1784
|
overflow-wrap: anywhere;
|
|
1687
1785
|
}
|
|
1688
1786
|
|
|
@@ -1696,14 +1794,14 @@
|
|
|
1696
1794
|
* the rules rather than as a border, for the reason `table` records: two
|
|
1697
1795
|
* borders of one box are mitred at the corner.
|
|
1698
1796
|
*/
|
|
1699
|
-
[data-ui
|
|
1797
|
+
[data-ui-data-grid] [data-pinned='start'] {
|
|
1700
1798
|
background-color: inherit;
|
|
1701
1799
|
inset-inline-start: var(--slotted-data-grid-pin-offset, 0);
|
|
1702
1800
|
position: sticky;
|
|
1703
1801
|
z-index: var(--slotted-z-index-sticky, 100);
|
|
1704
1802
|
}
|
|
1705
1803
|
|
|
1706
|
-
[data-ui
|
|
1804
|
+
[data-ui-data-grid] [data-pinned='end'] {
|
|
1707
1805
|
background-color: inherit;
|
|
1708
1806
|
inset-inline-end: var(--slotted-data-grid-pin-offset, 0);
|
|
1709
1807
|
position: sticky;
|
|
@@ -1711,7 +1809,7 @@
|
|
|
1711
1809
|
}
|
|
1712
1810
|
|
|
1713
1811
|
/* The corner: a header cell that is also pinned takes the step above both. */
|
|
1714
|
-
[data-ui
|
|
1812
|
+
[data-ui-data-grid] > [data-part-scroll] > [data-part-head] [data-pinned] {
|
|
1715
1813
|
background-color: var(--_head-surface);
|
|
1716
1814
|
z-index: calc(var(--slotted-z-index-sticky, 100) + 2);
|
|
1717
1815
|
}
|
|
@@ -1719,33 +1817,32 @@
|
|
|
1719
1817
|
/* A plain header has no band: a pinned header cell takes the page's ground,
|
|
1720
1818
|
opaque over the names sliding under it, and not the band it would be the
|
|
1721
1819
|
only piece of — read on the pop-in scene, a grey block behind one name. */
|
|
1722
|
-
[data-ui
|
|
1723
|
-
|
|
1724
|
-
> [data-part
|
|
1725
|
-
[data-
|
|
1726
|
-
[data-ui='data-grid'][data-variant='plain']
|
|
1727
|
-
> [data-part='scroll']
|
|
1728
|
-
> [data-part='head']
|
|
1820
|
+
[data-ui-data-grid][data-variant='plain'] > [data-part-scroll] > [data-part-head] [data-pinned],
|
|
1821
|
+
[data-ui-data-grid][data-variant='plain']
|
|
1822
|
+
> [data-part-scroll]
|
|
1823
|
+
> [data-part-head]
|
|
1729
1824
|
> [role='row']
|
|
1730
|
-
> [data-part
|
|
1825
|
+
> [data-part-selection] {
|
|
1731
1826
|
background-color: var(--_surface);
|
|
1732
1827
|
}
|
|
1733
1828
|
|
|
1734
|
-
[data-ui
|
|
1829
|
+
[data-ui-data-grid] [data-part-filter-row] > [data-pinned] {
|
|
1735
1830
|
background-color: var(--_band-surface);
|
|
1736
1831
|
}
|
|
1737
1832
|
|
|
1738
|
-
[data-ui
|
|
1739
|
-
> [data-part
|
|
1740
|
-
> :is([data-part
|
|
1741
|
-
> [data-part
|
|
1833
|
+
[data-ui-data-grid]
|
|
1834
|
+
> [data-part-scroll]
|
|
1835
|
+
> :is([data-part-body], [data-part-pinned-rows])
|
|
1836
|
+
> [data-part-row][data-selected]
|
|
1742
1837
|
> [data-pinned] {
|
|
1743
|
-
|
|
1838
|
+
/* The zone's edge inside the block is one of the block's inner rules. The
|
|
1839
|
+
ground is the row's, inherited, so it follows the row's hover. */
|
|
1840
|
+
--_rule: var(--_selected-rule);
|
|
1744
1841
|
}
|
|
1745
1842
|
|
|
1746
1843
|
/* The last pinned cell of each zone draws the edge: the same hairline as
|
|
1747
1844
|
the rules between rows, and no more. */
|
|
1748
|
-
[data-ui
|
|
1845
|
+
[data-ui-data-grid] [data-pinned][data-pin-edge]::after {
|
|
1749
1846
|
background-color: var(--_rule);
|
|
1750
1847
|
content: '';
|
|
1751
1848
|
inline-size: var(--_rule-width);
|
|
@@ -1756,19 +1853,19 @@
|
|
|
1756
1853
|
z-index: 1;
|
|
1757
1854
|
}
|
|
1758
1855
|
|
|
1759
|
-
[data-ui
|
|
1760
|
-
> [data-part
|
|
1761
|
-
> :is([data-part
|
|
1856
|
+
[data-ui-data-grid]
|
|
1857
|
+
> [data-part-scroll]
|
|
1858
|
+
> :is([data-part-body], [data-part-pinned-rows])
|
|
1762
1859
|
> [role='row']:last-child
|
|
1763
1860
|
> [data-pin-edge]::after {
|
|
1764
1861
|
inset-block-end: 0;
|
|
1765
1862
|
}
|
|
1766
1863
|
|
|
1767
|
-
[data-ui
|
|
1864
|
+
[data-ui-data-grid] [data-pinned='start'][data-pin-edge]::after {
|
|
1768
1865
|
inset-inline-end: 0;
|
|
1769
1866
|
}
|
|
1770
1867
|
|
|
1771
|
-
[data-ui
|
|
1868
|
+
[data-ui-data-grid] [data-pinned='end'][data-pin-edge]::after {
|
|
1772
1869
|
inset-inline-start: 0;
|
|
1773
1870
|
}
|
|
1774
1871
|
|
|
@@ -1776,7 +1873,7 @@
|
|
|
1776
1873
|
run down the body: it stood as a stub beside each values' line. At rest
|
|
1777
1874
|
a grid with a pop-in draws no edge; the shadow below still marks what
|
|
1778
1875
|
slides under a zone. */
|
|
1779
|
-
[data-ui
|
|
1876
|
+
[data-ui-data-grid][data-popin] [data-pinned][data-pin-edge]::after {
|
|
1780
1877
|
background-color: transparent;
|
|
1781
1878
|
}
|
|
1782
1879
|
|
|
@@ -1786,20 +1883,20 @@
|
|
|
1786
1883
|
mid-word is not always there to be seen. A shadow and not a stronger
|
|
1787
1884
|
line: read on the pinning scene, a dark rule down the body read as a
|
|
1788
1885
|
frame inside the frame. */
|
|
1789
|
-
[data-ui
|
|
1790
|
-
[data-part
|
|
1886
|
+
[data-ui-data-grid]
|
|
1887
|
+
[data-part-scroll][data-overflowing]:not([data-at-start])
|
|
1791
1888
|
[data-pinned='start'][data-pin-edge]::after,
|
|
1792
|
-
[data-ui
|
|
1793
|
-
[data-part
|
|
1889
|
+
[data-ui-data-grid]
|
|
1890
|
+
[data-part-scroll][data-overflowing]:not([data-at-end])
|
|
1794
1891
|
[data-pinned='end'][data-pin-edge]::after {
|
|
1795
|
-
/* The
|
|
1892
|
+
/* The color is the gradient's alone: with the hairline's color still
|
|
1796
1893
|
under the widened box, the shadow read as a solid grey band. */
|
|
1797
1894
|
background-color: transparent;
|
|
1798
1895
|
inline-size: calc(var(--_rule-width) + var(--_edge-shadow-size));
|
|
1799
1896
|
}
|
|
1800
1897
|
|
|
1801
|
-
[data-ui
|
|
1802
|
-
[data-part
|
|
1898
|
+
[data-ui-data-grid]
|
|
1899
|
+
[data-part-scroll][data-overflowing]:not([data-at-start])
|
|
1803
1900
|
[data-pinned='start'][data-pin-edge]::after {
|
|
1804
1901
|
background-image: linear-gradient(
|
|
1805
1902
|
to right,
|
|
@@ -1810,8 +1907,8 @@
|
|
|
1810
1907
|
inset-inline-end: calc(var(--_edge-shadow-size) * -1);
|
|
1811
1908
|
}
|
|
1812
1909
|
|
|
1813
|
-
[data-ui
|
|
1814
|
-
[data-part
|
|
1910
|
+
[data-ui-data-grid]
|
|
1911
|
+
[data-part-scroll][data-overflowing]:not([data-at-end])
|
|
1815
1912
|
[data-pinned='end'][data-pin-edge]::after {
|
|
1816
1913
|
background-image: linear-gradient(
|
|
1817
1914
|
to left,
|
|
@@ -1822,8 +1919,8 @@
|
|
|
1822
1919
|
inset-inline-start: calc(var(--_edge-shadow-size) * -1);
|
|
1823
1920
|
}
|
|
1824
1921
|
|
|
1825
|
-
[data-ui
|
|
1826
|
-
[data-part
|
|
1922
|
+
[data-ui-data-grid]:dir(rtl)
|
|
1923
|
+
[data-part-scroll][data-overflowing]:not([data-at-start])
|
|
1827
1924
|
[data-pinned='start'][data-pin-edge]::after {
|
|
1828
1925
|
background-image: linear-gradient(
|
|
1829
1926
|
to left,
|
|
@@ -1833,8 +1930,8 @@
|
|
|
1833
1930
|
);
|
|
1834
1931
|
}
|
|
1835
1932
|
|
|
1836
|
-
[data-ui
|
|
1837
|
-
[data-part
|
|
1933
|
+
[data-ui-data-grid]:dir(rtl)
|
|
1934
|
+
[data-part-scroll][data-overflowing]:not([data-at-end])
|
|
1838
1935
|
[data-pinned='end'][data-pin-edge]::after {
|
|
1839
1936
|
background-image: linear-gradient(
|
|
1840
1937
|
to right,
|
|
@@ -1850,7 +1947,7 @@
|
|
|
1850
1947
|
* The cell is the family's and the control is `checkbox`'s. The width is
|
|
1851
1948
|
* stated so a column pinned beside it has a length to state.
|
|
1852
1949
|
*/
|
|
1853
|
-
[data-ui
|
|
1950
|
+
[data-ui-data-grid] [role='row'] > [data-part-selection] {
|
|
1854
1951
|
--slotted-selection-halo-opacity: 0;
|
|
1855
1952
|
|
|
1856
1953
|
justify-content: center;
|
|
@@ -1865,7 +1962,7 @@
|
|
|
1865
1962
|
* X both pin it with the first pinned column; here it is pinned always, so a
|
|
1866
1963
|
* consumer never has to say it.
|
|
1867
1964
|
*/
|
|
1868
|
-
[data-ui
|
|
1965
|
+
[data-ui-data-grid] [role='row'] > [data-part-selection] {
|
|
1869
1966
|
background-color: inherit;
|
|
1870
1967
|
inset-inline-start: 0;
|
|
1871
1968
|
position: sticky;
|
|
@@ -1875,25 +1972,18 @@
|
|
|
1875
1972
|
/* Restated for the head's chooser, whose header rule above made it
|
|
1876
1973
|
`relative` at a higher specificity: read scrolled, the select-all left
|
|
1877
1974
|
with the columns while every row's chooser stayed. */
|
|
1878
|
-
[data-ui
|
|
1879
|
-
> [data-part
|
|
1880
|
-
> [data-part
|
|
1975
|
+
[data-ui-data-grid]
|
|
1976
|
+
> [data-part-scroll]
|
|
1977
|
+
> [data-part-head]
|
|
1881
1978
|
> [role='row']
|
|
1882
|
-
> [data-part
|
|
1979
|
+
> [data-part-selection] {
|
|
1883
1980
|
background-color: var(--_head-surface);
|
|
1884
1981
|
inset-inline-start: 0;
|
|
1885
1982
|
position: sticky;
|
|
1886
1983
|
z-index: calc(var(--slotted-z-index-sticky, 100) + 2);
|
|
1887
1984
|
}
|
|
1888
1985
|
|
|
1889
|
-
[data-ui
|
|
1890
|
-
:is([data-part='body'], [data-part='pinned-rows'])
|
|
1891
|
-
> [data-part='row'][data-selected]
|
|
1892
|
-
> [data-part='selection'] {
|
|
1893
|
-
background-color: var(--_selected);
|
|
1894
|
-
}
|
|
1895
|
-
|
|
1896
|
-
[data-ui='data-grid'] [role='row'] > [data-part='selection'] > [data-ui='checkbox'] {
|
|
1986
|
+
[data-ui-data-grid] [role='row'] > [data-part-selection] > [data-ui-checkbox] {
|
|
1897
1987
|
block-size: var(--_line);
|
|
1898
1988
|
}
|
|
1899
1989
|
|
|
@@ -1901,7 +1991,7 @@
|
|
|
1901
1991
|
it rather than the stylesheet asking every cell what it holds: `:has()`
|
|
1902
1992
|
on every cell of a windowed body is a question asked a thousand times per
|
|
1903
1993
|
style pass. */
|
|
1904
|
-
[data-ui
|
|
1994
|
+
[data-ui-data-grid] [data-part-cell][data-kind='expander'] {
|
|
1905
1995
|
justify-content: center;
|
|
1906
1996
|
padding-inline: 0;
|
|
1907
1997
|
}
|
|
@@ -1912,11 +2002,11 @@
|
|
|
1912
2002
|
* One cell spanning every column, on the sunken ground, with the record's
|
|
1913
2003
|
* own inset so what is inside reads as belonging to the row above.
|
|
1914
2004
|
*/
|
|
1915
|
-
[data-ui
|
|
2005
|
+
[data-ui-data-grid] [data-part-detail] {
|
|
1916
2006
|
background-color: var(--slotted-surface-sunken, Canvas);
|
|
1917
2007
|
}
|
|
1918
2008
|
|
|
1919
|
-
[data-ui
|
|
2009
|
+
[data-ui-data-grid] [data-part-detail] > * {
|
|
1920
2010
|
background-color: var(--slotted-surface-sunken, Canvas);
|
|
1921
2011
|
box-sizing: border-box;
|
|
1922
2012
|
grid-column: 1 / -1;
|
|
@@ -1926,7 +2016,7 @@
|
|
|
1926
2016
|
the consumer's own layout and not a column. */
|
|
1927
2017
|
position: sticky;
|
|
1928
2018
|
inset-inline-start: 0;
|
|
1929
|
-
max-inline-size:
|
|
2019
|
+
max-inline-size: var(--slotted-data-grid-viewport, 100%);
|
|
1930
2020
|
}
|
|
1931
2021
|
|
|
1932
2022
|
/**
|
|
@@ -1946,28 +2036,28 @@
|
|
|
1946
2036
|
*/
|
|
1947
2037
|
/* The values' line is the density's row, grown to its content; the
|
|
1948
2038
|
pop-in's line is as tall as its fields. */
|
|
1949
|
-
[data-ui
|
|
1950
|
-
> [data-part
|
|
1951
|
-
> :is([data-part
|
|
1952
|
-
> [data-part
|
|
2039
|
+
[data-ui-data-grid][data-popin]
|
|
2040
|
+
> [data-part-scroll]
|
|
2041
|
+
> :is([data-part-body], [data-part-pinned-rows])
|
|
2042
|
+
> [data-part-row] {
|
|
1953
2043
|
grid-template-rows: minmax(var(--_track), auto) auto;
|
|
1954
2044
|
}
|
|
1955
2045
|
|
|
1956
|
-
[data-ui
|
|
2046
|
+
[data-ui-data-grid][data-popin] > [data-part-scroll] > [data-part-summary] > [role='row'] {
|
|
1957
2047
|
grid-template-rows: minmax(var(--_head-block), auto) auto;
|
|
1958
2048
|
}
|
|
1959
2049
|
|
|
1960
2050
|
/* The chooser, the expander, the values and the actions stand on the
|
|
1961
|
-
values' line
|
|
2051
|
+
values' line centerd, as in a fixed row: the line is the row's own
|
|
1962
2052
|
height, and a wrapped value is the only thing that grows it. */
|
|
1963
|
-
[data-ui
|
|
1964
|
-
:is([data-part
|
|
1965
|
-
> [data-part
|
|
1966
|
-
> :is([role='gridcell'], [role='rowheader']):not([data-part
|
|
2053
|
+
[data-ui-data-grid][data-popin]
|
|
2054
|
+
:is([data-part-body], [data-part-pinned-rows])
|
|
2055
|
+
> [data-part-row]
|
|
2056
|
+
> :is([role='gridcell'], [role='rowheader']):not([data-part-popin]) {
|
|
1967
2057
|
align-items: center;
|
|
1968
2058
|
}
|
|
1969
2059
|
|
|
1970
|
-
[data-ui
|
|
2060
|
+
[data-ui-data-grid] [data-part-popin] {
|
|
1971
2061
|
align-content: start;
|
|
1972
2062
|
box-sizing: border-box;
|
|
1973
2063
|
column-gap: var(--slotted-space-4, 0.5rem);
|
|
@@ -1976,7 +2066,7 @@
|
|
|
1976
2066
|
grid-row: 2;
|
|
1977
2067
|
grid-template-columns: repeat(auto-fill, minmax(min(9rem, 100%), 1fr));
|
|
1978
2068
|
inset-inline-start: 0;
|
|
1979
|
-
max-inline-size:
|
|
2069
|
+
max-inline-size: var(--slotted-data-grid-viewport, 100%);
|
|
1980
2070
|
min-inline-size: 0;
|
|
1981
2071
|
padding-block: 0 var(--_pad-block);
|
|
1982
2072
|
padding-inline: calc(var(--slotted-data-grid-leading, 0px) + var(--_pad-inline))
|
|
@@ -1990,15 +2080,13 @@
|
|
|
1990
2080
|
indent: with the chooser and the expander, 88 of 360 pixels left one
|
|
1991
2081
|
column of fields where the row's whole width holds two. The fields start
|
|
1992
2082
|
at the row's own padding, under the chooser. */
|
|
1993
|
-
|
|
1994
|
-
|
|
1995
|
-
padding-inline-start: var(--_pad-inline);
|
|
1996
|
-
}
|
|
2083
|
+
[data-ui-data-grid][data-narrow] [data-part-popin] {
|
|
2084
|
+
padding-inline-start: var(--_pad-inline);
|
|
1997
2085
|
}
|
|
1998
2086
|
|
|
1999
2087
|
/* The label above the value, as a form reads, so a narrow field keeps the
|
|
2000
2088
|
value's whole width. */
|
|
2001
|
-
[data-ui
|
|
2089
|
+
[data-ui-data-grid] [data-part-popin-field] {
|
|
2002
2090
|
display: flex;
|
|
2003
2091
|
flex-direction: column;
|
|
2004
2092
|
min-inline-size: 0;
|
|
@@ -2007,7 +2095,7 @@
|
|
|
2007
2095
|
/* Room for one column of fields only (two need 2 × 9rem and the gap): the
|
|
2008
2096
|
label goes beside its value, so each field takes one line instead of two. */
|
|
2009
2097
|
@container slotted-data-grid-popin (width < 19rem) {
|
|
2010
|
-
[data-ui
|
|
2098
|
+
[data-ui-data-grid] [data-part-popin-field] {
|
|
2011
2099
|
align-items: baseline;
|
|
2012
2100
|
column-gap: var(--slotted-space-3, 0.375rem);
|
|
2013
2101
|
display: grid;
|
|
@@ -2015,7 +2103,7 @@
|
|
|
2015
2103
|
}
|
|
2016
2104
|
}
|
|
2017
2105
|
|
|
2018
|
-
[data-ui
|
|
2106
|
+
[data-ui-data-grid] [data-part-popin-label] {
|
|
2019
2107
|
color: var(--_muted);
|
|
2020
2108
|
font-size: var(--slotted-font-size-xs, 0.75rem);
|
|
2021
2109
|
font-weight: var(--slotted-font-weight-regular, 400);
|
|
@@ -2026,7 +2114,7 @@
|
|
|
2026
2114
|
field under a label at its start reads as the next field's. One line tall
|
|
2027
2115
|
when empty, so an empty value keeps its place under its label, as the
|
|
2028
2116
|
empty cell keeps its row. */
|
|
2029
|
-
[data-ui
|
|
2117
|
+
[data-ui-data-grid] [data-part-popin-value] {
|
|
2030
2118
|
align-items: center;
|
|
2031
2119
|
display: flex;
|
|
2032
2120
|
gap: var(--_gap);
|
|
@@ -2042,8 +2130,8 @@
|
|
|
2042
2130
|
aligns its lines to the grid's start, under its label: read in `rtl`, a
|
|
2043
2131
|
company name set by its own direction ran from the far edge of the field,
|
|
2044
2132
|
and `match-parent` did not move it. */
|
|
2045
|
-
[data-ui
|
|
2046
|
-
[data-ui
|
|
2133
|
+
[data-ui-data-grid] [data-part-popin-value][data-text] > span:not([data-ui], [data-part]),
|
|
2134
|
+
[data-ui-data-grid] [data-part-popin-value] > span:not([data-ui], [data-part]) {
|
|
2047
2135
|
flex: 0 1 auto;
|
|
2048
2136
|
min-inline-size: 0;
|
|
2049
2137
|
overflow: visible;
|
|
@@ -2055,11 +2143,11 @@
|
|
|
2055
2143
|
}
|
|
2056
2144
|
|
|
2057
2145
|
/* Physical, because `start` under `plaintext` is the value's own start. */
|
|
2058
|
-
[data-ui
|
|
2146
|
+
[data-ui-data-grid]:dir(rtl) [data-part-popin-value] > span:not([data-ui], [data-part]) {
|
|
2059
2147
|
text-align: right;
|
|
2060
2148
|
}
|
|
2061
2149
|
|
|
2062
|
-
[data-ui
|
|
2150
|
+
[data-ui-data-grid] [data-part-popin-value] > [data-ui]:not([data-part]) {
|
|
2063
2151
|
flex: 0 0 auto;
|
|
2064
2152
|
max-inline-size: 100%;
|
|
2065
2153
|
}
|
|
@@ -2071,13 +2159,13 @@
|
|
|
2071
2159
|
* indented by its level. The ground is the band at 4%, and the text is
|
|
2072
2160
|
* semibold, so a reader scanning for a group finds it without reading.
|
|
2073
2161
|
*/
|
|
2074
|
-
[data-ui
|
|
2162
|
+
[data-ui-data-grid] [data-part-group-row] {
|
|
2075
2163
|
background-color: var(--_band-surface);
|
|
2076
2164
|
color: var(--_text);
|
|
2077
2165
|
font-weight: var(--slotted-font-weight-semibold, 600);
|
|
2078
2166
|
}
|
|
2079
2167
|
|
|
2080
|
-
[data-ui
|
|
2168
|
+
[data-ui-data-grid] [data-part-group-row] > [role='gridcell'] {
|
|
2081
2169
|
align-items: center;
|
|
2082
2170
|
box-sizing: border-box;
|
|
2083
2171
|
display: flex;
|
|
@@ -2090,7 +2178,7 @@
|
|
|
2090
2178
|
|
|
2091
2179
|
/* The first cell of a group row spans to the first aggregate, indented by
|
|
2092
2180
|
its level; the aggregates stand in their own columns. */
|
|
2093
|
-
[data-ui
|
|
2181
|
+
[data-ui-data-grid] [data-part-group-row] > [role='gridcell']:first-child {
|
|
2094
2182
|
padding-inline-start: calc(
|
|
2095
2183
|
var(--_pad-inline) + var(--_indent) * (var(--slotted-data-grid-level, 1) - 1)
|
|
2096
2184
|
);
|
|
@@ -2098,25 +2186,25 @@
|
|
|
2098
2186
|
inset-inline-start: 0;
|
|
2099
2187
|
}
|
|
2100
2188
|
|
|
2101
|
-
[data-ui
|
|
2189
|
+
[data-ui-data-grid] [data-part-group-row] > [role='gridcell']:first-child > span {
|
|
2102
2190
|
overflow: hidden;
|
|
2103
2191
|
text-overflow: ellipsis;
|
|
2104
2192
|
white-space: nowrap;
|
|
2105
2193
|
}
|
|
2106
2194
|
|
|
2107
2195
|
/* The count, one step lighter than the value. */
|
|
2108
|
-
[data-ui
|
|
2196
|
+
[data-ui-data-grid] [data-part-group-row] [data-count] {
|
|
2109
2197
|
color: var(--_muted);
|
|
2110
2198
|
font-weight: var(--slotted-font-weight-regular, 400);
|
|
2111
2199
|
}
|
|
2112
2200
|
|
|
2113
|
-
[data-ui
|
|
2201
|
+
[data-ui-data-grid] [data-part-group-row] [data-aggregate] {
|
|
2114
2202
|
color: var(--_muted);
|
|
2115
2203
|
font-variant-numeric: tabular-nums;
|
|
2116
2204
|
font-weight: var(--slotted-font-weight-medium, 500);
|
|
2117
2205
|
}
|
|
2118
2206
|
|
|
2119
|
-
[data-ui
|
|
2207
|
+
[data-ui-data-grid] [data-part-group-toggle] {
|
|
2120
2208
|
margin-block: calc((var(--_line) - var(--slotted-target-min, 24px)) / 2);
|
|
2121
2209
|
margin-inline-start: calc(var(--slotted-space-2, 0.25rem) * -1);
|
|
2122
2210
|
}
|
|
@@ -2127,13 +2215,13 @@
|
|
|
2127
2215
|
* The aggregates of the whole query, pinned to the end of the scroller, on
|
|
2128
2216
|
* the band with a strong rule above — the header of the other end.
|
|
2129
2217
|
*/
|
|
2130
|
-
[data-ui
|
|
2218
|
+
[data-ui-data-grid] > [data-part-scroll] > [data-part-summary] {
|
|
2131
2219
|
inset-block-end: var(--slotted-data-grid-sticky-offset-end, 0);
|
|
2132
2220
|
position: sticky;
|
|
2133
2221
|
z-index: calc(var(--slotted-z-index-sticky, 100) + 1);
|
|
2134
2222
|
}
|
|
2135
2223
|
|
|
2136
|
-
[data-ui
|
|
2224
|
+
[data-ui-data-grid]:not([data-sticky-header]) > [data-part-scroll] > [data-part-summary] {
|
|
2137
2225
|
position: static;
|
|
2138
2226
|
}
|
|
2139
2227
|
|
|
@@ -2145,20 +2233,20 @@
|
|
|
2145
2233
|
* surface so the body scrolls under it, with a rule on the side it faces
|
|
2146
2234
|
* the body. Their rows are the body's rows.
|
|
2147
2235
|
*/
|
|
2148
|
-
[data-ui
|
|
2236
|
+
[data-ui-data-grid] > [data-part-scroll] > [data-part-pinned-rows] {
|
|
2149
2237
|
background-color: var(--_surface);
|
|
2150
2238
|
position: sticky;
|
|
2151
2239
|
z-index: calc(var(--slotted-z-index-sticky, 100) + 1);
|
|
2152
2240
|
}
|
|
2153
2241
|
|
|
2154
|
-
[data-ui
|
|
2242
|
+
[data-ui-data-grid] > [data-part-scroll] > [data-part-pinned-rows][data-edge='top'] {
|
|
2155
2243
|
border-block-end: var(--_rule-width) solid var(--_rule-strong);
|
|
2156
2244
|
inset-block-start: calc(
|
|
2157
2245
|
var(--slotted-data-grid-sticky-offset, 0px) + var(--slotted-data-grid-pinned-top-offset, 0px)
|
|
2158
2246
|
);
|
|
2159
2247
|
}
|
|
2160
2248
|
|
|
2161
|
-
[data-ui
|
|
2249
|
+
[data-ui-data-grid] > [data-part-scroll] > [data-part-pinned-rows][data-edge='bottom'] {
|
|
2162
2250
|
border-block-start: var(--_rule-width) solid var(--_rule-strong);
|
|
2163
2251
|
inset-block-end: calc(
|
|
2164
2252
|
var(--slotted-data-grid-sticky-offset-end, 0px) +
|
|
@@ -2166,36 +2254,34 @@
|
|
|
2166
2254
|
);
|
|
2167
2255
|
}
|
|
2168
2256
|
|
|
2169
|
-
[data-ui
|
|
2170
|
-
> [data-part='scroll']
|
|
2171
|
-
> [data-part='pinned-rows'] {
|
|
2257
|
+
[data-ui-data-grid]:not([data-sticky-header]) > [data-part-scroll] > [data-part-pinned-rows] {
|
|
2172
2258
|
position: static;
|
|
2173
2259
|
}
|
|
2174
2260
|
|
|
2175
2261
|
/* A pinned cell inside a held row stands over the row's own ground. */
|
|
2176
|
-
[data-ui
|
|
2262
|
+
[data-ui-data-grid] > [data-part-scroll] > [data-part-pinned-rows] [data-pinned] {
|
|
2177
2263
|
background-color: var(--_surface);
|
|
2178
2264
|
}
|
|
2179
2265
|
|
|
2180
|
-
[data-ui
|
|
2266
|
+
[data-ui-data-grid] > [data-part-scroll] > [data-part-summary] > [role='row'] {
|
|
2181
2267
|
background-color: var(--_head-surface);
|
|
2182
2268
|
border-block-start: var(--_rule-width) solid var(--_rule-strong);
|
|
2183
2269
|
}
|
|
2184
2270
|
|
|
2185
|
-
[data-ui
|
|
2271
|
+
[data-ui-data-grid] [data-part-summary-cell] {
|
|
2186
2272
|
background-color: var(--_head-surface);
|
|
2187
2273
|
font-weight: var(--slotted-font-weight-semibold, 600);
|
|
2188
2274
|
min-block-size: var(--_head-block);
|
|
2189
2275
|
}
|
|
2190
2276
|
|
|
2191
|
-
[data-ui
|
|
2277
|
+
[data-ui-data-grid] > [data-part-scroll] > [data-part-summary] [data-pinned] {
|
|
2192
2278
|
background-color: var(--_head-surface);
|
|
2193
2279
|
z-index: calc(var(--slotted-z-index-sticky, 100) + 2);
|
|
2194
2280
|
}
|
|
2195
2281
|
|
|
2196
2282
|
/* The label of an aggregate — "Total", "Average" — one step lighter than
|
|
2197
2283
|
the number beside it. */
|
|
2198
|
-
[data-ui
|
|
2284
|
+
[data-ui-data-grid] [data-part-summary-cell] [data-label] {
|
|
2199
2285
|
color: var(--_muted);
|
|
2200
2286
|
font-weight: var(--slotted-font-weight-regular, 400);
|
|
2201
2287
|
margin-inline-end: var(--slotted-space-2, 0.25rem);
|
|
@@ -2211,11 +2297,11 @@
|
|
|
2211
2297
|
/* Scoped to the cell's own child: `result-state` in the empty part has an
|
|
2212
2298
|
`actions` part of the same name, and a rule naming the part alone hid
|
|
2213
2299
|
its buttons. */
|
|
2214
|
-
[data-ui
|
|
2300
|
+
[data-ui-data-grid] [data-part-cell] > [data-part-actions] {
|
|
2215
2301
|
align-items: center;
|
|
2216
2302
|
/* One line tall, whatever stands inside: the buttons are taller than the
|
|
2217
2303
|
line and overflow it evenly, so the row is still measured by its text
|
|
2218
|
-
and the buttons sit on the value's own
|
|
2304
|
+
and the buttons sit on the value's own center. */
|
|
2219
2305
|
block-size: var(--_line);
|
|
2220
2306
|
display: inline-flex;
|
|
2221
2307
|
gap: var(--slotted-space-1, 0.125rem);
|
|
@@ -2229,9 +2315,9 @@
|
|
|
2229
2315
|
* artwork the consumer puts in. A library `button` at its smallest step is
|
|
2230
2316
|
* thirty pixels against a line of nineteen and a half: read on the anatomy
|
|
2231
2317
|
* scene, two of them stood five pixels proud of the row on both sides and
|
|
2232
|
-
* grew its track. The consumer keeps the
|
|
2318
|
+
* grew its track. The consumer keeps the behavior and the artwork.
|
|
2233
2319
|
*/
|
|
2234
|
-
[data-ui
|
|
2320
|
+
[data-ui-data-grid] [data-part-cell] > [data-part-actions] > button {
|
|
2235
2321
|
align-items: center;
|
|
2236
2322
|
background-color: transparent;
|
|
2237
2323
|
block-size: var(--_control);
|
|
@@ -2249,42 +2335,42 @@
|
|
|
2249
2335
|
color var(--_transition);
|
|
2250
2336
|
}
|
|
2251
2337
|
|
|
2252
|
-
[data-ui
|
|
2338
|
+
[data-ui-data-grid] [data-part-cell] > [data-part-actions] > button :is(svg, img) {
|
|
2253
2339
|
block-size: var(--_control-icon);
|
|
2254
2340
|
inline-size: var(--_control-icon);
|
|
2255
2341
|
}
|
|
2256
2342
|
|
|
2257
|
-
[data-ui
|
|
2343
|
+
[data-ui-data-grid] [data-part-cell] > [data-part-actions] > button:not(:disabled):hover {
|
|
2258
2344
|
background-color: color-mix(in oklab, var(--slotted-text, CanvasText) 7%, transparent);
|
|
2259
2345
|
color: var(--_text);
|
|
2260
2346
|
}
|
|
2261
2347
|
|
|
2262
|
-
[data-ui
|
|
2348
|
+
[data-ui-data-grid] [data-part-cell] > [data-part-actions] > button:focus-visible {
|
|
2263
2349
|
outline: var(--_ring-width) solid var(--slotted-focus-ring-color, Highlight);
|
|
2264
2350
|
outline-offset: calc(var(--slotted-focus-ring-offset, 2px) * -1);
|
|
2265
2351
|
}
|
|
2266
2352
|
|
|
2267
|
-
[data-ui
|
|
2268
|
-
[data-part
|
|
2269
|
-
[data-part
|
|
2270
|
-
> [data-part
|
|
2271
|
-
[data-ui
|
|
2272
|
-
[data-ui
|
|
2273
|
-
[data-ui
|
|
2353
|
+
[data-ui-data-grid]
|
|
2354
|
+
[data-part-row]:not([data-disabled]):hover
|
|
2355
|
+
[data-part-cell]
|
|
2356
|
+
> [data-part-actions],
|
|
2357
|
+
[data-ui-data-grid] [data-part-row]:focus-within [data-part-cell] > [data-part-actions],
|
|
2358
|
+
[data-ui-data-grid] [data-part-row][data-current] [data-part-cell] > [data-part-actions],
|
|
2359
|
+
[data-ui-data-grid] [data-part-row][data-editing] [data-part-cell] > [data-part-actions] {
|
|
2274
2360
|
opacity: 1;
|
|
2275
2361
|
}
|
|
2276
2362
|
|
|
2277
2363
|
@media (pointer: coarse) {
|
|
2278
|
-
[data-ui
|
|
2279
|
-
[data-ui
|
|
2280
|
-
[data-ui
|
|
2364
|
+
[data-ui-data-grid] [data-part-cell] > [data-part-actions],
|
|
2365
|
+
[data-ui-data-grid] [data-part-column-menu],
|
|
2366
|
+
[data-ui-data-grid] [data-part-column-header] [data-part-filter] {
|
|
2281
2367
|
opacity: 1;
|
|
2282
2368
|
}
|
|
2283
2369
|
|
|
2284
2370
|
/* The row grew to the comfortable target through the control scale; the
|
|
2285
2371
|
family's own controls grow with it, to the row less the cursor's ring.
|
|
2286
2372
|
A 24-pixel button in a 44-pixel row is a target a thumb misses. */
|
|
2287
|
-
[data-ui
|
|
2373
|
+
[data-ui-data-grid][data-part-root] {
|
|
2288
2374
|
--_control: min(
|
|
2289
2375
|
var(--slotted-target-comfortable, 44px),
|
|
2290
2376
|
calc(min(var(--_row-block), var(--_head-block)) - var(--_ring-width) * 2)
|
|
@@ -2297,13 +2383,13 @@
|
|
|
2297
2383
|
shows round it; the box reaches the full target by a padding the ground
|
|
2298
2384
|
does not paint, and gives it back as a negative margin, so no row, no
|
|
2299
2385
|
header and no column name moves. Neighbours overlap by the gap. */
|
|
2300
|
-
[data-ui
|
|
2301
|
-
[data-ui
|
|
2302
|
-
[data-ui
|
|
2303
|
-
[data-ui
|
|
2304
|
-
[data-ui
|
|
2305
|
-
[data-ui
|
|
2306
|
-
[data-ui
|
|
2386
|
+
[data-ui-data-grid] [data-part-column-help],
|
|
2387
|
+
[data-ui-data-grid] [data-part-column-menu],
|
|
2388
|
+
[data-ui-data-grid] [data-part-column-header] [data-part-filter],
|
|
2389
|
+
[data-ui-data-grid] [data-part-expander],
|
|
2390
|
+
[data-ui-data-grid] [data-part-group-toggle],
|
|
2391
|
+
[data-ui-data-grid] [data-part-tree-toggle],
|
|
2392
|
+
[data-ui-data-grid] [data-part-row-handle] {
|
|
2307
2393
|
background-clip: content-box;
|
|
2308
2394
|
box-sizing: content-box;
|
|
2309
2395
|
margin: calc(var(--_reach) * -1);
|
|
@@ -2314,7 +2400,7 @@
|
|
|
2314
2400
|
/**
|
|
2315
2401
|
* ── Empty, and loading ─────────────────────────────────────────────────
|
|
2316
2402
|
*/
|
|
2317
|
-
[data-ui
|
|
2403
|
+
[data-ui-data-grid] > [data-part-scroll] > [data-part-empty] {
|
|
2318
2404
|
align-items: center;
|
|
2319
2405
|
/* The padding stands inside the viewport's width. Without it the box was
|
|
2320
2406
|
its own padding wider than the frame, and a grid whose columns all fit
|
|
@@ -2325,7 +2411,7 @@
|
|
|
2325
2411
|
stands in the middle of what the reader sees whatever the columns'
|
|
2326
2412
|
width and however far the grid is scrolled sideways: laid out over the
|
|
2327
2413
|
columns, the middle of a wide template was off screen. */
|
|
2328
|
-
inline-size:
|
|
2414
|
+
inline-size: var(--slotted-data-grid-viewport, 100%);
|
|
2329
2415
|
inset-inline-start: 0;
|
|
2330
2416
|
justify-content: center;
|
|
2331
2417
|
min-block-size: calc(var(--_row-block) * 6);
|
|
@@ -2333,7 +2419,7 @@
|
|
|
2333
2419
|
position: sticky;
|
|
2334
2420
|
}
|
|
2335
2421
|
|
|
2336
|
-
[data-ui
|
|
2422
|
+
[data-ui-data-grid] > [data-part-scroll] > [data-part-loader] > [data-part-row] > * {
|
|
2337
2423
|
align-items: center;
|
|
2338
2424
|
box-sizing: border-box;
|
|
2339
2425
|
display: flex;
|
|
@@ -2348,12 +2434,43 @@
|
|
|
2348
2434
|
padding-inline: var(--_pad-inline);
|
|
2349
2435
|
}
|
|
2350
2436
|
|
|
2351
|
-
|
|
2437
|
+
/* A placeholder stands where the value will: at the end of a numeric or
|
|
2438
|
+
end-aligned column, so the box does not move when the data arrives. */
|
|
2439
|
+
[data-ui-data-grid]
|
|
2440
|
+
> [data-part-scroll]
|
|
2441
|
+
> [data-part-loader]
|
|
2442
|
+
> [data-part-row]
|
|
2443
|
+
> :is([data-align='end'], [data-numeric]:not([data-align])) {
|
|
2444
|
+
justify-content: end;
|
|
2445
|
+
}
|
|
2446
|
+
|
|
2447
|
+
[data-ui-data-grid]
|
|
2448
|
+
> [data-part-scroll]
|
|
2449
|
+
> [data-part-loader]
|
|
2450
|
+
> [data-part-row]
|
|
2451
|
+
> [data-align='center'] {
|
|
2452
|
+
justify-content: center;
|
|
2453
|
+
}
|
|
2454
|
+
|
|
2455
|
+
[data-ui-data-grid][aria-busy='true'] > [data-part-scroll] > [data-part-body] {
|
|
2352
2456
|
opacity: 0.55;
|
|
2353
|
-
pointer-events: none;
|
|
2354
2457
|
transition: opacity var(--_transition);
|
|
2355
2458
|
}
|
|
2356
2459
|
|
|
2460
|
+
/**
|
|
2461
|
+
* The rows refuse a press while they are read again through a veil over
|
|
2462
|
+
* them, not through `pointer-events: none` on the body: the property is
|
|
2463
|
+
* inherited, and toggling it restyled every cell — 8 ms of a 70-row grid's
|
|
2464
|
+
* 9 ms. The veil is one box; the body's opacity makes it a stacking context,
|
|
2465
|
+
* so the veil's layer is above the pinned cells and below nothing outside.
|
|
2466
|
+
*/
|
|
2467
|
+
[data-ui-data-grid][aria-busy='true'] > [data-part-scroll] > [data-part-body]::after {
|
|
2468
|
+
content: '';
|
|
2469
|
+
inset: 0;
|
|
2470
|
+
position: absolute;
|
|
2471
|
+
z-index: calc(var(--slotted-z-index-sticky, 100) + 4);
|
|
2472
|
+
}
|
|
2473
|
+
|
|
2357
2474
|
/**
|
|
2358
2475
|
* ── The footer ─────────────────────────────────────────────────────────
|
|
2359
2476
|
*
|
|
@@ -2365,7 +2482,7 @@
|
|
|
2365
2482
|
* its own content to the end: `pagination` is an inline-size container and
|
|
2366
2483
|
* contributes no intrinsic width, so it cannot be sized by its content.
|
|
2367
2484
|
*/
|
|
2368
|
-
[data-ui
|
|
2485
|
+
[data-ui-data-grid] > [data-part-footer] {
|
|
2369
2486
|
align-items: center;
|
|
2370
2487
|
border-block-start: var(--_rule-width) solid var(--_rule);
|
|
2371
2488
|
box-sizing: border-box;
|
|
@@ -2380,14 +2497,14 @@
|
|
|
2380
2497
|
padding-inline: var(--_pad-inline);
|
|
2381
2498
|
}
|
|
2382
2499
|
|
|
2383
|
-
[data-ui
|
|
2500
|
+
[data-ui-data-grid] > [data-part-footer] > :last-child {
|
|
2384
2501
|
display: flex;
|
|
2385
2502
|
flex: 1 1 auto;
|
|
2386
2503
|
justify-content: flex-end;
|
|
2387
2504
|
min-inline-size: 0;
|
|
2388
2505
|
}
|
|
2389
2506
|
|
|
2390
|
-
[data-ui
|
|
2507
|
+
[data-ui-data-grid] > [data-part-footer] [data-range] {
|
|
2391
2508
|
color: var(--_muted);
|
|
2392
2509
|
flex: none;
|
|
2393
2510
|
font-variant-numeric: tabular-nums;
|
|
@@ -2398,21 +2515,26 @@
|
|
|
2398
2515
|
* ── Scheme and platform ────────────────────────────────────────────────
|
|
2399
2516
|
*/
|
|
2400
2517
|
@media (forced-colors: active) {
|
|
2401
|
-
[data-ui
|
|
2402
|
-
|
|
2518
|
+
[data-ui-data-grid] [data-part-resizer] > [data-part-resize-guide] {
|
|
2519
|
+
background-color: Highlight;
|
|
2520
|
+
forced-color-adjust: none;
|
|
2521
|
+
}
|
|
2522
|
+
|
|
2523
|
+
[data-ui-data-grid] [role='gridcell'][data-current],
|
|
2524
|
+
[data-ui-data-grid] [role='columnheader'][data-current] {
|
|
2403
2525
|
box-shadow: inset 0 0 0 var(--_ring-width) Highlight;
|
|
2404
2526
|
}
|
|
2405
2527
|
|
|
2406
|
-
[data-ui
|
|
2528
|
+
[data-ui-data-grid] [data-part-cell][data-in-range] {
|
|
2407
2529
|
background-color: Highlight;
|
|
2408
2530
|
color: HighlightText;
|
|
2409
2531
|
}
|
|
2410
2532
|
|
|
2411
|
-
[data-ui
|
|
2533
|
+
[data-ui-data-grid] [data-part-drop-indicator] {
|
|
2412
2534
|
background-color: Highlight;
|
|
2413
2535
|
}
|
|
2414
2536
|
|
|
2415
|
-
[data-ui
|
|
2537
|
+
[data-ui-data-grid] [data-part-cell][data-changed] {
|
|
2416
2538
|
animation: none;
|
|
2417
2539
|
background-color: Highlight;
|
|
2418
2540
|
color: HighlightText;
|
|
@@ -2420,7 +2542,7 @@
|
|
|
2420
2542
|
|
|
2421
2543
|
/* The resizer's line is a painted background, which the adjustment
|
|
2422
2544
|
would otherwise replace, leaving the target with no line to show. */
|
|
2423
|
-
[data-ui
|
|
2545
|
+
[data-ui-data-grid] [data-part-resizer]::after {
|
|
2424
2546
|
forced-color-adjust: none;
|
|
2425
2547
|
}
|
|
2426
2548
|
}
|
|
@@ -2435,50 +2557,69 @@
|
|
|
2435
2557
|
* consumer who prints ten thousand turns the window off first.
|
|
2436
2558
|
*/
|
|
2437
2559
|
@media print {
|
|
2438
|
-
[data-ui
|
|
2560
|
+
[data-ui-data-grid][data-part-root] {
|
|
2439
2561
|
block-size: auto;
|
|
2440
2562
|
break-inside: auto;
|
|
2441
2563
|
}
|
|
2442
2564
|
|
|
2443
|
-
[data-ui
|
|
2565
|
+
[data-ui-data-grid] > [data-part-scroll] {
|
|
2444
2566
|
overflow: visible;
|
|
2445
2567
|
}
|
|
2446
2568
|
|
|
2447
|
-
[data-ui
|
|
2448
|
-
[data-ui
|
|
2449
|
-
[data-ui
|
|
2450
|
-
[data-ui
|
|
2451
|
-
[data-ui
|
|
2569
|
+
[data-ui-data-grid] > [data-part-scroll] > [data-part-head],
|
|
2570
|
+
[data-ui-data-grid] > [data-part-scroll] > [data-part-summary],
|
|
2571
|
+
[data-ui-data-grid] > [data-part-scroll] > [data-part-empty],
|
|
2572
|
+
[data-ui-data-grid] > [data-part-scroll] > [data-part-pinned-rows],
|
|
2573
|
+
[data-ui-data-grid] [data-pinned] {
|
|
2452
2574
|
position: static;
|
|
2453
2575
|
}
|
|
2454
2576
|
|
|
2455
|
-
[data-ui
|
|
2577
|
+
[data-ui-data-grid] [data-pinned] {
|
|
2456
2578
|
box-shadow: none;
|
|
2457
2579
|
}
|
|
2458
2580
|
|
|
2459
|
-
[data-ui
|
|
2460
|
-
[data-ui
|
|
2461
|
-
[data-ui
|
|
2462
|
-
[data-ui
|
|
2463
|
-
[data-ui
|
|
2581
|
+
[data-ui-data-grid] [data-part-column-actions],
|
|
2582
|
+
[data-ui-data-grid] [data-part-row-handle],
|
|
2583
|
+
[data-ui-data-grid] [data-part-resizer],
|
|
2584
|
+
[data-ui-data-grid] [data-part-drop-indicator],
|
|
2585
|
+
[data-ui-data-grid] [data-part-loader] {
|
|
2464
2586
|
display: none;
|
|
2465
2587
|
}
|
|
2466
2588
|
|
|
2467
|
-
[data-ui
|
|
2468
|
-
[data-ui
|
|
2469
|
-
[data-ui
|
|
2589
|
+
[data-ui-data-grid] [role='gridcell'][data-current],
|
|
2590
|
+
[data-ui-data-grid] [role='rowheader'][data-current],
|
|
2591
|
+
[data-ui-data-grid] [role='columnheader'][data-current] {
|
|
2470
2592
|
box-shadow: none;
|
|
2471
2593
|
}
|
|
2472
2594
|
|
|
2473
|
-
[data-ui
|
|
2595
|
+
[data-ui-data-grid] :is([data-part-body], [data-part-pinned-rows]) > [data-part-row] {
|
|
2474
2596
|
break-inside: avoid;
|
|
2475
2597
|
}
|
|
2476
2598
|
|
|
2477
|
-
[data-ui
|
|
2478
|
-
> [data-part
|
|
2479
|
-
> :is([data-part
|
|
2480
|
-
> [data-part
|
|
2599
|
+
[data-ui-data-grid]
|
|
2600
|
+
> [data-part-scroll]
|
|
2601
|
+
> :is([data-part-body], [data-part-pinned-rows])
|
|
2602
|
+
> [data-part-row] {
|
|
2481
2603
|
--_hover: transparent;
|
|
2482
2604
|
}
|
|
2483
2605
|
}
|
|
2484
2606
|
}
|
|
2607
|
+
|
|
2608
|
+
/**
|
|
2609
|
+
* The row window's offset and the body's whole height, written on the body
|
|
2610
|
+
* by script on every scroll step and read only by the body. Unregistered,
|
|
2611
|
+
* each one inherited into every row and cell, and a scroll step restyled the
|
|
2612
|
+
* whole window: 41 ms of style recalculation per step on 29 mounted rows.
|
|
2613
|
+
* Registered without inheritance and without a type, a body the grid does not
|
|
2614
|
+
* window still takes the fallback of `var()`. Outside the layer, because
|
|
2615
|
+
* `@property` is a registration, not a rule a cascade layer holds.
|
|
2616
|
+
*/
|
|
2617
|
+
@property --slotted-data-grid-window-start {
|
|
2618
|
+
syntax: '*';
|
|
2619
|
+
inherits: false;
|
|
2620
|
+
}
|
|
2621
|
+
|
|
2622
|
+
@property --slotted-data-grid-window-total {
|
|
2623
|
+
syntax: '*';
|
|
2624
|
+
inherits: false;
|
|
2625
|
+
}
|