@kanunilabs/pivotgrid-react 1.8.8 → 1.8.9
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/index.cjs +2 -2
- package/dist/index.d.cts +12 -0
- package/dist/index.d.ts +12 -0
- package/dist/index.js +2 -2
- package/dist/styles.css +37 -7
- package/package.json +2 -2
package/dist/styles.css
CHANGED
|
@@ -628,16 +628,25 @@
|
|
|
628
628
|
|
|
629
629
|
/* Corner cell (row field headers in corner) */
|
|
630
630
|
.kanuni-pivot-table .kanuni-pivot-header-corner {
|
|
631
|
-
|
|
631
|
+
/* B.90: `--pivot-corner-bg`. */
|
|
632
|
+
background: var(--pivot-corner-bg, color-mix(in srgb, var(--pivot-border) 20%, var(--pivot-surface))) !important;
|
|
632
633
|
border-right: 1px solid var(--pivot-border);
|
|
633
634
|
border-bottom: 1px solid var(--pivot-border);
|
|
634
635
|
}
|
|
635
636
|
|
|
636
637
|
/* Header total columns */
|
|
637
638
|
.kanuni-pivot-table .kanuni-pivot-header-total {
|
|
638
|
-
|
|
639
|
+
/* B.90: `--pivot-header-total-bg`. */
|
|
640
|
+
background: var(--pivot-header-total-bg, color-mix(in srgb, var(--pivot-border) 40%, var(--pivot-surface))) !important;
|
|
639
641
|
font-weight: var(--pivot-font-weight-header-total, 600) !important;
|
|
640
642
|
}
|
|
643
|
+
/* B.90: the "Grand Total" label cell of the grand-total row (row headers) is a header too. Unset it keeps the look of a
|
|
644
|
+
total cell (`--pivot-total-bg`, else the same 40% mix). The row part is in :where() so the rule weighs (0,2,0), the same as
|
|
645
|
+
`.kanuni-pivot-table .kanuni-pivot-cell-total` above and the focus tint below (which comes later and wins): an app's own
|
|
646
|
+
total-cell rule and the focused label cell behave as in 1.11.8. */
|
|
647
|
+
:where(.kanuni-pivot-table .kanuni-pivot-grand-total-row) .kanuni-pivot-row-header.kanuni-pivot-cell-total {
|
|
648
|
+
background: var(--pivot-header-total-bg, var(--pivot-total-bg, color-mix(in srgb, var(--pivot-border) 40%, var(--pivot-surface)))) !important;
|
|
649
|
+
}
|
|
641
650
|
|
|
642
651
|
/* The column-header band reads --pivot-header-bg. Both renderers paint the
|
|
643
652
|
header cells with an inline `var(--pivot-surface-header)`; redefining that
|
|
@@ -676,8 +685,11 @@
|
|
|
676
685
|
|
|
677
686
|
/* Selected cell */
|
|
678
687
|
.kanuni-pivot-table .kanuni-pivot-cell-selected {
|
|
679
|
-
|
|
680
|
-
|
|
688
|
+
/* B.90: `--pivot-cell-selected-bg` / `--pivot-cell-selected-text`. Unset, the look this rule always had. They paint
|
|
689
|
+
every selected cell: data cells, a selected total, a row header in a row-mode selection. The focused cell that is
|
|
690
|
+
NOT selected keeps its own tint above (and the ring is separate). */
|
|
691
|
+
background: var(--pivot-cell-selected-bg, color-mix(in srgb, var(--pivot-primary) 12%, var(--pivot-surface))) !important;
|
|
692
|
+
color: var(--pivot-cell-selected-text, var(--pivot-primary)) !important;
|
|
681
693
|
font-weight: 500;
|
|
682
694
|
}
|
|
683
695
|
|
|
@@ -1351,7 +1363,8 @@
|
|
|
1351
1363
|
flex: 1;
|
|
1352
1364
|
display: flex;
|
|
1353
1365
|
flex-direction: column;
|
|
1354
|
-
|
|
1366
|
+
/* B.90: `--pivot-area-bg`, the body of the filter, Values and Columns zones. */
|
|
1367
|
+
background-color: var(--pivot-area-bg, var(--pivot-bg));
|
|
1355
1368
|
border: 1px solid color-mix(in srgb, var(--pivot-border) 60%, transparent);
|
|
1356
1369
|
border-radius: var(--pivot-border-radius-sm);
|
|
1357
1370
|
overflow: hidden;
|
|
@@ -1367,7 +1380,8 @@
|
|
|
1367
1380
|
align-items: center;
|
|
1368
1381
|
gap: 6px;
|
|
1369
1382
|
padding: 4px 8px;
|
|
1370
|
-
|
|
1383
|
+
/* B.90: `--pivot-area-header-bg`, the title row of those zones. */
|
|
1384
|
+
background-color: var(--pivot-area-header-bg, color-mix(in srgb, var(--pivot-surface-header) 50%, var(--pivot-bg)));
|
|
1371
1385
|
border-bottom: 1px solid color-mix(in srgb, var(--pivot-border) 40%, transparent);
|
|
1372
1386
|
font-size: 10px;
|
|
1373
1387
|
font-weight: 700;
|
|
@@ -1566,9 +1580,16 @@
|
|
|
1566
1580
|
background-color: var(--pivot-surface);
|
|
1567
1581
|
color: var(--pivot-text);
|
|
1568
1582
|
border: 1px solid color-mix(in srgb, var(--pivot-border) 80%, transparent);
|
|
1583
|
+
/* B.90: a raised edge. `--pivot-chip-border-light` is the top and start (left) edges, `--pivot-chip-border-dark` the
|
|
1584
|
+
bottom and end ones; each falls back to the single colour above, so with neither set the chip is as it was. */
|
|
1585
|
+
border-top-color: var(--pivot-chip-border-light, color-mix(in srgb, var(--pivot-border) 80%, transparent));
|
|
1586
|
+
border-left-color: var(--pivot-chip-border-light, color-mix(in srgb, var(--pivot-border) 80%, transparent));
|
|
1587
|
+
border-bottom-color: var(--pivot-chip-border-dark, color-mix(in srgb, var(--pivot-border) 80%, transparent));
|
|
1588
|
+
border-right-color: var(--pivot-chip-border-dark, color-mix(in srgb, var(--pivot-border) 80%, transparent));
|
|
1569
1589
|
box-shadow: var(--pivot-shadow-sm);
|
|
1570
1590
|
border-radius: var(--pivot-border-radius-sm);
|
|
1571
|
-
font-size
|
|
1591
|
+
/* B.90: `--pivot-chip-font-size`. */
|
|
1592
|
+
font-size: var(--pivot-chip-font-size, 12px);
|
|
1572
1593
|
font-weight: var(--pivot-font-weight-chip, 500);
|
|
1573
1594
|
transition: all 0.2s;
|
|
1574
1595
|
}
|
|
@@ -1587,6 +1608,15 @@
|
|
|
1587
1608
|
box-shadow: inset 0 0 0 1px var(--pivot-danger);
|
|
1588
1609
|
background-color: color-mix(in srgb, var(--pivot-danger) 6%, transparent);
|
|
1589
1610
|
}
|
|
1611
|
+
/* B.92: the whole Columns strip takes a drop; while a field is dragged into the
|
|
1612
|
+
column area the strip is tinted so the target reads as the whole strip. A
|
|
1613
|
+
background IMAGE, so the cell's inline background colour stays underneath. */
|
|
1614
|
+
.kanuni-pivot-column-strip[data-drop-over] {
|
|
1615
|
+
background-image: linear-gradient(
|
|
1616
|
+
color-mix(in srgb, var(--pivot-primary) 7%, transparent),
|
|
1617
|
+
color-mix(in srgb, var(--pivot-primary) 7%, transparent)
|
|
1618
|
+
);
|
|
1619
|
+
}
|
|
1590
1620
|
.is-drop-denied[data-chooser-area] {
|
|
1591
1621
|
box-shadow: inset 0 0 0 1px var(--pivot-danger) !important;
|
|
1592
1622
|
background-color: color-mix(in srgb, var(--pivot-danger) 6%, transparent) !important;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kanunilabs/pivotgrid-react",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.9",
|
|
4
4
|
"description": "High-performance React pivot table with a Web Worker engine — drag-and-drop pivoting, filtering, sorting, theming and export",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
"access": "public"
|
|
66
66
|
},
|
|
67
67
|
"dependencies": {
|
|
68
|
-
"@kanunilabs/pivotgrid-core": "1.11.
|
|
68
|
+
"@kanunilabs/pivotgrid-core": "1.11.9"
|
|
69
69
|
},
|
|
70
70
|
"devDependencies": {
|
|
71
71
|
"@tailwindcss/postcss": "^4.3.0",
|