semaphor 0.0.47 → 0.0.49

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.
@@ -14,6 +14,8 @@ import { StoreApi } from 'zustand';
14
14
  import { UseBoundStore } from 'zustand';
15
15
 
16
16
  declare type Actions = {
17
+ setGlobalStyle: (style: TStyle) => void;
18
+ setAIScopeTables: (aiScopeTables: AIScopeTable[]) => void;
17
19
  setIsSessionExpired: (isSessionExpired: boolean) => void;
18
20
  setCurrentBreakpoint: (breakpoint: Breakpoint) => void;
19
21
  addFilteringCard: (card: TCard) => void;
@@ -36,7 +38,7 @@ declare type Actions = {
36
38
  setCardPython: (cardId: string, pythonCode: string) => void;
37
39
  setCardDescription: (sheetId: string, cardId: string, description: string) => void;
38
40
  setFrameCardData: (sheetId: string, cardId: string, data: any[]) => void;
39
- addFrame: (sheetId: string, frame: TFrame) => void;
41
+ addFrame: (sheetId: string, frame: TFrame, position?: 'start' | 'end') => void;
40
42
  updateFrame: (sheetId: string, frame: TFrame) => void;
41
43
  updateCard: (sheetId: string, card: TCard) => void;
42
44
  updateFrameCard?: (sheetId: string, frameId: string, card: TCard) => void;
@@ -75,8 +77,10 @@ declare type Actions = {
75
77
  };
76
78
 
77
79
  declare type Actions_2 = {
80
+ setCustomVisualCode: (code: string) => void;
78
81
  setCardRefreshInterval: (refreshInterval: string) => void;
79
- setNumberFormat: (format: string, currency: string, locale: string, suffix: string) => void;
82
+ setNumberFormat: (decimalPlaces: number, currency: string, locale: string, suffix: string) => void;
83
+ setColorRanges: (colorRanges: ColorRange[]) => void;
80
84
  setIsShowingVisual: (isShowingVisual: boolean) => void;
81
85
  setQueryResultColumns: (columns: string[]) => void;
82
86
  setQueryError: (error: string) => void;
@@ -115,6 +119,14 @@ declare type Actions_2 = {
115
119
 
116
120
  export declare type AggregateCalc = 'AVG' | 'MIN' | 'MAX' | 'SUM' | 'COUNT' | 'COUNT_DISTINCT';
117
121
 
122
+ export declare type AIScopeTable = {
123
+ connectinonId: string;
124
+ connectionType: string;
125
+ databaseName?: string;
126
+ schemaName?: string;
127
+ tableName: string;
128
+ };
129
+
118
130
  export declare type AuthToken = {
119
131
  accessToken: string;
120
132
  refreshToken?: string;
@@ -164,6 +176,12 @@ declare type CardWithFooter = BaseCustomCard & {
164
176
 
165
177
  export declare function cleanCard(card: TCard): TCard;
166
178
 
179
+ export declare type ColorRange = {
180
+ start: number;
181
+ end: number;
182
+ color: string;
183
+ };
184
+
167
185
  export declare type ConnectionPolicy = {
168
186
  connectionId?: string;
169
187
  name: string;
@@ -235,6 +253,14 @@ export declare const DashboardWC: CustomElementConstructor;
235
253
 
236
254
  export declare const DATE_DATA_TYPES: string[];
237
255
 
256
+ export declare type DateOptions = {
257
+ locale: string;
258
+ format: string;
259
+ options: Intl.DateTimeFormatOptions;
260
+ };
261
+
262
+ export declare type DisplayDataType = 'string' | 'date' | 'number';
263
+
238
264
  declare type EditorStore = {
239
265
  isShowingVisual: boolean;
240
266
  runSql: boolean;
@@ -328,6 +354,8 @@ export declare function getDashbaordStateWithoutData(dashboardState: TDashboard)
328
354
  filters?: TFilter[] | undefined;
329
355
  customCards?: CustomCard[] | undefined;
330
356
  baseQueries?: TBaseQuery[] | undefined;
357
+ aiScopeTables?: AIScopeTable[] | undefined;
358
+ globalStyle?: TStyle | undefined;
331
359
  };
332
360
 
333
361
  export declare function getFilterValueType(filter: TFilter): "string" | "number" | "date" | "boolean";
@@ -349,8 +377,28 @@ export declare type LoadingProps = {
349
377
 
350
378
  export declare const NUMBER_DATA_TYPES: string[];
351
379
 
380
+ export declare type NumberAxisFormat = {
381
+ decimalPlaces?: number;
382
+ suffix?: string;
383
+ currency?: string;
384
+ locale?: string;
385
+ };
386
+
387
+ export declare type NumberOptions = {
388
+ locale: string;
389
+ currency?: string;
390
+ options: Intl.NumberFormatOptions;
391
+ colorRanges?: ColorRange[];
392
+ };
393
+
352
394
  declare type Operation = '=' | '>' | '<' | '>=' | '<=' | '!=' | 'in' | 'not in' | 'like' | 'not like' | 'between' | 'not between' | 'is null' | 'is not null';
353
395
 
396
+ declare type OptionsMap = {
397
+ number: NumberOptions;
398
+ string: StringOptions;
399
+ date: DateOptions;
400
+ };
401
+
354
402
  declare type Params = {
355
403
  [key: string]: string | number | string[] | number[];
356
404
  };
@@ -387,6 +435,10 @@ export declare type SqlGen = {
387
435
  dimensions?: string[];
388
436
  };
389
437
 
438
+ declare type StringOptions = {
439
+ maxLength?: number;
440
+ };
441
+
390
442
  /**
391
443
  * Style propeerites for the dashboard
392
444
  */
@@ -413,6 +465,9 @@ export declare type StyleProps = {
413
465
  /** chart options */
414
466
  options?: any;
415
467
  };
468
+ table?: {
469
+ tableHeaderColor?: string;
470
+ };
416
471
  };
417
472
 
418
473
  export declare function Surfboard({ showControls, showFooter, ...rest }: DashboardPlusProps): JSX_2.Element;
@@ -456,14 +511,19 @@ export declare type TCardPreferences = {
456
511
  filterOnClickField?: string;
457
512
  filterOnClickColumnIndex?: number;
458
513
  formatNumber?: {
459
- format?: string;
514
+ decimalPlaces?: number;
460
515
  currency?: string;
461
516
  locale?: string;
462
517
  suffix?: string;
463
518
  enabled?: boolean | string;
519
+ colorRanges?: ColorRange[];
464
520
  };
521
+ numberAxisFormat?: NumberAxisFormat;
465
522
  datasetOptions?: TDatasetOptions[];
466
523
  chartOptions?: TChartOptions;
524
+ columnSettings?: TColumnSetting<DisplayDataType>[];
525
+ allowDownload?: boolean;
526
+ customVisualCode?: string;
467
527
  };
468
528
 
469
529
  declare type TChartConfiguration = ChartConfiguration;
@@ -491,7 +551,13 @@ export declare type TChartOptions = {
491
551
  indexAxis?: 'x' | 'y' | undefined;
492
552
  };
493
553
 
494
- declare type TChartType = 'bar' | 'horizontalBar' | 'line' | 'pie' | 'doughnut' | 'radar' | 'polarArea' | 'bubble' | 'scatter' | 'stackedBar' | 'table' | 'kpi' | 'custom';
554
+ declare type TChartType = 'bar' | 'horizontalBar' | 'line' | 'pie' | 'doughnut' | 'radar' | 'polarArea' | 'bubble' | 'scatter' | 'stackedBar' | 'table' | 'kpi' | 'pyramid' | 'range' | 'custom';
555
+
556
+ export declare type TColumnSetting<T extends DisplayDataType> = {
557
+ columnIdx: number;
558
+ type: T;
559
+ options: OptionsMap[T];
560
+ };
495
561
 
496
562
  export declare type TDashboard = {
497
563
  id: string;
@@ -502,6 +568,8 @@ export declare type TDashboard = {
502
568
  filters?: TFilter[];
503
569
  customCards?: CustomCard[];
504
570
  baseQueries?: TBaseQuery[];
571
+ aiScopeTables?: AIScopeTable[];
572
+ globalStyle?: TStyle;
505
573
  };
506
574
 
507
575
  export declare type TDataColumn = {
@@ -612,6 +680,9 @@ export declare const useDashboardStore: UseBoundStore<Omit<StoreApi<DashboardSto
612
680
  dataset?: any;
613
681
  options?: any;
614
682
  } | undefined;
683
+ table?: {
684
+ tableHeaderColor?: string | undefined;
685
+ } | undefined;
615
686
  } | undefined;
616
687
  filteringCards?: {
617
688
  id: string;
@@ -634,11 +705,22 @@ export declare const useDashboardStore: UseBoundStore<Omit<StoreApi<DashboardSto
634
705
  filterOnClickField?: string | undefined;
635
706
  filterOnClickColumnIndex?: number | undefined;
636
707
  formatNumber?: {
637
- format?: string | undefined;
708
+ decimalPlaces?: number | undefined;
638
709
  currency?: string | undefined;
639
710
  locale?: string | undefined;
640
711
  suffix?: string | undefined;
641
712
  enabled?: string | boolean | undefined;
713
+ colorRanges?: {
714
+ start: number;
715
+ end: number;
716
+ color: string;
717
+ }[] | undefined;
718
+ } | undefined;
719
+ numberAxisFormat?: {
720
+ decimalPlaces?: number | undefined;
721
+ suffix?: string | undefined;
722
+ currency?: string | undefined;
723
+ locale?: string | undefined;
642
724
  } | undefined;
643
725
  datasetOptions?: {
644
726
  idx: number;
@@ -674,6 +756,65 @@ export declare const useDashboardStore: UseBoundStore<Omit<StoreApi<DashboardSto
674
756
  } | undefined;
675
757
  indexAxis?: "x" | "y" | undefined;
676
758
  } | undefined;
759
+ columnSettings?: {
760
+ columnIdx: number;
761
+ type: DisplayDataType;
762
+ options: {
763
+ maxLength?: number | undefined;
764
+ } | {
765
+ locale: string;
766
+ currency?: string | undefined;
767
+ options: {
768
+ localeMatcher?: string | undefined;
769
+ style?: string | undefined;
770
+ currency?: string | undefined;
771
+ currencySign?: string | undefined;
772
+ useGrouping?: boolean | undefined;
773
+ minimumIntegerDigits?: number | undefined;
774
+ minimumFractionDigits?: number | undefined;
775
+ maximumFractionDigits?: number | undefined;
776
+ minimumSignificantDigits?: number | undefined;
777
+ maximumSignificantDigits?: number | undefined;
778
+ compactDisplay?: "short" | "long" | undefined;
779
+ notation?: "standard" | "scientific" | "engineering" | "compact" | undefined;
780
+ signDisplay?: "auto" | "never" | "always" | "exceptZero" | undefined;
781
+ unit?: string | undefined;
782
+ unitDisplay?: "short" | "long" | "narrow" | undefined;
783
+ currencyDisplay?: string | undefined;
784
+ };
785
+ colorRanges?: {
786
+ start: number;
787
+ end: number;
788
+ color: string;
789
+ }[] | undefined;
790
+ } | {
791
+ locale: string;
792
+ format: string;
793
+ options: {
794
+ localeMatcher?: "best fit" | "lookup" | undefined;
795
+ weekday?: "short" | "long" | "narrow" | undefined;
796
+ era?: "short" | "long" | "narrow" | undefined;
797
+ year?: "numeric" | "2-digit" | undefined;
798
+ month?: "numeric" | "short" | "long" | "narrow" | "2-digit" | undefined;
799
+ day?: "numeric" | "2-digit" | undefined;
800
+ hour?: "numeric" | "2-digit" | undefined;
801
+ minute?: "numeric" | "2-digit" | undefined;
802
+ second?: "numeric" | "2-digit" | undefined;
803
+ timeZoneName?: "short" | "long" | "shortOffset" | "longOffset" | "shortGeneric" | "longGeneric" | undefined;
804
+ formatMatcher?: "best fit" | "basic" | undefined;
805
+ hour12?: boolean | undefined;
806
+ timeZone?: string | undefined;
807
+ calendar?: string | undefined;
808
+ dayPeriod?: "short" | "long" | "narrow" | undefined;
809
+ numberingSystem?: string | undefined;
810
+ dateStyle?: "short" | "long" | "full" | "medium" | undefined;
811
+ timeStyle?: "short" | "long" | "full" | "medium" | undefined;
812
+ hourCycle?: "h11" | "h12" | "h23" | "h24" | undefined;
813
+ };
814
+ };
815
+ }[] | undefined;
816
+ allowDownload?: boolean | undefined;
817
+ customVisualCode?: string | undefined;
677
818
  } | undefined;
678
819
  lastSelectedDatabase?: string | undefined;
679
820
  lastSelectedSchema?: string | undefined;
@@ -746,11 +887,22 @@ export declare const useDashboardStore: UseBoundStore<Omit<StoreApi<DashboardSto
746
887
  filterOnClickField?: string | undefined;
747
888
  filterOnClickColumnIndex?: number | undefined;
748
889
  formatNumber?: {
749
- format?: string | undefined;
890
+ decimalPlaces?: number | undefined;
750
891
  currency?: string | undefined;
751
892
  locale?: string | undefined;
752
893
  suffix?: string | undefined;
753
894
  enabled?: string | boolean | undefined;
895
+ colorRanges?: {
896
+ start: number;
897
+ end: number;
898
+ color: string;
899
+ }[] | undefined;
900
+ } | undefined;
901
+ numberAxisFormat?: {
902
+ decimalPlaces?: number | undefined;
903
+ suffix?: string | undefined;
904
+ currency?: string | undefined;
905
+ locale?: string | undefined;
754
906
  } | undefined;
755
907
  datasetOptions?: {
756
908
  idx: number;
@@ -786,6 +938,65 @@ export declare const useDashboardStore: UseBoundStore<Omit<StoreApi<DashboardSto
786
938
  } | undefined;
787
939
  indexAxis?: "x" | "y" | undefined;
788
940
  } | undefined;
941
+ columnSettings?: {
942
+ columnIdx: number;
943
+ type: DisplayDataType;
944
+ options: {
945
+ maxLength?: number | undefined;
946
+ } | {
947
+ locale: string;
948
+ currency?: string | undefined;
949
+ options: {
950
+ localeMatcher?: string | undefined;
951
+ style?: string | undefined;
952
+ currency?: string | undefined;
953
+ currencySign?: string | undefined;
954
+ useGrouping?: boolean | undefined;
955
+ minimumIntegerDigits?: number | undefined;
956
+ minimumFractionDigits?: number | undefined;
957
+ maximumFractionDigits?: number | undefined;
958
+ minimumSignificantDigits?: number | undefined;
959
+ maximumSignificantDigits?: number | undefined;
960
+ compactDisplay?: "short" | "long" | undefined;
961
+ notation?: "standard" | "scientific" | "engineering" | "compact" | undefined;
962
+ signDisplay?: "auto" | "never" | "always" | "exceptZero" | undefined;
963
+ unit?: string | undefined;
964
+ unitDisplay?: "short" | "long" | "narrow" | undefined;
965
+ currencyDisplay?: string | undefined;
966
+ };
967
+ colorRanges?: {
968
+ start: number;
969
+ end: number;
970
+ color: string;
971
+ }[] | undefined;
972
+ } | {
973
+ locale: string;
974
+ format: string;
975
+ options: {
976
+ localeMatcher?: "best fit" | "lookup" | undefined;
977
+ weekday?: "short" | "long" | "narrow" | undefined;
978
+ era?: "short" | "long" | "narrow" | undefined;
979
+ year?: "numeric" | "2-digit" | undefined;
980
+ month?: "numeric" | "short" | "long" | "narrow" | "2-digit" | undefined;
981
+ day?: "numeric" | "2-digit" | undefined;
982
+ hour?: "numeric" | "2-digit" | undefined;
983
+ minute?: "numeric" | "2-digit" | undefined;
984
+ second?: "numeric" | "2-digit" | undefined;
985
+ timeZoneName?: "short" | "long" | "shortOffset" | "longOffset" | "shortGeneric" | "longGeneric" | undefined;
986
+ formatMatcher?: "best fit" | "basic" | undefined;
987
+ hour12?: boolean | undefined;
988
+ timeZone?: string | undefined;
989
+ calendar?: string | undefined;
990
+ dayPeriod?: "short" | "long" | "narrow" | undefined;
991
+ numberingSystem?: string | undefined;
992
+ dateStyle?: "short" | "long" | "full" | "medium" | undefined;
993
+ timeStyle?: "short" | "long" | "full" | "medium" | undefined;
994
+ hourCycle?: "h11" | "h12" | "h23" | "h24" | undefined;
995
+ };
996
+ };
997
+ }[] | undefined;
998
+ allowDownload?: boolean | undefined;
999
+ customVisualCode?: string | undefined;
789
1000
  } | undefined;
790
1001
  lastSelectedDatabase?: string | undefined;
791
1002
  lastSelectedSchema?: string | undefined;
@@ -815,11 +1026,22 @@ export declare const useDashboardStore: UseBoundStore<Omit<StoreApi<DashboardSto
815
1026
  filterOnClickField?: string | undefined;
816
1027
  filterOnClickColumnIndex?: number | undefined;
817
1028
  formatNumber?: {
818
- format?: string | undefined;
1029
+ decimalPlaces?: number | undefined;
819
1030
  currency?: string | undefined;
820
1031
  locale?: string | undefined;
821
1032
  suffix?: string | undefined;
822
1033
  enabled?: string | boolean | undefined;
1034
+ colorRanges?: {
1035
+ start: number;
1036
+ end: number;
1037
+ color: string;
1038
+ }[] | undefined;
1039
+ } | undefined;
1040
+ numberAxisFormat?: {
1041
+ decimalPlaces?: number | undefined;
1042
+ suffix?: string | undefined;
1043
+ currency?: string | undefined;
1044
+ locale?: string | undefined;
823
1045
  } | undefined;
824
1046
  datasetOptions?: {
825
1047
  idx: number;
@@ -855,6 +1077,65 @@ export declare const useDashboardStore: UseBoundStore<Omit<StoreApi<DashboardSto
855
1077
  } | undefined;
856
1078
  indexAxis?: "x" | "y" | undefined;
857
1079
  } | undefined;
1080
+ columnSettings?: {
1081
+ columnIdx: number;
1082
+ type: DisplayDataType;
1083
+ options: {
1084
+ maxLength?: number | undefined;
1085
+ } | {
1086
+ locale: string;
1087
+ currency?: string | undefined;
1088
+ options: {
1089
+ localeMatcher?: string | undefined;
1090
+ style?: string | undefined;
1091
+ currency?: string | undefined;
1092
+ currencySign?: string | undefined;
1093
+ useGrouping?: boolean | undefined;
1094
+ minimumIntegerDigits?: number | undefined;
1095
+ minimumFractionDigits?: number | undefined;
1096
+ maximumFractionDigits?: number | undefined;
1097
+ minimumSignificantDigits?: number | undefined;
1098
+ maximumSignificantDigits?: number | undefined;
1099
+ compactDisplay?: "short" | "long" | undefined;
1100
+ notation?: "standard" | "scientific" | "engineering" | "compact" | undefined;
1101
+ signDisplay?: "auto" | "never" | "always" | "exceptZero" | undefined;
1102
+ unit?: string | undefined;
1103
+ unitDisplay?: "short" | "long" | "narrow" | undefined;
1104
+ currencyDisplay?: string | undefined;
1105
+ };
1106
+ colorRanges?: {
1107
+ start: number;
1108
+ end: number;
1109
+ color: string;
1110
+ }[] | undefined;
1111
+ } | {
1112
+ locale: string;
1113
+ format: string;
1114
+ options: {
1115
+ localeMatcher?: "best fit" | "lookup" | undefined;
1116
+ weekday?: "short" | "long" | "narrow" | undefined;
1117
+ era?: "short" | "long" | "narrow" | undefined;
1118
+ year?: "numeric" | "2-digit" | undefined;
1119
+ month?: "numeric" | "short" | "long" | "narrow" | "2-digit" | undefined;
1120
+ day?: "numeric" | "2-digit" | undefined;
1121
+ hour?: "numeric" | "2-digit" | undefined;
1122
+ minute?: "numeric" | "2-digit" | undefined;
1123
+ second?: "numeric" | "2-digit" | undefined;
1124
+ timeZoneName?: "short" | "long" | "shortOffset" | "longOffset" | "shortGeneric" | "longGeneric" | undefined;
1125
+ formatMatcher?: "best fit" | "basic" | undefined;
1126
+ hour12?: boolean | undefined;
1127
+ timeZone?: string | undefined;
1128
+ calendar?: string | undefined;
1129
+ dayPeriod?: "short" | "long" | "narrow" | undefined;
1130
+ numberingSystem?: string | undefined;
1131
+ dateStyle?: "short" | "long" | "full" | "medium" | undefined;
1132
+ timeStyle?: "short" | "long" | "full" | "medium" | undefined;
1133
+ hourCycle?: "h11" | "h12" | "h23" | "h24" | undefined;
1134
+ };
1135
+ };
1136
+ }[] | undefined;
1137
+ allowDownload?: boolean | undefined;
1138
+ customVisualCode?: string | undefined;
858
1139
  } | undefined;
859
1140
  lastSelectedDatabase?: string | undefined;
860
1141
  lastSelectedSchema?: string | undefined;
@@ -885,6 +1166,9 @@ export declare const useDashboardStore: UseBoundStore<Omit<StoreApi<DashboardSto
885
1166
  dataset?: any;
886
1167
  options?: any;
887
1168
  } | undefined;
1169
+ table?: {
1170
+ tableHeaderColor?: string | undefined;
1171
+ } | undefined;
888
1172
  };
