pivotkit-react 0.8.2 → 0.9.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 (56) hide show
  1. package/CHANGELOG.md +93 -1
  2. package/dist/chunks/chunk-24T2VRMU.js +1010 -0
  3. package/dist/chunks/chunk-6R7TJHS3.js +212 -0
  4. package/dist/chunks/{chunk-GUSQWPTH.js → chunk-EPGRJSPP.js} +20 -5
  5. package/dist/chunks/{chunk-JAOOFDNR.js → chunk-FAAQZSR4.js} +4 -1
  6. package/dist/chunks/{chunk-2N2UGSIG.js → chunk-FI22Z6CC.js} +5 -2
  7. package/dist/chunks/{chunk-ZM45YU3W.js → chunk-G3R5C3J7.js} +28 -6
  8. package/dist/chunks/{chunk-MU5BTKSY.js → chunk-QCBVEI23.js} +6 -2
  9. package/dist/chunks/{chunk-6OWC6X5W.js → chunk-QVE7JM4G.js} +1 -1
  10. package/dist/chunks/{chunk-3WWWKPB4.js → chunk-V233JHVY.js} +75 -336
  11. package/dist/chunks/chunk-W6BG3GGS.js +679 -0
  12. package/dist/chunks/chunk-YAT2TFMK.js +138 -0
  13. package/dist/chunks/chunk-ZQ2M3U74.js +341 -0
  14. package/dist/chunks/{unused-texts-de-GB3IWWEM.js → labels-de-ZC3CSQZR.js} +1 -1
  15. package/dist/chunks/tips-SYGQPI3Q.js +22 -0
  16. package/dist/chunks/{unused-texts-LRYVWFFN.js → unused-texts-ERQ6ACNX.js} +1 -1
  17. package/dist/chunks/unused-texts-de-AC5GS3FS.js +6 -0
  18. package/dist/deferred-late.js +13 -0
  19. package/dist/deferred.js +18 -0
  20. package/dist/echarts.js +30 -6
  21. package/dist/import-ui.js +3 -3
  22. package/dist/index.js +427 -202
  23. package/dist/labels.js +15 -12
  24. package/dist/menu-texts-de.js +1 -1
  25. package/dist/menus.js +518 -381
  26. package/dist/styles.css +128 -9
  27. package/package.json +5 -4
  28. package/types/PivotReport.d.ts +3 -1
  29. package/types/chart-tooltip.d.ts +18 -1
  30. package/types/chart-types.d.ts +7 -2
  31. package/types/chart.d.ts +10 -2
  32. package/types/chip-menus.d.ts +1 -1
  33. package/types/deferred-late.d.ts +2 -0
  34. package/types/deferred.d.ts +28 -0
  35. package/types/field-info.d.ts +6 -3
  36. package/types/fields.d.ts +3 -2
  37. package/types/icons.d.ts +2 -0
  38. package/types/index.d.ts +20 -10
  39. package/types/labels-de.d.ts +2 -0
  40. package/types/labels.d.ts +55 -459
  41. package/types/lazy-menus.d.ts +2 -2
  42. package/types/menu-labels.d.ts +20 -0
  43. package/types/menu-ops.d.ts +33 -0
  44. package/types/menu-topics.d.ts +6 -3
  45. package/types/menus.d.ts +1 -0
  46. package/types/names.d.ts +20 -2
  47. package/types/notices.d.ts +212 -0
  48. package/types/point-menu.d.ts +21 -0
  49. package/types/quick-choices.d.ts +28 -0
  50. package/types/side-by-side.d.ts +19 -0
  51. package/types/tip-state.d.ts +97 -0
  52. package/types/tips.d.ts +13 -250
  53. package/types/unused-texts.d.ts +3 -0
  54. package/types/view-ops.d.ts +27 -14
  55. package/types/view-tabs.d.ts +4 -3
  56. package/dist/chunks/chunk-W2SVDHGN.js +0 -1898
