semaphor 0.0.47 → 0.0.48

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