889
1173
  dark?: {
890
1174
  dashboardPanel?: string | undefined;
@@ -906,6 +1190,9 @@ export declare const useDashboardStore: UseBoundStore<Omit<StoreApi<DashboardSto
906
1190
  dataset?: any;
907
1191
  options?: any;
908
1192
  } | undefined;
1193
+ table?: {
1194
+ tableHeaderColor?: string | undefined;
1195
+ } | undefined;
909
1196
  } | undefined;
910
1197
  } | undefined;
911
1198
  filters?: {
@@ -944,6 +1231,63 @@ export declare const useDashboardStore: UseBoundStore<Omit<StoreApi<DashboardSto
944
1231
  sql: string;
945
1232
  description?: string | undefined;
946
1233
  }[] | undefined;
1234
+ aiScopeTables?: {
1235
+ connectinonId: string;
1236
+ connectionType: string;
1237
+ databaseName?: string | undefined;
1238
+ schemaName?: string | undefined;
1239
+ tableName: string;
1240
+ }[] | undefined;
1241
+ globalStyle?: {
1242
+ default: {
1243
+ dashboardPanel?: string | undefined;
1244
+ dashboardTabsContainer?: string | undefined;
1245
+ dashboardCardContainer?: string | undefined;
1246
+ dashboardCard?: string | undefined;
1247
+ gridLayout?: {
1248
+ className?: string | undefined;
1249
+ margin?: [number, number] | undefined;
1250
+ } | undefined;
1251
+ chart?: {
1252
+ font?: {
1253
+ family?: string | undefined;
1254
+ size?: number | undefined;
1255
+ style?: "normal" | "italic" | "oblique" | "initial" | "inherit" | undefined;
1256
+ weight?: number | "bold" | "normal" | "lighter" | "bolder" | null | undefined;
1257
+ lineHeight?: string | number | undefined;
1258
+ } | undefined;
1259
+ dataset?: any;
1260
+ options?: any;
1261
+ } | undefined;
1262
+ table?: {
1263
+ tableHeaderColor?: string | undefined;
1264
+ } | undefined;
1265
+ };
1266
+ dark?: {
1267
+ dashboardPanel?: string | undefined;
1268
+ dashboardTabsContainer?: string | undefined;
1269
+ dashboardCardContainer?: string | undefined;
1270
+ dashboardCard?: string | undefined;
1271
+ gridLayout?: {
1272
+ className?: string | undefined;
1273
+ margin?: [number, number] | undefined;
1274
+ } | undefined;
1275
+ chart?: {
1276
+ font?: {
1277
+ family?: string | undefined;
1278
+ size?: number | undefined;
1279
+ style?: "normal" | "italic" | "oblique" | "initial" | "inherit" | undefined;
1280
+ weight?: number | "bold" | "normal" | "lighter" | "bolder" | null | undefined;
1281
+ lineHeight?: string | number | undefined;
1282
+ } | undefined;
1283
+ dataset?: any;
1284
+ options?: any;
1285
+ } | undefined;
1286
+ table?: {
1287
+ tableHeaderColor?: string | undefined;
1288
+ } | undefined;
1289
+ } | undefined;
1290
+ } | undefined;
947
1291
  };
