pivotkit-react 0.6.1 → 0.8.0

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.
Files changed (62) hide show
  1. package/CHANGELOG.md +212 -1
  2. package/README.md +33 -15
  3. package/dist/chunks/{chunk-JMRTIOX4.js → chunk-2N2UGSIG.js} +7 -0
  4. package/dist/chunks/{chunk-ZK5RVCHP.js → chunk-BHHIZHUE.js} +1 -1
  5. package/dist/chunks/{chunk-YXLANLGL.js → chunk-GUSQWPTH.js} +56 -3
  6. package/dist/chunks/{chunk-JOWAEZAD.js → chunk-JAOOFDNR.js} +21 -1
  7. package/dist/chunks/{chunk-E6M57YLL.js → chunk-MU5BTKSY.js} +7 -0
  8. package/dist/chunks/{chunk-TR2HROIK.js → chunk-RNQ32FCN.js} +66 -5
  9. package/dist/chunks/{chunk-XN5HNKJ2.js → chunk-SJCG4I57.js} +98 -33
  10. package/dist/chunks/{chunk-3LDE2GPG.js → chunk-VMJMDP7C.js} +372 -33
  11. package/dist/chunks/{report-run-BZBFOMPF.js → report-run-HU4WPOB7.js} +3 -1
  12. package/dist/chunks/{unused-texts-Y4R67XSN.js → unused-texts-LRYVWFFN.js} +1 -1
  13. package/dist/chunks/{unused-texts-de-6YVPTNVS.js → unused-texts-de-GB3IWWEM.js} +1 -1
  14. package/dist/echarts.js +426 -35
  15. package/dist/import-ui.js +3 -3
  16. package/dist/index.js +769 -435
  17. package/dist/labels.js +6 -6
  18. package/dist/menu-texts-de.js +1 -1
  19. package/dist/menus.js +1133 -542
  20. package/dist/styles.css +271 -158
  21. package/package.json +8 -4
  22. package/styles.css.d.ts +3 -0
  23. package/types/PivotReport.d.ts +6 -0
  24. package/types/add-menu.d.ts +48 -0
  25. package/types/chart-colors.d.ts +8 -0
  26. package/types/chart-decorate.d.ts +66 -3
  27. package/types/chart-legend.d.ts +176 -0
  28. package/types/chart-summary.d.ts +8 -3
  29. package/types/chart-tooltip.d.ts +159 -17
  30. package/types/chart.d.ts +21 -3
  31. package/types/date-context.d.ts +30 -0
  32. package/types/drill-panel.d.ts +4 -2
  33. package/types/echarts.d.ts +7 -3
  34. package/types/export-run.d.ts +19 -14
  35. package/types/export-scope.d.ts +13 -2
  36. package/types/field-info.d.ts +12 -0
  37. package/types/files.d.ts +14 -0
  38. package/types/filter.d.ts +18 -0
  39. package/types/group-context.d.ts +20 -0
  40. package/types/index.d.ts +35 -6
  41. package/types/label-room.d.ts +13 -0
  42. package/types/labels.d.ts +85 -16
  43. package/types/lazy-menus.d.ts +2 -2
  44. package/types/levels.d.ts +16 -7
  45. package/types/menu-labels.d.ts +67 -1
  46. package/types/menu-ops.d.ts +10 -0
  47. package/types/menu-topics.d.ts +110 -21
  48. package/types/menus.d.ts +3 -2
  49. package/types/names.d.ts +32 -3
  50. package/types/overflow.d.ts +18 -30
  51. package/types/print-frame.d.ts +32 -3
  52. package/types/report-run.d.ts +5 -0
  53. package/types/rove.d.ts +10 -0
  54. package/types/theme-tokens.d.ts +17 -0
  55. package/types/toolbar-panels.d.ts +43 -15
  56. package/types/unused-texts.d.ts +7 -0
  57. package/types/use-big-result.d.ts +24 -9
  58. package/types/use-export.d.ts +8 -4
  59. package/types/view-ops.d.ts +19 -8
  60. package/types/view-tabs.d.ts +12 -0
  61. package/types/zones.d.ts +41 -9
  62. package/types/light-tokens.d.ts +0 -16
package/dist/styles.css CHANGED
@@ -30,6 +30,22 @@
30
30
  --pk-row-h: 2.45em;
31
31
  --pk-panel-w: 288px;
