pivotkit-react 0.6.1 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +212 -1
- package/README.md +33 -15
- package/dist/chunks/{chunk-JMRTIOX4.js → chunk-2N2UGSIG.js} +7 -0
- package/dist/chunks/{chunk-ZK5RVCHP.js → chunk-BHHIZHUE.js} +1 -1
- package/dist/chunks/{chunk-YXLANLGL.js → chunk-GUSQWPTH.js} +56 -3
- package/dist/chunks/{chunk-JOWAEZAD.js → chunk-JAOOFDNR.js} +21 -1
- package/dist/chunks/{chunk-E6M57YLL.js → chunk-MU5BTKSY.js} +7 -0
- package/dist/chunks/{chunk-TR2HROIK.js → chunk-RNQ32FCN.js} +66 -5
- package/dist/chunks/{chunk-XN5HNKJ2.js → chunk-SJCG4I57.js} +98 -33
- package/dist/chunks/{chunk-3LDE2GPG.js → chunk-VMJMDP7C.js} +372 -33
- package/dist/chunks/{report-run-BZBFOMPF.js → report-run-HU4WPOB7.js} +3 -1
- package/dist/chunks/{unused-texts-Y4R67XSN.js → unused-texts-LRYVWFFN.js} +1 -1
- package/dist/chunks/{unused-texts-de-6YVPTNVS.js → unused-texts-de-GB3IWWEM.js} +1 -1
- package/dist/echarts.js +426 -35
- package/dist/import-ui.js +3 -3
- package/dist/index.js +769 -435
- package/dist/labels.js +6 -6
- package/dist/menu-texts-de.js +1 -1
- package/dist/menus.js +1133 -542
- package/dist/styles.css +271 -158
- package/package.json +8 -4
- package/styles.css.d.ts +3 -0
- package/types/PivotReport.d.ts +6 -0
- package/types/add-menu.d.ts +48 -0
- package/types/chart-colors.d.ts +8 -0
- package/types/chart-decorate.d.ts +66 -3
- package/types/chart-legend.d.ts +176 -0
- package/types/chart-summary.d.ts +8 -3
- package/types/chart-tooltip.d.ts +159 -17
- package/types/chart.d.ts +21 -3
- package/types/date-context.d.ts +30 -0
- package/types/drill-panel.d.ts +4 -2
- package/types/echarts.d.ts +7 -3
- package/types/export-run.d.ts +19 -14
- package/types/export-scope.d.ts +13 -2
- package/types/field-info.d.ts +12 -0
- package/types/files.d.ts +14 -0
- package/types/filter.d.ts +18 -0
- package/types/group-context.d.ts +20 -0
- package/types/index.d.ts +35 -6
- package/types/label-room.d.ts +13 -0
- package/types/labels.d.ts +85 -16
- package/types/lazy-menus.d.ts +2 -2
- package/types/levels.d.ts +16 -7
- package/types/menu-labels.d.ts +67 -1
- package/types/menu-ops.d.ts +10 -0
- package/types/menu-topics.d.ts +110 -21
- package/types/menus.d.ts +3 -2
- package/types/names.d.ts +32 -3
- package/types/overflow.d.ts +18 -30
- package/types/print-frame.d.ts +32 -3
- package/types/report-run.d.ts +5 -0
- package/types/rove.d.ts +10 -0
- package/types/theme-tokens.d.ts +17 -0
- package/types/toolbar-panels.d.ts +43 -15
- package/types/unused-texts.d.ts +7 -0
- package/types/use-big-result.d.ts +24 -9
- package/types/use-export.d.ts +8 -4
- package/types/view-ops.d.ts +19 -8
- package/types/view-tabs.d.ts +12 -0
- package/types/zones.d.ts +41 -9
- package/types/light-tokens.d.ts +0 -16
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
MENU_TEXTS,
|
|
3
3
|
mergeLabels
|
|
4
|
-
} from "./chunk-
|
|
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: "
|
|
277
|
-
groupCyclic: "Same period
|
|
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
|
-
//
|
|
430
|
-
|
|
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",
|
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
// src/labels.js
|
|
2
|
-
import { GROUPING_NAMES, PivotkitError, REPORT_LABELS } from "pivotkit-core";
|
|
2
|
+
import { GROUPING_NAMES, PLURAL_CATEGORIES, PivotkitError, REPORT_LABELS, ROW_COUNT_TEXTS, pluralForm } from "pivotkit-core";
|
|
3
3
|
var en = {
|
|
4
4
|
/** the language of the texts, for the report's lang attribute */
|
|
5
5
|
lang: "en",
|
|
6
|
+
dateYearsCombined: "{years} combined",
|
|
7
|
+
dateYearOnly: "{years} only",
|
|
8
|
+
dateRangeTitle: "{field}: the data's first and last date, before filters",
|
|
9
|
+
dateRangeData: "Data before filters: {range}",
|
|
10
|
+
dateRangeField: "{field} before filters: {range}",
|
|
6
11
|
/** the name of the report's region landmark */
|
|
7
12
|
report: "Pivot report",
|
|
8
13
|
core: (
|
|
@@ -11,10 +16,10 @@ var en = {
|
|
|
11
16
|
),
|
|
12
17
|
zones: { rows: "Rows", cols: "Columns", values: "Values", filters: "Filters" },
|
|
13
18
|
zoneHints: {
|
|
14
|
-
rows: "
|
|
15
|
-
cols: "
|
|
16
|
-
values: "
|
|
17
|
-
filters: "
|
|
19
|
+
rows: "Add or drop a field to group rows",
|
|
20
|
+
cols: "Add or drop a field to group columns",
|
|
21
|
+
values: "Add or drop a number to sum or count it",
|
|
22
|
+
filters: "Add or drop a field to filter the whole report"
|
|
18
23
|
},
|
|
19
24
|
fields: "Fields",
|
|
20
25
|
fieldsHint: "Drag a field into Rows, Columns, Values or Filters, or open its menu.",
|
|
@@ -28,6 +33,11 @@ var en = {
|
|
|
28
33
|
addAgain: "Add to {zone} again",
|
|
29
34
|
// a click on a field that is in its zone already: said in the status line
|
|
30
35
|
alreadyIn: "{field} is already in {zone}",
|
|
36
|
+
// "+ Add" in each zone: its text, and its name and tooltip
|
|
37
|
+
addField: "Add",
|
|
38
|
+
addFieldTo: "Add a field to {zone}",
|
|
39
|
+
// said in the zones' status line after a field from "+ Add" moved there from another zone
|
|
40
|
+
movedFrom: "{field} moved from {from} to {zone}",
|
|
31
41
|
move: "Move",
|
|
32
42
|
moveTo: "Move to {zone}",
|
|
33
43
|
dragHandle: "Drag {field}",
|
|
@@ -59,10 +69,12 @@ var en = {
|
|
|
59
69
|
// next to Views: the name of the view loaded, and the mark while it has changes not saved
|
|
60
70
|
unsavedChanges: "Unsaved changes",
|
|
61
71
|
swap: "Swap rows and columns",
|
|
62
|
-
// the
|
|
63
|
-
|
|
64
|
-
|
|
72
|
+
// the section of the zones: its heading, and its line under it while open (folded: what is placed,
|
|
73
|
+
// or layoutEmpty)
|
|
74
|
+
zonesTitle: "Fields in the report",
|
|
75
|
+
zonesHint: "Drag fields into Filters, Columns, Rows and Values, or use Add in each one.",
|
|
65
76
|
layoutEmpty: "No fields placed yet",
|
|
77
|
+
// always at the end of the toolbar: Help first, then the buttons that do not fit
|
|
66
78
|
more: "More",
|
|
67
79
|
// the Views menu: the saved views (the host's templates) and sharing
|
|
68
80
|
views: "Views",
|
|
@@ -74,7 +86,11 @@ var en = {
|
|
|
74
86
|
emptyDrop: "Drop a file onto the report, or",
|
|
75
87
|
emptyNoData: "Load data to start",
|
|
76
88
|
exportLabel: "Export",
|
|
77
|
-
|
|
89
|
+
// the button beside the tabs Table and Chart: the settings of the view shown
|
|
90
|
+
tableSettings: "Table settings",
|
|
91
|
+
chartSettings: "Chart settings",
|
|
92
|
+
// the same button's text on a phone; its name stays the whole one
|
|
93
|
+
settingsShort: "Settings",
|
|
78
94
|
expand: "Expand {label}",
|
|
79
95
|
collapse: "Collapse {label}",
|
|
80
96
|
showAs: "Show as",
|
|
@@ -105,7 +121,7 @@ var en = {
|
|
|
105
121
|
},
|
|
106
122
|
// a date grouping's name: "Date by month"; the unit as it reads inside it (unitInName); pivotkit-core's GROUPING_NAMES
|
|
107
123
|
derivedName: GROUPING_NAMES.en.name,
|
|
108
|
-
unitInName:
|
|
124
|
+
unitInName: GROUPING_NAMES.en.units,
|
|
109
125
|
binsName: GROUPING_NAMES.en.bins,
|
|
110
126
|
top: "Top",
|
|
111
127
|
topBadge: "Top {count}",
|
|
@@ -121,8 +137,8 @@ var en = {
|
|
|
121
137
|
// result
|
|
122
138
|
emptyTitle: "Build your report in three steps",
|
|
123
139
|
emptySteps: [
|
|
124
|
-
"
|
|
125
|
-
"
|
|
140
|
+
"Click + Add next to Rows, or drag a field such as a team or region into it.",
|
|
141
|
+
"Add a number to Values the same way: it is summed, or counted for text.",
|
|
126
142
|
"Add a field to Columns, switch to Chart or export to Excel."
|
|
127
143
|
],
|
|
128
144
|
emptyFields: "The data has no columns.",
|
|
@@ -145,8 +161,11 @@ var en = {
|
|
|
145
161
|
dismissIssues: "Dismiss",
|
|
146
162
|
loadingChart: "Loading chart\u2026",
|
|
147
163
|
noChartData: "Add a value to see a chart.",
|
|
148
|
-
// a count in words: one form per Intl.PluralRules category of the language ("one", "other", ...)
|
|
149
|
-
|
|
164
|
+
// a count in words: one form per Intl.PluralRules category of the language ("one", "other", ...);
|
|
165
|
+
// the row counts are pivotkit-core's, so pivotkit-report's HTML report says the same
|
|
166
|
+
rowsCount: ROW_COUNT_TEXTS.en.rowsCount,
|
|
167
|
+
// a filter left rows out: the rows kept ({shown}) of the data's ({count}, which picks the form)
|
|
168
|
+
rowsFiltered: ROW_COUNT_TEXTS.en.rowsFiltered,
|
|
150
169
|
tableName: "Pivot table",
|
|
151
170
|
emptyCell: "No rows",
|
|
152
171
|
emptyValue: "No value",
|
|
@@ -157,8 +176,24 @@ var en = {
|
|
|
157
176
|
chartCategories: { one: "{count} category", other: "{count} categories" },
|
|
158
177
|
chartSeries: { one: "{count} series", other: "{count} series" },
|
|
159
178
|
chartExtremes: "Highest {max} at {maxAt}; lowest {min} at {minAt}.",
|
|
179
|
+
// the chart's reference lines in its text alternative: "Average 25; Trend from 10 to 40"
|
|
180
|
+
chartLines: "Reference lines: {lines}.",
|
|
181
|
+
chartTrendSpan: "from {from} to {to}",
|
|
160
182
|
// the last sentence of the chart's text alternative
|
|
161
183
|
chartTableHint: "Switch to Table to read every value.",
|
|
184
|
+
// the tooltip's last line on stacked bars and areas: the sum of the stack's parts
|
|
185
|
+
chartTotal: "Total",
|
|
186
|
+
// the tooltip's line for the series that do not fit
|
|
187
|
+
chartMore: "+{count} more",
|
|
188
|
+
chartMoreInTotal: "+{count} more (in the total)",
|
|
189
|
+
// said when a click on the legend hides or shows a series (or a slice)
|
|
190
|
+
// the chart's text alternative of a 100 % stack
|
|
191
|
+
chartShares: "Shown as shares of each stack.",
|
|
192
|
+
// the zoom slider by keyboard: its name, and what it shows
|
|
193
|
+
chartZoom: "Zoom window",
|
|
194
|
+
chartZoomWindow: "Categories {from} to {to} of {count}",
|
|
195
|
+
chartHidden: "{name} hidden",
|
|
196
|
+
chartShown: "{name} shown",
|
|
162
197
|
categories: "categories",
|
|
163
198
|
close: "Close",
|
|
164
199
|
// toasts and live region
|
|
@@ -354,6 +389,11 @@ var en = {
|
|
|
354
389
|
};
|
|
355
390
|
var de = {
|
|
356
391
|
lang: "de",
|
|
392
|
+
dateYearsCombined: "{years} zusammengefasst",
|
|
393
|
+
dateYearOnly: "nur {years}",
|
|
394
|
+
dateRangeTitle: "{field}: erstes und letztes Datum der Daten, vor den Filtern",
|
|
395
|
+
dateRangeData: "Daten vor den Filtern: {range}",
|
|
396
|
+
dateRangeField: "{field} vor den Filtern: {range}",
|
|
357
397
|
report: "Pivot-Bericht",
|
|
358
398
|
core: (
|
|
359
399
|
/** @type {import("pivotkit-core").Labels} */
|
|
@@ -361,10 +401,10 @@ var de = {
|
|
|
361
401
|
),
|
|
362
402
|
zones: { rows: "Zeilen", cols: "Spalten", values: "Werte", filters: "Filter" },
|
|
363
403
|
zoneHints: {
|
|
364
|
-
rows: "
|
|
365
|
-
cols: "
|
|
366
|
-
values: "
|
|
367
|
-
filters: "
|
|
404
|
+
rows: "Ein Feld hinzuf\xFCgen oder hierher ziehen, um Zeilen zu gruppieren",
|
|
405
|
+
cols: "Ein Feld hinzuf\xFCgen oder hierher ziehen, um Spalten zu gruppieren",
|
|
406
|
+
values: "Eine Zahl hinzuf\xFCgen oder hierher ziehen, um sie zu summieren oder zu z\xE4hlen",
|
|
407
|
+
filters: "Ein Feld hinzuf\xFCgen oder hierher ziehen, um den ganzen Bericht zu filtern"
|
|
368
408
|
},
|
|
369
409
|
fields: "Felder",
|
|
370
410
|
fieldsHint: "Ein Feld in Zeilen, Spalten, Werte oder Filter ziehen oder sein Men\xFC \xF6ffnen.",
|
|
@@ -375,6 +415,9 @@ var de = {
|
|
|
375
415
|
addTo: "Zu {zone} hinzuf\xFCgen",
|
|
376
416
|
addAgain: "Noch einmal zu {zone} hinzuf\xFCgen",
|
|
377
417
|
alreadyIn: "{field} ist bereits in {zone}",
|
|
418
|
+
addField: "Hinzuf\xFCgen",
|
|
419
|
+
addFieldTo: "Ein Feld zu {zone} hinzuf\xFCgen",
|
|
420
|
+
movedFrom: "{field} von {from} nach {zone} verschoben",
|
|
378
421
|
move: "Verschieben",
|
|
379
422
|
moveTo: "Nach {zone} verschieben",
|
|
380
423
|
dragHandle: "{field} ziehen",
|
|
@@ -402,8 +445,8 @@ var de = {
|
|
|
402
445
|
newAlready: "Der Bericht ist schon leer.",
|
|
403
446
|
unsavedChanges: "Nicht gespeicherte \xC4nderungen",
|
|
404
447
|
swap: "Zeilen und Spalten tauschen",
|
|
405
|
-
|
|
406
|
-
|
|
448
|
+
zonesTitle: "Felder im Bericht",
|
|
449
|
+
zonesHint: "Felder in Filter, Spalten, Zeilen und Werte ziehen oder in jedem Bereich Hinzuf\xFCgen nutzen.",
|
|
407
450
|
layoutEmpty: "Noch keine Felder angeordnet",
|
|
408
451
|
more: "Mehr",
|
|
409
452
|
views: "Ansichten",
|
|
@@ -414,7 +457,9 @@ var de = {
|
|
|
414
457
|
emptyDrop: "Eine Datei auf den Bericht ziehen, oder",
|
|
415
458
|
emptyNoData: "Daten laden, um zu beginnen",
|
|
416
459
|
exportLabel: "Export",
|
|
417
|
-
|
|
460
|
+
tableSettings: "Tabelleneinstellungen",
|
|
461
|
+
chartSettings: "Diagrammeinstellungen",
|
|
462
|
+
settingsShort: "Einstellungen",
|
|
418
463
|
expand: "{label} aufklappen",
|
|
419
464
|
collapse: "{label} zuklappen",
|
|
420
465
|
showAs: "Anzeigen als",
|
|
@@ -443,7 +488,7 @@ var de = {
|
|
|
443
488
|
bin: "Bereiche"
|
|
444
489
|
},
|
|
445
490
|
derivedName: GROUPING_NAMES.de.name,
|
|
446
|
-
unitInName:
|
|
491
|
+
unitInName: GROUPING_NAMES.de.units,
|
|
447
492
|
binsName: GROUPING_NAMES.de.bins,
|
|
448
493
|
top: "Oberste",
|
|
449
494
|
topBadge: "Top {count}",
|
|
@@ -456,8 +501,8 @@ var de = {
|
|
|
456
501
|
condition: "Textbedingung",
|
|
457
502
|
emptyTitle: "Den Bericht in drei Schritten bauen",
|
|
458
503
|
emptySteps: [
|
|
459
|
-
"
|
|
460
|
-
"Eine Zahl
|
|
504
|
+
"Neben Zeilen auf + Hinzuf\xFCgen klicken oder ein Feld wie Team oder Region hineinziehen.",
|
|
505
|
+
"Eine Zahl genauso zu Werte hinzuf\xFCgen: Sie wird summiert, Text wird gez\xE4hlt.",
|
|
461
506
|
"Ein Feld in Spalten ziehen, zum Diagramm wechseln oder nach Excel exportieren."
|
|
462
507
|
],
|
|
463
508
|
emptyFields: "Die Daten haben keine Spalten.",
|
|
@@ -477,7 +522,8 @@ var de = {
|
|
|
477
522
|
dismissIssues: "Ausblenden",
|
|
478
523
|
loadingChart: "Diagramm wird geladen\u2026",
|
|
479
524
|
noChartData: "Einen Wert hinzuf\xFCgen, um ein Diagramm zu sehen.",
|
|
480
|
-
rowsCount:
|
|
525
|
+
rowsCount: ROW_COUNT_TEXTS.de.rowsCount,
|
|
526
|
+
rowsFiltered: ROW_COUNT_TEXTS.de.rowsFiltered,
|
|
481
527
|
tableName: "Pivot-Tabelle",
|
|
482
528
|
emptyCell: "Keine Zeilen",
|
|
483
529
|
emptyValue: "Kein Wert",
|
|
@@ -487,7 +533,17 @@ var de = {
|
|
|
487
533
|
chartCategories: { one: "{count} Kategorie", other: "{count} Kategorien" },
|
|
488
534
|
chartSeries: { one: "{count} Reihe", other: "{count} Reihen" },
|
|
489
535
|
chartExtremes: "H\xF6chster Wert {max} bei {maxAt}; niedrigster {min} bei {minAt}.",
|
|
536
|
+
chartLines: "Bezugslinien: {lines}.",
|
|
537
|
+
chartTrendSpan: "von {from} bis {to}",
|
|
490
538
|
chartTableHint: "Zur Tabelle wechseln, um jeden Wert zu lesen.",
|
|
539
|
+
chartTotal: "Gesamt",
|
|
540
|
+
chartMore: "+{count} weitere",
|
|
541
|
+
chartMoreInTotal: "+{count} weitere (im Gesamtwert)",
|
|
542
|
+
chartShares: "Als Anteile je Stapel dargestellt.",
|
|
543
|
+
chartZoom: "Zoom-Fenster",
|
|
544
|
+
chartZoomWindow: "Kategorien {from} bis {to} von {count}",
|
|
545
|
+
chartHidden: "{name} ausgeblendet",
|
|
546
|
+
chartShown: "{name} eingeblendet",
|
|
491
547
|
categories: "Kategorien",
|
|
492
548
|
close: "Schlie\xDFen",
|
|
493
549
|
toastRemoved: "{field} entfernt",
|
|
@@ -687,16 +743,13 @@ function hostFailure(withMessage, withoutMessage, error) {
|
|
|
687
743
|
function fill(template, values) {
|
|
688
744
|
return String(template).replace(/\{(\w+)\}/g, (all, name) => Object.hasOwn(values, name) ? String(values[name]) : all);
|
|
689
745
|
}
|
|
690
|
-
var PLURAL_CATEGORIES = Object.freeze(["zero", "one", "two", "few", "many", "other"]);
|
|
691
746
|
var isPluralForms = (v) => v !== null && typeof v === "object" && !Array.isArray(v) && Object.hasOwn(v, "other") && Object.keys(v).every((k) => PLURAL_CATEGORIES.includes(k));
|
|
692
747
|
function plural(forms, count, { lang, locale }) {
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
}
|
|
698
|
-
const form = typeof forms[category] === "string" ? forms[category] : forms.other;
|
|
699
|
-
return fill(form ?? "", { count: count.toLocaleString(locale) });
|
|
748
|
+
return fill(pluralForm(forms, count, lang), { count: count.toLocaleString(locale) });
|
|
749
|
+
}
|
|
750
|
+
function rowCount(shown, total, labels, locale) {
|
|
751
|
+
const lang = { lang: labels.lang, locale };
|
|
752
|
+
return shown < total ? fill(plural(labels.rowsFiltered, total, lang), { shown: shown.toLocaleString(locale) }) : plural(labels.rowsCount, total, lang);
|
|
700
753
|
}
|
|
701
754
|
var isObject = (v) => v !== null && typeof v === "object" && !Array.isArray(v);
|
|
702
755
|
var isTextList = (v) => Array.isArray(v) && v.every((x) => typeof x === "string");
|
|
@@ -753,6 +806,16 @@ function withLegacyTips(custom) {
|
|
|
753
806
|
}
|
|
754
807
|
return { ...custom, tips: { ...moved, ...isObject(custom.tips) ? custom.tips : {} } };
|
|
755
808
|
}
|
|
809
|
+
var REMOVED_LABELS = Object.freeze({ layout: "zonesTitle", showLayout: "zonesTitle", options: "tableSettings", chartDisplay: "chartSettings" });
|
|
810
|
+
function removedLabels(custom) {
|
|
811
|
+
if (!isObject(custom)) {
|
|
812
|
+
return [];
|
|
813
|
+
}
|
|
814
|
+
return Object.keys(
|
|
815
|
+
/** @type {object} */
|
|
816
|
+
custom
|
|
817
|
+
).filter((k) => Object.hasOwn(REMOVED_LABELS, k)).map((k) => [k, REMOVED_LABELS[k]]);
|
|
818
|
+
}
|
|
756
819
|
function resolveLabels(locale, custom) {
|
|
757
820
|
const lang = typeof locale === "string" ? locale.toLowerCase().split(/[-_]/)[0] : "en";
|
|
758
821
|
const base = Object.hasOwn(LABELS, lang) ? LABELS[lang] : en;
|
|
@@ -770,7 +833,9 @@ export {
|
|
|
770
833
|
hostFailure,
|
|
771
834
|
fill,
|
|
772
835
|
plural,
|
|
836
|
+
rowCount,
|
|
773
837
|
MENU_TEXTS,
|
|
774
838
|
mergeLabels,
|
|
839
|
+
removedLabels,
|
|
775
840
|
resolveLabels
|
|
776
841
|
};
|