pivotkit-react 0.0.0-stage → 0.2.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 (89) hide show
  1. package/CHANGELOG.md +442 -0
  2. package/LICENSE +21 -0
  3. package/README.md +77 -2
  4. package/dist/chunks/chunk-53ZMK4BH.js +177 -0
  5. package/dist/chunks/chunk-F6MVUAQD.js +741 -0
  6. package/dist/chunks/chunk-LQCWFJBS.js +310 -0
  7. package/dist/chunks/chunk-OYY4BKIL.js +93 -0
  8. package/dist/chunks/chunk-QBD4FOBB.js +254 -0
  9. package/dist/chunks/chunk-X7H7BAVT.js +1752 -0
  10. package/dist/chunks/unused-texts-YTNJCFFC.js +10 -0
  11. package/dist/chunks/unused-texts-de-SGOHV4N7.js +6 -0
  12. package/dist/echarts.js +347 -0
  13. package/dist/index.js +3482 -0
  14. package/dist/labels.js +21 -0
  15. package/dist/menu-texts-de.js +6 -0
  16. package/dist/menus.js +1681 -0
  17. package/dist/styles.css +2529 -0
  18. package/package.json +70 -4
  19. package/types/PivotReport.d.ts +20 -0
  20. package/types/all-labels.d.ts +5 -0
  21. package/types/chart-decorate.d.ts +16 -0
  22. package/types/chart-layout.d.ts +111 -0
  23. package/types/chart-options.d.ts +23 -0
  24. package/types/chart-summary.d.ts +12 -0
  25. package/types/chart-tooltip.d.ts +38 -0
  26. package/types/chart-types.d.ts +61 -0
  27. package/types/chart.d.ts +39 -0
  28. package/types/chip-menus.d.ts +32 -0
  29. package/types/clear-input.d.ts +20 -0
  30. package/types/dnd-moves.d.ts +45 -0
  31. package/types/dnd.d.ts +101 -0
  32. package/types/dom.d.ts +52 -0
  33. package/types/drill-export.d.ts +42 -0
  34. package/types/drill-panel.d.ts +22 -0
  35. package/types/drill-table.d.ts +71 -0
  36. package/types/drill.d.ts +26 -0
  37. package/types/echarts.d.ts +4 -0
  38. package/types/export-run.d.ts +59 -0
  39. package/types/field-info.d.ts +34 -0
  40. package/types/fields.d.ts +32 -0
  41. package/types/files.d.ts +27 -0
  42. package/types/filter.d.ts +21 -0
  43. package/types/help.d.ts +21 -0
  44. package/types/icons.d.ts +80 -0
  45. package/types/index.d.ts +536 -0
  46. package/types/info.d.ts +34 -0
  47. package/types/iso.d.ts +2 -0
  48. package/types/labels.d.ts +663 -0
  49. package/types/lazy-menus.d.ts +28 -0
  50. package/types/menu-labels-de.d.ts +2 -0
  51. package/types/menu-labels.d.ts +317 -0
  52. package/types/menu-ops.d.ts +145 -0
  53. package/types/menu-texts.d.ts +2 -0
  54. package/types/menus.d.ts +7 -0
  55. package/types/names.d.ts +80 -0
  56. package/types/numbers.d.ts +13 -0
  57. package/types/overflow.d.ts +62 -0
  58. package/types/place.d.ts +43 -0
  59. package/types/popover.d.ts +93 -0
  60. package/types/rove.d.ts +20 -0
  61. package/types/section.d.ts +25 -0
  62. package/types/sections.d.ts +2 -0
  63. package/types/share-actions.d.ts +99 -0
  64. package/types/share.d.ts +114 -0
  65. package/types/skeleton.d.ts +9 -0
  66. package/types/storage.d.ts +24 -0
  67. package/types/table.d.ts +29 -0
  68. package/types/templates.d.ts +46 -0
  69. package/types/theme.d.ts +24 -0
  70. package/types/tip-list.d.ts +20 -0
  71. package/types/tips.d.ts +300 -0
  72. package/types/toasts.d.ts +26 -0
  73. package/types/toolbar-panels.d.ts +93 -0
  74. package/types/toolbar.d.ts +5 -0
  75. package/types/unused-load.d.ts +23 -0
  76. package/types/unused-texts-de.d.ts +2 -0
  77. package/types/unused-texts.d.ts +130 -0
  78. package/types/unused.d.ts +22 -0
  79. package/types/use-big-result.d.ts +29 -0
  80. package/types/use-export.d.ts +7 -0
  81. package/types/use-theme.d.ts +11 -0
  82. package/types/use-view-history.d.ts +37 -0
  83. package/types/version.d.ts +2 -0
  84. package/types/view-history.d.ts +106 -0
  85. package/types/view-ops.d.ts +293 -0
  86. package/types/view-save.d.ts +76 -0
  87. package/types/view-store.d.ts +59 -0
  88. package/types/virtual.d.ts +44 -0
  89. package/types/zones.d.ts +42 -0
