react-semaphor 0.0.174 → 0.0.176

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.
@@ -181,6 +181,12 @@ export declare type ConnectionPolicy = {
181
181
 
182
182
  export declare function createSqlGenConfig(column: TDataColumn, preSqlGen: SqlGen, calc?: AggregateCalc): SqlGen;
183
183
 
184
+ export declare type CurrencyOptions = {
185
+ localeCurrency: string;
186
+ unit?: string;
187
+ options: Intl.NumberFormatOptions;
188
+ };
189
+
184
190
  export declare type CustomCard = CardWithContent | CardWithFooter;
185
191
 
186
192
  export declare function Dashboard(props: DashboardProps): JSX_2.Element;
@@ -244,6 +250,14 @@ export declare const DashboardWC: CustomElementConstructor;
244
250
 
245
251
  export declare const DATE_DATA_TYPES: string[];
246
252
 
253
+ export declare type DateOptions = {
254
+ locale: string;
255
+ format: string;
256
+ options: Intl.DateTimeFormatOptions;
257
+ };
258
+
259
+ export declare type DisplayDataType = 'string' | 'date' | 'number' | 'currency';
260
+
247
261
  declare type EditorStore = {
248
262
  isShowingVisual: boolean;
249
263
  runSql: boolean;
@@ -366,8 +380,27 @@ export declare type NumberAxisFormat = {
366
380
  locale?: string;
367
381
  };
368
382
 
383
+ declare type NumberFormat = {
384
+ pattern?: string;
385
+ currency?: string;
386
+ locale?: string;
387
+ suffix?: string;
388
+ };
389
+
390
+ declare type NumberOptions = {
391
+ precision?: number;
392
+ format?: NumberFormat;
393
+ };
394
+
369
395
  declare type Operation = '=' | '>' | '<' | '>=' | '<=' | '!=' | 'in' | 'not in' | 'like' | 'not like' | 'between' | 'not between' | 'is null' | 'is not null';
370
396
 
397
+ declare type OptionsMap = {
398
+ number: NumberOptions;
399
+ string: StringOptions;
400
+ date: DateOptions;
401
+ currency: CurrencyOptions;
402
+ };
403
+
371
404
  declare type Params = {
372
405
  [key: string]: string | number | string[] | number[];
373
406
  };
@@ -404,6 +437,10 @@ export declare type SqlGen = {
404
437
  dimensions?: string[];
405
438
  };
406
439
 
440
+ declare type StringOptions = {
441
+ maxLength?: number;
442
+ };
443
+
407
444
  /**
408
445
  * Style propeerites for the dashboard
409
446
  */
@@ -430,6 +467,9 @@ export declare type StyleProps = {
430
467
  /** chart options */
431
468
  options?: any;
432
469
  };
470
+ table?: {
471
+ tableHeaderColor?: string;
472
+ };
433
473
  };
434
474
 
435
475
  export declare function Surfboard({ showControls, showFooter, ...rest }: DashboardPlusProps): JSX_2.Element;
@@ -482,6 +522,7 @@ export declare type TCardPreferences = {
482
522
  numberAxisFormat?: NumberAxisFormat;
483
523
  datasetOptions?: TDatasetOptions[];
484
524
  chartOptions?: TChartOptions;
525
+ columnSettings?: TColumnSetting<DisplayDataType>[];
485
526
  };
486
527
 
487
528
  declare type TChartConfiguration = ChartConfiguration;
@@ -511,6 +552,12 @@ export declare type TChartOptions = {
511
552
 
512
553
  declare type TChartType = 'bar' | 'horizontalBar' | 'line' | 'pie' | 'doughnut' | 'radar' | 'polarArea' | 'bubble' | 'scatter' | 'stackedBar' | 'table' | 'kpi' | 'pyramid' | 'custom';
513
554
 
555
+ export declare type TColumnSetting<T extends DisplayDataType> = {
556
+ columnIdx: number;
557
+ type: T;
558
+ options: OptionsMap[T];
559
+ };
560
+
514
561
  export declare type TDashboard = {
515
562
  id: string;
516
563
  title?: string;
@@ -631,6 +678,9 @@ export declare const useDashboardStore: UseBoundStore<Omit<StoreApi<DashboardSto
631
678
  dataset?: any;
632
679
  options?: any;
633
680
  } | undefined;
681
+ table?: {
682
+ tableHeaderColor?: string | undefined;
683
+ } | undefined;
634
684
  } | undefined;
635
685
  filteringCards?: {
636
686
  id: string;
@@ -699,6 +749,66 @@ export declare const useDashboardStore: UseBoundStore<Omit<StoreApi<DashboardSto
699
749
  } | undefined;
700
750
  indexAxis?: "x" | "y" | undefined;
701
751
  } | undefined;
