pivotkit-react 0.4.0 → 0.5.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 (48) hide show
  1. package/CHANGELOG.md +219 -1
  2. package/README.md +2 -2
  3. package/dist/chunks/{chunk-YITKWZ4L.js → chunk-2AT72SLA.js} +604 -505
  4. package/dist/chunks/{chunk-ZYEYZSYL.js → chunk-3E4NB5RZ.js} +30 -2
  5. package/dist/chunks/{chunk-6MDAL3IO.js → chunk-3WUGQPWV.js} +78 -6
  6. package/dist/chunks/{chunk-WB4GKWFQ.js → chunk-4RS72AAA.js} +26 -4
  7. package/dist/chunks/{chunk-EM23V5GH.js → chunk-E6M57YLL.js} +19 -8
  8. package/dist/chunks/{chunk-RWYHJRQO.js → chunk-JMRTIOX4.js} +17 -7
  9. package/dist/chunks/{chunk-XN55BQ4M.js → chunk-RIOSIYGC.js} +54 -7
  10. package/dist/chunks/{chunk-LEN5RPBM.js → chunk-U5Q5I2D5.js} +34 -5
  11. package/dist/chunks/report-run-BZBFOMPF.js +12 -0
  12. package/dist/chunks/{unused-texts-K3VFH65P.js → unused-texts-Y4R67XSN.js} +1 -1
  13. package/dist/chunks/{unused-texts-de-OW4TGIVX.js → unused-texts-de-6YVPTNVS.js} +1 -1
  14. package/dist/echarts.js +38 -156
  15. package/dist/import-ui.js +8 -12
  16. package/dist/index.js +97 -82
  17. package/dist/labels.js +6 -6
  18. package/dist/menu-texts-de.js +1 -1
  19. package/dist/menus.js +650 -245
  20. package/dist/styles.css +207 -93
  21. package/package.json +8 -4
  22. package/types/chart-decorate.d.ts +28 -4
  23. package/types/chart-types.d.ts +2 -4
  24. package/types/echarts.d.ts +1 -1
  25. package/types/export-run.d.ts +37 -3
  26. package/types/filter.d.ts +1 -1
  27. package/types/icons.d.ts +1 -0
  28. package/types/import-labels.d.ts +41 -0
  29. package/types/import-limits.d.ts +6 -0
  30. package/types/index.d.ts +25 -7
  31. package/types/labels.d.ts +198 -2
  32. package/types/light-tokens.d.ts +16 -0
  33. package/types/menu-labels.d.ts +37 -14
  34. package/types/menu-ops.d.ts +161 -40
  35. package/types/menu-topics.d.ts +7 -4
  36. package/types/names.d.ts +47 -19
  37. package/types/place.d.ts +24 -0
  38. package/types/print-frame.d.ts +24 -0
  39. package/types/report-run.d.ts +14 -0
  40. package/types/share-actions.d.ts +3 -3
  41. package/types/share.d.ts +13 -17
  42. package/types/theme.d.ts +2 -16
  43. package/types/tips.d.ts +5 -0
  44. package/types/toolbar-panels.d.ts +5 -4
  45. package/types/unused-texts.d.ts +13 -3
  46. package/types/use-export.d.ts +2 -2
  47. package/types/view-ops.d.ts +65 -6
  48. package/types/chart-layout.d.ts +0 -111
@@ -2,8 +2,9 @@ import {
2
2
  MENU_TEXTS,
3
3
  fill,
4
4
  mergeLabels,
5
+ messageOf,
5
6
  plural
6
- } from "./chunk-6MDAL3IO.js";
7
+ } from "./chunk-3WUGQPWV.js";
7
8
 
8
9
  // src/import-labels.js