@@ -0,0 +1,663 @@
1
+ export type UiLabels = typeof en & import("./menu-labels.js").MenuTexts & {
2
+ unused?: import("./unused-texts.js").UnusedTexts;
3
+ };
4
+ /**
5
+ * Every text of the UI: these and the menus' (menu-labels.js, loaded with the menus; a type import
6
+ * only, so they stay out of the first load).
7
+ * @typedef {typeof en & import("./menu-labels.js").MenuTexts & { unused?: import("./unused-texts.js").UnusedTexts }} UiLabels
8
+ * `unused`: the texts of a view's unused parts (unused-texts.js), loaded when a view has such parts;
9
+ * a host's are kept aside as the menus' are
10
+ */
11
+ export declare const en: {
12
+ /** the language of the texts, for the report's lang attribute */
13
+ lang: string;
14
+ /** the name of the report's region landmark */
15
+ report: string;
16
+ core: import("pivotkit-core").Labels;
17
+ zones: {
18
+ rows: string;
19
+ cols: string;
20
+ values: string;
21
+ filters: string;
22
+ };
23
+ zoneHints: {
24
+ rows: string;
25
+ cols: string;
26
+ values: string;
27
+ filters: string;
28
+ };
29
+ fields: string;
30
+ fieldsHint: string;
31
+ searchFields: string;
32
+ fieldListKeys: string;
33
+ noFieldMatch: string;
34
+ fieldMenu: string;
35
+ addTo: string;
36
+ addAgain: string;
37
+ alreadyIn: string;
38
+ move: string;
39
+ moveTo: string;
40
+ dragHandle: string;
41
+ dragIntoZone: string;
42
+ removeField: string;
43
+ types: {
44
+ string: string;
45
+ number: string;
46
+ date: string;
47
+ boolean: string;
48
+ null: string;
49
+ };
50
+ inZone: string;
51
+ stateFiltered: string;
52
+ stateSorted: string;
53
+ toolbar: string;
54
+ table: string;
55
+ chart: string;
56
+ view: string;
57
+ chartType: string;
58
+ chartTypeIs: string;
59
+ chartTypes: {
60
+ auto: string;
61
+ bar: string;
62
+ stacked: string;
63
+ horizontal: string;
64
+ line: string;
65
+ area: string;
66
+ pie: string;
67
+ donut: string;
68
+ heatmap: string;
69
+ };
70
+ undo: string;
71
+ redo: string;
72
+ reset: string;
73
+ resetHint: string;
74
+ unsavedChanges: string;
75
+ swap: string;
76
+ layout: string;
77
+ showLayout: string;
78
+ layoutEmpty: string;
79
+ more: string;
80
+ views: string;
81
+ exportLabel: string;
82
+ options: string;
83
+ expand: string;
84
+ collapse: string;
85
+ showAs: string;
86
+ sort: string;
87
+ sortLabelAsc: string;
88
+ sortLabelDesc: string;
89
+ sortCustom: string;
90
+ sortCustomDesc: string;
91
+ sortValueDesc: string;
92
+ sortValueAsc: string;
93
+ headerSort: string;
94
+ headerSortDesc: string;
95
+ headerSortAsc: string;
96
+ headerSorted: string;
97
+ units: {
98
+ year: string;
99
+ yearQuarter: string;
100
+ yearMonth: string;
101
+ yearWeek: string;
102
+ day: string;
103
+ quarter: string;
104
+ month: string;
105
+ week: string;
106
+ weekday: string;
107
+ hour: string;
108
+ bin: string;
109
+ };
110
+ derivedName: string;
111
+ unitInName: {
112
+ year: string;
113
+ yearQuarter: string;
114
+ yearMonth: string;
115
+ yearWeek: string;
116
+ day: string;
117
+ quarter: string;
118
+ month: string;
119
+ week: string;
120
+ weekday: string;
121
+ hour: string;
122
+ bin: string;
123
+ };
124
+ binsName: string;
125
+ top: string;
126
+ topBadge: string;
127
+ bottomBadge: string;
128
+ by: string;
129
+ filter: string;
130
+ filtered: string;
131
+ filterSummary: string;
132
+ filterTitle: string;
133
+ condition: string;
134
+ emptyTitle: string;
135
+ emptySteps: string[];
136
+ emptyFields: string;
137
+ tryView: string;
138
+ error: string;
139
+ tooLarge: string;
140
+ tooManyGroups: string;
141
+ tooManyCells: string;
142
+ tooManyRows: string;
143
+ tooMuchWork: string;
144
+ zoneFull: string;
145
+ viewTrimmed: string;
146
+ unusedParts: {
147
+ one: string;
148
+ other: string;
149
+ };
150
+ unusedPath: string;
151
+ unusedMore: {
152
+ one: string;
153
+ other: string;
154
+ };
155
+ unusedFewer: string;
156
+ dismissIssues: string;
157
+ loadingChart: string;
158
+ noChartData: string;
159
+ rowsCount: {
160
+ one: string;
161
+ other: string;
162
+ };
163
+ tableName: string;
164
+ emptyCell: string;
165
+ emptyValue: string;
166
+ rowLabel: string;
167
+ chartSummary: string;
168
+ chartCounts: string;
169
+ chartCategories: {
170
+ one: string;
171
+ other: string;
172
+ };
173
+ chartSeries: {
174
+ one: string;
175
+ other: string;
176
+ };
177
+ chartExtremes: string;
178
+ chartTableHint: string;
179
+ categories: string;
180
+ close: string;
181
+ toastRemoved: string;
182
+ toastUndone: string;
183
+ toastRedone: string;
184
+ toastReset: string;
185
+ newEmpty: string;
186
+ toastLoaded: string;
187
+ toastExportFailed: string;
188
+ steps: {
189
+ added: string;
190
+ removed: string;
191
+ moved: string;
192
+ reordered: string;
193
+ sort: string;
194
+ group: string;
195
+ filter: string;
196
+ filtersRemoved: string;
197
+ top: string;
198
+ value: string;
199
+ display: string;
200
+ chart: string;
201
+ totals: string;
202
+ collapse: string;
203
+ swap: string;
204
+ template: string;
205
+ reset: string;
206
+ new: string;
207
+ outside: string;
208
+ viewLoaded: string;
209
+ chartDisplay: string;
210
+ change: string;
211
+ };
212
+ tips: {
213
+ filterEmpty: string;
214
+ top: string;
215
+ bottom: string;
216
+ chartCapped: string;
217
+ showAs: {
218
+ percentOfGrandTotal: string;
219
+ percentOfRowTotal: string;
220
+ percentOfColumnTotal: string;
221
+ percentOfParentRow: string;
222
+ percentOfParentColumn: string;
223
+ percentRunningTotal: string;
224
+ percentDifferenceFromPrevious: string;
225
+ };
226
+ chartOverTime: string;
227
+ pieSlices: string;
228
+ pieColumns: string;
229
+ chartDates: string;
230
+ chartTrend: string;
231
+ chartSeries: string;
232
+ textValue: string;
233
+ dateUngrouped: string;
234
+ manyColumns: string;
235
+ values: string;
236
+ afterDrag: string;
237
+ saveTemplate: string;
238
+ menus: string;
239
+ cells: string;
240
+ };
241
+ tipActions: {
242
+ removeFilters: string;
243
+ swap: string;
244
+ groupDate: string;
245
+ saveTemplate: string;
246
+ bars: string;
247
+ auto: string;
248
+ };
249
+ dismissTip: string;
250
+ tipsTitle: string;
251
+ skipToToolbar: string;
252
+ aboutField: string;
253
+ learnMore: string;
254
+ dragInstructions: string;
255
+ dragStart: string;
256
+ dragOverAt: string;
257
+ dragOverEnd: string;
258
+ dragOverNone: string;
259
+ dragEndAt: string;
260
+ dragEndEnd: string;
261
+ dragRemove: string;
262
+ dragCancel: string;
263
+ panel: string;
264
+ showFields: string;
265
+ hideFields: string;
266
+ collapseFields: string;
267
+ expandFields: string;
268
+ dropToRemove: string;
269
+ loadingReport: string;
270
+ loadingMenu: string;
271
+ menuFailed: string;
272
+ tryAgain: string;
273
+ axisEvery: string;
274
+ clearText: string;
275
+ toastViewLoaded: string;
276
+ toastViewLoadedPartly: string;
277
+ toastLinkOpened: string;
278
+ toastLinkOpenedPartly: string;
279
+ viewLeftOut: string;
280
+ loadCheckSource: string;
281
+ loadCheckOtherSource: string;
282
+ loadCheckMissing: string;
283
+ loadCheckChanged: string;
284
+ linkCheckTitle: string;
285
+ viewFailed: {
286
+ empty: string;
287
+ tooLarge: string;
288
+ notJson: string;
289
+ notView: string;
290
+ newer: string;
291
+ badLink: string;
292
+ file: string;
293
+ };
294
+ valueConditions: {
295
+ compare: string;
296
+ between: string;
297
+ notBetween: string;
298
+ };
299
+ zoneInfo: {
300
+ rows: string;
301
+ cols: string;
302
+ values: string;
303
+ filters: string;
304
+ };
305
+ enlarge: string;
306
+ reduce: string;
307
+ fullScreen: string;
308
+ };
309
+ export declare const de: {
310
+ lang: string;
311
+ report: string;
312
+ core: import("pivotkit-core").Labels;
313
+ zones: {
314
+ rows: string;
315
+ cols: string;
316
+ values: string;
317
+ filters: string;
318
+ };
319
+ zoneHints: {
320
+ rows: string;
321
+ cols: string;
322
+ values: string;
323
+ filters: string;
324
+ };
325
+ fields: string;
326
+ fieldsHint: string;
327
+ searchFields: string;
328
+ fieldListKeys: string;
329
+ noFieldMatch: string;
330
+ fieldMenu: string;
331
+ addTo: string;
332
+ addAgain: string;
333
+ alreadyIn: string;
334
+ move: string;
335
+ moveTo: string;
336
+ dragHandle: string;
337
+ dragIntoZone: string;
338
+ removeField: string;
339
+ types: {
340
+ string: string;
341
+ number: string;
342
+ date: string;
343
+ boolean: string;
344
+ null: string;
345
+ };
346
+ inZone: string;
347
+ stateFiltered: string;
348
+ stateSorted: string;
349
+ toolbar: string;
350
+ table: string;
351
+ chart: string;
352
+ view: string;
353
+ chartType: string;
354
+ chartTypeIs: string;
355
+ chartTypes: {
356
+ auto: string;
357
+ bar: string;
358
+ stacked: string;
359
+ horizontal: string;
360
+ line: string;
361
+ area: string;
362
+ pie: string;
363
+ donut: string;
364
+ heatmap: string;
365
+ };
366
+ undo: string;
367
+ redo: string;
368
+ reset: string;
369
+ resetHint: string;
370
+ unsavedChanges: string;
371
+ swap: string;
372
+ layout: string;
373
+ showLayout: string;
374
+ layoutEmpty: string;
375
+ more: string;
376
+ views: string;
377
+ exportLabel: string;
378
+ options: string;
379
+ expand: string;
380
+ collapse: string;
381
+ showAs: string;
382
+ sort: string;
383
+ sortLabelAsc: string;
384
+ sortLabelDesc: string;
385
+ sortCustom: string;
386
+ sortCustomDesc: string;
387
+ sortValueDesc: string;
388
+ sortValueAsc: string;
389
+ headerSort: string;
390
+ headerSortDesc: string;
391
+ headerSortAsc: string;
392
+ headerSorted: string;
393
+ units: {
394
+ year: string;
395
+ yearQuarter: string;
396
+ yearMonth: string;
397
+ yearWeek: string;
398
+ day: string;
399
+ quarter: string;
400
+ month: string;
401
+ week: string;
402
+ weekday: string;
403
+ hour: string;
404
+ bin: string;
405
+ };
406
+ derivedName: string;
407
+ unitInName: {
408
+ year: string;
409
+ yearQuarter: string;
410
+ yearMonth: string;
411
+ yearWeek: string;
412
+ day: string;
413
+ quarter: string;
414
+ month: string;
415
+ week: string;
416
+ weekday: string;
417
+ hour: string;
418
+ bin: string;
419
+ };
420
+ binsName: string;
421
+ top: string;
422
+ topBadge: string;
423
+ bottomBadge: string;
424
+ by: string;
425
+ filter: string;
426
+ filtered: string;
427
+ filterSummary: string;
428
+ filterTitle: string;
429
+ condition: string;
430
+ emptyTitle: string;
431
+ emptySteps: string[];
432
+ emptyFields: string;
433
+ tryView: string;
434
+ error: string;
435
+ tooLarge: string;
436
+ tooManyGroups: string;
437
+ tooManyCells: string;
438
+ tooManyRows: string;
439
+ tooMuchWork: string;
440
+ zoneFull: string;
441
+ viewTrimmed: string;
442
+ unusedParts: {
443
+ one: string;
444
+ other: string;
445
+ };
446
+ unusedPath: string;
447
+ unusedMore: {
448
+ one: string;
449
+ other: string;
450
+ };
451
+ unusedFewer: string;
452
+ dismissIssues: string;
453
+ loadingChart: string;
454
+ noChartData: string;
455
+ rowsCount: {
456
+ one: string;
457
+ other: string;
458
+ };
459
+ tableName: string;
460
+ emptyCell: string;
461
+ emptyValue: string;
462
+ rowLabel: string;
463
+ chartSummary: string;
464
+ chartCounts: string;
465
+ chartCategories: {
466
+ one: string;
467
+ other: string;
468
+ };
469
+ chartSeries: {
470
+ one: string;
471
+ other: string;
472
+ };
473
+ chartExtremes: string;
474
+ chartTableHint: string;
475
+ categories: string;
476
+ close: string;
477
+ toastRemoved: string;
478
+ toastUndone: string;
479
+ toastRedone: string;
480
+ toastReset: string;
481
+ newEmpty: string;
482
+ toastLoaded: string;
483
+ toastExportFailed: string;
484
+ steps: {
485
+ added: string;
486
+ removed: string;
487
+ moved: string;
488
+ reordered: string;
489
+ sort: string;
490
+ group: string;
491
+ filter: string;
492
+ filtersRemoved: string;
493
+ top: string;
494
+ value: string;
495
+ display: string;
496
+ chart: string;
497
+ totals: string;
498
+ collapse: string;
499
+ swap: string;
500
+ template: string;
501
+ reset: string;
502
+ new: string;
503
+ outside: string;
504
+ viewLoaded: string;
505
+ chartDisplay: string;
506
+ change: string;
507
+ };
508
+ tips: {
509
+ filterEmpty: string;
510
+ top: string;
511
+ bottom: string;
512
+ chartCapped: string;
513
+ showAs: {
514
+ percentOfGrandTotal: string;
515
+ percentOfRowTotal: string;
516
+ percentOfColumnTotal: string;
517
+ percentOfParentRow: string;
518
+ percentOfParentColumn: string;
519
+ percentRunningTotal: string;
520
+ percentDifferenceFromPrevious: string;
521
+ };
522
+ chartOverTime: string;
523
+ pieSlices: string;
524
+ pieColumns: string;
525
+ chartDates: string;
526
+ chartTrend: string;
527
+ chartSeries: string;
528
+ textValue: string;
529
+ dateUngrouped: string;
530
+ manyColumns: string;
531
+ values: string;
532
+ afterDrag: string;
533
+ saveTemplate: string;
534
+ menus: string;
535
+ cells: string;
536
+ };
537
+ tipActions: {
538
+ removeFilters: string;
539
+ swap: string;
540
+ groupDate: string;
541
+ saveTemplate: string;
542
+ bars: string;
543
+ auto: string;
544
+ };
545
+ dismissTip: string;
546
+ tipsTitle: string;
547
+ skipToToolbar: string;
548
+ aboutField: string;
549
+ learnMore: string;
550
+ dragInstructions: string;
551
+ dragStart: string;
552
+ dragOverAt: string;
553
+ dragOverEnd: string;
554
+ dragOverNone: string;
555
+ dragEndAt: string;
556
+ dragEndEnd: string;
557
+ dragRemove: string;
558
+ dragCancel: string;
559
+ panel: string;
560
+ showFields: string;
561
+ hideFields: string;
562
+ collapseFields: string;
563
+ expandFields: string;
564
+ dropToRemove: string;
565
+ loadingReport: string;
566
+ loadingMenu: string;
567
+ menuFailed: string;
568
+ tryAgain: string;
569
+ axisEvery: string;
570
+ clearText: string;
571
+ toastViewLoaded: string;
572
+ toastViewLoadedPartly: string;
573
+ toastLinkOpened: string;
574
+ toastLinkOpenedPartly: string;
575
+ viewLeftOut: string;
576
+ loadCheckSource: string;
577
+ loadCheckOtherSource: string;
578
+ loadCheckMissing: string;
579
+ loadCheckChanged: string;
580
+ linkCheckTitle: string;
581
+ viewFailed: {
582
+ empty: string;
583
+ tooLarge: string;
584
+ notJson: string;
585
+ notView: string;
586
+ newer: string;
587
+ badLink: string;
588
+ file: string;
589
+ };
590
+ valueConditions: {
591
+ compare: string;
592
+ between: string;
593
+ notBetween: string;
594
+ };
595
+ zoneInfo: {
596
+ rows: string;
597
+ cols: string;
598
+ values: string;
599
+ filters: string;
600
+ };
601
+ enlarge: string;
602
+ reduce: string;
603
+ fullScreen: string;
604
+ };
605
+ /** @type {Readonly<{ en: typeof en, de: typeof en }>} the texts of the first load; the menus' are in menu-labels.js (English) and menu-labels-<lang>.js (menu-texts.js) */
606
+ export declare const LABELS: Readonly<{
607
+ en: typeof en;
608
+ de: typeof en;
609
+ }>;
610
+ export type PartialLabels = {
611
+ [K in keyof UiLabels]?: UiLabels[K] extends string | string[] ? UiLabels[K] : Partial<UiLabels[K]>;
612
+ };
613
+ /**
614
+ * Partial labels a host passes: any entry of UiLabels, nested objects partial too.
615
+ * @typedef {{ [K in keyof UiLabels]?: UiLabels[K] extends string | string[] ? UiLabels[K] : Partial<UiLabels[K]> }} PartialLabels
616
+ */
617
+ /** The message of a thrown value, for a note. */
618
+ export declare function messageOf(error: any): string;
619
+ /**
620
+ * The note in place of the result when it cannot be shown: a limit of pivotkit-core in words with
621
+ * what to change, else `labels.error` with the error's message.
622
+ * @param {unknown} error
623
+ * @param {UiLabels} labels
624
+ * @param {string} locale for the numbers
625
+ */
626
+ export declare function errorText(error: unknown, labels: UiLabels, locale: string): string;
627
+ /**
628
+ * The note for a host's callback that threw or rejected: `withMessage` with the host's own message
629
+ * when it gave one (an Error, a text, an object with a `message` text), else `withoutMessage`.
630
+ * @param {string} withMessage with {message}
631
+ * @param {string} withoutMessage
632
+ * @param {unknown} error
633
+ */
634
+ export declare function hostFailure(withMessage: string, withoutMessage: string, error: unknown): string;
635
+ /** Replaces {name} placeholders; unknown names stay as they are. */
636
+ export declare function fill(template: any, values: any): string;
637
+ /**
638
+ * A count in words: the form of `forms` for the plural category of `count` in the labels' language
639
+ * (Intl.PluralRules), `other` when that form is missing, with {count} filled in the locale's digits.
640
+ * @param {Partial<Record<string, string>>} forms e.g. { one: "{count} row", other: "{count} rows" }
641
+ * @param {number} count
642
+ * @param {{ lang: string, locale: string }} options
643
+ */
644
+ export declare function plural(forms: Partial<Record<string, string>>, count: number, { lang, locale }: {
645
+ lang: string;
646
+ locale: string;
647
+ }): string;
648
+ /** Where resolved labels keep a host's texts for the menus (menu-labels.js); a symbol, so it is no text. */
649
+ export declare const MENU_TEXTS: unique symbol;
650
+ /**
651
+ * A deep merge of `over` into `base` that keeps the shape of `base`: an entry replaces one of the same
652
+ * kind only (text by text, a list of texts by a list of texts, an object is merged), so a wrong type
653
+ * in a host's labels cannot break the UI. Keys `base` does not have are ignored.
654
+ */
655
+ export declare function mergeLabels(base: any, over: any): any;
656
+ /**
657
+ * The labels for a locale: the language of the locale picks en or de (default en), the host's
658
+ * partial labels are merged over them.
659
+ * @param {string | undefined} locale
660
+ * @param {PartialLabels | object} [custom]
661
+ * @returns {UiLabels}
662
+ */
663
+ export declare function resolveLabels(locale: string | undefined, custom?: PartialLabels | object): UiLabels;
@@ -0,0 +1,28 @@
1
+ import React from "react";
2
+ /** Calls `listener` whenever a language's texts arrived or failed; returns the unsubscribe. */
3
+ export declare function onMenuTexts(listener: any): () => undefined;
4
+ /**
5
+ * The menus' panels, imported once, with the menus' texts of `lang` (added to menus.js's). A failed
6
+ * import of the panels is forgotten and rejects, so the next call tries again; texts that fail leave
7
+ * English standing in (the panels resolve), and the next call tries them again.
8
+ * @param {string} [lang] the report's language (labels.lang)
9
+ * @returns {Promise<typeof import("./menus.js")>}
10
+ */
11
+ export declare function loadMenus(lang?: string): Promise<typeof import("./menus.js")>;
12
+ /**
13
+ * The menus' module at once when it is loaded with the texts of `lang` (or they failed: English
14
+ * stands in), else null; without `lang` the module as soon as it is loaded.
15
+ * @param {string} [lang]
16
+ */
17
+ export declare const menusNow: (lang?: string) => typeof import("./menus.js") | null;
18
+ /**
19
+ * One panel of menus.js with its props.
20
+ * @param {{ name: "AxisMenu" | "ValueMenu" | "ChartTypePanel" | "OptionsPanel" | "ViewsPanel" | "ExportPanel" | "LoadCheck" | "FilterPopover" | "DrillPanel", loadingText?: string, props: Record<string, any> }} props
21
+ * `loadingText`: shown while loading; without it nothing is (a popover or panel of its own).
22
+ * `props.labels` gives the texts of a failed load
23
+ */
24
+ export declare function MenuPanel({ name, loadingText, props }: {
25
+ name: "AxisMenu" | "ValueMenu" | "ChartTypePanel" | "OptionsPanel" | "ViewsPanel" | "ExportPanel" | "LoadCheck" | "FilterPopover" | "DrillPanel";
26
+ loadingText?: string;
27
+ props: Record<string, any>;
28
+ }): React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ /** @type {import("./menu-labels.js").MenuTexts} */
2
+ export declare const de: import("./menu-labels.js").MenuTexts;