pivotkit-react 0.7.0 → 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 (55) hide show
  1. package/CHANGELOG.md +167 -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-E6M57YLL.js → chunk-MU5BTKSY.js} +7 -0
  7. package/dist/chunks/{chunk-TR2HROIK.js → chunk-RNQ32FCN.js} +66 -5
  8. package/dist/chunks/{chunk-XN5HNKJ2.js → chunk-SJCG4I57.js} +98 -33
  9. package/dist/chunks/{chunk-4WZ5F2TJ.js → chunk-VMJMDP7C.js} +371 -32
  10. package/dist/chunks/{unused-texts-Y4R67XSN.js → unused-texts-LRYVWFFN.js} +1 -1
  11. package/dist/chunks/{unused-texts-de-6YVPTNVS.js → unused-texts-de-GB3IWWEM.js} +1 -1
  12. package/dist/echarts.js +426 -35
  13. package/dist/import-ui.js +2 -2
  14. package/dist/index.js +723 -392
  15. package/dist/labels.js +6 -6
  16. package/dist/menu-texts-de.js +1 -1
  17. package/dist/menus.js +1534 -1020
  18. package/dist/styles.css +268 -158
  19. package/package.json +3 -3
  20. package/types/PivotReport.d.ts +6 -0
  21. package/types/add-menu.d.ts +48 -0
  22. package/types/chart-colors.d.ts +8 -0
  23. package/types/chart-decorate.d.ts +66 -3
  24. package/types/chart-legend.d.ts +176 -0
  25. package/types/chart-summary.d.ts +8 -3
  26. package/types/chart-tooltip.d.ts +159 -17
  27. package/types/chart.d.ts +21 -3
  28. package/types/date-context.d.ts +30 -0
  29. package/types/drill-panel.d.ts +4 -2
  30. package/types/echarts.d.ts +7 -3
  31. package/types/export-run.d.ts +7 -14
  32. package/types/export-scope.d.ts +13 -2
  33. package/types/field-info.d.ts +12 -0
  34. package/types/files.d.ts +14 -0
  35. package/types/filter.d.ts +18 -0
  36. package/types/group-context.d.ts +20 -0
  37. package/types/index.d.ts +35 -6
  38. package/types/label-room.d.ts +13 -0
  39. package/types/labels.d.ts +85 -16
  40. package/types/lazy-menus.d.ts +2 -2
  41. package/types/levels.d.ts +16 -7
  42. package/types/menu-labels.d.ts +67 -1
  43. package/types/menu-ops.d.ts +10 -0
  44. package/types/menu-topics.d.ts +110 -21
  45. package/types/menus.d.ts +2 -1
  46. package/types/names.d.ts +32 -3
  47. package/types/overflow.d.ts +18 -30
  48. package/types/rove.d.ts +10 -0
  49. package/types/toolbar-panels.d.ts +34 -10
  50. package/types/unused-texts.d.ts +7 -0
  51. package/types/use-big-result.d.ts +24 -9
  52. package/types/use-export.d.ts +2 -2
  53. package/types/view-ops.d.ts +19 -8
  54. package/types/view-tabs.d.ts +12 -0
  55. package/types/zones.d.ts +41 -9
