@gooddata/sdk-code-convertors 11.41.0-alpha.5 → 11.42.0-alpha.0
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/esm/configs/areaChart.d.ts +46 -0
- package/esm/configs/areaChart.d.ts.map +1 -1
- package/esm/configs/areaChart.js +5 -1
- package/esm/configs/barChart.d.ts +46 -0
- package/esm/configs/barChart.d.ts.map +1 -1
- package/esm/configs/barChart.js +5 -1
- package/esm/configs/bubbleChart.d.ts +46 -0
- package/esm/configs/bubbleChart.d.ts.map +1 -1
- package/esm/configs/bubbleChart.js +5 -1
- package/esm/configs/bulletChart.d.ts +46 -0
- package/esm/configs/bulletChart.d.ts.map +1 -1
- package/esm/configs/bulletChart.js +5 -1
- package/esm/configs/columnChart.d.ts +46 -0
- package/esm/configs/columnChart.d.ts.map +1 -1
- package/esm/configs/columnChart.js +5 -1
- package/esm/configs/comboChart.d.ts +46 -0
- package/esm/configs/comboChart.d.ts.map +1 -1
- package/esm/configs/comboChart.js +5 -1
- package/esm/configs/dependencyWheelChart.d.ts +46 -0
- package/esm/configs/dependencyWheelChart.d.ts.map +1 -1
- package/esm/configs/dependencyWheelChart.js +5 -1
- package/esm/configs/donutChart.d.ts +46 -0
- package/esm/configs/donutChart.d.ts.map +1 -1
- package/esm/configs/donutChart.js +5 -1
- package/esm/configs/funnelChart.d.ts +46 -0
- package/esm/configs/funnelChart.d.ts.map +1 -1
- package/esm/configs/funnelChart.js +5 -1
- package/esm/configs/geoAreaChart.d.ts +46 -0
- package/esm/configs/geoAreaChart.d.ts.map +1 -1
- package/esm/configs/geoAreaChart.js +5 -1
- package/esm/configs/geoChart.d.ts +1 -0
- package/esm/configs/geoChart.d.ts.map +1 -1
- package/esm/configs/geoChart.js +5 -1
- package/esm/configs/headlineChart.d.ts +46 -0
- package/esm/configs/headlineChart.d.ts.map +1 -1
- package/esm/configs/headlineChart.js +5 -1
- package/esm/configs/heatmapChart.d.ts +46 -0
- package/esm/configs/heatmapChart.d.ts.map +1 -1
- package/esm/configs/heatmapChart.js +5 -1
- package/esm/configs/lineChart.d.ts +46 -0
- package/esm/configs/lineChart.d.ts.map +1 -1
- package/esm/configs/lineChart.js +5 -1
- package/esm/configs/pieChart.d.ts +46 -0
- package/esm/configs/pieChart.d.ts.map +1 -1
- package/esm/configs/pieChart.js +5 -1
- package/esm/configs/pyramidChart.d.ts +46 -0
- package/esm/configs/pyramidChart.d.ts.map +1 -1
- package/esm/configs/pyramidChart.js +5 -1
- package/esm/configs/repeaterChart.d.ts +46 -0
- package/esm/configs/repeaterChart.d.ts.map +1 -1
- package/esm/configs/repeaterChart.js +5 -1
- package/esm/configs/sankeyChart.d.ts +46 -0
- package/esm/configs/sankeyChart.d.ts.map +1 -1
- package/esm/configs/sankeyChart.js +5 -1
- package/esm/configs/scatterChart.d.ts +46 -0
- package/esm/configs/scatterChart.d.ts.map +1 -1
- package/esm/configs/scatterChart.js +5 -1
- package/esm/configs/table.d.ts +46 -0
- package/esm/configs/table.d.ts.map +1 -1
- package/esm/configs/table.js +5 -1
- package/esm/configs/treemapChart.d.ts +46 -0
- package/esm/configs/treemapChart.d.ts.map +1 -1
- package/esm/configs/treemapChart.js +5 -1
- package/esm/configs/waterfallChart.d.ts +46 -0
- package/esm/configs/waterfallChart.d.ts.map +1 -1
- package/esm/configs/waterfallChart.js +5 -1
- package/esm/sdk-code-convertors.d.ts +967 -0
- package/esm/utils/configUtils.d.ts +1 -0
- package/esm/utils/configUtils.d.ts.map +1 -1
- package/esm/utils/configUtils.js +13 -0
- package/package.json +6 -6
|
@@ -14,6 +14,7 @@ export type DependencyWheelChartConfigProperties = {
|
|
|
14
14
|
disableDrillDown: boolean;
|
|
15
15
|
disableAlerts: boolean;
|
|
16
16
|
disableScheduledExports: boolean;
|
|
17
|
+
disableKeyDriveAnalysisOn: Record<string, boolean>;
|
|
17
18
|
};
|
|
18
19
|
/** @internal */
|
|
19
20
|
export declare const DEPENDENCY_WHEEL_CHART_DEFAULTS: ConfigDefaults<DependencyWheelChartConfigProperties>;
|
|
@@ -32,6 +33,51 @@ export declare function dependencyWheelChartSave(_fields: Visualisation["query"]
|
|
|
32
33
|
disableDrillDown: boolean | undefined;
|
|
33
34
|
disableAlerts: boolean | undefined;
|
|
34
35
|
disableScheduledExports: boolean | undefined;
|
|
36
|
+
disableKeyDriveAnalysisOn: {
|
|
37
|
+
[k: string]: boolean;
|
|
38
|
+
} | {
|
|
39
|
+
[k: string]: boolean;
|
|
40
|
+
} | {
|
|
41
|
+
[k: string]: boolean;
|
|
42
|
+
} | {
|
|
43
|
+
[k: string]: boolean;
|
|
44
|
+
} | {
|
|
45
|
+
[k: string]: boolean;
|
|
46
|
+
} | {
|
|
47
|
+
[k: string]: boolean;
|
|
48
|
+
} | {
|
|
49
|
+
[k: string]: boolean;
|
|
50
|
+
} | {
|
|
51
|
+
[k: string]: boolean;
|
|
52
|
+
} | {
|
|
53
|
+
[k: string]: boolean;
|
|
54
|
+
} | {
|
|
55
|
+
[k: string]: boolean;
|
|
56
|
+
} | {
|
|
57
|
+
[k: string]: boolean;
|
|
58
|
+
} | {
|
|
59
|
+
[k: string]: boolean;
|
|
60
|
+
} | {
|
|
61
|
+
[k: string]: boolean;
|
|
62
|
+
} | {
|
|
63
|
+
[k: string]: boolean;
|
|
64
|
+
} | {
|
|
65
|
+
[k: string]: boolean;
|
|
66
|
+
} | {
|
|
67
|
+
[k: string]: boolean;
|
|
68
|
+
} | {
|
|
69
|
+
[k: string]: boolean;
|
|
70
|
+
} | {
|
|
71
|
+
[k: string]: boolean;
|
|
72
|
+
} | {
|
|
73
|
+
[k: string]: boolean;
|
|
74
|
+
} | {
|
|
75
|
+
[k: string]: boolean;
|
|
76
|
+
} | {
|
|
77
|
+
[k: string]: boolean;
|
|
78
|
+
} | {
|
|
79
|
+
[k: string]: boolean;
|
|
80
|
+
} | undefined;
|
|
35
81
|
} | undefined;
|
|
36
82
|
/**
|
|
37
83
|
* @internal
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dependencyWheelChart.d.ts","sourceRoot":"","sources":["../../src/configs/dependencyWheelChart.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAInE,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,YAAY,CAAC;AAC/C,OAAO,EACH,KAAK,cAAc,EACnB,KAAK,mBAAmB,EAI3B,MAAM,YAAY,CAAC;AAEpB,gBAAgB;AAChB,MAAM,MAAM,oCAAoC,GAAG;IAC/C,YAAY,EAAE,KAAK,CAAC,YAAY,CAAC,CAAC;IAClC,UAAU,EAAE;QACR,OAAO,EAAE,OAAO,GAAG,MAAM,CAAC;KAC7B,CAAC;IACF,MAAM,EAAE;QACJ,OAAO,EAAE,OAAO,CAAC;QACjB,QAAQ,EAAE,KAAK,GAAG,QAAQ,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,CAAC;KAC1D,CAAC;IACF,gBAAgB,EAAE,OAAO,CAAC;IAC1B,aAAa,EAAE,OAAO,CAAC;IACvB,uBAAuB,EAAE,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"dependencyWheelChart.d.ts","sourceRoot":"","sources":["../../src/configs/dependencyWheelChart.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAInE,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,YAAY,CAAC;AAC/C,OAAO,EACH,KAAK,cAAc,EACnB,KAAK,mBAAmB,EAI3B,MAAM,YAAY,CAAC;AAEpB,gBAAgB;AAChB,MAAM,MAAM,oCAAoC,GAAG;IAC/C,YAAY,EAAE,KAAK,CAAC,YAAY,CAAC,CAAC;IAClC,UAAU,EAAE;QACR,OAAO,EAAE,OAAO,GAAG,MAAM,CAAC;KAC7B,CAAC;IACF,MAAM,EAAE;QACJ,OAAO,EAAE,OAAO,CAAC;QACjB,QAAQ,EAAE,KAAK,GAAG,QAAQ,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,CAAC;KAC1D,CAAC;IACF,gBAAgB,EAAE,OAAO,CAAC;IAC1B,aAAa,EAAE,OAAO,CAAC;IACvB,uBAAuB,EAAE,OAAO,CAAC;IACjC,yBAAyB,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACtD,CAAC;AAkBF,gBAAgB;AAChB,eAAO,MAAM,+BAA+B,sDAAW,CAAC;AAExD,gBAAgB;AAChB,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,mBAAmB,CAAC,oCAAoC,CAAC,kEA0CxG;AAED,gBAAgB;AAChB,wBAAgB,wBAAwB,CACpC,OAAO,EAAE,aAAa,CAAC,OAAO,CAAC,CAAC,QAAQ,CAAC,GAAG,SAAS,EACrD,MAAM,EAAE,aAAa,CAAC,QAAQ,CAAC,GAAG,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAwB9C;AAED;;;GAGG;AACH,MAAM,WAAW,2BAA2B;IACxC,IAAI,EAAE,OAAO,wBAAwB,CAAC;IACtC,IAAI,EAAE,OAAO,wBAAwB,CAAC;IACtC,QAAQ,EAAE,cAAc,CAAC,oCAAoC,CAAC,CAAC;CAClE;AAED;;;GAGG;AACH,eAAO,MAAM,oBAAoB,EAAE,2BAIlC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// (C) 2023-2026 GoodData Corporation
|
|
2
|
-
import { loadColorMapping, saveColorMapping } from "../utils/configUtils.js";
|
|
2
|
+
import { loadColorMapping, loadDisableKda, saveColorMapping } from "../utils/configUtils.js";
|
|
3
3
|
import { getValueOrDefault, loadConfig, saveConfigObject, } from "./utils.js";
|
|
4
4
|
/** @internal */
|
|
5
5
|
const DEFAULTS = {
|
|
@@ -14,6 +14,7 @@ const DEFAULTS = {
|
|
|
14
14
|
disableDrillDown: false,
|
|
15
15
|
disableAlerts: false,
|
|
16
16
|
disableScheduledExports: false,
|
|
17
|
+
disableKeyDriveAnalysisOn: {},
|
|
17
18
|
};
|
|
18
19
|
/** @internal */
|
|
19
20
|
export const DEPENDENCY_WHEEL_CHART_DEFAULTS = DEFAULTS;
|
|
@@ -54,6 +55,8 @@ export function dependencyWheelChartLoad(props) {
|
|
|
54
55
|
getValueOrDefault(value, DEFAULTS.disableScheduledExports, "bool"),
|
|
55
56
|
],
|
|
56
57
|
];
|
|
58
|
+
case "disableKeyDriveAnalysisOn":
|
|
59
|
+
return [["disable_key_drive_analysis", loadDisableKda(value)]];
|
|
57
60
|
default:
|
|
58
61
|
return [];
|
|
59
62
|
}
|
|
@@ -76,6 +79,7 @@ export function dependencyWheelChartSave(_fields, config) {
|
|
|
76
79
|
disableDrillDown: getValueOrDefault(config.disable_drill_down, DEFAULTS.disableDrillDown, "bool"),
|
|
77
80
|
disableAlerts: getValueOrDefault(config.disable_alerts, DEFAULTS.disableAlerts, "bool"),
|
|
78
81
|
disableScheduledExports: getValueOrDefault(config.disable_scheduled_exports, DEFAULTS.disableScheduledExports, "bool"),
|
|
82
|
+
disableKeyDriveAnalysisOn: saveConfigObject(config.disable_key_drive_analysis),
|
|
79
83
|
});
|
|
80
84
|
}
|
|
81
85
|
/**
|
|
@@ -19,6 +19,7 @@ export type DonutChartConfigProperties = {
|
|
|
19
19
|
disableDrillDown: boolean;
|
|
20
20
|
disableAlerts: boolean;
|
|
21
21
|
disableScheduledExports: boolean;
|
|
22
|
+
disableKeyDriveAnalysisOn: Record<string, boolean>;
|
|
22
23
|
};
|
|
23
24
|
/** @internal */
|
|
24
25
|
export declare const DONUT_CHART_DEFAULTS: ConfigDefaults<DonutChartConfigProperties>;
|
|
@@ -42,6 +43,51 @@ export declare function donutChartSave(_fields: Visualisation["query"]["fields"]
|
|
|
42
43
|
disableDrillDown: boolean | undefined;
|
|
43
44
|
disableAlerts: boolean | undefined;
|
|
44
45
|
disableScheduledExports: boolean | undefined;
|
|
46
|
+
disableKeyDriveAnalysisOn: {
|
|
47
|
+
[k: string]: boolean;
|
|
48
|
+
} | {
|
|
49
|
+
[k: string]: boolean;
|
|
50
|
+
} | {
|
|
51
|
+
[k: string]: boolean;
|
|
52
|
+
} | {
|
|
53
|
+
[k: string]: boolean;
|
|
54
|
+
} | {
|
|
55
|
+
[k: string]: boolean;
|
|
56
|
+
} | {
|
|
57
|
+
[k: string]: boolean;
|
|
58
|
+
} | {
|
|
59
|
+
[k: string]: boolean;
|
|
60
|
+
} | {
|
|
61
|
+
[k: string]: boolean;
|
|
62
|
+
} | {
|
|
63
|
+
[k: string]: boolean;
|
|
64
|
+
} | {
|
|
65
|
+
[k: string]: boolean;
|
|
66
|
+
} | {
|
|
67
|
+
[k: string]: boolean;
|
|
68
|
+
} | {
|
|
69
|
+
[k: string]: boolean;
|
|
70
|
+
} | {
|
|
71
|
+
[k: string]: boolean;
|
|
72
|
+
} | {
|
|
73
|
+
[k: string]: boolean;
|
|
74
|
+
} | {
|
|
75
|
+
[k: string]: boolean;
|
|
76
|
+
} | {
|
|
77
|
+
[k: string]: boolean;
|
|
78
|
+
} | {
|
|
79
|
+
[k: string]: boolean;
|
|
80
|
+
} | {
|
|
81
|
+
[k: string]: boolean;
|
|
82
|
+
} | {
|
|
83
|
+
[k: string]: boolean;
|
|
84
|
+
} | {
|
|
85
|
+
[k: string]: boolean;
|
|
86
|
+
} | {
|
|
87
|
+
[k: string]: boolean;
|
|
88
|
+
} | {
|
|
89
|
+
[k: string]: boolean;
|
|
90
|
+
} | undefined;
|
|
45
91
|
} | undefined;
|
|
46
92
|
/**
|
|
47
93
|
* @internal
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"donutChart.d.ts","sourceRoot":"","sources":["../../src/configs/donutChart.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;
|
|
1
|
+
{"version":3,"file":"donutChart.d.ts","sourceRoot":"","sources":["../../src/configs/donutChart.ts"],"names":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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA0B9C;AAED;;;GAGG;AACH,MAAM,WAAW,iBAAiB;IAC9B,IAAI,EAAE,OAAO,cAAc,CAAC;IAC5B,IAAI,EAAE,OAAO,cAAc,CAAC;IAC5B,QAAQ,EAAE,cAAc,CAAC,0BAA0B,CAAC,CAAC;CACxD;AAED;;;GAGG;AACH,eAAO,MAAM,UAAU,EAAE,iBAIxB,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// (C) 2023-2026 GoodData Corporation
|
|
2
|
-
import { loadChartFill, loadColorMapping, saveChartFill, saveColorMapping } from "../utils/configUtils.js";
|
|
2
|
+
import { loadChartFill, loadColorMapping, loadDisableKda, saveChartFill, saveColorMapping, } from "../utils/configUtils.js";
|
|
3
3
|
import { getValueOrDefault, loadConfig, saveConfigObject, } from "./utils.js";
|
|
4
4
|
/** @internal */
|
|
5
5
|
const DEFAULTS = {
|
|
@@ -18,6 +18,7 @@ const DEFAULTS = {
|
|
|
18
18
|
disableDrillDown: false,
|
|
19
19
|
disableAlerts: false,
|
|
20
20
|
disableScheduledExports: false,
|
|
21
|
+
disableKeyDriveAnalysisOn: {},
|
|
21
22
|
};
|
|
22
23
|
/** @internal */
|
|
23
24
|
export const DONUT_CHART_DEFAULTS = DEFAULTS;
|
|
@@ -67,6 +68,8 @@ export function donutChartLoad(props) {
|
|
|
67
68
|
getValueOrDefault(value, DEFAULTS.disableScheduledExports, "bool"),
|
|
68
69
|
],
|
|
69
70
|
];
|
|
71
|
+
case "disableKeyDriveAnalysisOn":
|
|
72
|
+
return [["disable_key_drive_analysis", loadDisableKda(value)]];
|
|
70
73
|
default:
|
|
71
74
|
return [];
|
|
72
75
|
}
|
|
@@ -91,6 +94,7 @@ export function donutChartSave(_fields, config) {
|
|
|
91
94
|
disableDrillDown: getValueOrDefault(config.disable_drill_down, DEFAULTS.disableDrillDown, "bool"),
|
|
92
95
|
disableAlerts: getValueOrDefault(config.disable_alerts, DEFAULTS.disableAlerts, "bool"),
|
|
93
96
|
disableScheduledExports: getValueOrDefault(config.disable_scheduled_exports, DEFAULTS.disableScheduledExports, "bool"),
|
|
97
|
+
disableKeyDriveAnalysisOn: saveConfigObject(config.disable_key_drive_analysis),
|
|
94
98
|
});
|
|
95
99
|
}
|
|
96
100
|
/**
|
|
@@ -19,6 +19,7 @@ export type FunnelChartConfigProperties = {
|
|
|
19
19
|
disableDrillDown: boolean;
|
|
20
20
|
disableAlerts: boolean;
|
|
21
21
|
disableScheduledExports: boolean;
|
|
22
|
+
disableKeyDriveAnalysisOn: Record<string, boolean>;
|
|
22
23
|
};
|
|
23
24
|
/** @internal */
|
|
24
25
|
export declare const FUNNEL_CHART_DEFAULTS: ConfigDefaults<FunnelChartConfigProperties>;
|
|
@@ -42,6 +43,51 @@ export declare function funnelChartSave(_fields: Visualisation["query"]["fields"
|
|
|
42
43
|
disableDrillDown: boolean | undefined;
|
|
43
44
|
disableAlerts: boolean | undefined;
|
|
44
45
|
disableScheduledExports: boolean | undefined;
|
|
46
|
+
disableKeyDriveAnalysisOn: {
|
|
47
|
+
[k: string]: boolean;
|
|
48
|
+
} | {
|
|
49
|
+
[k: string]: boolean;
|
|
50
|
+
} | {
|
|
51
|
+
[k: string]: boolean;
|
|
52
|
+
} | {
|
|
53
|
+
[k: string]: boolean;
|
|
54
|
+
} | {
|
|
55
|
+
[k: string]: boolean;
|
|
56
|
+
} | {
|
|
57
|
+
[k: string]: boolean;
|
|
58
|
+
} | {
|
|
59
|
+
[k: string]: boolean;
|
|
60
|
+
} | {
|
|
61
|
+
[k: string]: boolean;
|
|
62
|
+
} | {
|
|
63
|
+
[k: string]: boolean;
|
|
64
|
+
} | {
|
|
65
|
+
[k: string]: boolean;
|
|
66
|
+
} | {
|
|
67
|
+
[k: string]: boolean;
|
|
68
|
+
} | {
|
|
69
|
+
[k: string]: boolean;
|
|
70
|
+
} | {
|
|
71
|
+
[k: string]: boolean;
|
|
72
|
+
} | {
|
|
73
|
+
[k: string]: boolean;
|
|
74
|
+
} | {
|
|
75
|
+
[k: string]: boolean;
|
|
76
|
+
} | {
|
|
77
|
+
[k: string]: boolean;
|
|
78
|
+
} | {
|
|
79
|
+
[k: string]: boolean;
|
|
80
|
+
} | {
|
|
81
|
+
[k: string]: boolean;
|
|
82
|
+
} | {
|
|
83
|
+
[k: string]: boolean;
|
|
84
|
+
} | {
|
|
85
|
+
[k: string]: boolean;
|
|
86
|
+
} | {
|
|
87
|
+
[k: string]: boolean;
|
|
88
|
+
} | {
|
|
89
|
+
[k: string]: boolean;
|
|
90
|
+
} | undefined;
|
|
45
91
|
} | undefined;
|
|
46
92
|
/**
|
|
47
93
|
* @internal
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"funnelChart.d.ts","sourceRoot":"","sources":["../../src/configs/funnelChart.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;
|
|
1
|
+
{"version":3,"file":"funnelChart.d.ts","sourceRoot":"","sources":["../../src/configs/funnelChart.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAUnE,OAAO,EAAE,KAAK,aAAa,EAAE,KAAK,YAAY,EAAE,KAAK,eAAe,EAAE,MAAM,YAAY,CAAC;AACzF,OAAO,EACH,KAAK,cAAc,EACnB,KAAK,mBAAmB,EAI3B,MAAM,YAAY,CAAC;AAEpB,gBAAgB;AAChB,MAAM,MAAM,2BAA2B,GAAG;IACtC,YAAY,EAAE,KAAK,CAAC,YAAY,CAAC,CAAC;IAClC,UAAU,EAAE;QACR,OAAO,EAAE,OAAO,GAAG,MAAM,CAAC;QAC1B,KAAK,EAAE,MAAM,GAAG,WAAW,CAAC;KAC/B,CAAC;IACF,SAAS,EAAE;QACP,IAAI,EAAE,aAAa,CAAC;QACpB,oBAAoB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC;KAC1D,CAAC;IACF,MAAM,EAAE;QACJ,OAAO,EAAE,OAAO,CAAC;QACjB,QAAQ,EAAE,KAAK,GAAG,QAAQ,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,CAAC;KAC1D,CAAC;IACF,gBAAgB,EAAE,OAAO,CAAC;IAC1B,aAAa,EAAE,OAAO,CAAC;IACvB,uBAAuB,EAAE,OAAO,CAAC;IACjC,yBAAyB,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACtD,CAAC;AAsBF,gBAAgB;AAChB,eAAO,MAAM,qBAAqB,6CAAW,CAAC;AAE9C,gBAAgB;AAChB,wBAAgB,eAAe,CAAC,KAAK,EAAE,mBAAmB,CAAC,2BAA2B,CAAC,kEAmDtF;AAED,gBAAgB;AAChB,wBAAgB,eAAe,CAC3B,OAAO,EAAE,aAAa,CAAC,OAAO,CAAC,CAAC,QAAQ,CAAC,GAAG,SAAS,EACrD,MAAM,EAAE,aAAa,CAAC,QAAQ,CAAC,GAAG,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA0B9C;AAED;;;GAGG;AACH,MAAM,WAAW,kBAAkB;IAC/B,IAAI,EAAE,OAAO,eAAe,CAAC;IAC7B,IAAI,EAAE,OAAO,eAAe,CAAC;IAC7B,QAAQ,EAAE,cAAc,CAAC,2BAA2B,CAAC,CAAC;CACzD;AAED;;;GAGG;AACH,eAAO,MAAM,WAAW,EAAE,kBAIzB,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// (C) 2023-2026 GoodData Corporation
|
|
2
|
-
import { loadChartFill, loadColorMapping, saveChartFill, saveColorMapping } from "../utils/configUtils.js";
|
|
2
|
+
import { loadChartFill, loadColorMapping, loadDisableKda, saveChartFill, saveColorMapping, } from "../utils/configUtils.js";
|
|
3
3
|
import { getValueOrDefault, loadConfig, saveConfigObject, } from "./utils.js";
|
|
4
4
|
/** @internal */
|
|
5
5
|
const DEFAULTS = {
|
|
@@ -18,6 +18,7 @@ const DEFAULTS = {
|
|
|
18
18
|
disableDrillDown: false,
|
|
19
19
|
disableAlerts: false,
|
|
20
20
|
disableScheduledExports: false,
|
|
21
|
+
disableKeyDriveAnalysisOn: {},
|
|
21
22
|
};
|
|
22
23
|
/** @internal */
|
|
23
24
|
export const FUNNEL_CHART_DEFAULTS = DEFAULTS;
|
|
@@ -67,6 +68,8 @@ export function funnelChartLoad(props) {
|
|
|
67
68
|
getValueOrDefault(value, DEFAULTS.disableScheduledExports, "bool"),
|
|
68
69
|
],
|
|
69
70
|
];
|
|
71
|
+
case "disableKeyDriveAnalysisOn":
|
|
72
|
+
return [["disable_key_drive_analysis", loadDisableKda(value)]];
|
|
70
73
|
default:
|
|
71
74
|
return [];
|
|
72
75
|
}
|
|
@@ -91,6 +94,7 @@ export function funnelChartSave(_fields, config) {
|
|
|
91
94
|
disableDrillDown: getValueOrDefault(config.disable_drill_down, DEFAULTS.disableDrillDown, "bool"),
|
|
92
95
|
disableAlerts: getValueOrDefault(config.disable_alerts, DEFAULTS.disableAlerts, "bool"),
|
|
93
96
|
disableScheduledExports: getValueOrDefault(config.disable_scheduled_exports, DEFAULTS.disableScheduledExports, "bool"),
|
|
97
|
+
disableKeyDriveAnalysisOn: saveConfigObject(config.disable_key_drive_analysis),
|
|
94
98
|
});
|
|
95
99
|
}
|
|
96
100
|
/**
|
|
@@ -34,6 +34,7 @@ export type GeoAreaChartConfigProperties = {
|
|
|
34
34
|
};
|
|
35
35
|
disableAlerts: boolean;
|
|
36
36
|
disableScheduledExports: boolean;
|
|
37
|
+
disableKeyDriveAnalysisOn: Record<string, boolean>;
|
|
37
38
|
};
|
|
38
39
|
/** @internal */
|
|
39
40
|
export declare const GEO_AREA_CHART_DEFAULTS: ConfigDefaults<GeoAreaChartConfigProperties>;
|
|
@@ -75,6 +76,51 @@ export declare function geoAreaChartSave(_fields: Visualisation["query"]["fields
|
|
|
75
76
|
} | undefined;
|
|
76
77
|
disableAlerts: boolean | undefined;
|
|
77
78
|
disableScheduledExports: boolean | undefined;
|
|
79
|
+
disableKeyDriveAnalysisOn: {
|
|
80
|
+
[k: string]: boolean;
|
|
81
|
+
} | {
|
|
82
|
+
[k: string]: boolean;
|
|
83
|
+
} | {
|
|
84
|
+
[k: string]: boolean;
|
|
85
|
+
} | {
|
|
86
|
+
[k: string]: boolean;
|
|
87
|
+
} | {
|
|
88
|
+
[k: string]: boolean;
|
|
89
|
+
} | {
|
|
90
|
+
[k: string]: boolean;
|
|
91
|
+
} | {
|
|
92
|
+
[k: string]: boolean;
|
|
93
|
+
} | {
|
|
94
|
+
[k: string]: boolean;
|
|
95
|
+
} | {
|
|
96
|
+
[k: string]: boolean;
|
|
97
|
+
} | {
|
|
98
|
+
[k: string]: boolean;
|
|
99
|
+
} | {
|
|
100
|
+
[k: string]: boolean;
|
|
101
|
+
} | {
|
|
102
|
+
[k: string]: boolean;
|
|
103
|
+
} | {
|
|
104
|
+
[k: string]: boolean;
|
|
105
|
+
} | {
|
|
106
|
+
[k: string]: boolean;
|
|
107
|
+
} | {
|
|
108
|
+
[k: string]: boolean;
|
|
109
|
+
} | {
|
|
110
|
+
[k: string]: boolean;
|
|
111
|
+
} | {
|
|
112
|
+
[k: string]: boolean;
|
|
113
|
+
} | {
|
|
114
|
+
[k: string]: boolean;
|
|
115
|
+
} | {
|
|
116
|
+
[k: string]: boolean;
|
|
117
|
+
} | {
|
|
118
|
+
[k: string]: boolean;
|
|
119
|
+
} | {
|
|
120
|
+
[k: string]: boolean;
|
|
121
|
+
} | {
|
|
122
|
+
[k: string]: boolean;
|
|
123
|
+
} | undefined;
|
|
78
124
|
} | undefined;
|
|
79
125
|
/**
|
|
80
126
|
* @internal
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"geoAreaChart.d.ts","sourceRoot":"","sources":["../../src/configs/geoAreaChart.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,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EhD,gBAAgB;AAChB,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,mBAAmB,CAAC,4BAA4B,CAAC,kEAiFxF;AAED,gBAAgB;AAChB,wBAAgB,gBAAgB,CAC5B,OAAO,EAAE,aAAa,CAAC,OAAO,CAAC,CAAC,QAAQ,CAAC,GAAG,SAAS,EACrD,MAAM,EAAE,aAAa,CAAC,QAAQ,CAAC,GAAG,SAAS,EAC3C,UAAU,EAAE,KAAK,CAAC;IAAE,SAAS,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAA;CAAE,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAqF7D;AAED;;;GAGG;AACH,MAAM,WAAW,mBAAmB;IAChC,IAAI,EAAE,OAAO,gBAAgB,CAAC;IAC9B,IAAI,EAAE,OAAO,gBAAgB,CAAC;IAC9B,QAAQ,EAAE,cAAc,CAAC,4BAA4B,CAAC,CAAC;CAC1D;AAED;;;GAGG;AACH,eAAO,MAAM,YAAY,EAAE,mBAI1B,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// (C) 2023-2026 GoodData Corporation
|
|
2
|
-
import { loadColorMapping, saveColorMapping } from "../utils/configUtils.js";
|
|
2
|
+
import { loadColorMapping, loadDisableKda, saveColorMapping } from "../utils/configUtils.js";
|
|
3
3
|
import { getValueOrDefault, loadConfig, saveConfigObject, } from "./utils.js";
|
|
4
4
|
/** @internal */
|
|
5
5
|
const DEFAULTS = {
|
|
@@ -28,6 +28,7 @@ const DEFAULTS = {
|
|
|
28
28
|
},
|
|
29
29
|
disableAlerts: false,
|
|
30
30
|
disableScheduledExports: false,
|
|
31
|
+
disableKeyDriveAnalysisOn: {},
|
|
31
32
|
};
|
|
32
33
|
function sanitizeControls(controls) {
|
|
33
34
|
const sanitized = { ...controls };
|
|
@@ -130,6 +131,8 @@ export function geoAreaChartLoad(props) {
|
|
|
130
131
|
getValueOrDefault(value, DEFAULTS.disableScheduledExports, "bool"),
|
|
131
132
|
],
|
|
132
133
|
];
|
|
134
|
+
case "disableKeyDriveAnalysisOn":
|
|
135
|
+
return [["disable_key_drive_analysis", loadDisableKda(value)]];
|
|
133
136
|
default:
|
|
134
137
|
return [];
|
|
135
138
|
}
|
|
@@ -194,6 +197,7 @@ export function geoAreaChartSave(_fields, config, _positions) {
|
|
|
194
197
|
bounds,
|
|
195
198
|
disableAlerts: getValueOrDefault(config.disable_alerts, DEFAULTS.disableAlerts, "bool"),
|
|
196
199
|
disableScheduledExports: getValueOrDefault(config.disable_scheduled_exports, DEFAULTS.disableScheduledExports, "bool"),
|
|
200
|
+
disableKeyDriveAnalysisOn: saveConfigObject(config.disable_key_drive_analysis),
|
|
197
201
|
});
|
|
198
202
|
}
|
|
199
203
|
/**
|
|
@@ -43,6 +43,7 @@ export type GeoChartConfigProperties = {
|
|
|
43
43
|
};
|
|
44
44
|
disableAlerts: boolean;
|
|
45
45
|
disableScheduledExports: boolean;
|
|
46
|
+
disableKeyDriveAnalysisOn: Record<string, boolean>;
|
|
46
47
|
};
|
|
47
48
|
/** @internal */
|
|
48
49
|
export declare const GEO_CHART_DEFAULTS: ConfigDefaults<GeoChartConfigProperties>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"geoChart.d.ts","sourceRoot":"","sources":["../../src/configs/geoChart.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAInE,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,YAAY,CAAC;AAC/C,OAAO,EACH,KAAK,cAAc,EACnB,KAAK,mBAAmB,EAI3B,MAAM,YAAY,CAAC;AAEpB,gBAAgB;AAChB,MAAM,MAAM,wBAAwB,GAAG;IACnC,YAAY,EAAE,KAAK,CAAC,YAAY,CAAC,CAAC;IAClC,MAAM,EAAE;QACJ,OAAO,EAAE,OAAO,CAAC;QACjB,QA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AAC;QAC3B,OAAO,EAAE,MAAM,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,GAAG,MAAM,GAAG,SAAS,CAAC;QACpE,OAAO,EAAE,MAAM,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,GAAG,MAAM,GAAG,SAAS,CAAC;QACpE,SAAS,EAAE,QAAQ,GAAG,aAAa,GAAG,SAAS,CAAC;QAChD,IAAI,EAAE,MAAM,CAAC;KAChB,CAAC;IACF,aAAa,EAAE,OAAO,CAAC;IACvB,uBAAuB,EAAE,OAAO,CAAC;IACjC,yBAAyB,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACtD,CAAC;AA0EF,gBAAgB;AAChB,eAAO,MAAM,kBAAkB,0CAAW,CAAC;AAE3C,gBAAgB;AAChB,wBAAgB,YAAY,CAAC,KAAK,EAAE,mBAAmB,CAAC,wBAAwB,CAAC,kEAgGhF;AAED,gBAAgB;AAChB,wBAAgB,YAAY,CACxB,OAAO,EAAE,aAAa,CAAC,OAAO,CAAC,CAAC,QAAQ,CAAC,GAAG,SAAS,EACrD,MAAM,EAAE,aAAa,CAAC,QAAQ,CAAC,GAAG,SAAS,EAC3C,SAAS,EAAE,KAAK,CAAC;IAAE,SAAS,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAA;CAAE,CAAC;;;cA+G5D;AAED;;;GAGG;AACH,MAAM,WAAW,eAAe;IAC5B,IAAI,EAAE,OAAO,YAAY,CAAC;IAC1B,IAAI,EAAE,OAAO,YAAY,CAAC;IAC1B,QAAQ,EAAE,cAAc,CAAC,wBAAwB,CAAC,CAAC;CACtD;AAED;;;GAGG;AACH,eAAO,MAAM,QAAQ,EAAE,eAItB,CAAC"}
|
package/esm/configs/geoChart.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// (C) 2023-2026 GoodData Corporation
|
|
2
|
-
import { loadColorMapping, saveColorMapping } from "../utils/configUtils.js";
|
|
2
|
+
import { loadColorMapping, loadDisableKda, saveColorMapping } from "../utils/configUtils.js";
|
|
3
3
|
import { getValueOrDefault, loadConfig, saveConfigObject, } from "./utils.js";
|
|
4
4
|
/** @internal */
|
|
5
5
|
const DEFAULTS = {
|
|
@@ -37,6 +37,7 @@ const DEFAULTS = {
|
|
|
37
37
|
},
|
|
38
38
|
disableAlerts: false,
|
|
39
39
|
disableScheduledExports: false,
|
|
40
|
+
disableKeyDriveAnalysisOn: {},
|
|
40
41
|
};
|
|
41
42
|
function sanitizeControls(controls) {
|
|
42
43
|
const sanitized = { ...controls };
|
|
@@ -157,6 +158,8 @@ export function geoChartLoad(props) {
|
|
|
157
158
|
getValueOrDefault(value, DEFAULTS.disableScheduledExports, "bool"),
|
|
158
159
|
],
|
|
159
160
|
];
|
|
161
|
+
case "disableKeyDriveAnalysisOn":
|
|
162
|
+
return [["disable_key_drive_analysis", loadDisableKda(value)]];
|
|
160
163
|
case "latitude":
|
|
161
164
|
case "longitude":
|
|
162
165
|
default:
|
|
@@ -240,6 +243,7 @@ export function geoChartSave(_fields, config, positions) {
|
|
|
240
243
|
}),
|
|
241
244
|
disableAlerts: getValueOrDefault(config.disable_alerts, DEFAULTS.disableAlerts, "bool"),
|
|
242
245
|
disableScheduledExports: getValueOrDefault(config.disable_scheduled_exports, DEFAULTS.disableScheduledExports, "bool"),
|
|
246
|
+
disableKeyDriveAnalysisOn: saveConfigObject(config.disable_key_drive_analysis),
|
|
243
247
|
longitude: positions[0]?.longitude ?? "",
|
|
244
248
|
latitude: positions[0]?.latitude ?? "",
|
|
245
249
|
});
|
|
@@ -25,6 +25,7 @@ export type HeadlineChartConfigProperties = {
|
|
|
25
25
|
};
|
|
26
26
|
disableAlerts: boolean;
|
|
27
27
|
disableScheduledExports: boolean;
|
|
28
|
+
disableKeyDriveAnalysisOn: Record<string, boolean>;
|
|
28
29
|
};
|
|
29
30
|
/** @internal */
|
|
30
31
|
export declare const HEADLINE_CHART_DEFAULTS: ConfigDefaults<HeadlineChartConfigProperties>;
|
|
@@ -84,6 +85,51 @@ export declare function headlineChartSave(_fields: Visualisation["query"]["field
|
|
|
84
85
|
} | undefined;
|
|
85
86
|
disableAlerts: boolean | undefined;
|
|
86
87
|
disableScheduledExports: boolean | undefined;
|
|
88
|
+
disableKeyDriveAnalysisOn: {
|
|
89
|
+
[k: string]: boolean;
|
|
90
|
+
} | {
|
|
91
|
+
[k: string]: boolean;
|
|
92
|
+
} | {
|
|
93
|
+
[k: string]: boolean;
|
|
94
|
+
} | {
|
|
95
|
+
[k: string]: boolean;
|
|
96
|
+
} | {
|
|
97
|
+
[k: string]: boolean;
|
|
98
|
+
} | {
|
|
99
|
+
[k: string]: boolean;
|
|
100
|
+
} | {
|
|
101
|
+
[k: string]: boolean;
|
|
102
|
+
} | {
|
|
103
|
+
[k: string]: boolean;
|
|
104
|
+
} | {
|
|
105
|
+
[k: string]: boolean;
|
|
106
|
+
} | {
|
|
107
|
+
[k: string]: boolean;
|
|
108
|
+
} | {
|
|
109
|
+
[k: string]: boolean;
|
|
110
|
+
} | {
|
|
111
|
+
[k: string]: boolean;
|
|
112
|
+
} | {
|
|
113
|
+
[k: string]: boolean;
|
|
114
|
+
} | {
|
|
115
|
+
[k: string]: boolean;
|
|
116
|
+
} | {
|
|
117
|
+
[k: string]: boolean;
|
|
118
|
+
} | {
|
|
119
|
+
[k: string]: boolean;
|
|
120
|
+
} | {
|
|
121
|
+
[k: string]: boolean;
|
|
122
|
+
} | {
|
|
123
|
+
[k: string]: boolean;
|
|
124
|
+
} | {
|
|
125
|
+
[k: string]: boolean;
|
|
126
|
+
} | {
|
|
127
|
+
[k: string]: boolean;
|
|
128
|
+
} | {
|
|
129
|
+
[k: string]: boolean;
|
|
130
|
+
} | {
|
|
131
|
+
[k: string]: boolean;
|
|
132
|
+
} | undefined;
|
|
87
133
|
} | undefined;
|
|
88
134
|
/**
|
|
89
135
|
* @internal
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"headlineChart.d.ts","sourceRoot":"","sources":["../../src/configs/headlineChart.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAInE,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,YAAY,CAAC;AAC/C,OAAO,EACH,KAAK,cAAc,EACnB,KAAK,mBAAmB,EAI3B,MAAM,YAAY,CAAC;AAEpB,gBAAgB;AAChB,MAAM,MAAM,6BAA6B,GAAG;IACxC,UAAU,EAAE;QACR,OAAO,EAAE,OAAO,CAAC;QACjB,eAAe,EAAE,QAAQ,GAAG,mBAAmB,GAAG,OAAO,GAAG,YAAY,CAAC;QACzE,MAAM,EAAE,SAAS,GAAG,MAAM,CAAC;QAC3B,QAAQ,EAAE,OAAO,GAAG,MAAM,GAAG,KAAK,GAAG,MAAM,CAAC;QAC5C,cAAc,EAAE,OAAO,CAAC;QACxB,WAAW,CAAC,EAAE;YACV,QAAQ,EAAE,OAAO,CAAC;YAClB,MAAM,EAAE,YAAY,CAAC,OAAO,CAAC,GAAG,SAAS,CAAC;YAC1C,QAAQ,EAAE,YAAY,CAAC,OAAO,CAAC,GAAG,SAAS,CAAC;YAC5C,QAAQ,EAAE,YAAY,CAAC,OAAO,CAAC,GAAG,SAAS,CAAC;SAC/C,CAAC;QACF,WAAW,CAAC,EAAE;YACV,aAAa,EAAE,OAAO,CAAC;YACvB,kBAAkB,EAAE,MAAM,CAAC;YAC3B,MAAM,EAAE,MAAM,CAAC;YACf,QAAQ,EAAE,MAAM,CAAC;YACjB,QAAQ,EAAE,MAAM,CAAC;SACpB,CAAC;KACL,CAAC;IACF,aAAa,EAAE,OAAO,CAAC;IACvB,uBAAuB,EAAE,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"headlineChart.d.ts","sourceRoot":"","sources":["../../src/configs/headlineChart.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAInE,OAAO,EAAE,KAAK,YAAY,EAAE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,CAAC,GAAG,SAAS,EACrD,MAAM,GAAE,aAAa,CAAC,QAAQ,CAAC,GAAG,SAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA0CnD;AAED;;;GAGG;AACH,MAAM,WAAW,oBAAoB;IACjC,IAAI,EAAE,OAAO,iBAAiB,CAAC;IAC/B,IAAI,EAAE,OAAO,iBAAiB,CAAC;IAC/B,QAAQ,EAAE,cAAc,CAAC,6BAA6B,CAAC,CAAC;CAC3D;AAED;;;GAGG;AACH,eAAO,MAAM,aAAa,EAAE,oBAI3B,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// (C) 2023-2026 GoodData Corporation
|
|
2
|
-
import { loadColor, saveColor } from "../utils/configUtils.js";
|
|
2
|
+
import { loadColor, loadDisableKda, saveColor } from "../utils/configUtils.js";
|
|
3
3
|
import { getValueOrDefault, loadConfig, saveConfigObject, } from "./utils.js";
|
|
4
4
|
/** @internal */
|
|
5
5
|
const DEFAULTS = {
|
|
@@ -25,6 +25,7 @@ const DEFAULTS = {
|
|
|
25
25
|
},
|
|
26
26
|
disableAlerts: false,
|
|
27
27
|
disableScheduledExports: false,
|
|
28
|
+
disableKeyDriveAnalysisOn: {},
|
|
28
29
|
};
|
|
29
30
|
/** @internal */
|
|
30
31
|
export const HEADLINE_CHART_DEFAULTS = DEFAULTS;
|
|
@@ -89,6 +90,8 @@ export function headlineChartLoad(props) {
|
|
|
89
90
|
getValueOrDefault(value, DEFAULTS.disableScheduledExports, "bool"),
|
|
90
91
|
],
|
|
91
92
|
];
|
|
93
|
+
case "disableKeyDriveAnalysisOn":
|
|
94
|
+
return [["disable_key_drive_analysis", loadDisableKda(value)]];
|
|
92
95
|
default:
|
|
93
96
|
return [];
|
|
94
97
|
}
|
|
@@ -119,6 +122,7 @@ export function headlineChartSave(_fields, config = {}) {
|
|
|
119
122
|
}),
|
|
120
123
|
disableAlerts: getValueOrDefault(config.disable_alerts, DEFAULTS.disableAlerts, "bool"),
|
|
121
124
|
disableScheduledExports: getValueOrDefault(config.disable_scheduled_exports, DEFAULTS.disableScheduledExports, "bool"),
|
|
125
|
+
disableKeyDriveAnalysisOn: saveConfigObject(config.disable_key_drive_analysis),
|
|
122
126
|
});
|
|
123
127
|
}
|
|
124
128
|
/**
|
|
@@ -33,6 +33,7 @@ export type HeatmapChartConfigProperties = {
|
|
|
33
33
|
disableDrillDown: boolean;
|
|
34
34
|
disableAlerts: boolean;
|
|
35
35
|
disableScheduledExports: boolean;
|
|
36
|
+
disableKeyDriveAnalysisOn: Record<string, boolean>;
|
|
36
37
|
};
|
|
37
38
|
/** @internal */
|
|
38
39
|
export declare const HEATMAP_CHART_DEFAULTS: ConfigDefaults<HeatmapChartConfigProperties>;
|
|
@@ -70,6 +71,51 @@ export declare function heatmapChartSave(_fields: Visualisation["query"]["fields
|
|
|
70
71
|
disableDrillDown: boolean | undefined;
|
|
71
72
|
disableAlerts: boolean | undefined;
|
|
72
73
|
disableScheduledExports: boolean | undefined;
|
|
74
|
+
disableKeyDriveAnalysisOn: {
|
|
75
|
+
[k: string]: boolean;
|
|
76
|
+
} | {
|
|
77
|
+
[k: string]: boolean;
|
|
78
|
+
} | {
|
|
79
|
+
[k: string]: boolean;
|
|
80
|
+
} | {
|
|
81
|
+
[k: string]: boolean;
|
|
82
|
+
} | {
|
|
83
|
+
[k: string]: boolean;
|
|
84
|
+
} | {
|
|
85
|
+
[k: string]: boolean;
|
|
86
|
+
} | {
|
|
87
|
+
[k: string]: boolean;
|
|
88
|
+
} | {
|
|
89
|
+
[k: string]: boolean;
|
|
90
|
+
} | {
|
|
91
|
+
[k: string]: boolean;
|
|
92
|
+
} | {
|
|
93
|
+
[k: string]: boolean;
|
|
94
|
+
} | {
|
|
95
|
+
[k: string]: boolean;
|
|
96
|
+
} | {
|
|
97
|
+
[k: string]: boolean;
|
|
98
|
+
} | {
|
|
99
|
+
[k: string]: boolean;
|
|
100
|
+
} | {
|
|
101
|
+
[k: string]: boolean;
|
|
102
|
+
} | {
|
|
103
|
+
[k: string]: boolean;
|
|
104
|
+
} | {
|
|
105
|
+
[k: string]: boolean;
|
|
106
|
+
} | {
|
|
107
|
+
[k: string]: boolean;
|
|
108
|
+
} | {
|
|
109
|
+
[k: string]: boolean;
|
|
110
|
+
} | {
|
|
111
|
+
[k: string]: boolean;
|
|
112
|
+
} | {
|
|
113
|
+
[k: string]: boolean;
|
|
114
|
+
} | {
|
|
115
|
+
[k: string]: boolean;
|
|
116
|
+
} | {
|
|
117
|
+
[k: string]: boolean;
|
|
118
|
+
} | undefined;
|
|
73
119
|
} | undefined;
|
|
74
120
|
/**
|
|
75
121
|
* @internal
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"heatmapChart.d.ts","sourceRoot":"","sources":["../../src/configs/heatmapChart.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAInE,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,YAAY,CAAC;AAC/C,OAAO,EACH,KAAK,cAAc,EACnB,KAAK,mBAAmB,EAI3B,MAAM,YAAY,CAAC;AAEpB,gBAAgB;AAChB,MAAM,MAAM,4BAA4B,GAAG;IACvC,YAAY,EAAE,KAAK,CAAC,YAAY,CAAC,CAAC;IAClC,UAAU,EAAE;QACR,OAAO,EAAE,OAAO,GAAG,MAAM,CAAC;QAC1B,KAAK,EAAE,MAAM,GAAG,WAAW,CAAC;KAC/B,CAAC;IACF,MAAM,EAAE;QACJ,OAAO,EAAE,OAAO,CAAC;QACjB,QAAQ,EAAE,KAAK,GAAG,QAAQ,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,CAAC;KAC1D,CAAC;IACF,KAAK,EAAE;QACH,IAAI,EAAE;YACF,OAAO,EAAE,OAAO,CAAC;YACjB,QAAQ,EAAE,QAAQ,GAAG,MAAM,G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AC9B,IAAI,EAAE,OAAO,gBAAgB,CAAC;IAC9B,QAAQ,EAAE,cAAc,CAAC,4BAA4B,CAAC,CAAC;CAC1D;AAED;;;GAGG;AACH,eAAO,MAAM,YAAY,EAAE,mBAI1B,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// (C) 2023-2026 GoodData Corporation
|
|
2
|
-
import { loadColorMapping, saveColorMapping } from "../utils/configUtils.js";
|
|
2
|
+
import { loadColorMapping, loadDisableKda, saveColorMapping } from "../utils/configUtils.js";
|
|
3
3
|
import { getValueOrDefault, loadConfig, saveConfigObject, } from "./utils.js";
|
|
4
4
|
/** @internal */
|
|
5
5
|
const DEFAULTS = {
|
|
@@ -33,6 +33,7 @@ const DEFAULTS = {
|
|
|
33
33
|
disableDrillDown: false,
|
|
34
34
|
disableAlerts: false,
|
|
35
35
|
disableScheduledExports: false,
|
|
36
|
+
disableKeyDriveAnalysisOn: {},
|
|
36
37
|
};
|
|
37
38
|
/** @internal */
|
|
38
39
|
export const HEATMAP_CHART_DEFAULTS = DEFAULTS;
|
|
@@ -112,6 +113,8 @@ export function heatmapChartLoad(props) {
|
|
|
112
113
|
getValueOrDefault(value, DEFAULTS.disableScheduledExports, "bool"),
|
|
113
114
|
],
|
|
114
115
|
];
|
|
116
|
+
case "disableKeyDriveAnalysisOn":
|
|
117
|
+
return [["disable_key_drive_analysis", loadDisableKda(value)]];
|
|
115
118
|
default:
|
|
116
119
|
return [];
|
|
117
120
|
}
|
|
@@ -153,6 +156,7 @@ export function heatmapChartSave(_fields, config) {
|
|
|
153
156
|
disableDrillDown: getValueOrDefault(config.disable_drill_down, DEFAULTS.disableDrillDown, "bool"),
|
|
154
157
|
disableAlerts: getValueOrDefault(config.disable_alerts, DEFAULTS.disableAlerts, "bool"),
|
|
155
158
|
disableScheduledExports: getValueOrDefault(config.disable_scheduled_exports, DEFAULTS.disableScheduledExports, "bool"),
|
|
159
|
+
disableKeyDriveAnalysisOn: saveConfigObject(config.disable_key_drive_analysis),
|
|
156
160
|
});
|
|
157
161
|
}
|
|
158
162
|
/**
|