pivotkit-react 0.8.2 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +93 -1
- package/dist/chunks/chunk-24T2VRMU.js +1010 -0
- package/dist/chunks/chunk-6R7TJHS3.js +212 -0
- package/dist/chunks/{chunk-GUSQWPTH.js → chunk-EPGRJSPP.js} +20 -5
- package/dist/chunks/{chunk-JAOOFDNR.js → chunk-FAAQZSR4.js} +4 -1
- package/dist/chunks/{chunk-2N2UGSIG.js → chunk-FI22Z6CC.js} +5 -2
- package/dist/chunks/{chunk-ZM45YU3W.js → chunk-G3R5C3J7.js} +28 -6
- package/dist/chunks/{chunk-MU5BTKSY.js → chunk-QCBVEI23.js} +6 -2
- package/dist/chunks/{chunk-6OWC6X5W.js → chunk-QVE7JM4G.js} +1 -1
- package/dist/chunks/{chunk-3WWWKPB4.js → chunk-V233JHVY.js} +75 -336
- package/dist/chunks/chunk-W6BG3GGS.js +679 -0
- package/dist/chunks/chunk-YAT2TFMK.js +138 -0
- package/dist/chunks/chunk-ZQ2M3U74.js +341 -0
- package/dist/chunks/{unused-texts-de-GB3IWWEM.js → labels-de-ZC3CSQZR.js} +1 -1
- package/dist/chunks/tips-SYGQPI3Q.js +22 -0
- package/dist/chunks/{unused-texts-LRYVWFFN.js → unused-texts-ERQ6ACNX.js} +1 -1
- package/dist/chunks/unused-texts-de-AC5GS3FS.js +6 -0
- package/dist/deferred-late.js +13 -0
- package/dist/deferred.js +18 -0
- package/dist/echarts.js +30 -6
- package/dist/import-ui.js +3 -3
- package/dist/index.js +427 -202
- package/dist/labels.js +15 -12
- package/dist/menu-texts-de.js +1 -1
- package/dist/menus.js +518 -381
- package/dist/styles.css +128 -9
- package/package.json +5 -4
- package/types/PivotReport.d.ts +3 -1
- package/types/chart-tooltip.d.ts +18 -1
- package/types/chart-types.d.ts +7 -2
- package/types/chart.d.ts +10 -2
- package/types/chip-menus.d.ts +1 -1
- package/types/deferred-late.d.ts +2 -0
- package/types/deferred.d.ts +28 -0
- package/types/field-info.d.ts +6 -3
- package/types/fields.d.ts +3 -2
- package/types/icons.d.ts +2 -0
- package/types/index.d.ts +20 -10
- package/types/labels-de.d.ts +2 -0
- package/types/labels.d.ts +55 -459
- package/types/lazy-menus.d.ts +2 -2
- package/types/menu-labels.d.ts +20 -0
- package/types/menu-ops.d.ts +33 -0
- package/types/menu-topics.d.ts +6 -3
- package/types/menus.d.ts +1 -0
- package/types/names.d.ts +20 -2
- package/types/notices.d.ts +212 -0
- package/types/point-menu.d.ts +21 -0
- package/types/quick-choices.d.ts +28 -0
- package/types/side-by-side.d.ts +19 -0
- package/types/tip-state.d.ts +97 -0
- package/types/tips.d.ts +13 -250
- package/types/unused-texts.d.ts +3 -0
- package/types/view-ops.d.ts +27 -14
- package/types/view-tabs.d.ts +4 -3
- package/dist/chunks/chunk-W2SVDHGN.js +0 -1898
package/types/labels.d.ts
CHANGED
|
@@ -63,6 +63,11 @@ export declare const en: {
|
|
|
63
63
|
toolbar: string;
|
|
64
64
|
table: string;
|
|
65
65
|
chart: string;
|
|
66
|
+
both: string;
|
|
67
|
+
bothShown: string;
|
|
68
|
+
enlargeBoth: string;
|
|
69
|
+
splitValue: string;
|
|
70
|
+
splitDivider: string;
|
|
66
71
|
view: string;
|
|
67
72
|
chartType: string;
|
|
68
73
|
chartTypeIs: string;
|
|
@@ -76,6 +81,8 @@ export declare const en: {
|
|
|
76
81
|
pie: string;
|
|
77
82
|
donut: string;
|
|
78
83
|
heatmap: string;
|
|
84
|
+
combo: string;
|
|
85
|
+
treemap: string;
|
|
79
86
|
};
|
|
80
87
|
undo: string;
|
|
81
88
|
redo: string;
|
|
@@ -113,6 +120,7 @@ export declare const en: {
|
|
|
113
120
|
sortCustomDesc: string;
|
|
114
121
|
sortValueDesc: string;
|
|
115
122
|
sortValueAsc: string;
|
|
123
|
+
valueInColumn: string;
|
|
116
124
|
headerSort: string;
|
|
117
125
|
headerSortDesc: string;
|
|
118
126
|
headerSortAsc: string;
|
|
@@ -218,6 +226,7 @@ export declare const en: {
|
|
|
218
226
|
reordered: string;
|
|
219
227
|
sort: string;
|
|
220
228
|
group: string;
|
|
229
|
+
rename: string;
|
|
221
230
|
filter: string;
|
|
222
231
|
filtersRemoved: string;
|
|
223
232
|
top: string;
|
|
@@ -252,6 +261,7 @@ export declare const en: {
|
|
|
252
261
|
colSubtotals: string;
|
|
253
262
|
chartOverTime: string;
|
|
254
263
|
pieSlices: string;
|
|
264
|
+
stackedTotal: string;
|
|
255
265
|
pieColumns: string;
|
|
256
266
|
chartDates: string;
|
|
257
267
|
chartTrend: string;
|
|
@@ -465,463 +475,49 @@ export declare const en: {
|
|
|
465
475
|
reduce: string;
|
|
466
476
|
fullScreen: string;
|
|
467
477
|
};
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
null: string;
|
|
512
|
-
};
|
|
513
|
-
inZone: string;
|
|
514
|
-
stateFiltered: string;
|
|
515
|
-
stateSorted: string;
|
|
516
|
-
toolbar: string;
|
|
517
|
-
table: string;
|
|
518
|
-
chart: string;
|
|
519
|
-
view: string;
|
|
520
|
-
chartType: string;
|
|
521
|
-
chartTypeIs: string;
|
|
522
|
-
chartTypes: {
|
|
523
|
-
auto: string;
|
|
524
|
-
bar: string;
|
|
525
|
-
stacked: string;
|
|
526
|
-
horizontal: string;
|
|
527
|
-
line: string;
|
|
528
|
-
area: string;
|
|
529
|
-
pie: string;
|
|
530
|
-
donut: string;
|
|
531
|
-
heatmap: string;
|
|
532
|
-
};
|
|
533
|
-
undo: string;
|
|
534
|
-
redo: string;
|
|
535
|
-
startOver: string;
|
|
536
|
-
reset: string;
|
|
537
|
-
resetHint: string;
|
|
538
|
-
resetAlready: string;
|
|
539
|
-
resetStartEmpty: string;
|
|
540
|
-
newHint: string;
|
|
541
|
-
newAlready: string;
|
|
542
|
-
unsavedChanges: string;
|
|
543
|
-
swap: string;
|
|
544
|
-
zonesTitle: string;
|
|
545
|
-
zonesHint: string;
|
|
546
|
-
layoutEmpty: string;
|
|
547
|
-
more: string;
|
|
548
|
-
views: string;
|
|
549
|
-
data: string;
|
|
550
|
-
dataLoaded: string;
|
|
551
|
-
loadData: string;
|
|
552
|
-
emptyLoad: string;
|
|
553
|
-
emptyDrop: string;
|
|
554
|
-
emptyNoData: string;
|
|
555
|
-
exportLabel: string;
|
|
556
|
-
tableSettings: string;
|
|
557
|
-
chartSettings: string;
|
|
558
|
-
settingsShort: string;
|
|
559
|
-
expand: string;
|
|
560
|
-
collapse: string;
|
|
561
|
-
showAs: string;
|
|
562
|
-
sort: string;
|
|
563
|
-
sortLabelAsc: string;
|
|
564
|
-
sortLabelDesc: string;
|
|
565
|
-
sortCustom: string;
|
|
566
|
-
sortCustomDesc: string;
|
|
567
|
-
sortValueDesc: string;
|
|
568
|
-
sortValueAsc: string;
|
|
569
|
-
headerSort: string;
|
|
570
|
-
headerSortDesc: string;
|
|
571
|
-
headerSortAsc: string;
|
|
572
|
-
headerSorted: string;
|
|
573
|
-
units: {
|
|
574
|
-
year: string;
|
|
575
|
-
yearQuarter: string;
|
|
576
|
-
yearMonth: string;
|
|
577
|
-
yearWeek: string;
|
|
578
|
-
day: string;
|
|
579
|
-
quarter: string;
|
|
580
|
-
month: string;
|
|
581
|
-
week: string;
|
|
582
|
-
weekday: string;
|
|
583
|
-
hour: string;
|
|
584
|
-
bin: string;
|
|
585
|
-
};
|
|
586
|
-
derivedName: string;
|
|
587
|
-
unitInName: Readonly<Record<string, string>>;
|
|
588
|
-
binsName: string;
|
|
589
|
-
top: string;
|
|
590
|
-
topBadge: string;
|
|
591
|
-
bottomBadge: string;
|
|
592
|
-
by: string;
|
|
593
|
-
filtered: string;
|
|
594
|
-
filterSummary: string;
|
|
595
|
-
quote: string;
|
|
596
|
-
filterTitle: string;
|
|
597
|
-
condition: string;
|
|
598
|
-
emptyTitle: string;
|
|
599
|
-
emptySteps: string[];
|
|
600
|
-
emptyFields: string;
|
|
601
|
-
tryView: string;
|
|
602
|
-
error: string;
|
|
603
|
-
tooLarge: string;
|
|
604
|
-
tooManyGroups: string;
|
|
605
|
-
tooManyCells: string;
|
|
606
|
-
tooManyRows: string;
|
|
607
|
-
tooMuchWork: string;
|
|
608
|
-
zoneFull: string;
|
|
609
|
-
viewTrimmed: string;
|
|
610
|
-
unusedParts: {
|
|
611
|
-
one: string;
|
|
612
|
-
other: string;
|
|
613
|
-
};
|
|
614
|
-
unusedPath: string;
|
|
615
|
-
unusedMore: {
|
|
616
|
-
one: string;
|
|
617
|
-
other: string;
|
|
618
|
-
};
|
|
619
|
-
unusedFewer: string;
|
|
620
|
-
dismissIssues: string;
|
|
621
|
-
loadingChart: string;
|
|
622
|
-
noChartData: string;
|
|
623
|
-
rowsCount: Readonly<{
|
|
624
|
-
one: string;
|
|
625
|
-
other: string;
|
|
626
|
-
}>;
|
|
627
|
-
rowsFiltered: Readonly<{
|
|
628
|
-
one: string;
|
|
629
|
-
other: string;
|
|
630
|
-
}>;
|
|
631
|
-
tableName: string;
|
|
632
|
-
emptyCell: string;
|
|
633
|
-
emptyValue: string;
|
|
634
|
-
rowLabel: string;
|
|
635
|
-
chartSummary: string;
|
|
636
|
-
chartCounts: string;
|
|
637
|
-
chartCategories: {
|
|
638
|
-
one: string;
|
|
639
|
-
other: string;
|
|
640
|
-
};
|
|
641
|
-
chartSeries: {
|
|
642
|
-
one: string;
|
|
643
|
-
other: string;
|
|
644
|
-
};
|
|
645
|
-
chartExtremes: string;
|
|
646
|
-
chartLines: string;
|
|
647
|
-
chartTrendSpan: string;
|
|
648
|
-
chartTableHint: string;
|
|
649
|
-
chartTotal: string;
|
|
650
|
-
chartMore: string;
|
|
651
|
-
chartMoreInTotal: string;
|
|
652
|
-
chartShares: string;
|
|
653
|
-
chartZoom: string;
|
|
654
|
-
chartZoomWindow: string;
|
|
655
|
-
chartHidden: string;
|
|
656
|
-
chartShown: string;
|
|
657
|
-
categories: string;
|
|
658
|
-
close: string;
|
|
659
|
-
toastRemoved: string;
|
|
660
|
-
toastUndone: string;
|
|
661
|
-
toastRedone: string;
|
|
662
|
-
toastReset: string;
|
|
663
|
-
newEmpty: string;
|
|
664
|
-
toastLoaded: string;
|
|
665
|
-
toastExportFailed: string;
|
|
666
|
-
steps: {
|
|
667
|
-
added: string;
|
|
668
|
-
removed: string;
|
|
669
|
-
moved: string;
|
|
670
|
-
reordered: string;
|
|
671
|
-
sort: string;
|
|
672
|
-
group: string;
|
|
673
|
-
filter: string;
|
|
674
|
-
filtersRemoved: string;
|
|
675
|
-
top: string;
|
|
676
|
-
value: string;
|
|
677
|
-
display: string;
|
|
678
|
-
chart: string;
|
|
679
|
-
totals: string;
|
|
680
|
-
collapse: string;
|
|
681
|
-
swap: string;
|
|
682
|
-
template: string;
|
|
683
|
-
reset: string;
|
|
684
|
-
new: string;
|
|
685
|
-
outside: string;
|
|
686
|
-
viewLoaded: string;
|
|
687
|
-
chartDisplay: string;
|
|
688
|
-
change: string;
|
|
689
|
-
};
|
|
690
|
-
tips: {
|
|
691
|
-
filterEmpty: string;
|
|
692
|
-
top: string;
|
|
693
|
-
bottom: string;
|
|
694
|
-
chartCapped: string;
|
|
695
|
-
showAs: {
|
|
696
|
-
percentOfGrandTotal: string;
|
|
697
|
-
percentOfRowTotal: string;
|
|
698
|
-
percentOfColumnTotal: string;
|
|
699
|
-
percentOfParentRow: string;
|
|
700
|
-
percentOfParentColumn: string;
|
|
701
|
-
percentRunningTotal: string;
|
|
702
|
-
percentDifferenceFromPrevious: string;
|
|
703
|
-
};
|
|
704
|
-
chartOverTime: string;
|
|
705
|
-
pieSlices: string;
|
|
706
|
-
pieColumns: string;
|
|
707
|
-
colSubtotals: string;
|
|
708
|
-
chartDates: string;
|
|
709
|
-
chartTrend: string;
|
|
710
|
-
chartSeries: string;
|
|
711
|
-
textValue: string;
|
|
712
|
-
dateUngrouped: string;
|
|
713
|
-
manyColumns: string;
|
|
714
|
-
values: string;
|
|
715
|
-
afterDrag: string;
|
|
716
|
-
saveTemplate: string;
|
|
717
|
-
menus: string;
|
|
718
|
-
cells: string;
|
|
719
|
-
};
|
|
720
|
-
tipActions: {
|
|
721
|
-
removeFilters: string;
|
|
722
|
-
swap: string;
|
|
723
|
-
groupDate: string;
|
|
724
|
-
saveTemplate: string;
|
|
725
|
-
bars: string;
|
|
726
|
-
auto: string;
|
|
727
|
-
colSubtotalsOff: string;
|
|
728
|
-
};
|
|
729
|
-
dismissTip: string;
|
|
730
|
-
tipsTitle: string;
|
|
731
|
-
skipToToolbar: string;
|
|
732
|
-
aboutField: string;
|
|
733
|
-
learnMore: string;
|
|
734
|
-
dragInstructions: string;
|
|
735
|
-
dragStart: string;
|
|
736
|
-
dragOverAt: string;
|
|
737
|
-
dragOverEnd: string;
|
|
738
|
-
dragOverNone: string;
|
|
739
|
-
dragEndAt: string;
|
|
740
|
-
dragEndEnd: string;
|
|
741
|
-
dragRemove: string;
|
|
742
|
-
dragCancel: string;
|
|
743
|
-
panel: string;
|
|
744
|
-
showFields: string;
|
|
745
|
-
hideFields: string;
|
|
746
|
-
collapseFields: string;
|
|
747
|
-
expandFields: string;
|
|
748
|
-
dropToRemove: string;
|
|
749
|
-
loadingReport: string;
|
|
750
|
-
loadingMenu: string;
|
|
751
|
-
menuFailed: string;
|
|
752
|
-
tryAgain: string;
|
|
753
|
-
axisEvery: string;
|
|
754
|
-
clearText: string;
|
|
755
|
-
toastViewLoaded: string;
|
|
756
|
-
toastViewLoadedPartly: string;
|
|
757
|
-
toastLinkOpened: string;
|
|
758
|
-
toastLinkOpenedPartly: string;
|
|
759
|
-
viewLeftOut: string;
|
|
760
|
-
loadCheckSource: string;
|
|
761
|
-
loadCheckOtherSource: string;
|
|
762
|
-
loadCheckMissing: string;
|
|
763
|
-
loadCheckChanged: string;
|
|
764
|
-
linkCheckTitle: string;
|
|
765
|
-
viewFailed: {
|
|
766
|
-
empty: string;
|
|
767
|
-
tooLarge: string;
|
|
768
|
-
notJson: string;
|
|
769
|
-
notView: string;
|
|
770
|
-
newer: string;
|
|
771
|
-
badLink: string;
|
|
772
|
-
file: string;
|
|
773
|
-
};
|
|
774
|
-
valueConditions: {
|
|
775
|
-
compare: string;
|
|
776
|
-
between: string;
|
|
777
|
-
notBetween: string;
|
|
778
|
-
};
|
|
779
|
-
countOfRows: string;
|
|
780
|
-
labelOps: {
|
|
781
|
-
equals: string;
|
|
782
|
-
notEquals: string;
|
|
783
|
-
contains: string;
|
|
784
|
-
notContains: string;
|
|
785
|
-
beginsWith: string;
|
|
786
|
-
notBeginsWith: string;
|
|
787
|
-
endsWith: string;
|
|
788
|
-
notEndsWith: string;
|
|
789
|
-
};
|
|
790
|
-
notRule: string;
|
|
791
|
-
relative: {
|
|
792
|
-
year: string;
|
|
793
|
-
years: string;
|
|
794
|
-
month: string;
|
|
795
|
-
months: string;
|
|
796
|
-
day: string;
|
|
797
|
-
days: string;
|
|
798
|
-
};
|
|
799
|
-
withRange: string;
|
|
800
|
-
relativeTo: string;
|
|
801
|
-
relativeMore: {
|
|
802
|
-
last: {
|
|
803
|
-
hour: {
|
|
804
|
-
one: string;
|
|
805
|
-
other: string;
|
|
806
|
-
};
|
|
807
|
-
day: {
|
|
808
|
-
one: string;
|
|
809
|
-
other: string;
|
|
810
|
-
};
|
|
811
|
-
week: {
|
|
812
|
-
one: string;
|
|
813
|
-
other: string;
|
|
814
|
-
};
|
|
815
|
-
month: {
|
|
816
|
-
one: string;
|
|
817
|
-
other: string;
|
|
818
|
-
};
|
|
819
|
-
quarter: {
|
|
820
|
-
one: string;
|
|
821
|
-
other: string;
|
|
822
|
-
};
|
|
823
|
-
year: {
|
|
824
|
-
one: string;
|
|
825
|
-
other: string;
|
|
826
|
-
};
|
|
827
|
-
};
|
|
828
|
-
next: {
|
|
829
|
-
hour: {
|
|
830
|
-
one: string;
|
|
831
|
-
other: string;
|
|
832
|
-
};
|
|
833
|
-
day: {
|
|
834
|
-
one: string;
|
|
835
|
-
other: string;
|
|
836
|
-
};
|
|
837
|
-
week: {
|
|
838
|
-
one: string;
|
|
839
|
-
other: string;
|
|
840
|
-
};
|
|
841
|
-
month: {
|
|
842
|
-
one: string;
|
|
843
|
-
other: string;
|
|
844
|
-
};
|
|
845
|
-
quarter: {
|
|
846
|
-
one: string;
|
|
847
|
-
other: string;
|
|
848
|
-
};
|
|
849
|
-
year: {
|
|
850
|
-
one: string;
|
|
851
|
-
other: string;
|
|
852
|
-
};
|
|
853
|
-
};
|
|
854
|
-
before: {
|
|
855
|
-
hour: {
|
|
856
|
-
one: string;
|
|
857
|
-
other: string;
|
|
858
|
-
};
|
|
859
|
-
day: {
|
|
860
|
-
one: string;
|
|
861
|
-
other: string;
|
|
862
|
-
};
|
|
863
|
-
week: {
|
|
864
|
-
one: string;
|
|
865
|
-
other: string;
|
|
866
|
-
};
|
|
867
|
-
month: {
|
|
868
|
-
one: string;
|
|
869
|
-
other: string;
|
|
870
|
-
};
|
|
871
|
-
quarter: {
|
|
872
|
-
one: string;
|
|
873
|
-
other: string;
|
|
874
|
-
};
|
|
875
|
-
year: {
|
|
876
|
-
one: string;
|
|
877
|
-
other: string;
|
|
878
|
-
};
|
|
879
|
-
};
|
|
880
|
-
this: {
|
|
881
|
-
hour: string;
|
|
882
|
-
day: string;
|
|
883
|
-
week: string;
|
|
884
|
-
month: string;
|
|
885
|
-
quarter: string;
|
|
886
|
-
year: string;
|
|
887
|
-
};
|
|
888
|
-
rolling: string;
|
|
889
|
-
withoutCurrent: string;
|
|
890
|
-
fromLatest: string;
|
|
891
|
-
fromFirst: string;
|
|
892
|
-
fromDate: string;
|
|
893
|
-
until: string;
|
|
894
|
-
};
|
|
895
|
-
withShare: string;
|
|
896
|
-
noData: {
|
|
897
|
-
one: string;
|
|
898
|
-
other: string;
|
|
899
|
-
};
|
|
900
|
-
compareShort: {
|
|
901
|
-
"=": string;
|
|
902
|
-
"!=": string;
|
|
903
|
-
">": string;
|
|
904
|
-
">=": string;
|
|
905
|
-
"<": string;
|
|
906
|
-
"<=": string;
|
|
907
|
-
between: string;
|
|
908
|
-
notBetween: string;
|
|
909
|
-
};
|
|
910
|
-
zoneInfo: {
|
|
911
|
-
rows: string;
|
|
912
|
-
cols: string;
|
|
913
|
-
values: string;
|
|
914
|
-
filters: string;
|
|
915
|
-
};
|
|
916
|
-
enlarge: string;
|
|
917
|
-
reduce: string;
|
|
918
|
-
fullScreen: string;
|
|
919
|
-
};
|
|
920
|
-
/** @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) */
|
|
921
|
-
export declare const LABELS: Readonly<{
|
|
922
|
-
en: typeof en;
|
|
923
|
-
de: typeof en;
|
|
924
|
-
}>;
|
|
478
|
+
/**
|
|
479
|
+
* The first load's texts of each language that is here, by language: English always; another one once
|
|
480
|
+
* addLabels() added it (deferred.js at once, deferred-late.js when a report asks for it). The menus'
|
|
481
|
+
* texts are in menu-labels.js (English) and menu-labels-<lang>.js (menu-texts.js).
|
|
482
|
+
* @type {Record<string, typeof en>}
|
|
483
|
+
*/
|
|
484
|
+
export declare const LABELS: Record<string, typeof en>;
|
|
485
|
+
/**
|
|
486
|
+
* Adds a language's first-load texts, and tells the reports waiting for them.
|
|
487
|
+
* @param {string} lang
|
|
488
|
+
* @param {typeof en} texts
|
|
489
|
+
*/
|
|
490
|
+
export declare function addLabels(lang: string, texts: typeof en): void;
|
|
491
|
+
/** Calls `listener` whenever a language's texts are added or failed to load; returns the unsubscribe. @param {() => void} listener */
|
|
492
|
+
export declare function onLabels(listener: () => void): () => undefined;
|
|
493
|
+
/**
|
|
494
|
+
* The language of a locale, as the labels name it: "de" for "de-DE", "en" without a locale.
|
|
495
|
+
* @param {unknown} locale
|
|
496
|
+
*/
|
|
497
|
+
export declare const langOf: (locale: unknown) => string;
|
|
498
|
+
/** Whether the first-load texts of `locale`'s language are here. @param {unknown} locale */
|
|
499
|
+
export declare const hasLabels: (locale: unknown) => boolean;
|
|
500
|
+
/** How long a report waits for its language's texts before it shows in English (ms). */
|
|
501
|
+
export declare const LABELS_WAIT_MS = 4000;
|
|
502
|
+
/**
|
|
503
|
+
* Whether a report in `locale` can show its texts: its language's are here, have no loader (English
|
|
504
|
+
* stands in, as for any language pivotkit has no texts for), or failed to load.
|
|
505
|
+
* @param {string | undefined} locale
|
|
506
|
+
* @param {Readonly<Record<string, () => Promise<void>>>} loaders per language not here yet (deferred.js)
|
|
507
|
+
*/
|
|
508
|
+
export declare function labelsHere(locale: string | undefined, loaders: Readonly<Record<string, () => Promise<void>>>): boolean;
|
|
509
|
+
/**
|
|
510
|
+
* Loads the texts of `locale`'s language once (its loader adds them, addLabels). A failure, or no
|
|
511
|
+
* answer within LABELS_WAIT_MS, lets English stand in and is said once in the console; texts that
|
|
512
|
+
* arrive later still take their place. `again` tries a language that failed once more (a report that
|
|
513
|
+
* mounts after a failure).
|
|
514
|
+
* @param {string | undefined} locale
|
|
515
|
+
* @param {Readonly<Record<string, () => Promise<void>>>} loaders
|
|
516
|
+
* @param {{ again?: boolean }} [options]
|
|
517
|
+
*/
|
|
518
|
+
export declare function requestLabels(locale: string | undefined, loaders: Readonly<Record<string, () => Promise<void>>>, { again }?: {
|
|
519
|
+
again?: boolean;
|
|
520
|
+
}): void;
|
|
925
521
|
export type PartialLabels = {
|
|
926
522
|
[K in keyof UiLabels]?: UiLabels[K] extends string | string[] ? UiLabels[K] : Partial<UiLabels[K]>;
|
|
927
523
|
};
|
|
@@ -994,8 +590,8 @@ export declare const REMOVED_LABELS: Readonly<{
|
|
|
994
590
|
*/
|
|
995
591
|
export declare function removedLabels(custom: unknown): Array<[string, string]>;
|
|
996
592
|
/**
|
|
997
|
-
* The labels for a locale: the language of the locale picks
|
|
998
|
-
* partial labels are merged over them.
|
|
593
|
+
* The labels for a locale: the language of the locale picks one of LABELS (default en, also for a
|
|
594
|
+
* language not added yet), the host's partial labels are merged over them.
|
|
999
595
|
* @param {string | undefined} locale
|
|
1000
596
|
* @param {PartialLabels | object} [custom]
|
|
1001
597
|
* @returns {UiLabels}
|
package/types/lazy-menus.d.ts
CHANGED
|
@@ -17,12 +17,12 @@ export declare function loadMenus(lang?: string): Promise<typeof import("./menus
|
|
|
17
17
|
export declare const menusNow: (lang?: string) => typeof import("./menus.js") | null;
|
|
18
18
|
/**
|
|
19
19
|
* One panel of menus.js with its props.
|
|
20
|
-
* @param {{ name: "AxisMenu" | "FilterMenu" | "ValueMenu" | "AddMenu" | "ChartSettingsPanel" | "TableSettingsPanel" | "MorePanel" | "ViewsPanel" | "ExportPanel" | "LoadCheck" | "FilterPopover" | "DrillPanel" | "DataMenu", loadingText?: string, props: Record<string, any> }} props
|
|
20
|
+
* @param {{ name: "AxisMenu" | "FilterMenu" | "ValueMenu" | "AddMenu" | "ChartSettingsPanel" | "TableSettingsPanel" | "MorePanel" | "ViewsPanel" | "ExportPanel" | "LoadCheck" | "FilterPopover" | "DrillPanel" | "DataMenu" | "PointMenu", loadingText?: string, props: Record<string, any> }} props
|
|
21
21
|
* `loadingText`: shown while loading; without it nothing is (a popover or panel of its own).
|
|
22
22
|
* `props.labels` gives the texts of a failed load
|
|
23
23
|
*/
|
|
24
24
|
export declare function MenuPanel({ name, loadingText, props }: {
|
|
25
|
-
name: "AxisMenu" | "FilterMenu" | "ValueMenu" | "AddMenu" | "ChartSettingsPanel" | "TableSettingsPanel" | "MorePanel" | "ViewsPanel" | "ExportPanel" | "LoadCheck" | "FilterPopover" | "DrillPanel" | "DataMenu";
|
|
25
|
+
name: "AxisMenu" | "FilterMenu" | "ValueMenu" | "AddMenu" | "ChartSettingsPanel" | "TableSettingsPanel" | "MorePanel" | "ViewsPanel" | "ExportPanel" | "LoadCheck" | "FilterPopover" | "DrillPanel" | "DataMenu" | "PointMenu";
|
|
26
26
|
loadingText?: string;
|
|
27
27
|
props: Record<string, any>;
|
|
28
28
|
}): React.JSX.Element;
|
package/types/menu-labels.d.ts
CHANGED
|
@@ -53,6 +53,8 @@ export declare const en: {
|
|
|
53
53
|
nameHint: string;
|
|
54
54
|
showAsKeywords: string;
|
|
55
55
|
nameKeywords: string;
|
|
56
|
+
fieldNameHint: string;
|
|
57
|
+
fieldNameReset: string;
|
|
56
58
|
filterKeywords: string;
|
|
57
59
|
formatDecimals: {
|
|
58
60
|
one: string;
|
|
@@ -256,6 +258,7 @@ export declare const en: {
|
|
|
256
258
|
moveRight: string;
|
|
257
259
|
remove: string;
|
|
258
260
|
chartAutoNow: string;
|
|
261
|
+
chartNeedsValues: string;
|
|
259
262
|
sharedViews: string;
|
|
260
263
|
myViews: string;
|
|
261
264
|
noViews: string;
|
|
@@ -329,6 +332,20 @@ export declare const en: {
|
|
|
329
332
|
};
|
|
330
333
|
conditional: string;
|
|
331
334
|
conditionalNone: string;
|
|
335
|
+
scaleColors: string;
|
|
336
|
+
scaleKeywords: string;
|
|
337
|
+
scaleNames: {
|
|
338
|
+
theme: string;
|
|
339
|
+
blueOrange: string;
|
|
340
|
+
blueRed: string;
|
|
341
|
+
redGreen: string;
|
|
342
|
+
};
|
|
343
|
+
scaleRedGreenHint: string;
|
|
344
|
+
scaleOwn: string;
|
|
345
|
+
pointMenu: string;
|
|
346
|
+
pointRows: string;
|
|
347
|
+
pointOnly: string;
|
|
348
|
+
pointWithout: string;
|
|
332
349
|
colorScale: string;
|
|
333
350
|
dataBar: string;
|
|
334
351
|
rename: string;
|
|
@@ -337,6 +354,7 @@ export declare const en: {
|
|
|
337
354
|
groupNone: string;
|
|
338
355
|
groupTimeline: string;
|
|
339
356
|
groupCyclic: string;
|
|
357
|
+
groupClearsFilter: string;
|
|
340
358
|
groupDataRange: {
|
|
341
359
|
one: string;
|
|
342
360
|
other: string;
|
|
@@ -383,6 +401,7 @@ export declare const en: {
|
|
|
383
401
|
conditionNone: string;
|
|
384
402
|
conditionValue: string;
|
|
385
403
|
selected: string;
|
|
404
|
+
selectedAll: string;
|
|
386
405
|
exportDownload: string;
|
|
387
406
|
exportCopy: string;
|
|
388
407
|
exportXlsx: string;
|
|
@@ -471,6 +490,7 @@ export declare const en: {
|
|
|
471
490
|
referenceLines: string;
|
|
472
491
|
targetNone: string;
|
|
473
492
|
linesOff: string;
|
|
493
|
+
linesExtremes: string;
|
|
474
494
|
targetPercent: string;
|
|
475
495
|
targetPercent100: string;
|
|
476
496
|
targetPercentHigh: string;
|
package/types/menu-ops.d.ts
CHANGED
|
@@ -440,3 +440,36 @@ export declare function dateFromInput(text: string): string | null;
|
|
|
440
440
|
* @returns {number | null}
|
|
441
441
|
*/
|
|
442
442
|
export declare function parseTarget(text: string, locale: string, format: string | undefined): number | null;
|
|
443
|
+
/**
|
|
444
|
+
* What the small menu at a clicked bar, point or slice offers (#53): "Show the rows", then for the
|
|
445
|
+
* category's item and for the series' item
|
|
446
|
+
* "Only …" and "Without …". Each is the field's pick (setItemFilter): Only keeps that item, Without
|
|
447
|
+
* leaves it out of what is picked now. An entry that would change nothing, or leave nothing, is left
|
|
448
|
+
* out. "Show the rows" is left out for a slice, which adds up every column, and when the rows go
|
|
449
|
+
* nowhere (`options.showRows`).
|
|
450
|
+
* @param {any} view
|
|
451
|
+
* @param {{ rowPath: any[], colPath: any[], valueIndex: number, value: unknown, slice?: boolean }} point
|
|
452
|
+
* @param {import("pivotkit-core").Encoded} encoded
|
|
453
|
+
* @param {any} labels
|
|
454
|
+
* @param {string} locale
|
|
455
|
+
* @param {{ showRows?: boolean }} [options] `showRows`: whether a value's rows go anywhere, the
|
|
456
|
+
* drill-down panel or the host's onCellClick (default true)
|
|
457
|
+
* @returns {Array<{ id: string, text: string, field?: string, change?: () => { view: any, note: any } }>}
|
|
458
|
+
*/
|
|
459
|
+
export declare function pointActions(view: any, point: {
|
|
460
|
+
rowPath: any[];
|
|
461
|
+
colPath: any[];
|
|
462
|
+
valueIndex: number;
|
|
463
|
+
value: unknown;
|
|
464
|
+
slice?: boolean;
|
|
465
|
+
}, encoded: import("pivotkit-core").Encoded, labels: any, locale: string, { showRows }?: {
|
|
466
|
+
showRows?: boolean;
|
|
467
|
+
}): Array<{
|
|
468
|
+
id: string;
|
|
469
|
+
text: string;
|
|
470
|
+
field?: string;
|
|
471
|
+
change?: () => {
|
|
472
|
+
view: any;
|
|
473
|
+
note: any;
|
|
474
|
+
};
|
|
475
|
+
}>;
|