pivotkit-react 0.1.0 → 0.3.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 +306 -1
- package/README.md +48 -298
- package/dist/chunks/{chunk-ILHFIV2P.js → chunk-32Z33U6S.js} +58 -78
- package/dist/chunks/chunk-7CC4JHDY.js +363 -0
- package/dist/chunks/chunk-APB4NW4O.js +434 -0
- package/dist/chunks/chunk-EM23V5GH.js +183 -0
- package/dist/chunks/{chunk-KKJO36W5.js → chunk-IOPAM4JD.js} +412 -365
- package/dist/chunks/chunk-RWYHJRQO.js +99 -0
- package/dist/chunks/unused-texts-K3VFH65P.js +10 -0
- package/dist/chunks/unused-texts-de-OW4TGIVX.js +6 -0
- package/dist/echarts.js +96 -11
- package/dist/index.js +654 -560
- package/dist/labels.js +13 -4
- package/dist/menu-texts-de.js +6 -0
- package/dist/menus.js +2905 -550
- package/dist/styles.css +738 -216
- package/package.json +2 -2
- package/types/chart-layout.d.ts +111 -0
- package/types/chart-types.d.ts +0 -91
- package/types/chip-menus.d.ts +20 -4
- package/types/dnd.d.ts +8 -4
- package/types/drill-panel.d.ts +5 -22
- package/types/drill-table.d.ts +71 -0
- package/types/drill.d.ts +0 -36
- package/types/filter-level.d.ts +16 -0
- package/types/filter.d.ts +31 -0
- package/types/help.d.ts +14 -0
- package/types/icons.d.ts +4 -0
- package/types/labels.d.ts +114 -101
- package/types/lazy-menus.d.ts +18 -6
- package/types/levels.d.ts +105 -0
- package/types/menu-fields.d.ts +80 -0
- package/types/menu-labels-de.d.ts +2 -0
- package/types/menu-labels.d.ts +270 -13
- package/types/menu-ops.d.ts +286 -0
- package/types/menu-texts.d.ts +2 -0
- package/types/menu-topics.d.ts +293 -0
- package/types/menus.d.ts +2 -2
- package/types/names.d.ts +160 -20
- package/types/overflow.d.ts +4 -1
- package/types/place.d.ts +44 -0
- package/types/popover.d.ts +10 -6
- package/types/section.d.ts +8 -28
- package/types/share-actions.d.ts +99 -0
- package/types/share.d.ts +0 -9
- package/types/table.d.ts +9 -3
- package/types/templates.d.ts +7 -1
- package/types/tips.d.ts +1 -34
- package/types/toolbar-panels.d.ts +20 -10
- package/types/unused-load.d.ts +23 -0
- package/types/unused-texts-de.d.ts +2 -0
- package/types/unused-texts.d.ts +136 -0
- package/types/unused.d.ts +22 -0
- package/types/use-view-history.d.ts +8 -4
- package/types/view-history.d.ts +23 -6
- package/types/view-ops.d.ts +80 -119
- package/types/view-save.d.ts +76 -0
- package/types/view-store.d.ts +13 -6
- package/types/zones.d.ts +5 -4
- package/dist/chunks/chunk-C32TYSHG.js +0 -441
- package/dist/chunks/chunk-XYP47DJ3.js +0 -123
|
@@ -1,441 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
MENU_TEXTS,
|
|
3
|
-
mergeLabels
|
|
4
|
-
} from "./chunk-ILHFIV2P.js";
|
|
5
|
-
|
|
6
|
-
// src/menu-labels.js
|
|
7
|
-
var en = {
|
|
8
|
-
// the "i" next to a setting that needs explaining (Options → Help → Show explanations)
|
|
9
|
-
aboutSetting: "About {setting}",
|
|
10
|
-
settingInfo: {
|
|
11
|
-
grandTotalRow: "A last row with the total of every column.",
|
|
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.",
|
|
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
|
-
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
|
-
exportXlsx: "Every number with all its decimals, formats kept, ready to calculate with.",
|
|
18
|
-
exportCsv: "Percentages and calculations as the table shows them, as plain text.",
|
|
19
|
-
copyTable: "The table as it is shown, headers and totals included: tab-separated, pastes into Excel or Google Sheets as columns.",
|
|
20
|
-
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
|
-
drillCopy: "The rows as the panel shows them, with a header row: tab-separated, pastes into Excel or Google Sheets as columns.",
|
|
22
|
-
drillJson: "The rows as JSON objects, with the data's field names and raw values, for a program.",
|
|
23
|
-
groupLabels: "With two or more fields in Rows: the outer field's items written once under the axis, below their categories.",
|
|
24
|
-
labelPosition: "Outside: each slice's name and number next to it. Inside: the number on the slice, the names in the legend.",
|
|
25
|
-
sharedView: "Only admins can change shared views."
|
|
26
|
-
},
|
|
27
|
-
moveLeft: "Move left",
|
|
28
|
-
moveRight: "Move right",
|
|
29
|
-
// the foot of a chip menu: takes the field (or value) out of the report; "Remove" alone is a form's (removeSetting)
|
|
30
|
-
remove: "Remove field",
|
|
31
|
-
// the hint of "Automatic" in the chart type menu: the type it draws for this view
|
|
32
|
-
chartAutoNow: "Now: {type}",
|
|
33
|
-
// the Views menu: the host's shared views, the user's own ("My views") and the browser store
|
|
34
|
-
sharedViews: "Shared views",
|
|
35
|
-
myViews: "My views",
|
|
36
|
-
noViews: "No saved views yet.",
|
|
37
|
-
publishView: "Publish {name} as a shared view",
|
|
38
|
-
publishConfirm: "Publish \u201C{name}\u201D as a shared view? Everyone who uses this report sees it.",
|
|
39
|
-
publishAction: "Publish",
|
|
40
|
-
storeNote: "Kept in this browser only: not on other devices, and gone when the site's data is cleared.",
|
|
41
|
-
storeFull: "this browser keeps at most {max} views",
|
|
42
|
-
storeTooLarge: "the views would take more than {max} characters",
|
|
43
|
-
storeRefused: "this browser did not keep it (storage blocked or full)",
|
|
44
|
-
storeChanged: "the views were changed in another tab; open the menu again",
|
|
45
|
-
// what a save, a delete or a publish in the Views menu came to; "Rejected": the host refused
|
|
46
|
-
// without saying why (a rejected promise without a message)
|
|
47
|
-
toastSaved: "View \u201C{name}\u201D saved",
|
|
48
|
-
toastDeleted: "View \u201C{name}\u201D deleted",
|
|
49
|
-
toastPublished: "View \u201C{name}\u201D published",
|
|
50
|
-
toastSaveFailed: "The view could not be saved: {message}",
|
|
51
|
-
toastDeleteFailed: "The view could not be deleted: {message}",
|
|
52
|
-
toastPublishFailed: "The view could not be published: {message}",
|
|
53
|
-
toastSaveRejected: "The server could not save the view.",
|
|
54
|
-
toastDeleteRejected: "The server could not delete the view.",
|
|
55
|
-
toastPublishRejected: "The server could not publish the view.",
|
|
56
|
-
deleteView: "Delete {name}",
|
|
57
|
-
deleteConfirm: "Delete \u201C{name}\u201D?",
|
|
58
|
-
deleteAction: "Delete",
|
|
59
|
-
saveView: "Save current view",
|
|
60
|
-
viewName: "Name of the view",
|
|
61
|
-
save: "Save",
|
|
62
|
-
cancel: "Cancel",
|
|
63
|
-
expandAll: "Expand all",
|
|
64
|
-
collapseAll: "Collapse all",
|
|
65
|
-
// chip menus
|
|
66
|
-
aggregation: "Summarize by",
|
|
67
|
-
moreStatistics: "More statistics",
|
|
68
|
-
showAsNone: "The value itself",
|
|
69
|
-
moreCalculations: "More calculations",
|
|
70
|
-
showAsNames: {
|
|
71
|
-
percentOfGrandTotal: "% of grand total",
|
|
72
|
-
percentOfRowTotal: "% of row total",
|
|
73
|
-
percentOfColumnTotal: "% of column total",
|
|
74
|
-
percentOfParentRow: "% of parent row",
|
|
75
|
-
percentOfParentColumn: "% of parent column",
|
|
76
|
-
differenceFromPrevious: "Difference from previous",
|
|
77
|
-
percentDifferenceFromPrevious: "% difference from previous",
|
|
78
|
-
runningTotal: "Running total",
|
|
79
|
-
percentRunningTotal: "% running total",
|
|
80
|
-
rankAscending: "Rank, smallest first",
|
|
81
|
-
rankDescending: "Rank, largest first"
|
|
82
|
-
},
|
|
83
|
-
along: "Along",
|
|
84
|
-
format: "Number format",
|
|
85
|
-
formatAuto: "Automatic",
|
|
86
|
-
formats: {
|
|
87
|
-
number: "Number",
|
|
88
|
-
"number:0": "Number, no decimals",
|
|
89
|
-
"number:2": "Number, 2 decimals",
|
|
90
|
-
integer: "Whole number",
|
|
91
|
-
currency: "Currency",
|
|
92
|
-
percent: "Percent",
|
|
93
|
-
compact: "Compact (1.2K)",
|
|
94
|
-
bytes: "Bytes (KB, MB)",
|
|
95
|
-
"duration:h": "Duration from hours",
|
|
96
|
-
"duration:s": "Duration from seconds"
|
|
97
|
-
},
|
|
98
|
-
conditional: "Highlight",
|
|
99
|
-
conditionalNone: "None",
|
|
100
|
-
colorScale: "Colour scale",
|
|
101
|
-
dataBar: "Data bars",
|
|
102
|
-
rename: "Name",
|
|
103
|
-
sortOldest: "Oldest first",
|
|
104
|
-
sortNewest: "Newest first",
|
|
105
|
-
groupBy: "Group dates by",
|
|
106
|
-
groupNone: "No grouping (every date and time)",
|
|
107
|
-
groupTimeline: "Along the time line",
|
|
108
|
-
groupCyclic: "Compare periods across years",
|
|
109
|
-
unitHints: {
|
|
110
|
-
year: "2025",
|
|
111
|
-
yearQuarter: "Q1 2025",
|
|
112
|
-
yearMonth: "Jan 2025",
|
|
113
|
-
yearWeek: "2025-W03",
|
|
114
|
-
day: "Jan 15, 2025",
|
|
115
|
-
quarter: "Q1 of every year",
|
|
116
|
-
month: "Jan of every year",
|
|
117
|
-
week: "W03 of every year",
|
|
118
|
-
weekday: "Mon to Sun",
|
|
119
|
-
hour: "00:00 to 23:00",
|
|
120
|
-
bin: ""
|
|
121
|
-
},
|
|
122
|
-
bins: "Group numbers into ranges",
|
|
123
|
-
binSize: "Range size",
|
|
124
|
-
binStart: "Starting at",
|
|
125
|
-
binStartFar: "Ranges from {start} cannot hold this field's values ({min} to {max}): every row would be blank. Pick a start closer to them.",
|
|
126
|
-
apply: "Apply",
|
|
127
|
-
// removes what a form of the field menu set: its ranges, its Top N, its value condition
|
|
128
|
-
removeSetting: "Remove",
|
|
129
|
-
topN: "Show only the top items",
|
|
130
|
-
topCount: "Count",
|
|
131
|
-
bottom: "Bottom",
|
|
132
|
-
topBy: "by",
|
|
133
|
-
searchValues: "Search values",
|
|
134
|
-
selectAll: "Select all",
|
|
135
|
-
selectNone: "Select none",
|
|
136
|
-
onlyThis: "Only",
|
|
137
|
-
valuesShown: "{shown} of {total} values; search to find more",
|
|
138
|
-
conditionNumber: "Condition on the label",
|
|
139
|
-
conditionNone: "No condition",
|
|
140
|
-
conditionValue: "Text",
|
|
141
|
-
selected: "{count} selected",
|
|
142
|
-
// the Export menu
|
|
143
|
-
exportDownload: "Download",
|
|
144
|
-
exportCopy: "Copy",
|
|
145
|
-
exportXlsx: "Excel workbook (.xlsx)",
|
|
146
|
-
exportCsv: "CSV file (.csv)",
|
|
147
|
-
exportPng: "Chart image (.png)",
|
|
148
|
-
exportPngNeedsChart: "Switch to Chart first.",
|
|
149
|
-
copyTable: "Copy table",
|
|
150
|
-
copyDataJson: "Copy data as JSON",
|
|
151
|
-
toastTableCopied: "Table copied: tab-separated, pastes into Excel or Google Sheets as columns",
|
|
152
|
-
toastDataCopied: "Data copied as JSON",
|
|
153
|
-
toastCopyBlocked: "This page does not allow copying. Download a file instead.",
|
|
154
|
-
// drill-down
|
|
155
|
-
drillTitle: "Rows behind this value",
|
|
156
|
-
drillCount: { one: "{count} row", other: "{count} rows" },
|
|
157
|
-
drillShown: "Showing the first {shown} of {count} rows",
|
|
158
|
-
drillCopy: "Copy",
|
|
159
|
-
drillJson: "Copy as JSON",
|
|
160
|
-
drillCsv: "Download CSV",
|
|
161
|
-
drillXlsx: "Download Excel",
|
|
162
|
-
// what an export of the panel's rows holds: all of them, or the first of more
|
|
163
|
-
drillPart: "{shown} of {count} rows",
|
|
164
|
-
drillCopied: "Copied {rows}: tab-separated, pastes into Excel or Google Sheets as columns",
|
|
165
|
-
drillCopiedJson: "Copied {rows} as JSON",
|
|
166
|
-
drillExported: "Exported {file} ({rows})",
|
|
167
|
-
drillExportNote: "Holds the first {shown} of {count} rows, as shown here.",
|
|
168
|
-
showTips: "Show tips",
|
|
169
|
-
// the "i" of the settings, the zones and the field descriptions
|
|
170
|
-
showSettingInfo: "Show explanations",
|
|
171
|
-
resetTips: "Show dismissed tips again",
|
|
172
|
-
help: "Help",
|
|
173
|
-
shortcutsTitle: "Keyboard shortcuts",
|
|
174
|
-
// the keys of the shortcuts; "Mod" is Ctrl, or ⌘ on a Mac
|
|
175
|
-
keys: { Mod: "Ctrl", Shift: "Shift", "Arrow keys": "Arrow keys", Enter: "Enter", Space: "Space", Escape: "Escape", F10: "F10" },
|
|
176
|
-
valueLabels: "Value labels",
|
|
177
|
-
valueLabelNames: { auto: "Automatic", off: "Off", value: "Value", percent: "Percent", both: "Value and percent" },
|
|
178
|
-
legend: "Legend",
|
|
179
|
-
legendNames: { auto: "Automatic", bottom: "Bottom", right: "Right", off: "Off" },
|
|
180
|
-
chartTitle: "Title",
|
|
181
|
-
chartTitleNone: "No title",
|
|
182
|
-
smoothLines: "Smooth lines",
|
|
183
|
-
labelPosition: "Labels",
|
|
184
|
-
labelPositionNames: { outside: "Outside", inside: "Inside" },
|
|
185
|
-
axisLabels: "Axis labels",
|
|
186
|
-
axisLabelNames: { auto: "Automatic", all: "All (slanted)", nth: "Every n-th" },
|
|
187
|
-
groupLabels: "Group labels under the axis",
|
|
188
|
-
groupLabelNames: { auto: "Automatic", on: "On", off: "Off" },
|
|
189
|
-
defaultName: "Use the default name",
|
|
190
|
-
// sharing a view (the Views menu)
|
|
191
|
-
share: "Share",
|
|
192
|
-
copyLink: "Copy link",
|
|
193
|
-
copyJson: "Copy view as JSON",
|
|
194
|
-
downloadView: "Download view (.pivotkit.json)",
|
|
195
|
-
// said where a view leaves the report as a file, as JSON or as a link
|
|
196
|
-
sharePrivacy: "A view holds the names of fields and, in its filters, the values chosen there: share it only where those may be seen.",
|
|
197
|
-
loadView: "Load view\u2026",
|
|
198
|
-
loadViewHint: "Paste a view file, a view as JSON or a link, or choose a .pivotkit.json file.",
|
|
199
|
-
loadViewText: "View as JSON or link",
|
|
200
|
-
chooseFile: "Choose file\u2026",
|
|
201
|
-
load: "Load",
|
|
202
|
-
// before a view for other data is loaded: what does not fit, and the choices
|
|
203
|
-
loadCheckTitle: "This view may not fit this data",
|
|
204
|
-
loadAnyway: "Load anyway",
|
|
205
|
-
switchAndLoad: "Switch to \u201C{source}\u201D and load",
|
|
206
|
-
switchStartsFresh: "Switching shows the other data with this view; Undo starts there.",
|
|
207
|
-
numberInvalid: "Enter a number, such as {example}.",
|
|
208
|
-
countInvalid: "Enter a whole number of 1 or more.",
|
|
209
|
-
sizeInvalid: "Enter a number above 0, such as {example}.",
|
|
210
|
-
valueFilter: "Value filter\u2026",
|
|
211
|
-
valueFilterBy: "Value",
|
|
212
|
-
valueFilterOp: "Condition",
|
|
213
|
-
valueFilterNumber: "Number",
|
|
214
|
-
valueFilterTo: "and",
|
|
215
|
-
valueOps: { "=": "equals", "!=": "does not equal", ">": "greater than", ">=": "greater than or equal to", "<": "less than", "<=": "less than or equal to", between: "between", notBetween: "not between" },
|
|
216
|
-
removeFilter: "Remove filter",
|
|
217
|
-
valuesFilterHint: "Values are not filtered here: filter a field on Rows or Columns through its menu, or move a field to Filters.",
|
|
218
|
-
// collapsible sections of the menus
|
|
219
|
-
moreFormats: "More formats"
|
|
220
|
-
};
|
|
221
|
-
var de = {
|
|
222
|
-
aboutSetting: "\xDCber {setting}",
|
|
223
|
-
settingInfo: {
|
|
224
|
-
grandTotalRow: "Eine letzte Zeile mit der Summe jeder Spalte.",
|
|
225
|
-
grandTotalColumn: "Eine letzte Spalte mit der Summe jeder Zeile.",
|
|
226
|
-
rowSubtotals: "Mit zwei oder mehr Feldern in Zeilen: eine Summenzeile unter jeder Gruppe des \xE4u\xDFeren Felds.",
|
|
227
|
-
colSubtotals: "Mit zwei oder mehr Feldern in Spalten: eine Summenspalte nach jeder Gruppe des \xE4u\xDFeren Felds.",
|
|
228
|
-
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.",
|
|
229
|
-
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.",
|
|
230
|
-
exportXlsx: "Jede Zahl mit allen Nachkommastellen, Formate bleiben, bereit zum Rechnen.",
|
|
231
|
-
exportCsv: "Prozente und Berechnungen wie in der Tabelle, als reiner Text.",
|
|
232
|
-
copyTable: "Die Tabelle wie angezeigt, mit \xDCberschriften und Summen: tabulatorgetrennt, wird in Excel oder Google Sheets in Spalten eingef\xFCgt.",
|
|
233
|
-
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.",
|
|
234
|
-
drillCopy: "Die Zeilen wie im Bereich angezeigt, mit einer \xDCberschriftenzeile: tabulatorgetrennt, wird in Excel oder Google Sheets in Spalten eingef\xFCgt.",
|
|
235
|
-
drillJson: "Die Zeilen als JSON-Objekte, mit den Feldnamen und Rohwerten der Daten, f\xFCr ein Programm.",
|
|
236
|
-
groupLabels: "Mit zwei oder mehr Feldern in Zeilen: die Eintr\xE4ge des \xE4u\xDFeren Felds einmal unter der Achse, unter ihren Kategorien.",
|
|
237
|
-
labelPosition: "Au\xDFen: Name und Zahl jedes Segments daneben. Innen: die Zahl auf dem Segment, die Namen in der Legende.",
|
|
238
|
-
sharedView: "Nur Admins k\xF6nnen gemeinsame Ansichten \xE4ndern."
|
|
239
|
-
},
|
|
240
|
-
moveLeft: "Nach links",
|
|
241
|
-
moveRight: "Nach rechts",
|
|
242
|
-
remove: "Feld entfernen",
|
|
243
|
-
chartAutoNow: "Jetzt: {type}",
|
|
244
|
-
sharedViews: "Gemeinsame Ansichten",
|
|
245
|
-
myViews: "Meine Ansichten",
|
|
246
|
-
noViews: "Noch keine gespeicherten Ansichten.",
|
|
247
|
-
publishView: "{name} als gemeinsame Ansicht ver\xF6ffentlichen",
|
|
248
|
-
publishConfirm: "\u201E{name}\u201C als gemeinsame Ansicht ver\xF6ffentlichen? Alle, die diesen Bericht nutzen, sehen sie.",
|
|
249
|
-
publishAction: "Ver\xF6ffentlichen",
|
|
250
|
-
storeNote: "Nur in diesem Browser gespeichert: nicht auf anderen Ger\xE4ten, und weg, wenn die Websitedaten gel\xF6scht werden.",
|
|
251
|
-
storeFull: "dieser Browser beh\xE4lt h\xF6chstens {max} Ansichten",
|
|
252
|
-
storeTooLarge: "die Ansichten br\xE4uchten mehr als {max} Zeichen",
|
|
253
|
-
storeRefused: "dieser Browser hat sie nicht behalten (Speicher gesperrt oder voll)",
|
|
254
|
-
storeChanged: "die Ansichten wurden in einem anderen Tab ge\xE4ndert; das Men\xFC neu \xF6ffnen",
|
|
255
|
-
toastSaved: "Ansicht \u201E{name}\u201C gespeichert",
|
|
256
|
-
toastDeleted: "Ansicht \u201E{name}\u201C gel\xF6scht",
|
|
257
|
-
toastPublished: "Ansicht \u201E{name}\u201C ver\xF6ffentlicht",
|
|
258
|
-
toastSaveFailed: "Die Ansicht konnte nicht gespeichert werden: {message}",
|
|
259
|
-
toastDeleteFailed: "Die Ansicht konnte nicht gel\xF6scht werden: {message}",
|
|
260
|
-
toastPublishFailed: "Die Ansicht konnte nicht ver\xF6ffentlicht werden: {message}",
|
|
261
|
-
toastSaveRejected: "Der Server konnte die Ansicht nicht speichern.",
|
|
262
|
-
toastDeleteRejected: "Der Server konnte die Ansicht nicht l\xF6schen.",
|
|
263
|
-
toastPublishRejected: "Der Server konnte die Ansicht nicht ver\xF6ffentlichen.",
|
|
264
|
-
deleteView: "{name} l\xF6schen",
|
|
265
|
-
deleteConfirm: "\u201E{name}\u201C l\xF6schen?",
|
|
266
|
-
deleteAction: "L\xF6schen",
|
|
267
|
-
saveView: "Aktuelle Ansicht speichern",
|
|
268
|
-
viewName: "Name der Ansicht",
|
|
269
|
-
save: "Speichern",
|
|
270
|
-
cancel: "Abbrechen",
|
|
271
|
-
expandAll: "Alle aufklappen",
|
|
272
|
-
collapseAll: "Alle zuklappen",
|
|
273
|
-
aggregation: "Zusammenfassen mit",
|
|
274
|
-
moreStatistics: "Weitere Statistiken",
|
|
275
|
-
showAsNone: "Der Wert selbst",
|
|
276
|
-
moreCalculations: "Weitere Berechnungen",
|
|
277
|
-
showAsNames: {
|
|
278
|
-
percentOfGrandTotal: "% des Gesamtergebnisses",
|
|
279
|
-
percentOfRowTotal: "% der Zeilensumme",
|
|
280
|
-
percentOfColumnTotal: "% der Spaltensumme",
|
|
281
|
-
percentOfParentRow: "% der \xFCbergeordneten Zeile",
|
|
282
|
-
percentOfParentColumn: "% der \xFCbergeordneten Spalte",
|
|
283
|
-
differenceFromPrevious: "Differenz zum vorherigen",
|
|
284
|
-
percentDifferenceFromPrevious: "% Differenz zum vorherigen",
|
|
285
|
-
runningTotal: "Laufende Summe",
|
|
286
|
-
percentRunningTotal: "% laufende Summe",
|
|
287
|
-
rankAscending: "Rang, kleinster zuerst",
|
|
288
|
-
rankDescending: "Rang, gr\xF6\xDFter zuerst"
|
|
289
|
-
},
|
|
290
|
-
along: "Entlang",
|
|
291
|
-
format: "Zahlenformat",
|
|
292
|
-
formatAuto: "Automatisch",
|
|
293
|
-
formats: {
|
|
294
|
-
number: "Zahl",
|
|
295
|
-
"number:0": "Zahl ohne Nachkommastellen",
|
|
296
|
-
"number:2": "Zahl mit 2 Nachkommastellen",
|
|
297
|
-
integer: "Ganze Zahl",
|
|
298
|
-
currency: "W\xE4hrung",
|
|
299
|
-
percent: "Prozent",
|
|
300
|
-
compact: "Kompakt (1,2 Tsd.)",
|
|
301
|
-
bytes: "Bytes (KB, MB)",
|
|
302
|
-
"duration:h": "Dauer aus Stunden",
|
|
303
|
-
"duration:s": "Dauer aus Sekunden"
|
|
304
|
-
},
|
|
305
|
-
conditional: "Hervorheben",
|
|
306
|
-
conditionalNone: "Keine",
|
|
307
|
-
colorScale: "Farbskala",
|
|
308
|
-
dataBar: "Datenbalken",
|
|
309
|
-
rename: "Name",
|
|
310
|
-
sortOldest: "\xC4lteste zuerst",
|
|
311
|
-
sortNewest: "Neueste zuerst",
|
|
312
|
-
groupBy: "Datum gruppieren nach",
|
|
313
|
-
groupNone: "Keine Gruppierung (jedes Datum mit Uhrzeit)",
|
|
314
|
-
groupTimeline: "Entlang der Zeitachse",
|
|
315
|
-
groupCyclic: "Zeitr\xE4ume \xFCber Jahre vergleichen",
|
|
316
|
-
unitHints: {
|
|
317
|
-
year: "2025",
|
|
318
|
-
yearQuarter: "Q1 2025",
|
|
319
|
-
yearMonth: "Jan. 2025",
|
|
320
|
-
yearWeek: "2025-W03",
|
|
321
|
-
day: "15.01.2025",
|
|
322
|
-
quarter: "Q1 jedes Jahres",
|
|
323
|
-
month: "Jan. jedes Jahres",
|
|
324
|
-
week: "W03 jedes Jahres",
|
|
325
|
-
weekday: "Mo. bis So.",
|
|
326
|
-
hour: "00:00 bis 23:00",
|
|
327
|
-
bin: ""
|
|
328
|
-
},
|
|
329
|
-
bins: "Zahlen in Bereiche gruppieren",
|
|
330
|
-
binSize: "Bereichsgr\xF6\xDFe",
|
|
331
|
-
binStart: "Beginnt bei",
|
|
332
|
-
binStartFar: "Bereiche ab {start} k\xF6nnen die Werte dieses Felds ({min} bis {max}) nicht fassen: Jede Zeile w\xE4re leer. Einen Beginn n\xE4her an den Werten w\xE4hlen.",
|
|
333
|
-
apply: "Anwenden",
|
|
334
|
-
removeSetting: "Entfernen",
|
|
335
|
-
topN: "Nur die obersten Eintr\xE4ge zeigen",
|
|
336
|
-
topCount: "Anzahl",
|
|
337
|
-
bottom: "Unterste",
|
|
338
|
-
topBy: "nach",
|
|
339
|
-
searchValues: "Werte suchen",
|
|
340
|
-
selectAll: "Alle ausw\xE4hlen",
|
|
341
|
-
selectNone: "Keine ausw\xE4hlen",
|
|
342
|
-
onlyThis: "Nur",
|
|
343
|
-
valuesShown: "{shown} von {total} Werten; suchen, um weitere zu finden",
|
|
344
|
-
conditionNumber: "Bedingung f\xFCr die Beschriftung",
|
|
345
|
-
conditionNone: "Keine Bedingung",
|
|
346
|
-
conditionValue: "Text",
|
|
347
|
-
selected: "{count} ausgew\xE4hlt",
|
|
348
|
-
exportDownload: "Herunterladen",
|
|
349
|
-
exportCopy: "Kopieren",
|
|
350
|
-
exportXlsx: "Excel-Arbeitsmappe (.xlsx)",
|
|
351
|
-
exportCsv: "CSV-Datei (.csv)",
|
|
352
|
-
exportPng: "Diagramm als Bild (.png)",
|
|
353
|
-
exportPngNeedsChart: "Zuerst zum Diagramm wechseln.",
|
|
354
|
-
copyTable: "Tabelle kopieren",
|
|
355
|
-
copyDataJson: "Daten als JSON kopieren",
|
|
356
|
-
toastTableCopied: "Tabelle kopiert: tabulatorgetrennt, wird in Excel oder Google Sheets in Spalten eingef\xFCgt",
|
|
357
|
-
toastDataCopied: "Daten als JSON kopiert",
|
|
358
|
-
toastCopyBlocked: "Diese Seite erlaubt kein Kopieren. Stattdessen eine Datei herunterladen.",
|
|
359
|
-
drillTitle: "Zeilen hinter diesem Wert",
|
|
360
|
-
drillCount: { one: "{count} Zeile", other: "{count} Zeilen" },
|
|
361
|
-
drillShown: "Die ersten {shown} von {count} Zeilen",
|
|
362
|
-
drillCopy: "Kopieren",
|
|
363
|
-
drillJson: "Als JSON kopieren",
|
|
364
|
-
drillCsv: "CSV herunterladen",
|
|
365
|
-
drillXlsx: "Excel herunterladen",
|
|
366
|
-
drillPart: "{shown} von {count} Zeilen",
|
|
367
|
-
drillCopied: "{rows} kopiert: tabulatorgetrennt, wird in Excel oder Google Sheets in Spalten eingef\xFCgt",
|
|
368
|
-
drillCopiedJson: "{rows} als JSON kopiert",
|
|
369
|
-
drillExported: "{file} exportiert ({rows})",
|
|
370
|
-
drillExportNote: "Enth\xE4lt die ersten {shown} von {count} Zeilen, wie hier gezeigt.",
|
|
371
|
-
showTips: "Tipps zeigen",
|
|
372
|
-
showSettingInfo: "Erkl\xE4rungen zeigen",
|
|
373
|
-
resetTips: "Ausgeblendete Tipps wieder zeigen",
|
|
374
|
-
help: "Hilfe",
|
|
375
|
-
shortcutsTitle: "Tastenk\xFCrzel",
|
|
376
|
-
keys: { Mod: "Strg", Shift: "Umschalt", "Arrow keys": "Pfeiltasten", Enter: "Eingabe", Space: "Leertaste", Escape: "Esc", F10: "F10" },
|
|
377
|
-
valueLabels: "Wertbeschriftung",
|
|
378
|
-
valueLabelNames: { auto: "Automatisch", off: "Aus", value: "Wert", percent: "Prozent", both: "Wert und Prozent" },
|
|
379
|
-
legend: "Legende",
|
|
380
|
-
legendNames: { auto: "Automatisch", bottom: "Unten", right: "Rechts", off: "Aus" },
|
|
381
|
-
chartTitle: "Titel",
|
|
382
|
-
chartTitleNone: "Kein Titel",
|
|
383
|
-
smoothLines: "Gegl\xE4ttete Linien",
|
|
384
|
-
labelPosition: "Beschriftung",
|
|
385
|
-
labelPositionNames: { outside: "Au\xDFen", inside: "Innen" },
|
|
386
|
-
axisLabels: "Achsenbeschriftung",
|
|
387
|
-
axisLabelNames: { auto: "Automatisch", all: "Alle (schr\xE4g)", nth: "Jede n-te" },
|
|
388
|
-
groupLabels: "Gruppen unter der Achse",
|
|
389
|
-
groupLabelNames: { auto: "Automatisch", on: "Ein", off: "Aus" },
|
|
390
|
-
defaultName: "Standardnamen verwenden",
|
|
391
|
-
share: "Teilen",
|
|
392
|
-
copyLink: "Link kopieren",
|
|
393
|
-
copyJson: "Ansicht als JSON kopieren",
|
|
394
|
-
downloadView: "Ansicht herunterladen (.pivotkit.json)",
|
|
395
|
-
sharePrivacy: "Eine Ansicht enth\xE4lt die Namen der Felder und in ihren Filtern die dort gew\xE4hlten Werte: Nur dort teilen, wo diese gesehen werden d\xFCrfen.",
|
|
396
|
-
loadView: "Ansicht laden\u2026",
|
|
397
|
-
loadViewHint: "Eine Ansichtsdatei, eine Ansicht als JSON oder einen Link einf\xFCgen oder eine .pivotkit.json-Datei w\xE4hlen.",
|
|
398
|
-
loadViewText: "Ansicht als JSON oder Link",
|
|
399
|
-
chooseFile: "Datei w\xE4hlen\u2026",
|
|
400
|
-
load: "Laden",
|
|
401
|
-
loadCheckTitle: "Diese Ansicht passt vielleicht nicht zu diesen Daten",
|
|
402
|
-
loadAnyway: "Trotzdem laden",
|
|
403
|
-
switchAndLoad: "Zu \u201E{source}\u201C wechseln und laden",
|
|
404
|
-
switchStartsFresh: "Der Wechsel zeigt die anderen Daten mit dieser Ansicht; R\xFCckg\xE4ngig beginnt dort.",
|
|
405
|
-
numberInvalid: "Eine Zahl eingeben, etwa {example}.",
|
|
406
|
-
countInvalid: "Eine ganze Zahl ab 1 eingeben.",
|
|
407
|
-
sizeInvalid: "Eine Zahl \xFCber 0 eingeben, etwa {example}.",
|
|
408
|
-
valueFilter: "Wertfilter\u2026",
|
|
409
|
-
valueFilterBy: "Wert",
|
|
410
|
-
valueFilterOp: "Bedingung",
|
|
411
|
-
valueFilterNumber: "Zahl",
|
|
412
|
-
valueFilterTo: "und",
|
|
413
|
-
valueOps: { "=": "gleich", "!=": "ungleich", ">": "gr\xF6\xDFer als", ">=": "gr\xF6\xDFer oder gleich", "<": "kleiner als", "<=": "kleiner oder gleich", between: "zwischen", notBetween: "nicht zwischen" },
|
|
414
|
-
removeFilter: "Filter entfernen",
|
|
415
|
-
valuesFilterHint: "Werte werden hier nicht gefiltert: Ein Feld in Zeilen oder Spalten \xFCber sein Men\xFC filtern oder ein Feld in Filter ziehen.",
|
|
416
|
-
moreFormats: "Weitere Formate"
|
|
417
|
-
};
|
|
418
|
-
var MENU_LABELS = /* @__PURE__ */ Object.freeze({ en, de });
|
|
419
|
-
var done = /* @__PURE__ */ new WeakMap();
|
|
420
|
-
function menuLabels(labels) {
|
|
421
|
-
const known = done.get(labels);
|
|
422
|
-
if (known) {
|
|
423
|
-
return known;
|
|
424
|
-
}
|
|
425
|
-
const base = Object.hasOwn(MENU_LABELS, labels.lang) ? MENU_LABELS[labels.lang] : en;
|
|
426
|
-
const out = (
|
|
427
|
-
/** @type {import("./labels.js").UiLabels} */
|
|
428
|
-
{ ...labels, ...mergeLabels(
|
|
429
|
-
base,
|
|
430
|
-
/** @type {any} */
|
|
431
|
-
labels[MENU_TEXTS]
|
|
432
|
-
) }
|
|
433
|
-
);
|
|
434
|
-
done.set(labels, out);
|
|
435
|
-
return out;
|
|
436
|
-
}
|
|
437
|
-
|
|
438
|
-
export {
|
|
439
|
-
MENU_LABELS,
|
|
440
|
-
menuLabels
|
|
441
|
-
};
|
|
@@ -1,123 +0,0 @@
|
|
|
1
|
-
// src/chart-types.js
|
|
2
|
-
import { autoChartType } from "pivotkit-core";
|
|
3
|
-
var CHART_TYPES = Object.freeze({
|
|
4
|
-
auto: { chart: { type: "auto", stacked: false, horizontal: false }, icon: "sparkle", axis: true },
|
|
5
|
-
bar: { chart: { type: "bar", stacked: false, horizontal: false }, icon: "chart", axis: true },
|
|
6
|
-
stacked: { chart: { type: "bar", stacked: true, horizontal: false }, icon: "stacked", axis: true },
|
|
7
|
-
horizontal: { chart: { type: "bar", stacked: false, horizontal: true }, icon: "horizontal", axis: true },
|
|
8
|
-
line: { chart: { type: "line", stacked: false, horizontal: false }, icon: "line", axis: true },
|
|
9
|
-
area: { chart: { type: "area", stacked: false, horizontal: false }, icon: "area", axis: true },
|
|
10
|
-
pie: { chart: { type: "pie", stacked: false, horizontal: false }, icon: "pie", axis: false },
|
|
11
|
-
donut: { chart: { type: "donut", stacked: false, horizontal: false }, icon: "donut", axis: false },
|
|
12
|
-
heatmap: { chart: { type: "heatmap", stacked: false, horizontal: false }, icon: "heatmap", axis: false }
|
|
13
|
-
});
|
|
14
|
-
var SLICE_TYPES = Object.freeze(["pie", "donut"]);
|
|
15
|
-
var CHART_TYPE_NAMES = Object.freeze(Object.keys(CHART_TYPES));
|
|
16
|
-
function chartTypeOf(chart) {
|
|
17
|
-
const found = CHART_TYPE_NAMES.find((name) => {
|
|
18
|
-
const c = CHART_TYPES[name].chart;
|
|
19
|
-
return c.type === chart.type && c.stacked === Boolean(chart.stacked) && c.horizontal === Boolean(chart.horizontal);
|
|
20
|
-
});
|
|
21
|
-
if (found) {
|
|
22
|
-
return found;
|
|
23
|
-
}
|
|
24
|
-
if (chart.type === "bar") {
|
|
25
|
-
return chart.horizontal ? "horizontal" : "stacked";
|
|
26
|
-
}
|
|
27
|
-
return CHART_TYPE_NAMES.find((name) => CHART_TYPES[name].chart.type === chart.type) ?? "bar";
|
|
28
|
-
}
|
|
29
|
-
function chartPlan(view, encoded) {
|
|
30
|
-
if (view.chart.type !== "auto") {
|
|
31
|
-
const name2 = chartTypeOf(view.chart);
|
|
32
|
-
return { name: name2, auto: false, swap: false, chart: { type: view.chart.type, stacked: Boolean(view.chart.stacked), horizontal: Boolean(view.chart.horizontal) } };
|
|
33
|
-
}
|
|
34
|
-
const own = autoChartType(
|
|
35
|
-
/** @type {any} */
|
|
36
|
-
view,
|
|
37
|
-
encoded
|
|
38
|
-
);
|
|
39
|
-
const swap = own === "bar" && view.cols.length > 0 && autoChartType(
|
|
40
|
-
/** @type {any} */
|
|
41
|
-
{ ...view, rows: view.cols },
|
|
42
|
-
encoded
|
|
43
|
-
) === "line";
|
|
44
|
-
const name = own === "line" || swap ? "line" : "bar";
|
|
45
|
-
return { name, auto: true, swap, chart: { ...CHART_TYPES[name].chart } };
|
|
46
|
-
}
|
|
47
|
-
var MANY_SERIES = 8;
|
|
48
|
-
var MAX_CATEGORIES = 50;
|
|
49
|
-
function pieLabelRoom(height) {
|
|
50
|
-
return Math.round(Math.min(24, Math.max(0, height) * 0.05));
|
|
51
|
-
}
|
|
52
|
-
var SLANTED_LABEL_WIDTH = 120;
|
|
53
|
-
var HEATMAP_FRAME = { x: 80, y: 120 };
|
|
54
|
-
var LABEL_LINE = 16;
|
|
55
|
-
var LABEL_PAD = 4;
|
|
56
|
-
function columnLabelLayout(names, width, fontSize = 12) {
|
|
57
|
-
if (names.length === 0) {
|
|
58
|
-
return { rotate: 0 };
|
|
59
|
-
}
|
|
60
|
-
const slot = Math.max(0, width - HEATMAP_FRAME.x) / names.length;
|
|
61
|
-
const longest = Math.max(...names.map((n) => String(n).length)) * fontSize * 0.55;
|
|
62
|
-
return longest <= slot ? { rotate: 0 } : { rotate: 45, width: SLANTED_LABEL_WIDTH, overflow: "truncate" };
|
|
63
|
-
}
|
|
64
|
-
function heatmapCellLabels(columns, rows, width, height, texts, fontSize = 12) {
|
|
65
|
-
const w = Math.max(0, width - HEATMAP_FRAME.x) / Math.max(1, columns);
|
|
66
|
-
const h = Math.max(0, height - HEATMAP_FRAME.y) / Math.max(1, rows);
|
|
67
|
-
const longest = texts.reduce((m, t) => Math.max(m, String(t).length), 0) * fontSize * 0.55;
|
|
68
|
-
return w >= longest + 2 * LABEL_PAD && h >= LABEL_LINE;
|
|
69
|
-
}
|
|
70
|
-
function rowLabelInterval(rows, height) {
|
|
71
|
-
const h = Math.max(0, height - HEATMAP_FRAME.y) / Math.max(1, rows);
|
|
72
|
-
return h >= LABEL_LINE ? 0 : Math.ceil(LABEL_LINE / Math.max(h, 0.1)) - 1;
|
|
73
|
-
}
|
|
74
|
-
var CATEGORY_LABEL_WIDTH = 120;
|
|
75
|
-
var AXIS_FRAME = { x: 80, y: 60 };
|
|
76
|
-
function categoryLabelLayout(names, { width, height, horizontal = false, mode = "auto", fontSize = 12 }) {
|
|
77
|
-
const n = Math.max(1, names.length);
|
|
78
|
-
const cut = { width: CATEGORY_LABEL_WIDTH, overflow: (
|
|
79
|
-
/** @type {const} */
|
|
80
|
-
"truncate"
|
|
81
|
-
) };
|
|
82
|
-
const every = (slot2, need) => Math.max(1, Math.ceil(need / Math.max(slot2, 0.1)));
|
|
83
|
-
const result = (rotate, step) => ({ rotate, interval: step - 1, every: step, ...cut });
|
|
84
|
-
if (horizontal) {
|
|
85
|
-
const slot2 = Math.max(0, height - AXIS_FRAME.y) / n;
|
|
86
|
-
return result(0, mode === "all" ? 1 : every(slot2, fontSize + 1));
|
|
87
|
-
}
|
|
88
|
-
const slot = Math.max(0, width - AXIS_FRAME.x) / n;
|
|
89
|
-
const longest = Math.min(CATEGORY_LABEL_WIDTH, Math.max(0, ...names.map((t) => String(t).length)) * fontSize * 0.55);
|
|
90
|
-
if (mode === "nth") {
|
|
91
|
-
return result(0, every(slot, longest + 8));
|
|
92
|
-
}
|
|
93
|
-
if (longest + 8 <= slot) {
|
|
94
|
-
return result(0, 1);
|
|
95
|
-
}
|
|
96
|
-
return result(45, mode === "all" ? 1 : every(slot, LABEL_LINE));
|
|
97
|
-
}
|
|
98
|
-
var GROUP_LABEL_ROOM = Object.freeze({ along: 56, across: 28, width: 420, height: 260 });
|
|
99
|
-
function groupLabelsFit(count, groupSize, { width, height, horizontal = false }) {
|
|
100
|
-
if (width < GROUP_LABEL_ROOM.width || height < GROUP_LABEL_ROOM.height) {
|
|
101
|
-
return false;
|
|
102
|
-
}
|
|
103
|
-
const n = Math.max(1, count);
|
|
104
|
-
const slot = horizontal ? Math.max(0, height - AXIS_FRAME.y) / n : Math.max(0, width - AXIS_FRAME.x) / n;
|
|
105
|
-
return slot * Math.max(1, groupSize) >= (horizontal ? GROUP_LABEL_ROOM.across : GROUP_LABEL_ROOM.along);
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
export {
|
|
109
|
-
CHART_TYPES,
|
|
110
|
-
SLICE_TYPES,
|
|
111
|
-
CHART_TYPE_NAMES,
|
|
112
|
-
chartTypeOf,
|
|
113
|
-
chartPlan,
|
|
114
|
-
MANY_SERIES,
|
|
115
|
-
MAX_CATEGORIES,
|
|
116
|
-
pieLabelRoom,
|
|
117
|
-
columnLabelLayout,
|
|
118
|
-
heatmapCellLabels,
|
|
119
|
-
rowLabelInterval,
|
|
120
|
-
CATEGORY_LABEL_WIDTH,
|
|
121
|
-
categoryLabelLayout,
|
|
122
|
-
groupLabelsFit
|
|
123
|
-
};
|