752
+ columnSettings?: {
753
+ columnIdx: number;
754
+ type: DisplayDataType;
755
+ options: {
756
+ precision?: number | undefined;
757
+ format?: {
758
+ pattern?: string | undefined;
759
+ currency?: string | undefined;
760
+ locale?: string | undefined;
761
+ suffix?: string | undefined;
762
+ } | undefined;
763
+ } | {
764
+ maxLength?: number | undefined;
765
+ } | {
766
+ localeCurrency: string;
767
+ unit?: string | undefined;
768
+ options: {
769
+ localeMatcher?: string | undefined;
770
+ style?: string | undefined;
771
+ currency?: string | undefined;
772
+ currencySign?: string | undefined;
773
+ useGrouping?: boolean | undefined;
774
+ minimumIntegerDigits?: number | undefined;
775
+ minimumFractionDigits?: number | undefined;
776
+ maximumFractionDigits?: number | undefined;
777
+ minimumSignificantDigits?: number | undefined;
778
+ maximumSignificantDigits?: number | undefined;
779
+ compactDisplay?: "short" | "long" | undefined;
780
+ notation?: "standard" | "scientific" | "engineering" | "compact" | undefined;
781
+ signDisplay?: "auto" | "never" | "always" | "exceptZero" | undefined;
782
+ unit?: string | undefined;
783
+ unitDisplay?: "short" | "long" | "narrow" | undefined;
784
+ currencyDisplay?: string | undefined;
785
+ };
786
+ } | {
787
+ locale: string;
788
+ format: string;
789
+ options: {
790
+ localeMatcher?: "best fit" | "lookup" | undefined;
791
+ weekday?: "short" | "long" | "narrow" | undefined;
792
+ era?: "short" | "long" | "narrow" | undefined;
793
+ year?: "numeric" | "2-digit" | undefined;
794
+ month?: "numeric" | "short" | "long" | "narrow" | "2-digit" | undefined;
795
+ day?: "numeric" | "2-digit" | undefined;
796
+ hour?: "numeric" | "2-digit" | undefined;
797
+ minute?: "numeric" | "2-digit" | undefined;
798
+ second?: "numeric" | "2-digit" | undefined;
799
+ timeZoneName?: "short" | "long" | "shortOffset" | "longOffset" | "shortGeneric" | "longGeneric" | undefined;
800
+ formatMatcher?: "best fit" | "basic" | undefined;
801
+ hour12?: boolean | undefined;
802
+ timeZone?: string | undefined;
803
+ calendar?: string | undefined;
804
+ dayPeriod?: "short" | "long" | "narrow" | undefined;
805
+ numberingSystem?: string | undefined;
806
+ dateStyle?: "short" | "long" | "full" | "medium" | undefined;
807
+ timeStyle?: "short" | "long" | "full" | "medium" | undefined;
808
+ hourCycle?: "h11" | "h12" | "h23" | "h24" | undefined;
809
+ };
810
+ };
811
+ }[] | undefined;
702
812
  } | undefined;
703
813
  lastSelectedDatabase?: string | undefined;
704
814
  lastSelectedSchema?: string | undefined;
@@ -817,6 +927,66 @@ export declare const useDashboardStore: UseBoundStore<Omit<StoreApi<DashboardSto
817
927
  } | undefined;
818
928
  indexAxis?: "x" | "y" | undefined;
819
929
  } | undefined;
