pivotkit-react 0.8.1 → 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 +102 -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 +442 -208
  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
@@ -0,0 +1,212 @@
1
+ import {
2
+ NOTICES,
3
+ activeEntries,
4
+ chart,
5
+ name,
6
+ seriesOf
7
+ } from "./chunk-YAT2TFMK.js";
8
+ import {
9
+ CHART_TYPES,
10
+ MANY_SERIES,
11
+ SLICE_TYPES,
12
+ chartPlan,
13
+ sourceOf
14
+ } from "./chunk-24T2VRMU.js";
15
+
16
+ // src/tips.js
17
+ import { CATALOG, stacksToPercent, suggestDateUnit, valueAddsUp } from "pivotkit-core";
18
+ var TIP_THRESHOLDS = Object.freeze({
19
+ /** columns of an ungrouped date on Columns from which grouping it is suggested */
20
+ dateColumns: 12,
21
+ /** rows of an ungrouped date on Rows from which grouping it is suggested */
22
+ dateRows: 60,
23
+ /** columns from which swapping rows and columns is suggested (when there are fewer rows) */
24
+ manyColumns: 20,
25
+ /** changes of the view in this session after which saving it as a template is suggested */
26
+ changesBeforeSave: 5,
27
+ /** changes after the first drag during which the Undo and menu tip stays */
28
+ afterDragChanges: 3,
29
+ /** slices from which a pie or a donut suggests bars: a circle reads well up to about 7 parts */
30
+ pieSlices: 7
31
+ });
32
+ var PERCENT_SHOW_AS = Object.freeze(["percentOfGrandTotal", "percentOfRowTotal", "percentOfColumnTotal", "percentOfParentRow", "percentOfParentColumn", "percentRunningTotal", "percentDifferenceFromPrevious"]);
33
+ var derivedBy = (ctx, field) => ctx.view.derived.find((d) => d.name.toLowerCase() === String(field).toLowerCase())?.by ?? "";
34
+ var isRawDate = (ctx, field) => ctx.typeOf(field) === "date" && sourceOf(ctx.view, field).toLowerCase() === String(field).toLowerCase();
35
+ var table = (ctx) => !ctx.failed && !ctx.empty && ctx.display !== "chart";
36
+ var axisChart = (ctx) => chart(ctx) && CHART_TYPES[ctx.chartPlan.name].axis;
37
+ var lines = (ctx) => ["line", "area"].includes(ctx.chartPlan.name);
38
+ var sliceChart = (ctx) => chart(ctx) && SLICE_TYPES.includes(ctx.chartPlan.name);
39
+ var dateOn = (ctx, axis) => ctx.view[axis].some((f) => ctx.typeOf(f) === "date");
40
+ var datesAcross = (ctx) => axisChart(ctx) && !ctx.chartPlan.swap && lines(ctx) && dateOn(ctx, "cols") && !dateOn(ctx, "rows");
41
+ var TIPS = Object.freeze([
42
+ ...NOTICES,
43
+ {
44
+ // "% of row total": what 100 % is
45
+ id: "showAs",
46
+ icon: "sigma",
47
+ when: (ctx) => {
48
+ if (ctx.failed || ctx.empty) {
49
+ return null;
50
+ }
51
+ const spec = ctx.view.values.find((v) => v.showAs && PERCENT_SHOW_AS.includes(v.showAs.type));
52
+ return spec ? { type: spec.showAs.type } : null;
53
+ }
54
+ },
55
+ {
56
+ // column subtotals with two or more fields in Columns: what a Total column next to the
57
+ // others adds up (people read "1 Critical Total" as one more status)
58
+ id: "colSubtotals",
59
+ icon: "sigma",
60
+ action: "colSubtotalsOff",
61
+ when: (ctx) => table(ctx) && ctx.view.values.length > 0 && ctx.view.totals.colSubtotals && ctx.view.cols.length >= 2 && ctx.colSubtotalShown ? {} : null
62
+ },
63
+ {
64
+ // a type the user chose for data over time: lines show it (automatic draws them)
65
+ id: "chartOverTime",
66
+ icon: "line",
67
+ action: "auto",
68
+ when: (ctx) => {
69
+ if (!chart(ctx) || ctx.chartPlan.auto || lines(ctx) || ["heatmap", "combo"].includes(ctx.chartPlan.name)) {
70
+ return null;
71
+ }
72
+ if (chartPlan({ ...ctx.view, chart: { ...ctx.view.chart, type: "auto" } }, ctx.encoded).name !== "line") {
73
+ return null;
74
+ }
75
+ const field = [...ctx.view.rows, ...ctx.view.cols].find((f) => ctx.typeOf(f) === "date" && !CATALOG.cyclicUnits.includes(derivedBy(ctx, f)));
76
+ return field ? { field: name(ctx, field) } : null;
77
+ }
78
+ },
79
+ {
80
+ // a pie of many slices: the small ones cannot be told apart
81
+ id: "pieSlices",
82
+ icon: "chart",
83
+ action: "bars",
84
+ when: (ctx) => sliceChart(ctx) && seriesOf(ctx).categories.length > TIP_THRESHOLDS.pieSlices ? { count: seriesOf(ctx).categories.length, max: TIP_THRESHOLDS.pieSlices } : null
85
+ },
86
+ {
87
+ // a stack adds its parts (stacked bars or areas, also to 100 %): for an average, a minimum or
88
+ // a median the stack's height is no total (pivotkit-core's valueAddsUp, which the tooltip's
89
+ // Total line follows too)
90
+ id: "stackedTotal",
91
+ icon: "chart",
92
+ action: "bars",
93
+ when: (ctx) => {
94
+ const drawn = ctx.chartPlan.chart;
95
+ if (!axisChart(ctx) || !drawn || !(drawn.stacked || stacksToPercent({ ...drawn, stackPercent: ctx.view.chart?.stackPercent })) || seriesOf(ctx).series.length < 2) {
96
+ return null;
97
+ }
98
+ const spec = ctx.view.values.find((v) => !valueAddsUp(v));
99
+ return spec ? { spec } : null;
100
+ }
101
+ },
102
+ {
103
+ // a pie draws one slice per row: the columns are added up
104
+ id: "pieColumns",
105
+ icon: "info",
106
+ action: "bars",
107
+ when: (ctx) => sliceChart(ctx) && ctx.view.cols.length > 0 ? { fields: ctx.view.cols.map((f) => name(ctx, f)).join(", ") } : null
108
+ },
109
+ {
110
+ id: "chartDates",
111
+ action: "swap",
112
+ when: (ctx) => datesAcross(ctx) ? {} : null
113
+ },
114
+ {
115
+ // a line or an area over categories without an order (countries, teams) draws a trend
116
+ // between things that follow no line: bars fit better. Dates, number ranges and a custom
117
+ // order (seasons) are an order
118
+ id: "chartTrend",
119
+ icon: "chart",
120
+ action: "bars",
121
+ when: (ctx) => {
122
+ if (!axisChart(ctx) || ctx.chartPlan.auto || datesAcross(ctx) || !lines(ctx) || ctx.view.rows.length === 0) {
123
+ return null;
124
+ }
125
+ const field = ctx.view.rows[ctx.view.rows.length - 1];
126
+ const ordered = ["date", "number"].includes(ctx.typeOf(field)) || ctx.view.sort.some((s) => s.by === "custom" && String(s.field).toLowerCase() === String(field).toLowerCase());
127
+ return ordered ? null : {};
128
+ }
129
+ },
130
+ {
131
+ id: "chartSeries",
132
+ action: "swap",
133
+ // the dates tip says the same (swap) more precisely; lines over time drawn automatically
134
+ // would draw the same lines after a swap
135
+ when: (ctx) => axisChart(ctx) && !datesAcross(ctx) && !(ctx.chartPlan.auto && lines(ctx)) && seriesOf(ctx).series.length > MANY_SERIES ? { count: seriesOf(ctx).series.length } : null
136
+ },
137
+ {
138
+ // a text field in Values is counted: say so, and what a sum needs
139
+ id: "textValue",
140
+ icon: "sigma",
141
+ when: (ctx) => {
142
+ if (ctx.failed || ctx.empty) {
143
+ return null;
144
+ }
145
+ const spec = ctx.view.values.find((v) => v.field && !v.label && ["string", "boolean"].includes(ctx.typeOf(v.field)));
146
+ return spec ? { field: name(ctx, spec.field) } : null;
147
+ }
148
+ },
149
+ {
150
+ // a date without grouping makes a column per day (or per instant)
151
+ id: "dateUngrouped",
152
+ icon: "date",
153
+ action: "groupDate",
154
+ when: (ctx) => {
155
+ if (!table(ctx)) {
156
+ return null;
157
+ }
158
+ const onCols = ctx.colLeaves > TIP_THRESHOLDS.dateColumns ? ctx.view.cols.find((f) => isRawDate(ctx, f)) : void 0;
159
+ const field = onCols ?? (ctx.rowLeaves > TIP_THRESHOLDS.dateRows ? ctx.view.rows.find((f) => isRawDate(ctx, f)) : void 0);
160
+ if (!field) {
161
+ return null;
162
+ }
163
+ const column = ctx.encoded.column(field);
164
+ const suggested = suggestDateUnit(ctx.encoded, field);
165
+ const unit = !suggested || suggested === "day" && column?.dateOnly ? "yearMonth" : suggested;
166
+ return { field: name(ctx, field), source: field, unit };
167
+ }
168
+ },
169
+ {
170
+ id: "manyColumns",
171
+ icon: "swap",
172
+ action: "swap",
173
+ when: (ctx) => table(ctx) && ctx.view.cols.length > 0 && ctx.colLeaves > TIP_THRESHOLDS.manyColumns && ctx.rowLeaves < ctx.colLeaves ? { count: ctx.colLeaves } : null
174
+ },
175
+ {
176
+ // once after the first drag: Undo and the menus (before the next step: it goes after a few changes)
177
+ id: "afterDrag",
178
+ icon: "undo",
179
+ when: (ctx) => !ctx.failed && ctx.dragAt !== null && ctx.changes - ctx.dragAt <= TIP_THRESHOLDS.afterDragChanges ? {} : null
180
+ },
181
+ {
182
+ // rows without values show no numbers
183
+ id: "values",
184
+ icon: "sigma",
185
+ when: (ctx) => table(ctx) && ctx.view.values.length === 0 ? {} : null
186
+ },
187
+ {
188
+ id: "saveTemplate",
189
+ icon: "bookmark",
190
+ action: "saveTemplate",
191
+ // after a save it waits for as many changes again
192
+ when: (ctx) => ctx.canSave && !ctx.failed && !ctx.empty && ctx.changes - ctx.savedAt >= TIP_THRESHOLDS.changesBeforeSave ? {} : null
193
+ },
194
+ {
195
+ // the empty report: every field has a menu, and Undo is there
196
+ id: "menus",
197
+ icon: "sparkle",
198
+ when: (ctx) => !ctx.failed && ctx.empty && ctx.display !== "chart" && ctx.dragAt === null ? {} : null
199
+ },
200
+ {
201
+ id: "cells",
202
+ icon: "info",
203
+ when: (ctx) => table(ctx) && ctx.tableShown && ctx.view.values.length > 0 && !ctx.drilled ? {} : null
204
+ }
205
+ ]);
206
+ var activeTips = (ctx, options) => activeEntries(TIPS, ctx, options);
207
+
208
+ export {
209
+ TIP_THRESHOLDS,
210
+ TIPS,
211
+ activeTips
212
+ };
@@ -52,6 +52,8 @@ var de = {
52
52
  nameHint: "Gilt mit Enter oder beim Verlassen des Felds; Escape gibt den Namen zur\xFCck.",
53
53
  showAsKeywords: "prozent % anteil",
54
54
  nameKeywords: "umbenennen bezeichnung titel",
55
+ fieldNameHint: "Tabelle, Diagramm und Exporte zeigen diesen Namen.",
56
+ fieldNameReset: "Namen des Felds verwenden",
55
57
  filterKeywords: "werte ausw\xE4hlen regel regeln bedingung zeitraum datum",
56
58
  formatDecimals: { one: "Zahl, {count} Dezimalstelle", other: "Zahl, {count} Dezimalstellen" },
57
59
  listAnd: " und ",
@@ -144,9 +146,9 @@ var de = {
144
146
  rulesTitle: "Regeln",
145
147
  ruleAnd: "und",
146
148
  addRule: "Regel hinzuf\xFCgen",
147
- addRuleItem: "{field} vergleichen",
148
- addRuleTotal: "Gesamtwert vergleichen",
149
- addRuleName: "Regel zum Namen",
149
+ addRuleItem: "Nach {field} filtern",
150
+ addRuleTotal: "Nach Gesamtwert filtern",
151
+ addRuleName: "Nach Name filtern",
150
152
  removeRule: "Diese Regel entfernen",
151
153
  rulesFull: "H\xF6chstens {max} Regeln je Feld.",
152
154
  ruleName: "Name",
@@ -164,6 +166,7 @@ var de = {
164
166
  moveRight: "Nach rechts",
165
167
  remove: "Feld entfernen",
166
168
  chartAutoNow: "Jetzt: {type}",
169
+ chartNeedsValues: "Braucht zwei Werte.",
167
170
  sharedViews: "Gemeinsame Ansichten",
168
171
  myViews: "Meine Ansichten",
169
172
  noViews: "Noch keine gespeicherten Ansichten.",
@@ -237,6 +240,15 @@ var de = {
237
240
  },
238
241
  conditional: "Hervorheben",
239
242
  conditionalNone: "Keine",
243
+ scaleColors: "Farben",
244
+ scaleKeywords: "Farbe Farbskala Palette",
245
+ scaleNames: { theme: "Farben des Designs, hell bis dunkel", blueOrange: "Niedrig blau, hoch orange", blueRed: "Niedrig blau, hoch rot", redGreen: "Niedrig rot, hoch gr\xFCn" },
246
+ scaleRedGreenHint: "Manche Menschen k\xF6nnen Rot und Gr\xFCn nicht unterscheiden. Blau und Orange sind leichter.",
247
+ scaleOwn: "Eigene Farben der Ansicht",
248
+ pointMenu: "{name} filtern oder \xF6ffnen",
249
+ pointRows: "Zeilen zeigen",
250
+ pointOnly: "Nur {item}",
251
+ pointWithout: "Ohne {item}",
240
252
  colorScale: "Farbskala",
241
253
  dataBar: "Datenbalken",
242
254
  rename: "Name",
@@ -245,6 +257,7 @@ var de = {
245
257
  groupNone: "Keine Gruppierung (jedes Datum mit Uhrzeit)",
246
258
  groupTimeline: "Ein Eintrag pro Zeitraum",
247
259
  groupCyclic: "Gleicher Zeitraum, Jahre zusammengefasst",
260
+ groupClearsFilter: "Eine andere Gruppierung beginnt mit allen Eintr\xE4gen; R\xFCckg\xE4ngig holt den Filter zur\xFCck.",
248
261
  groupDataRange: { one: "Daten vor den Filtern: {range} ({count} Tag)", other: "Daten vor den Filtern: {range} ({count} Tage)" },
249
262
  groupYearsTogether: { one: "{count} Jahr zusammen", other: "{count} Jahre zusammen" },
250
263
  unitHints: {
@@ -278,10 +291,11 @@ var de = {
278
291
  selectNone: "Keine ausw\xE4hlen",
279
292
  onlyThis: "Nur",
280
293
  valuesShown: "{shown} von {total} Werten; suchen, um weitere zu finden",
281
- conditionNumber: "Bedingung f\xFCr die Beschriftung",
282
- conditionNone: "Keine Bedingung",
294
+ conditionNumber: "Der Name \u2026",
295
+ conditionNone: "(jeder Name)",
283
296
  conditionValue: "Text",
284
297
  selected: "{count} ausgew\xE4hlt",
298
+ selectedAll: "Alle {count} ausgew\xE4hlt \xB7 noch nichts gefiltert",
285
299
  exportDownload: "Herunterladen",
286
300
  exportCopy: "Kopieren",
287
301
  exportXlsx: "Excel-Arbeitsmappe (.xlsx)",
@@ -348,6 +362,7 @@ var de = {
348
362
  referenceLines: "Bezugslinien",
349
363
  targetNone: "Kein Ziel",
350
364
  linesOff: "Aus",
365
+ linesExtremes: "Hoch- und Tiefpunkte",
351
366
  targetPercent: "Ein Prozentwert: 25 % oder 0,25 eingeben.",
352
367
  targetPercent100: "Ein Prozentwert: 25 oder 25 % eingeben.",
353
368
  targetPercentHigh: "{typed} sind {shown}. F\xFCr {share} {typed} % eingeben.",
@@ -183,6 +183,8 @@ var PATHS = {
183
183
  pie: "M12 3a9 9 0 1 0 9 9h-9Z M15 3.5A9 9 0 0 1 20.5 9H15Z",
184
184
  donut: "M12 3a9 9 0 1 0 9 9h-4a5 5 0 1 1-5-5Z M14.5 3.4A9 9 0 0 1 20.6 9.5h-4.1a5 5 0 0 0-2-2Z",
185
185
  heatmap: "M4 4h7v7H4zM13 4h7v7h-7zM4 13h7v7H4zM13 13h7v7h-7z",
186
+ combo: "M4 20h16M7 17v-5M12 17v-8M17 17v-6M4 9l5-3 5 2 6-4",
187
+ treemap: "M4 4h9v10H4zM15 4h5v6h-5zM15 12h5v8h-5zM4 16h9v4H4z",
186
188
  download: "M12 4v11M7 10l5 5 5-5M5 20h14",
187
189
  bookmark: "M7 4h10a1 1 0 0 1 1 1v15l-6-4-6 4V5a1 1 0 0 1 1-1Z",
188
190
  sliders: "M4 7h10M18 7h2M4 17h4M12 17h8M16 5v4M10 15v4",
@@ -372,6 +374,7 @@ function Popover({ open, anchor, onClose, label, role = "dialog", align = "start
372
374
  /** @type {HTMLDivElement | null} */
373
375
  null
374
376
  );
377
+ const scrimPressed = useRef2(false);
375
378
  const [top] = useState(() => hasTopLayer() && (!passive || Boolean(anchor.current?.closest?.(".pk-popover")?.hasAttribute("popover"))));
376
379
  const inTopLayer = (
377
380
  /** @type {any} */
@@ -557,7 +560,7 @@ function Popover({ open, anchor, onClose, label, role = "dialog", align = "start
557
560
  "hidden"
558
561
  ) };
559
562
  return createPortal(
560
- /* @__PURE__ */ React2.createElement(React2.Fragment, null, sheet ? /* @__PURE__ */ React2.createElement("div", { ref: scrim, className: "pk-scrim", ...inTopLayer, onClick: onClose, "aria-hidden": "true" }) : null, /* @__PURE__ */ React2.createElement(
563
+ /* @__PURE__ */ React2.createElement(React2.Fragment, null, sheet ? /* @__PURE__ */ React2.createElement("div", { ref: scrim, className: "pk-scrim", ...inTopLayer, onPointerDown: (e) => scrimPressed.current = e.target === e.currentTarget, onClick: () => scrimPressed.current && onClose(), "aria-hidden": "true" }) : null, /* @__PURE__ */ React2.createElement(
561
564
  "div",
562
565
  {
563
566
  ref,
@@ -40,11 +40,11 @@ var de = {
40
40
  other: "es wird weggelassen"
41
41
  },
42
42
  codes: {
43
- notView: "das ist keine pivotkit-Ansicht - der Bericht beginnt leer",
43
+ notView: "das ist keine Ansicht - der Bericht beginnt leer",
44
44
  notJson: "das ist kein g\xFCltiges JSON - der Bericht beginnt leer",
45
45
  tooLarge: "die Ansicht ist zu gro\xDF - der Bericht beginnt leer",
46
46
  badVersion: "die Ansicht hat eine unbekannte Version - der Bericht beginnt leer",
47
- newerVersion: "die Ansicht stammt aus einem neueren pivotkit - der Bericht beginnt leer; aktualisieren Sie pivotkit, um sie zu \xF6ffnen",
47
+ newerVersion: "die Ansicht stammt aus einer neueren Version - der Bericht beginnt leer; aktualisieren Sie die Anwendung, um sie zu \xF6ffnen",
48
48
  noMigration: "die Ansicht l\xE4sst sich nicht auf diese Version bringen - der Bericht beginnt leer",
49
49
  unknownKey: "diese Einstellung ist hier unbekannt - sie wird ignoriert",
50
50
  notList: "das ist keine Liste - nichts davon wird verwendet",
@@ -69,6 +69,8 @@ var de = {
69
69
  aggregatorType: "{agg} geht nicht mit \u201E{field}\u201C ({type}) - {dropped}",
70
70
  unknownFormat: "das Zahlenformat \u201E{value}\u201C ist unbekannt - das \xFCbliche Format gilt",
71
71
  badLabel: "der Name ist leer oder l\xE4nger als {max} Zeichen - der \xFCbliche Name gilt",
72
+ labelTwice: "ein Feld bekommt zweimal einen Namen, in anderer Schreibweise - der letzte Name gilt",
73
+ labelTaken: "ein anderes Feld im Bericht hei\xDFt auch \u201E{value}\u201C - die beiden \xDCberschriften sehen gleich aus",
72
74
  unknownShowAs: "\u201EAnzeigen als\u201C \u201E{value}\u201C ist unbekannt - der Wert wird ohne Berechnung gezeigt",
73
75
  showAsNotAdditive: "dieses \u201EAnzeigen als\u201C braucht eine Summe oder Anzahl, nicht {agg} - der Wert wird ohne Berechnung gezeigt",
74
76
  showAsNotNumber: "{agg} ergibt keine Zahl f\xFCr einen Anteil - der Wert wird ohne Berechnung gezeigt",
@@ -99,6 +101,7 @@ var de = {
99
101
  filterRelativeAnchor: "der Zeitraum kann ab \u201Etoday\u201C (heute), \u201Elatest\u201C (letzter Eintrag), \u201Efirst\u201C (erster Eintrag) oder einem Datum z\xE4hlen, nicht ab \u201E{value}\u201C - dieser Filter wird weggelassen",
100
102
  sortNoItems: "die eigene Reihenfolge nennt keine Eintr\xE4ge - die \xFCbliche Reihenfolge gilt",
101
103
  sortedTwice: "das Feld wird zweimal sortiert - nur seine erste Sortierung gilt",
104
+ sortColumn: "die Spalte, nach der es sortiert, ist nicht nutzbar - die Zeilen werden nach der ganzen Zeile sortiert",
102
105
  badTotals: "die Summen lassen sich nicht lesen - die \xFCblichen Summen werden gezeigt",
103
106
  collapsedPath: "eine zugeklappte Gruppe passt nicht zu den Feldern - sie wird aufgeklappt gezeigt",
104
107
  unknownSetting: "{setting} \u201E{value}\u201C ist unbekannt - die Voreinstellung gilt",
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  MENU_TEXTS,
3
3
  mergeLabels
4
- } from "./chunk-3WWWKPB4.js";
4
+ } from "./chunk-V233JHVY.js";
5
5
 
6
6
  // src/menu-labels.js
7
7
  var en = {
@@ -63,6 +63,9 @@ var en = {
63
63
  // more words the search of a menu finds an entry by
64
64
  showAsKeywords: "percent % share",
65
65
  nameKeywords: "rename label title",
66
+ // a field's own name in the report (#158)
67
+ fieldNameHint: "The table, the chart and the exports show this name.",
68
+ fieldNameReset: "Use the field's name",
66
69
  filterKeywords: "values pick choose rule rules condition range dates",
67
70
  formatDecimals: { one: "Number, {count} decimal", other: "Number, {count} decimals" },
68
71
  // the Filter level: what it keeps in words, what its buttons take away, its folded part
@@ -171,9 +174,9 @@ var en = {
171
174
  rulesTitle: "Rules",
172
175
  ruleAnd: "and",
173
176
  addRule: "Add a rule",
174
- addRuleItem: "Compare {field}",
175
- addRuleTotal: "Compare its total",
176
- addRuleName: "Rule on the name",
177
+ addRuleItem: "Filter by {field}",
178
+ addRuleTotal: "Filter by total",
179
+ addRuleName: "Filter by name",
177
180
  removeRule: "Remove this rule",
178
181
  rulesFull: "At most {max} rules per field.",
179
182
  ruleName: "The name",
@@ -195,6 +198,8 @@ var en = {
195
198
  remove: "Remove field",
196
199
  // the hint of "Automatic" in the chart type menu: the type it draws for this view
197
200
  chartAutoNow: "Now: {type}",
201
+ // a chart type that needs more values than the report has (bars and lines need two)
202
+ chartNeedsValues: "Needs two values.",
198
203
  // the Views menu: the host's shared views, the user's own ("My views") and the browser store
199
204
  sharedViews: "Shared views",
200
205
  myViews: "My views",
@@ -275,6 +280,17 @@ var en = {
275
280
  },
276
281
  conditional: "Highlight",
277
282
  conditionalNone: "None",
283
+ // Highlight › Colour scale: its colours, low to high
284
+ scaleColors: "Colours",
285
+ scaleKeywords: "colour color scale palette",
286
+ scaleNames: { theme: "Theme colours, light to dark", blueOrange: "Low blue, high orange", blueRed: "Low blue, high red", redGreen: "Low red, high green" },
287
+ scaleRedGreenHint: "Some people cannot tell red and green apart. Blue and orange are easier.",
288
+ scaleOwn: "The view's own colours",
289
+ // the small menu at a clicked bar, point or slice of the chart (#53)
290
+ pointMenu: "Filter or open {name}",
291
+ pointRows: "Show the rows",
292
+ pointOnly: "Only {item}",
293
+ pointWithout: "Without {item}",
278
294
  colorScale: "Colour scale",
279
295
  dataBar: "Data bars",
280
296
  rename: "Name",
@@ -283,6 +299,8 @@ var en = {
283
299
  groupNone: "No grouping (every date and time)",
284
300
  groupTimeline: "One item per period",
285
301
  groupCyclic: "Same period, years combined",
302
+ // under the range when the field is filtered: what a new grouping does to the filter
303
+ groupClearsFilter: "Another grouping starts with every item; Undo brings the filter back.",
286
304
  groupDataRange: { one: "Data before filters: {range} ({count} day)", other: "Data before filters: {range} ({count} days)" },
287
305
  groupYearsTogether: { one: "{count} year together", other: "{count} years together" },
288
306
  unitHints: {
@@ -318,10 +336,12 @@ var en = {
318
336
  selectNone: "Select none",
319
337
  onlyThis: "Only",
320
338
  valuesShown: "{shown} of {total} values; search to find more",
321
- conditionNumber: "Condition on the label",
322
- conditionNone: "No condition",
339
+ conditionNumber: "Only if the name\u2026",
340
+ conditionNone: "(any name)",
323
341
  conditionValue: "Text",
324
342
  selected: "{count} selected",
343
+ // every value ticked and no condition: the filter keeps everything
344
+ selectedAll: "All {count} selected \xB7 nothing filtered yet",
325
345
  // the Export menu
326
346
  exportDownload: "Download",
327
347
  exportCopy: "Copy",
@@ -397,6 +417,8 @@ var en = {
397
417
  targetNone: "No target",
398
418
  // the Reference lines row when none is on
399
419
  linesOff: "Off",
420
+ // the switch for a dot with ▲ or ▼ at each series' highest and lowest value
421
+ linesExtremes: "High and low points",
400
422
  targetPercent: "A percentage: type 25% or 0.25.",
401
423
  targetPercent100: "A percentage: type 25 or 25%.",
402
424
  // a bare number above 1 for a value shown as a share: {typed} as typed, {shown} what it means
@@ -46,11 +46,11 @@ var en = {
46
46
  other: "it is left out"
47
47
  },
48
48
  codes: {
49
- notView: "this is not a pivotkit view - the report starts empty",
49
+ notView: "this is not a view - the report starts empty",
50
50
  notJson: "this is not valid JSON - the report starts empty",
51
51
  tooLarge: "the view is too large - the report starts empty",
52
52
  badVersion: "the view has an unknown version - the report starts empty",
53
- newerVersion: "the view comes from a newer pivotkit - the report starts empty; update pivotkit to open it",
53
+ newerVersion: "the view comes from a newer version - the report starts empty; update the application to open it",
54
54
  noMigration: "the view cannot be brought to this version - the report starts empty",
55
55
  unknownKey: "this setting is unknown here - it is ignored",
56
56
  notList: "this is not a list - nothing of it is used",
@@ -76,6 +76,9 @@ var en = {
76
76
  aggregatorType: "{agg} does not work on \u201C{field}\u201D ({type}) - {dropped}",
77
77
  unknownFormat: "the number format \u201C{value}\u201D is unknown - the usual format is used",
78
78
  badLabel: "the name is empty or longer than {max} characters - the usual name is used",
79
+ // {field} would read as the view's own name in the report, so these lines name the name only
80
+ labelTwice: "a field is named twice, in another spelling - the last name is used",
81
+ labelTaken: "another field of the report is called \u201C{value}\u201D too - the two headers look the same",
79
82
  unknownShowAs: "\u201CShow as\u201D \u201C{value}\u201D is unknown - the plain value is shown",
80
83
  showAsNotAdditive: "this \u201CShow as\u201D needs a sum or a count, not {agg} - the plain value is shown",
81
84
  showAsNotNumber: "{agg} gives no number to show as a share - the plain value is shown",
@@ -106,6 +109,7 @@ var en = {
106
109
  filterRelativeAnchor: "the range can count from \u201Ctoday\u201D, \u201Clatest\u201D (the latest record), \u201Cfirst\u201D (the first record) or a date, not from \u201C{value}\u201D - this filter is left out",
107
110
  sortNoItems: "the custom order lists no items - the usual order is used",
108
111
  sortedTwice: "the field is sorted twice - only its first sort is used",
112
+ sortColumn: "the column it sorts by cannot be used - the rows are sorted by the whole row",
109
113
  badTotals: "the totals cannot be read - the usual totals are shown",
110
114
  collapsedPath: "a collapsed group does not fit the fields - it is shown expanded",
111
115
  unknownSetting: "the {setting} \u201C{value}\u201D is unknown - the default is used",
@@ -4,7 +4,7 @@ import {
4
4
  mergeLabels,
5
5
  messageOf,
6
6
  plural
7
- } from "./chunk-3WWWKPB4.js";
7
+ } from "./chunk-V233JHVY.js";
8
8
 
9
9
  // src/import-labels.js
10
10
  var en = {