package/CHANGELOG.md CHANGED
@@ -6,6 +6,97 @@ All notable changes to `pivotkit-react` are documented in this file. The format
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## [0.9.0] - 2026-11-22
10
+
11
+ ### Added
12
+
13
+ - A click on a bar, a point, a slice or a heatmap cell opens a small menu at it: **Show the rows**,
14
+ then **Only …** and **Without …** for its item and its series' item. A filter from it shows on the
15
+ chip, and Undo takes it back. A double click opens the rows at once. In English and German
16
+ ([filter from the chart](https://pivotkit.eize.dev/use/charts/#filter-from-the-chart), [#53](https://github.com/eizedev/pivotkit/issues/53)).
17
+ - **Name** in the chip menu of a field in Rows, Columns or Filters: a name of the report's own for it.
18
+ The chip, the table, the chart and the exports show it. The field list shows the field's own name
19
+ under it and finds the field by either. In English and German
20
+ ([fields](https://pivotkit.eize.dev/use/fields/), [#158](https://github.com/eizedev/pivotkit/issues/158)).
21
+ - The tab **Both** shows the table and the chart side by side on a wide report, with a divider to
22
+ drag or move with the arrow keys, and **Table settings** and **Chart settings** beside each other.
23
+ A narrower report shows the table. In English and German
24
+ ([table and chart side by side](https://pivotkit.eize.dev/use/charts/#both), [#51](https://github.com/eizedev/pivotkit/issues/51)).
25
+ - The view type is exported as `PivotView`, the name pivotkit-element uses too ([#563](https://github.com/eizedev/pivotkit/issues/563)).
26
+ - A date in Filters has **Group** in its chip's menu, as on Rows and Columns. A unit such as Year
27
+ puts the grouping in the date's place among the Filters, with every item kept
28
+ ([#100](https://github.com/eizedev/pivotkit/issues/100)).
29
+ - A tip on stacked bars or areas of an average, a minimum or another value that does not add up:
30
+ the top of the stack is no total. **Switch to Bars** shows the parts side by side, in English and German
31
+ ([#536](https://github.com/eizedev/pivotkit/issues/536)).
32
+ - Highlight › Colour scale has a row **Colours**: the theme's light to dark blue, blue to orange,
33
+ blue to red and red to green, each with a strip of its colours. A choice writes the value's own
34
+ colours (`conditional.colors`), so older versions show them too
35
+ ([#95](https://github.com/eizedev/pivotkit/issues/95)).
36
+ - A click on a column's name in the table sorts the rows by that column ("Largest Average of Mean °C
37
+ in Jul first"); a column field's name sorts that field. Every name that sorts shows a faint arrow
38
+ at rest, on a desktop too, and a column's arrow takes no room of its own
39
+ ([#70](https://github.com/eizedev/pivotkit/issues/70)).
40
+ - Chart settings offers **Bars and lines** and **Treemap**. Bars and lines needs two fields in
41
+ Values and says so. A treemap's labels take the token colour that reads on each tile
42
+ ([chart types](https://pivotkit.eize.dev/use/charts/#chart-types), [#518](https://github.com/eizedev/pivotkit/issues/518)).
43
+ - A pie or donut without a legend keeps a whole label on each slice: where they have no room, the
44
+ smallest slices go into one grey slice "Other (n)". Its tooltip lists them. The token
45
+ `--pk-chart-other` colours it
46
+ ([many slices](https://pivotkit.eize.dev/use/charts/#many-slices), [#544](https://github.com/eizedev/pivotkit/issues/544)).
47
+ - Chart settings › Reference lines › High and low points puts a dot with ▲ or ▼ and the value at
48
+ each series' highest and lowest value. The text for screen readers names them
49
+ ([high and low points](https://pivotkit.eize.dev/use/charts/#high-and-low-points), [#574](https://github.com/eizedev/pivotkit/issues/574)).
50
+ - The warning above the result names a field that a view names twice, and two fields of one name,
51
+ in English and German (pivotkit-core's `labelTwice` and `labelTaken`,
52
+ [#699](https://github.com/eizedev/pivotkit/issues/699)).
53
+
54
+ ### Changed
55
+
56
+ - Depends on `pivotkit-core` `^0.9.0` (was `^0.8.0`) and `pivotkit-report` `^0.5.0` (was `^0.4.0`): a host
57
+ that also lists pivotkit-core updates both together, or it gets two copies.
58
+ - `onCellClick` for a chart point comes at **Show the rows** or a double click, no longer at the
59
+ click that opens the point's menu
60
+ ([upgrading](https://pivotkit.eize.dev/getting-started/upgrading/#chart-click-menu), [#53](https://github.com/eizedev/pivotkit/issues/53)).
61
+ - A sheet on a phone closes at a click on its scrim only when the press started there.
62
+ - A field's filter says "Only if the name…" with "(any name)" instead of "Text condition". While
63
+ every value is ticked and no condition is set, its count says "All 14 selected · nothing filtered
64
+ yet" ([#595](https://github.com/eizedev/pivotkit/issues/595)).
65
+ - The buttons that add a rule in the Filter level read "Filter by <field>", "Filter by total" and
66
+ "Filter by name" (German "Nach <Feld> filtern", "Nach Gesamtwert filtern", "Nach Name filtern"). The
67
+ menu's search finds them by "rule" too ([#177](https://github.com/eizedev/pivotkit/issues/177)).
68
+ - On a touch screen every button takes a finger, at least 44 x 44 px: the toolbar, the tabs,
69
+ Settings, Enlarge, Full screen, the zones' heading, the chips and the small text buttons. Every
70
+ menu's rows are at least 44 px high, Export and Data too, and so are a filter's values and a
71
+ rule's fields. A row's fold arrow and a field's name in the field list keep their size, with a
72
+ hit area 44 px across. The taller toolbar, tabs and chips leave the table about a seventh less
73
+ room on a phone ([#72](https://github.com/eizedev/pivotkit/issues/72)).
74
+ - `dist/index.js` imports `dist/deferred.js`, a file of its own with the German texts of the first
75
+ render and the tips' table. The report works as before. pivotkit-element bundles another file in
76
+ its place to load them later. A host that copies files by hand deploys the whole `dist/` folder, as
77
+ before. `package.json` lists `dist/chunks/*.js` under `sideEffects`, so a bundler keeps the order
78
+ of the package's modules without a warning
79
+ ([#546](https://github.com/eizedev/pivotkit/issues/546)).
80
+ - The messages about a loaded view no longer name pivotkit, in English and German: "This is not a
81
+ view.", "This is neither a view in JSON nor a link to a report.", "This link is damaged or not a
82
+ link to a report." and "This view comes from a newer version and cannot be read here. Update the
83
+ application to open it." The notes about unused parts of a view say the same
84
+ ([upgrading](https://pivotkit.eize.dev/getting-started/upgrading/#neutral-texts), [#612](https://github.com/eizedev/pivotkit/issues/612)).
85
+ - The month names of a combined month grouping and of the grouping hint come from pivotkit-core's
86
+ `monthName`, so the names are defined in one place. They read as before
87
+ ([#662](https://github.com/eizedev/pivotkit/issues/662)).
88
+
89
+ ### Deprecated
90
+
91
+ - PK-DEP-0001: the type `ViewInput`. Use `PivotView`, the same type. `ViewInput` goes no earlier than
92
+ 2.0.0 ([upgrading](https://pivotkit.eize.dev/getting-started/upgrading/#pivot-view-type), [#563](https://github.com/eizedev/pivotkit/issues/563)).
93
+
94
+ ### Fixed
95
+
96
+ - The menu at a chart point offers **Show the rows** only when the rows go somewhere: the drill-down
97
+ panel or `onCellClick`. With `drillDown={false}` and no `onCellClick`, the entry did nothing
98
+ ([#705](https://github.com/eizedev/pivotkit/issues/705)).
99
+
9
100
  ## [0.8.2] - 2026-11-19
10
101
 
11
102
  ### Fixed
@@ -1289,7 +1380,8 @@ First release.
1289
1380
  weather (Open-Meteo), countries (World Bank), earthquakes (USGS), Nobel laureates and the release
1290
1381
  cycles of software products (endoflife.date).
1291
1382
 
1292
- [Unreleased]: https://github.com/eizedev/pivotkit/compare/pivotkit-react@0.8.2...HEAD
1383
+ [Unreleased]: https://github.com/eizedev/pivotkit/compare/pivotkit-react@0.9.0...HEAD
1384
+ [0.9.0]: https://github.com/eizedev/pivotkit/compare/pivotkit-react@0.8.2...pivotkit-react@0.9.0
1293
1385
  [0.8.2]: https://github.com/eizedev/pivotkit/compare/pivotkit-react@0.8.1...pivotkit-react@0.8.2
1294
1386
  [0.8.1]: https://github.com/eizedev/pivotkit/compare/pivotkit-react@0.8.0...pivotkit-react@0.8.1
1295
1387
  [0.8.0]: https://github.com/eizedev/pivotkit/compare/pivotkit-react@0.7.0...pivotkit-react@0.8.0