930
+ columnSettings?: {
931
+ columnIdx: number;
932
+ type: DisplayDataType;
933
+ options: {
934
+ precision?: number | undefined;
935
+ format?: {
936
+ pattern?: string | undefined;
937
+ currency?: string | undefined;
938
+ locale?: string | undefined;
939
+ suffix?: string | undefined;
940
+ } | undefined;
941
+ } | {
942
+ maxLength?: number | undefined;
943
+ } | {
944
+ localeCurrency: string;
945
+ unit?: 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
+ } | {
965
+ locale: string;
966
+ format: string;
967
+ options: {
968
+ localeMatcher?: "best fit" | "lookup" | undefined;
969
+ weekday?: "short" | "long" | "narrow" | undefined;
970
+ era?: "short" | "long" | "narrow" | undefined;
971
+ year?: "numeric" | "2-digit" | undefined;
972
+ month?: "numeric" | "short" | "long" | "narrow" | "2-digit" | undefined;
973
+ day?: "numeric" | "2-digit" | undefined;
974
+ hour?: "numeric" | "2-digit" | undefined;
975
+ minute?: "numeric" | "2-digit" | undefined;
976
+ second?: "numeric" | "2-digit" | undefined;
977
+ timeZoneName?: "short" | "long" | "shortOffset" | "longOffset" | "shortGeneric" | "longGeneric" | undefined;
978
+ formatMatcher?: "best fit" | "basic" | undefined;
979
+ hour12?: boolean | undefined;
980
+ timeZone?: string | undefined;
981
+ calendar?: string | undefined;
982
+ dayPeriod?: "short" | "long" | "narrow" | undefined;
983
+ numberingSystem?: string | undefined;
984
+ dateStyle?: "short" | "long" | "full" | "medium" | undefined;
985
+ timeStyle?: "short" | "long" | "full" | "medium" | undefined;
986
+ hourCycle?: "h11" | "h12" | "h23" | "h24" | undefined;
987
+ };
988
+ };
989
+ }[] | undefined;
820
990
  } | undefined;
821
991
  lastSelectedDatabase?: string | undefined;
822
992
  lastSelectedSchema?: string | undefined;
@@ -892,6 +1062,66 @@ export declare const useDashboardStore: UseBoundStore<Omit<StoreApi<DashboardSto
892
1062
  } | undefined;
893
1063
  indexAxis?: "x" | "y" | undefined;
894
1064
  } | undefined;
1065
+ columnSettings?: {
1066
+ columnIdx: number;
1067
+ type: DisplayDataType;
1068
+ options: {
1069
+ precision?: number | undefined;
1070
+ format?: {
1071
+ pattern?: string | undefined;
1072
+ currency?: string | undefined;
1073
+ locale?: string | undefined;
1074
+ suffix?: string | undefined;
1075
+ } | undefined;
1076
+ } | {
1077
+ maxLength?: number | undefined;
1078
+ } | {
1079
+ localeCurrency: string;
1080
+ unit?: string | undefined;
1081
+ options: {
1082
+ localeMatcher?: string | undefined;
1083
+ style?: string | undefined;
1084
+ currency?: string | undefined;
1085
+ currencySign?: string | undefined;
1086
+ useGrouping?: boolean | undefined;
1087
+ minimumIntegerDigits?: number | undefined;
1088
+ minimumFractionDigits?: number | undefined;
1089
+ maximumFractionDigits?: number | undefined;
1090
+ minimumSignificantDigits?: number | undefined;
1091
+ maximumSignificantDigits?: number | undefined;
1092
+ compactDisplay?: "short" | "long" | undefined;
1093
+ notation?: "standard" | "scientific" | "engineering" | "compact" | undefined;
1094
+ signDisplay?: "auto" | "never" | "always" | "exceptZero" | undefined;
1095
+ unit?: string | undefined;
1096
+ unitDisplay?: "short" | "long" | "narrow" | undefined;
1097
+ currencyDisplay?: string | undefined;
1098
+ };
1099
+ } | {
1100
+ locale: string;
1101
+ format: string;
1102
+ options: {
1103
+ localeMatcher?: "best fit" | "lookup" | undefined;
1104
+ weekday?: "short" | "long" | "narrow" | undefined;
1105
+ era?: "short" | "long" | "narrow" | undefined;
1106
+ year?: "numeric" | "2-digit" | undefined;
1107
+ month?: "numeric" | "short" | "long" | "narrow" | "2-digit" | undefined;
1108
+ day?: "numeric" | "2-digit" | undefined;
1109
+ hour?: "numeric" | "2-digit" | undefined;
1110
+ minute?: "numeric" | "2-digit" | undefined;
1111
+ second?: "numeric" | "2-digit" | undefined;
1112
+ timeZoneName?: "short" | "long" | "shortOffset" | "longOffset" | "shortGeneric" | "longGeneric" | undefined;
1113
+ formatMatcher?: "best fit" | "basic" | undefined;
1114
+ hour12?: boolean | undefined;
1115
+ timeZone?: string | undefined;
1116
+ calendar?: string | undefined;
1117
+ dayPeriod?: "short" | "long" | "narrow" | undefined;
1118
+ numberingSystem?: string | undefined;
1119
+ dateStyle?: "short" | "long" | "full" | "medium" | undefined;
1120
+ timeStyle?: "short" | "long" | "full" | "medium" | undefined;
1121
+ hourCycle?: "h11" | "h12" | "h23" | "h24" | undefined;
1122
+ };
1123
+ };
1124
+ }[] | undefined;
895
1125
  } | undefined;
