@perspective-dev/viewer-datagrid 4.5.0 → 4.5.1
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/dist/cdn/perspective-viewer-datagrid.js +2 -2
- package/dist/cdn/perspective-viewer-datagrid.js.map +2 -2
- package/dist/css/perspective-viewer-datagrid.css +1 -1
- package/dist/esm/perspective-viewer-datagrid.js +2 -2
- package/dist/esm/perspective-viewer-datagrid.js.map +2 -2
- package/package.json +1 -1
- package/src/css/regular_table.css +36 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@perspective-dev/viewer-datagrid",
|
|
3
|
-
"version": "4.5.
|
|
3
|
+
"version": "4.5.1",
|
|
4
4
|
"description": "Perspective datagrid plugin based on `regular-table`",
|
|
5
5
|
"unpkg": "dist/cdn/perspective-viewer-datagrid.js",
|
|
6
6
|
"jsdelivr": "dist/cdn/perspective-viewer-datagrid.js",
|
|
@@ -244,6 +244,42 @@ perspective-viewer.dragging,
|
|
|
244
244
|
mask-image: var(--psp-icon--sort-abs-col-asc--mask-image);
|
|
245
245
|
}
|
|
246
246
|
|
|
247
|
+
/* Shift-key affordance: while the user holds Shift on the host
|
|
248
|
+
* `<perspective-viewer>`, sort-arrow mask-image icons and tree
|
|
249
|
+
* expand/collapse carets recolor to advertise their Shift-modified actions
|
|
250
|
+
* (abs-sort and depth-level expand/collapse). Both `:host-context` (shadow
|
|
251
|
+
* render target) and the bare selector (light render target) are emitted to
|
|
252
|
+
* cover the runtime branch in datagrid.ts. */
|
|
253
|
+
:host-context(perspective-viewer.shift-active)
|
|
254
|
+
:is(
|
|
255
|
+
.psp-header-sort-asc,
|
|
256
|
+
.psp-header-sort-desc,
|
|
257
|
+
.psp-header-sort-col-asc,
|
|
258
|
+
.psp-header-sort-col-desc
|
|
259
|
+
):after,
|
|
260
|
+
perspective-viewer.shift-active
|
|
261
|
+
:is(
|
|
262
|
+
.psp-header-sort-asc,
|
|
263
|
+
.psp-header-sort-desc,
|
|
264
|
+
.psp-header-sort-col-asc,
|
|
265
|
+
.psp-header-sort-col-desc
|
|
266
|
+
):after {
|
|
267
|
+
background-color: var(
|
|
268
|
+
--shift-active--color,
|
|
269
|
+
var(--psp-datagrid--pos-cell--color, #1078d1)
|
|
270
|
+
);
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
:host-context(perspective-viewer.shift-active)
|
|
274
|
+
:is(.psp-tree-label-expand, .psp-tree-label-collapse):before,
|
|
275
|
+
perspective-viewer.shift-active
|
|
276
|
+
:is(.psp-tree-label-expand, .psp-tree-label-collapse):before {
|
|
277
|
+
color: var(
|
|
278
|
+
--shift-active--color,
|
|
279
|
+
var(--psp-datagrid--pos-cell--color, #1078d1)
|
|
280
|
+
);
|
|
281
|
+
}
|
|
282
|
+
|
|
247
283
|
tbody th:last-of-type {
|
|
248
284
|
border-right: 1px solid var(--psp-inactive--border-color, #8b868045);
|
|
249
285
|
overflow: hidden;
|