semaphor 0.0.80 → 0.0.82

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.
@@ -1,18 +1,17 @@
1
- import { BubbleDataPoint } from 'chart.js';
1
+ import { AIScopeTable as AIScopeTable_2 } from '..';
2
+ import { CacheConfig as CacheConfig_2 } from '..';
2
3
  import { Chart } from 'chart.js';
3
4
  import { ChartConfiguration } from 'chart.js';
4
- import { ChartTypeRegistry } from 'chart.js';
5
- import { FC } from 'react';
5
+ import { CustomCard as CustomCard_2 } from '..';
6
+ import { default as default_2 } from 'react-grid-layout';
6
7
  import { FontSpec } from 'chart.js';
7
- import { IBubbleMapDataPoint } from 'chartjs-chart-geo';
8
- import { IChoroplethDataPoint } from 'chartjs-chart-geo';
9
8
  import { JSX as JSX_2 } from 'react/jsx-runtime';
10
- import { Layout } from 'react-grid-layout';
11
- import { Layouts } from 'react-grid-layout';
12
- import { Point } from 'chart.js';
13
- import { default as ReactGridLayout_2 } from 'react-grid-layout';
14
9
  import { StoreApi } from 'zustand';
10
+ import { TBaseQuery as TBaseQuery_2 } from '..';
11
+ import { TFilter as TFilter_2 } from '../surfboard/filter/types';
12
+ import { TStyle as TStyle_2 } from '..';
15
13
  import { UseBoundStore } from 'zustand';
14
+ import { WritableDraft } from 'immer';
16
15
 
