@kanunilabs/pivotgrid-react 1.8.1 → 1.8.2

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
@@ -507,6 +507,15 @@
507
507
  .kanuni-pivot-density-comfortable .kanuni-pivot-table .kanuni-pivot-header-cell {
508
508
  line-height: 27px;
509
509
  }
510
+ /* `touch` (B.22): 45px rows and headers (pivotRowHeight) — every cell, header
511
+ +/- and funnel is a full 44px target inside the cell's 1px border. For a
512
+ touch screen; the app chooses it. */
513
+ .kanuni-pivot-density-touch .kanuni-pivot-table .kanuni-pivot-cell {
514
+ line-height: 44px;
515
+ }
516
+ .kanuni-pivot-density-touch .kanuni-pivot-table .kanuni-pivot-header-cell {
517
+ line-height: 36px;
518
+ }
510
519
  /* The field chips in the header corner inherit the header cell's line
511
520
  height, so the rules above would resize them — and, chips having
512
521
  `transition: all`, animate them for 0.2s after a switch. The pane-balancing
@@ -514,7 +523,8 @@
514
523
  panes ended 0.06-0.3px apart (tree layout, 2026-10-11; exact with this
515
524
  rule). The chips keep their normal metrics in every density. */
516
525
  .kanuni-pivot-density-compact .kanuni-pivot-table .kanuni-pivot-header-cell .kanuni-pivot-field-chip,
517
- .kanuni-pivot-density-comfortable .kanuni-pivot-table .kanuni-pivot-header-cell .kanuni-pivot-field-chip {
526
+ .kanuni-pivot-density-comfortable .kanuni-pivot-table .kanuni-pivot-header-cell .kanuni-pivot-field-chip,
527
+ .kanuni-pivot-density-touch .kanuni-pivot-table .kanuni-pivot-header-cell .kanuni-pivot-field-chip {
518
528
  line-height: 19px;
519
529
  }
520
530
 
@@ -1099,40 +1109,74 @@
1099
1109
  compact chrome, a tablet in landscape still gets targets a finger can hit.
1100
1110
  The footer has no fixed height, so it simply grows. */
1101
1111
  @media (pointer: coarse) {
1112
+ /* 44px (Tekax B.22, 2026-11-14): their acceptance rule for every screen; the
1113
+ first pass stopped at 40. */
1102
1114
  .kanuni-pivot-footer-btn {
1103
- min-width: 40px;
1104
- min-height: 40px;
1115
+ min-width: 44px;
1116
+ min-height: 44px;
1105
1117
  }
1106
1118
  .kanuni-pivot-dropdown-item {
1107
- min-height: 40px;
1119
+ min-height: 44px;
1108
1120
  }
1109
1121
  /* The saved-views button sits beside the footer icons and stayed 21px tall
1110
1122
  because its size comes from padding + font size, not from the icon rule. */
1111
1123
  .kanuni-pivot-report-btn {
1112
- min-height: 40px;
1124
+ min-height: 44px;
1113
1125
  }
1114
1126
  /* The field chips' own controls were the worst of the lot: 12x12 (an 8px
1115
1127
  icon in 2px padding), sixteen of them on the playground at 375px.
1116
1128
 
1117
- They are NOT blown up to 40x40 like the footer. The two controls sit side
1118
- by side inside one chip and one of them DELETES the field, so equal-sized
1119
- 40px targets would overlap and a mis-tap would be destructive. Instead the
1120
- visual target reaches the WCAG 2.5.8 AA minimum (24x24) and the hit area
1121
- is extended VERTICALLY only — 24x40, no horizontal bleed into the
1122
- neighbour (same ::after technique as the DataGrid filter button). */
1129
+ 44x44 real boxes (B.22). The first pass kept them 24x24 with a vertical
1130
+ ::after, because an ENLARGED HIT AREA on two side-by-side controls — one of
1131
+ which deletes the field — would overlap. Real boxes do not: each 44px
1132
+ control is its own 44px of chip, so the chip grows instead and a tap
1133
+ cannot land on the neighbour. */
1123
1134
  .kanuni-pivot-chip-btn {
1124
- min-width: 24px;
1125
- min-height: 24px;
1135
+ min-width: 44px;
1136
+ min-height: 44px;
1126
1137
  padding: 6px;
1127
1138
  display: inline-flex;
1128
1139
  align-items: center;
1129
1140
  justify-content: center;
1141
+ }
1142
+ /* The column header's own controls — the +/- box and the filter funnel —
1143
+ are 10-12px glyphs between the header's text: a 44px hit area centred on
1144
+ each, without changing the header's layout. The funnel is shown: there is
1145
+ no hover to reveal it on a touch screen. */
1146
+ .kanuni-pivot-table th .kanuni-pivot-expand-icon,
1147
+ .kanuni-pivot-head-filter {
1130
1148
  position: relative;
1149
+ z-index: 1; /* over the header text beside it */
1131
1150
  }
1132
- .kanuni-pivot-chip-btn::after {
1151
+ .kanuni-pivot-table th .kanuni-pivot-expand-icon::after,
1152
+ .kanuni-pivot-head-filter::after {
1133
1153
  content: '';
1134
1154
  position: absolute;
1135
- inset: -8px 0;
1155
+ left: 50%;
1156
+ top: 50%;
1157
+ width: 44px;
1158
+ height: 44px;
1159
+ transform: translate(-50%, -50%);
1160
+ }
1161
+ .kanuni-pivot-head-filter.opacity-0 {
1162
+ opacity: 0.7;
1163
+ }
1164
+ /* At the cell's end edge: beside a short label ("2025") its 44px area lay
1165
+ over the +/- box's, two targets under one finger. */
1166
+ .kanuni-pivot-head-filter {
1167
+ margin-inline-start: auto;
1168
+ }
1169
+ /* …and, at that edge, its area grows inward, not into the next cell. */
1170
+ .kanuni-pivot-head-filter::after {
1171
+ left: auto;
1172
+ inset-inline-end: -3px;
1173
+ transform: translateY(-50%);
1174
+ }
1175
+ /* The +/- box sits at its cell's start edge, so a centred area would hang
1176
+ into the previous cell and be clipped there: it grows to the right. */
1177
+ .kanuni-pivot-table th .kanuni-pivot-expand-icon::after {
1178
+ left: -4px;
1179
+ transform: translateY(-50%);
1136
1180
  }
1137
1181
 
1138
1182
  /* Touch drag needs the gesture, and the browser claims it first.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kanunilabs/pivotgrid-react",
3
- "version": "1.8.1",
3
+ "version": "1.8.2",
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.1"
68
+ "@kanunilabs/pivotgrid-core": "1.11.2"
69
69
  },
70
70
  "devDependencies": {
71
71
  "@tailwindcss/postcss": "^4.3.0",