semaphor 0.0.35 → 0.0.36
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 +45 -0
- package/dist/react-semaphor.js +13591 -13233
- package/dist/react-semaphor.umd.cjs +126 -102
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/react-semaphor.d.ts
CHANGED
|
@@ -53,6 +53,7 @@ declare type Actions = {
|
|
|
53
53
|
updateFilter: (filter: TFilter) => void;
|
|
54
54
|
setFilterValues: (filterValues: TFilterValue[] | undefined) => void;
|
|
55
55
|
addOrUpdateFilterValue: (filterValue: TFilterValue) => void;
|
|
56
|
+
addOrUpdateFilterValues: (filterValues: TFilterValue[]) => void;
|
|
56
57
|
removeFilterValue: (filterId: string) => void;
|
|
57
58
|
replaceFilterValue: (filterValue: TFilterValue) => void;
|
|
58
59
|
setStyle: (style: TStyle) => void;
|
|
@@ -78,9 +79,11 @@ declare type Actions_2 = {
|
|
|
78
79
|
setCardRefreshInterval: (refreshInterval: string) => void;
|
|
79
80
|
setNumberFormat: (format: string, currency: string, locale: string, suffix: string) => void;
|
|
80
81
|
setIsShowingVisual: (isShowingVisual: boolean) => void;
|
|
82
|
+
setQueryResultColumns: (columns: string[]) => void;
|
|
81
83
|
setRunSql: (runSql: boolean) => void;
|
|
82
84
|
setCardPreferences: (preferences: TCardPreferences) => void;
|
|
83
85
|
setFilterOnClickField: (field: string) => void;
|
|
86
|
+
setFilterOnClickColumnIndex: (index: number) => void;
|
|
84
87
|
setIsSqlRunning: (isSqlRunning: boolean) => void;
|
|
85
88
|
setCard: (card: TCard) => void;
|
|
86
89
|
setFrame: (frame: TFrame) => void;
|
|
@@ -237,6 +240,7 @@ declare type EditorStore = {
|
|
|
237
240
|
showFilters: boolean;
|
|
238
241
|
applyFilters: boolean;
|
|
239
242
|
filterValues?: TFilterValue[];
|
|
243
|
+
queryResultColumns: string[];
|
|
240
244
|
selectedConnectionId?: string;
|
|
241
245
|
selectedDatabaseName?: string;
|
|
242
246
|
selectedSchemaName?: string;
|
|
@@ -284,6 +288,11 @@ declare type FilterForString = BaseFilter & {
|
|
|
284
288
|
values: [string];
|
|
285
289
|
};
|
|
286
290
|
|
|
291
|
+
declare type FilterOnClick = {
|
|
292
|
+
expression?: string;
|
|
293
|
+
columnIndex: number;
|
|
294
|
+
};
|
|
295
|
+
|
|
287
296
|
export declare function fmt(str: string): string;
|
|
288
297
|
|
|
289
298
|
export declare function getBookmarkKey(dashboardId: string): string;
|
|
@@ -422,8 +431,10 @@ export declare type TCardContext = {
|
|
|
422
431
|
};
|
|
423
432
|
|
|
424
433
|
export declare type TCardPreferences = {
|
|
434
|
+
onClickFilter?: FilterOnClick[];
|
|
425
435
|
filterOnClick?: boolean;
|
|
426
436
|
filterOnClickField?: string;
|
|
437
|
+
filterOnClickColumnIndex?: number;
|
|
427
438
|
formatNumber?: {
|
|
428
439
|
format?: string;
|
|
429
440
|
currency?: string;
|
|
@@ -577,8 +588,13 @@ export declare const useDashboardStore: UseBoundStore<Omit<StoreApi<DashboardSto
|
|
|
577
588
|
cfg?: any;
|
|
578
589
|
customCfg?: any;
|
|
579
590
|
preferences?: {
|
|
591
|
+
onClickFilter?: {
|
|
592
|
+
expression?: string | undefined;
|
|
593
|
+
columnIndex: number;
|
|
594
|
+
}[] | undefined;
|
|
580
595
|
filterOnClick?: boolean | undefined;
|
|
581
596
|
filterOnClickField?: string | undefined;
|
|
597
|
+
filterOnClickColumnIndex?: number | undefined;
|
|
582
598
|
formatNumber?: {
|
|
583
599
|
format?: string | undefined;
|
|
584
600
|
currency?: string | undefined;
|
|
@@ -649,8 +665,13 @@ export declare const useDashboardStore: UseBoundStore<Omit<StoreApi<DashboardSto
|
|
|
649
665
|
cfg?: any;
|
|
650
666
|
customCfg?: any;
|
|
651
667
|
preferences?: {
|
|
668
|
+
onClickFilter?: {
|
|
669
|
+
expression?: string | undefined;
|
|
670
|
+
columnIndex: number;
|
|
671
|
+
}[] | undefined;
|
|
652
672
|
filterOnClick?: boolean | undefined;
|
|
653
673
|
filterOnClickField?: string | undefined;
|
|
674
|
+
filterOnClickColumnIndex?: number | undefined;
|
|
654
675
|
formatNumber?: {
|
|
655
676
|
format?: string | undefined;
|
|
656
677
|
currency?: string | undefined;
|
|
@@ -678,8 +699,13 @@ export declare const useDashboardStore: UseBoundStore<Omit<StoreApi<DashboardSto
|
|
|
678
699
|
cfg?: any;
|
|
679
700
|
customCfg?: any;
|
|
680
701
|
preferences?: {
|
|
702
|
+
onClickFilter?: {
|
|
703
|
+
expression?: string | undefined;
|
|
704
|
+
columnIndex: number;
|
|
705
|
+
}[] | undefined;
|
|
681
706
|
filterOnClick?: boolean | undefined;
|
|
682
707
|
filterOnClickField?: string | undefined;
|
|
708
|
+
filterOnClickColumnIndex?: number | undefined;
|
|
683
709
|
formatNumber?: {
|
|
684
710
|
format?: string | undefined;
|
|
685
711
|
currency?: string | undefined;
|
|
@@ -791,8 +817,13 @@ export declare const useDashboardStore: UseBoundStore<Omit<StoreApi<DashboardSto
|
|
|
791
817
|
cfg?: any;
|
|
792
818
|
customCfg?: any;
|
|
793
819
|
preferences?: {
|
|
820
|
+
onClickFilter?: {
|
|
821
|
+
expression?: string | undefined;
|
|
822
|
+
columnIndex: number;
|
|
823
|
+
}[] | undefined;
|
|
794
824
|
filterOnClick?: boolean | undefined;
|
|
795
825
|
filterOnClickField?: string | undefined;
|
|
826
|
+
filterOnClickColumnIndex?: number | undefined;
|
|
796
827
|
formatNumber?: {
|
|
797
828
|
format?: string | undefined;
|
|
798
829
|
currency?: string | undefined;
|
|
@@ -902,6 +933,7 @@ export declare const useDashboardStore: UseBoundStore<Omit<StoreApi<DashboardSto
|
|
|
902
933
|
updateFilter: (filter: TFilter) => void;
|
|
903
934
|
setFilterValues: (filterValues: TFilterValue[] | undefined) => void;
|
|
904
935
|
addOrUpdateFilterValue: (filterValue: TFilterValue) => void;
|
|
936
|
+
addOrUpdateFilterValues: (filterValues: TFilterValue[]) => void;
|
|
905
937
|
removeFilterValue: (filterId: string) => void;
|
|
906
938
|
replaceFilterValue: (filterValue: TFilterValue) => void;
|
|
907
939
|
setStyle: (style: TStyle) => void;
|
|
@@ -960,9 +992,11 @@ export declare const useEditorStore: UseBoundStore<Omit<StoreApi<EditorStore>, "
|
|
|
960
992
|
setCardRefreshInterval: (refreshInterval: string) => void;
|
|
961
993
|
setNumberFormat: (format: string, currency: string, locale: string, suffix: string) => void;
|
|
962
994
|
setIsShowingVisual: (isShowingVisual: boolean) => void;
|
|
995
|
+
setQueryResultColumns: (columns: string[]) => void;
|
|
963
996
|
setRunSql: (runSql: boolean) => void;
|
|
964
997
|
setCardPreferences: (preferences: TCardPreferences) => void;
|
|
965
998
|
setFilterOnClickField: (field: string) => void;
|
|
999
|
+
setFilterOnClickColumnIndex: (index: number) => void;
|
|
966
1000
|
setIsSqlRunning: (isSqlRunning: boolean) => void;
|
|
967
1001
|
setCard: (card: TCard) => void;
|
|
968
1002
|
setFrame: (frame: TFrame) => void;
|
|
@@ -1010,8 +1044,13 @@ export declare const useEditorStore: UseBoundStore<Omit<StoreApi<EditorStore>, "
|
|
|
1010
1044
|
cfg?: any;
|
|
1011
1045
|
customCfg?: any;
|
|
1012
1046
|
preferences?: {
|
|
1047
|
+
onClickFilter?: {
|
|
1048
|
+
expression?: string | undefined;
|
|
1049
|
+
columnIndex: number;
|
|
1050
|
+
}[] | undefined;
|
|
1013
1051
|
filterOnClick?: boolean | undefined;
|
|
1014
1052
|
filterOnClickField?: string | undefined;
|
|
1053
|
+
filterOnClickColumnIndex?: number | undefined;
|
|
1015
1054
|
formatNumber?: {
|
|
1016
1055
|
format?: string | undefined;
|
|
1017
1056
|
currency?: string | undefined;
|
|
@@ -1039,8 +1078,13 @@ export declare const useEditorStore: UseBoundStore<Omit<StoreApi<EditorStore>, "
|
|
|
1039
1078
|
cfg?: any;
|
|
1040
1079
|
customCfg?: any;
|
|
1041
1080
|
preferences?: {
|
|
1081
|
+
onClickFilter?: {
|
|
1082
|
+
expression?: string | undefined;
|
|
1083
|
+
columnIndex: number;
|
|
1084
|
+
}[] | undefined;
|
|
1042
1085
|
filterOnClick?: boolean | undefined;
|
|
1043
1086
|
filterOnClickField?: string | undefined;
|
|
1087
|
+
filterOnClickColumnIndex?: number | undefined;
|
|
1044
1088
|
formatNumber?: {
|
|
1045
1089
|
format?: string | undefined;
|
|
1046
1090
|
currency?: string | undefined;
|
|
@@ -1105,6 +1149,7 @@ export declare const useEditorStore: UseBoundStore<Omit<StoreApi<EditorStore>, "
|
|
|
1105
1149
|
operation: "in" | "not in";
|
|
1106
1150
|
values: (string | number)[];
|
|
1107
1151
|
})[] | undefined;
|
|
1152
|
+
queryResultColumns: string[];
|
|
1108
1153
|
selectedConnectionId?: string | undefined;
|
|
1109
1154
|
selectedDatabaseName?: string | undefined;
|
|
1110
1155
|
selectedSchemaName?: string | undefined;
|