@kanunilabs/pivotgrid-react 1.8.3 → 1.8.5
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 +3 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +2 -2
- package/dist/styles.css +88 -12
- package/package.json +2 -2
package/dist/styles.css
CHANGED
|
@@ -282,34 +282,40 @@
|
|
|
282
282
|
.pivot-bg-surface { background-color: var(--pivot-surface); }
|
|
283
283
|
.pivot-bg-primary { background-color: var(--pivot-primary); color: var(--pivot-primary-foreground); }
|
|
284
284
|
|
|
285
|
-
/* Custom Scrollbar for Pivot
|
|
286
|
-
.pivot-
|
|
287
|
-
|
|
285
|
+
/* Custom Scrollbar for Pivot.
|
|
286
|
+
`layout.scrollbarStyle: 'native'` (B.70) puts `kanuni-pivot-native-scrollbar` on the
|
|
287
|
+
pivot's root and every rule below steps aside. It has to be ABSENCE, not an
|
|
288
|
+
override: `scrollbar-width`, `scrollbar-color` or any ::-webkit-scrollbar
|
|
289
|
+
rule, even set to `auto`/`initial`, makes Chrome drop the classic bar for the
|
|
290
|
+
thin one. `:where()` keeps the specificity of the plain selector, so an app's
|
|
291
|
+
own override of these rules still wins as before. */
|
|
292
|
+
.pivot-custom-scrollbar:not(:where(.kanuni-pivot-native-scrollbar *)),
|
|
293
|
+
.kanuni-pivot-root .custom-scrollbar:not(:where(.kanuni-pivot-native-scrollbar *)) {
|
|
288
294
|
scrollbar-width: thin;
|
|
289
295
|
scrollbar-color: color-mix(in srgb, var(--pivot-border) 80%, transparent) transparent;
|
|
290
296
|
}
|
|
291
297
|
|
|
292
|
-
.pivot-custom-scrollbar::-webkit-scrollbar,
|
|
293
|
-
.kanuni-pivot-root .custom-scrollbar::-webkit-scrollbar {
|
|
298
|
+
.pivot-custom-scrollbar:not(:where(.kanuni-pivot-native-scrollbar *))::-webkit-scrollbar,
|
|
299
|
+
.kanuni-pivot-root .custom-scrollbar:not(:where(.kanuni-pivot-native-scrollbar *))::-webkit-scrollbar {
|
|
294
300
|
width: 8px;
|
|
295
301
|
height: 8px;
|
|
296
302
|
}
|
|
297
303
|
|
|
298
|
-
.pivot-custom-scrollbar::-webkit-scrollbar-track,
|
|
299
|
-
.kanuni-pivot-root .custom-scrollbar::-webkit-scrollbar-track {
|
|
304
|
+
.pivot-custom-scrollbar:not(:where(.kanuni-pivot-native-scrollbar *))::-webkit-scrollbar-track,
|
|
305
|
+
.kanuni-pivot-root .custom-scrollbar:not(:where(.kanuni-pivot-native-scrollbar *))::-webkit-scrollbar-track {
|
|
300
306
|
background: transparent;
|
|
301
307
|
}
|
|
302
308
|
|
|
303
|
-
.pivot-custom-scrollbar::-webkit-scrollbar-thumb,
|
|
304
|
-
.kanuni-pivot-root .custom-scrollbar::-webkit-scrollbar-thumb {
|
|
309
|
+
.pivot-custom-scrollbar:not(:where(.kanuni-pivot-native-scrollbar *))::-webkit-scrollbar-thumb,
|
|
310
|
+
.kanuni-pivot-root .custom-scrollbar:not(:where(.kanuni-pivot-native-scrollbar *))::-webkit-scrollbar-thumb {
|
|
305
311
|
background-color: color-mix(in srgb, var(--pivot-border) 80%, transparent);
|
|
306
312
|
border-radius: var(--pivot-radius-full);
|
|
307
313
|
border: 2px solid transparent;
|
|
308
314
|
background-clip: padding-box;
|
|
309
315
|
}
|
|
310
316
|
|
|
311
|
-
.pivot-custom-scrollbar::-webkit-scrollbar-thumb:hover,
|
|
312
|
-
.kanuni-pivot-root .custom-scrollbar::-webkit-scrollbar-thumb:hover {
|
|
317
|
+
.pivot-custom-scrollbar:not(:where(.kanuni-pivot-native-scrollbar *))::-webkit-scrollbar-thumb:hover,
|
|
318
|
+
.kanuni-pivot-root .custom-scrollbar:not(:where(.kanuni-pivot-native-scrollbar *))::-webkit-scrollbar-thumb:hover {
|
|
313
319
|
background-color: var(--pivot-text-muted);
|
|
314
320
|
}
|
|
315
321
|
|
|
@@ -1194,6 +1200,10 @@
|
|
|
1194
1200
|
anywhere, so the whole chip claims it; a CHOOSER chip drags only from its
|
|
1195
1201
|
grip and lives in a long scrollable list, so only the grip does.
|
|
1196
1202
|
|
|
1203
|
+
Since B.61 the plain JS chips follow the React pattern below (they carry
|
|
1204
|
+
data-touch-hold too, and a non-passive touchmove cancels the pan once a
|
|
1205
|
+
hold has begun a drag): the capped strips must scroll under a finger.
|
|
1206
|
+
|
|
1197
1207
|
The React renderer drags on TOUCH events after the same hold (Tekax
|
|
1198
1208
|
B.35). Its sensor cancels the hold when the finger moves first and
|
|
1199
1209
|
prevents the default of every touchmove after it, so a chip can let the
|
|
@@ -1395,6 +1405,21 @@
|
|
|
1395
1405
|
color: var(--pivot-danger);
|
|
1396
1406
|
background-color: color-mix(in srgb, var(--pivot-danger) 10%, transparent);
|
|
1397
1407
|
}
|
|
1408
|
+
/* B.64 (plain JS): `layout.rowHeaderOverflow: 'scroll'` keeps the row-header
|
|
1409
|
+
widths and does not pin them; their sticky offset goes, the table scrolls
|
|
1410
|
+
sideways as a whole. Top stickiness (the header rows) is untouched. */
|
|
1411
|
+
.kanuni-pivot-rowheaders-scroll .kanuni-pivot-table .kanuni-pivot-rh-sticky {
|
|
1412
|
+
inset-inline-start: auto !important;
|
|
1413
|
+
}
|
|
1414
|
+
|
|
1415
|
+
/* B.62: `layout.showSummaryBadge: false` puts this class on the pivot's root. */
|
|
1416
|
+
.kanuni-pivot-no-summary-badge .kanuni-pivot-chip-badge {
|
|
1417
|
+
display: none;
|
|
1418
|
+
}
|
|
1419
|
+
/* B.62 addendum: `layout.showChipRemove: false` puts this class on the pivot's root. */
|
|
1420
|
+
.kanuni-pivot-no-chip-remove .kanuni-pivot-chip-remove {
|
|
1421
|
+
display: none;
|
|
1422
|
+
}
|
|
1398
1423
|
/* A capped strip scrolls inside itself; the page does not take over at its ends. */
|
|
1399
1424
|
.kanuni-pivot-area-content {
|
|
1400
1425
|
overscroll-behavior-y: contain;
|
|
@@ -1410,6 +1435,56 @@
|
|
|
1410
1435
|
align-content: flex-start;
|
|
1411
1436
|
}
|
|
1412
1437
|
|
|
1438
|
+
/* B.61: on a phone the filter strip must leave the data its room. With 8-10
|
|
1439
|
+
filter chips the strip filled the whole 400-500px pivot and the first data
|
|
1440
|
+
row sat ~150px outside the box. At 768px and below the strip takes at most
|
|
1441
|
+
30% of the pivot's height and scrolls inside itself past that; this holds
|
|
1442
|
+
WITH `layout.filterAreaMaxRows` set (a smaller cap still wins; a larger one
|
|
1443
|
+
stops at 30%). Percent of a pivot whose box has no height is ignored, and
|
|
1444
|
+
then the pivot is as tall as its contents anyway.
|
|
1445
|
+
|
|
1446
|
+
B.72: "768px" is the PIVOT'S OWN width (a container query on the wrapper), not
|
|
1447
|
+
the window's. Zoomed in on a desktop the window stays 1280 wide while the
|
|
1448
|
+
pivot's box shrinks to ~640px of layout; a media query never saw that, and
|
|
1449
|
+
the strip took the box. `inline-size` only: the width may not depend on the
|
|
1450
|
+
content (the wrapper is 100% wide in both renderers), the height does. */
|
|
1451
|
+
.kanuni-pivot-wrapper {
|
|
1452
|
+
container: kanuni-pivot / inline-size;
|
|
1453
|
+
}
|
|
1454
|
+
@container kanuni-pivot (max-width: 768px) {
|
|
1455
|
+
.kanuni-pivot-filter-strip {
|
|
1456
|
+
box-sizing: border-box;
|
|
1457
|
+
max-height: 30%;
|
|
1458
|
+
min-height: 0;
|
|
1459
|
+
overflow: hidden;
|
|
1460
|
+
}
|
|
1461
|
+
.kanuni-pivot-filter-strip > .pivot-flex {
|
|
1462
|
+
flex: 1 1 auto;
|
|
1463
|
+
min-height: 0;
|
|
1464
|
+
}
|
|
1465
|
+
.kanuni-pivot-filter-strip .kanuni-pivot-area-dropzone {
|
|
1466
|
+
min-height: 0;
|
|
1467
|
+
}
|
|
1468
|
+
.kanuni-pivot-filter-strip .kanuni-pivot-area-content {
|
|
1469
|
+
min-height: 0;
|
|
1470
|
+
overflow-y: auto;
|
|
1471
|
+
}
|
|
1472
|
+
/* B.61 round 2: the Values and Columns zones are part of the sticky header
|
|
1473
|
+
and, stacked touch chips, grew to ~150px: with the strip and the column
|
|
1474
|
+
headers the first data row was left BELOW the scroll pane's visible part
|
|
1475
|
+
(iPhone 15 / Pixel 7, 395-450px pivot). A fixed cap, not a percent: their
|
|
1476
|
+
parent is a table cell, whose height is not definite. They scroll inside. */
|
|
1477
|
+
.kanuni-pivot-table thead .kanuni-pivot-area-dropzone {
|
|
1478
|
+
max-height: 88px;
|
|
1479
|
+
min-height: 0;
|
|
1480
|
+
}
|
|
1481
|
+
.kanuni-pivot-table thead .kanuni-pivot-area-content {
|
|
1482
|
+
min-height: 0;
|
|
1483
|
+
overflow-y: auto;
|
|
1484
|
+
overscroll-behavior-y: contain;
|
|
1485
|
+
}
|
|
1486
|
+
}
|
|
1487
|
+
|
|
1413
1488
|
.kanuni-pivot-field-chip {
|
|
1414
1489
|
display: flex;
|
|
1415
1490
|
align-items: center;
|
|
@@ -1448,7 +1523,8 @@
|
|
|
1448
1523
|
display: flex;
|
|
1449
1524
|
align-items: center;
|
|
1450
1525
|
gap: 2px;
|
|
1451
|
-
|
|
1526
|
+
/* The space between the caption and the filter icon: `--pivot-chip-filter-gap` (B.62 addendum). */
|
|
1527
|
+
margin-left: var(--pivot-chip-filter-gap, 4px);
|
|
1452
1528
|
opacity: 0;
|
|
1453
1529
|
transition: opacity 0.2s;
|
|
1454
1530
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kanunilabs/pivotgrid-react",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.5",
|
|
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.5"
|
|
69
69
|
},
|
|
70
70
|
"devDependencies": {
|
|
71
71
|
"@tailwindcss/postcss": "^4.3.0",
|