32
32
  --pk-rail-w: 40px;
33
+ --pk-section-rule: var(--pk-border);
34
+ --pk-section-space: 4px;
35
+ --pk-section-chevron: 16px;
36
+ --pk-section-title-size: max(15px, 1.07em);
37
+ --pk-section-indent: 26px;
38
+ --pk-section-bg: var(--pk-surface-2);
39
+ --pk-section-pad: 6px;
40
+ --pk-shelf-gap: 4px;
41
+ --pk-shelf-pad: 4px;
42
+ --pk-shelf-min: 17em;
43
+ --pk-chip-gap: 6px;
44
+ --pk-chip-h: 2.2em;
45
+ --pk-add-gap: 12px;
46
+ --pk-add-hover: var(--pk-accent-soft);
47
+ --pk-tab-mark: 3px;
48
+ --pk-tooltip-name-w: 12em;
33
49
  --pk-duration: 180ms;
34
50
  --pk-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
35
51
  --pk-layer-z: 50;
@@ -79,6 +95,7 @@
79
95
  --pk-chart-6: #008300;
80
96
  --pk-chart-7: #6250d6;
81
97
  --pk-chart-8: #e34948;
98
+ --pk-chart-reference: var(--pk-muted);
82
99
  }
83
100
  :where(.pk-root[data-pk-theme=dark]) {
84
101
  color-scheme: dark;
@@ -124,6 +141,7 @@
124
141
  --pk-chart-6: #008300;
125
142
  --pk-chart-7: #9085e9;
126
143
  --pk-chart-8: #e66767;
144
+ --pk-chart-reference: var(--pk-muted);
127
145
  }