896
1126
  lastSelectedDatabase?: string | undefined;
897
1127
  lastSelectedSchema?: string | undefined;
@@ -922,6 +1152,9 @@ export declare const useDashboardStore: UseBoundStore<Omit<StoreApi<DashboardSto
922
1152
  dataset?: any;
923
1153
  options?: any;
924
1154
  } | undefined;
1155
+ table?: {
1156
+ tableHeaderColor?: string | undefined;
1157
+ } | undefined;
925
1158
  };
926
1159
  dark?: {
927
1160
  dashboardPanel?: string | undefined;
@@ -943,6 +1176,9 @@ export declare const useDashboardStore: UseBoundStore<Omit<StoreApi<DashboardSto
943
1176
  dataset?: any;
944
1177
  options?: any;
945
1178
  } | undefined;
1179
+ table?: {
1180
+ tableHeaderColor?: string | undefined;
1181
+ } | undefined;
946
1182
  } | undefined;
947
1183
  } | undefined;
948
1184
  filters?: {
@@ -1059,6 +1295,66 @@ export declare const useDashboardStore: UseBoundStore<Omit<StoreApi<DashboardSto
1059
1295
  } | undefined;
1060
1296
  indexAxis?: "x" | "y" | undefined;
1061
1297
  } | undefined;
1298
+ columnSettings?: {
1299
+ columnIdx: number;
1300
+ type: DisplayDataType;
1301
+ options: {
1302
+ precision?: number | undefined;
1303
+ format?: {
1304
+ pattern?: string | undefined;
1305
+ currency?: string | undefined;
1306
+ locale?: string | undefined;
1307
+ suffix?: string | undefined;
1308
+ } | undefined;
1309
+ } | {
1310
+ maxLength?: number | undefined;
1311
+ } | {
1312
+ localeCurrency: string;
1313
+ unit?: string | undefined;
1314
+ options: {
1315
+ localeMatcher?: string | undefined;
1316
+ style?: string | undefined;
1317
+ currency?: string | undefined;
1318
+ currencySign?: string | undefined;
1319
+ useGrouping?: boolean | undefined;
1320
+ minimumIntegerDigits?: number | undefined;
1321
+ minimumFractionDigits?: number | undefined;
1322
+ maximumFractionDigits?: number | undefined;
1323
+ minimumSignificantDigits?: number | undefined;
1324
+ maximumSignificantDigits?: number | undefined;
1325
+ compactDisplay?: "short" | "long" | undefined;
1326
+ notation?: "standard" | "scientific" | "engineering" | "compact" | undefined;
1327
+ signDisplay?: "auto" | "never" | "always" | "exceptZero" | undefined;
1328
+ unit?: string | undefined;
1329
+ unitDisplay?: "short" | "long" | "narrow" | undefined;
1330
+ currencyDisplay?: string | undefined;
1331
+ };
1332
+ } | {
1333
+ locale: string;
1334
+ format: string;
1335
+ options: {
1336
+ localeMatcher?: "best fit" | "lookup" | undefined;
1337
+ weekday?: "short" | "long" | "narrow" | undefined;
1338
+ era?: "short" | "long" | "narrow" | undefined;
1339
+ year?: "numeric" | "2-digit" | undefined;
1340
+ month?: "numeric" | "short" | "long" | "narrow" | "2-digit" | undefined;
1341
+ day?: "numeric" | "2-digit" | undefined;
1342
+ hour?: "numeric" | "2-digit" | undefined;
1343
+ minute?: "numeric" | "2-digit" | undefined;
1344
+ second?: "numeric" | "2-digit" | undefined;
1345
+ timeZoneName?: "short" | "long" | "shortOffset" | "longOffset" | "shortGeneric" | "longGeneric" | undefined;
1346
+ formatMatcher?: "best fit" | "basic" | undefined;
1347
+ hour12?: boolean | undefined;
1348
+ timeZone?: string | undefined;
1349
+ calendar?: string | undefined;
1350
+ dayPeriod?: "short" | "long" | "narrow" | undefined;
1351
+ numberingSystem?: string | undefined;
1352
+ dateStyle?: "short" | "long" | "full" | "medium" | undefined;
1353
+ timeStyle?: "short" | "long" | "full" | "medium" | undefined;
1354
+ hourCycle?: "h11" | "h12" | "h23" | "h24" | undefined;
1355
+ };
1356
+ };
1357
+ }[] | undefined;
1062
1358
  } | undefined;