948
1292
  selectedSheetId?: string | null | undefined;
949
1293
  selectedFrameId?: string | null | undefined;
@@ -969,11 +1313,22 @@ export declare const useDashboardStore: UseBoundStore<Omit<StoreApi<DashboardSto
969
1313
  filterOnClickField?: string | undefined;
970
1314
  filterOnClickColumnIndex?: number | undefined;
971
1315
  formatNumber?: {
972
- format?: string | undefined;
1316
+ decimalPlaces?: number | undefined;
973
1317
  currency?: string | undefined;
974
1318
  locale?: string | undefined;
975
1319
  suffix?: string | undefined;
976
1320
  enabled?: string | boolean | undefined;
1321
+ colorRanges?: {
1322
+ start: number;
1323
+ end: number;
1324
+ color: string;
1325
+ }[] | undefined;
1326
+ } | undefined;
1327
+ numberAxisFormat?: {
1328
+ decimalPlaces?: number | undefined;
1329
+ suffix?: string | undefined;
1330
+ currency?: string | undefined;
1331
+ locale?: string | undefined;
977
1332
  } | undefined;
978
1333
  datasetOptions?: {
979
1334
  idx: number;
@@ -1009,6 +1364,65 @@ export declare const useDashboardStore: UseBoundStore<Omit<StoreApi<DashboardSto
1009
1364
  } | undefined;