package/CHANGELOG.md CHANGED
@@ -6,6 +6,171 @@ All notable changes to `pivotkit-react` are documented in this file. The format
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## [0.8.0] - 2026-11-18
10
+
11
+ ### Upgrading from 0.7
12
+
13
+ - Table and Chart are tabs on top of the result, with "Table settings" or "Chart settings" beside
14
+ them. The chart type button, Options and Layout left the toolbar. More is always at its end, with
15
+ Help first. The zones fold under the heading "Fields in the report", and Swap rows and columns sits
16
+ at the end of that row. The labels `layout`, `showLayout`, `options` and `chartDisplay` are no longer
17
+ shown, and the test ids `chart-type`, `options` and `layout` are gone
18
+ ([#580](https://github.com/eizedev/pivotkit/issues/580),
19
+ [upgrading](https://pivotkit.eize.dev/getting-started/upgrading/#view-tabs-0-8)).
20
+ - The chart type menu lists the types, then a row per Display topic that opens a level: Value
21
+ labels, Legend, Title, Axis, Tooltip, Series and Layout ([#106](https://github.com/eizedev/pivotkit/issues/106)). Tests open the
22
+ level first; a choice is a menu item with `aria-checked`.
23
+ - Bars, lines and areas with more than 20 categories get a zoom slider. Display › Axis › Zoom slider
24
+ › Off draws every category as before. A click on the legend changes the view, so Undo takes it
25
+ back ([upgrading](https://pivotkit.eize.dev/getting-started/upgrading/#from-0-7)).
26
+ - With `exportData` off, the default, the drill-down panel has no Export menu: no copy and no
27
+ download of its rows. Set `drillDownExport` to keep it
28
+ ([upgrading](https://pivotkit.eize.dev/getting-started/upgrading/#drill-export)).
29
+ - The row count under the result says "2,190 of 4,386 rows" when a filter leaves rows out. A host
30
+ whose `labels` set `rowsCount` or add a language sets the new label `rowsFiltered` too
31
+ ([upgrading](https://pivotkit.eize.dev/getting-started/upgrading/#rows-filtered)).
32
+
33
+ ### Deprecated
34
+
35
+ - The theme token `--pk-knob` is unused: the chart's Display settings have no switch any more. It
36
+ goes in 0.9.0 ([#106](https://github.com/eizedev/pivotkit/issues/106)).
37
+
38
+ ### Added
39
+
40
+ - "+ Add" in each zone opens "Add to Rows" (or the zone's name): every field with its type and the
41
+ field list's search. A field placed elsewhere shows its zone and moves. A pick that would change
42
+ nothing is disabled with its reason. Values takes a field again, and Filters opens the field's
43
+ filter first. The focus goes to the new chip, and a status region says what happened. Test ids:
44
+ `add-field-<zone>`, `add-pick-<field>`, `zones-status`. New labels: `addField`, `addFieldTo`,
45
+ `movedFrom`; the menu adds `addAlready`, `addMoves` and `addSecond`
46
+ ([#581](https://github.com/eizedev/pivotkit/issues/581)).
47
+ - The `zones` prop (`"open"` or `"folded"`) sets whether the zones start open or folded. Without it,
48
+ the report's height decides ([#580](https://github.com/eizedev/pivotkit/issues/580)).
49
+ - Chart settings › Layout folds the groups of Rows in the words of the fields: "Show each Country",
50
+ "Show Region only". Table settings' Collapse all says what it keeps
51
+ ([#580](https://github.com/eizedev/pivotkit/issues/580)).
52
+ - Theme tokens for the zones' section (`--pk-section-*`) and the tab shown (`--pk-tab-mark`)
53
+ ([#580](https://github.com/eizedev/pivotkit/issues/580)).
54
+ - The data's date range before filters ("Data before filters: …"): in the footer next to the row count, and in a date
55
+ field's "i". The title of a cyclic grouping such as "Month of year" in the table and the chart
56
+ says which years it combines: "Date by month of year · 2023–2025 combined". With one year left,
57
+ month and quarter items carry it ("Jan 2025"); weekday, hour and week say "· 2025 only" in the
58
+ title. Exports keep the plain items and names.
59
+ Group lists the data's range first and shows hints from the data, under "One item per period"
60
+ and "Same period, years combined" ([#109](https://github.com/eizedev/pivotkit/issues/109)).
61
+ - A zoom slider under a long category axis, Display › Axis › Zoom slider (Automatic, On, Off). It
62
+ works by mouse, touch and keyboard, and keeps its place when the chart is drawn again. The PNG
63
+ image leaves it out ([#36](https://github.com/eizedev/pivotkit/issues/36)), ([#575](https://github.com/eizedev/pivotkit/issues/575)).
64
+ - A click on the legend hides or shows a series, or a slice. The view keeps it, a screen reader
65
+ hears it, and Undo takes it back. Display › Series does the same by keyboard ([#36](https://github.com/eizedev/pivotkit/issues/36)).
66
+ - Display › Layout › Stacked to 100 % for stacked bars and areas of sums and counts. The tooltip
67
+ shows each part's value and share, and the total of the values ([#36](https://github.com/eizedev/pivotkit/issues/36)).
68
+ - Export › **Copy chart image**: the chart as a PNG on the clipboard. `onExport` sees it first as
69
+ `"copy-chart"` ([#54](https://github.com/eizedev/pivotkit/issues/54)).
70
+ - The `colorMap` prop: a fixed colour per series or slice name across charts, one colour or one per
71
+ theme. Display › Series has a colour beside each series or slice, a view's own colour
72
+ ([#54](https://github.com/eizedev/pivotkit/issues/54)).
73
+ - Display › Tooltip › Share in the tooltip: each value's share of the category's total, of a single
74
+ series' total, or of a pie ([#54](https://github.com/eizedev/pivotkit/issues/54)).
75
+ - Display › **Reference lines** in the chart type menu, for bars, lines and areas: a level with
76
+ **Average**, **Trend** and a **Target** (`chart.referenceLines`, [#48](https://github.com/eizedev/pivotkit/issues/48)).
77
+ Its row says which lines are on. The level offers only the lines the chart can draw, with a note
78
+ on the rest. The Target field reads "25%" as a share, with a hint for a value shown in percent.
79
+ The tooltip names the lines at the category, and the chart's text alternative names each with
80
+ its value.
81
+ - `labels.chartLines` and `labels.chartTrendSpan`: the reference lines in the chart's text
82
+ alternative ("Reference lines: {lines}.", "from {from} to {to}"), and the token
83
+ `--pk-chart-reference` for a target and the lines of a stack's total (default `--pk-muted`).
84
+ - Display › **Tooltip** in the chart type menu, for bars, lines and areas: **Automatic** or **All
85
+ series** (`chart.tooltip`, [#106](https://github.com/eizedev/pivotkit/issues/106)). All series lists
86
+ every series at the pointer's category, the hovered one first, its name in the strong weight.
87
+ - `labels.chartTotal`, the tooltip's "Total" line (German "Gesamt"), and `labels.chartMore`, the
88
+ line for the series that do not fit ("+{count} more"), and `labels.chartMoreInTotal` for it when
89
+ a total is shown ("+{count} more (in the total)").
90
+ - `--pk-tooltip-name-w` (default `12em`): the widest series name in the tooltip. A longer one ends
91
+ in "…".
92
+
93
+ - `drillDownExport`: the drill-down panel's copy and download while `exportData` is off, with every
94
+ column. Off by default.
95
+
96
+ ### Changed
97
+
98
+ - Depends on `pivotkit-core` `^0.8.0` (was `^0.7.0`) and `pivotkit-report` `^0.4.0` (was `^0.3.0`): a host
99
+ that also lists pivotkit-core updates both together, or it gets two copies.
100
+ - The open zones are shelves: each zone's title, "i" and "+ Add" at its left, its chips beside them.
101
+ Shelves sit side by side while they fit and take a line of their own when they need it. The dashed
102
+ drop outline shows only while something is dragged. On a phone, "+ Add" sits at the right end of
103
+ the shelf's title row. A report with no field placed starts with its zones open, whatever its
104
+ height, unless `zones` says otherwise. The empty report's steps and the empty zones' hints name
105
+ "+ Add" too. A value that is in the view twice is "Sum of Revenue (2)" on its chip and in the
106
+ table. New tokens: `--pk-shelf-gap`, `--pk-shelf-pad`,
107
+ `--pk-shelf-min`, `--pk-chip-gap`, `--pk-chip-h`, `--pk-add-gap`, `--pk-add-hover`
108
+ ([#581](https://github.com/eizedev/pivotkit/issues/581)).
109
+ - The chart's tooltip names the element under the pointer
110
+ ([#376](https://github.com/eizedev/pivotkit/issues/376)):
111
+ - A bar or a line point shows that series alone.
112
+ - A segment of stacked bars, or a point of a stacked area, adds the sum of the stack's parts. A
113
+ value that does not add up gets no total: only sums and counts do, and not when shown as a rank
114
+ or a percent difference.
115
+ - Between the elements it lists every series at the category. Between stacked bars it shows the
116
+ total only.
117
+ - A series without a value at the category is left out, not shown as an empty line.
118
+ - Pie, donut and heatmap keep the tooltip of the slice or cell.
119
+ - The tooltip stays inside the chart. When more series are there than fit, the last line says how
120
+ many more there are.
121
+
122
+ - The drill-down panel's copy and download follow `exportData`. With it off, the panel shows the
123
+ rows but offers no copy and no download (#263).
124
+ - pivotkit-core's ECharts option (`toEChartsOption`) loads with ECharts, from `pivotkit-core/chart`,
125
+ not with the first load (#546).
126
+ - The row count under the result says how many of the data's rows the filters keep: "2,190 of 4,386
127
+ rows", German "2.190 von 4.386 Zeilen". With nothing filtered it says "4,386 rows" (#108).
128
+ Its words are pivotkit-core's `ROW_COUNT_TEXTS`, so the HTML report says the same (#547).
129
+
130
+ ### Fixed
131
+
132
+ - The chart's tooltip names the element under the pointer after a redraw, and after the pointer
133
+ left the chart in one move, such as a tap elsewhere. It listed every series instead
134
+ ([#576](https://github.com/eizedev/pivotkit/issues/576)).
135
+ - On a touch screen, a menu's rows and its Back row are at least 44 px high (`--pk-target-touch`)
136
+ on every level. They were 35 and 28 px ([#582](https://github.com/eizedev/pivotkit/issues/582)).
137
+ - Row labels, the field names above them and the value names keep their natural width, on one
138
+ line, when the table fits the report. Only a table that would be wider than the report wraps them,
139
+ between words first. Then the row labels share the room the value columns leave, not a fixed 40 %
140
+ of the width. A word breaks only when it alone is wider than its column ([#584](https://github.com/eizedev/pivotkit/issues/584)).
141
+ - On a touch screen, the first tap on a bar, a point or a heatmap cell shows its tooltip. The second
142
+ tap on it opens the rows behind it and calls `onCellClick`. The tooltip no longer stays over the
143
+ panel, and the panel no longer closes right after it opens ([#538](https://github.com/eizedev/pivotkit/issues/538)).
144
+ - A heatmap whose `--pk-heat-low` or `--pk-heat-high` is in a form ECharts cannot mix, such as
145
+ `oklch()` or `rgb()` with spaces, shows the host's colours instead of black cells. So do the HTML
146
+ report and the SVG of the Export menu, whose table also takes an `oklch()` colour scale ([#386](https://github.com/eizedev/pivotkit/issues/386)).
147
+ - With a field on Columns, a pie's, a donut's and a heatmap's tooltip is titled by the value, not by
148
+ the first column, from pivotkit-core ([#537](https://github.com/eizedev/pivotkit/issues/537)).
149
+ - A view's locale that the browser has no data for, such as `xx-XX`, is reported as unknown, and
150
+ the report takes the `locale` prop. Such a `locale` prop takes `en-US` with a warning. Before,
151
+ both took the machine's locale, from pivotkit-core ([#552](https://github.com/eizedev/pivotkit/issues/552)).
152
+ - Export → Source data is greyed out while the data have no rows, like the table's entries. It says
153
+ "The data has no rows yet." ([#585](https://github.com/eizedev/pivotkit/issues/585)).
154
+ - A relative date filter that holds today no longer says that the days from today on have no data,
155
+ while the data have no date after today. Data up to yesterday give "last 4 weeks (Oct 26,
156
+ 2026–Nov 22, 2026)", not a second part for the rest of the week. Days before today without rows
157
+ are still named, also in a range with no data at all: "last 1 week (Nov 16, 2026 has no data)".
158
+ A range wholly after today, and data with rows dated after today, name every day without data.
159
+ The "Include the current …" checkbox and its count back from the latest record follow the same
160
+ rule. The chip, its tooltip, the summary, the menu's first level and the Filter level's choices
161
+ say the same ([#586](https://github.com/eizedev/pivotkit/issues/586)).
162
+ - "Table as CSV" in a locale whose own decimal mark is `٫` (`ar-EG`, `ar-SA`, `fa-IR`, `ur-IN`,
163
+ `ps-AF` and others) writes the decimal mark the locale uses with Latin digits, from pivotkit-core:
164
+ `9.6`, not `9٫6`, which parsers misread ([#478](https://github.com/eizedev/pivotkit/issues/478)).
165
+ - The chart's labels at small sizes, from pivotkit-core: slanted category names leave the plot its
166
+ height, a donut's outside labels stay whole, the value at the end of a horizontal bar is not cut,
167
+ and a heatmap names every row that has room ([#228](https://github.com/eizedev/pivotkit/issues/228), [#229](https://github.com/eizedev/pivotkit/issues/229), [#230](https://github.com/eizedev/pivotkit/issues/230),
168
+ [#231](https://github.com/eizedev/pivotkit/issues/231)).
169
+ - The zones fold when they no longer fit the report's box, also when the box keeps its size. Longer
170
+ texts in another language, more fields in Rows, a tip or a late stylesheet made them taller without
171
+ a resize, and they stayed open over a squeezed result. Folded that way, they open again once they
172
+ fit (#93).
173
+
9
174
  ## [0.7.0] - 2026-11-16
10
175
 
11
176
  ### Upgrading from 0.6
@@ -1093,7 +1258,8 @@ First release.
1093
1258
  weather (Open-Meteo), countries (World Bank), earthquakes (USGS), Nobel laureates and the release
1094
1259
  cycles of software products (endoflife.date).
1095
1260
 
1096
- [Unreleased]: https://github.com/eizedev/pivotkit/compare/pivotkit-react@0.7.0...HEAD
1261
+ [Unreleased]: https://github.com/eizedev/pivotkit/compare/pivotkit-react@0.8.0...HEAD
1262
+ [0.8.0]: https://github.com/eizedev/pivotkit/compare/pivotkit-react@0.7.0...pivotkit-react@0.8.0
1097
1263
  [0.7.0]: https://github.com/eizedev/pivotkit/compare/pivotkit-react@0.6.1...pivotkit-react@0.7.0
1098
1264
  [0.6.1]: https://github.com/eizedev/pivotkit/compare/pivotkit-react@0.6.0...pivotkit-react@0.6.1
1099
1265
  [0.6.0]: https://github.com/eizedev/pivotkit/compare/pivotkit-react@0.5.0...pivotkit-react@0.6.0
package/README.md CHANGED
@@ -1,13 +1,8 @@
1
1
  # pivotkit-react
2
2
 
3
3
  The pivot report builder of [pivotkit](https://pivotkit.eize.dev/) as a React 18/19 component,
4
- `<PivotReport>`: a searchable field list, four drop zones (Rows, Columns, Values, Filters) with drag
5
- and drop and a menu on every field, table and chart (Apache ECharts), filters with value counts,
6
- drill-down to the rows behind a value, undo and redo, saved and shared views as JSON files, and
7
- Excel, CSV, HTML report, PNG and SVG export and printing. Where the host turns them on, people load
8
- their own CSV, JSON or Excel file with a preview (`allowImport`) and download the rows behind the
9
- report for the command line (`exportData`). Excel's PivotTable is the reference; the engine is
10
- [pivotkit-core](https://www.npmjs.com/package/pivotkit-core).
4
+ `<PivotReport>`. People build pivot tables and charts from your data by drag and drop. Excel's
5
+ PivotTable is the reference. The engine is [pivotkit-core](https://www.npmjs.com/package/pivotkit-core).
11
6
 
12
7
  ![The pivot report with real weather data: field list, the Filters, Columns, Rows and Values zones, and the average temperature of 14 cities by month as a colour scale](https://pivotkit.eize.dev/assets/screenshots/report-light.png)
13
8
 
@@ -26,10 +21,12 @@ npm install pivotkit-react react react-dom echarts
26
21
  | `react`, `react-dom` | `>=18.2 <20` | Hooks break with two copies of React in one page. Tested on React 18 and 19. |
27
22
  | `echarts` | `>=6.1.0 <7` | About 1 MB, and its security updates stay with your app. Loaded on the first chart only. |
28
23
 
29
- TypeScript declarations are included. pivotkit-core (a caret range) and @dnd-kit come with the
30
- package. In 0.x a caret range spans patch
31
- versions only (`^0.y.z` is 0.y.z and later 0.y patches): an app that also imports pivotkit-core itself must use a version
32
- inside that range, since npm shares one copy only when the ranges overlap.
24
+ - The package includes TypeScript declarations.
25
+ - pivotkit-core, pivotkit-report and @dnd-kit come with the package. It depends on pivotkit-core with
26
+ a caret range.
27
+ - In 0.x a caret range spans patch versions only: `^0.y.z` means 0.y.z and later 0.y patches. If your
28
+ app also imports pivotkit-core itself, use a version inside that range. npm shares one copy only
29
+ when the ranges overlap.
33
30
 
34
31
  ## Example
35
32
 
@@ -47,9 +44,30 @@ export function TicketReport({ rows }) {
47
44
  }
48
45
  ```
49
46
 
50
- Without app state, `defaultView={start}` starts the report and it keeps the view itself. The view is
51
- plain JSON: the preset, the saved view and the undo step at once. It is user input, checked against
52
- the data; it cannot run code.
47
+ Without app state, pass `defaultView={start}` instead, and the report keeps the view itself.
48
+
49
+ The view is plain JSON. It is the preset, the saved view and the undo step at once. The report treats
50
+ it as user input and checks it against the data. A view cannot run code.
51
+
52
+ ## What it does
53
+
54
+ - A searchable field list.
55
+ - Four drop zones: Rows, Columns, Values and Filters, with drag and drop, "+ Add" in each zone and a
56
+ menu on every field.
57
+ - Table and chart. The chart uses Apache ECharts.
58
+ - Filters with value counts.
59
+ - Dates grouped by year, quarter, month and more. The footer gives the data's date range, and a
60
+ grouping such as "Month of year" says which years it combines.
61
+ - Drill-down to the rows behind a value.
62
+ - Undo and redo.
63
+ - Saved and shared views as JSON files.
64
+ - Export to Excel, CSV, HTML report, PNG and SVG, and printing.
65
+
66
+ Two more features are off until the host turns them on:
67
+
68
+ - `allowImport`: people load their own CSV, JSON or Excel file, with a preview.
69
+ - `exportData`: people download the rows behind the report for the command line. It also gives
70
+ the drill-down its copy and download. `drillDownExport` gives the drill-down those alone.
53
71
 
54
72
  ## Where in the docs
55
73
 
@@ -64,7 +82,7 @@ the data; it cannot run code.
64
82
  | The view | [Views and saved views](https://pivotkit.eize.dev/concepts/views/) |
65
83
  | Saved and shared views, links | [Templates and shared views](https://pivotkit.eize.dev/concepts/templates/), [Sharing](https://pivotkit.eize.dev/concepts/sharing/), [View file format](https://pivotkit.eize.dev/reference/view-file/) |
66
84
  | Field names, descriptions, defaults | [Field descriptions and names](https://pivotkit.eize.dev/concepts/fields/) |
67
- | Charts and `chartOptions` | [Charts](https://pivotkit.eize.dev/concepts/charts/#chartoptions-for-developers) |
85
+ | Charts, `colorMap` and `chartOptions` | [Charts](https://pivotkit.eize.dev/concepts/charts/#chartoptions-for-developers) |
68
86
  | Theming: the `--pk-*` tokens | [Theming](https://pivotkit.eize.dev/reference/theming/) |
69
87
  | Languages and labels | [Localisation](https://pivotkit.eize.dev/reference/localisation/) |
70
88
  | Limits | [Locale, time zones, limits and errors](https://pivotkit.eize.dev/concepts/limits/#limits) |
@@ -21,6 +21,13 @@ var de = {
21
21
  axisLabels: "Achsenbeschriftung",
22
22
  groupLabels: "Gruppenbeschriftung",
23
23
  labelPosition: "Beschriftungsposition",
24
+ tooltip: "Tooltip",
25
+ zoom: "Zoom-Schieber",
26
+ stackPercent: "100-%-Stapel",
27
+ hidden: "ausgeblendete Reihen",
28
+ colors: "Farben",
29
+ tooltipShare: "Anteil im Tooltip",
30
+ target: "Ziellinie",
24
31
  other: "Einstellung"
25
32
  },
26
33
  dropped: {
@@ -4,7 +4,7 @@ import {
4
4
  mergeLabels,
5
5
  messageOf,
6
6
  plural
7
- } from "./chunk-XN5HNKJ2.js";
7
+ } from "./chunk-SJCG4I57.js";
8
8
 
9
9
  // src/import-labels.js
10
10
  var en = {
@@ -19,6 +19,10 @@ var de = {
19
19
  drillCopy: "Die Zeilen wie im Bereich angezeigt, mit einer \xDCberschriftenzeile: tabulatorgetrennt, wird in Excel oder Google Sheets in Spalten eingef\xFCgt.",
20
20
  drillJson: "Die Zeilen als JSON-Objekte, mit den Feldnamen und Rohwerten der Daten, f\xFCr ein Programm.",
21
21
  groupLabels: "Mit zwei oder mehr Feldern in Zeilen: die Eintr\xE4ge des \xE4u\xDFeren Felds einmal unter der Achse, unter ihren Kategorien.",
22
+ chartColors: "Ein Schalter blendet jede Reihe oder jedes Segment ein oder aus. Die Farbe daneben legt seine Farbe nach dem Namen fest, in der Ansicht und in jedem Diagramm mit diesem Namen.",
23
+ tooltip: "Automatisch: Ein Balken, Segment oder Punkt zeigt nur seinen Wert. Dazwischen erscheinen alle Reihen. Gestapelte Summen und Anzahlen zeigen auch den Gesamtwert. Alle Reihen: immer alle Reihen dieser Kategorie.",
24
+ stackPercent: "Jeder Stapel f\xFCllt die Achse; jeder Teil zeigt seinen Anteil. Auch die Wertbeschriftungen zeigen den Anteil. Nur f\xFCr Summen und Anzahlen. Ein Stapel mit Teilen unter null f\xFCllt die Achse nicht, einer mit der Summe null fehlt.",
25
+ zoom: "Ein Schieber unter der Achse zeigt einen Teil der Kategorien. Automatisch: bei mehr als 20 Kategorien, oder wenn die Achse 3 Namen oder mehr zwischen zweien auslassen m\xFCsste. Per Tastatur l\xE4sst er sich noch nicht bewegen: Aus zeigt alle Kategorien. Dateien und Drucke zeigen alle Kategorien.",
22
26
  labelPosition: "Au\xDFen: Name und Zahl jedes Segments daneben. Innen: die Zahl auf dem Segment, die Namen in der Legende; au\xDFen, wenn der Ring eines Donuts daf\xFCr zu schmal ist.",
23
27
  sharedView: "Nur Admins k\xF6nnen gemeinsame Ansichten \xE4ndern.",
24
28
  valuesFilter: "Werte werden hier nicht gefiltert: Ein Feld in Zeilen oder Spalten \xFCber sein Men\xFC filtern oder ein Feld in Filter ziehen."
@@ -30,6 +34,9 @@ var de = {
30
34
  searchMenuShort: "In diesem Men\xFC suchen (Taste /)",
31
35
  searchResults: "Treffer",
32
36
  searchNothing: "Nichts gefunden. Ein anderes Wort versuchen oder die Suche leeren.",
37
+ addAlready: "Bereits in {zone}.",
38
+ addMoves: "Verschiebt es aus {zone}.",
39
+ addSecond: "F\xFCgt einen zweiten Wert davon hinzu.",
33
40
  sortByValue: "Nach Wert sortieren",
34
41
  sortOldestShort: "\xC4lteste",
35
42
  sortNewestShort: "Neueste",
@@ -236,8 +243,10 @@ var de = {
236
243
  sortOldest: "\xC4lteste zuerst",
237
244
  sortNewest: "Neueste zuerst",
238
245
  groupNone: "Keine Gruppierung (jedes Datum mit Uhrzeit)",
239
- groupTimeline: "Entlang der Zeitachse",
240
- groupCyclic: "Gleicher Zeitraum in jedem Jahr",
246
+ groupTimeline: "Ein Eintrag pro Zeitraum",
247
+ groupCyclic: "Gleicher Zeitraum, Jahre zusammengefasst",
248
+ groupDataRange: { one: "Daten vor den Filtern: {range} ({count} Tag)", other: "Daten vor den Filtern: {range} ({count} Tage)" },
249
+ groupYearsTogether: { one: "{count} Jahr zusammen", other: "{count} Jahre zusammen" },
241
250
  unitHints: {
242
251
  year: "2025",
243
252
  yearQuarter: "Q1 2025",
@@ -284,10 +293,16 @@ var de = {
284
293
  exportPrint: "Drucken oder als PDF speichern\u2026",
285
294
  exportPngNeedsChart: "Zuerst zum Diagramm wechseln.",
286
295
  exportNeedsField: "Zuerst ein Feld hinzuf\xFCgen.",
296
+ exportNeedsRows: "Die Daten haben noch keine Zeilen.",
287
297
  exportDataGroup: "Quelldaten",
288
298
  exportDataCsv: "Alle Zeilen als CSV (.csv)",
289
299
  exportDataJson: "Alle Zeilen als JSON (.json)",
290
300
  copyTable: "Tabelle kopieren",
301
+ copyChart: "Diagramm als Bild kopieren",
302
+ toastChartCopied: "Diagramm als Bild kopiert",
303
+ toastImageCopyBlocked: "Diese Seite erlaubt kein Kopieren des Bildes.",
304
+ toastChartNotDrawn: "Das Diagramm ist noch nicht gezeichnet. Gleich noch einmal versuchen.",
305
+ downloadPng: "PNG herunterladen",
291
306
  copyDataJson: "Daten als JSON kopieren",
292
307
  toastTableCopied: "Tabelle kopiert: tabulatorgetrennt, wird in Excel oder Google Sheets in Spalten eingef\xFCgt",
293
308
  toastDataCopied: "Daten als JSON kopiert",
@@ -310,6 +325,7 @@ var de = {
310
325
  resetTips: "Ausgeblendete Tipps wieder zeigen",
311
326
  sectionChanged: ", ge\xE4ndert",
312
327
  help: "Hilfe",
328
+ helpAndShortcuts: "Hilfe und Tastenk\xFCrzel",
313
329
  shortcutsTitle: "Tastenk\xFCrzel",
314
330
  keys: { Mod: "Strg", Shift: "Umschalt", "Arrow keys": "Pfeiltasten", Enter: "Eingabe", Space: "Leertaste", Escape: "Esc", F10: "F10" },
315
331
  shortcuts: {
@@ -329,12 +345,43 @@ var de = {
329
345
  chartTitle: "Titel",
330
346
  chartTitleNone: "Kein Titel",
331
347
  smoothLines: "Gegl\xE4ttete Linien",
348
+ referenceLines: "Bezugslinien",
349
+ targetNone: "Kein Ziel",
350
+ linesOff: "Aus",
351
+ targetPercent: "Ein Prozentwert: 25 % oder 0,25 eingeben.",
352
+ targetPercent100: "Ein Prozentwert: 25 oder 25 % eingeben.",
353
+ targetPercentHigh: "{typed} sind {shown}. F\xFCr {share} {typed} % eingeben.",
354
+ targetRemove: "Ziel entfernen",
355
+ linesNotes: {
356
+ noTotal: "Diese Linien brauchen eine Summe. Zum Zeichnen auf Balken wechseln, nicht gestapelt.",
357
+ negative: "Ein Stapel mit Werten unter null hat keine einzelne Summe, daher keinen Durchschnitt und keinen Trend.",
358
+ percentStack: "Jeder Stapel auf 100 % ist gleich hoch, daher gibt es keine Linien.",
359
+ noTime: "Ein Trend braucht Datumswerte in Zeilen, nach Datum geordnet.",
360
+ byIndex: "Manche Kategorien haben kein Datum, daher z\xE4hlt der Trend sie als gleichm\xE4\xDFig verteilt.",
361
+ mixedUnits: "Die Werte haben verschiedene Einheiten, daher passt kein gemeinsames Ziel.",
362
+ table: "Die Linien erscheinen hier, sobald das Diagramm gezeichnet ist."
363
+ },
332
364
  labelPosition: "Beschriftung",
333
365
  labelPositionNames: { outside: "Au\xDFen", inside: "Innen" },
334
366
  axisLabels: "Achsenbeschriftung",
335
367
  axisLabelNames: { auto: "Automatisch", all: "Alle (schr\xE4g)", nth: "Jede n-te" },
336
368
  groupLabels: "Gruppen unter der Achse",
337
369
  groupLabelNames: { auto: "Automatisch", on: "Ein", off: "Aus" },
370
+ tooltip: "Tooltip",
371
+ tooltipNames: { auto: "Automatisch", axis: "Alle Reihen" },
372
+ zoom: "Zoom-Schieber",
373
+ zoomNames: { auto: "Automatisch", on: "Ein", off: "Aus" },
374
+ stackPercent: "Gestapelt auf 100 %",
375
+ shownSeries: "Reihen",
376
+ seriesShownOf: "{shown} von {count} angezeigt",
377
+ chartAxis: "Achse",
378
+ chartLayout: "Anordnung",
379
+ tooltipShare: "Anteil im Tooltip",
380
+ colorOf: "Farbe von {name}",
381
+ colorDefault: "Standard",
382
+ colorRemove: "Entfernen",
383
+ colorsNotShown: "Farben nicht angezeigter Namen",
384
+ seriesOnly: "Die einzige Reihe wird immer angezeigt",
338
385
  defaultName: "Standardnamen verwenden",
339
386
  shareThisView: "Diese Ansicht teilen",
340
387
  copyLink: "Link kopieren",
@@ -375,7 +422,13 @@ var de = {
375
422
  collapseAllDone: "Alle Gruppen sind schon zugeklappt.",
376
423
  groupsCollapsed: { one: "{count} Gruppe zugeklappt", other: "{count} Gruppen zugeklappt" },
377
424
  groupsExpanded: { one: "{count} Gruppe aufgeklappt", other: "{count} Gruppen aufgeklappt" },
378
- chartDisplay: "Darstellung",
425
+ chartShowEach: "{field} einzeln zeigen",
426
+ chartShowOnly: "Nur {field} zeigen",
427
+ chartShowDetails: "Details zeigen",
428
+ chartShowTotals: "Nur Gruppensummen zeigen",
429
+ chartFoldEach: "{field} einzeln",
430
+ chartFoldOnly: "Nur {field}",
431
+ chartFoldSome: "Einige Gruppen zugeklappt",
379
432
  toastExported: "{file} exportiert",
380
433
  toastLinkCopied: "Link kopiert",
381
434
  toastJsonCopied: "Ansicht als JSON kopiert",
@@ -26,6 +26,13 @@ var en = {
26
26
  axisLabels: "axis labels",
27
27
  groupLabels: "group labels",
28
28
  labelPosition: "label position",
29
+ tooltip: "tooltip",
30
+ zoom: "zoom slider",
31
+ stackPercent: "100 % stack",
32
+ hidden: "hidden series",
33
+ colors: "colours",
34
+ tooltipShare: "share in the tooltip",
35
+ target: "target line",
29
36
  other: "setting"
30
37
  },
31
38
  // what the report does instead, by the part of the view ({dropped} in a text)
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  MENU_TEXTS,
3
3
  mergeLabels
4
- } from "./chunk-XN5HNKJ2.js";
4
+ } from "./chunk-SJCG4I57.js";
5
5
 
6
6
  // src/menu-labels.js
7
7
  var en = {
@@ -25,6 +25,10 @@ var en = {
25
25
  drillCopy: "The rows as the panel shows them, with a header row: tab-separated, pastes into Excel or Google Sheets as columns.",
26
26
  drillJson: "The rows as JSON objects, with the data's field names and raw values, for a program.",
27
27
  groupLabels: "With two or more fields in Rows: the outer field's items written once under the axis, below their categories.",
28
+ chartColors: "A switch shows or hides each series or slice. The colour beside it fixes its colour by name, in the view and in every chart that shows that name.",
29
+ tooltip: "Automatic: a bar, segment or point shows only itself. Between them, every series shows. Stacked sums and counts also show the total. All series: always every series of that category.",
30
+ stackPercent: "Each stack fills the axis; each part shows its share. Value labels show the share too. Only for sums and counts. A stack with parts below zero does not fill the axis, and one that adds up to nothing is left out.",
31
+ zoom: "A slider under the axis shows a part of the categories. Automatic: with more than 20 categories, or when the axis would leave out 3 names or more between two. It cannot be moved by keyboard yet: Off shows every category. Files and prints show every category.",
28
32
  labelPosition: "Outside: each slice's name and number next to it. Inside: the number on the slice, the names in the legend; outside when a donut's ring is too thin for it.",
29
33
  sharedView: "Only admins can change shared views.",
30
34
  valuesFilter: "Values are not filtered here: filter a field on Rows or Columns through its menu, or move a field to Filters."
@@ -37,6 +41,10 @@ var en = {
37
41
  searchMenuShort: "Search in this menu (key /)",
38
42
  searchResults: "Results",
39
43
  searchNothing: "Nothing found. Try another word, or clear the search.",
44
+ // the menu of "+ Add" in a zone: a field there already, one that moves, a second value
45
+ addAlready: "Already in {zone}.",
46
+ addMoves: "Moves it from {zone}.",
47
+ addSecond: "Adds a second value of it.",
40
48
  // the topics of a field's menu and what they show when nothing is set
41
49
  sortByValue: "Sort by value",
42
50
  sortOldestShort: "Oldest",
@@ -273,8 +281,10 @@ var en = {
273
281
  sortOldest: "Oldest first",
274
282
  sortNewest: "Newest first",
275
283
  groupNone: "No grouping (every date and time)",
276
- groupTimeline: "Along the time line",
277
- groupCyclic: "Same period every year",
284
+ groupTimeline: "One item per period",
285
+ groupCyclic: "Same period, years combined",
286
+ groupDataRange: { one: "Data before filters: {range} ({count} day)", other: "Data before filters: {range} ({count} days)" },
287
+ groupYearsTogether: { one: "{count} year together", other: "{count} years together" },
278
288
  unitHints: {
279
289
  year: "2025",
280
290
  yearQuarter: "Q1 2025",
@@ -324,10 +334,16 @@ var en = {
324
334
  exportPrint: "Print or save as PDF\u2026",
325
335
  exportPngNeedsChart: "Switch to Chart first.",
326
336
  exportNeedsField: "Add a field first.",
337
+ exportNeedsRows: "The data has no rows yet.",
327
338
  exportDataGroup: "Source data",
328
339
  exportDataCsv: "All rows as CSV (.csv)",
329
340
  exportDataJson: "All rows as JSON (.json)",
330
341
  copyTable: "Copy table",
342
+ copyChart: "Copy chart image",
343
+ toastChartCopied: "Chart copied as an image",
344
+ toastImageCopyBlocked: "This page does not allow copying the image.",
345
+ toastChartNotDrawn: "The chart is not drawn yet. Try again in a moment.",
346
+ downloadPng: "Download PNG",
331
347
  copyDataJson: "Copy data as JSON",
332
348
  toastTableCopied: "Table copied: tab-separated, pastes into Excel or Google Sheets as columns",
333
349
  toastDataCopied: "Data copied as JSON",
@@ -354,6 +370,8 @@ var en = {
354
370
  // read after the state of a menu row when it is not the default (its dot)
355
371
  sectionChanged: ", changed",
356
372
  help: "Help",
373
+ // More's first entry: it opens Help
374
+ helpAndShortcuts: "Help and keyboard shortcuts",
357
375
  shortcutsTitle: "Keyboard shortcuts",
358
376
  // the keys of the shortcuts; "Mod" is Ctrl, or ⌘ on a Mac
359
377
  keys: { Mod: "Ctrl", Shift: "Shift", "Arrow keys": "Arrow keys", Enter: "Enter", Space: "Space", Escape: "Escape", F10: "F10" },
@@ -374,12 +392,47 @@ var en = {
374
392
  chartTitle: "Title",
375
393
  chartTitleNone: "No title",
376
394
  smoothLines: "Smooth lines",
395
+ // the chart's reference lines (Average, Trend and Target are pivotkit-core's words, labels.core)
396
+ referenceLines: "Reference lines",
397
+ targetNone: "No target",
398
+ // the Reference lines row when none is on
399
+ linesOff: "Off",
400
+ targetPercent: "A percentage: type 25% or 0.25.",
401
+ targetPercent100: "A percentage: type 25 or 25%.",
402
+ // a bare number above 1 for a value shown as a share: {typed} as typed, {shown} what it means
403
+ targetPercentHigh: "{typed} is {shown}. Type {typed}% for {share}.",
404
+ targetRemove: "Remove the target",
405
+ // why a reference line is not offered (pivotkit-core's referenceLineRules notes)
406
+ linesNotes: {
407
+ noTotal: "These lines need a total. Switch to Bars, not stacked, to draw them.",
408
+ negative: "A stack with values below zero has no single total, so it gets no average and no trend.",
409
+ percentStack: "Every stack to 100 % is the same height, so it gets no lines.",
410
+ noTime: "A trend needs dates on Rows, in date order.",
411
+ byIndex: "Some categories have no date, so the trend counts them as evenly spaced.",
412
+ mixedUnits: "The values have different units, so one target does not fit them.",
413
+ table: "The lines show here once the chart is drawn."
414
+ },
377
415
  labelPosition: "Labels",
378
416
  labelPositionNames: { outside: "Outside", inside: "Inside" },
379
417
  axisLabels: "Axis labels",
380
418
  axisLabelNames: { auto: "Automatic", all: "All (slanted)", nth: "Every n-th" },
381
419
  groupLabels: "Group labels under the axis",
382
420
  groupLabelNames: { auto: "Automatic", on: "On", off: "Off" },
421
+ tooltip: "Tooltip",
422
+ tooltipNames: { auto: "Automatic", axis: "All series" },
423
+ zoom: "Zoom slider",
424
+ zoomNames: { auto: "Automatic", on: "On", off: "Off" },
425
+ stackPercent: "Stacked to 100 %",
426
+ shownSeries: "Series",
427
+ seriesShownOf: "{shown} of {count} shown",
428
+ chartAxis: "Axis",
429
+ chartLayout: "Layout",
430
+ tooltipShare: "Share in the tooltip",
431
+ colorOf: "Colour of {name}",
432
+ colorDefault: "Default",
433
+ colorRemove: "Remove",
434
+ colorsNotShown: "Colours of names not shown",
435
+ seriesOnly: "The only series is always shown",
383
436
  defaultName: "Use the default name",
384
437
  // sharing a view (the Views menu): the group's title
385
438
  shareThisView: "Share this view",
@@ -426,8 +479,16 @@ var en = {
426
479
  collapseAllDone: "Every group is collapsed already.",
427
480
  groupsCollapsed: { one: "{count} group collapsed", other: "{count} groups collapsed" },
428
481
  groupsExpanded: { one: "{count} group expanded", other: "{count} groups expanded" },
429
- // the chart type menu: how the chart is drawn
430
- chartDisplay: "Display",
482
+ // Expand all and Collapse all in Chart settings › Layout, named by the fields of Rows (the table's
483
+ // Collapse all shows chartShowOnly as its hint); the plain words with one field in Rows
484
+ chartShowEach: "Show each {field}",
485
+ chartShowOnly: "Show {field} only",
486
+ chartShowDetails: "Show details",
487
+ chartShowTotals: "Show group totals only",
488
+ // Layout's row: how the groups of Rows show now
489
+ chartFoldEach: "Each {field}",
490
+ chartFoldOnly: "{field} only",
491
+ chartFoldSome: "Some groups collapsed",
431
492
  // what sharing and the exports said (share-actions.js, export-run.js)
432
493
  toastExported: "Exported {file}",
433
494
  toastLinkCopied: "Link copied",