1063
1359
  lastSelectedDatabase?: string | undefined;
1064
1360
  lastSelectedSchema?: string | undefined;
@@ -1334,6 +1630,66 @@ export declare const useEditorStore: UseBoundStore<Omit<StoreApi<EditorStore>, "
1334
1630
  } | undefined;
1335
1631
  indexAxis?: "x" | "y" | undefined;
1336
1632
  } | undefined;
1633
+ columnSettings?: {
1634
+ columnIdx: number;
1635
+ type: DisplayDataType;
1636
+ options: {
1637
+ precision?: number | undefined;
1638
+ format?: {
1639
+ pattern?: string | undefined;
1640
+ currency?: string | undefined;
1641
+ locale?: string | undefined;
1642
+ suffix?: string | undefined;
1643
+ } | undefined;
1644
+ } | {
1645
+ maxLength?: number | undefined;
1646
+ } | {
1647
+ localeCurrency: string;
1648
+ unit?: string | undefined;
1649
+ options: {
1650
+ localeMatcher?: string | undefined;
1651
+ style?: string | undefined;
1652
+ currency?: string | undefined;
1653
+ currencySign?: string | undefined;
1654
+ useGrouping?: boolean | undefined;
1655
+ minimumIntegerDigits?: number | undefined;
1656
+ minimumFractionDigits?: number | undefined;
1657
+ maximumFractionDigits?: number | undefined;
1658
+ minimumSignificantDigits?: number | undefined;
1659
+ maximumSignificantDigits?: number | undefined;
1660
+ compactDisplay?: "short" | "long" | undefined;
1661
+ notation?: "standard" | "scientific" | "engineering" | "compact" | undefined;
1662
+ signDisplay?: "auto" | "never" | "always" | "exceptZero" | undefined;
1663
+ unit?: string | undefined;
1664
+ unitDisplay?: "short" | "long" | "narrow" | undefined;
1665
+ currencyDisplay?: string | undefined;
1666
+ };
1667
+ } | {
1668
+ locale: string;
1669
+ format: string;
1670
+ options: {
1671
+ localeMatcher?: "best fit" | "lookup" | undefined;
1672
+ weekday?: "short" | "long" | "narrow" | undefined;
1673
+ era?: "short" | "long" | "narrow" | undefined;
1674
+ year?: "numeric" | "2-digit" | undefined;
1675
+ month?: "numeric" | "short" | "long" | "narrow" | "2-digit" | undefined;
1676
+ day?: "numeric" | "2-digit" | undefined;
1677
+ hour?: "numeric" | "2-digit" | undefined;
1678
+ minute?: "numeric" | "2-digit" | undefined;
1679
+ second?: "numeric" | "2-digit" | undefined;
1680
+ timeZoneName?: "short" | "long" | "shortOffset" | "longOffset" | "shortGeneric" | "longGeneric" | undefined;
1681
+ formatMatcher?: "best fit" | "basic" | undefined;
1682
+ hour12?: boolean | undefined;
1683
+ timeZone?: string | undefined;
1684
+ calendar?: string | undefined;
1685
+ dayPeriod?: "short" | "long" | "narrow" | undefined;
1686
+ numberingSystem?: string | undefined;
1687
+ dateStyle?: "short" | "long" | "full" | "medium" | undefined;
1688
+ timeStyle?: "short" | "long" | "full" | "medium" | undefined;
1689
+ hourCycle?: "h11" | "h12" | "h23" | "h24" | undefined;
1690
+ };
1691
+ };
1692
+ }[] | undefined;
1337
1693
  } | undefined;