1010
1365
  indexAxis?: "x" | "y" | undefined;
1011
1366
  } | undefined;
1367
+ columnSettings?: {
1368
+ columnIdx: number;
1369
+ type: DisplayDataType;
1370
+ options: {
1371
+ maxLength?: number | undefined;
1372
+ } | {
1373
+ locale: string;
1374
+ currency?: string | undefined;
1375
+ options: {
1376
+ localeMatcher?: string | undefined;
1377
+ style?: string | undefined;
1378
+ currency?: string | undefined;
1379
+ currencySign?: string | undefined;
1380
+ useGrouping?: boolean | undefined;
1381
+ minimumIntegerDigits?: number | undefined;
1382
+ minimumFractionDigits?: number | undefined;
1383
+ maximumFractionDigits?: number | undefined;
1384
+ minimumSignificantDigits?: number | undefined;
1385
+ maximumSignificantDigits?: number | undefined;
1386
+ compactDisplay?: "short" | "long" | undefined;
1387
+ notation?: "standard" | "scientific" | "engineering" | "compact" | undefined;
1388
+ signDisplay?: "auto" | "never" | "always" | "exceptZero" | undefined;
1389
+ unit?: string | undefined;
1390
+ unitDisplay?: "short" | "long" | "narrow" | undefined;
1391
+ currencyDisplay?: string | undefined;
1392
+ };
1393
+ colorRanges?: {
1394
+ start: number;
1395
+ end: number;
1396
+ color: string;
1397
+ }[] | undefined;
1398
+ } | {
1399
+ locale: string;
1400
+ format: string;
1401
+ options: {
1402
+ localeMatcher?: "best fit" | "lookup" | undefined;
1403
+ weekday?: "short" | "long" | "narrow" | undefined;
1404
+ era?: "short" | "long" | "narrow" | undefined;
1405
+ year?: "numeric" | "2-digit" | undefined;
1406
+ month?: "numeric" | "short" | "long" | "narrow" | "2-digit" | undefined;
1407
+ day?: "numeric" | "2-digit" | undefined;
1408
+ hour?: "numeric" | "2-digit" | undefined;
1409
+ minute?: "numeric" | "2-digit" | undefined;
1410
+ second?: "numeric" | "2-digit" | undefined;
1411
+ timeZoneName?: "short" | "long" | "shortOffset" | "longOffset" | "shortGeneric" | "longGeneric" | undefined;
1412
+ formatMatcher?: "best fit" | "basic" | undefined;
1413
+ hour12?: boolean | undefined;
1414
+ timeZone?: string | undefined;
1415
+ calendar?: string | undefined;
1416
+ dayPeriod?: "short" | "long" | "narrow" | undefined;
1417
+ numberingSystem?: string | undefined;
1418
+ dateStyle?: "short" | "long" | "full" | "medium" | undefined;
1419
+ timeStyle?: "short" | "long" | "full" | "medium" | undefined;
1420
+ hourCycle?: "h11" | "h12" | "h23" | "h24" | undefined;
1421
+ };
1422
+ };
1423
+ }[] | undefined;
1424
+ allowDownload?: boolean | undefined;
1425
+ customVisualCode?: string | undefined;
1012
1426
  } | undefined;