17
16
  declare type Actions = {
18
17
  setInitStore: () => void;
@@ -37,8 +36,8 @@ declare type Actions = {
37
36
  deleteSheet: (sheetId: string) => void;
38
37
  setSheetTitle: (sheetId: string, title: string) => void;
39
38
  setSelectedSheetId: (sheetId: string | null) => void;
40
- setSheetLayout: (sheetId: string, layout: ReactGridLayout_2.Layout[]) => void;
41
- setSheetLayouts: (sheetId: string, layouts: ReactGridLayout_2.Layouts) => void;
39
+ setSheetLayout: (sheetId: string, layout: default_2.Layout[]) => void;
40
+ setSheetLayouts: (sheetId: string, layouts: default_2.Layouts) => void;
42
41
  setSelectedCardId: (sheetId: string, cardId: string | null) => void;
43
42
  setSelectedFrameId: (frameId: string) => void;
44
43
  setCardTitle: (sheetId: string, cardId: string, title: string) => void;
@@ -79,8 +78,8 @@ declare type Actions = {
79
78
  getSelectedFrame: () => TFrame | undefined;
80
79
  getCardFrame: (cardId: string) => TFrame | undefined;
81
80
  getCardSheet: (cardId: string) => TSheet | undefined;
82
- getSelectedSheetLayout: () => ReactGridLayout_2.Layout[] | undefined;
83
- getSelectedSheetLayouts: () => ReactGridLayout_2.Layouts | undefined;
81
+ getSelectedSheetLayout: () => default_2.Layout[] | undefined;
82
+ getSelectedSheetLayouts: () => default_2.Layouts | undefined;
84
83
  handleDataPointClickAction: (card: TCard, dataPoint: any) => void;
85
84
  addBaseQuery: (baseQuery: TBaseQuery) => void;
86
85
  removeBaseQuery: (baseQueryId: string) => void;
@@ -352,26 +351,26 @@ export declare function getDashbaordStateWithoutData(dashboardState: TDashboard)
352
351
  frames: {
353
352
  cards: TCard[];
354
353
  id: string;
355
- filterId?: string | undefined;
354
+ filterId?: string;
356
355
  activeCardId: string;
357
356
  }[] | undefined;
358
357
  id: string;
359
- title?: string | undefined;
360
- description?: string | undefined;
361
- layout?: Layout[] | undefined;
362
- layouts?: Layouts | undefined;
363
- cards?: TCard[] | undefined;
358
+ title?: string;
359
+ description?: string;
360
+ layout?: ReactGridLayout.Layout[];
361
+ layouts?: ReactGridLayout.Layouts;
362
+ cards?: TCard[];
364
363
  }[] | undefined;
365
364
  id: string;
366
- title?: string | undefined;
367
- description?: string | undefined;
368
- style?: TStyle | undefined;
369
- filters?: TFilter[] | undefined;
370
- customCards?: CustomCard[] | undefined;
371
- baseQueries?: TBaseQuery[] | undefined;
372
- aiScopeTables?: AIScopeTable[] | undefined;
373
- globalStyle?: TStyle | undefined;
374
- globalCacheConfig?: CacheConfig | undefined;
365
+ title?: string;
366
+ description?: string;
367
+ style?: TStyle_2;
368
+ filters?: TFilter_2[];
369
+ customCards?: CustomCard_2[];
370
+ baseQueries?: TBaseQuery_2[];
371
+ aiScopeTables?: AIScopeTable_2[];
372
+ globalStyle?: TStyle_2;
373
+ globalCacheConfig?: CacheConfig_2;
375
374
  };
376
375
 
377
376
  export declare type GetDashboardResponse = {
@@ -738,1154 +737,14 @@ export declare function useCard(cardId: string): {
738
737
  isLoading: boolean;
739
738
  isFetching: boolean;
740
739
  visualKey: number;
741
- handleDatapointClick: (chart: Chart<keyof ChartTypeRegistry, (number | [number, number] | Point | BubbleDataPoint | IChoroplethDataPoint | IBubbleMapDataPoint | null)[], unknown>, datasetIndex: number, clickIndex: number, value: number) => void;
740
+ handleDatapointClick: (chart: Chart, datasetIndex: number, clickIndex: number, value: number) => void;
742
741
  cfg: TChartConfiguration | undefined;
743
742
  };
744
743
 
745
744
  export declare const useDashboardActions: () => Actions;
746
745
 
747
746
  export declare const useDashboardStore: UseBoundStore<Omit<StoreApi<DashboardStore>, "setState"> & {
748
- setState(nextStateOrUpdater: DashboardStore | Partial<DashboardStore> | ((state: {
749
- isSessionExpired: boolean;
750
- authToken?: {
751
- accessToken: string;
752
- refreshToken?: string | undefined;
753
- } | undefined;
754
- currentBreakpoint: Breakpoint;
755
- theme?: "dark" | "light" | "system" | undefined;
756
- themeStyle?: {
757
- canvasTheme?: string | undefined;
758
- dashboardPanel?: string | undefined;
759
- dashboardTabsContainer?: string | undefined;
760
- dashboardCardContainer?: string | undefined;
761
- dashboardCard?: string | undefined;
762
- gridLayout?: {
763
- className?: string | undefined;
764
- margin?: [number, number] | undefined;
765
- } | undefined;
766
- chart?: {
767
- font?: {
768
- family?: string | undefined;
769
- size?: number | undefined;
770
- style?: "normal" | "italic" | "oblique" | "initial" | "inherit" | undefined;
771
- weight?: number | "bold" | "normal" | "lighter" | "bolder" | null | undefined;
772
- lineHeight?: string | number | undefined;
773
- } | undefined;
774
- dataset?: any;
775
- options?: any;
776
- } | undefined;
777
- table?: {
778
- tableHeaderColor?: string | undefined;
779
- } | undefined;
780
- } | undefined;
781
- lenses?: {
782
- id: string;
783
- name: string;
784
- template?: string | undefined;
785
- filterValues?: ({
786
- filterId: string;
787
- expression?: string | undefined;
788
- name: string;
789
- valueType: "string" | "number" | "boolean" | "date";
790
- connectionType?: "database" | "api" | undefined;
791
- operation: "like" | "not like";
792
- values: [string];
793
- } | {
794
- filterId: string;
795
- expression?: string | undefined;
796
- name: string;
797
- valueType: "string" | "number" | "boolean" | "date";
798
- connectionType?: "database" | "api" | undefined;
799
- operation: "=" | "!=" | "is null" | "is not null";
800
- values: [string | number];
801
- } | {
802
- filterId: string;
803
- expression?: string | undefined;
804
- name: string;
805
- valueType: "string" | "number" | "boolean" | "date";
806
- connectionType?: "database" | "api" | undefined;
807
- operation: ">" | "<" | ">=" | "<=";
808
- values: [number];
809
- } | {
810
- filterId: string;
811
- expression?: string | undefined;
812
- name: string;
813
- valueType: "string" | "number" | "boolean" | "date";
814
- connectionType?: "database" | "api" | undefined;
815
- operation: "between" | "not between";
816
- values: [number, number];
817
- } | {
818
- filterId: string;
819
- expression?: string | undefined;
820
- name: string;
821
- valueType: "string" | "number" | "boolean" | "date";
822
- connectionType?: "database" | "api" | undefined;
823
- operation: "between" | "not between";
824
- values: [Date, Date];
825
- } | {
826
- filterId: string;
827
- expression?: string | undefined;
828
- name: string;
829
- valueType: "string" | "number" | "boolean" | "date";
830
- connectionType?: "database" | "api" | undefined;
831
- operation: "in" | "not in";
832
- values: (string | number)[];
833
- })[] | undefined;
834
- isDefault?: boolean | undefined;
835
- shared?: boolean | undefined;
836
- }[] | undefined;
837
- selectedLensId?: string | undefined;
838
- filteringCards?: {
839
- id: string;
840
- title: string;
841
- tabTitle?: string | undefined;
842
- displayTab?: boolean | undefined;
843
- description?: string | undefined;
844
- info?: string | undefined;
845
- connectionId?: string | undefined;
846
- datamodelId?: string | undefined;
847
- type: TChartType;
848
- sql?: string | undefined;
849
- python?: string | undefined;
850
- data?: any[] | undefined;
851
- cfg?: any;
852
- customCfg?: any;
853
- preferences?: {
854
- onClickFilter?: {
855
- expression?: string | undefined;
856
- columnIndex: number;
857
- }[] | undefined;
858
- filterOnClick?: boolean | undefined;
859
- filterOnClickField?: string | undefined;
860
- filterOnClickColumnIndex?: number | undefined;
861
- sortChart?: "none" | "asc" | "desc" | undefined;
862
- formatNumber?: {
863
- decimalPlaces?: number | undefined;
864
- currency?: string | undefined;
865
- locale?: string | undefined;
866
- suffix?: string | undefined;
867
- enabled?: string | boolean | undefined;
868
- colorRanges?: {
869
- start: number;
870
- end: number;
871
- color: string;
872
- }[] | undefined;
873
- } | undefined;
874
- numberAxisFormat?: {
875
- decimalPlaces?: number | undefined;
876
- suffix?: string | undefined;
877
- currency?: string | undefined;
878
- locale?: string | undefined;
879
- } | undefined;
880
- datasetOptions?: {
881
- idx: number;
882
- type?: "bar" | "line" | undefined;
883
- fill?: string | number | undefined;
884
- datalabels?: {
885
- display?: boolean | undefined;
886
- align?: string | undefined;
887
- anchor?: string | undefined;
888
- clamp?: boolean | undefined;
889
- color?: string | undefined;
890
- } | undefined;
891
- }[] | undefined;
892
- chartOptions?: {
893
- type?: TChartType | undefined;
894
- scales?: {
895
- y?: {
896
- type: "linear" | "logarithmic";
897
- min: number;
898
- max: number;
899
- ticks: {
900
- stepSize: number;
901
- };
902
- } | undefined;
903
- x?: {
904
- type: "linear" | "logarithmic";
905
- min: number;
906
- max: number;
907
- ticks: {
908
- stepSize: number;
909
- };
910
- } | undefined;
911
- } | undefined;
912
- indexAxis?: "x" | "y" | undefined;
913
- } | undefined;
914
- columnSettings?: {
915
- columnIdx: number;
916
- textAlign?: "left" | "center" | "right" | undefined;
917
- width?: number | undefined;
918
- type: DisplayDataType;
919
- options: {
920
- maxLength?: number | undefined;
921
- } | {} | {
922
- locale: string;
923
- currency?: string | undefined;
924
- options: {
925
- localeMatcher?: string | undefined;
926
- style?: string | undefined;
927
- currency?: string | undefined;
928
- currencySign?: string | undefined;
929
- useGrouping?: boolean | undefined;
930
- minimumIntegerDigits?: number | undefined;
931
- minimumFractionDigits?: number | undefined;
932
- maximumFractionDigits?: number | undefined;
933
- minimumSignificantDigits?: number | undefined;
934
- maximumSignificantDigits?: number | undefined;
935
- compactDisplay?: "short" | "long" | undefined;
936
- notation?: "standard" | "scientific" | "engineering" | "compact" | undefined;
937
- signDisplay?: "auto" | "never" | "always" | "exceptZero" | undefined;
938
- unit?: string | undefined;
939
- unitDisplay?: "short" | "long" | "narrow" | undefined;
940
- currencyDisplay?: string | undefined;
941
- };
942
- colorRanges?: {
943
- start: number;
944
- end: number;
945
- color: string;
946
- }[] | undefined;
947
- } | {
948
- locale: string;
949
- format: string;
950
- options: {
951
- localeMatcher?: "best fit" | "lookup" | undefined;
952
- weekday?: "short" | "long" | "narrow" | undefined;
953
- era?: "short" | "long" | "narrow" | undefined;
954
- year?: "numeric" | "2-digit" | undefined;
955
- month?: "numeric" | "short" | "long" | "narrow" | "2-digit" | undefined;
956
- day?: "numeric" | "2-digit" | undefined;
957
- hour?: "numeric" | "2-digit" | undefined;
958
- minute?: "numeric" | "2-digit" | undefined;
959
- second?: "numeric" | "2-digit" | undefined;
960
- timeZoneName?: "short" | "long" | "shortOffset" | "longOffset" | "shortGeneric" | "longGeneric" | undefined;
961
- formatMatcher?: "best fit" | "basic" | undefined;
962
- hour12?: boolean | undefined;
963
- timeZone?: string | undefined;
964
- calendar?: string | undefined;
965
- dayPeriod?: "short" | "long" | "narrow" | undefined;
966
- numberingSystem?: string | undefined;
967
- dateStyle?: "short" | "long" | "full" | "medium" | undefined;
968
- timeStyle?: "short" | "long" | "full" | "medium" | undefined;
969
- hourCycle?: "h11" | "h12" | "h23" | "h24" | undefined;
970
- };
971
- };
972
- }[] | undefined;
973
- allowDownload?: boolean | undefined;
974
- customVisualCode?: string | undefined;
975
- textVisualOptions?: {
976
- isDynamicText?: boolean | undefined;
977
- } | undefined;
978
- mapVisualOptions?: {
979
- topoJsonUrl?: string | undefined;
980
- objectKey?: string | undefined;
981
- outlineKey?: string | undefined;
982
- customTopoJsonUrl?: string | undefined;
983
- projection?: string | undefined;
984
- projectionScale?: number | undefined;
985
- projectionOffset?: [number, number] | undefined;
986
- colorScale?: string | undefined;
987
- } | undefined;
988
- } | undefined;
989
- customCardPreferences?: {
990
- showCardHeader?: boolean | undefined;
991
- url: string;
992
- componentName: string;
993
- icon?: string | undefined;
994
- type?: "iframe" | "component" | undefined;
995
- visualType?: "single" | "multiple" | undefined;
996
- settings?: any;
997
- dataInputCardIds?: {
998
- [x: number]: {
999
- cardId: string;
1000
- };
1001
- } | undefined;
1002
- inputData?: {
1003
- cardId: string;
1004
- data: {
1005
- [x: string]: any;
1006
- }[];
1007
- }[] | undefined;
1008
- } | undefined;
1009
- lastSelectedDatabase?: string | undefined;
1010
- lastSelectedDatamodelId?: string | undefined;
1011
- lastSelectedSchema?: string | undefined;
1012
- lastSelectedTable?: string | undefined;
1013
- refreshInterval?: string | undefined;
1014
- }[] | undefined;
1015
- dashboard: {
1016
- id: string;
1017
- title?: string | undefined;
1018
- description?: string | undefined;
1019
- sheets?: {
1020
- id: string;
1021
- title?: string | undefined;
1022
- description?: string | undefined;
1023
- layout?: {
1024
- i: string;
1025
- x: number;
1026
- y: number;
1027
- w: number;
1028
- h: number;
1029
- minW?: number | undefined;
1030
- maxW?: number | undefined;
1031
- minH?: number | undefined;
1032
- maxH?: number | undefined;
1033
- moved?: boolean | undefined;
1034
- static?: boolean | undefined;
1035
- isDraggable?: boolean | undefined;
1036
- isResizable?: boolean | undefined;
1037
- resizeHandles?: ("w" | "s" | "e" | "n" | "sw" | "nw" | "se" | "ne")[] | undefined;
1038
- isBounded?: boolean | undefined;
1039
- }[] | undefined;
1040
- layouts?: {
1041
- [x: string]: {
1042
- i: string;
1043
- x: number;
1044
- y: number;
1045
- w: number;
1046
- h: number;
1047
- minW?: number | undefined;
1048
- maxW?: number | undefined;
1049
- minH?: number | undefined;
1050
- maxH?: number | undefined;
1051
- moved?: boolean | undefined;
1052
- static?: boolean | undefined;
1053
- isDraggable?: boolean | undefined;
1054
- isResizable?: boolean | undefined;
1055
- resizeHandles?: ("w" | "s" | "e" | "n" | "sw" | "nw" | "se" | "ne")[] | undefined;
1056
- isBounded?: boolean | undefined;
1057
- }[];
1058
- } | undefined;
1059
- cards?: {
1060
- id: string;
1061
- title: string;
1062
- tabTitle?: string | undefined;
1063
- displayTab?: boolean | undefined;
1064
- description?: string | undefined;
1065
- info?: string | undefined;
1066
- connectionId?: string | undefined;
1067
- datamodelId?: string | undefined;
1068
- type: TChartType;
1069
- sql?: string | undefined;
1070
- python?: string | undefined;
1071
- data?: any[] | undefined;
1072
- cfg?: any;
1073
- customCfg?: any;
1074
- preferences?: {
1075
- onClickFilter?: {
1076
- expression?: string | undefined;
1077
- columnIndex: number;
1078
- }[] | undefined;
1079
- filterOnClick?: boolean | undefined;
1080
- filterOnClickField?: string | undefined;
1081
- filterOnClickColumnIndex?: number | undefined;
1082
- sortChart?: "none" | "asc" | "desc" | undefined;
1083
- formatNumber?: {
1084
- decimalPlaces?: number | undefined;
1085
- currency?: string | undefined;
1086
- locale?: string | undefined;
1087
- suffix?: string | undefined;
1088
- enabled?: string | boolean | undefined;
1089
- colorRanges?: {
1090
- start: number;
1091
- end: number;
1092
- color: string;
1093
- }[] | undefined;
1094
- } | undefined;
1095
- numberAxisFormat?: {
1096
- decimalPlaces?: number | undefined;
1097
- suffix?: string | undefined;
1098
- currency?: string | undefined;
1099
- locale?: string | undefined;
1100
- } | undefined;
1101
- datasetOptions?: {
1102
- idx: number;
1103
- type?: "bar" | "line" | undefined;
1104
- fill?: string | number | undefined;
1105
- datalabels?: {
1106
- display?: boolean | undefined;
1107
- align?: string | undefined;
1108
- anchor?: string | undefined;
1109
- clamp?: boolean | undefined;
1110
- color?: string | undefined;
1111
- } | undefined;
1112
- }[] | undefined;
1113
- chartOptions?: {
1114
- type?: TChartType | undefined;
1115
- scales?: {
1116
- y?: {
1117
- type: "linear" | "logarithmic";
1118
- min: number;
1119
- max: number;
1120
- ticks: {
1121
- stepSize: number;
1122
- };
1123
- } | undefined;
1124
- x?: {
1125
- type: "linear" | "logarithmic";
1126
- min: number;
1127
- max: number;
1128
- ticks: {
1129
- stepSize: number;
1130
- };
1131
- } | undefined;
1132
- } | undefined;
1133
- indexAxis?: "x" | "y" | undefined;
1134
- } | undefined;
1135
- columnSettings?: {
1136
- columnIdx: number;
1137
- textAlign?: "left" | "center" | "right" | undefined;
1138
- width?: number | undefined;
1139
- type: DisplayDataType;
1140
- options: {
1141
- maxLength?: number | undefined;
1142
- } | {} | {
1143
- locale: string;
1144
- currency?: string | undefined;
1145
- options: {
1146
- localeMatcher?: string | undefined;
1147
- style?: string | undefined;
1148
- currency?: string | undefined;
1149
- currencySign?: string | undefined;
1150
- useGrouping?: boolean | undefined;
1151
- minimumIntegerDigits?: number | undefined;
1152
- minimumFractionDigits?: number | undefined;
1153
- maximumFractionDigits?: number | undefined;
1154
- minimumSignificantDigits?: number | undefined;
1155
- maximumSignificantDigits?: number | undefined;
1156
- compactDisplay?: "short" | "long" | undefined;
1157
- notation?: "standard" | "scientific" | "engineering" | "compact" | undefined;
1158
- signDisplay?: "auto" | "never" | "always" | "exceptZero" | undefined;
1159
- unit?: string | undefined;
1160
- unitDisplay?: "short" | "long" | "narrow" | undefined;
1161
- currencyDisplay?: string | undefined;
1162
- };
1163
- colorRanges?: {
1164
- start: number;
1165
- end: number;
1166
- color: string;
1167
- }[] | undefined;
1168
- } | {
1169
- locale: string;
1170
- format: string;
1171
- options: {
1172
- localeMatcher?: "best fit" | "lookup" | undefined;
1173
- weekday?: "short" | "long" | "narrow" | undefined;
1174
- era?: "short" | "long" | "narrow" | undefined;
1175
- year?: "numeric" | "2-digit" | undefined;
1176
- month?: "numeric" | "short" | "long" | "narrow" | "2-digit" | undefined;
1177
- day?: "numeric" | "2-digit" | undefined;
1178
- hour?: "numeric" | "2-digit" | undefined;
1179
- minute?: "numeric" | "2-digit" | undefined;
1180
- second?: "numeric" | "2-digit" | undefined;
1181
- timeZoneName?: "short" | "long" | "shortOffset" | "longOffset" | "shortGeneric" | "longGeneric" | undefined;
1182
- formatMatcher?: "best fit" | "basic" | undefined;
1183
- hour12?: boolean | undefined;
1184
- timeZone?: string | undefined;
1185
- calendar?: string | undefined;
1186
- dayPeriod?: "short" | "long" | "narrow" | undefined;
1187
- numberingSystem?: string | undefined;
1188
- dateStyle?: "short" | "long" | "full" | "medium" | undefined;
1189
- timeStyle?: "short" | "long" | "full" | "medium" | undefined;
1190
- hourCycle?: "h11" | "h12" | "h23" | "h24" | undefined;
1191
- };
1192
- };
1193
- }[] | undefined;
1194
- allowDownload?: boolean | undefined;
1195
- customVisualCode?: string | undefined;
1196
- textVisualOptions?: {
1197
- isDynamicText?: boolean | undefined;
1198
- } | undefined;
1199
- mapVisualOptions?: {
1200
- topoJsonUrl?: string | undefined;
1201
- objectKey?: string | undefined;
1202
- outlineKey?: string | undefined;
1203
- customTopoJsonUrl?: string | undefined;
1204
- projection?: string | undefined;
1205
- projectionScale?: number | undefined;
1206
- projectionOffset?: [number, number] | undefined;
1207
- colorScale?: string | undefined;
1208
- } | undefined;
1209
- } | undefined;
1210
- customCardPreferences?: {
1211
- showCardHeader?: boolean | undefined;
1212
- url: string;
1213
- componentName: string;
1214
- icon?: string | undefined;
1215
- type?: "iframe" | "component" | undefined;
1216
- visualType?: "single" | "multiple" | undefined;
1217
- settings?: any;
1218
- dataInputCardIds?: {
1219
- [x: number]: {
1220
- cardId: string;
1221
- };
1222
- } | undefined;
1223
- inputData?: {
1224
- cardId: string;
1225
- data: {
1226
- [x: string]: any;
1227
- }[];
1228
- }[] | undefined;
1229
- } | undefined;
1230
- lastSelectedDatabase?: string | undefined;
1231
- lastSelectedDatamodelId?: string | undefined;
1232
- lastSelectedSchema?: string | undefined;
1233
- lastSelectedTable?: string | undefined;
1234
- refreshInterval?: string | undefined;
1235
- }[] | undefined;
1236
- frames?: {
1237
- id: string;
1238
- filterId?: string | undefined;
1239
- cards: {
1240
- id: string;
1241
- title: string;
1242
- tabTitle?: string | undefined;
1243
- displayTab?: boolean | undefined;
1244
- description?: string | undefined;
1245
- info?: string | undefined;
1246
- connectionId?: string | undefined;
1247
- datamodelId?: string | undefined;
1248
- type: TChartType;
1249
- sql?: string | undefined;
1250
- python?: string | undefined;
1251
- data?: any[] | undefined;
1252
- cfg?: any;
1253
- customCfg?: any;
1254
- preferences?: {
1255
- onClickFilter?: {
1256
- expression?: string | undefined;
1257
- columnIndex: number;
1258
- }[] | undefined;
1259
- filterOnClick?: boolean | undefined;
1260
- filterOnClickField?: string | undefined;
1261
- filterOnClickColumnIndex?: number | undefined;
1262
- sortChart?: "none" | "asc" | "desc" | undefined;
1263
- formatNumber?: {
1264
- decimalPlaces?: number | undefined;
1265
- currency?: string | undefined;
1266
- locale?: string | undefined;
1267
- suffix?: string | undefined;
1268
- enabled?: string | boolean | undefined;
1269
- colorRanges?: {
1270
- start: number;
1271
- end: number;
1272
- color: string;
1273
- }[] | undefined;
1274
- } | undefined;
1275
- numberAxisFormat?: {
1276
- decimalPlaces?: number | undefined;
1277
- suffix?: string | undefined;
1278
- currency?: string | undefined;
1279
- locale?: string | undefined;
1280
- } | undefined;
1281
- datasetOptions?: {
1282
- idx: number;
1283
- type?: "bar" | "line" | undefined;
1284
- fill?: string | number | undefined;
1285
- datalabels?: {
1286
- display?: boolean | undefined;
1287
- align?: string | undefined;
1288
- anchor?: string | undefined;
1289
- clamp?: boolean | undefined;
1290
- color?: string | undefined;
1291
- } | undefined;
1292
- }[] | undefined;
1293
- chartOptions?: {
1294
- type?: TChartType | undefined;
1295
- scales?: {
1296
- y?: {
1297
- type: "linear" | "logarithmic";
1298
- min: number;
1299
- max: number;
1300
- ticks: {
1301
- stepSize: number;
1302
- };
1303
- } | undefined;
1304
- x?: {
1305
- type: "linear" | "logarithmic";
1306
- min: number;
1307
- max: number;
1308
- ticks: {
1309
- stepSize: number;
1310
- };
1311
- } | undefined;
1312
- } | undefined;
1313
- indexAxis?: "x" | "y" | undefined;
1314
- } | undefined;
1315
- columnSettings?: {
1316
- columnIdx: number;
1317
- textAlign?: "left" | "center" | "right" | undefined;
1318
- width?: number | undefined;
1319
- type: DisplayDataType;
1320
- options: {
1321
- maxLength?: number | undefined;
1322
- } | {} | {
1323
- locale: string;
1324
- currency?: string | undefined;
1325
- options: {
1326
- localeMatcher?: string | undefined;
1327
- style?: string | undefined;
1328
- currency?: string | undefined;
1329
- currencySign?: string | undefined;
1330
- useGrouping?: boolean | undefined;
1331
- minimumIntegerDigits?: number | undefined;
1332
- minimumFractionDigits?: number | undefined;
1333
- maximumFractionDigits?: number | undefined;
1334
- minimumSignificantDigits?: number | undefined;
1335
- maximumSignificantDigits?: number | undefined;
1336
- compactDisplay?: "short" | "long" | undefined;
1337
- notation?: "standard" | "scientific" | "engineering" | "compact" | undefined;
1338
- signDisplay?: "auto" | "never" | "always" | "exceptZero" | undefined;
1339
- unit?: string | undefined;
1340
- unitDisplay?: "short" | "long" | "narrow" | undefined;
1341
- currencyDisplay?: string | undefined;
1342
- };
1343
- colorRanges?: {
1344
- start: number;
1345
- end: number;
1346
- color: string;
1347
- }[] | undefined;
1348
- } | {
1349
- locale: string;
1350
- format: string;
1351
- options: {
1352
- localeMatcher?: "best fit" | "lookup" | undefined;
1353
- weekday?: "short" | "long" | "narrow" | undefined;
1354
- era?: "short" | "long" | "narrow" | undefined;
1355
- year?: "numeric" | "2-digit" | undefined;
1356
- month?: "numeric" | "short" | "long" | "narrow" | "2-digit" | undefined;
1357
- day?: "numeric" | "2-digit" | undefined;
1358
- hour?: "numeric" | "2-digit" | undefined;
1359
- minute?: "numeric" | "2-digit" | undefined;
1360
- second?: "numeric" | "2-digit" | undefined;
1361
- timeZoneName?: "short" | "long" | "shortOffset" | "longOffset" | "shortGeneric" | "longGeneric" | undefined;
1362
- formatMatcher?: "best fit" | "basic" | undefined;
1363
- hour12?: boolean | undefined;
1364
- timeZone?: string | undefined;
1365
- calendar?: string | undefined;
1366
- dayPeriod?: "short" | "long" | "narrow" | undefined;
1367
- numberingSystem?: string | undefined;
1368
- dateStyle?: "short" | "long" | "full" | "medium" | undefined;
1369
- timeStyle?: "short" | "long" | "full" | "medium" | undefined;
1370
- hourCycle?: "h11" | "h12" | "h23" | "h24" | undefined;
1371
- };
1372
- };
1373
- }[] | undefined;
1374
- allowDownload?: boolean | undefined;
1375
- customVisualCode?: string | undefined;
1376
- textVisualOptions?: {
1377
- isDynamicText?: boolean | undefined;
1378
- } | undefined;
1379
- mapVisualOptions?: {
1380
- topoJsonUrl?: string | undefined;
1381
- objectKey?: string | undefined;
1382
- outlineKey?: string | undefined;
1383
- customTopoJsonUrl?: string | undefined;
1384
- projection?: string | undefined;
1385
- projectionScale?: number | undefined;
1386
- projectionOffset?: [number, number] | undefined;
1387
- colorScale?: string | undefined;
1388
- } | undefined;
1389
- } | undefined;
1390
- customCardPreferences?: {
1391
- showCardHeader?: boolean | undefined;
1392
- url: string;
1393
- componentName: string;
1394
- icon?: string | undefined;
1395
- type?: "iframe" | "component" | undefined;
1396
- visualType?: "single" | "multiple" | undefined;
1397
- settings?: any;
1398
- dataInputCardIds?: {
1399
- [x: number]: {
1400
- cardId: string;
1401
- };
1402
- } | undefined;
1403
- inputData?: {
1404
- cardId: string;
1405
- data: {
1406
- [x: string]: any;
1407
- }[];
1408
- }[] | undefined;
1409
- } | undefined;
1410
- lastSelectedDatabase?: string | undefined;
1411
- lastSelectedDatamodelId?: string | undefined;
1412
- lastSelectedSchema?: string | undefined;
1413
- lastSelectedTable?: string | undefined;
1414
- refreshInterval?: string | undefined;
1415
- }[];
1416
- activeCardId: string;
1417
- }[] | undefined;
1418
- }[] | undefined;
1419
- style?: {
1420
- default: {
1421
- canvasTheme?: string | undefined;
1422
- dashboardPanel?: string | undefined;
1423
- dashboardTabsContainer?: string | undefined;
1424
- dashboardCardContainer?: string | undefined;
1425
- dashboardCard?: string | undefined;
1426
- gridLayout?: {
1427
- className?: string | undefined;
1428
- margin?: [number, number] | undefined;
1429
- } | undefined;
1430
- chart?: {
1431
- font?: {
1432
- family?: string | undefined;
1433
- size?: number | undefined;
1434
- style?: "normal" | "italic" | "oblique" | "initial" | "inherit" | undefined;
1435
- weight?: number | "bold" | "normal" | "lighter" | "bolder" | null | undefined;
1436
- lineHeight?: string | number | undefined;
1437
- } | undefined;
1438
- dataset?: any;
1439
- options?: any;
1440
- } | undefined;
1441
- table?: {
1442
- tableHeaderColor?: string | undefined;
1443
- } | undefined;
1444
- };
1445
- dark?: {
1446
- canvasTheme?: string | undefined;
1447
- dashboardPanel?: string | undefined;
1448
- dashboardTabsContainer?: string | undefined;
1449
- dashboardCardContainer?: string | undefined;
1450
- dashboardCard?: string | undefined;
1451
- gridLayout?: {
1452
- className?: string | undefined;
1453
- margin?: [number, number] | undefined;
1454
- } | undefined;
1455
- chart?: {
1456
- font?: {
1457
- family?: string | undefined;
1458
- size?: number | undefined;
1459
- style?: "normal" | "italic" | "oblique" | "initial" | "inherit" | undefined;
1460
- weight?: number | "bold" | "normal" | "lighter" | "bolder" | null | undefined;
1461
- lineHeight?: string | number | undefined;
1462
- } | undefined;
1463
- dataset?: any;
1464
- options?: any;
1465
- } | undefined;
1466
- table?: {
1467
- tableHeaderColor?: string | undefined;
1468
- } | undefined;
1469
- } | undefined;
1470
- } | undefined;
1471
- filters?: {
1472
- type?: "single" | "multiple" | undefined;
1473
- sheetId?: string | undefined;
1474
- location?: FilterLocation;
1475
- id: string;
1476
- connectionId: string;
1477
- title: string;
1478
- column: string;
1479
- dataType: string;
1480
- table: string;
1481
- database: string;
1482
- sql: string;
1483
- operation: Operation;
1484
- }[] | undefined;
1485
- customCards?: ({
1486
- cardId: string;
1487
- replaceDefault?: boolean | undefined;
1488
- content: FC<{
1489
- card: TCard;
1490
- }>;
1491
- footer?: FC<{
1492
- card: TCard;
1493
- }> | undefined;
1494
- } | {
1495
- cardId: string;
1496
- replaceDefault?: boolean | undefined;
1497
- content?: FC<{
1498
- card: TCard;
1499
- }> | undefined;
1500
- footer: FC<{
1501
- card: TCard;
1502
- }>;
1503
- })[] | undefined;
1504
- baseQueries?: {
1505
- id: string;
1506
- name: string;
1507
- connectionId: string;
1508
- sql: string;
1509
- context?: string | undefined;
1510
- description?: string | undefined;
1511
- }[] | undefined;
1512
- aiScopeTables?: {
1513
- connectinonId: string;
1514
- connectionType: string;
1515
- databaseName?: string | undefined;
1516
- schemaName?: string | undefined;
1517
- tableName: string;
1518
- }[] | undefined;
1519
- globalStyle?: {
1520
- default: {
1521
- canvasTheme?: string | undefined;
1522
- dashboardPanel?: string | undefined;
1523
- dashboardTabsContainer?: string | undefined;
1524
- dashboardCardContainer?: string | undefined;
1525
- dashboardCard?: string | undefined;
1526
- gridLayout?: {
1527
- className?: string | undefined;
1528
- margin?: [number, number] | undefined;
1529
- } | undefined;
1530
- chart?: {
1531
- font?: {
1532
- family?: string | undefined;
1533
- size?: number | undefined;
1534
- style?: "normal" | "italic" | "oblique" | "initial" | "inherit" | undefined;
1535
- weight?: number | "bold" | "normal" | "lighter" | "bolder" | null | undefined;
1536
- lineHeight?: string | number | undefined;
1537
- } | undefined;
1538
- dataset?: any;
1539
- options?: any;
1540
- } | undefined;
1541
- table?: {
1542
- tableHeaderColor?: string | undefined;
1543
- } | undefined;
1544
- };
1545
- dark?: {
1546
- canvasTheme?: string | undefined;
1547
- dashboardPanel?: string | undefined;
1548
- dashboardTabsContainer?: string | undefined;
1549
- dashboardCardContainer?: string | undefined;
1550
- dashboardCard?: string | undefined;
1551
- gridLayout?: {
1552
- className?: string | undefined;
1553
- margin?: [number, number] | undefined;
1554
- } | undefined;
1555
- chart?: {
1556
- font?: {
1557
- family?: string | undefined;
1558
- size?: number | undefined;
1559
- style?: "normal" | "italic" | "oblique" | "initial" | "inherit" | undefined;
1560
- weight?: number | "bold" | "normal" | "lighter" | "bolder" | null | undefined;
1561
- lineHeight?: string | number | undefined;
1562
- } | undefined;
1563
- dataset?: any;
1564
- options?: any;
1565
- } | undefined;
1566
- table?: {
1567
- tableHeaderColor?: string | undefined;
1568
- } | undefined;
1569
- } | undefined;
1570
- } | undefined;
1571
- globalCacheConfig?: {
1572
- ttl: string;
1573
- status: "on" | "on-refresh" | "off";
1574
- } | undefined;
1575
- };
1576
- selectedSheetId?: string | null | undefined;
1577
- selectedFrameId?: string | null | undefined;
1578
- selectedCardId?: string | null | undefined;
1579
- selectedCard?: {
1580
- id: string;
1581
- title: string;
1582
- tabTitle?: string | undefined;
1583
- displayTab?: boolean | undefined;
1584
- description?: string | undefined;
1585
- info?: string | undefined;
1586
- connectionId?: string | undefined;
1587
- datamodelId?: string | undefined;
1588
- type: TChartType;
1589
- sql?: string | undefined;
1590
- python?: string | undefined;
1591
- data?: any[] | undefined;
1592
- cfg?: any;
1593
- customCfg?: any;
1594
- preferences?: {
1595
- onClickFilter?: {
1596
- expression?: string | undefined;
1597
- columnIndex: number;
1598
- }[] | undefined;
1599
- filterOnClick?: boolean | undefined;
1600
- filterOnClickField?: string | undefined;
1601
- filterOnClickColumnIndex?: number | undefined;
1602
- sortChart?: "none" | "asc" | "desc" | undefined;
1603
- formatNumber?: {
1604
- decimalPlaces?: number | undefined;
1605
- currency?: string | undefined;
1606
- locale?: string | undefined;
1607
- suffix?: string | undefined;
1608
- enabled?: string | boolean | undefined;
1609
- colorRanges?: {
1610
- start: number;
1611
- end: number;
1612
- color: string;
1613
- }[] | undefined;
1614
- } | undefined;
1615
- numberAxisFormat?: {
1616
- decimalPlaces?: number | undefined;
1617
- suffix?: string | undefined;
1618
- currency?: string | undefined;
1619
- locale?: string | undefined;
1620
- } | undefined;
1621
- datasetOptions?: {
1622
- idx: number;
1623
- type?: "bar" | "line" | undefined;
1624
- fill?: string | number | undefined;
1625
- datalabels?: {
1626
- display?: boolean | undefined;
1627
- align?: string | undefined;
1628
- anchor?: string | undefined;
1629
- clamp?: boolean | undefined;
1630
- color?: string | undefined;
1631
- } | undefined;
1632
- }[] | undefined;
1633
- chartOptions?: {
1634
- type?: TChartType | undefined;
1635
- scales?: {
1636
- y?: {
1637
- type: "linear" | "logarithmic";
1638
- min: number;
1639
- max: number;
1640
- ticks: {
1641
- stepSize: number;
1642
- };
1643
- } | undefined;
1644
- x?: {
1645
- type: "linear" | "logarithmic";
1646
- min: number;
1647
- max: number;
1648
- ticks: {
1649
- stepSize: number;
1650
- };
1651
- } | undefined;
1652
- } | undefined;
1653
- indexAxis?: "x" | "y" | undefined;
1654
- } | undefined;
1655
- columnSettings?: {
1656
- columnIdx: number;
1657
- textAlign?: "left" | "center" | "right" | undefined;
1658
- width?: number | undefined;
1659
- type: DisplayDataType;
1660
- options: {
1661
- maxLength?: number | undefined;
1662
- } | {} | {
1663
- locale: string;
1664
- currency?: string | undefined;
1665
- options: {
1666
- localeMatcher?: string | undefined;
1667
- style?: string | undefined;
1668
- currency?: string | undefined;
1669
- currencySign?: string | undefined;
1670
- useGrouping?: boolean | undefined;
1671
- minimumIntegerDigits?: number | undefined;
1672
- minimumFractionDigits?: number | undefined;
1673
- maximumFractionDigits?: number | undefined;
1674
- minimumSignificantDigits?: number | undefined;
1675
- maximumSignificantDigits?: number | undefined;
1676
- compactDisplay?: "short" | "long" | undefined;
1677
- notation?: "standard" | "scientific" | "engineering" | "compact" | undefined;
1678
- signDisplay?: "auto" | "never" | "always" | "exceptZero" | undefined;
1679
- unit?: string | undefined;
1680
- unitDisplay?: "short" | "long" | "narrow" | undefined;
1681
- currencyDisplay?: string | undefined;
1682
- };
1683
- colorRanges?: {
1684
- start: number;
1685
- end: number;
1686
- color: string;
1687
- }[] | undefined;
1688
- } | {
1689
- locale: string;
1690
- format: string;
1691
- options: {
1692
- localeMatcher?: "best fit" | "lookup" | undefined;
1693
- weekday?: "short" | "long" | "narrow" | undefined;
1694
- era?: "short" | "long" | "narrow" | undefined;
1695
- year?: "numeric" | "2-digit" | undefined;
1696
- month?: "numeric" | "short" | "long" | "narrow" | "2-digit" | undefined;
1697
- day?: "numeric" | "2-digit" | undefined;
1698
- hour?: "numeric" | "2-digit" | undefined;
1699
- minute?: "numeric" | "2-digit" | undefined;
1700
- second?: "numeric" | "2-digit" | undefined;
1701
- timeZoneName?: "short" | "long" | "shortOffset" | "longOffset" | "shortGeneric" | "longGeneric" | undefined;
1702
- formatMatcher?: "best fit" | "basic" | undefined;
1703
- hour12?: boolean | undefined;
1704
- timeZone?: string | undefined;
1705
- calendar?: string | undefined;
1706
- dayPeriod?: "short" | "long" | "narrow" | undefined;
1707
- numberingSystem?: string | undefined;
1708
- dateStyle?: "short" | "long" | "full" | "medium" | undefined;
1709
- timeStyle?: "short" | "long" | "full" | "medium" | undefined;
1710
- hourCycle?: "h11" | "h12" | "h23" | "h24" | undefined;
1711
- };
1712
- };
1713
- }[] | undefined;
1714
- allowDownload?: boolean | undefined;
1715
- customVisualCode?: string | undefined;
1716
- textVisualOptions?: {
1717
- isDynamicText?: boolean | undefined;
1718
- } | undefined;
1719
- mapVisualOptions?: {
1720
- topoJsonUrl?: string | undefined;
1721
- objectKey?: string | undefined;
1722
- outlineKey?: string | undefined;
1723
- customTopoJsonUrl?: string | undefined;
1724
- projection?: string | undefined;
1725
- projectionScale?: number | undefined;
1726
- projectionOffset?: [number, number] | undefined;
1727
- colorScale?: string | undefined;
1728
- } | undefined;
1729
- } | undefined;
1730
- customCardPreferences?: {
1731
- showCardHeader?: boolean | undefined;
1732
- url: string;
1733
- componentName: string;
1734
- icon?: string | undefined;
1735
- type?: "iframe" | "component" | undefined;
1736
- visualType?: "single" | "multiple" | undefined;
1737
- settings?: any;
1738
- dataInputCardIds?: {
1739
- [x: number]: {
1740
- cardId: string;
1741
- };
1742
- } | undefined;
1743
- inputData?: {
1744
- cardId: string;
1745
- data: {
1746
- [x: string]: any;
1747
- }[];
1748
- }[] | undefined;
1749
- } | undefined;
1750
- lastSelectedDatabase?: string | undefined;
1751
- lastSelectedDatamodelId?: string | undefined;
1752
- lastSelectedSchema?: string | undefined;
1753
- lastSelectedTable?: string | undefined;
1754
- refreshInterval?: string | undefined;
1755
- } | null | undefined;
1756
- isDashboardEditing: boolean;
1757
- isVisualEditing: boolean;
1758
- showContext: boolean;
1759
- showDashboardJSON: boolean;
1760
- showFilters: boolean;
1761
- filterValues?: ({
1762
- filterId: string;
1763
- expression?: string | undefined;
1764
- name: string;
1765
- valueType: "string" | "number" | "boolean" | "date";
1766
- connectionType?: "database" | "api" | undefined;
1767
- operation: "like" | "not like";
1768
- values: [string];
1769
- } | {
1770
- filterId: string;
1771
- expression?: string | undefined;
1772
- name: string;
1773
- valueType: "string" | "number" | "boolean" | "date";
1774
- connectionType?: "database" | "api" | undefined;
1775
- operation: "=" | "!=" | "is null" | "is not null";
1776
- values: [string | number];
1777
- } | {
1778
- filterId: string;
1779
- expression?: string | undefined;
1780
- name: string;
1781
- valueType: "string" | "number" | "boolean" | "date";
1782
- connectionType?: "database" | "api" | undefined;
1783
- operation: ">" | "<" | ">=" | "<=";
1784
- values: [number];
1785
- } | {
1786
- filterId: string;
1787
- expression?: string | undefined;
1788
- name: string;
1789
- valueType: "string" | "number" | "boolean" | "date";
1790
- connectionType?: "database" | "api" | undefined;
1791
- operation: "between" | "not between";
1792
- values: [number, number];
1793
- } | {
1794
- filterId: string;
1795
- expression?: string | undefined;
1796
- name: string;
1797
- valueType: "string" | "number" | "boolean" | "date";
1798
- connectionType?: "database" | "api" | undefined;
1799
- operation: "between" | "not between";
1800
- values: [Date, Date];
1801
- } | {
1802
- filterId: string;
1803
- expression?: string | undefined;
1804
- name: string;
1805
- valueType: "string" | "number" | "boolean" | "date";
1806
- connectionType?: "database" | "api" | undefined;
1807
- operation: "in" | "not in";
1808
- values: (string | number)[];
1809
- })[] | undefined;
1810
- onEvent?: ((event: TEvent) => void) | undefined;
1811
- onSaveFunction?: ((dashboard: TDashboard) => void) | undefined;
1812
- onAddFrame?: ((card: TFrame, sheetId: string) => void) | undefined;
1813
- onAcceptChanges?: ((frame: TFrame, dashboard: TDashboard) => void) | undefined;
1814
- onUpdateCard?: ((card: TCard, sheetId: string) => void) | undefined;
1815
- onRemoveCard?: ((card: TCard, sheetId: string) => void) | undefined;
1816
- actions: {
1817
- setInitStore: () => void;
1818
- setGlobalStyle: (style: TStyle) => void;
1819
- setLenses: (lenses: TLens[]) => void;
1820
- setSelectedLensId: (lensId: string) => void;
1821
- setAIScopeTables: (aiScopeTables: AIScopeTable[]) => void;
1822
- setIsSessionExpired: (isSessionExpired: boolean) => void;
1823
- setCurrentBreakpoint: (breakpoint: Breakpoint) => void;
1824
- setFilteringCards: (cards: TCard[]) => void;
1825
- addFilteringCard: (card: TCard) => void;
1826
- removeFilteringCard: (card: TCard) => void;
1827
- setGlobalCacheConfig: (cacheConfig: CacheConfig) => void;
1828
- setCustomCards: (customCards: CustomCard[]) => void;
1829
- setAuthToken: (authToken: AuthToken) => void;
1830
- setThemeStyle: (themeStyle: StyleProps) => void;
1831
- setDashboard: (dashboard: TDashboard) => void;
1832
- setDashboardWithFilterValues: (dashboard: TDashboard, filterValues: TFilterValue[]) => void;
1833
- setDashboardTheme: (theme: 'light' | 'dark' | 'system') => void;
1834
- setSheets: (sheets: TSheet[]) => void;
1835
- addSheet: (sheet: TSheet) => void;
1836
- deleteSheet: (sheetId: string) => void;
1837
- setSheetTitle: (sheetId: string, title: string) => void;
1838
- setSelectedSheetId: (sheetId: string | null) => void;
1839
- setSheetLayout: (sheetId: string, layout: ReactGridLayout_2.Layout[]) => void;
1840
- setSheetLayouts: (sheetId: string, layouts: ReactGridLayout_2.Layouts) => void;
1841
- setSelectedCardId: (sheetId: string, cardId: string | null) => void;
1842
- setSelectedFrameId: (frameId: string) => void;
1843
- setCardTitle: (sheetId: string, cardId: string, title: string) => void;
1844
- setCardInfo: (cardId: string, info: string) => void;
1845
- setCardSql: (sheetId: string, cardId: string, sql: string) => void;
1846
- setCardPython: (cardId: string, pythonCode: string) => void;
1847
- setCardDescription: (sheetId: string, cardId: string, description: string) => void;
1848
- addFrame: (sheetId: string, frame: TFrame, position?: 'start' | 'end') => void;
1849
- updateFrame: (sheetId: string, frame: TFrame) => void;
1850
- updateCard: (sheetId: string, card: TCard) => void;
1851
- updateFrameCard?: ((sheetId: string, frameId: string, card: TCard) => void) | undefined;
1852
- removeFrame: (sheetId: string, frameId: string) => void;
1853
- removeCard: (sheetId: string, card: TCard) => void;
1854
- setIsDashboardEditing: (editing: boolean) => void;
1855
- setShowContext: (show: boolean) => void;
1856
- setShowDashboardJSON: (show: boolean) => void;
1857
- setIsVisualEditing: (editing: boolean) => void;
1858
- setShowFilters: (show: boolean) => void;
1859
- addFilter: (filter: TFilter) => void;
1860
- removeFilter: (filterId: string) => void;
1861
- updateFilter: (filter: TFilter) => void;
1862
- setFilterValues: (filterValues: TFilterValue[] | undefined) => void;
1863
- addOrUpdateFilterValue: (filterValue: TFilterValue) => void;
1864
- addOrUpdateFilterValues: (filterValues: TFilterValue[]) => void;
1865
- removeFilterValue: (filterId: string) => void;
1866
- replaceFilterValue: (filterValue: TFilterValue) => void;
1867
- setStyle: (style: TStyle) => void;
1868
- getStyle: () => TStyle | undefined;
1869
- setOnSaveFunction: (onSaveFunction: (dashboard: TDashboard) => void) => void;
1870
- setOnAddCard: (onAddCard: (card: TCard, sheetId: string) => void) => void;
1871
- setOnAcceptChanges: (onAcceptChanges: (frame: TFrame, dashboard: TDashboard) => void) => void;
1872
- setOnUpdateCard: (onUpdateCard: (card: TCard, sheetId: string) => void) => void;
1873
- setOnRemoveCard: (onRemoveCard: (card: TCard, sheetId: string) => void) => void;
1874
- setOnEvent: (onEvent: (event: TEvent) => void) => void;
1875
- getDashboard: () => TDashboard | undefined;
1876
- getSelectedSheet: () => TSheet | undefined;
1877
- getCard: (cardId: string) => TCard | undefined;
1878
- getSelectedFrame: () => TFrame | undefined;
1879
- getCardFrame: (cardId: string) => TFrame | undefined;
1880
- getCardSheet: (cardId: string) => TSheet | undefined;
1881
- getSelectedSheetLayout: () => ReactGridLayout_2.Layout[] | undefined;
1882
- getSelectedSheetLayouts: () => ReactGridLayout_2.Layouts | undefined;
1883
- handleDataPointClickAction: (card: TCard, dataPoint: any) => void;
1884
- addBaseQuery: (baseQuery: TBaseQuery) => void;
1885
- removeBaseQuery: (baseQueryId: string) => void;
1886
- setBaseQueries: (baseQueries: TBaseQuery[]) => void;
1887
- };
1888
- }) => void), shouldReplace?: boolean | undefined): void;
747
+ setState(nextStateOrUpdater: DashboardStore | Partial<DashboardStore> | ((state: WritableDraft<DashboardStore>) => void), shouldReplace?: boolean | undefined): void;
1889
748
  }>;
1890
749
 
1891
750
  export declare const useEditorActions: () => Actions_2;
@@ -1920,492 +779,12 @@ export declare function useEditorAside(token?: AuthToken, _connectionQueryKey?:
1920
779
  };
1921
780
 
1922
781
  export declare const useEditorStore: UseBoundStore<Omit<StoreApi<EditorStore>, "setState"> & {
1923
- setState(nextStateOrUpdater: EditorStore | Partial<EditorStore> | ((state: {
1924
- isShowingVisual: boolean;
1925
- runSql: boolean;
1926
- isSqlRunning: boolean;
1927
- actions: {
1928
- setSortChart: (sortChart: 'asc' | 'desc' | 'none') => void;
1929
- setChartOrientation: (indexAxis: 'x' | 'y') => void;
1930
- setCustomVisualCode: (code: string) => void;
1931
- setCardRefreshInterval: (refreshInterval: string) => void;
1932
- setNumberFormat: (decimalPlaces: number, currency: string, locale: string, suffix: string) => void;
1933
- setColorRanges: (colorRanges: ColorRange[]) => void;
1934
- setIsShowingVisual: (isShowingVisual: boolean) => void;
1935
- setQueryResultColumns: (columns: string[]) => void;
1936
- setQueryError: (error: string) => void;
1937
- setRunSql: (runSql: boolean) => void;
1938
- setCardPreferences: (preferences: TCardPreferences) => void;
1939
- setCustomCardPreferences: (customPreferences: TCustomCardPreferences) => void;
1940
- setFilterOnClickField: (field: string) => void;
1941
- setFilterOnClickColumnIndex: (index: number) => void;
1942
- setIsSqlRunning: (isSqlRunning: boolean) => void;
1943
- setCard: (card: TCard) => void;
1944
- setFrame: (frame: TFrame) => void;
1945
- updateCardInFrame: (card: TCard) => void;
1946
- setSqlGen: (sqlGen: SqlGen) => void;
1947
- setSqlGenMeasure: (name: string, calc: AggregateCalc) => void;
1948
- setSqlGenDimension: (dimension: string) => void;
1949
- setCardType: (type: TChartType) => void;
1950
- setCardSql: (sql: string) => void;
1951
- setCardPython: (python: string) => void;
1952
- setPythonStdOut: (pythonStdOut: string) => void;
1953
- setCardCustomCfg: (cfg: any) => void;
1954
- setCardCfg: (cfg: any) => void;
1955
- setShowFilters: (showFilters: boolean) => void;
1956
- setApplyFilters: (applyFilters: boolean) => void;
1957
- setFilterValues: (filterValues: TFilterValue[]) => void;
1958
- setSelectedConnectionId: (connectionId: string) => void;
1959
- setSelectedDatamodelId: (datamodelId: string) => void;
1960
- setSelectedDatabaseName: (databaseName: string) => void;
1961
- setSelectedSchemaName: (schemaName: string) => void;
1962
- setSelectedTableName: (tableName: string) => void;
1963
- setCurrentColumns: (columns: TDataColumn[]) => void;
1964
- setOnConnectionChange: (onConnectionChange: (connectionId: string) => void) => void;
1965
- setOnDatabaseChange: (onDatabaseChange: (databaseName: string) => void) => void;
1966
- setOnSchemaChange: (onSchemaChange: (schemaName: string) => void) => void;
1967
- setOnTableChange: (onTableChange: (tableNmae: string) => void) => void;
1968
- setOnSave: (onSave: (card: TFrame) => void) => void;
1969
- setOnClose: (onClose: () => void) => void;
1970
- };
1971
- sqlGen: {
1972
- measures?: {
1973
- name: string;
1974
- calc: AggregateCalc;
1975
- }[] | undefined;
1976
- dimensions?: string[] | undefined;
1977
- };
1978
- frame: {
1979
- id: string;
1980
- filterId?: string | undefined;
1981
- cards: {
1982
- id: string;
1983
- title: string;
1984
- tabTitle?: string | undefined;
1985
- displayTab?: boolean | undefined;
1986
- description?: string | undefined;
1987
- info?: string | undefined;
1988
- connectionId?: string | undefined;
1989
- datamodelId?: string | undefined;
1990
- type: TChartType;
1991
- sql?: string | undefined;
1992
- python?: string | undefined;
1993
- data?: any[] | undefined;
1994
- cfg?: any;
1995
- customCfg?: any;
1996
- preferences?: {
1997
- onClickFilter?: {
1998
- expression?: string | undefined;
1999
- columnIndex: number;
2000
- }[] | undefined;
2001
- filterOnClick?: boolean | undefined;
2002
- filterOnClickField?: string | undefined;
2003
- filterOnClickColumnIndex?: number | undefined;
2004
- sortChart?: "none" | "asc" | "desc" | undefined;
2005
- formatNumber?: {
2006
- decimalPlaces?: number | undefined;
2007
- currency?: string | undefined;
2008
- locale?: string | undefined;
2009
- suffix?: string | undefined;
2010
- enabled?: string | boolean | undefined;
2011
- colorRanges?: {
2012
- start: number;
2013
- end: number;
2014
- color: string;
2015
- }[] | undefined;
2016
- } | undefined;
2017
- numberAxisFormat?: {
2018
- decimalPlaces?: number | undefined;
2019
- suffix?: string | undefined;
2020
- currency?: string | undefined;
2021
- locale?: string | undefined;
2022
- } | undefined;
2023
- datasetOptions?: {
2024
- idx: number;
2025
- type?: "bar" | "line" | undefined;
2026
- fill?: string | number | undefined;
2027
- datalabels?: {
2028
- display?: boolean | undefined;
2029
- align?: string | undefined;
2030
- anchor?: string | undefined;
2031
- clamp?: boolean | undefined;
2032
- color?: string | undefined;
2033
- } | undefined;
2034
- }[] | undefined;
2035
- chartOptions?: {
2036
- type?: TChartType | undefined;
2037
- scales?: {
2038
- y?: {
2039
- type: "linear" | "logarithmic";
2040
- min: number;
2041
- max: number;
2042
- ticks: {
2043
- stepSize: number;
2044
- };
2045
- } | undefined;
2046
- x?: {
2047
- type: "linear" | "logarithmic";
2048
- min: number;
2049
- max: number;
2050
- ticks: {
2051
- stepSize: number;
2052
- };
2053
- } | undefined;
2054
- } | undefined;
2055
- indexAxis?: "x" | "y" | undefined;
2056
- } | undefined;
2057
- columnSettings?: {
2058
- columnIdx: number;
2059
- textAlign?: "left" | "center" | "right" | undefined;
2060
- width?: number | undefined;
2061
- type: DisplayDataType;
2062
- options: {
2063
- maxLength?: number | undefined;
2064
- } | {} | {
2065
- locale: string;
2066
- currency?: string | undefined;
2067
- options: {
2068
- localeMatcher?: string | undefined;
2069
- style?: string | undefined;
2070
- currency?: string | undefined;
2071
- currencySign?: string | undefined;
2072
- useGrouping?: boolean | undefined;
2073
- minimumIntegerDigits?: number | undefined;
2074
- minimumFractionDigits?: number | undefined;
2075
- maximumFractionDigits?: number | undefined;
2076
- minimumSignificantDigits?: number | undefined;
2077
- maximumSignificantDigits?: number | undefined;
2078
- compactDisplay?: "short" | "long" | undefined;
2079
- notation?: "standard" | "scientific" | "engineering" | "compact" | undefined;
2080
- signDisplay?: "auto" | "never" | "always" | "exceptZero" | undefined;
2081
- unit?: string | undefined;
2082
- unitDisplay?: "short" | "long" | "narrow" | undefined;
2083
- currencyDisplay?: string | undefined;
2084
- };
2085
- colorRanges?: {
2086
- start: number;
2087
- end: number;
2088
- color: string;
2089
- }[] | undefined;
2090
- } | {
2091
- locale: string;
2092
- format: string;
2093
- options: {
2094
- localeMatcher?: "best fit" | "lookup" | undefined;
2095
- weekday?: "short" | "long" | "narrow" | undefined;
2096
- era?: "short" | "long" | "narrow" | undefined;
2097
- year?: "numeric" | "2-digit" | undefined;
2098
- month?: "numeric" | "short" | "long" | "narrow" | "2-digit" | undefined;
2099
- day?: "numeric" | "2-digit" | undefined;
2100
- hour?: "numeric" | "2-digit" | undefined;
2101
- minute?: "numeric" | "2-digit" | undefined;
2102
- second?: "numeric" | "2-digit" | undefined;
2103
- timeZoneName?: "short" | "long" | "shortOffset" | "longOffset" | "shortGeneric" | "longGeneric" | undefined;
2104
- formatMatcher?: "best fit" | "basic" | undefined;
2105
- hour12?: boolean | undefined;
2106
- timeZone?: string | undefined;
2107
- calendar?: string | undefined;
2108
- dayPeriod?: "short" | "long" | "narrow" | undefined;
2109
- numberingSystem?: string | undefined;
2110
- dateStyle?: "short" | "long" | "full" | "medium" | undefined;
2111
- timeStyle?: "short" | "long" | "full" | "medium" | undefined;
2112
- hourCycle?: "h11" | "h12" | "h23" | "h24" | undefined;
2113
- };
2114
- };
2115
- }[] | undefined;
2116
- allowDownload?: boolean | undefined;
2117
- customVisualCode?: string | undefined;
2118
- textVisualOptions?: {
2119
- isDynamicText?: boolean | undefined;
2120
- } | undefined;
2121
- mapVisualOptions?: {
2122
- topoJsonUrl?: string | undefined;
2123
- objectKey?: string | undefined;
2124
- outlineKey?: string | undefined;
2125
- customTopoJsonUrl?: string | undefined;
2126
- projection?: string | undefined;
2127
- projectionScale?: number | undefined;
2128
- projectionOffset?: [number, number] | undefined;
2129
- colorScale?: string | undefined;
2130
- } | undefined;
2131
- } | undefined;
2132
- customCardPreferences?: {
2133
- showCardHeader?: boolean | undefined;
2134
- url: string;
2135
- componentName: string;
2136
- icon?: string | undefined;
2137
- type?: "iframe" | "component" | undefined;
2138
- visualType?: "single" | "multiple" | undefined;
2139
- settings?: any;
2140
- dataInputCardIds?: {
2141
- [x: number]: {
2142
- cardId: string;
2143
- };
2144
- } | undefined;
2145
- inputData?: {
2146
- cardId: string;
2147
- data: {
2148
- [x: string]: any;
2149
- }[];
2150
- }[] | undefined;
2151
- } | undefined;
2152
- lastSelectedDatabase?: string | undefined;
2153
- lastSelectedDatamodelId?: string | undefined;
2154
- lastSelectedSchema?: string | undefined;
2155
- lastSelectedTable?: string | undefined;
2156
- refreshInterval?: string | undefined;
2157
- }[];
2158
- activeCardId: string;
2159
- };
2160
- card: {
2161
- id: string;
2162
- title: string;
2163
- tabTitle?: string | undefined;
2164
- displayTab?: boolean | undefined;
2165
- description?: string | undefined;
2166
- info?: string | undefined;
2167
- connectionId?: string | undefined;
2168
- datamodelId?: string | undefined;
2169
- type: TChartType;
2170
- sql?: string | undefined;
2171
- python?: string | undefined;
2172
- data?: any[] | undefined;
2173
- cfg?: any;
2174
- customCfg?: any;
2175
- preferences?: {
2176
- onClickFilter?: {
2177
- expression?: string | undefined;
2178
- columnIndex: number;
2179
- }[] | undefined;
2180
- filterOnClick?: boolean | undefined;
2181
- filterOnClickField?: string | undefined;
2182
- filterOnClickColumnIndex?: number | undefined;
2183
- sortChart?: "none" | "asc" | "desc" | undefined;
2184
- formatNumber?: {
2185
- decimalPlaces?: number | undefined;
2186
- currency?: string | undefined;
2187
- locale?: string | undefined;
2188
- suffix?: string | undefined;
2189
- enabled?: string | boolean | undefined;
2190
- colorRanges?: {
2191
- start: number;
2192
- end: number;
2193
- color: string;
2194
- }[] | undefined;
2195
- } | undefined;
2196
- numberAxisFormat?: {
2197
- decimalPlaces?: number | undefined;
2198
- suffix?: string | undefined;
2199
- currency?: string | undefined;
2200
- locale?: string | undefined;
2201
- } | undefined;
2202
- datasetOptions?: {
2203
- idx: number;
2204
- type?: "bar" | "line" | undefined;
2205
- fill?: string | number | undefined;
2206
- datalabels?: {
2207
- display?: boolean | undefined;
2208
- align?: string | undefined;
2209
- anchor?: string | undefined;
2210
- clamp?: boolean | undefined;
2211
- color?: string | undefined;
2212
- } | undefined;
2213
- }[] | undefined;
2214
- chartOptions?: {
2215
- type?: TChartType | undefined;
2216
- scales?: {
2217
- y?: {
2218
- type: "linear" | "logarithmic";
2219
- min: number;
2220
- max: number;
2221
- ticks: {
2222
- stepSize: number;
2223
- };
2224
- } | undefined;
2225
- x?: {
2226
- type: "linear" | "logarithmic";
2227
- min: number;
2228
- max: number;
2229
- ticks: {
2230
- stepSize: number;
2231
- };
2232
- } | undefined;
2233
- } | undefined;
2234
- indexAxis?: "x" | "y" | undefined;
2235
- } | undefined;
2236
- columnSettings?: {
2237
- columnIdx: number;
2238
- textAlign?: "left" | "center" | "right" | undefined;
2239
- width?: number | undefined;
2240
- type: DisplayDataType;
2241
- options: {
2242
- maxLength?: number | undefined;
2243
- } | {} | {
2244
- locale: string;
2245
- currency?: string | undefined;
2246
- options: {
2247
- localeMatcher?: string | undefined;
2248
- style?: string | undefined;
2249
- currency?: string | undefined;
2250
- currencySign?: string | undefined;
2251
- useGrouping?: boolean | undefined;
2252
- minimumIntegerDigits?: number | undefined;
2253
- minimumFractionDigits?: number | undefined;
2254
- maximumFractionDigits?: number | undefined;
2255
- minimumSignificantDigits?: number | undefined;
2256
- maximumSignificantDigits?: number | undefined;
2257
- compactDisplay?: "short" | "long" | undefined;
2258
- notation?: "standard" | "scientific" | "engineering" | "compact" | undefined;
2259
- signDisplay?: "auto" | "never" | "always" | "exceptZero" | undefined;
2260
- unit?: string | undefined;
2261
- unitDisplay?: "short" | "long" | "narrow" | undefined;
2262
- currencyDisplay?: string | undefined;
2263
- };
2264
- colorRanges?: {
2265
- start: number;
2266
- end: number;
2267
- color: string;
2268
- }[] | undefined;
2269
- } | {
2270
- locale: string;
2271
- format: string;
2272
- options: {
2273
- localeMatcher?: "best fit" | "lookup" | undefined;
2274
- weekday?: "short" | "long" | "narrow" | undefined;
2275
- era?: "short" | "long" | "narrow" | undefined;
2276
- year?: "numeric" | "2-digit" | undefined;
2277
- month?: "numeric" | "short" | "long" | "narrow" | "2-digit" | undefined;
2278
- day?: "numeric" | "2-digit" | undefined;
2279
- hour?: "numeric" | "2-digit" | undefined;
2280
- minute?: "numeric" | "2-digit" | undefined;
2281
- second?: "numeric" | "2-digit" | undefined;
2282
- timeZoneName?: "short" | "long" | "shortOffset" | "longOffset" | "shortGeneric" | "longGeneric" | undefined;
2283
- formatMatcher?: "best fit" | "basic" | undefined;
2284
- hour12?: boolean | undefined;
2285
- timeZone?: string | undefined;
2286
- calendar?: string | undefined;
2287
- dayPeriod?: "short" | "long" | "narrow" | undefined;
2288
- numberingSystem?: string | undefined;
2289
- dateStyle?: "short" | "long" | "full" | "medium" | undefined;
2290
- timeStyle?: "short" | "long" | "full" | "medium" | undefined;
2291
- hourCycle?: "h11" | "h12" | "h23" | "h24" | undefined;
2292
- };
2293
- };
2294
- }[] | undefined;
2295
- allowDownload?: boolean | undefined;
2296
- customVisualCode?: string | undefined;
2297
- textVisualOptions?: {
2298
- isDynamicText?: boolean | undefined;
2299
- } | undefined;
2300
- mapVisualOptions?: {
2301
- topoJsonUrl?: string | undefined;
2302
- objectKey?: string | undefined;
2303
- outlineKey?: string | undefined;
2304
- customTopoJsonUrl?: string | undefined;
2305
- projection?: string | undefined;
2306
- projectionScale?: number | undefined;
2307
- projectionOffset?: [number, number] | undefined;
2308
- colorScale?: string | undefined;
2309
- } | undefined;
2310
- } | undefined;
2311
- customCardPreferences?: {
2312
- showCardHeader?: boolean | undefined;
2313
- url: string;
2314
- componentName: string;
2315
- icon?: string | undefined;
2316
- type?: "iframe" | "component" | undefined;
2317
- visualType?: "single" | "multiple" | undefined;
2318
- settings?: any;
2319
- dataInputCardIds?: {
2320
- [x: number]: {
2321
- cardId: string;
2322
- };
2323
- } | undefined;
2324
- inputData?: {
2325
- cardId: string;
2326
- data: {
2327
- [x: string]: any;
2328
- }[];
2329
- }[] | undefined;
2330
- } | undefined;
2331
- lastSelectedDatabase?: string | undefined;
2332
- lastSelectedDatamodelId?: string | undefined;
2333
- lastSelectedSchema?: string | undefined;
2334
- lastSelectedTable?: string | undefined;
2335
- refreshInterval?: string | undefined;
2336
- };
2337
- showFilters: boolean;
2338
- applyFilters: boolean;
2339
- filterValues?: ({
2340
- filterId: string;
2341
- expression?: string | undefined;
2342
- name: string;
2343
- valueType: "string" | "number" | "boolean" | "date";
2344
- connectionType?: "database" | "api" | undefined;
2345
- operation: "like" | "not like";
2346
- values: [string];
2347
- } | {
2348
- filterId: string;
2349
- expression?: string | undefined;
2350
- name: string;
2351
- valueType: "string" | "number" | "boolean" | "date";
2352
- connectionType?: "database" | "api" | undefined;
2353
- operation: "=" | "!=" | "is null" | "is not null";
2354
- values: [string | number];
2355
- } | {
2356
- filterId: string;
2357
- expression?: string | undefined;
2358
- name: string;
2359
- valueType: "string" | "number" | "boolean" | "date";
2360
- connectionType?: "database" | "api" | undefined;
2361
- operation: ">" | "<" | ">=" | "<=";
2362
- values: [number];
2363
- } | {
2364
- filterId: string;
2365
- expression?: string | undefined;
2366
- name: string;
2367
- valueType: "string" | "number" | "boolean" | "date";
2368
- connectionType?: "database" | "api" | undefined;
2369
- operation: "between" | "not between";
2370
- values: [number, number];
2371
- } | {
2372
- filterId: string;
2373
- expression?: string | undefined;
2374
- name: string;
2375
- valueType: "string" | "number" | "boolean" | "date";
2376
- connectionType?: "database" | "api" | undefined;
2377
- operation: "between" | "not between";
2378
- values: [Date, Date];
2379
- } | {
2380
- filterId: string;
2381
- expression?: string | undefined;
2382
- name: string;
2383
- valueType: "string" | "number" | "boolean" | "date";
2384
- connectionType?: "database" | "api" | undefined;
2385
- operation: "in" | "not in";
2386
- values: (string | number)[];
2387
- })[] | undefined;
2388
- queryResultColumns: string[];
2389
- queryError?: string | undefined;
2390
- pythonStdOut?: string | undefined;
2391
- selectedConnectionId?: string | undefined;
2392
- selectedDatamodelId?: string | undefined;
2393
- selectedDatabaseName?: string | undefined;
2394
- selectedSchemaName?: string | undefined;
2395
- selectedTableName?: string | undefined;
2396
- currentColumns?: {
2397
- column_name: string;
2398
- data_type: string;
2399
- is_nullable?: string | undefined;
2400
- }[] | undefined;
2401
- onConnectionChange?: ((connectionId: string) => void) | undefined;
2402
- onDatamodelChange?: ((datamodelId: string) => void) | undefined;
2403
- onDatabaseChange?: ((databaseName: string) => void) | undefined;
2404
- onTableChange?: ((tableName: string) => void) | undefined;
2405
- onSchemaChange?: ((schemaName: string) => void) | undefined;
2406
- onSave?: ((card: TFrame) => void) | undefined;
2407
- onClose?: (() => void) | undefined;
2408
- }) => void), shouldReplace?: boolean | undefined): void;
782
+ setState(nextStateOrUpdater: EditorStore | Partial<EditorStore> | ((state: WritableDraft<EditorStore>) => void), shouldReplace?: boolean | undefined): void;
2409
783
  }>;
2410
784
 
2411
785
  export { }
786
+
787
+
788
+ declare namespace Calendar {
789
+ var displayName: string;
790
+ }