9
10
  var en = {
@@ -42,6 +43,10 @@ var en = {
42
43
  originalShown: "The original data is shown",
43
44
  failed: "{name} could not be loaded: {message}",
44
45
  refused: "{name} was not loaded: {message}",
46
+ // a limit of pivotkit-core the file is over; {key} the limit's key, as the reader names it
47
+ overLimit: "it has more than {max} {what} ({key}): load a smaller extract of it, or a host can raise this limit",
48
+ // the limits a reader stops a file at (archiveEntries and unpackedBytes: pivotkit-xlsx's ZIP checks)
49
+ limitWhat: { rows: "rows", columns: "columns", fileBytes: "bytes", importCells: "values (rows x columns)", archiveEntries: "parts in its ZIP directory", unpackedBytes: "bytes unpacked" },
45
50
  sourceLine: "{name}, only in this browser",
46
51
  sourceSheet: "{name}, sheet \u201C{sheet}\u201D, only in this browser",
47
52
  notes: {
@@ -102,6 +107,8 @@ var de = {
102
107
  originalShown: "Die Originaldaten werden gezeigt",
103
108
  failed: "{name} konnte nicht geladen werden: {message}",
104
109
  refused: "{name} wurde nicht geladen: {message}",
110
+ overLimit: "sie hat mehr als {max} {what} ({key}): eine kleinere Auswahl daraus laden, oder eine Anwendung kann diese Grenze anheben",
111
+ limitWhat: { rows: "Zeilen", columns: "Spalten", fileBytes: "Bytes", importCells: "Werte (Zeilen x Spalten)", archiveEntries: "Teile in ihrem ZIP-Verzeichnis", unpackedBytes: "entpackte Bytes" },
105
112
  sourceLine: "{name}, nur in diesem Browser",
106
113
  sourceSheet: "{name}, Blatt \u201E{sheet}\u201C, nur in diesem Browser",
107
114
  notes: {
@@ -178,10 +185,31 @@ function noteText(note, texts, where) {
178
185
  }
179
186
  return fill(typeof form === "string" ? form : plural(form, Number(p.count) || 0, where), values);
180
187
  }
188
+ function errorText(error, name, texts, where) {
189
+ const e = (
190
+ /** @type {any} */
191
+ error
192
+ );
193
+ const d = e && typeof e === "object" && e.code === "LIMIT_EXCEEDED" && e.details && typeof e.details === "object" ? e.details : null;
194
+ if (d && typeof d.limit === "string" && Object.hasOwn(texts.limitWhat, d.limit) && typeof d.max === "number") {
195
+ return fill(texts.overLimit, { max: d.max.toLocaleString(where.locale), what: (
196
+ /** @type {any} */
197
+ texts.limitWhat[d.limit]
198
+ ), key: `limits.${d.limit}` });
199
+ }
200
+ const text = messageOf(error);
201
+ for (const prefix of [`"${name}": `, `"${name}" `]) {
202
+ if (text.startsWith(prefix)) {
203
+ return text.slice(prefix.length);
204
+ }
205
+ }
206
+ return text;
207
+ }
181
208
 
182
209
  export {
183
210
  en,
184
211
  de,
185
212
  importLabels,
186
- noteText
213
+ noteText,
214
+ errorText
187
215
  };
@@ -144,7 +144,6 @@ var en = {
144
144
  topBadge: "Top {count}",
145
145
  bottomBadge: "Bottom {count}",
146
146
  by: "by {value}",
147
- filter: "Filter\u2026",
148
147
  filtered: "Filtered",
149
148
  filterSummary: "{shown} of {total}",
150
149
  /** a text the user typed or a name, quoted as the language quotes: a text condition, field names */
@@ -245,6 +244,7 @@ var en = {
245
244
  percentRunningTotal: "100% is the total along the axis: the running total ends at 100%.",
246
245
  percentDifferenceFromPrevious: "The previous item is 100%: each value says how much it grew or shrank from it."
247
246
  },
247
+ colSubtotals: "A Total column adds up the columns of the group before it; it is not an item of its own.",
248
248
  chartOverTime: "{field} is a date: lines show how the values change over time.",
249
249
  pieSlices: "A pie works for up to about {max} parts; this one has {count}. Bars compare them more easily.",
250
250
  pieColumns: "A pie draws one slice per row and adds up the columns ({fields}). Bars show the columns side by side.",
@@ -266,7 +266,8 @@ var en = {
266
266
  groupDate: "Group by {unit}",
267
267
  saveTemplate: "Save view",
268
268
  bars: "Switch to Bars",
269
- auto: "Show as lines over time"
269
+ auto: "Show as lines over time",
270
+ colSubtotalsOff: "Hide column subtotals"
270
271
  },
271
272
  dismissTip: "Dismiss tip",
272
273
  tipsTitle: "Tips",
@@ -326,12 +327,48 @@ var en = {
326
327
  // the measure a sort or a filter goes by when the view shows no value: the rows counted
327
328
  countOfRows: "Count of rows",
328
329
  // a rule on the names of a field's items, on its chip and in its menu: "contains “an”"
329
- labelOps: { equals: "is", notEquals: "is not", contains: "contains", notContains: "does not contain", beginsWith: "begins with", endsWith: "ends with" },
330
+ labelOps: { equals: "is", notEquals: "is not", contains: "contains", notContains: "does not contain", beginsWith: "begins with", notBeginsWith: "does not begin with", endsWith: "ends with", notEndsWith: "does not end with" },
331
+ // a rule inverted (a loaded view's "not" the menus have no word for): "not (begins with “a”)"
332
+ notRule: "not ({rule})",
330
333
  // a relative date range and a date compared, in short (the chip and the Filter level): "last 5 years (2022–2026)", "from 2022"
331
334
  relative: { year: "this year", years: "last {count} years", month: "last {count} month", months: "last {count} months", day: "last {count} day", days: "last {count} days" },
332
335
  withRange: "{text} ({range})",
333
336
  // the range counted back from the data's latest record, and the data's share of a range
334
337
  relativeTo: "{text} to {end}",
338
+ // a relative range the menus do not write yet (a loaded view's): its words, and the dates it keeps
339
+ relativeMore: {
340
+ last: {
341
+ hour: { one: "last {count} hour", other: "last {count} hours" },
342
+ day: { one: "last {count} day", other: "last {count} days" },
343
+ week: { one: "last {count} week", other: "last {count} weeks" },
344
+ month: { one: "last {count} month", other: "last {count} months" },
345
+ quarter: { one: "last {count} quarter", other: "last {count} quarters" },
346
+ year: { one: "last {count} year", other: "last {count} years" }
347
+ },
348
+ next: {
349
+ hour: { one: "next {count} hour", other: "next {count} hours" },
350
+ day: { one: "next {count} day", other: "next {count} days" },
351
+ week: { one: "next {count} week", other: "next {count} weeks" },
352
+ month: { one: "next {count} month", other: "next {count} months" },
353
+ quarter: { one: "next {count} quarter", other: "next {count} quarters" },
354
+ year: { one: "next {count} year", other: "next {count} years" }
355
+ },
356
+ before: {
357
+ hour: { one: "before the last {count} hour", other: "before the last {count} hours" },
358
+ day: { one: "before the last {count} day", other: "before the last {count} days" },
359
+ week: { one: "before the last {count} week", other: "before the last {count} weeks" },
360
+ month: { one: "before the last {count} month", other: "before the last {count} months" },
361
+ quarter: { one: "before the last {count} quarter", other: "before the last {count} quarters" },
362
+ year: { one: "before the last {count} year", other: "before the last {count} years" }
363
+ },
364
+ this: { hour: "this hour", day: "today", week: "this week", month: "this month", quarter: "this quarter", year: "this year" },
365
+ rolling: "{text}, rolling",
366
+ withoutCurrent: "{text}, current period excluded",
367
+ fromLatest: "{text}, counted from the latest record",
368
+ fromFirst: "{text}, counted from the first record",
369
+ fromDate: "{text}, counted from {date}",
370
+ until: "until {to}"
371
+ },
335
372
  withShare: "{text} ({range}; {missing})",
336
373
  noData: { one: "{range} has no data", other: "{range} have no data" },
337
374
  compareShort: { "=": "{value}", "!=": "not {value}", ">": "after {value}", ">=": "from {value}", "<": "before {value}", "<=": "up to {value}", between: "{from} to {to}", notBetween: "not {from} to {to}" },
@@ -497,7 +534,6 @@ var de = {
497
534
  topBadge: "Top {count}",
498
535
  bottomBadge: "Letzte {count}",
499
536
  by: "nach {value}",
500
- filter: "Filtern\u2026",
501
537
  filtered: "Gefiltert",
502
538
  filterSummary: "{shown} von {total}",
503
539
  quote: "\u201E{text}\u201C",
@@ -587,6 +623,7 @@ var de = {
587
623
  chartOverTime: "{field} ist ein Datum: Linien zeigen, wie sich die Werte \xFCber die Zeit \xE4ndern.",
588
624
  pieSlices: "Ein Kreis eignet sich f\xFCr bis zu etwa {max} Teile; dieser hat {count}. Balken lassen sich leichter vergleichen.",
589
625
  pieColumns: "Ein Kreis zeigt ein St\xFCck je Zeile und addiert daf\xFCr die Spalten ({fields}). Balken zeigen die Spalten nebeneinander.",
626
+ colSubtotals: "Eine Spalte \u201E\u2026 gesamt\u201C addiert die Spalten der Gruppe davor; sie ist kein eigener Eintrag.",
590
627
  chartDates: "Die Daten liegen in Spalten, so wird jedes Datum eine eigene Linie. Zeilen und Spalten tauschen, um die Daten entlang der Achse zu zeichnen.",
591
628
  chartTrend: "Linien verbinden Punkte zu einem Verlauf. F\xFCr Kategorien wie L\xE4nder passen Balken besser.",
592
629
  chartSeries: "{count} Reihen sind schwer zu unterscheiden. Zeilen und Spalten tauschen oder Spalten auf weniger Eintr\xE4ge filtern.",
@@ -605,7 +642,8 @@ var de = {
605
642
  groupDate: "Nach {unit} gruppieren",
606
643
  saveTemplate: "Ansicht speichern",
607
644
  bars: "Zu Balken wechseln",
608
- auto: "Als Linien \xFCber die Zeit zeigen"
645
+ auto: "Als Linien \xFCber die Zeit zeigen",
646
+ colSubtotalsOff: "Teilergebnisse der Spalten ausblenden"
609
647
  },
610
648
  dismissTip: "Tipp ausblenden",
611
649
  tipsTitle: "Tipps",
@@ -654,10 +692,44 @@ var de = {
654
692
  },
655
693
  valueConditions: { compare: "{value} {op} {number}", between: "{value} zwischen {from} und {to}", notBetween: "{value} nicht zwischen {from} und {to}" },
656
694
  countOfRows: "Anzahl der Zeilen",
657
- labelOps: { equals: "ist", notEquals: "ist nicht", contains: "enth\xE4lt", notContains: "enth\xE4lt nicht", beginsWith: "beginnt mit", endsWith: "endet mit" },
695
+ labelOps: { equals: "ist", notEquals: "ist nicht", contains: "enth\xE4lt", notContains: "enth\xE4lt nicht", beginsWith: "beginnt mit", notBeginsWith: "beginnt nicht mit", endsWith: "endet mit", notEndsWith: "endet nicht mit" },
696
+ notRule: "nicht ({rule})",
658
697
  relative: { year: "dieses Jahr", years: "letzte {count} Jahre", month: "letzter {count} Monat", months: "letzte {count} Monate", day: "letzter {count} Tag", days: "letzte {count} Tage" },
659
698
  withRange: "{text} ({range})",
660
699
  relativeTo: "{text} bis {end}",
700
+ relativeMore: {
701
+ last: {
702
+ hour: { one: "letzte {count} Stunde", other: "letzte {count} Stunden" },
703
+ day: { one: "letzter {count} Tag", other: "letzte {count} Tage" },
704
+ week: { one: "letzte {count} Woche", other: "letzte {count} Wochen" },
705
+ month: { one: "letzter {count} Monat", other: "letzte {count} Monate" },
706
+ quarter: { one: "letztes {count} Quartal", other: "letzte {count} Quartale" },
707
+ year: { one: "letztes {count} Jahr", other: "letzte {count} Jahre" }
708
+ },
709
+ next: {
710
+ hour: { one: "n\xE4chste {count} Stunde", other: "n\xE4chste {count} Stunden" },
711
+ day: { one: "n\xE4chster {count} Tag", other: "n\xE4chste {count} Tage" },
712
+ week: { one: "n\xE4chste {count} Woche", other: "n\xE4chste {count} Wochen" },
713
+ month: { one: "n\xE4chster {count} Monat", other: "n\xE4chste {count} Monate" },
714
+ quarter: { one: "n\xE4chstes {count} Quartal", other: "n\xE4chste {count} Quartale" },
715
+ year: { one: "n\xE4chstes {count} Jahr", other: "n\xE4chste {count} Jahre" }
716
+ },
717
+ before: {
718
+ hour: { one: "vor der letzten {count} Stunde", other: "vor den letzten {count} Stunden" },
719
+ day: { one: "vor dem letzten {count} Tag", other: "vor den letzten {count} Tagen" },
720
+ week: { one: "vor der letzten {count} Woche", other: "vor den letzten {count} Wochen" },
721
+ month: { one: "vor dem letzten {count} Monat", other: "vor den letzten {count} Monaten" },
722
+ quarter: { one: "vor dem letzten {count} Quartal", other: "vor den letzten {count} Quartalen" },
723
+ year: { one: "vor dem letzten {count} Jahr", other: "vor den letzten {count} Jahren" }
724
+ },
725
+ this: { hour: "diese Stunde", day: "heute", week: "diese Woche", month: "dieser Monat", quarter: "dieses Quartal", year: "dieses Jahr" },
726
+ rolling: "{text}, gleitend",
727
+ withoutCurrent: "{text}, ohne den laufenden Zeitraum",
728
+ fromLatest: "{text}, gez\xE4hlt ab dem letzten Datensatz",
729
+ fromFirst: "{text}, gez\xE4hlt ab dem ersten Datensatz",
730
+ fromDate: "{text}, gez\xE4hlt ab {date}",
731
+ until: "bis {to}"
732
+ },
661
733
  withShare: "{text} ({range}; {missing})",
662
734
  noData: { one: "{range} hat keine Daten", other: "{range} haben keine Daten" },
663
735
  compareShort: { "=": "{value}", "!=": "nicht {value}", ">": "nach {value}", ">=": "ab {value}", "<": "vor {value}", "<=": "bis {value}", between: "{from} bis {to}", notBetween: "nicht {from} bis {to}" },
@@ -4,12 +4,14 @@ var de = {
4
4
  settingInfo: {
5
5
  grandTotalRow: "Eine letzte Zeile mit der Summe jeder Spalte.",
6
6
  grandTotalColumn: "Eine letzte Spalte mit der Summe jeder Zeile.",
7
- rowSubtotals: "Mit zwei oder mehr Feldern in Zeilen: eine Summenzeile unter jeder Gruppe des \xE4u\xDFeren Felds.",
8
- colSubtotals: "Mit zwei oder mehr Feldern in Spalten: eine Summenspalte nach jeder Gruppe des \xE4u\xDFeren Felds.",
7
+ rowSubtotals: "Mit zwei oder mehr Feldern in Zeilen: eine Zeile mit dem Teilergebnis (\u201ENord gesamt\u201C) unter jeder Gruppe des \xE4u\xDFeren Felds, die mehr als einen Eintrag hat.",
8
+ colSubtotals: "Mit zwei oder mehr Feldern in Spalten: eine Spalte mit dem Teilergebnis (\u201ENord gesamt\u201C) nach jeder Gruppe des \xE4u\xDFeren Felds, die mehr als einen Eintrag hat.",
9
9
  along: "Die Richtung der Berechnung: Zeilen geht die Zeilen jeder Spalte hinunter, Spalten \xFCber die Spalten jeder Zeile. Eine laufende Summe addiert entlang, eine Differenz vergleicht mit dem Eintrag davor.",
10
10
  showAs: "Zeigt jeden Wert als Anteil, Differenz, laufende Summe oder Rang statt der Zahl selbst. Bei Prozenten sagt ein Tipp \xFCber dem Ergebnis, was 100 % ist.",
11
11
  exportXlsx: "Jede Zahl mit allen Nachkommastellen, Formate bleiben, bereit zum Rechnen.",
12
12
  exportCsv: "Prozente und Berechnungen wie in der Tabelle, als reiner Text.",
13
+ exportHtml: "Eine Seite mit der Tabelle wie angezeigt, dem Diagramm, wenn es angezeigt wird, und den Filtern: \xF6ffnet in jedem Browser, druckt gut.",
14
+ exportPrint: "Derselbe Bericht im Druckdialog des Browsers: drucken oder dort Als PDF speichern w\xE4hlen.",
13
15
  copyTable: "Die Tabelle wie angezeigt, mit \xDCberschriften und Summen: tabulatorgetrennt, wird in Excel oder Google Sheets in Spalten eingef\xFCgt.",
14
16
  copyDataJson: "Die Zahlen der Tabelle mit ihren Beschriftungen als JSON, f\xFCr ein Programm. Nicht die Ansicht selbst: Das ist Ansichten \u2192 Ansicht als JSON kopieren.",
15
17
  drillCopy: "Die Zeilen wie im Bereich angezeigt, mit einer \xDCberschriftenzeile: tabulatorgetrennt, wird in Excel oder Google Sheets in Spalten eingef\xFCgt.",
@@ -79,13 +81,22 @@ var de = {
79
81
  range: { one: "Bereich", other: "Bereiche" }
80
82
  },
81
83
  quickTitle: "Schnellauswahl",
82
- quickCount: { year: "Anzahl Jahre", month: "Anzahl Monate", day: "Anzahl Tage" },
83
- quickLast: { year: { one: "Letztes {count} Jahr", other: "Letzte {count} Jahre" }, month: { one: "Letzter {count} Monat", other: "Letzte {count} Monate" }, day: { one: "Letzter {count} Tag", other: "Letzte {count} Tage" } },
84
+ quickCount: { year: "Anzahl Jahre", quarter: "Anzahl Quartale", month: "Anzahl Monate", week: "Anzahl Wochen", day: "Anzahl Tage" },
84
85
  quickRows: "{rows} Zeilen",
85
86
  quickHidden: { one: "{choices} wird nicht angeboten: die Daten enden am {latest}.", other: "{choices} werden nicht angeboten: die Daten enden am {latest}." },
87
+ quickCurrent: { year: "Das laufende Jahr einbeziehen", quarter: "Das laufende Quartal einbeziehen", month: "Den laufenden Monat einbeziehen", week: "Die laufende Woche einbeziehen", day: "Heute einbeziehen" },
88
+ quickMore: "Weitere Auswahl",
89
+ quickRolling: "Gleitend statt ganzer Kalenderzeitr\xE4ume",
90
+ quickUnitOf: "Einheit von \u201E{choice} \u2026\u201C",
91
+ quickThisUnit: "Laufender Zeitraum",
86
92
  anchorLabel: "Gez\xE4hlt ab",
87
93
  anchorToday: "heute ({date})",
88
94
  anchorLatest: "dem letzten Datensatz ({date})",
95
+ anchorFirst: "dem ersten Datensatz ({date})",
96
+ anchorDate: "einem Datum \u2026",
97
+ anchorDay: "Das Datum, ab dem gez\xE4hlt wird",
98
+ anchorDayIncomplete: "Bitte ein vollst\xE4ndiges Datum eingeben; bis dahin wird ab dem {date} gez\xE4hlt.",
99
+ anchorUseLatest: "Stattdessen ab dem letzten Datensatz ({date}) z\xE4hlen",
89
100
  quickLine: "Schnellauswahl: {text}",
90
101
  changeAbove: "oben \xE4ndern",
91
102
  yearsCombined: "Jahre zusammengefasst",
@@ -136,7 +147,9 @@ var de = {
136
147
  lastOp: { one: "im letzten", other: "in den letzten" },
137
148
  ruleUnits: { year: { one: "Jahr", other: "Jahren" }, month: { one: "Monat", other: "Monaten" }, day: { one: "Tag", other: "Tagen" } },
138
149
  ruleWhose: "Eintr\xE4ge von {field} mit Gesamtwert",
150
+ ruleFixed: "So behalten, wie die Ansicht ihn hat; die Regeln hier k\xF6nnen ihn noch nicht \xE4ndern.",
139
151
  blanksOut: "Leere Eintr\xE4ge werden nicht behalten.",
152
+ rulesBlanks: { one: "Auch Eintr\xE4ge ohne Wert behalten ({rows} Zeile)", other: "Auch Eintr\xE4ge ohne Wert behalten ({rows} Zeilen)" },
140
153
  ruleUnit: "Einheit",
141
154
  moveLeft: "Nach links",
142
155
  moveRight: "Nach rechts",
@@ -245,6 +258,9 @@ var de = {
245
258
  topCount: "Anzahl",
246
259
  bottom: "Unterste",
247
260
  topBy: "nach",
261
+ topTies: "Auch Eintr\xE4ge mit demselben Wert wie der letzte zeigen",
262
+ topShown: { one: "{count} Eintrag angezeigt", other: "{count} Eintr\xE4ge angezeigt" },
263
+ topTiesGroups: "Eine Gruppe kann mehr als {count} Eintr\xE4ge zeigen.",
248
264
  searchValues: "Werte suchen",
249
265
  selectAll: "Alle ausw\xE4hlen",
250
266
  selectNone: "Keine ausw\xE4hlen",
@@ -259,6 +275,10 @@ var de = {
259
275
  exportXlsx: "Excel-Arbeitsmappe (.xlsx)",
260
276
  exportCsv: "CSV-Datei (.csv)",
261
277
  exportPng: "Diagramm als Bild (.png)",
278
+ exportSvg: "Diagramm als Bild (.svg)",
279
+ exportHtml: "HTML-Bericht (.html)",
280
+ exportPrintGroup: "Drucken",
281
+ exportPrint: "Drucken oder als PDF speichern\u2026",
262
282
  exportPngNeedsChart: "Zuerst zum Diagramm wechseln.",
263
283
  exportNeedsField: "Zuerst ein Feld hinzuf\xFCgen.",
264
284
  copyTable: "Tabelle kopieren",
@@ -266,6 +286,7 @@ var de = {
266
286
  toastTableCopied: "Tabelle kopiert: tabulatorgetrennt, wird in Excel oder Google Sheets in Spalten eingef\xFCgt",
267
287
  toastDataCopied: "Daten als JSON kopiert",
268
288
  toastCopyBlocked: "Diese Seite erlaubt kein Kopieren. Stattdessen eine Datei herunterladen.",
289
+ toastPrintBlocked: "Diese Seite erlaubt das Drucken des Berichts nicht. Stattdessen den HTML-Bericht herunterladen.",
269
290
  drillTitle: "Zeilen hinter diesem Wert",
270
291
  drillCount: { one: "{count} Zeile", other: "{count} Zeilen" },
271
292
  drillShown: "Die ersten {shown} von {count} Zeilen",
@@ -342,6 +363,7 @@ var de = {
342
363
  needsColField: "Braucht ein Feld in Spalten.",
343
364
  needsRowFields: "Braucht zwei oder mehr Felder in Zeilen.",
344
365
  needsColFields: "Braucht zwei oder mehr Felder in Spalten.",
366
+ needsValue: "Braucht ein Feld in Werten.",
345
367
  expandNothing: "Nichts ist zugeklappt.",
346
368
  collapseNeedsRows: "Braucht zwei oder mehr Felder in Zeilen.",
347
369
  collapseAllDone: "Alle Gruppen sind schon zugeklappt.",
@@ -50,6 +50,8 @@ var en = {
50
50
  tooMany: "more than {max} entries - only the first {max} are used",
51
51
  tooManyItems: "more than {max} items - only the first {max} are used",
52
52
  itemType: "the item \u201C{value}\u201D does not fit a {type} field - it is left out",
53
+ itemTooLong: "an item is longer than {max} characters - it is left out",
54
+ itemCase: "the data has no item \u201C{value}\u201D, but \u201C{suggestion}\u201D - the filter keeps the item as written",
53
55
  unknownField: "the data has no field \u201C{field}\u201D - {dropped}",
54
56
  // the same, when the line is about that field itself (Rows, Columns, a filter or a sort)
55
57
  unknownFieldHere: "the data has no field of this name - {dropped}",
@@ -76,18 +78,25 @@ var en = {
76
78
  dataBarColor: "the bar colour is not a colour - the default colour is used",
77
79
  unknownFilterType: "the filter type \u201C{value}\u201D is unknown - this filter is left out",
78
80
  filterNoItems: "the filter lists no items - it is left out",
79
- filterLabelOp: "the text condition \u201C{value}\u201D is unknown - this filter is left out",
80
- filterText: "the text condition has no text - this filter is left out",
81
+ filterFieldType: "a filter of the type \u201C{value}\u201D does not work on \u201C{field}\u201D ({type}) - this filter is left out",
82
+ filterTextOp: "the text condition \u201C{value}\u201D is unknown - this filter is left out",
83
+ filterMatch: "the text matching is unknown - case and spaces are ignored",
84
+ filterNot: "\u201Cnot\u201D must be true or false - the filter is not inverted",
85
+ filterBlanks: "what happens to blank items is unknown (\u201C{value}\u201D) - blank items are left out",
86
+ blanksUnspecified: "the filter does not say what happens to blank items - they are left out",
87
+ filterEmpty: "the filter lists no items and keeps no blanks - it keeps nothing",
88
+ filterText: "the text condition has no text, or more than {max} characters - this filter is left out",
81
89
  filterNotNumber: "{agg} gives no number to filter by - this filter is left out",
90
+ filterTies: "the ties \u201C{value}\u201D are unknown (first or all) - the first in the data are kept",
91
+ filterPrecision: "the precision \u201C{value}\u201D is unknown or not for this field (year, quarter, month, day or hour of a date) - days are compared",
82
92
  filterCount: "Top needs a whole number from 1 to {max} - this filter is left out",
83
93
  filterValue: "the condition needs a comparison and a number - this filter is left out",
84
94
  filterValue2: "\u201C{value}\u201D needs a second number - this filter is left out",
85
- filterCompareField: "only numbers and dates can be compared - this filter is left out",
86
95
  filterCompareValue: "the comparison needs an operator and a number or a date (2022-03-01) that fits the field - this filter is left out",
87
- filterRelativeField: "a range like \u201Clast 5 years\u201D needs a date field - this filter is left out",
88
- filterRelativeUnit: "the unit \u201C{value}\u201D is unknown (years, months or days) - this filter is left out",
96
+ filterRelativeDirection: "the direction \u201C{value}\u201D is unknown (last, next, this or before) - this filter is left out",
97
+ filterRelativeUnit: "the unit \u201C{value}\u201D is unknown (hours, days, weeks, months, quarters or years) - this filter is left out",
89
98
  filterRelativeCount: "the range needs a whole number from 1 to {max} - this filter is left out",
90
- filterRelativeAnchor: "the range can count back from \u201Ctoday\u201D or from \u201Clatest\u201D (the latest record), not from \u201C{value}\u201D - this filter is left out",
99
+ 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",
91
100
  sortNoItems: "the custom order lists no items - the usual order is used",
92
101
  sortedTwice: "the field is sorted twice - only its first sort is used",
93
102
  badTotals: "the totals cannot be read - the usual totals are shown",
@@ -96,7 +105,8 @@ var en = {
96
105
  badTitle: "the title is empty or longer than {max} characters - the chart has no title",
97
106
  unknownLocale: "the language \u201C{value}\u201D is unknown - the report's language is used",
98
107
  unknownTimeZone: "the time zone \u201C{value}\u201D is unknown - the data's time zone is used",
99
- timeZoneMismatch: "the view was made for the time zone {value}, the data is in {zone} - times are read in {zone}"
108
+ timeZoneMismatch: "the view was made for the time zone {value}, the data is in {zone} - times are read in {zone}",
109
+ tooManyIssues: "{value} more problems are not listed - fix the ones above and load the view again to see them"
100
110
  },
101
111
  // a problem this version has no text for (a newer pivotkit-core)
102
112
  other: "this part could not be used - it is left out"
@@ -119,7 +129,7 @@ function valueName(entry, ctx) {
119
129
  }
120
130
  function subjectOf(issue, raw, texts, ctx) {
121
131
  if (issue.code === "unknownKey") {
122
- return ctx.fill(texts.quote, { key: issue.path });
132
+ return ctx.fill(texts.quote, { key: issue.path.split(".").pop() ?? issue.path });
123
133
  }
124
134
  const m = ENTRY.exec(issue.path);
125
135
  if (m) {
@@ -153,6 +163,7 @@ function unusedItem(issue, raw, texts, ctx) {
153
163
  type: typeof params.type === "string" ? own(labels.types, params.type) ?? params.type : "",
154
164
  max: typeof params.max === "number" ? params.max.toLocaleString(labels.lang) : "",
155
165
  zone: params.zone ?? "",
166
+ suggestion: params.suggestion ?? "",
156
167
  message: issue.message
157
168
  };
158
169
  const [before, after = ""] = texts.item.split("{subject}");
@@ -44,6 +44,8 @@ var de = {
44
44
  tooMany: "mehr als {max} Eintr\xE4ge - nur die ersten {max} werden verwendet",
45
45
  tooManyItems: "mehr als {max} Eintr\xE4ge - nur die ersten {max} werden verwendet",
46
46
  itemType: "der Eintrag \u201E{value}\u201C passt nicht zu einem Feld vom Typ {type} - er wird weggelassen",
47
+ itemTooLong: "ein Eintrag ist l\xE4nger als {max} Zeichen - er wird weggelassen",
48
+ itemCase: "die Daten haben keinen Eintrag \u201E{value}\u201C, aber \u201E{suggestion}\u201C - der Filter beh\xE4lt den Eintrag, wie er geschrieben ist",
47
49
  unknownField: "die Daten haben kein Feld \u201E{field}\u201C - {dropped}",
48
50
  unknownFieldHere: "die Daten haben kein Feld mit diesem Namen - {dropped}",
49
51
  placedTwice: "das Feld steht zweimal in Zeilen oder Spalten - nur sein erster Platz gilt",
@@ -69,18 +71,25 @@ var de = {
69
71
  dataBarColor: "die Balkenfarbe ist keine Farbe - die Standardfarbe wird verwendet",
70
72
  unknownFilterType: "die Filterart \u201E{value}\u201C ist unbekannt - dieser Filter wird weggelassen",
71
73
  filterNoItems: "der Filter nennt keine Eintr\xE4ge - er wird weggelassen",
72
- filterLabelOp: "die Textbedingung \u201E{value}\u201C ist unbekannt - dieser Filter wird weggelassen",
73
- filterText: "die Textbedingung hat keinen Text - dieser Filter wird weggelassen",
74
+ filterFieldType: "ein Filter vom Typ \u201E{value}\u201C funktioniert nicht mit \u201E{field}\u201C ({type}) - dieser Filter wird weggelassen",
75
+ filterTextOp: "die Textbedingung \u201E{value}\u201C ist unbekannt - dieser Filter wird weggelassen",
76
+ filterMatch: "der Textvergleich ist unbekannt - Gro\xDF- und Kleinschreibung und Leerzeichen z\xE4hlen nicht",
77
+ filterNot: "\u201Enot\u201C muss true oder false sein - der Filter wird nicht umgekehrt",
78
+ filterBlanks: "was mit leeren Eintr\xE4gen geschieht, ist unbekannt (\u201E{value}\u201C) - leere Eintr\xE4ge werden weggelassen",
79
+ blanksUnspecified: "der Filter sagt nicht, was mit leeren Eintr\xE4gen geschieht - sie werden weggelassen",
80
+ filterEmpty: "der Filter nennt keine Eintr\xE4ge und beh\xE4lt keine leeren - er beh\xE4lt nichts",
81
+ filterText: "die Textbedingung hat keinen Text oder mehr als {max} Zeichen - dieser Filter wird weggelassen",
74
82
  filterNotNumber: "{agg} ergibt keine Zahl zum Filtern - dieser Filter wird weggelassen",
83
+ filterTies: "die Gleichst\xE4nde \u201E{value}\u201C sind unbekannt (first oder all) - die ersten in den Daten werden behalten",
84
+ filterPrecision: "die Genauigkeit \u201E{value}\u201C ist unbekannt oder passt nicht zum Feld (Jahr, Quartal, Monat, Tag oder Stunde eines Datums) - Tage werden verglichen",
75
85
  filterCount: "\u201EOberste\u201C braucht eine ganze Zahl von 1 bis {max} - dieser Filter wird weggelassen",
76
86
  filterValue: "die Bedingung braucht einen Vergleich und eine Zahl - dieser Filter wird weggelassen",
77
87
  filterValue2: "\u201E{value}\u201C braucht eine zweite Zahl - dieser Filter wird weggelassen",
78
- filterCompareField: "nur Zahlen und Daten lassen sich vergleichen - dieser Filter wird weggelassen",
79
88
  filterCompareValue: "der Vergleich braucht einen Operator und eine Zahl oder ein Datum (2022-03-01), das zum Feld passt - dieser Filter wird weggelassen",
80
- filterRelativeField: "ein Zeitraum wie \u201Eletzte 5 Jahre\u201C braucht ein Datumsfeld - dieser Filter wird weggelassen",
81
- filterRelativeUnit: "die Einheit \u201E{value}\u201C ist unbekannt (Jahre, Monate oder Tage) - dieser Filter wird weggelassen",
89
+ filterRelativeDirection: "die Richtung \u201E{value}\u201C ist unbekannt (last, next, this oder before) - dieser Filter wird weggelassen",
90
+ filterRelativeUnit: "die Einheit \u201E{value}\u201C ist unbekannt (Stunden, Tage, Wochen, Monate, Quartale oder Jahre) - dieser Filter wird weggelassen",
82
91
  filterRelativeCount: "der Zeitraum braucht eine ganze Zahl von 1 bis {max} - dieser Filter wird weggelassen",
83
- filterRelativeAnchor: "der Zeitraum kann ab \u201Etoday\u201C (heute) oder \u201Elatest\u201C (dem letzten Datensatz) zur\xFCckz\xE4hlen, nicht ab \u201E{value}\u201C - dieser Filter wird weggelassen",
92
+ 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",
84
93
  sortNoItems: "die eigene Reihenfolge nennt keine Eintr\xE4ge - die \xFCbliche Reihenfolge gilt",
85
94
  sortedTwice: "das Feld wird zweimal sortiert - nur seine erste Sortierung gilt",
86
95
  badTotals: "die Summen lassen sich nicht lesen - die \xFCblichen Summen werden gezeigt",
@@ -89,7 +98,8 @@ var de = {
89
98
  badTitle: "der Titel ist leer oder l\xE4nger als {max} Zeichen - das Diagramm hat keinen Titel",
90
99
  unknownLocale: "die Sprache \u201E{value}\u201C ist unbekannt - die Sprache des Berichts gilt",
91
100
  unknownTimeZone: "die Zeitzone \u201E{value}\u201C ist unbekannt - die Zeitzone der Daten gilt",
92
- timeZoneMismatch: "die Ansicht wurde f\xFCr die Zeitzone {value} gemacht, die Daten sind in {zone} - Zeiten gelten in {zone}"
101
+ timeZoneMismatch: "die Ansicht wurde f\xFCr die Zeitzone {value} gemacht, die Daten sind in {zone} - Zeiten gelten in {zone}",
102
+ tooManyIssues: "{value} weitere Probleme sind nicht aufgef\xFChrt - beheben Sie die obigen und laden Sie die Ansicht erneut, um sie zu sehen"
93
103
  },
94
104
  other: "dieser Teil konnte nicht verwendet werden - er wird weggelassen"
95
105
  };
@@ -204,6 +204,7 @@ var PATHS = {
204
204
  warn: "M12 4 2.8 20h18.4ZM12 10v4.5M12 17.5h.01",
205
205
  image: "M4 5h16v14H4zM4 16l5-5 4 4 3-3 4 4M15 9h.01",
206
206
  file: "M6 3h8l4 4v14H6zM14 3v4h4",
207
+ print: "M7 9V3h10v6M7 17H5a1 1 0 0 1-1-1v-6a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v6a1 1 0 0 1-1 1h-2M7 14h10v7H7z",
207
208
  newFile: "M6 3h8l4 4v14H6zM14 3v4h4M12 11v6M9 14h6",
208
209
  swap: "M7 4 3 8l4 4M3 8h14M17 20l4-4-4-4M21 16H7",
209
210
  top: "M4 20v-6h5v6M9 20V8h6v12M15 20v-9h5v9M3 20h18",
@@ -270,6 +271,35 @@ function keepPlace(last, next, anchor, size, viewport) {
270
271
  function fromOrigin(place, origin) {
271
272
  return { ...place, top: place.top - origin.top, left: place.left - origin.left };
272
273
  }
274
+ function onTheWay(anchor, popover, point) {
275
+ if (!point) {
276
+ return false;
277
+ }
278
+ const corners = [anchor, popover].flatMap((r) => [
279
+ [r.left, r.top],
280
+ [r.right, r.top],
281
+ [r.right, r.bottom],
282
+ [r.left, r.bottom]
283
+ ]).sort((a, b) => a[0] - b[0] || a[1] - b[1]);
284
+ const cross = (o, a, b) => (a[0] - o[0]) * (b[1] - o[1]) - (a[1] - o[1]) * (b[0] - o[0]);
285
+ const half = (points) => {
286
+ const out = [];
287
+ for (const p2 of points) {
288
+ while (out.length >= 2 && cross(out[out.length - 2], out[out.length - 1], p2) <= 0) {
289
+ out.pop();
290
+ }
291
+ out.push(p2);
292
+ }
293
+ out.pop();
294
+ return out;
295
+ };
296
+ const hull = [...half(corners), ...half([...corners].reverse())];
297
+ if (hull.length < 3) {
298
+ return false;
299
+ }
300
+ const p = [point.x, point.y];
301
+ return hull.every((a, k) => cross(a, hull[(k + 1) % hull.length], p) >= 0);
302
+ }
273
303
 
274
304
  // src/popover.jsx
275
305
  var LayerContext = createContext2({ layer: (
@@ -341,7 +371,7 @@ function Popover({ open, anchor, onClose, label, role = "dialog", align = "start
341
371
  /** @type {HTMLDivElement | null} */
342
372
  null
343
373
  );
344
- const [top] = useState(() => !passive && hasTopLayer());
374
+ const [top] = useState(() => hasTopLayer() && (!passive || Boolean(anchor.current?.closest?.(".pk-popover")?.hasAttribute("popover"))));
345
375
  const inTopLayer = (
346
376
  /** @type {any} */
347
377
  top ? { popover: "manual" } : {}
@@ -373,9 +403,23 @@ function Popover({ open, anchor, onClose, label, role = "dialog", align = "start
373
403
  if (ro && el) {
374
404
  ro.observe(el);
375
405
  }
406
+ let frame = 0;
407
+ let rect = anchor.current?.getBoundingClientRect();
408
+ const follow = () => {
409
+ const next = anchor.current?.getBoundingClientRect();
410
+ if (next && rect && (next.x !== rect.x || next.y !== rect.y || next.width !== rect.width || next.height !== rect.height)) {
411
+ place();
412
+ }
413
+ rect = next;
414
+ frame = requestAnimationFrame(follow);
415
+ };
416
+ if (!sheet) {
417
+ frame = requestAnimationFrame(follow);
418
+ }
376
419
  window.addEventListener("resize", place);
377
420
  window.addEventListener("scroll", place, true);
378
421
  return () => {
422
+ cancelAnimationFrame(frame);
379
423
  ro?.disconnect();
380
424
  window.removeEventListener("resize", place);
381
425
  window.removeEventListener("scroll", place, true);
@@ -391,12 +435,14 @@ function Popover({ open, anchor, onClose, label, role = "dialog", align = "start
391
435
  return void 0;
392
436
  }
393
437
  const el = ref.current;
394
- const shown = (o) => o.getClientRects().length > 0;
395
- const first = el?.querySelector("[data-autofocus]") ?? [...el?.querySelectorAll(OPTION) ?? []].find(shown) ?? [...el?.querySelectorAll(FOCUSABLE) ?? []].find((o) => shown(o) && !o.classList.contains("pk-info")) ?? (el?.querySelector("[data-pk-option]") ? el : null);
396
- const t = requestAnimationFrame(() => (
397
- /** @type {HTMLElement | null} */
398
- first?.focus({ preventScroll: true })
399
- ));
438
+ const t = requestAnimationFrame(() => {
439
+ if (!el?.isConnected) return;
440
+ const now = activeIn(el);
441
+ if (now && now !== el && (el.contains(now) || now.closest(".pk-popover")?.getAttribute("data-pk-parent") === elId)) return;
442
+ const shown = (o) => o.getClientRects().length > 0;
443
+ const first = el.querySelector("[data-autofocus]") ?? [...el.querySelectorAll(OPTION)].find(shown) ?? [...el.querySelectorAll(FOCUSABLE)].find((o) => shown(o) && !o.classList.contains("pk-info")) ?? (el.querySelector("[data-pk-option]") ? el : null);
444
+ first?.focus({ preventScroll: true });
445
+ });
400
446
  const onDown = (e) => {
401
447
  if (!eventWithin(e, [el, anchor.current]) && !e.composedPath().some((n) => n instanceof Element && n !== el && n.getAttribute("data-pk-parent") === elId)) {
402
448
  closeRef.current();
@@ -607,6 +653,7 @@ export {
607
653
  Icon,
608
654
  TYPE_ICON,
609
655
  ZONE_ICON,
656
+ onTheWay,
610
657
  useIsoLayoutEffect,
611
658
  LayerContext,
612
659
  hasTopLayer,
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  MENU_TEXTS,
3
3
  mergeLabels
4
- } from "./chunk-6MDAL3IO.js";
4
+ } from "./chunk-3WUGQPWV.js";
5
5
 
6
6
  // src/menu-labels.js
7
7
  var en = {
@@ -10,12 +10,14 @@ var en = {
10
10
  settingInfo: {
11
11
  grandTotalRow: "A last row with the total of every column.",
12
12
  grandTotalColumn: "A last column with the total of every row.",
13
- rowSubtotals: "With two or more fields in Rows: a total row under each group of the outer field.",
14
- colSubtotals: "With two or more fields in Columns: a total column after each group of the outer field.",
13
+ rowSubtotals: "With two or more fields in Rows: a subtotal row (\u201CNorth Total\u201D) under each group of the outer field that has more than one item.",
14
+ colSubtotals: "With two or more fields in Columns: a subtotal column (\u201CNorth Total\u201D) after each group of the outer field that has more than one item.",
15
15
  along: "The direction the calculation walks: Rows goes down the rows of each column, Columns across the columns of each row. A running total adds up along it, a difference compares with the item before it.",
16
16
  showAs: "Shows each value as a share, a difference, a running total or a rank instead of the number itself. For percentages, a tip above the result says what 100% is.",
17
17
  exportXlsx: "Every number with all its decimals, formats kept, ready to calculate with.",
18
18
  exportCsv: "Percentages and calculations as the table shows them, as plain text.",
19
+ exportHtml: "A page with the table as it is shown, the chart when the chart is shown, and the filters: opens in any browser, prints well.",
20
+ exportPrint: "The same report in the browser's print dialog: print it, or pick Save as PDF there.",
19
21
  copyTable: "The table as it is shown, headers and totals included: tab-separated, pastes into Excel or Google Sheets as columns.",
20
22
  copyDataJson: "The table's numbers with their labels as JSON, for a program. Not the view itself: that is Views \u2192 Copy view as JSON.",
21
23
  drillCopy: "The rows as the panel shows them, with a header row: tab-separated, pastes into Excel or Google Sheets as columns.",
@@ -95,13 +97,27 @@ var en = {
95
97
  // the Filter level of a date field: its quick choices ("Last [5] years" around the number typed),
96
98
  // each with the data's share and the rows it keeps, the ones not offered, the reference date
97
99
  quickTitle: "Quick choices",
98
- quickCount: { year: "Number of years", month: "Number of months", day: "Number of days" },
99
- quickLast: { year: { one: "Last {count} year", other: "Last {count} years" }, month: { one: "Last {count} month", other: "Last {count} months" }, day: { one: "Last {count} day", other: "Last {count} days" } },
100
+ quickCount: { year: "Number of years", quarter: "Number of quarters", month: "Number of months", week: "Number of weeks", day: "Number of days" },
100
101
  quickRows: "{rows} rows",
101
102
  quickHidden: { one: "{choices} is not offered: the data end {latest}.", other: "{choices} are not offered: the data end {latest}." },
103
+ // under the choice that is set: whether its periods take the current one ("Last 3 months" with November)
104
+ quickCurrent: { year: "Include the current year", quarter: "Include the current quarter", month: "Include the current month", week: "Include the current week", day: "Include today" },
105
+ // the rare choices, folded: Next N, Before the last N, rolling periods
106
+ quickMore: "More choices",
107
+ quickRolling: "Rolling instead of whole calendar periods",
108
+ // the names of the unit selects, after their choice: "Unit of “Last …”"; This's select picks the period
109
+ quickUnitOf: "Unit of \u201C{choice} \u2026\u201D",
110
+ quickThisUnit: "Current period",
102
111
  anchorLabel: "Counted back from",
103
112
  anchorToday: "today ({date})",
104
113
  anchorLatest: "the latest record ({date})",
114
+ anchorFirst: "the first record ({date})",
115
+ anchorDate: "a date\u2026",
116
+ anchorDay: "The date counted from",
117
+ // the date field without a whole date: the range keeps the one before
118
+ anchorDayIncomplete: "Enter a whole date; the ranges still count from {date}.",
119
+ // under a choice whose current period has no data (the data end before it)
120
+ anchorUseLatest: "Count back from the latest record ({date}) instead",
105
121
  quickLine: "Quick choice: {text}",
106
122
  changeAbove: "change it above",
107
123
  // a cyclic grouping ("month of the year") combines the years: the ones ticked
@@ -158,7 +174,10 @@ var en = {
158
174
  ruleUnits: { year: { one: "year", other: "years" }, month: { one: "month", other: "months" }, day: { one: "day", other: "days" } },
159
175
  // a rule on the total, as a sentence: "Product items whose / Count of Cycle / is greater than / 3"
160
176
  ruleWhose: "{field} items whose total",
177
+ ruleFixed: "Kept as the view has it; the rules here cannot change it yet.",
161
178
  blanksOut: "Blank items are not kept.",
179
+ // under the rules on the items: the field's blank items kept with them
180
+ rulesBlanks: { one: "Also keep items without a value ({rows} row)", other: "Also keep items without a value ({rows} rows)" },
162
181
  ruleUnit: "Unit",
163
182
  moveLeft: "Move left",
164
183
  moveRight: "Move right",
@@ -276,6 +295,10 @@ var en = {
276
295
  topCount: "Count",
277
296
  bottom: "Bottom",
278
297
  topBy: "by",
298
+ topTies: "Also show items with the same value as the last one",
299
+ // under it: how many items the top shows (the field first on its axis), else that a group can show more
300
+ topShown: { one: "{count} item shown", other: "{count} items shown" },
301
+ topTiesGroups: "A group can show more than {count} items.",
279
302
  searchValues: "Search values",
280
303
  selectAll: "Select all",
281
304
  selectNone: "Select none",
@@ -291,6 +314,10 @@ var en = {
291
314
  exportXlsx: "Excel workbook (.xlsx)",
292
315
  exportCsv: "CSV file (.csv)",
293
316
  exportPng: "Chart image (.png)",
317
+ exportSvg: "Chart image (.svg)",
318
+ exportHtml: "HTML report (.html)",
319
+ exportPrintGroup: "Print",
320
+ exportPrint: "Print or save as PDF\u2026",
294
321
  exportPngNeedsChart: "Switch to Chart first.",
295
322
  exportNeedsField: "Add a field first.",
296
323
  copyTable: "Copy table",
@@ -298,6 +325,7 @@ var en = {
298
325
  toastTableCopied: "Table copied: tab-separated, pastes into Excel or Google Sheets as columns",
299
326
  toastDataCopied: "Data copied as JSON",
300
327
  toastCopyBlocked: "This page does not allow copying. Download a file instead.",
328
+ toastPrintBlocked: "This page does not allow printing the report. Download the HTML report instead.",
301
329
  // drill-down
302
330
  drillTitle: "Rows behind this value",
303
331
  drillCount: { one: "{count} row", other: "{count} rows" },
@@ -385,6 +413,7 @@ var en = {
385
413
  needsColField: "Needs a field in Columns.",
386
414
  needsRowFields: "Needs two or more fields in Rows.",
387
415
  needsColFields: "Needs two or more fields in Columns.",
416
+ needsValue: "Needs a field in Values.",
388
417
  expandNothing: "Nothing is collapsed.",
389
418
  collapseNeedsRows: "Needs two or more fields in Rows.",
390
419
  collapseAllDone: "Every group is collapsed already.",