@kanunilabs/pivotgrid-react 1.8.6 → 1.8.7

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/styles.css CHANGED
@@ -1433,6 +1433,37 @@
1433
1433
  flex-shrink: 0;
1434
1434
  }
1435
1435
 
1436
+ /* B.86: `layout.areaChipOverflow: 'shrink'` adds the class below to the one above (one line, scrolls only as a last
1437
+ resort). The chips shrink in proportion down to `--pivot-chip-shrink-min` (56px) instead of keeping their size; the
1438
+ caption is the part that gives (clipped, never an ellipsis, the full name is the chip's tooltip); the sort arrow,
1439
+ badge and buttons keep their size until the chip is at its floor. The ghost end zone gives up its 40px so it does not force the scroll. */
1440
+ .kanuni-pivot-area-chips-shrink .kanuni-pivot-table thead .kanuni-pivot-area-content > .kanuni-pivot-field-chip {
1441
+ flex: 0 1 auto;
1442
+ min-width: var(--pivot-chip-shrink-min, 56px);
1443
+ /* At the floor the badge and buttons are wider than the chip: they are cut off at its edge (and so add nothing to the
1444
+ line's scroll width), except for 8px, room for the drop mark that sits just outside the chip. */
1445
+ position: relative;
1446
+ overflow: clip;
1447
+ overflow-clip-margin: 8px;
1448
+ }
1449
+ .kanuni-pivot-area-chips-shrink .kanuni-pivot-table thead .kanuni-pivot-area-content > .kanuni-pivot-field-chip > .pivot-truncate {
1450
+ flex: 0 1 auto;
1451
+ min-width: 0;
1452
+ overflow: hidden;
1453
+ text-overflow: clip;
1454
+ }
1455
+ .kanuni-pivot-area-chips-shrink .kanuni-pivot-table thead .kanuni-pivot-area-content > :not(.kanuni-pivot-field-chip) {
1456
+ min-width: 12px !important;
1457
+ }
1458
+ .kanuni-pivot-area-chips-shrink .kanuni-pivot-table thead .kanuni-pivot-area-content > .kanuni-pivot-field-chip > :not(.pivot-truncate) {
1459
+ flex-shrink: 0;
1460
+ }
1461
+ @media (pointer: coarse) {
1462
+ .kanuni-pivot-area-chips-shrink .kanuni-pivot-table thead .kanuni-pivot-area-content > .kanuni-pivot-field-chip {
1463
+ min-width: max(var(--pivot-chip-shrink-min, 56px), 44px);
1464
+ }
1465
+ }
1466
+
1436
1467
  /* B.62: `layout.showSummaryBadge: false` puts this class on the pivot's root. */
1437
1468
  .kanuni-pivot-no-summary-badge .kanuni-pivot-chip-badge {
1438
1469
  display: none;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kanunilabs/pivotgrid-react",
3
- "version": "1.8.6",
3
+ "version": "1.8.7",
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.6"
68
+ "@kanunilabs/pivotgrid-core": "1.11.7"
69
69
  },
70
70
  "devDependencies": {
71
71
  "@tailwindcss/postcss": "^4.3.0",