react-semaphor 0.0.177 → 0.0.178
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/{dashboard-plus-v3V_UBb5.js → dashboard-plus-UfBR5acm.js} +1406 -1403
- package/dist/chunks/dashboard-plus-jbL1CmJq.js +205 -0
- package/dist/chunks/{index-vI4DOUqX.js → index-pwZs1bG3.js} +13150 -12989
- package/dist/chunks/index-yuBRAEvg.js +415 -0
- package/dist/dashboard/index.cjs +1 -1
- package/dist/dashboard/index.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +3 -3
- package/dist/style.css +1 -1
- package/dist/surfboard/index.cjs +1 -1
- package/dist/surfboard/index.js +2 -2
- package/dist/types/dashboard.d.ts +14 -19
- package/dist/types/main.d.ts +102 -93
- package/dist/types/surfboard.d.ts +14 -19
- package/dist/types/types.d.ts +14 -19
- package/package.json +1 -1
- package/dist/chunks/dashboard-plus-FtC2s_M3.js +0 -210
- package/dist/chunks/index-RRGldUNx.js +0 -405
package/dist/types/main.d.ts
CHANGED
|
@@ -77,7 +77,8 @@ declare type Actions = {
|
|
|
77
77
|
|
|
78
78
|
declare type Actions_2 = {
|
|
79
79
|
setCardRefreshInterval: (refreshInterval: string) => void;
|
|
80
|
-
setNumberFormat: (
|
|
80
|
+
setNumberFormat: (decimalPlaces: number, currency: string, locale: string, suffix: string) => void;
|
|
81
|
+
setColorRanges: (colorRanges: ColorRange[]) => void;
|
|
81
82
|
setIsShowingVisual: (isShowingVisual: boolean) => void;
|
|
82
83
|
setQueryResultColumns: (columns: string[]) => void;
|
|
83
84
|
setQueryError: (error: string) => void;
|
|
@@ -173,6 +174,12 @@ declare type CardWithFooter = BaseCustomCard & {
|
|
|
173
174
|
|
|
174
175
|
export declare function cleanCard(card: TCard): TCard;
|
|
175
176
|
|
|
177
|
+
export declare type ColorRange = {
|
|
178
|
+
start: number;
|
|
179
|
+
end: number;
|
|
180
|
+
color: string;
|
|
181
|
+
};
|
|
182
|
+
|
|
176
183
|
export declare type ConnectionPolicy = {
|
|
177
184
|
connectionId?: string;
|
|
178
185
|
name: string;
|
|
@@ -181,12 +188,6 @@ export declare type ConnectionPolicy = {
|
|
|
181
188
|
|
|
182
189
|
export declare function createSqlGenConfig(column: TDataColumn, preSqlGen: SqlGen, calc?: AggregateCalc): SqlGen;
|
|
183
190
|
|
|
184
|
-
export declare type CurrencyOptions = {
|
|
185
|
-
localeCurrency: string;
|
|
186
|
-
unit?: string;
|
|
187
|
-
options: Intl.NumberFormatOptions;
|
|
188
|
-
};
|
|
189
|
-
|
|
190
191
|
export declare type CustomCard = CardWithContent | CardWithFooter;
|
|
191
192
|
|
|
192
193
|
export declare function Dashboard(props: DashboardProps): JSX_2.Element;
|
|
@@ -256,7 +257,7 @@ export declare type DateOptions = {
|
|
|
256
257
|
options: Intl.DateTimeFormatOptions;
|
|
257
258
|
};
|
|
258
259
|
|
|
259
|
-
export declare type DisplayDataType = 'string' | 'date' | 'number'
|
|
260
|
+
export declare type DisplayDataType = 'string' | 'date' | 'number';
|
|
260
261
|
|
|
261
262
|
declare type EditorStore = {
|
|
262
263
|
isShowingVisual: boolean;
|
|
@@ -374,22 +375,17 @@ export declare type LoadingProps = {
|
|
|
374
375
|
export declare const NUMBER_DATA_TYPES: string[];
|
|
375
376
|
|
|
376
377
|
export declare type NumberAxisFormat = {
|
|
377
|
-
|
|
378
|
+
decimalPlaces?: number;
|
|
378
379
|
suffix?: string;
|
|
379
380
|
currency?: string;
|
|
380
381
|
locale?: string;
|
|
381
382
|
};
|
|
382
383
|
|
|
383
|
-
declare type
|
|
384
|
-
|
|
384
|
+
export declare type NumberOptions = {
|
|
385
|
+
locale: string;
|
|
385
386
|
currency?: string;
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
};
|
|
389
|
-
|
|
390
|
-
declare type NumberOptions = {
|
|
391
|
-
precision?: number;
|
|
392
|
-
format?: NumberFormat;
|
|
387
|
+
options: Intl.NumberFormatOptions;
|
|
388
|
+
colorRanges?: ColorRange[];
|
|
393
389
|
};
|
|
394
390
|
|
|
395
391
|
declare type Operation = '=' | '>' | '<' | '>=' | '<=' | '!=' | 'in' | 'not in' | 'like' | 'not like' | 'between' | 'not between' | 'is null' | 'is not null';
|
|
@@ -398,7 +394,6 @@ declare type OptionsMap = {
|
|
|
398
394
|
number: NumberOptions;
|
|
399
395
|
string: StringOptions;
|
|
400
396
|
date: DateOptions;
|
|
401
|
-
currency: CurrencyOptions;
|
|
402
397
|
};
|
|
403
398
|
|
|
404
399
|
declare type Params = {
|
|
@@ -513,11 +508,12 @@ export declare type TCardPreferences = {
|
|
|
513
508
|
filterOnClickField?: string;
|
|
514
509
|
filterOnClickColumnIndex?: number;
|
|
515
510
|
formatNumber?: {
|
|
516
|
-
|
|
511
|
+
decimalPlaces?: number;
|
|
517
512
|
currency?: string;
|
|
518
513
|
locale?: string;
|
|
519
514
|
suffix?: string;
|
|
520
515
|
enabled?: boolean | string;
|
|
516
|
+
colorRanges?: ColorRange[];
|
|
521
517
|
};
|
|
522
518
|
numberAxisFormat?: NumberAxisFormat;
|
|
523
519
|
datasetOptions?: TDatasetOptions[];
|
|
@@ -703,14 +699,19 @@ export declare const useDashboardStore: UseBoundStore<Omit<StoreApi<DashboardSto
|
|
|
703
699
|
filterOnClickField?: string | undefined;
|
|
704
700
|
filterOnClickColumnIndex?: number | undefined;
|
|
705
701
|
formatNumber?: {
|
|
706
|
-
|
|
702
|
+
decimalPlaces?: number | undefined;
|
|
707
703
|
currency?: string | undefined;
|
|
708
704
|
locale?: string | undefined;
|
|
709
705
|
suffix?: string | undefined;
|
|
710
706
|
enabled?: string | boolean | undefined;
|
|
707
|
+
colorRanges?: {
|
|
708
|
+
start: number;
|
|
709
|
+
end: number;
|
|
710
|
+
color: string;
|
|
711
|
+
}[] | undefined;
|
|
711
712
|
} | undefined;
|
|
712
713
|
numberAxisFormat?: {
|
|
713
|
-
|
|
714
|
+
decimalPlaces?: number | undefined;
|
|
714
715
|
suffix?: string | undefined;
|
|
715
716
|
currency?: string | undefined;
|
|
716
717
|
locale?: string | undefined;
|
|
@@ -753,18 +754,10 @@ export declare const useDashboardStore: UseBoundStore<Omit<StoreApi<DashboardSto
|
|
|
753
754
|
columnIdx: number;
|
|
754
755
|
type: DisplayDataType;
|
|
755
756
|
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
757
|
maxLength?: number | undefined;
|
|
765
758
|
} | {
|
|
766
|
-
|
|
767
|
-
|
|
759
|
+
locale: string;
|
|
760
|
+
currency?: string | undefined;
|
|
768
761
|
options: {
|
|
769
762
|
localeMatcher?: string | undefined;
|
|
770
763
|
style?: string | undefined;
|
|
@@ -783,6 +776,11 @@ export declare const useDashboardStore: UseBoundStore<Omit<StoreApi<DashboardSto
|
|
|
783
776
|
unitDisplay?: "short" | "long" | "narrow" | undefined;
|
|
784
777
|
currencyDisplay?: string | undefined;
|
|
785
778
|
};
|
|
779
|
+
colorRanges?: {
|
|
780
|
+
start: number;
|
|
781
|
+
end: number;
|
|
782
|
+
color: string;
|
|
783
|
+
}[] | undefined;
|
|
786
784
|
} | {
|
|
787
785
|
locale: string;
|
|
788
786
|
format: string;
|
|
@@ -881,14 +879,19 @@ export declare const useDashboardStore: UseBoundStore<Omit<StoreApi<DashboardSto
|
|
|
881
879
|
filterOnClickField?: string | undefined;
|
|
882
880
|
filterOnClickColumnIndex?: number | undefined;
|
|
883
881
|
formatNumber?: {
|
|
884
|
-
|
|
882
|
+
decimalPlaces?: number | undefined;
|
|
885
883
|
currency?: string | undefined;
|
|
886
884
|
locale?: string | undefined;
|
|
887
885
|
suffix?: string | undefined;
|
|
888
886
|
enabled?: string | boolean | undefined;
|
|
887
|
+
colorRanges?: {
|
|
888
|
+
start: number;
|
|
889
|
+
end: number;
|
|
890
|
+
color: string;
|
|
891
|
+
}[] | undefined;
|
|
889
892
|
} | undefined;
|
|
890
893
|
numberAxisFormat?: {
|
|
891
|
-
|
|
894
|
+
decimalPlaces?: number | undefined;
|
|
892
895
|
suffix?: string | undefined;
|
|
893
896
|
currency?: string | undefined;
|
|
894
897
|
locale?: string | undefined;
|
|
@@ -931,18 +934,10 @@ export declare const useDashboardStore: UseBoundStore<Omit<StoreApi<DashboardSto
|
|
|
931
934
|
columnIdx: number;
|
|
932
935
|
type: DisplayDataType;
|
|
933
936
|
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
937
|
maxLength?: number | undefined;
|
|
943
938
|
} | {
|
|
944
|
-
|
|
945
|
-
|
|
939
|
+
locale: string;
|
|
940
|
+
currency?: string | undefined;
|
|
946
941
|
options: {
|
|
947
942
|
localeMatcher?: string | undefined;
|
|
948
943
|
style?: string | undefined;
|
|
@@ -961,6 +956,11 @@ export declare const useDashboardStore: UseBoundStore<Omit<StoreApi<DashboardSto
|
|
|
961
956
|
unitDisplay?: "short" | "long" | "narrow" | undefined;
|
|
962
957
|
currencyDisplay?: string | undefined;
|
|
963
958
|
};
|
|
959
|
+
colorRanges?: {
|
|
960
|
+
start: number;
|
|
961
|
+
end: number;
|
|
962
|
+
color: string;
|
|
963
|
+
}[] | undefined;
|
|
964
964
|
} | {
|
|
965
965
|
locale: string;
|
|
966
966
|
format: string;
|
|
@@ -1016,14 +1016,19 @@ export declare const useDashboardStore: UseBoundStore<Omit<StoreApi<DashboardSto
|
|
|
1016
1016
|
filterOnClickField?: string | undefined;
|
|
1017
1017
|
filterOnClickColumnIndex?: number | undefined;
|
|
1018
1018
|
formatNumber?: {
|
|
1019
|
-
|
|
1019
|
+
decimalPlaces?: number | undefined;
|
|
1020
1020
|
currency?: string | undefined;
|
|
1021
1021
|
locale?: string | undefined;
|
|
1022
1022
|
suffix?: string | undefined;
|
|
1023
1023
|
enabled?: string | boolean | undefined;
|
|
1024
|
+
colorRanges?: {
|
|
1025
|
+
start: number;
|
|
1026
|
+
end: number;
|
|
1027
|
+
color: string;
|
|
1028
|
+
}[] | undefined;
|
|
1024
1029
|
} | undefined;
|
|
1025
1030
|
numberAxisFormat?: {
|
|
1026
|
-
|
|
1031
|
+
decimalPlaces?: number | undefined;
|
|
1027
1032
|
suffix?: string | undefined;
|
|
1028
1033
|
currency?: string | undefined;
|
|
1029
1034
|
locale?: string | undefined;
|
|
@@ -1066,18 +1071,10 @@ export declare const useDashboardStore: UseBoundStore<Omit<StoreApi<DashboardSto
|
|
|
1066
1071
|
columnIdx: number;
|
|
1067
1072
|
type: DisplayDataType;
|
|
1068
1073
|
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
1074
|
maxLength?: number | undefined;
|
|
1078
1075
|
} | {
|
|
1079
|
-
|
|
1080
|
-
|
|
1076
|
+
locale: string;
|
|
1077
|
+
currency?: string | undefined;
|
|
1081
1078
|
options: {
|
|
1082
1079
|
localeMatcher?: string | undefined;
|
|
1083
1080
|
style?: string | undefined;
|
|
@@ -1096,6 +1093,11 @@ export declare const useDashboardStore: UseBoundStore<Omit<StoreApi<DashboardSto
|
|
|
1096
1093
|
unitDisplay?: "short" | "long" | "narrow" | undefined;
|
|
1097
1094
|
currencyDisplay?: string | undefined;
|
|
1098
1095
|
};
|
|
1096
|
+
colorRanges?: {
|
|
1097
|
+
start: number;
|
|
1098
|
+
end: number;
|
|
1099
|
+
color: string;
|
|
1100
|
+
}[] | undefined;
|
|
1099
1101
|
} | {
|
|
1100
1102
|
locale: string;
|
|
1101
1103
|
format: string;
|
|
@@ -1249,14 +1251,19 @@ export declare const useDashboardStore: UseBoundStore<Omit<StoreApi<DashboardSto
|
|
|
1249
1251
|
filterOnClickField?: string | undefined;
|
|
1250
1252
|
filterOnClickColumnIndex?: number | undefined;
|
|
1251
1253
|
formatNumber?: {
|
|
1252
|
-
|
|
1254
|
+
decimalPlaces?: number | undefined;
|
|
1253
1255
|
currency?: string | undefined;
|
|
1254
1256
|
locale?: string | undefined;
|
|
1255
1257
|
suffix?: string | undefined;
|
|
1256
1258
|
enabled?: string | boolean | undefined;
|
|
1259
|
+
colorRanges?: {
|
|
1260
|
+
start: number;
|
|
1261
|
+
end: number;
|
|
1262
|
+
color: string;
|
|
1263
|
+
}[] | undefined;
|
|
1257
1264
|
} | undefined;
|
|
1258
1265
|
numberAxisFormat?: {
|
|
1259
|
-
|
|
1266
|
+
decimalPlaces?: number | undefined;
|
|
1260
1267
|
suffix?: string | undefined;
|
|
1261
1268
|
currency?: string | undefined;
|
|
1262
1269
|
locale?: string | undefined;
|
|
@@ -1299,18 +1306,10 @@ export declare const useDashboardStore: UseBoundStore<Omit<StoreApi<DashboardSto
|
|
|
1299
1306
|
columnIdx: number;
|
|
1300
1307
|
type: DisplayDataType;
|
|
1301
1308
|
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
1309
|
maxLength?: number | undefined;
|
|
1311
1310
|
} | {
|
|
1312
|
-
|
|
1313
|
-
|
|
1311
|
+
locale: string;
|
|
1312
|
+
currency?: string | undefined;
|
|
1314
1313
|
options: {
|
|
1315
1314
|
localeMatcher?: string | undefined;
|
|
1316
1315
|
style?: string | undefined;
|
|
@@ -1329,6 +1328,11 @@ export declare const useDashboardStore: UseBoundStore<Omit<StoreApi<DashboardSto
|
|
|
1329
1328
|
unitDisplay?: "short" | "long" | "narrow" | undefined;
|
|
1330
1329
|
currencyDisplay?: string | undefined;
|
|
1331
1330
|
};
|
|
1331
|
+
colorRanges?: {
|
|
1332
|
+
start: number;
|
|
1333
|
+
end: number;
|
|
1334
|
+
color: string;
|
|
1335
|
+
}[] | undefined;
|
|
1332
1336
|
} | {
|
|
1333
1337
|
locale: string;
|
|
1334
1338
|
format: string;
|
|
@@ -1518,7 +1522,8 @@ export declare const useEditorStore: UseBoundStore<Omit<StoreApi<EditorStore>, "
|
|
|
1518
1522
|
isSqlRunning: boolean;
|
|
1519
1523
|
actions: {
|
|
1520
1524
|
setCardRefreshInterval: (refreshInterval: string) => void;
|
|
1521
|
-
setNumberFormat: (
|
|
1525
|
+
setNumberFormat: (decimalPlaces: number, currency: string, locale: string, suffix: string) => void;
|
|
1526
|
+
setColorRanges: (colorRanges: ColorRange[]) => void;
|
|
1522
1527
|
setIsShowingVisual: (isShowingVisual: boolean) => void;
|
|
1523
1528
|
setQueryResultColumns: (columns: string[]) => void;
|
|
1524
1529
|
setQueryError: (error: string) => void;
|
|
@@ -1584,14 +1589,19 @@ export declare const useEditorStore: UseBoundStore<Omit<StoreApi<EditorStore>, "
|
|
|
1584
1589
|
filterOnClickField?: string | undefined;
|
|
1585
1590
|
filterOnClickColumnIndex?: number | undefined;
|
|
1586
1591
|
formatNumber?: {
|
|
1587
|
-
|
|
1592
|
+
decimalPlaces?: number | undefined;
|
|
1588
1593
|
currency?: string | undefined;
|
|
1589
1594
|
locale?: string | undefined;
|
|
1590
1595
|
suffix?: string | undefined;
|
|
1591
1596
|
enabled?: string | boolean | undefined;
|
|
1597
|
+
colorRanges?: {
|
|
1598
|
+
start: number;
|
|
1599
|
+
end: number;
|
|
1600
|
+
color: string;
|
|
1601
|
+
}[] | undefined;
|
|
1592
1602
|
} | undefined;
|
|
1593
1603
|
numberAxisFormat?: {
|
|
1594
|
-
|
|
1604
|
+
decimalPlaces?: number | undefined;
|
|
1595
1605
|
suffix?: string | undefined;
|
|
1596
1606
|
currency?: string | undefined;
|
|
1597
1607
|
locale?: string | undefined;
|
|
@@ -1634,18 +1644,10 @@ export declare const useEditorStore: UseBoundStore<Omit<StoreApi<EditorStore>, "
|
|
|
1634
1644
|
columnIdx: number;
|
|
1635
1645
|
type: DisplayDataType;
|
|
1636
1646
|
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
1647
|
maxLength?: number | undefined;
|
|
1646
1648
|
} | {
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
+
locale: string;
|
|
1650
|
+
currency?: string | undefined;
|
|
1649
1651
|
options: {
|
|
1650
1652
|
localeMatcher?: string | undefined;
|
|
1651
1653
|
style?: string | undefined;
|
|
@@ -1664,6 +1666,11 @@ export declare const useEditorStore: UseBoundStore<Omit<StoreApi<EditorStore>, "
|
|
|
1664
1666
|
unitDisplay?: "short" | "long" | "narrow" | undefined;
|
|
1665
1667
|
currencyDisplay?: string | undefined;
|
|
1666
1668
|
};
|
|
1669
|
+
colorRanges?: {
|
|
1670
|
+
start: number;
|
|
1671
|
+
end: number;
|
|
1672
|
+
color: string;
|
|
1673
|
+
}[] | undefined;
|
|
1667
1674
|
} | {
|
|
1668
1675
|
locale: string;
|
|
1669
1676
|
format: string;
|
|
@@ -1719,14 +1726,19 @@ export declare const useEditorStore: UseBoundStore<Omit<StoreApi<EditorStore>, "
|
|
|
1719
1726
|
filterOnClickField?: string | undefined;
|
|
1720
1727
|
filterOnClickColumnIndex?: number | undefined;
|
|
1721
1728
|
formatNumber?: {
|
|
1722
|
-
|
|
1729
|
+
decimalPlaces?: number | undefined;
|
|
1723
1730
|
currency?: string | undefined;
|
|
1724
1731
|
locale?: string | undefined;
|
|
1725
1732
|
suffix?: string | undefined;
|
|
1726
1733
|
enabled?: string | boolean | undefined;
|
|
1734
|
+
colorRanges?: {
|
|
1735
|
+
start: number;
|
|
1736
|
+
end: number;
|
|
1737
|
+
color: string;
|
|
1738
|
+
}[] | undefined;
|
|
1727
1739
|
} | undefined;
|
|
1728
1740
|
numberAxisFormat?: {
|
|
1729
|
-
|
|
1741
|
+
decimalPlaces?: number | undefined;
|
|
1730
1742
|
suffix?: string | undefined;
|
|
1731
1743
|
currency?: string | undefined;
|
|
1732
1744
|
locale?: string | undefined;
|
|
@@ -1769,18 +1781,10 @@ export declare const useEditorStore: UseBoundStore<Omit<StoreApi<EditorStore>, "
|
|
|
1769
1781
|
columnIdx: number;
|
|
1770
1782
|
type: DisplayDataType;
|
|
1771
1783
|
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
1784
|
maxLength?: number | undefined;
|
|
1781
1785
|
} | {
|
|
1782
|
-
|
|
1783
|
-
|
|
1786
|
+
locale: string;
|
|
1787
|
+
currency?: string | undefined;
|
|
1784
1788
|
options: {
|
|
1785
1789
|
localeMatcher?: string | undefined;
|
|
1786
1790
|
style?: string | undefined;
|
|
@@ -1799,6 +1803,11 @@ export declare const useEditorStore: UseBoundStore<Omit<StoreApi<EditorStore>, "
|
|
|
1799
1803
|
unitDisplay?: "short" | "long" | "narrow" | undefined;
|
|
1800
1804
|
currencyDisplay?: string | undefined;
|
|
1801
1805
|
};
|
|
1806
|
+
colorRanges?: {
|
|
1807
|
+
start: number;
|
|
1808
|
+
end: number;
|
|
1809
|
+
color: string;
|
|
1810
|
+
}[] | undefined;
|
|
1802
1811
|
} | {
|
|
1803
1812
|
locale: string;
|
|
1804
1813
|
format: string;
|
|
@@ -56,18 +56,18 @@ declare type CardWithFooter = BaseCustomCard & {
|
|
|
56
56
|
}>;
|
|
57
57
|
};
|
|
58
58
|
|
|
59
|
+
export declare type ColorRange = {
|
|
60
|
+
start: number;
|
|
61
|
+
end: number;
|
|
62
|
+
color: string;
|
|
63
|
+
};
|
|
64
|
+
|
|
59
65
|
export declare type ConnectionPolicy = {
|
|
60
66
|
connectionId?: string;
|
|
61
67
|
name: string;
|
|
62
68
|
params: Params;
|
|
63
69
|
};
|
|
64
70
|
|
|
65
|
-
export declare type CurrencyOptions = {
|
|
66
|
-
localeCurrency: string;
|
|
67
|
-
unit?: string;
|
|
68
|
-
options: Intl.NumberFormatOptions;
|
|
69
|
-
};
|
|
70
|
-
|
|
71
71
|
export declare type CustomCard = CardWithContent | CardWithFooter;
|
|
72
72
|
|
|
73
73
|
declare type DashboardPlusProps = {
|
|
@@ -95,7 +95,7 @@ export declare type DateOptions = {
|
|
|
95
95
|
options: Intl.DateTimeFormatOptions;
|
|
96
96
|
};
|
|
97
97
|
|
|
98
|
-
export declare type DisplayDataType = 'string' | 'date' | 'number'
|
|
98
|
+
export declare type DisplayDataType = 'string' | 'date' | 'number';
|
|
99
99
|
|
|
100
100
|
export declare type ErrorProps = {
|
|
101
101
|
message?: string;
|
|
@@ -146,22 +146,17 @@ export declare type LoadingProps = {
|
|
|
146
146
|
};
|
|
147
147
|
|
|
148
148
|
export declare type NumberAxisFormat = {
|
|
149
|
-
|
|
149
|
+
decimalPlaces?: number;
|
|
150
150
|
suffix?: string;
|
|
151
151
|
currency?: string;
|
|
152
152
|
locale?: string;
|
|
153
153
|
};
|
|
154
154
|
|
|
155
|
-
declare type
|
|
156
|
-
|
|
155
|
+
export declare type NumberOptions = {
|
|
156
|
+
locale: string;
|
|
157
157
|
currency?: string;
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
};
|
|
161
|
-
|
|
162
|
-
declare type NumberOptions = {
|
|
163
|
-
precision?: number;
|
|
164
|
-
format?: NumberFormat;
|
|
158
|
+
options: Intl.NumberFormatOptions;
|
|
159
|
+
colorRanges?: ColorRange[];
|
|
165
160
|
};
|
|
166
161
|
|
|
167
162
|
declare type Operation = '=' | '>' | '<' | '>=' | '<=' | '!=' | 'in' | 'not in' | 'like' | 'not like' | 'between' | 'not between' | 'is null' | 'is not null';
|
|
@@ -170,7 +165,6 @@ declare type OptionsMap = {
|
|
|
170
165
|
number: NumberOptions;
|
|
171
166
|
string: StringOptions;
|
|
172
167
|
date: DateOptions;
|
|
173
|
-
currency: CurrencyOptions;
|
|
174
168
|
};
|
|
175
169
|
|
|
176
170
|
declare type Params = {
|
|
@@ -261,11 +255,12 @@ export declare type TCardPreferences = {
|
|
|
261
255
|
filterOnClickField?: string;
|
|
262
256
|
filterOnClickColumnIndex?: number;
|
|
263
257
|
formatNumber?: {
|
|
264
|
-
|
|
258
|
+
decimalPlaces?: number;
|
|
265
259
|
currency?: string;
|
|
266
260
|
locale?: string;
|
|
267
261
|
suffix?: string;
|
|
268
262
|
enabled?: boolean | string;
|
|
263
|
+
colorRanges?: ColorRange[];
|
|
269
264
|
};
|
|
270
265
|
numberAxisFormat?: NumberAxisFormat;
|
|
271
266
|
datasetOptions?: TDatasetOptions[];
|
package/dist/types/types.d.ts
CHANGED
|
@@ -55,18 +55,18 @@ declare type CardWithFooter = BaseCustomCard & {
|
|
|
55
55
|
}>;
|
|
56
56
|
};
|
|
57
57
|
|
|
58
|
+
export declare type ColorRange = {
|
|
59
|
+
start: number;
|
|
60
|
+
end: number;
|
|
61
|
+
color: string;
|
|
62
|
+
};
|
|
63
|
+
|
|
58
64
|
export declare type ConnectionPolicy = {
|
|
59
65
|
connectionId?: string;
|
|
60
66
|
name: string;
|
|
61
67
|
params: Params;
|
|
62
68
|
};
|
|
63
69
|
|
|
64
|
-
export declare type CurrencyOptions = {
|
|
65
|
-
localeCurrency: string;
|
|
66
|
-
unit?: string;
|
|
67
|
-
options: Intl.NumberFormatOptions;
|
|
68
|
-
};
|
|
69
|
-
|
|
70
70
|
export declare type CustomCard = CardWithContent | CardWithFooter;
|
|
71
71
|
|
|
72
72
|
export declare type DashboardProps = {
|
|
@@ -89,7 +89,7 @@ export declare type DateOptions = {
|
|
|
89
89
|
options: Intl.DateTimeFormatOptions;
|
|
90
90
|
};
|
|
91
91
|
|
|
92
|
-
export declare type DisplayDataType = 'string' | 'date' | 'number'
|
|
92
|
+
export declare type DisplayDataType = 'string' | 'date' | 'number';
|
|
93
93
|
|
|
94
94
|
export declare type ErrorProps = {
|
|
95
95
|
message?: string;
|
|
@@ -140,22 +140,17 @@ export declare type LoadingProps = {
|
|
|
140
140
|
};
|
|
141
141
|
|
|
142
142
|
export declare type NumberAxisFormat = {
|
|
143
|
-
|
|
143
|
+
decimalPlaces?: number;
|
|
144
144
|
suffix?: string;
|
|
145
145
|
currency?: string;
|
|
146
146
|
locale?: string;
|
|
147
147
|
};
|
|
148
148
|
|
|
149
|
-
declare type
|
|
150
|
-
|
|
149
|
+
export declare type NumberOptions = {
|
|
150
|
+
locale: string;
|
|
151
151
|
currency?: string;
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
};
|
|
155
|
-
|
|
156
|
-
declare type NumberOptions = {
|
|
157
|
-
precision?: number;
|
|
158
|
-
format?: NumberFormat;
|
|
152
|
+
options: Intl.NumberFormatOptions;
|
|
153
|
+
colorRanges?: ColorRange[];
|
|
159
154
|
};
|
|
160
155
|
|
|
161
156
|
declare type Operation = '=' | '>' | '<' | '>=' | '<=' | '!=' | 'in' | 'not in' | 'like' | 'not like' | 'between' | 'not between' | 'is null' | 'is not null';
|
|
@@ -164,7 +159,6 @@ declare type OptionsMap = {
|
|
|
164
159
|
number: NumberOptions;
|
|
165
160
|
string: StringOptions;
|
|
166
161
|
date: DateOptions;
|
|
167
|
-
currency: CurrencyOptions;
|
|
168
162
|
};
|
|
169
163
|
|
|
170
164
|
declare type Params = {
|
|
@@ -253,11 +247,12 @@ export declare type TCardPreferences = {
|
|
|
253
247
|
filterOnClickField?: string;
|
|
254
248
|
filterOnClickColumnIndex?: number;
|
|
255
249
|
formatNumber?: {
|
|
256
|
-
|
|
250
|
+
decimalPlaces?: number;
|
|
257
251
|
currency?: string;
|
|
258
252
|
locale?: string;
|
|
259
253
|
suffix?: string;
|
|
260
254
|
enabled?: boolean | string;
|
|
255
|
+
colorRanges?: ColorRange[];
|
|
261
256
|
};
|
|
262
257
|
numberAxisFormat?: NumberAxisFormat;
|
|
263
258
|
datasetOptions?: TDatasetOptions[];
|