1013
1427
  lastSelectedDatabase?: string | undefined;
1014
1428
  lastSelectedSchema?: string | undefined;
@@ -1075,6 +1489,8 @@ export declare const useDashboardStore: UseBoundStore<Omit<StoreApi<DashboardSto
1075
1489
  onUpdateCard?: ((card: TCard, sheetId: string) => void) | undefined;
1076
1490
  onRemoveCard?: ((card: TCard, sheetId: string) => void) | undefined;
1077
1491
  actions: {
1492
+ setGlobalStyle: (style: TStyle) => void;
1493
+ setAIScopeTables: (aiScopeTables: AIScopeTable[]) => void;
1078
1494
  setIsSessionExpired: (isSessionExpired: boolean) => void;
1079
1495
  setCurrentBreakpoint: (breakpoint: Breakpoint) => void;
1080
1496
  addFilteringCard: (card: TCard) => void;
@@ -1097,7 +1513,7 @@ export declare const useDashboardStore: UseBoundStore<Omit<StoreApi<DashboardSto
1097
1513
  setCardPython: (cardId: string, pythonCode: string) => void;
1098
1514
  setCardDescription: (sheetId: string, cardId: string, description: string) => void;
1099
1515
  setFrameCardData: (sheetId: string, cardId: string, data: any[]) => void;
1100
- addFrame: (sheetId: string, frame: TFrame) => void;
1516
+ addFrame: (sheetId: string, frame: TFrame, position?: 'start' | 'end') => void;
1101
1517
  updateFrame: (sheetId: string, frame: TFrame) => void;
1102
1518
  updateCard: (sheetId: string, card: TCard) => void;
1103
1519
  updateFrameCard?: ((sheetId: string, frameId: string, card: TCard) => void) | undefined;
@@ -1170,8 +1586,10 @@ export declare const useEditorStore: UseBoundStore<Omit<StoreApi<EditorStore>, "
1170
1586
  runSql: boolean;
1171
1587
  isSqlRunning: boolean;
1172
1588
  actions: {
1589
+ setCustomVisualCode: (code: string) => void;
1173
1590
  setCardRefreshInterval: (refreshInterval: string) => void;
1174
- setNumberFormat: (format: string, currency: string, locale: string, suffix: string) => void;
1591
+ setNumberFormat: (decimalPlaces: number, currency: string, locale: string, suffix: string) => void;
1592
+ setColorRanges: (colorRanges: ColorRange[]) => void;
1175
1593
  setIsShowingVisual: (isShowingVisual: boolean) => void;
1176
1594
  setQueryResultColumns: (columns: string[]) => void;
1177
1595
  setQueryError: (error: string) => void;
@@ -1237,11 +1655,22 @@ export declare const useEditorStore: UseBoundStore<Omit<StoreApi<EditorStore>, "
1237
1655
  filterOnClickField?: string | undefined;
1238
1656
  filterOnClickColumnIndex?: number | undefined;
1239
1657
  formatNumber?: {
1240
- format?: string | undefined;
1658
+ decimalPlaces?: number | undefined;
1241
1659
  currency?: string | undefined;
1242
1660
  locale?: string | undefined;
1243
1661
  suffix?: string | undefined;
1244
1662
  enabled?: string | boolean | undefined;
1663
+ colorRanges?: {
1664
+ start: number;
1665
+ end: number;
1666
+ color: string;
1667
+ }[] | undefined;
1668
+ } | undefined;
1669
+ numberAxisFormat?: {
1670
+ decimalPlaces?: number | undefined;
1671
+ suffix?: string | undefined;
1672
+ currency?: string | undefined;
1673
+ locale?: string | undefined;
1245
1674
  } | undefined;
1246
1675
  datasetOptions?: {
1247
1676
  idx: number;
@@ -1277,6 +1706,65 @@ export declare const useEditorStore: UseBoundStore<Omit<StoreApi<EditorStore>, "
1277
1706
  } | undefined;
1278
1707
  indexAxis?: "x" | "y" | undefined;
1279
1708
  } | undefined;
1709
+ columnSettings?: {
1710
+ columnIdx: number;
1711
+ type: DisplayDataType;
1712
+ options: {
1713
+ maxLength?: number | undefined;
1714
+ } | {
1715
+ locale: string;
1716
+ currency?: string | undefined;
1717
+ options: {
1718
+ localeMatcher?: string | undefined;
1719
+ style?: string | undefined;
1720
+ currency?: string | undefined;
1721
+ currencySign?: string | undefined;
1722
+ useGrouping?: boolean | undefined;
1723
+ minimumIntegerDigits?: number | undefined;
1724
+ minimumFractionDigits?: number | undefined;
1725
+ maximumFractionDigits?: number | undefined;
1726
+ minimumSignificantDigits?: number | undefined;
1727
+ maximumSignificantDigits?: number | undefined;
1728
+ compactDisplay?: "short" | "long" | undefined;
1729
+ notation?: "standard" | "scientific" | "engineering" | "compact" | undefined;
1730
+ signDisplay?: "auto" | "never" | "always" | "exceptZero" | undefined;
1731
+ unit?: string | undefined;
1732
+ unitDisplay?: "short" | "long" | "narrow" | undefined;
1733
+ currencyDisplay?: string | undefined;
1734
+ };
1735
+ colorRanges?: {
1736
+ start: number;
1737
+ end: number;
1738
+ color: string;
1739
+ }[] | undefined;
1740
+ } | {
1741
+ locale: string;
1742
+ format: string;
1743
+ options: {
1744
+ localeMatcher?: "best fit" | "lookup" | undefined;
1745
+ weekday?: "short" | "long" | "narrow" | undefined;
1746
+ era?: "short" | "long" | "narrow" | undefined;
1747
+ year?: "numeric" | "2-digit" | undefined;
1748
+ month?: "numeric" | "short" | "long" | "narrow" | "2-digit" | undefined;
1749
+ day?: "numeric" | "2-digit" | undefined;
1750
+ hour?: "numeric" | "2-digit" | undefined;
1751
+ minute?: "numeric" | "2-digit" | undefined;
1752
+ second?: "numeric" | "2-digit" | undefined;
1753
+ timeZoneName?: "short" | "long" | "shortOffset" | "longOffset" | "shortGeneric" | "longGeneric" | undefined;
1754
+ formatMatcher?: "best fit" | "basic" | undefined;
1755
+ hour12?: boolean | undefined;
1756
+ timeZone?: string | undefined;
1757
+ calendar?: string | undefined;
1758
+ dayPeriod?: "short" | "long" | "narrow" | undefined;
1759
+ numberingSystem?: string | undefined;
1760
+ dateStyle?: "short" | "long" | "full" | "medium" | undefined;
1761
+ timeStyle?: "short" | "long" | "full" | "medium" | undefined;
1762
+ hourCycle?: "h11" | "h12" | "h23" | "h24" | undefined;
1763
+ };
1764
+ };
1765
+ }[] | undefined;
1766
+ allowDownload?: boolean | undefined;
1767
+ customVisualCode?: string | undefined;
1280
1768
  } | undefined;
