@kanunilabs/pivotgrid-react 1.8.5 → 1.8.6
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.js +2 -2
- package/dist/styles.css +53 -5
- package/package.json +2 -2
package/dist/styles.css
CHANGED
|
@@ -534,6 +534,15 @@
|
|
|
534
534
|
line-height: 19px;
|
|
535
535
|
}
|
|
536
536
|
|
|
537
|
+
/* B.82: `layout.textOverflow: 'clip'` cuts text off at the edge instead of ending it in an ellipsis: the chips (every
|
|
538
|
+
strip, the field list, the drag ghost) and the row-header values. The class is on the root (and on the portal host).
|
|
539
|
+
Number cells are not listed. */
|
|
540
|
+
.kanuni-pivot-text-clip .pivot-truncate,
|
|
541
|
+
.kanuni-pivot-text-clip .truncate,
|
|
542
|
+
.kanuni-pivot-text-clip .kanuni-pivot-table .kanuni-pivot-row-header {
|
|
543
|
+
text-overflow: clip;
|
|
544
|
+
}
|
|
545
|
+
|
|
537
546
|
/* Row header cells */
|
|
538
547
|
.kanuni-pivot-table .kanuni-pivot-row-header {
|
|
539
548
|
font-size: var(--pivot-text-sm);
|
|
@@ -590,7 +599,7 @@
|
|
|
590
599
|
/* Total cells (subtotals & grand total) */
|
|
591
600
|
.kanuni-pivot-table .kanuni-pivot-cell-total {
|
|
592
601
|
background: var(--pivot-total-bg, color-mix(in srgb, var(--pivot-border) 40%, var(--pivot-surface))) !important;
|
|
593
|
-
font-weight: 600;
|
|
602
|
+
font-weight: var(--pivot-font-weight-total, 600);
|
|
594
603
|
}
|
|
595
604
|
|
|
596
605
|
/* Subtotal row */
|
|
@@ -599,7 +608,7 @@
|
|
|
599
608
|
}
|
|
600
609
|
|
|
601
610
|
.kanuni-pivot-table .kanuni-pivot-subtotal-row .kanuni-pivot-cell {
|
|
602
|
-
font-weight: 600;
|
|
611
|
+
font-weight: var(--pivot-font-weight-total, 600);
|
|
603
612
|
background: var(--pivot-total-bg, color-mix(in srgb, var(--pivot-border) 30%, var(--pivot-surface)));
|
|
604
613
|
}
|
|
605
614
|
|
|
@@ -609,7 +618,7 @@
|
|
|
609
618
|
}
|
|
610
619
|
|
|
611
620
|
.kanuni-pivot-table .kanuni-pivot-grand-total-row .kanuni-pivot-cell {
|
|
612
|
-
font-weight: 700;
|
|
621
|
+
font-weight: var(--pivot-font-weight-grand-total, 700);
|
|
613
622
|
background: var(--pivot-total-bg, color-mix(in srgb, var(--pivot-border) 50%, var(--pivot-surface)));
|
|
614
623
|
/* Drawn as an inset shadow (not border-top) so the grand-total row stays
|
|
615
624
|
exactly ROW_HEIGHT tall — a real border would add 2px and desync the
|
|
@@ -627,7 +636,7 @@
|
|
|
627
636
|
/* Header total columns */
|
|
628
637
|
.kanuni-pivot-table .kanuni-pivot-header-total {
|
|
629
638
|
background: color-mix(in srgb, var(--pivot-border) 40%, var(--pivot-surface)) !important;
|
|
630
|
-
font-weight: 600 !important;
|
|
639
|
+
font-weight: var(--pivot-font-weight-header-total, 600) !important;
|
|
631
640
|
}
|
|
632
641
|
|
|
633
642
|
/* The column-header band reads --pivot-header-bg. Both renderers paint the
|
|
@@ -1412,6 +1421,18 @@
|
|
|
1412
1421
|
inset-inline-start: auto !important;
|
|
1413
1422
|
}
|
|
1414
1423
|
|
|
1424
|
+
/* B.74: `layout.areaChipOverflow: 'scroll'` puts this class on the pivot's root. The Values and Columns zones above
|
|
1425
|
+
the table keep their chips on one line and scroll it sideways instead of starting a second one. */
|
|
1426
|
+
.kanuni-pivot-area-chips-scroll .kanuni-pivot-table thead .kanuni-pivot-area-content {
|
|
1427
|
+
flex-wrap: nowrap;
|
|
1428
|
+
overflow-x: auto;
|
|
1429
|
+
overflow-y: hidden;
|
|
1430
|
+
overscroll-behavior-x: contain;
|
|
1431
|
+
}
|
|
1432
|
+
.kanuni-pivot-area-chips-scroll .kanuni-pivot-table thead .kanuni-pivot-area-content > * {
|
|
1433
|
+
flex-shrink: 0;
|
|
1434
|
+
}
|
|
1435
|
+
|
|
1415
1436
|
/* B.62: `layout.showSummaryBadge: false` puts this class on the pivot's root. */
|
|
1416
1437
|
.kanuni-pivot-no-summary-badge .kanuni-pivot-chip-badge {
|
|
1417
1438
|
display: none;
|
|
@@ -1483,6 +1504,27 @@
|
|
|
1483
1504
|
overflow-y: auto;
|
|
1484
1505
|
overscroll-behavior-y: contain;
|
|
1485
1506
|
}
|
|
1507
|
+
/* B.61 (zoomed desktop): a short pivot (`data-pivot-short`, set below 480px by core watchShortPivot). A 1100x500
|
|
1508
|
+
window at 175% gives a ~240px pivot: the 30% strip and the 88px zones above left NO data row in view (strip 71,
|
|
1509
|
+
sticky header 145, measured in Chrome). Each part keeps one chip row and scrolls inside; the data keeps at least
|
|
1510
|
+
40% of the pivot. Never on a wide pivot: this sits inside the narrow container query. */
|
|
1511
|
+
.kanuni-pivot-wrapper[data-pivot-short] .kanuni-pivot-filter-strip {
|
|
1512
|
+
max-height: 44px;
|
|
1513
|
+
}
|
|
1514
|
+
.kanuni-pivot-wrapper[data-pivot-short] .kanuni-pivot-table thead .kanuni-pivot-area-dropzone {
|
|
1515
|
+
max-height: 40px;
|
|
1516
|
+
}
|
|
1517
|
+
}
|
|
1518
|
+
@media (pointer: coarse) {
|
|
1519
|
+
/* Touch chips are 44px tall: one row of them. */
|
|
1520
|
+
@container kanuni-pivot (max-width: 768px) {
|
|
1521
|
+
.kanuni-pivot-wrapper[data-pivot-short] .kanuni-pivot-filter-strip {
|
|
1522
|
+
max-height: 60px;
|
|
1523
|
+
}
|
|
1524
|
+
.kanuni-pivot-wrapper[data-pivot-short] .kanuni-pivot-table thead .kanuni-pivot-area-dropzone {
|
|
1525
|
+
max-height: 56px;
|
|
1526
|
+
}
|
|
1527
|
+
}
|
|
1486
1528
|
}
|
|
1487
1529
|
|
|
1488
1530
|
.kanuni-pivot-field-chip {
|
|
@@ -1496,7 +1538,7 @@
|
|
|
1496
1538
|
box-shadow: var(--pivot-shadow-sm);
|
|
1497
1539
|
border-radius: var(--pivot-border-radius-sm);
|
|
1498
1540
|
font-size: 12px;
|
|
1499
|
-
font-weight: 500;
|
|
1541
|
+
font-weight: var(--pivot-font-weight-chip, 500);
|
|
1500
1542
|
transition: all 0.2s;
|
|
1501
1543
|
}
|
|
1502
1544
|
.kanuni-pivot-field-chip:hover {
|
|
@@ -1996,6 +2038,9 @@ th > .kanuni-pivot-field-chip > .kanuni-pivot-field-chip-actions {
|
|
|
1996
2038
|
}
|
|
1997
2039
|
}
|
|
1998
2040
|
@layer utilities {
|
|
2041
|
+
.kanuni-pivot-root .\@container {
|
|
2042
|
+
container-type: inline-size;
|
|
2043
|
+
}
|
|
1999
2044
|
.kanuni-pivot-root .pointer-events-auto {
|
|
2000
2045
|
pointer-events: auto;
|
|
2001
2046
|
}
|
|
@@ -2225,6 +2270,9 @@ th > .kanuni-pivot-field-chip > .kanuni-pivot-field-chip-actions {
|
|
|
2225
2270
|
.kanuni-pivot-root .flex-col {
|
|
2226
2271
|
flex-direction: column;
|
|
2227
2272
|
}
|
|
2273
|
+
.kanuni-pivot-root .flex-wrap {
|
|
2274
|
+
flex-wrap: wrap;
|
|
2275
|
+
}
|
|
2228
2276
|
.kanuni-pivot-root .items-center {
|
|
2229
2277
|
align-items: center;
|
|
2230
2278
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kanunilabs/pivotgrid-react",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.6",
|
|
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.6"
|
|
69
69
|
},
|
|
70
70
|
"devDependencies": {
|
|
71
71
|
"@tailwindcss/postcss": "^4.3.0",
|