128
146
  @media (prefers-reduced-motion: reduce) {
129
147
  :where(.pk-root) {
@@ -615,7 +633,7 @@
615
633
  gap: 0.35em;
616
634
  padding-inline: 0.55em;
617
635
  }
618
- .pk-root[data-pk-size=narrow] .pk-toolbar .pk-caret {
636
+ .pk-root[data-pk-size=narrow] :is(.pk-toolbar, .pk-result-head) .pk-caret {
619
637
  display: none;
620
638
  }
621
639
  .pk-sep {
@@ -664,53 +682,96 @@
664
682
  background: var(--pk-accent);
665
683
  }
666
684
  .pk-zones {
667
- display: grid;
668
- grid-template-columns: repeat(2, minmax(0, 1fr));
669
- gap: 8px;
685
+ display: flex;
686
+ flex-wrap: wrap;
687
+ gap: var(--pk-shelf-gap);
688
+ }
689
+ .pk-zone-section {
690
+ display: flex;
691
+ flex-direction: column;
692
+ gap: var(--pk-section-space);
693
+ padding-block: var(--pk-section-space);
694
+ border-block: 1px solid var(--pk-section-rule);
670
695
  }
671
- .pk-zones-summary {
696
+ .pk-section-row {
697
+ container: pk-section-row / inline-size;
672
698
  display: flex;
673
699
  align-items: center;
674
- gap: 0.4em;
675
- width: 100%;
676
- min-height: max(var(--pk-target), 2.4em);
677
- padding: 0 10px;
678
- border: 1.5px dashed var(--pk-drop-border);
679
- border-radius: var(--pk-radius);
680
- background: var(--pk-surface-2);
700
+ gap: 6px;
701
+ min-width: 0;
702
+ }
703
+ .pk-section-fold {
704
+ display: inline-flex;
705
+ flex: none;
706
+ align-items: center;
707
+ min-height: var(--pk-target);
708
+ padding: 0 6px 0 0;
709
+ border: 0;
710
+ border-radius: var(--pk-radius-sm);
711
+ background: none;
681
712
  color: var(--pk-text);
682
713
  font: inherit;
683
- font-size: var(--pk-small);
684
714
  text-align: start;
715
+ white-space: nowrap;
685
716
  cursor: pointer;
686
- transition: background var(--pk-duration), border-color var(--pk-duration);
687
717
  }
688
- .pk-zones-summary:hover {
689
- border-color: var(--pk-border-strong);
690
- background: var(--pk-surface-3);
691
- }
692
- .pk-zones-summary > svg {
718
+ .pk-section-chevron {
693
719
  flex: none;
720
+ width: var(--pk-section-chevron);
721
+ height: var(--pk-section-chevron);
722
+ margin-inline: calc((var(--pk-section-indent) - var(--pk-section-chevron)) / 2);
694
723
  color: var(--pk-muted);
724
+ transition: transform var(--pk-duration);
725
+ }
726
+ .pk-section-fold[aria-expanded=true] .pk-section-chevron {
727
+ transform: rotate(90deg);
695
728
  }
696
- .pk-zones-summary-text {
729
+ .pk-section-heading {
730
+ font-size: var(--pk-section-title-size);
731
+ font-weight: var(--pk-weight-strong);
732
+ }
733
+ .pk-section-info {
734
+ flex: none;
735
+ }
736
+ .pk-section-sub {
737
+ flex: 1 1 auto;
697
738
  min-width: 0;
698
739
  overflow: hidden;
740
+ color: var(--pk-muted);
741
+ font-size: var(--pk-small);
699
742
  text-overflow: ellipsis;
700
743
  white-space: nowrap;
744
+ cursor: pointer;
701
745
  }
702
746
  .pk-zones-summary-zone {
703
- color: var(--pk-muted);
704
- font-weight: var(--pk-weight-strong);
747
+ color: var(--pk-text);
748
+ font-weight: var(--pk-weight-medium);
749
+ }
750
+ .pk-zone-section .pk-zones {
751
+ margin-left: var(--pk-section-indent);
752
+ padding: var(--pk-section-pad);
753
+ border-radius: var(--pk-radius);
754
+ background: var(--pk-section-bg);
755
+ }
756
+ .pk-zone-section .pk-zone {
757
+ background: var(--pk-surface);
758
+ }
759
+ @container pk-main (width < 400px) {
760
+ .pk-zone-section .pk-zones {
761
+ margin-left: 0;
762
+ padding-inline: calc(var(--pk-section-pad) / 2);
763
+ }
705
764
  }
706
765
  .pk-zone {
707
766
  position: relative;
708
767
  display: flex;
709
- flex-direction: column;
710
- gap: 6px;
711
- min-height: 4.6em;
712
- padding: 8px 10px 10px;
713
- border: 1.5px dashed var(--pk-drop-border);
768
+ flex: 1 1 auto;
769
+ align-items: flex-start;
770
+ gap: var(--pk-chip-gap);
771
+ min-width: min(100%, var(--pk-shelf-min));
772
+ max-width: 100%;
773
+ padding: var(--pk-shelf-pad);
774
+ border: 1.5px dashed transparent;
714
775
  border-radius: var(--pk-radius);
715
776
  background: var(--pk-surface-2);
716
777
  transition:
@@ -719,7 +780,7 @@
719
780
  box-shadow var(--pk-duration);
720
781
  }
721
782
  .pk-zone.pk-dropping {
722
- border-color: color-mix(in srgb, var(--pk-accent) 55%, var(--pk-border));
783
+ border-color: var(--pk-drop-border);
723
784
  }
724
785
  .pk-zone.pk-over {
725
786
  border-style: solid;
@@ -732,26 +793,47 @@
732
793
  }
733
794
  .pk-zone-head {
734
795
  display: flex;
796
+ flex: none;
735
797
  align-items: center;
736
- justify-content: space-between;
737
798
  gap: 0.5em;
738
799
  min-width: 0;
800
+ min-height: var(--pk-chip-h);
739
801
  }
740
- .pk-zone-cols .pk-zone-head {
741
- container: pk-zone-head / inline-size;
742
- }
743
- .pk-swap {
744
- position: relative;
802
+ .pk-zone-add {
745
803
  display: inline-flex;
804
+ flex: none;
746
805
  align-items: center;
747
- justify-content: center;
748
- gap: 0.35em;
749
- min-width: var(--pk-target);
806
+ gap: 0.25em;
750
807
  min-height: var(--pk-target);
808
+ margin-inline-start: calc(var(--pk-add-gap) - 0.5em);
809
+ padding: 0 0.45em 0 0.3em;
810
+ border: 0;
811
+ border-radius: var(--pk-radius-sm);
812
+ background: none;
813
+ color: var(--pk-accent);
814
+ font: inherit;
815
+ font-size: var(--pk-small);
816
+ font-weight: var(--pk-weight-strong);
817
+ white-space: nowrap;
818
+ cursor: pointer;
819
+ transition: background var(--pk-duration);
820
+ }
821
+ .pk-zone-add:hover,
822
+ .pk-zone-add[aria-expanded=true] {
823
+ background: var(--pk-add-hover);
824
+ }
825
+ .pk-zone-add .pk-caret {
826
+ display: none;
827
+ }
828
+ .pk-btn.pk-swap {
829
+ flex: none;
830
+ min-width: var(--pk-target);
831
+ color: var(--pk-accent);
751
832
  font-size: var(--pk-small);
833
+ font-weight: var(--pk-weight-strong);
752
834
  white-space: nowrap;
753
835
  }
754
- @container pk-zone-head (width < 20em) {
836
+ @container pk-section-row (width < 36em) {
755
837
  .pk-swap .pk-btn-text {
756
838
  position: absolute;
757
839
  width: 1px;
@@ -761,10 +843,8 @@
761
843
  white-space: nowrap;
762
844
  }
763
845
  }
764
- .pk-swap:disabled {
846
+ .pk-btn.pk-swap:disabled {
765
847
  color: var(--pk-muted);
766
- cursor: default;
767
- text-decoration: none;
768
848
  }
769
849
  .pk-zone-title {
770
850
  display: flex;
@@ -778,9 +858,13 @@
778
858
  }
779
859
  .pk-chips {
780
860
  display: flex;
861
+ flex: 1 1 auto;
781
862
  flex-wrap: wrap;
782
- gap: 6px;
783
- min-height: 2.2em;
863
+ align-items: center;
864
+ gap: var(--pk-chip-gap);
865
+ min-width: 0;
866
+ min-height: var(--pk-chip-h);
867
+ margin: 0;
784
868
  padding: 0;
785
869
  list-style: none;
786
870
  }
@@ -794,7 +878,7 @@
794
878
  align-items: center;
795
879
  gap: 4px;
796
880
  max-width: 100%;
797
- height: 2.2em;
881
+ height: var(--pk-chip-h);
798
882
  padding: 0 2px 0 3px;
799
883
  border: 1px solid var(--pk-border);
800
884
  border-radius: 999px;
@@ -952,10 +1036,34 @@
952
1036
  width: 420px;
953
1037
  max-width: min(420px, calc(100vw - 16px));
954
1038
  }
955
- .pk-subtitle {
956
- padding: 4px 8px 2px;
1039
+ .pk-tag {
1040
+ display: inline-flex;
1041
+ flex: none;
1042
+ align-items: center;
1043
+ gap: 0.25em;
1044
+ margin-left: auto;
1045
+ padding: 0 0.45em;
1046
+ border-radius: 999px;
1047
+ background: var(--pk-surface-3);
957
1048
  color: var(--pk-muted);
958
1049
  font-size: var(--pk-small);
1050
+ font-weight: var(--pk-weight-normal);
1051
+ white-space: nowrap;
1052
+ }
1053
+ .pk-tag + .pk-tag {
1054
+ margin-left: 0.3em;
1055
+ }
1056
+ .pk-add-type-string .pk-option-icon {
1057
+ color: var(--pk-type-string);
1058
+ }
1059
+ .pk-add-type-number .pk-option-icon {
1060
+ color: var(--pk-type-number);
1061
+ }
1062
+ .pk-add-type-date .pk-option-icon {
1063
+ color: var(--pk-type-date);
1064
+ }
1065
+ .pk-add-type-boolean .pk-option-icon {
1066
+ color: var(--pk-type-boolean);
959
1067
  }
960
1068
  .pk-badge-condition > :not(.pk-badge-cut) {
961
1069
  flex: none;
@@ -1018,16 +1126,6 @@
1018
1126
  margin-top: 2px;
1019
1127
  padding-top: 6px;
1020
1128
  }
1021
- .pk-subsection {
1022
- display: flex;
1023
- flex-direction: column;
1024
- gap: 1px;
1025
- }
1026
- .pk-subsection + .pk-subsection {
1027
- border-top: 1px dashed var(--pk-rule);
1028
- margin-top: 4px;
1029
- padding-top: 4px;
1030
- }
1031
1129
  .pk-section-head {
1032
1130
  display: flex;
1033
1131
  align-items: center;
@@ -1048,15 +1146,10 @@
1048
1146
  gap: 2px;
1049
1147
  min-width: 0;
1050
1148
  }
1051
- .pk-setting-row > .pk-option,
1052
- .pk-setting-row > .pk-switch {
1149
+ .pk-setting-row > .pk-option {
1053
1150
  flex: 1;
1054
1151
  min-width: 0;
1055
1152
  }
1056
- .pk-subtitle.pk-setting-row {
1057
- padding-top: 0;
1058
- padding-bottom: 0;
1059
- }
1060
1153
  .pk-choice-grid {
1061
1154
  display: grid;
1062
1155
  grid-template-columns: repeat(2, minmax(0, 1fr));
@@ -1241,6 +1334,11 @@
1241
1334
  margin: 4px 0;
1242
1335
  border-top: 1px solid var(--pk-border);
1243
1336
  }
1337
+ .pk-level-sep + .pk-section {
1338
+ border-top: 0;
1339
+ margin-top: 0;
1340
+ padding-top: 4px;
1341
+ }
1244
1342
  .pk-topic-row .pk-option-text {
1245
1343
  flex: none;
1246
1344
  margin-right: auto;
@@ -1777,60 +1875,6 @@
1777
1875
  flex-basis: 100%;
1778
1876
  margin: 0;
1779
1877
  }
1780
- .pk-switch {
1781
- display: flex;
1782
- align-items: center;
1783
- gap: 0.7em;
1784
- min-height: 2.2em;
1785
- padding: 0 0.6em;
1786
- border-radius: var(--pk-radius-sm);
1787
- cursor: pointer;
1788
- }
1789
- .pk-switch:hover {
1790
- background: var(--pk-surface-3);
1791
- }
1792
- .pk-switch-text {
1793
- display: flex;
1794
- flex-direction: column;
1795
- min-width: 0;
1796
- }
1797
- .pk-switch input {
1798
- position: absolute;
1799
- opacity: 0;
1800
- width: 1px;
1801
- height: 1px;
1802
- }
1803
- .pk-switch-track {
1804
- position: relative;
1805
- width: 2.1em;
1806
- height: 1.2em;
1807
- flex: none;
1808
- border-radius: 999px;
1809
- background: var(--pk-border-strong);
1810
- transition: background var(--pk-duration);
1811
- }
1812
- .pk-switch-track::after {
1813
- content: "";
1814
- position: absolute;
1815
- top: 0.15em;
1816
- left: 0.15em;
1817
- width: 0.9em;
1818
- height: 0.9em;
1819
- border-radius: 50%;
1820
- background: var(--pk-knob);
1821
- box-shadow: var(--pk-shadow-sm);
1822
- transition: transform var(--pk-duration) var(--pk-ease);
1823
- }
1824
- .pk-switch input:checked + .pk-switch-track {
1825
- background: var(--pk-accent);
1826
- }
1827
- .pk-switch input:checked + .pk-switch-track::after {
1828
- transform: translateX(0.9em);
1829
- }
1830
- .pk-switch input:focus-visible + .pk-switch-track {
1831
- outline: var(--pk-focus-width) solid var(--pk-focus);
1832
- outline-offset: var(--pk-focus-offset);
1833
- }
1834
1878
  .pk-filter {
1835
1879
  display: flex;
1836
1880
  flex: 1 1 auto;
@@ -1939,6 +1983,9 @@
1939
1983
  padding: 0;
1940
1984
  border: 0;
1941
1985
  }
1986
+ .pk-condition.pk-rules {
1987
+ flex-wrap: nowrap;
1988
+ }
1942
1989
  .pk-condition legend {
1943
1990
  margin-bottom: 4px;
1944
1991
  color: var(--pk-muted);
@@ -1991,10 +2038,67 @@
1991
2038
  }
1992
2039
  .pk-result-head {
1993
2040
  display: flex;
1994
- align-items: center;
2041
+ align-items: flex-end;
1995
2042
  gap: 6px;
1996
2043
  min-width: 0;
1997
2044
  margin-bottom: -4px;
2045
+ border-bottom: 1px solid var(--pk-border);
2046
+ }
2047
+ .pk-result-head > .pk-btn {
2048
+ margin-bottom: 5px;
2049
+ }
2050
+ .pk-tabs {
2051
+ display: flex;
2052
+ flex: none;
2053
+ align-items: flex-end;
2054
+ gap: 4px;
2055
+ }
2056
+ .pk-tab {
2057
+ position: relative;
2058
+ top: 1px;
2059
+ display: inline-flex;
2060
+ align-items: center;
2061
+ gap: 0.45em;
2062
+ min-height: max(var(--pk-target), 2.35em);
2063
+ padding: 0 1.1em;
2064
+ border: 1px solid transparent;
2065
+ border-bottom: 0;
2066
+ border-radius: var(--pk-radius-sm) var(--pk-radius-sm) 0 0;
2067
+ background: none;
2068
+ color: var(--pk-muted);
2069
+ font: inherit;
2070
+ font-weight: var(--pk-weight-strong);
2071
+ cursor: pointer;
2072
+ transition: color var(--pk-duration);
2073
+ }
2074
+ .pk-tab:hover {
2075
+ color: var(--pk-text);
2076
+ }
2077
+ .pk-tab[aria-selected=true] {
2078
+ border-color: var(--pk-border);
2079
+ background: var(--pk-surface);
2080
+ color: var(--pk-accent);
2081
+ }
2082
+ .pk-tab[aria-selected=true]::after {
2083
+ position: absolute;
2084
+ top: -1px;
2085
+ right: -1px;
2086
+ left: -1px;
2087
+ height: var(--pk-tab-mark);
2088
+ border-radius: var(--pk-radius-xs) var(--pk-radius-xs) 0 0;
2089
+ background: var(--pk-accent);
2090
+ content: "";
2091
+ }
2092
+ .pk-root[data-pk-size=narrow] .pk-tab {
2093
+ gap: 0.35em;
2094
+ padding: 0 0.6em;
2095
+ }
2096
+ .pk-root[data-pk-size=narrow] .pk-result-head {
2097
+ gap: 4px;
2098
+ }
2099
+ .pk-root[data-pk-size=narrow] .pk-result-head > .pk-btn {
2100
+ gap: 0.35em;
2101
+ padding-inline: 0.5em;
1998
2102
  }
1999
2103
  .pk-result-head .pk-btn.pk-small-btn {
2000
2104
  height: max(var(--pk-target), 1.9em);
@@ -2010,7 +2114,7 @@
2010
2114
  .pk-root[data-pk-enlarged] .pk-layout {
2011
2115
  grid-template-columns: minmax(0, 1fr);
2012
2116
  }
2013
- .pk-root[data-pk-enlarged] :is(.pk-panel-slot, .pk-zones, .pk-zones-summary, .pk-tips, .pk-issues, .pk-drawer-scrim) {
2117
+ .pk-root[data-pk-enlarged] :is(.pk-panel-slot, .pk-zone-section, .pk-tips, .pk-issues, .pk-drawer-scrim) {
2014
2118
  display: none;
2015
2119
  }
2016
2120
  .pk-result {
@@ -2033,6 +2137,9 @@
2033
2137
  color: var(--pk-muted);
2034
2138
  font-size: var(--pk-small);
2035
2139
  }
2140
+ .pk-row-count {
2141
+ white-space: nowrap;
2142
+ }
2036
2143
  .pk-row-label {
2037
2144
  min-width: 0;
2038
2145
  color: var(--pk-text);
@@ -2054,6 +2161,7 @@
2054
2161
  color: var(--pk-danger);
2055
2162
  }
2056
2163
  .pk-table-wrap {
2164
+ scrollbar-gutter: stable;
2057
2165
  position: relative;
2058
2166
  flex: 1;
2059
2167
  min-width: 0;
@@ -2126,21 +2234,30 @@
2126
2234
  gap: 0.25em;
2127
2235
  }
2128
2236
  .pk-table :is(tbody th.pk-rowHeader, thead th.pk-corner) .pk-th-content {
2129
- width: max-content;
2130
- max-width: max(5.5em, calc(var(--pk-row-share, 40cqi) / var(--pk-row-cols, 1)));
2237
+ width: var(--pk-label-w, max-content);
2238
+ max-width: var(--pk-label-max, max(5.5em, calc(var(--pk-row-share, 40cqi) / var(--pk-row-cols, 1)), var(--pk-row-room, 0px)));
2131
2239
  }
2132
2240
  .pk-table.pk-labels-only {
2133
2241
  --pk-row-share: 85cqi;
2134
2242
  }
2135
2243
  .pk-table thead tr:last-child th.pk-colHeader .pk-th-content {
2136
- width: max-content;
2137
- max-width: max(6em, 30cqi);
2244
+ width: var(--pk-label-w, max-content);
2245
+ max-width: var(--pk-label-max, max(6em, 30cqi));
2138
2246
  }
2139
2247
  .pk-root[data-pk-size=narrow] .pk-table :is(th, td) {
2140
2248
  padding-inline: 0.6em;
2141
2249
  }
2142
2250
  .pk-root[data-pk-size=narrow] .pk-table thead tr:last-child th.pk-colHeader .pk-th-content {
2143
- max-width: max(5em, 22cqi);
2251
+ max-width: var(--pk-label-max, max(5em, 22cqi));
2252
+ }
2253
+ .pk-table[data-pk-labels] {
2254
+ --pk-label-max: none;
2255
+ }
2256
+ .pk-table[data-pk-labels=share] {
2257
+ --pk-label-w: auto;
2258
+ }
2259
+ .pk-table[data-pk-labels=share] thead th {
2260
+ overflow-x: clip;
2144
2261
  }
2145
2262
  .pk-table :is(tbody th.pk-rowHeader, thead th.pk-corner, thead tr:last-child th.pk-colHeader) .pk-th-text {
2146
2263
  min-width: 0;
@@ -2307,6 +2424,13 @@
2307
2424
  flex: 1;
2308
2425
  min-height: 0;
2309
2426
  }
2427
+ .pk-zoom-keys {
2428
+ border-radius: var(--pk-radius-sm);
2429
+ }
2430
+ .pk-zoom-keys:focus-visible {
2431
+ outline: var(--pk-focus-width) solid var(--pk-focus);
2432
+ outline-offset: var(--pk-focus-offset);
2433
+ }
2310
2434
  .pk-chart {
2311
2435
  width: 100%;
2312
2436
  height: 100%;
@@ -2700,32 +2824,6 @@
2700
2824
  visibility: visible;
2701
2825
  transition: transform calc(var(--pk-duration) * 1.4) var(--pk-ease), visibility 0s;
2702
2826
  }
2703
- @container pk-main (width < 640px) {
2704
- .pk-zones {
2705
- grid-template-columns: minmax(0, 1fr);
2706
- gap: 6px;
2707
- }
2708
- .pk-zone {
2709
- flex-direction: row;
2710
- align-items: center;
2711
- min-height: 3em;
2712
- padding: 6px 8px;
2713
- }
2714
- .pk-zone-head {
2715
- width: 6.5em;
2716
- flex: none;
2717
- }
2718
- .pk-zone-cols {
2719
- flex-wrap: wrap;
2720
- }
2721
- .pk-zone-cols .pk-zone-head {
2722
- width: 100%;
2723
- }
2724
- .pk-chips {
2725
- flex: 1;
2726
- min-width: 0;
2727
- }
2728
- }
2729
2827
  @container pk-main (width < 400px) {
2730
2828
  .pk-zone {
2731
2829
  flex-wrap: wrap;
@@ -2733,6 +2831,9 @@
2733
2831
  .pk-zone .pk-zone-head {
2734
2832
  width: 100%;
2735
2833
  }
2834
+ .pk-zone .pk-zone-add {
2835
+ margin-inline-start: auto;
2836
+ }
2736
2837
  }
2737
2838
  .pk-root[data-pk-size=narrow] .pk-main {
2738
2839
  padding: 8px 8px 0;
@@ -2835,9 +2936,6 @@
2835
2936
  .pk-chart-menu {
2836
2937
  width: 340px;
2837
2938
  }
2838
- .pk-chart-menu .pk-switch {
2839
- margin-top: 4px;
2840
- }
2841
2939
  .pk-zone-info {
2842
2940
  margin-left: -0.3em;
2843
2941
  }
@@ -2896,9 +2994,9 @@
2896
2994
  flex: 1;
2897
2995
  }
2898
2996
  .pk-skel-zones {
2899
- display: grid;
2900
- grid-template-columns: repeat(2, minmax(0, 1fr));
2901
- gap: 8px;
2997
+ display: flex;
2998
+ flex-wrap: wrap;
2999
+ gap: var(--pk-shelf-gap);
2902
3000
  }
2903
3001
  .pk-skel-table {
2904
3002
  display: flex;
@@ -2933,7 +3031,9 @@
2933
3031
  width: 9em;
2934
3032
  }
2935
3033
  .pk-skel-zone {
2936
- height: 4.2em;
3034
+ flex: 1 1 calc(50% - var(--pk-shelf-gap));
3035
+ min-width: min(100%, var(--pk-shelf-min));
3036
+ height: calc(var(--pk-chip-h) + 2 * var(--pk-shelf-pad));
2937
3037
  border-radius: var(--pk-radius);
2938
3038
  }
2939
3039
  .pk-skel-cell {
@@ -3011,11 +3111,18 @@
3011
3111
  }
3012
3112
  @media (forced-colors: active) {
3013
3113
  .pk-zone,
3014
- .pk-zones-summary,
3114
+ .pk-section-fold,
3015
3115
  .pk-chip,
3016
3116
  .pk-btn {
3017
3117
  border: 1px solid CanvasText;
3018
3118
  }
3119
+ .pk-tab[aria-selected=true] {
3120
+ border: 2px solid Highlight;
3121
+ border-bottom: 0;
3122
+ }
3123
+ .pk-tab:not([aria-selected=true]) {
3124
+ border-color: Canvas;
3125
+ }
3019
3126
  }
3020
3127
  .pk-toolbar.pk-wrap .pk-sep,
3021
3128
  .pk-toolbar.pk-wrap .pk-grow {
@@ -3086,10 +3193,13 @@
3086
3193
  padding: 4px;
3087
3194
  }
3088
3195
  @media (pointer: coarse) {
3089
- .pk-root :is(.pk-chip-x, .pk-info, .pk-field-menu, .pk-handle, .pk-tip-x, .pk-toast-x, .pk-issues-x, .pk-th-sort) {
3196
+ .pk-root :is(.pk-chip-x, .pk-info, .pk-field-menu, .pk-handle, .pk-tip-x, .pk-toast-x, .pk-issues-x, .pk-th-sort, .pk-zone-add) {
3090
3197
  min-width: var(--pk-target-touch);
3091
3198
  min-height: var(--pk-target-touch);
3092
3199
  }
3200
+ .pk-root :is(.pk-levels .pk-option, .pk-level-back) {
3201
+ min-height: var(--pk-target-touch);
3202
+ }
3093
3203
  .pk-root .pk-field {
3094
3204
  margin-bottom: max(3px, calc(var(--pk-target-touch) - 2.4em));
3095
3205
  }
@@ -3186,6 +3296,9 @@
3186
3296
  padding: 0 8px;
3187
3297
  overflow-wrap: anywhere;
3188
3298
  }
3299
+ .pk-root[data-pk-size=narrow] .pk-chip {
3300
+ gap: 3px;
3301
+ }
3189
3302
  .pk-level-form > .pk-top-shown {
3190
3303
  padding-left: calc(1.7em + 0.6em);
3191
3304
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pivotkit-react",
3
- "version": "0.6.1",
3
+ "version": "0.8.0",
4
4
  "description": "React 18/19 pivot report builder on pivotkit-core: drag-and-drop fields, table and Apache ECharts chart, filters, views as JSON files, undo, Excel and CSV export.",
5
5
  "license": "MIT",
6
6
  "author": "eizedev <oss@eize.dev>",
@@ -38,12 +38,16 @@
38
38
  "default": "./dist/labels.js"
39
39
  },
40
40
  "./import-worker": "./dist/import-worker.js",
41
- "./styles.css": "./dist/styles.css",
41
+ "./styles.css": {
42
+ "types": "./styles.css.d.ts",
43
+ "default": "./dist/styles.css"
44
+ },
42
45
  "./package.json": "./package.json"
43
46
  },
44
47
  "files": [
45
48
  "dist",
46
49
  "types",
50
+ "styles.css.d.ts",
47
51
  "README.md",
48
52
  "CHANGELOG.md",
49
53
  "LICENSE"
@@ -64,8 +68,8 @@
64
68
  "dependencies": {
65
69
  "@dnd-kit/core": "6.3.1",
66
70
  "@dnd-kit/sortable": "10.0.0",
67
- "pivotkit-core": "^0.6.1",
68
- "pivotkit-report": "^0.2.1"
71
+ "pivotkit-core": "^0.8.0",
72
+ "pivotkit-report": "^0.4.0"
69
73
  },
70
74
  "devDependencies": {
71
75
  "echarts": "6.1.0"