1281
1769
  lastSelectedDatabase?: string | undefined;
1282
1770
  lastSelectedSchema?: string | undefined;
@@ -1306,11 +1794,22 @@ export declare const useEditorStore: UseBoundStore<Omit<StoreApi<EditorStore>, "
1306
1794
  filterOnClickField?: string | undefined;
1307
1795
  filterOnClickColumnIndex?: number | undefined;
1308
1796
  formatNumber?: {
1309
- format?: string | undefined;
1797
+ decimalPlaces?: number | undefined;
1310
1798
  currency?: string | undefined;
1311
1799
  locale?: string | undefined;
1312
1800
  suffix?: string | undefined;
1313
1801
  enabled?: string | boolean | undefined;
1802
+ colorRanges?: {
1803
+ start: number;
1804
+ end: number;
1805
+ color: string;
1806
+ }[] | undefined;
1807
+ } | undefined;
1808
+ numberAxisFormat?: {
1809
+ decimalPlaces?: number | undefined;
1810
+ suffix?: string | undefined;
1811
+ currency?: string | undefined;
1812
+ locale?: string | undefined;
1314
1813
  } | undefined;
1315
1814
  datasetOptions?: {
1316
1815
  idx: number;
@@ -1346,6 +1845,65 @@ export declare const useEditorStore: UseBoundStore<Omit<StoreApi<EditorStore>, "
1346
1845
  } | undefined;