1338
1694
  lastSelectedDatabase?: string | undefined;
1339
1695
  lastSelectedSchema?: string | undefined;
@@ -1409,6 +1765,66 @@ export declare const useEditorStore: UseBoundStore<Omit<StoreApi<EditorStore>, "
1409
1765
  } | undefined;
1410
1766
  indexAxis?: "x" | "y" | undefined;
1411
1767
  } | undefined;
1768
+ columnSettings?: {
1769
+ columnIdx: number;
1770
+ type: DisplayDataType;
1771
+ options: {
1772
+ precision?: number | undefined;
1773
+ format?: {
1774
+ pattern?: string | undefined;
1775
+ currency?: string | undefined;
1776
+ locale?: string | undefined;
1777
+ suffix?: string | undefined;
1778
+ } | undefined;
1779
+ } | {
1780
+ maxLength?: number | undefined;
1781
+ } | {
1782
+ localeCurrency: string;
1783
+ unit?: string | undefined;
1784
+ options: {
1785
+ localeMatcher?: string | undefined;
1786
+ style?: string | undefined;
1787
+ currency?: string | undefined;
1788
+ currencySign?: string | undefined;
1789
+ useGrouping?: boolean | undefined;
1790
+ minimumIntegerDigits?: number | undefined;
1791
+ minimumFractionDigits?: number | undefined;
1792
+ maximumFractionDigits?: number | undefined;
1793
+ minimumSignificantDigits?: number | undefined;
1794
+ maximumSignificantDigits?: number | undefined;
1795
+ compactDisplay?: "short" | "long" | undefined;
1796
+ notation?: "standard" | "scientific" | "engineering" | "compact" | undefined;
1797
+ signDisplay?: "auto" | "never" | "always" | "exceptZero" | undefined;
1798
+ unit?: string | undefined;
1799
+ unitDisplay?: "short" | "long" | "narrow" | undefined;
1800
+ currencyDisplay?: string | undefined;
1801
+ };
1802
+ } | {
1803
+ locale: string;
1804
+ format: string;
1805
+ options: {
1806
+ localeMatcher?: "best fit" | "lookup" | undefined;
1807
+ weekday?: "short" | "long" | "narrow" | undefined;
1808
+ era?: "short" | "long" | "narrow" | undefined;
1809
+ year?: "numeric" | "2-digit" | undefined;
1810
+ month?: "numeric" | "short" | "long" | "narrow" | "2-digit" | undefined;
1811
+ day?: "numeric" | "2-digit" | undefined;
1812
+ hour?: "numeric" | "2-digit" | undefined;
1813
+ minute?: "numeric" | "2-digit" | undefined;
1814
+ second?: "numeric" | "2-digit" | undefined;
1815
+ timeZoneName?: "short" | "long" | "shortOffset" | "longOffset" | "shortGeneric" | "longGeneric" | undefined;
1816
+ formatMatcher?: "best fit" | "basic" | undefined;
1817
+ hour12?: boolean | undefined;
1818
+ timeZone?: string | undefined;
1819
+ calendar?: string | undefined;
1820
+ dayPeriod?: "short" | "long" | "narrow" | undefined;
1821
+ numberingSystem?: string | undefined;
1822
+ dateStyle?: "short" | "long" | "full" | "medium" | undefined;
1823
+ timeStyle?: "short" | "long" | "full" | "medium" | undefined;
1824
+ hourCycle?: "h11" | "h12" | "h23" | "h24" | undefined;
1825
+ };
1826
+ };
1827
+ }[] | undefined;
1412
1828
  } | undefined;
