react-semaphor 0.0.119 → 0.0.120
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/dist/react-semaphor.d.ts +166 -10
- package/dist/react-semaphor.js +11092 -10888
- package/dist/react-semaphor.umd.cjs +118 -118
- package/dist/style.css +1 -1
- package/package.json +2 -1
package/dist/react-semaphor.d.ts
CHANGED
|
@@ -26,7 +26,7 @@ declare type Actions = {
|
|
|
26
26
|
setThemeStyle: (themeStyle: StyleProps) => void;
|
|
27
27
|
setBookmarkKey: (bookmarkKey: string) => void;
|
|
28
28
|
setDashboard: (dashboard: TDashboard) => void;
|
|
29
|
-
setDashboardTheme: (theme:
|
|
29
|
+
setDashboardTheme: (theme: "light" | "dark" | "system") => void;
|
|
30
30
|
setSheets: (sheets: TSheet[]) => void;
|
|
31
31
|
setSelectedSheetId: (sheetId: string | null) => void;
|
|
32
32
|
setSheetLayout: (sheetId: string, layout: ReactGridLayout_2.Layout[]) => void;
|
|
@@ -216,7 +216,7 @@ export declare function DashboardProvider({ children }: {
|
|
|
216
216
|
export declare type DashboardStore = {
|
|
217
217
|
authToken?: AuthToken;
|
|
218
218
|
currentBreakpoint: Breakpoint;
|
|
219
|
-
theme?:
|
|
219
|
+
theme?: "light" | "dark" | "system";
|
|
220
220
|
themeStyle?: StyleProps;
|
|
221
221
|
filteringCards?: TCard[];
|
|
222
222
|
bookmarkKey?: string;
|
|
@@ -461,11 +461,35 @@ export declare type TCardPreferences = {
|
|
|
461
461
|
suffix?: string;
|
|
462
462
|
enabled?: boolean | string;
|
|
463
463
|
};
|
|
464
|
-
|
|
464
|
+
datasetOptions?: TDatasetOptions[];
|
|
465
|
+
chartOptions?: TChartOptions;
|
|
465
466
|
};
|
|
466
467
|
|
|
467
468
|
declare type TChartConfiguration = ChartConfiguration;
|
|
468
469
|
|
|
470
|
+
export declare type TChartOptions = {
|
|
471
|
+
type?: TChartType;
|
|
472
|
+
scales?: {
|
|
473
|
+
y?: {
|
|
474
|
+
type: 'linear' | 'logarithmic';
|
|
475
|
+
min: number;
|
|
476
|
+
max: number;
|
|
477
|
+
ticks: {
|
|
478
|
+
stepSize: number;
|
|
479
|
+
};
|
|
480
|
+
};
|
|
481
|
+
x?: {
|
|
482
|
+
type: 'linear' | 'logarithmic';
|
|
483
|
+
min: number;
|
|
484
|
+
max: number;
|
|
485
|
+
ticks: {
|
|
486
|
+
stepSize: number;
|
|
487
|
+
};
|
|
488
|
+
};
|
|
489
|
+
};
|
|
490
|
+
indexAxis?: 'x' | 'y' | undefined;
|
|
491
|
+
};
|
|
492
|
+
|
|
469
493
|
declare type TChartType = 'bar' | 'horizontalBar' | 'line' | 'pie' | 'doughnut' | 'radar' | 'polarArea' | 'bubble' | 'scatter' | 'stackedBar' | 'table' | 'kpi' | 'custom';
|
|
470
494
|
|
|
471
495
|
export declare type TDashboard = {
|
|
@@ -629,11 +653,33 @@ export declare const useDashboardStore: UseBoundStore<Omit<StoreApi<DashboardSto
|
|
|
629
653
|
suffix?: string | undefined;
|
|
630
654
|
enabled?: string | boolean | undefined;
|
|
631
655
|
} | undefined;
|
|
632
|
-
|
|
656
|
+
datasetOptions?: {
|
|
633
657
|
idx: number;
|
|
634
658
|
type?: "bar" | "line" | undefined;
|
|
635
659
|
fill?: string | number | undefined;
|
|
636
660
|
}[] | undefined;
|
|
661
|
+
chartOptions?: {
|
|
662
|
+
type?: TChartType | undefined;
|
|
663
|
+
scales?: {
|
|
664
|
+
y?: {
|
|
665
|
+
type: "linear" | "logarithmic";
|
|
666
|
+
min: number;
|
|
667
|
+
max: number;
|
|
668
|
+
ticks: {
|
|
669
|
+
stepSize: number;
|
|
670
|
+
};
|
|
671
|
+
} | undefined;
|
|
672
|
+
x?: {
|
|
673
|
+
type: "linear" | "logarithmic";
|
|
674
|
+
min: number;
|
|
675
|
+
max: number;
|
|
676
|
+
ticks: {
|
|
677
|
+
stepSize: number;
|
|
678
|
+
};
|
|
679
|
+
} | undefined;
|
|
680
|
+
} | undefined;
|
|
681
|
+
indexAxis?: "x" | "y" | undefined;
|
|
682
|
+
} | undefined;
|
|
637
683
|
} | undefined;
|
|
638
684
|
lastSelectedDatabase?: string | undefined;
|
|
639
685
|
lastSelectedSchema?: string | undefined;
|
|
@@ -712,11 +758,33 @@ export declare const useDashboardStore: UseBoundStore<Omit<StoreApi<DashboardSto
|
|
|
712
758
|
suffix?: string | undefined;
|
|
713
759
|
enabled?: string | boolean | undefined;
|
|
714
760
|
} | undefined;
|
|
715
|
-
|
|
761
|
+
datasetOptions?: {
|
|
716
762
|
idx: number;
|
|
717
763
|
type?: "bar" | "line" | undefined;
|
|
718
764
|
fill?: string | number | undefined;
|
|
719
765
|
}[] | undefined;
|
|
766
|
+
chartOptions?: {
|
|
767
|
+
type?: TChartType | undefined;
|
|
768
|
+
scales?: {
|
|
769
|
+
y?: {
|
|
770
|
+
type: "linear" | "logarithmic";
|
|
771
|
+
min: number;
|
|
772
|
+
max: number;
|
|
773
|
+
ticks: {
|
|
774
|
+
stepSize: number;
|
|
775
|
+
};
|
|
776
|
+
} | undefined;
|
|
777
|
+
x?: {
|
|
778
|
+
type: "linear" | "logarithmic";
|
|
779
|
+
min: number;
|
|
780
|
+
max: number;
|
|
781
|
+
ticks: {
|
|
782
|
+
stepSize: number;
|
|
783
|
+
};
|
|
784
|
+
} | undefined;
|
|
785
|
+
} | undefined;
|
|
786
|
+
indexAxis?: "x" | "y" | undefined;
|
|
787
|
+
} | undefined;
|
|
720
788
|
} | undefined;
|
|
721
789
|
lastSelectedDatabase?: string | undefined;
|
|
722
790
|
lastSelectedSchema?: string | undefined;
|
|
@@ -752,11 +820,33 @@ export declare const useDashboardStore: UseBoundStore<Omit<StoreApi<DashboardSto
|
|
|
752
820
|
suffix?: string | undefined;
|
|
753
821
|
enabled?: string | boolean | undefined;
|
|
754
822
|
} | undefined;
|
|
755
|
-
|
|
823
|
+
datasetOptions?: {
|
|
756
824
|
idx: number;
|
|
757
825
|
type?: "bar" | "line" | undefined;
|
|
758
826
|
fill?: string | number | undefined;
|
|
759
827
|
}[] | undefined;
|
|
828
|
+
chartOptions?: {
|
|
829
|
+
type?: TChartType | undefined;
|
|
830
|
+
scales?: {
|
|
831
|
+
y?: {
|
|
832
|
+
type: "linear" | "logarithmic";
|
|
833
|
+
min: number;
|
|
834
|
+
max: number;
|
|
835
|
+
ticks: {
|
|
836
|
+
stepSize: number;
|
|
837
|
+
};
|
|
838
|
+
} | undefined;
|
|
839
|
+
x?: {
|
|
840
|
+
type: "linear" | "logarithmic";
|
|
841
|
+
min: number;
|
|
842
|
+
max: number;
|
|
843
|
+
ticks: {
|
|
844
|
+
stepSize: number;
|
|
845
|
+
};
|
|
846
|
+
} | undefined;
|
|
847
|
+
} | undefined;
|
|
848
|
+
indexAxis?: "x" | "y" | undefined;
|
|
849
|
+
} | undefined;
|
|
760
850
|
} | undefined;
|
|
761
851
|
lastSelectedDatabase?: string | undefined;
|
|
762
852
|
lastSelectedSchema?: string | undefined;
|
|
@@ -876,11 +966,33 @@ export declare const useDashboardStore: UseBoundStore<Omit<StoreApi<DashboardSto
|
|
|
876
966
|
suffix?: string | undefined;
|
|
877
967
|
enabled?: string | boolean | undefined;
|
|
878
968
|
} | undefined;
|
|
879
|
-
|
|
969
|
+
datasetOptions?: {
|
|
880
970
|
idx: number;
|
|
881
971
|
type?: "bar" | "line" | undefined;
|
|
882
972
|
fill?: string | number | undefined;
|
|
883
973
|
}[] | undefined;
|
|
974
|
+
chartOptions?: {
|
|
975
|
+
type?: TChartType | undefined;
|
|
976
|
+
scales?: {
|
|
977
|
+
y?: {
|
|
978
|
+
type: "linear" | "logarithmic";
|
|
979
|
+
min: number;
|
|
980
|
+
max: number;
|
|
981
|
+
ticks: {
|
|
982
|
+
stepSize: number;
|
|
983
|
+
};
|
|
984
|
+
} | undefined;
|
|
985
|
+
x?: {
|
|
986
|
+
type: "linear" | "logarithmic";
|
|
987
|
+
min: number;
|
|
988
|
+
max: number;
|
|
989
|
+
ticks: {
|
|
990
|
+
stepSize: number;
|
|
991
|
+
};
|
|
992
|
+
} | undefined;
|
|
993
|
+
} | undefined;
|
|
994
|
+
indexAxis?: "x" | "y" | undefined;
|
|
995
|
+
} | undefined;
|
|
884
996
|
} | undefined;
|
|
885
997
|
lastSelectedDatabase?: string | undefined;
|
|
886
998
|
lastSelectedSchema?: string | undefined;
|
|
@@ -955,7 +1067,7 @@ export declare const useDashboardStore: UseBoundStore<Omit<StoreApi<DashboardSto
|
|
|
955
1067
|
setThemeStyle: (themeStyle: StyleProps) => void;
|
|
956
1068
|
setBookmarkKey: (bookmarkKey: string) => void;
|
|
957
1069
|
setDashboard: (dashboard: TDashboard) => void;
|
|
958
|
-
setDashboardTheme: (theme:
|
|
1070
|
+
setDashboardTheme: (theme: "light" | "dark" | "system") => void;
|
|
959
1071
|
setSheets: (sheets: TSheet[]) => void;
|
|
960
1072
|
setSelectedSheetId: (sheetId: string | null) => void;
|
|
961
1073
|
setSheetLayout: (sheetId: string, layout: ReactGridLayout_2.Layout[]) => void;
|
|
@@ -1113,11 +1225,33 @@ export declare const useEditorStore: UseBoundStore<Omit<StoreApi<EditorStore>, "
|
|
|
1113
1225
|
suffix?: string | undefined;
|
|
1114
1226
|
enabled?: string | boolean | undefined;
|
|
1115
1227
|
} | undefined;
|
|
1116
|
-
|
|
1228
|
+
datasetOptions?: {
|
|
1117
1229
|
idx: number;
|
|
1118
1230
|
type?: "bar" | "line" | undefined;
|
|
1119
1231
|
fill?: string | number | undefined;
|
|
1120
1232
|
}[] | undefined;
|
|
1233
|
+
chartOptions?: {
|
|
1234
|
+
type?: TChartType | undefined;
|
|
1235
|
+
scales?: {
|
|
1236
|
+
y?: {
|
|
1237
|
+
type: "linear" | "logarithmic";
|
|
1238
|
+
min: number;
|
|
1239
|
+
max: number;
|
|
1240
|
+
ticks: {
|
|
1241
|
+
stepSize: number;
|
|
1242
|
+
};
|
|
1243
|
+
} | undefined;
|
|
1244
|
+
x?: {
|
|
1245
|
+
type: "linear" | "logarithmic";
|
|
1246
|
+
min: number;
|
|
1247
|
+
max: number;
|
|
1248
|
+
ticks: {
|
|
1249
|
+
stepSize: number;
|
|
1250
|
+
};
|
|
1251
|
+
} | undefined;
|
|
1252
|
+
} | undefined;
|
|
1253
|
+
indexAxis?: "x" | "y" | undefined;
|
|
1254
|
+
} | undefined;
|
|
1121
1255
|
} | undefined;
|
|
1122
1256
|
lastSelectedDatabase?: string | undefined;
|
|
1123
1257
|
lastSelectedSchema?: string | undefined;
|
|
@@ -1153,11 +1287,33 @@ export declare const useEditorStore: UseBoundStore<Omit<StoreApi<EditorStore>, "
|
|
|
1153
1287
|
suffix?: string | undefined;
|
|
1154
1288
|
enabled?: string | boolean | undefined;
|
|
1155
1289
|
} | undefined;
|
|
1156
|
-
|
|
1290
|
+
datasetOptions?: {
|
|
1157
1291
|
idx: number;
|
|
1158
1292
|
type?: "bar" | "line" | undefined;
|
|
1159
1293
|
fill?: string | number | undefined;
|
|
1160
1294
|
}[] | undefined;
|
|
1295
|
+
chartOptions?: {
|
|
1296
|
+
type?: TChartType | undefined;
|
|
1297
|
+
scales?: {
|
|
1298
|
+
y?: {
|
|
1299
|
+
type: "linear" | "logarithmic";
|
|
1300
|
+
min: number;
|
|
1301
|
+
max: number;
|
|
1302
|
+
ticks: {
|
|
1303
|
+
stepSize: number;
|
|
1304
|
+
};
|
|
1305
|
+
} | undefined;
|
|
1306
|
+
x?: {
|
|
1307
|
+
type: "linear" | "logarithmic";
|
|
1308
|
+
min: number;
|
|
1309
|
+
max: number;
|
|
1310
|
+
ticks: {
|
|
1311
|
+
stepSize: number;
|
|
1312
|
+
};
|
|
1313
|
+
} | undefined;
|
|
1314
|
+
} | undefined;
|
|
1315
|
+
indexAxis?: "x" | "y" | undefined;
|
|
1316
|
+
} | undefined;
|
|
1161
1317
|
} | undefined;
|
|
1162
1318
|
lastSelectedDatabase?: string | undefined;
|
|
1163
1319
|
lastSelectedSchema?: string | undefined;
|