semaphor 0.0.115 → 0.0.117
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-Dq0emGUx.js → dashboard-plus-CdWL_lpU.js} +8804 -6629
- package/dist/chunks/dashboard-plus-D7xUisoo.js +426 -0
- package/dist/chunks/index-BRrl9Afb.js +648 -0
- package/dist/chunks/{index-BnOcxtLr.js → index-DNate4Ox.js} +20365 -19421
- package/dist/dashboard/index.cjs +1 -1
- package/dist/dashboard/index.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +2 -2
- package/dist/style.css +1 -1
- package/dist/surfboard/index.cjs +1 -1
- package/dist/surfboard/index.js +1 -1
- package/dist/types/dashboard.d.ts +83 -1
- package/dist/types/main.d.ts +83 -14
- package/dist/types/surfboard.d.ts +83 -1
- package/dist/types/types.d.ts +83 -1
- package/package.json +1 -1
- package/dist/chunks/dashboard-plus-mEznHmO7.js +0 -435
- package/dist/chunks/index-CDUnGIon.js +0 -648
package/dist/surfboard/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../chunks/dashboard-plus-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../chunks/dashboard-plus-D7xUisoo.js"),r=require("../types/index.cjs");exports.Surfboard=e.DashboardPlus;exports.EMPTY_SELECTION=r.EMPTY_SELECTION;
|
package/dist/surfboard/index.js
CHANGED
|
@@ -26,6 +26,25 @@ export declare type AuthToken = {
|
|
|
26
26
|
refreshToken?: string;
|
|
27
27
|
};
|
|
28
28
|
|
|
29
|
+
export declare type AxisConfig = {
|
|
30
|
+
enabled?: boolean;
|
|
31
|
+
name?: {
|
|
32
|
+
enabled: boolean;
|
|
33
|
+
text?: string;
|
|
34
|
+
};
|
|
35
|
+
position?: 'auto' | 'top' | 'bottom' | 'left' | 'right';
|
|
36
|
+
labels?: {
|
|
37
|
+
enabled: boolean;
|
|
38
|
+
rotation?: 'auto' | 0 | 45 | 90 | -45 | -90;
|
|
39
|
+
};
|
|
40
|
+
formatOptions?: TFormatOptions;
|
|
41
|
+
scale?: {
|
|
42
|
+
min?: number | 'auto';
|
|
43
|
+
max?: number | 'auto';
|
|
44
|
+
stepSize?: number | 'auto';
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
|
|
29
48
|
declare interface BaseColumn {
|
|
30
49
|
id: string;
|
|
31
50
|
name: string;
|
|
@@ -152,6 +171,10 @@ declare interface ClickFilterInteraction {
|
|
|
152
171
|
label?: string;
|
|
153
172
|
}
|
|
154
173
|
|
|
174
|
+
export declare type ColorConfig = {
|
|
175
|
+
segments: Record<string, string>;
|
|
176
|
+
};
|
|
177
|
+
|
|
155
178
|
export declare type ColorRange = {
|
|
156
179
|
start: number;
|
|
157
180
|
end: number;
|
|
@@ -587,7 +610,9 @@ declare interface MetricField extends Field {
|
|
|
587
610
|
}
|
|
588
611
|
}
|
|
589
612
|
*/
|
|
590
|
-
parameters?:
|
|
613
|
+
parameters?: {
|
|
614
|
+
filters?: FilterGroup;
|
|
615
|
+
};
|
|
591
616
|
aliasTemplate?: string;
|
|
592
617
|
valueAliases?: Record<string, string>;
|
|
593
618
|
}
|
|
@@ -809,6 +834,10 @@ export declare type TCardPreferences = {
|
|
|
809
834
|
datasetOptions?: TDatasetOptions[];
|
|
810
835
|
chartOptions?: TChartOptions;
|
|
811
836
|
columnSettings?: TColumnSetting<DisplayDataType>[];
|
|
837
|
+
colorConfig?: ColorConfig;
|
|
838
|
+
xAxisConfig?: AxisConfig;
|
|
839
|
+
yAxisConfig?: AxisConfig;
|
|
840
|
+
dataLabelsConfig?: TDataLabelsConfig;
|
|
812
841
|
tablePrefs?: TablePreferences;
|
|
813
842
|
allowDownload?: boolean;
|
|
814
843
|
customVisualCode?: string;
|
|
@@ -828,6 +857,27 @@ export declare type TCardPreferences = {
|
|
|
828
857
|
kpiVisualOptions?: {
|
|
829
858
|
lowerIsBetter?: boolean;
|
|
830
859
|
countryLogoId?: string;
|
|
860
|
+
formatOptions?: TFormatOptions;
|
|
861
|
+
metricComparison?: {
|
|
862
|
+
enabled?: boolean;
|
|
863
|
+
calculationType?: 'difference' | 'change' | 'change_difference' | 'ratio';
|
|
864
|
+
formatOptions?: TFormatOptions;
|
|
865
|
+
showArrow?: boolean;
|
|
866
|
+
showColor?: boolean;
|
|
867
|
+
conditionalLabel?: boolean;
|
|
868
|
+
labelName?: string;
|
|
869
|
+
position?: 'left' | 'right' | 'top';
|
|
870
|
+
conditionalLabels?: {
|
|
871
|
+
increase?: string;
|
|
872
|
+
decrease?: string;
|
|
873
|
+
noChange?: string;
|
|
874
|
+
};
|
|
875
|
+
colorConfig?: {
|
|
876
|
+
increase?: 'green' | 'red' | 'neutral' | string;
|
|
877
|
+
decrease?: 'green' | 'red' | 'neutral' | string;
|
|
878
|
+
noChange?: 'green' | 'red' | 'neutral' | string;
|
|
879
|
+
};
|
|
880
|
+
};
|
|
831
881
|
};
|
|
832
882
|
pivotTableOptions?: {
|
|
833
883
|
showRowTotals?: boolean;
|
|
@@ -928,6 +978,25 @@ export declare type TDataColumn = {
|
|
|
928
978
|
description?: string;
|
|
929
979
|
};
|
|
930
980
|
|
|
981
|
+
export declare type TDataLabelsConfig = {
|
|
982
|
+
enabled?: boolean;
|
|
983
|
+
position?: 'center' | 'top' | 'bottom' | 'left' | 'right' | 'auto' | 'custom';
|
|
984
|
+
anchor?: 'center' | 'start' | 'end';
|
|
985
|
+
align?: 'center' | 'start' | 'end' | 'top' | 'bottom' | number;
|
|
986
|
+
display?: 'auto' | boolean;
|
|
987
|
+
format?: 'auto' | 'number' | 'currency' | 'percent' | 'none';
|
|
988
|
+
formatOptions?: TFormatOptions;
|
|
989
|
+
font?: {
|
|
990
|
+
size?: number;
|
|
991
|
+
weight?: 'normal' | 'bold';
|
|
992
|
+
};
|
|
993
|
+
color?: 'auto' | string;
|
|
994
|
+
clamp?: boolean;
|
|
995
|
+
clip?: boolean;
|
|
996
|
+
rotation?: number;
|
|
997
|
+
showTotal?: boolean;
|
|
998
|
+
};
|
|
999
|
+
|
|
931
1000
|
export declare type TDatasetOptions = {
|
|
932
1001
|
idx: number;
|
|
933
1002
|
type?: 'bar' | 'line';
|
|
@@ -970,6 +1039,19 @@ declare type TFilter = {
|
|
|
970
1039
|
|
|
971
1040
|
declare type TFilterValue = FilterForString | FilterForEqual | FilterForCompare | FilterForBetween | FilterForIn | FilterForDate;
|
|
972
1041
|
|
|
1042
|
+
export declare type TFormatOptions = {
|
|
1043
|
+
type?: 'auto' | 'number' | 'currency' | 'percent' | 'scientific' | 'date';
|
|
1044
|
+
decimalPlaces?: number;
|
|
1045
|
+
currency?: string;
|
|
1046
|
+
locale?: string;
|
|
1047
|
+
prefix?: string;
|
|
1048
|
+
suffix?: string;
|
|
1049
|
+
useSuffix?: boolean;
|
|
1050
|
+
negativeInParentheses?: boolean;
|
|
1051
|
+
multiplyBy?: number;
|
|
1052
|
+
dateFormat?: string;
|
|
1053
|
+
};
|
|
1054
|
+
|
|
973
1055
|
export declare type TFrame = {
|
|
974
1056
|
id: string;
|
|
975
1057
|
filterId?: string;
|
package/dist/types/main.d.ts
CHANGED
|
@@ -231,6 +231,25 @@ export declare type AuthToken = {
|
|
|
231
231
|
refreshToken?: string;
|
|
232
232
|
};
|
|
233
233
|
|
|
234
|
+
export declare type AxisConfig = {
|
|
235
|
+
enabled?: boolean;
|
|
236
|
+
name?: {
|
|
237
|
+
enabled: boolean;
|
|
238
|
+
text?: string;
|
|
239
|
+
};
|
|
240
|
+
position?: 'auto' | 'top' | 'bottom' | 'left' | 'right';
|
|
241
|
+
labels?: {
|
|
242
|
+
enabled: boolean;
|
|
243
|
+
rotation?: 'auto' | 0 | 45 | 90 | -45 | -90;
|
|
244
|
+
};
|
|
245
|
+
formatOptions?: TFormatOptions;
|
|
246
|
+
scale?: {
|
|
247
|
+
min?: number | 'auto';
|
|
248
|
+
max?: number | 'auto';
|
|
249
|
+
stepSize?: number | 'auto';
|
|
250
|
+
};
|
|
251
|
+
};
|
|
252
|
+
|
|
234
253
|
export declare interface BaseColumn {
|
|
235
254
|
id: string;
|
|
236
255
|
name: string;
|
|
@@ -361,6 +380,10 @@ declare interface ClickFilterInteraction {
|
|
|
361
380
|
label?: string;
|
|
362
381
|
}
|
|
363
382
|
|
|
383
|
+
export declare type ColorConfig = {
|
|
384
|
+
segments: Record<string, string>;
|
|
385
|
+
};
|
|
386
|
+
|
|
364
387
|
export declare type ColorRange = {
|
|
365
388
|
start: number;
|
|
366
389
|
end: number;
|
|
@@ -403,13 +426,6 @@ declare interface ColumnSettings {
|
|
|
403
426
|
|
|
404
427
|
declare type ColumnSettingsMap = Record<string, ColumnSettings>;
|
|
405
428
|
|
|
406
|
-
export declare interface ColumnSubtotalMeta {
|
|
407
|
-
alias: string;
|
|
408
|
-
subtotalLevel?: string;
|
|
409
|
-
isColumnSubtotal?: boolean;
|
|
410
|
-
isColumnTotal?: boolean;
|
|
411
|
-
}
|
|
412
|
-
|
|
413
429
|
export declare type ColumnType = 'string' | 'number' | 'date';
|
|
414
430
|
|
|
415
431
|
declare type ComboBoxOption = {
|
|
@@ -1067,7 +1083,9 @@ export declare interface MetricField extends Field {
|
|
|
1067
1083
|
}
|
|
1068
1084
|
}
|
|
1069
1085
|
*/
|
|
1070
|
-
parameters?:
|
|
1086
|
+
parameters?: {
|
|
1087
|
+
filters?: FilterGroup;
|
|
1088
|
+
};
|
|
1071
1089
|
aliasTemplate?: string;
|
|
1072
1090
|
valueAliases?: Record<string, string>;
|
|
1073
1091
|
}
|
|
@@ -1162,12 +1180,6 @@ export declare enum PivotMarkerEnum {
|
|
|
1162
1180
|
ALL = "__ALL__"
|
|
1163
1181
|
}
|
|
1164
1182
|
|
|
1165
|
-
export declare interface PivotRowMetadata {
|
|
1166
|
-
isSubtotal?: boolean;
|
|
1167
|
-
subtotalLevel?: string | null;
|
|
1168
|
-
isGrandTotal?: boolean;
|
|
1169
|
-
}
|
|
1170
|
-
|
|
1171
1183
|
export declare type Placeholders = {
|
|
1172
1184
|
/**
|
|
1173
1185
|
* Placeholder for the card when there are no records to display.
|
|
@@ -1419,6 +1431,10 @@ export declare type TCardPreferences = {
|
|
|
1419
1431
|
datasetOptions?: TDatasetOptions[];
|
|
1420
1432
|
chartOptions?: TChartOptions;
|
|
1421
1433
|
columnSettings?: TColumnSetting<DisplayDataType>[];
|
|
1434
|
+
colorConfig?: ColorConfig;
|
|
1435
|
+
xAxisConfig?: AxisConfig;
|
|
1436
|
+
yAxisConfig?: AxisConfig;
|
|
1437
|
+
dataLabelsConfig?: TDataLabelsConfig;
|
|
1422
1438
|
tablePrefs?: TablePreferences;
|
|
1423
1439
|
allowDownload?: boolean;
|
|
1424
1440
|
customVisualCode?: string;
|
|
@@ -1438,6 +1454,27 @@ export declare type TCardPreferences = {
|
|
|
1438
1454
|
kpiVisualOptions?: {
|
|
1439
1455
|
lowerIsBetter?: boolean;
|
|
1440
1456
|
countryLogoId?: string;
|
|
1457
|
+
formatOptions?: TFormatOptions;
|
|
1458
|
+
metricComparison?: {
|
|
1459
|
+
enabled?: boolean;
|
|
1460
|
+
calculationType?: 'difference' | 'change' | 'change_difference' | 'ratio';
|
|
1461
|
+
formatOptions?: TFormatOptions;
|
|
1462
|
+
showArrow?: boolean;
|
|
1463
|
+
showColor?: boolean;
|
|
1464
|
+
conditionalLabel?: boolean;
|
|
1465
|
+
labelName?: string;
|
|
1466
|
+
position?: 'left' | 'right' | 'top';
|
|
1467
|
+
conditionalLabels?: {
|
|
1468
|
+
increase?: string;
|
|
1469
|
+
decrease?: string;
|
|
1470
|
+
noChange?: string;
|
|
1471
|
+
};
|
|
1472
|
+
colorConfig?: {
|
|
1473
|
+
increase?: 'green' | 'red' | 'neutral' | string;
|
|
1474
|
+
decrease?: 'green' | 'red' | 'neutral' | string;
|
|
1475
|
+
noChange?: 'green' | 'red' | 'neutral' | string;
|
|
1476
|
+
};
|
|
1477
|
+
};
|
|
1441
1478
|
};
|
|
1442
1479
|
pivotTableOptions?: {
|
|
1443
1480
|
showRowTotals?: boolean;
|
|
@@ -1540,6 +1577,25 @@ export declare type TDataColumn = {
|
|
|
1540
1577
|
description?: string;
|
|
1541
1578
|
};
|
|
1542
1579
|
|
|
1580
|
+
export declare type TDataLabelsConfig = {
|
|
1581
|
+
enabled?: boolean;
|
|
1582
|
+
position?: 'center' | 'top' | 'bottom' | 'left' | 'right' | 'auto' | 'custom';
|
|
1583
|
+
anchor?: 'center' | 'start' | 'end';
|
|
1584
|
+
align?: 'center' | 'start' | 'end' | 'top' | 'bottom' | number;
|
|
1585
|
+
display?: 'auto' | boolean;
|
|
1586
|
+
format?: 'auto' | 'number' | 'currency' | 'percent' | 'none';
|
|
1587
|
+
formatOptions?: TFormatOptions;
|
|
1588
|
+
font?: {
|
|
1589
|
+
size?: number;
|
|
1590
|
+
weight?: 'normal' | 'bold';
|
|
1591
|
+
};
|
|
1592
|
+
color?: 'auto' | string;
|
|
1593
|
+
clamp?: boolean;
|
|
1594
|
+
clip?: boolean;
|
|
1595
|
+
rotation?: number;
|
|
1596
|
+
showTotal?: boolean;
|
|
1597
|
+
};
|
|
1598
|
+
|
|
1543
1599
|
export declare type TDatasetOptions = {
|
|
1544
1600
|
idx: number;
|
|
1545
1601
|
type?: 'bar' | 'line';
|
|
@@ -1582,6 +1638,19 @@ declare type TFilter = {
|
|
|
1582
1638
|
|
|
1583
1639
|
export declare type TFilterValue = FilterForString | FilterForEqual | FilterForCompare | FilterForBetween | FilterForIn | FilterForDate;
|
|
1584
1640
|
|
|
1641
|
+
export declare type TFormatOptions = {
|
|
1642
|
+
type?: 'auto' | 'number' | 'currency' | 'percent' | 'scientific' | 'date';
|
|
1643
|
+
decimalPlaces?: number;
|
|
1644
|
+
currency?: string;
|
|
1645
|
+
locale?: string;
|
|
1646
|
+
prefix?: string;
|
|
1647
|
+
suffix?: string;
|
|
1648
|
+
useSuffix?: boolean;
|
|
1649
|
+
negativeInParentheses?: boolean;
|
|
1650
|
+
multiplyBy?: number;
|
|
1651
|
+
dateFormat?: string;
|
|
1652
|
+
};
|
|
1653
|
+
|
|
1585
1654
|
export declare type TFrame = {
|
|
1586
1655
|
id: string;
|
|
1587
1656
|
filterId?: string;
|
|
@@ -26,6 +26,25 @@ export declare type AuthToken = {
|
|
|
26
26
|
refreshToken?: string;
|
|
27
27
|
};
|
|
28
28
|
|
|
29
|
+
export declare type AxisConfig = {
|
|
30
|
+
enabled?: boolean;
|
|
31
|
+
name?: {
|
|
32
|
+
enabled: boolean;
|
|
33
|
+
text?: string;
|
|
34
|
+
};
|
|
35
|
+
position?: 'auto' | 'top' | 'bottom' | 'left' | 'right';
|
|
36
|
+
labels?: {
|
|
37
|
+
enabled: boolean;
|
|
38
|
+
rotation?: 'auto' | 0 | 45 | 90 | -45 | -90;
|
|
39
|
+
};
|
|
40
|
+
formatOptions?: TFormatOptions;
|
|
41
|
+
scale?: {
|
|
42
|
+
min?: number | 'auto';
|
|
43
|
+
max?: number | 'auto';
|
|
44
|
+
stepSize?: number | 'auto';
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
|
|
29
48
|
declare interface BaseColumn {
|
|
30
49
|
id: string;
|
|
31
50
|
name: string;
|
|
@@ -152,6 +171,10 @@ declare interface ClickFilterInteraction {
|
|
|
152
171
|
label?: string;
|
|
153
172
|
}
|
|
154
173
|
|
|
174
|
+
export declare type ColorConfig = {
|
|
175
|
+
segments: Record<string, string>;
|
|
176
|
+
};
|
|
177
|
+
|
|
155
178
|
export declare type ColorRange = {
|
|
156
179
|
start: number;
|
|
157
180
|
end: number;
|
|
@@ -590,7 +613,9 @@ declare interface MetricField extends Field {
|
|
|
590
613
|
}
|
|
591
614
|
}
|
|
592
615
|
*/
|
|
593
|
-
parameters?:
|
|
616
|
+
parameters?: {
|
|
617
|
+
filters?: FilterGroup;
|
|
618
|
+
};
|
|
594
619
|
aliasTemplate?: string;
|
|
595
620
|
valueAliases?: Record<string, string>;
|
|
596
621
|
}
|
|
@@ -814,6 +839,10 @@ export declare type TCardPreferences = {
|
|
|
814
839
|
datasetOptions?: TDatasetOptions[];
|
|
815
840
|
chartOptions?: TChartOptions;
|
|
816
841
|
columnSettings?: TColumnSetting<DisplayDataType>[];
|
|
842
|
+
colorConfig?: ColorConfig;
|
|
843
|
+
xAxisConfig?: AxisConfig;
|
|
844
|
+
yAxisConfig?: AxisConfig;
|
|
845
|
+
dataLabelsConfig?: TDataLabelsConfig;
|
|
817
846
|
tablePrefs?: TablePreferences;
|
|
818
847
|
allowDownload?: boolean;
|
|
819
848
|
customVisualCode?: string;
|
|
@@ -833,6 +862,27 @@ export declare type TCardPreferences = {
|
|
|
833
862
|
kpiVisualOptions?: {
|
|
834
863
|
lowerIsBetter?: boolean;
|
|
835
864
|
countryLogoId?: string;
|
|
865
|
+
formatOptions?: TFormatOptions;
|
|
866
|
+
metricComparison?: {
|
|
867
|
+
enabled?: boolean;
|
|
868
|
+
calculationType?: 'difference' | 'change' | 'change_difference' | 'ratio';
|
|
869
|
+
formatOptions?: TFormatOptions;
|
|
870
|
+
showArrow?: boolean;
|
|
871
|
+
showColor?: boolean;
|
|
872
|
+
conditionalLabel?: boolean;
|
|
873
|
+
labelName?: string;
|
|
874
|
+
position?: 'left' | 'right' | 'top';
|
|
875
|
+
conditionalLabels?: {
|
|
876
|
+
increase?: string;
|
|
877
|
+
decrease?: string;
|
|
878
|
+
noChange?: string;
|
|
879
|
+
};
|
|
880
|
+
colorConfig?: {
|
|
881
|
+
increase?: 'green' | 'red' | 'neutral' | string;
|
|
882
|
+
decrease?: 'green' | 'red' | 'neutral' | string;
|
|
883
|
+
noChange?: 'green' | 'red' | 'neutral' | string;
|
|
884
|
+
};
|
|
885
|
+
};
|
|
836
886
|
};
|
|
837
887
|
pivotTableOptions?: {
|
|
838
888
|
showRowTotals?: boolean;
|
|
@@ -933,6 +983,25 @@ export declare type TDataColumn = {
|
|
|
933
983
|
description?: string;
|
|
934
984
|
};
|
|
935
985
|
|
|
986
|
+
export declare type TDataLabelsConfig = {
|
|
987
|
+
enabled?: boolean;
|
|
988
|
+
position?: 'center' | 'top' | 'bottom' | 'left' | 'right' | 'auto' | 'custom';
|
|
989
|
+
anchor?: 'center' | 'start' | 'end';
|
|
990
|
+
align?: 'center' | 'start' | 'end' | 'top' | 'bottom' | number;
|
|
991
|
+
display?: 'auto' | boolean;
|
|
992
|
+
format?: 'auto' | 'number' | 'currency' | 'percent' | 'none';
|
|
993
|
+
formatOptions?: TFormatOptions;
|
|
994
|
+
font?: {
|
|
995
|
+
size?: number;
|
|
996
|
+
weight?: 'normal' | 'bold';
|
|
997
|
+
};
|
|
998
|
+
color?: 'auto' | string;
|
|
999
|
+
clamp?: boolean;
|
|
1000
|
+
clip?: boolean;
|
|
1001
|
+
rotation?: number;
|
|
1002
|
+
showTotal?: boolean;
|
|
1003
|
+
};
|
|
1004
|
+
|
|
936
1005
|
export declare type TDatasetOptions = {
|
|
937
1006
|
idx: number;
|
|
938
1007
|
type?: 'bar' | 'line';
|
|
@@ -975,6 +1044,19 @@ declare type TFilter = {
|
|
|
975
1044
|
|
|
976
1045
|
declare type TFilterValue = FilterForString | FilterForEqual | FilterForCompare | FilterForBetween | FilterForIn | FilterForDate;
|
|
977
1046
|
|
|
1047
|
+
export declare type TFormatOptions = {
|
|
1048
|
+
type?: 'auto' | 'number' | 'currency' | 'percent' | 'scientific' | 'date';
|
|
1049
|
+
decimalPlaces?: number;
|
|
1050
|
+
currency?: string;
|
|
1051
|
+
locale?: string;
|
|
1052
|
+
prefix?: string;
|
|
1053
|
+
suffix?: string;
|
|
1054
|
+
useSuffix?: boolean;
|
|
1055
|
+
negativeInParentheses?: boolean;
|
|
1056
|
+
multiplyBy?: number;
|
|
1057
|
+
dateFormat?: string;
|
|
1058
|
+
};
|
|
1059
|
+
|
|
978
1060
|
export declare type TFrame = {
|
|
979
1061
|
id: string;
|
|
980
1062
|
filterId?: string;
|
package/dist/types/types.d.ts
CHANGED
|
@@ -25,6 +25,25 @@ export declare type AuthToken = {
|
|
|
25
25
|
refreshToken?: string;
|
|
26
26
|
};
|
|
27
27
|
|
|
28
|
+
export declare type AxisConfig = {
|
|
29
|
+
enabled?: boolean;
|
|
30
|
+
name?: {
|
|
31
|
+
enabled: boolean;
|
|
32
|
+
text?: string;
|
|
33
|
+
};
|
|
34
|
+
position?: 'auto' | 'top' | 'bottom' | 'left' | 'right';
|
|
35
|
+
labels?: {
|
|
36
|
+
enabled: boolean;
|
|
37
|
+
rotation?: 'auto' | 0 | 45 | 90 | -45 | -90;
|
|
38
|
+
};
|
|
39
|
+
formatOptions?: TFormatOptions;
|
|
40
|
+
scale?: {
|
|
41
|
+
min?: number | 'auto';
|
|
42
|
+
max?: number | 'auto';
|
|
43
|
+
stepSize?: number | 'auto';
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
|
|
28
47
|
declare interface BaseColumn {
|
|
29
48
|
id: string;
|
|
30
49
|
name: string;
|
|
@@ -151,6 +170,10 @@ declare interface ClickFilterInteraction {
|
|
|
151
170
|
label?: string;
|
|
152
171
|
}
|
|
153
172
|
|
|
173
|
+
export declare type ColorConfig = {
|
|
174
|
+
segments: Record<string, string>;
|
|
175
|
+
};
|
|
176
|
+
|
|
154
177
|
export declare type ColorRange = {
|
|
155
178
|
start: number;
|
|
156
179
|
end: number;
|
|
@@ -584,7 +607,9 @@ declare interface MetricField extends Field {
|
|
|
584
607
|
}
|
|
585
608
|
}
|
|
586
609
|
*/
|
|
587
|
-
parameters?:
|
|
610
|
+
parameters?: {
|
|
611
|
+
filters?: FilterGroup;
|
|
612
|
+
};
|
|
588
613
|
aliasTemplate?: string;
|
|
589
614
|
valueAliases?: Record<string, string>;
|
|
590
615
|
}
|
|
@@ -806,6 +831,10 @@ export declare type TCardPreferences = {
|
|
|
806
831
|
datasetOptions?: TDatasetOptions[];
|
|
807
832
|
chartOptions?: TChartOptions;
|
|
808
833
|
columnSettings?: TColumnSetting<DisplayDataType>[];
|
|
834
|
+
colorConfig?: ColorConfig;
|
|
835
|
+
xAxisConfig?: AxisConfig;
|
|
836
|
+
yAxisConfig?: AxisConfig;
|
|
837
|
+
dataLabelsConfig?: TDataLabelsConfig;
|
|
809
838
|
tablePrefs?: TablePreferences;
|
|
810
839
|
allowDownload?: boolean;
|
|
811
840
|
customVisualCode?: string;
|
|
@@ -825,6 +854,27 @@ export declare type TCardPreferences = {
|
|
|
825
854
|
kpiVisualOptions?: {
|
|
826
855
|
lowerIsBetter?: boolean;
|
|
827
856
|
countryLogoId?: string;
|
|
857
|
+
formatOptions?: TFormatOptions;
|
|
858
|
+
metricComparison?: {
|
|
859
|
+
enabled?: boolean;
|
|
860
|
+
calculationType?: 'difference' | 'change' | 'change_difference' | 'ratio';
|
|
861
|
+
formatOptions?: TFormatOptions;
|
|
862
|
+
showArrow?: boolean;
|
|
863
|
+
showColor?: boolean;
|
|
864
|
+
conditionalLabel?: boolean;
|
|
865
|
+
labelName?: string;
|
|
866
|
+
position?: 'left' | 'right' | 'top';
|
|
867
|
+
conditionalLabels?: {
|
|
868
|
+
increase?: string;
|
|
869
|
+
decrease?: string;
|
|
870
|
+
noChange?: string;
|
|
871
|
+
};
|
|
872
|
+
colorConfig?: {
|
|
873
|
+
increase?: 'green' | 'red' | 'neutral' | string;
|
|
874
|
+
decrease?: 'green' | 'red' | 'neutral' | string;
|
|
875
|
+
noChange?: 'green' | 'red' | 'neutral' | string;
|
|
876
|
+
};
|
|
877
|
+
};
|
|
828
878
|
};
|
|
829
879
|
pivotTableOptions?: {
|
|
830
880
|
showRowTotals?: boolean;
|
|
@@ -925,6 +975,25 @@ export declare type TDataColumn = {
|
|
|
925
975
|
description?: string;
|
|
926
976
|
};
|
|
927
977
|
|
|
978
|
+
export declare type TDataLabelsConfig = {
|
|
979
|
+
enabled?: boolean;
|
|
980
|
+
position?: 'center' | 'top' | 'bottom' | 'left' | 'right' | 'auto' | 'custom';
|
|
981
|
+
anchor?: 'center' | 'start' | 'end';
|
|
982
|
+
align?: 'center' | 'start' | 'end' | 'top' | 'bottom' | number;
|
|
983
|
+
display?: 'auto' | boolean;
|
|
984
|
+
format?: 'auto' | 'number' | 'currency' | 'percent' | 'none';
|
|
985
|
+
formatOptions?: TFormatOptions;
|
|
986
|
+
font?: {
|
|
987
|
+
size?: number;
|
|
988
|
+
weight?: 'normal' | 'bold';
|
|
989
|
+
};
|
|
990
|
+
color?: 'auto' | string;
|
|
991
|
+
clamp?: boolean;
|
|
992
|
+
clip?: boolean;
|
|
993
|
+
rotation?: number;
|
|
994
|
+
showTotal?: boolean;
|
|
995
|
+
};
|
|
996
|
+
|
|
928
997
|
export declare type TDatasetOptions = {
|
|
929
998
|
idx: number;
|
|
930
999
|
type?: 'bar' | 'line';
|
|
@@ -967,6 +1036,19 @@ declare type TFilter = {
|
|
|
967
1036
|
|
|
968
1037
|
declare type TFilterValue = FilterForString | FilterForEqual | FilterForCompare | FilterForBetween | FilterForIn | FilterForDate;
|
|
969
1038
|
|
|
1039
|
+
export declare type TFormatOptions = {
|
|
1040
|
+
type?: 'auto' | 'number' | 'currency' | 'percent' | 'scientific' | 'date';
|
|
1041
|
+
decimalPlaces?: number;
|
|
1042
|
+
currency?: string;
|
|
1043
|
+
locale?: string;
|
|
1044
|
+
prefix?: string;
|
|
1045
|
+
suffix?: string;
|
|
1046
|
+
useSuffix?: boolean;
|
|
1047
|
+
negativeInParentheses?: boolean;
|
|
1048
|
+
multiplyBy?: number;
|
|
1049
|
+
dateFormat?: string;
|
|
1050
|
+
};
|
|
1051
|
+
|
|
970
1052
|
export declare type TFrame = {
|
|
971
1053
|
id: string;
|
|
972
1054
|
filterId?: string;
|