1413
1829
  lastSelectedDatabase?: string | undefined;
1414
1830
  lastSelectedSchema?: string | undefined;
@@ -62,6 +62,12 @@ export declare type ConnectionPolicy = {
62
62
  params: Params;
63
63
  };
64
64
 
65
+ export declare type CurrencyOptions = {
66
+ localeCurrency: string;
67
+ unit?: string;
68
+ options: Intl.NumberFormatOptions;
69
+ };
70
+
65
71
  export declare type CustomCard = CardWithContent | CardWithFooter;
66
72
 
67
73
  declare type DashboardPlusProps = {
@@ -83,6 +89,14 @@ export declare type DashboardProps = {
83
89
  ErrorComponent?: (props: ErrorProps) => React.ReactNode;
84
90
  };
85
91
 
92
+ export declare type DateOptions = {
93
+ locale: string;
94
+ format: string;
95
+ options: Intl.DateTimeFormatOptions;
96
+ };
97
+
98
+ export declare type DisplayDataType = 'string' | 'date' | 'number' | 'currency';
99
+
86
100
  export declare type ErrorProps = {
87
101
  message?: string;
88
102
  };
@@ -138,8 +152,27 @@ export declare type NumberAxisFormat = {
138
152
  locale?: string;
139
153
  };
140
154
 
155
+ declare type NumberFormat = {
156
+ pattern?: string;
157
+ currency?: string;
158
+ locale?: string;
159
+ suffix?: string;
160
+ };
161
+
162
+ declare type NumberOptions = {
163
+ precision?: number;
164
+ format?: NumberFormat;
165
+ };
166
+
141
167
  declare type Operation = '=' | '>' | '<' | '>=' | '<=' | '!=' | 'in' | 'not in' | 'like' | 'not like' | 'between' | 'not between' | 'is null' | 'is not null';
142
168
 
169
+ declare type OptionsMap = {
170
+ number: NumberOptions;
171
+ string: StringOptions;
172
+ date: DateOptions;
173
+ currency: CurrencyOptions;
174
+ };
175
+
143
176
  declare type Params = {
144
177
  [key: string]: string | number | string[] | number[];
145
178
  };
@@ -152,6 +185,10 @@ export declare type SqlGen = {
152
185
  dimensions?: string[];
153
186
  };
154
187
 
188
+ declare type StringOptions = {
189
+ maxLength?: number;
190
+ };
191
+
155
192
  /**
156
193
  * Style propeerites for the dashboard
157
194
  */
@@ -178,6 +215,9 @@ export declare type StyleProps = {
178
215
  /** chart options */
179
216
  options?: any;
180
217
  };
218
+ table?: {
219
+ tableHeaderColor?: string;
220
+ };
181
221
  };
182
222
 
183
223
  export declare function Surfboard({ showControls, showFooter, ...rest }: DashboardPlusProps): JSX_2.Element;
@@ -230,6 +270,7 @@ export declare type TCardPreferences = {
230
270
  numberAxisFormat?: NumberAxisFormat;
231
271
  datasetOptions?: TDatasetOptions[];
232
272
  chartOptions?: TChartOptions;
273
+ columnSettings?: TColumnSetting<DisplayDataType>[];
233
274
  };
234
275
 
235
276
  export declare type TChartOptions = {
@@ -257,6 +298,12 @@ export declare type TChartOptions = {
257
298
 
258
299
  declare type TChartType = 'bar' | 'horizontalBar' | 'line' | 'pie' | 'doughnut' | 'radar' | 'polarArea' | 'bubble' | 'scatter' | 'stackedBar' | 'table' | 'kpi' | 'pyramid' | 'custom';
259
300
 
301
+ export declare type TColumnSetting<T extends DisplayDataType> = {
302
+ columnIdx: number;
303
+ type: T;
304
+ options: OptionsMap[T];
305
+ };
306
+
260
307
  export declare type TDashboard = {
261
308
  id: string;
262
309
  title?: string;