1347
1846
  indexAxis?: "x" | "y" | undefined;
1348
1847
  } | undefined;
1848
+ columnSettings?: {
1849
+ columnIdx: number;
1850
+ type: DisplayDataType;
1851
+ options: {
1852
+ maxLength?: number | undefined;
1853
+ } | {
1854
+ locale: string;
1855
+ currency?: string | undefined;
1856
+ options: {
1857
+ localeMatcher?: string | undefined;
1858
+ style?: string | undefined;
1859
+ currency?: string | undefined;
1860
+ currencySign?: string | undefined;
1861
+ useGrouping?: boolean | undefined;
1862
+ minimumIntegerDigits?: number | undefined;
1863
+ minimumFractionDigits?: number | undefined;
1864
+ maximumFractionDigits?: number | undefined;
1865
+ minimumSignificantDigits?: number | undefined;
1866
+ maximumSignificantDigits?: number | undefined;
1867
+ compactDisplay?: "short" | "long" | undefined;
1868
+ notation?: "standard" | "scientific" | "engineering" | "compact" | undefined;
1869
+ signDisplay?: "auto" | "never" | "always" | "exceptZero" | undefined;
1870
+ unit?: string | undefined;
1871
+ unitDisplay?: "short" | "long" | "narrow" | undefined;
1872
+ currencyDisplay?: string | undefined;
1873
+ };
1874
+ colorRanges?: {
1875
+ start: number;
1876
+ end: number;
1877
+ color: string;
1878
+ }[] | undefined;
1879
+ } | {
1880
+ locale: string;
1881
+ format: string;
1882
+ options: {
1883
+ localeMatcher?: "best fit" | "lookup" | undefined;
1884
+ weekday?: "short" | "long" | "narrow" | undefined;
1885
+ era?: "short" | "long" | "narrow" | undefined;
1886
+ year?: "numeric" | "2-digit" | undefined;
1887
+ month?: "numeric" | "short" | "long" | "narrow" | "2-digit" | undefined;
1888
+ day?: "numeric" | "2-digit" | undefined;
1889
+ hour?: "numeric" | "2-digit" | undefined;
1890
+ minute?: "numeric" | "2-digit" | undefined;
1891
+ second?: "numeric" | "2-digit" | undefined;
1892
+ timeZoneName?: "short" | "long" | "shortOffset" | "longOffset" | "shortGeneric" | "longGeneric" | undefined;
1893
+ formatMatcher?: "best fit" | "basic" | undefined;
1894
+ hour12?: boolean | undefined;
1895
+ timeZone?: string | undefined;
1896
+ calendar?: string | undefined;
1897
+ dayPeriod?: "short" | "long" | "narrow" | undefined;
1898
+ numberingSystem?: string | undefined;
1899
+ dateStyle?: "short" | "long" | "full" | "medium" | undefined;
1900
+ timeStyle?: "short" | "long" | "full" | "medium" | undefined;
1901
+ hourCycle?: "h11" | "h12" | "h23" | "h24" | undefined;
1902
+ };
1903
+ };
1904
+ }[] | undefined;
1905
+ allowDownload?: boolean | undefined;
1906
+ customVisualCode?: string | undefined;
1349
1907
  } | undefined;
1350
1908
  lastSelectedDatabase?: string | undefined;
1351
1909
  lastSelectedSchema?: string | undefined;