@gooddata/sdk-code-convertors 11.46.0-alpha.3 → 11.46.0-alpha.5
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 +3 -1
- package/esm/configs/areaChart.d.ts.map +1 -1
- package/esm/configs/areaChart.js +5 -1
- package/esm/configs/barChart.d.ts +3 -1
- package/esm/configs/barChart.d.ts.map +1 -1
- package/esm/configs/barChart.js +5 -1
- package/esm/configs/bubbleChart.d.ts +3 -1
- package/esm/configs/bubbleChart.d.ts.map +1 -1
- package/esm/configs/bubbleChart.js +5 -1
- package/esm/configs/bulletChart.d.ts +3 -1
- package/esm/configs/bulletChart.d.ts.map +1 -1
- package/esm/configs/bulletChart.js +5 -1
- package/esm/configs/columnChart.d.ts +3 -1
- package/esm/configs/columnChart.d.ts.map +1 -1
- package/esm/configs/columnChart.js +5 -1
- package/esm/configs/comboChart.d.ts +3 -1
- package/esm/configs/comboChart.d.ts.map +1 -1
- package/esm/configs/comboChart.js +5 -1
- package/esm/configs/dependencyWheelChart.d.ts +3 -1
- package/esm/configs/dependencyWheelChart.d.ts.map +1 -1
- package/esm/configs/dependencyWheelChart.js +5 -1
- package/esm/configs/donutChart.d.ts +3 -1
- package/esm/configs/donutChart.d.ts.map +1 -1
- package/esm/configs/donutChart.js +5 -1
- package/esm/configs/funnelChart.d.ts +3 -1
- package/esm/configs/funnelChart.d.ts.map +1 -1
- package/esm/configs/funnelChart.js +5 -1
- package/esm/configs/geoAreaChart.d.ts +3 -1
- package/esm/configs/geoAreaChart.d.ts.map +1 -1
- package/esm/configs/geoAreaChart.js +5 -1
- package/esm/configs/geoChart.d.ts +2 -1
- package/esm/configs/geoChart.d.ts.map +1 -1
- package/esm/configs/geoChart.js +5 -1
- package/esm/configs/heatmapChart.d.ts +3 -1
- package/esm/configs/heatmapChart.d.ts.map +1 -1
- package/esm/configs/heatmapChart.js +5 -1
- package/esm/configs/lineChart.d.ts +3 -1
- package/esm/configs/lineChart.d.ts.map +1 -1
- package/esm/configs/lineChart.js +5 -1
- package/esm/configs/pieChart.d.ts +3 -1
- package/esm/configs/pieChart.d.ts.map +1 -1
- package/esm/configs/pieChart.js +5 -1
- package/esm/configs/pyramidChart.d.ts +3 -1
- package/esm/configs/pyramidChart.d.ts.map +1 -1
- package/esm/configs/pyramidChart.js +5 -1
- package/esm/configs/sankeyChart.d.ts +3 -1
- package/esm/configs/sankeyChart.d.ts.map +1 -1
- package/esm/configs/sankeyChart.js +5 -1
- package/esm/configs/scatterChart.d.ts +3 -1
- package/esm/configs/scatterChart.d.ts.map +1 -1
- package/esm/configs/scatterChart.js +5 -1
- package/esm/configs/treemapChart.d.ts +3 -1
- package/esm/configs/treemapChart.d.ts.map +1 -1
- package/esm/configs/treemapChart.js +5 -1
- package/esm/configs/types.d.ts +8 -0
- package/esm/configs/types.d.ts.map +1 -1
- package/esm/configs/waterfallChart.d.ts +3 -1
- package/esm/configs/waterfallChart.d.ts.map +1 -1
- package/esm/configs/waterfallChart.js +5 -1
- package/esm/index.d.ts +1 -1
- package/esm/index.d.ts.map +1 -1
- package/esm/sdk-code-convertors.d.ts +47 -0
- package/esm/utils/configUtils.d.ts +11 -1
- package/esm/utils/configUtils.d.ts.map +1 -1
- package/esm/utils/configUtils.js +30 -1
- package/package.json +6 -6
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Visualisation } from "@gooddata/sdk-code-schemas/v1";
|
|
2
|
-
import { type ChartFillType, type ColorMapping, type PatternFillName, type PointShapeSymbol } from "./types.js";
|
|
2
|
+
import { type ChartFillType, type ColorMapping, type ICustomTooltip, type PatternFillName, type PointShapeSymbol } from "./types.js";
|
|
3
3
|
import { type ConfigDefaults, type VisualisationConfig } from "./utils.js";
|
|
4
4
|
/** @internal */
|
|
5
5
|
export type AreaChartConfigProperties = {
|
|
@@ -54,6 +54,7 @@ export type AreaChartConfigProperties = {
|
|
|
54
54
|
disableAlerts: boolean;
|
|
55
55
|
disableScheduledExports: boolean;
|
|
56
56
|
disableKeyDriveAnalysisOn: Record<string, boolean>;
|
|
57
|
+
customTooltip: ICustomTooltip;
|
|
57
58
|
};
|
|
58
59
|
/** @internal */
|
|
59
60
|
export declare const AREA_CHART_DEFAULTS: ConfigDefaults<AreaChartConfigProperties>;
|
|
@@ -156,6 +157,7 @@ export declare function areaChartSave(_fields: Visualisation["query"]["fields"]
|
|
|
156
157
|
} | {
|
|
157
158
|
[k: string]: boolean;
|
|
158
159
|
} | undefined;
|
|
160
|
+
customTooltip: ICustomTooltip | undefined;
|
|
159
161
|
} | undefined;
|
|
160
162
|
/**
|
|
161
163
|
* @internal
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"areaChart.d.ts","sourceRoot":"","sources":["../../src/configs/areaChart.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;
|
|
1
|
+
{"version":3,"file":"areaChart.d.ts","sourceRoot":"","sources":["../../src/configs/areaChart.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAanE,OAAO,EACH,KAAK,aAAa,EAClB,KAAK,YAAY,EACjB,KAAK,cAAc,EACnB,KAAK,eAAe,EACpB,KAAK,gBAAgB,EACxB,MAAM,YAAY,CAAC;AACpB,OAAO,EACH,KAAK,cAAc,EACnB,KAAK,mBAAmB,EAI3B,MAAM,YAAY,CAAC;AAEpB,gBAAgB;AAChB,MAAM,MAAM,yBAAyB,GAAG;IACpC,YAAY,EAAE,KAAK,CAAC,YAAY,CAAC,CAAC;IAClC,mBAAmB,EAAE;QACjB,OAAO,EAAE,OAAO,CAAC;QACjB,iBAAiB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAAC;KACxD,CAAC;IACF,SAAS,EAAE;QACP,IAAI,EAAE,aAAa,CAAC;QACpB,oBAAoB,CAAC,EAAE,MAAM,CAAC,MAA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C;IAC1B,mBAAmB,EAAE,OAAO,CAAC;IAC7B,aAAa,EAAE,OAAO,CAAC;IACvB,uBAAuB,EAAE,OAAO,CAAC;IACjC,yBAAyB,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACnD,aAAa,EAAE,cAAc,CAAC;CACjC,CAAC;AAwDF,gBAAgB;AAChB,eAAO,MAAM,mBAAmB,2CAAW,CAAC;AAE5C,gBAAgB;AAChB,wBAAgB,aAAa,CAAC,KAAK,EAAE,mBAAmB,CAAC,yBAAyB,CAAC,kEA+HlF;AAED,gBAAgB;AAChB,wBAAgB,aAAa,CACzB,OAAO,EAAE,aAAa,CAAC,OAAO,CAAC,CAAC,QAAQ,CAAC,GAAG,SAAS,EACrD,MAAM,EAAE,aAAa,CAAC,QAAQ,CAAC,GAAG,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAwE9C;AAED;;;GAGG;AACH,MAAM,WAAW,gBAAgB;IAC7B,IAAI,EAAE,OAAO,aAAa,CAAC;IAC3B,IAAI,EAAE,OAAO,aAAa,CAAC;IAC3B,QAAQ,EAAE,cAAc,CAAC,yBAAyB,CAAC,CAAC;CACvD;AAED;;;GAGG;AACH,eAAO,MAAM,SAAS,EAAE,gBAIvB,CAAC"}
|
package/esm/configs/areaChart.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// (C) 2023-2026 GoodData Corporation
|
|
2
|
-
import { loadChartFill, loadColorMapping, loadDisableKda, saveChartFill, saveColorMapping, } from "../utils/configUtils.js";
|
|
2
|
+
import { DEFAULT_CUSTOM_TOOLTIP, loadChartFill, loadColorMapping, loadCustomTooltip, loadDisableKda, saveChartFill, saveColorMapping, saveCustomTooltip, } from "../utils/configUtils.js";
|
|
3
3
|
import { getValueOrDefault, loadConfig, saveConfigObject, } from "./utils.js";
|
|
4
4
|
/** @internal */
|
|
5
5
|
const DEFAULTS = {
|
|
@@ -52,6 +52,7 @@ const DEFAULTS = {
|
|
|
52
52
|
disableAlerts: false,
|
|
53
53
|
disableScheduledExports: false,
|
|
54
54
|
disableKeyDriveAnalysisOn: {},
|
|
55
|
+
customTooltip: DEFAULT_CUSTOM_TOOLTIP,
|
|
55
56
|
};
|
|
56
57
|
/** @internal */
|
|
57
58
|
export const AREA_CHART_DEFAULTS = DEFAULTS;
|
|
@@ -176,6 +177,8 @@ export function areaChartLoad(props) {
|
|
|
176
177
|
];
|
|
177
178
|
case "disableKeyDriveAnalysisOn":
|
|
178
179
|
return [["disable_key_drive_analysis", loadDisableKda(value)]];
|
|
180
|
+
case "customTooltip":
|
|
181
|
+
return [["custom_tooltip", loadCustomTooltip(value)]];
|
|
179
182
|
default:
|
|
180
183
|
return [];
|
|
181
184
|
}
|
|
@@ -236,6 +239,7 @@ export function areaChartSave(_fields, config) {
|
|
|
236
239
|
disableAlerts: getValueOrDefault(config.disable_alerts, DEFAULTS.disableAlerts, "bool"),
|
|
237
240
|
disableScheduledExports: getValueOrDefault(config.disable_scheduled_exports, DEFAULTS.disableScheduledExports, "bool"),
|
|
238
241
|
disableKeyDriveAnalysisOn: saveConfigObject(config.disable_key_drive_analysis),
|
|
242
|
+
customTooltip: saveConfigObject(saveCustomTooltip(config.custom_tooltip)),
|
|
239
243
|
});
|
|
240
244
|
}
|
|
241
245
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Visualisation } from "@gooddata/sdk-code-schemas/v1";
|
|
2
|
-
import { type ChartFillType, type ColorMapping, type PatternFillName } from "./types.js";
|
|
2
|
+
import { type ChartFillType, type ColorMapping, type ICustomTooltip, type PatternFillName } from "./types.js";
|
|
3
3
|
import { type ConfigDefaults, type VisualisationConfig } from "./utils.js";
|
|
4
4
|
/** @internal */
|
|
5
5
|
export type BarChartConfigProperties = {
|
|
@@ -48,6 +48,7 @@ export type BarChartConfigProperties = {
|
|
|
48
48
|
disableAlerts: boolean;
|
|
49
49
|
disableScheduledExports: boolean;
|
|
50
50
|
disableKeyDriveAnalysisOn: Record<string, boolean>;
|
|
51
|
+
customTooltip: ICustomTooltip;
|
|
51
52
|
};
|
|
52
53
|
/** @internal */
|
|
53
54
|
export declare const BAR_CHART_DEFAULTS: ConfigDefaults<BarChartConfigProperties>;
|
|
@@ -144,6 +145,7 @@ export declare function barChartSave(_fields: Visualisation["query"]["fields"] |
|
|
|
144
145
|
} | {
|
|
145
146
|
[k: string]: boolean;
|
|
146
147
|
} | undefined;
|
|
148
|
+
customTooltip: ICustomTooltip | undefined;
|
|
147
149
|
} | undefined;
|
|
148
150
|
/**
|
|
149
151
|
* @internal
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"barChart.d.ts","sourceRoot":"","sources":["../../src/configs/barChart.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;
|
|
1
|
+
{"version":3,"file":"barChart.d.ts","sourceRoot":"","sources":["../../src/configs/barChart.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAanE,OAAO,EAAE,KAAK,aAAa,EAAE,KAAK,YAAY,EAAE,KAAK,cAAc,EAAE,KAAK,eAAe,EAAE,MAAM,YAAY,CAAC;AAC9G,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,UAAU,EAAE;QACR,aAAa,EAAE,OAAO,GAAG,MAAM,CAAC;QAChC,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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CAAC;IACnD,aAAa,EAAE,cAAc,CAAC;CACjC,CAAC;AAmDF,gBAAgB;AAChB,eAAO,MAAM,kBAAkB,0CAAW,CAAC;AAE3C,gBAAgB;AAChB,wBAAgB,YAAY,CAAC,KAAK,EAAE,mBAAmB,CAAC,wBAAwB,CAAC,kEAoHhF;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAgE9C;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/barChart.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// (C) 2023-2026 GoodData Corporation
|
|
2
|
-
import { loadChartFill, loadColorMapping, loadDisableKda, saveChartFill, saveColorMapping, } from "../utils/configUtils.js";
|
|
2
|
+
import { DEFAULT_CUSTOM_TOOLTIP, loadChartFill, loadColorMapping, loadCustomTooltip, loadDisableKda, saveChartFill, saveColorMapping, saveCustomTooltip, } from "../utils/configUtils.js";
|
|
3
3
|
import { getValueOrDefault, loadConfig, saveConfigObject, } from "./utils.js";
|
|
4
4
|
/** @internal */
|
|
5
5
|
const DEFAULTS = {
|
|
@@ -47,6 +47,7 @@ const DEFAULTS = {
|
|
|
47
47
|
disableAlerts: false,
|
|
48
48
|
disableScheduledExports: false,
|
|
49
49
|
disableKeyDriveAnalysisOn: {},
|
|
50
|
+
customTooltip: DEFAULT_CUSTOM_TOOLTIP,
|
|
50
51
|
};
|
|
51
52
|
/** @internal */
|
|
52
53
|
export const BAR_CHART_DEFAULTS = DEFAULTS;
|
|
@@ -161,6 +162,8 @@ export function barChartLoad(props) {
|
|
|
161
162
|
];
|
|
162
163
|
case "disableKeyDriveAnalysisOn":
|
|
163
164
|
return [["disable_key_drive_analysis", loadDisableKda(value)]];
|
|
165
|
+
case "customTooltip":
|
|
166
|
+
return [["custom_tooltip", loadCustomTooltip(value)]];
|
|
164
167
|
default:
|
|
165
168
|
return [];
|
|
166
169
|
}
|
|
@@ -214,6 +217,7 @@ export function barChartSave(_fields, config) {
|
|
|
214
217
|
disableAlerts: getValueOrDefault(config.disable_alerts, DEFAULTS.disableAlerts, "bool"),
|
|
215
218
|
disableScheduledExports: getValueOrDefault(config.disable_scheduled_exports, DEFAULTS.disableScheduledExports, "bool"),
|
|
216
219
|
disableKeyDriveAnalysisOn: saveConfigObject(config.disable_key_drive_analysis),
|
|
220
|
+
customTooltip: saveConfigObject(saveCustomTooltip(config.custom_tooltip)),
|
|
217
221
|
});
|
|
218
222
|
}
|
|
219
223
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Visualisation } from "@gooddata/sdk-code-schemas/v1";
|
|
2
|
-
import { type ColorMapping } from "./types.js";
|
|
2
|
+
import { type ColorMapping, type ICustomTooltip } from "./types.js";
|
|
3
3
|
import { type ConfigDefaults, type VisualisationConfig } from "./utils.js";
|
|
4
4
|
/** @internal */
|
|
5
5
|
export type BubbleChartConfigProperties = {
|
|
@@ -44,6 +44,7 @@ export type BubbleChartConfigProperties = {
|
|
|
44
44
|
disableAlerts: boolean;
|
|
45
45
|
disableScheduledExports: boolean;
|
|
46
46
|
disableKeyDriveAnalysisOn: Record<string, boolean>;
|
|
47
|
+
customTooltip: ICustomTooltip;
|
|
47
48
|
};
|
|
48
49
|
/** @internal */
|
|
49
50
|
export declare const BUBBLE_CHART_DEFAULTS: ConfigDefaults<BubbleChartConfigProperties>;
|
|
@@ -136,6 +137,7 @@ export declare function bubbleChartSave(_fields: Visualisation["query"]["fields"
|
|
|
136
137
|
} | {
|
|
137
138
|
[k: string]: boolean;
|
|
138
139
|
} | undefined;
|
|
140
|
+
customTooltip: ICustomTooltip | undefined;
|
|
139
141
|
} | undefined;
|
|
140
142
|
/**
|
|
141
143
|
* @internal
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bubbleChart.d.ts","sourceRoot":"","sources":["../../src/configs/bubbleChart.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;
|
|
1
|
+
{"version":3,"file":"bubbleChart.d.ts","sourceRoot":"","sources":["../../src/configs/bubbleChart.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAWnE,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,cAAc,EAAE,MAAM,YAAY,CAAC;AACpE,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,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,MAAM,EAAE,SAAS,GAAG,MAAM,CAAC;QAC3B,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC;QACrB,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,EAAE;YACF,OAAO,EAAE,O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AAa,CAAC,QAAQ,CAAC,GAAG,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAuD9C;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 { loadColorMapping, loadDisableKda, saveColorMapping } from "../utils/configUtils.js";
|
|
2
|
+
import { DEFAULT_CUSTOM_TOOLTIP, loadColorMapping, loadCustomTooltip, loadDisableKda, saveColorMapping, saveCustomTooltip, } from "../utils/configUtils.js";
|
|
3
3
|
import { getValueOrDefault, loadConfig, saveConfigObject, } from "./utils.js";
|
|
4
4
|
/** @internal */
|
|
5
5
|
const DEFAULTS = {
|
|
@@ -44,6 +44,7 @@ const DEFAULTS = {
|
|
|
44
44
|
disableAlerts: false,
|
|
45
45
|
disableScheduledExports: false,
|
|
46
46
|
disableKeyDriveAnalysisOn: {},
|
|
47
|
+
customTooltip: DEFAULT_CUSTOM_TOOLTIP,
|
|
47
48
|
};
|
|
48
49
|
/** @internal */
|
|
49
50
|
export const BUBBLE_CHART_DEFAULTS = DEFAULTS;
|
|
@@ -138,6 +139,8 @@ export function bubbleChartLoad(props) {
|
|
|
138
139
|
];
|
|
139
140
|
case "disableKeyDriveAnalysisOn":
|
|
140
141
|
return [["disable_key_drive_analysis", loadDisableKda(value)]];
|
|
142
|
+
case "customTooltip":
|
|
143
|
+
return [["custom_tooltip", loadCustomTooltip(value)]];
|
|
141
144
|
default:
|
|
142
145
|
return [];
|
|
143
146
|
}
|
|
@@ -190,6 +193,7 @@ export function bubbleChartSave(_fields, config) {
|
|
|
190
193
|
disableAlerts: getValueOrDefault(config.disable_alerts, DEFAULTS.disableAlerts, "bool"),
|
|
191
194
|
disableScheduledExports: getValueOrDefault(config.disable_scheduled_exports, DEFAULTS.disableScheduledExports, "bool"),
|
|
192
195
|
disableKeyDriveAnalysisOn: saveConfigObject(config.disable_key_drive_analysis),
|
|
196
|
+
customTooltip: saveConfigObject(saveCustomTooltip(config.custom_tooltip)),
|
|
193
197
|
});
|
|
194
198
|
}
|
|
195
199
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Visualisation } from "@gooddata/sdk-code-schemas/v1";
|
|
2
|
-
import { type ChartFillType, type ColorMapping, type PatternFillName } from "./types.js";
|
|
2
|
+
import { type ChartFillType, type ColorMapping, type ICustomTooltip, type PatternFillName } from "./types.js";
|
|
3
3
|
import { type ConfigDefaults, type VisualisationConfig } from "./utils.js";
|
|
4
4
|
/** @internal */
|
|
5
5
|
export type BulletChartConfigProperties = {
|
|
@@ -41,6 +41,7 @@ export type BulletChartConfigProperties = {
|
|
|
41
41
|
disableAlerts: boolean;
|
|
42
42
|
disableScheduledExports: boolean;
|
|
43
43
|
disableKeyDriveAnalysisOn: Record<string, boolean>;
|
|
44
|
+
customTooltip: ICustomTooltip;
|
|
44
45
|
};
|
|
45
46
|
/** @internal */
|
|
46
47
|
export declare const BULLET_CHART_DEFAULTS: ConfigDefaults<BulletChartConfigProperties>;
|
|
@@ -130,6 +131,7 @@ export declare function bulletChartSave(_fields: Visualisation["query"]["fields"
|
|
|
130
131
|
} | {
|
|
131
132
|
[k: string]: boolean;
|
|
132
133
|
} | undefined;
|
|
134
|
+
customTooltip: ICustomTooltip | undefined;
|
|
133
135
|
} | undefined;
|
|
134
136
|
/**
|
|
135
137
|
* @internal
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bulletChart.d.ts","sourceRoot":"","sources":["../../src/configs/bulletChart.ts"],"names":[],"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2026 GoodData Corporation
|
|
2
|
-
import { loadChartFill, loadColorMapping, loadDisableKda, saveChartFill, saveColorMapping, } from "../utils/configUtils.js";
|
|
2
|
+
import { DEFAULT_CUSTOM_TOOLTIP, loadChartFill, loadColorMapping, loadCustomTooltip, loadDisableKda, saveChartFill, saveColorMapping, saveCustomTooltip, } from "../utils/configUtils.js";
|
|
3
3
|
import { getValueOrDefault, loadConfig, saveConfigObject, } from "./utils.js";
|
|
4
4
|
/** @internal */
|
|
5
5
|
const DEFAULTS = {
|
|
@@ -40,6 +40,7 @@ const DEFAULTS = {
|
|
|
40
40
|
disableAlerts: false,
|
|
41
41
|
disableScheduledExports: false,
|
|
42
42
|
disableKeyDriveAnalysisOn: {},
|
|
43
|
+
customTooltip: DEFAULT_CUSTOM_TOOLTIP,
|
|
43
44
|
};
|
|
44
45
|
/** @internal */
|
|
45
46
|
export const BULLET_CHART_DEFAULTS = DEFAULTS;
|
|
@@ -132,6 +133,8 @@ export function bulletChartLoad(props) {
|
|
|
132
133
|
];
|
|
133
134
|
case "disableKeyDriveAnalysisOn":
|
|
134
135
|
return [["disable_key_drive_analysis", loadDisableKda(value)]];
|
|
136
|
+
case "customTooltip":
|
|
137
|
+
return [["custom_tooltip", loadCustomTooltip(value)]];
|
|
135
138
|
default:
|
|
136
139
|
return [];
|
|
137
140
|
}
|
|
@@ -178,6 +181,7 @@ export function bulletChartSave(_fields, config) {
|
|
|
178
181
|
disableAlerts: getValueOrDefault(config.disable_alerts, DEFAULTS.disableAlerts, "bool"),
|
|
179
182
|
disableScheduledExports: getValueOrDefault(config.disable_scheduled_exports, DEFAULTS.disableScheduledExports, "bool"),
|
|
180
183
|
disableKeyDriveAnalysisOn: saveConfigObject(config.disable_key_drive_analysis),
|
|
184
|
+
customTooltip: saveConfigObject(saveCustomTooltip(config.custom_tooltip)),
|
|
181
185
|
});
|
|
182
186
|
}
|
|
183
187
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Visualisation } from "@gooddata/sdk-code-schemas/v1";
|
|
2
|
-
import { type ChartFillType, type ColorMapping, type PatternFillName } from "./types.js";
|
|
2
|
+
import { type ChartFillType, type ColorMapping, type ICustomTooltip, type PatternFillName } from "./types.js";
|
|
3
3
|
import { type ConfigDefaults, type VisualisationConfig } from "./utils.js";
|
|
4
4
|
/** @internal */
|
|
5
5
|
export type ColumnChartConfigProperties = {
|
|
@@ -48,6 +48,7 @@ export type ColumnChartConfigProperties = {
|
|
|
48
48
|
disableAlerts: boolean;
|
|
49
49
|
disableScheduledExports: boolean;
|
|
50
50
|
disableKeyDriveAnalysisOn: Record<string, boolean>;
|
|
51
|
+
customTooltip: ICustomTooltip;
|
|
51
52
|
};
|
|
52
53
|
/** @internal */
|
|
53
54
|
export declare const COLUMN_CHART_DEFAULTS: ConfigDefaults<ColumnChartConfigProperties>;
|
|
@@ -144,6 +145,7 @@ export declare function columnChartSave(_fields: Visualisation["query"]["fields"
|
|
|
144
145
|
} | {
|
|
145
146
|
[k: string]: boolean;
|
|
146
147
|
} | undefined;
|
|
148
|
+
customTooltip: ICustomTooltip | undefined;
|
|
147
149
|
} | undefined;
|
|
148
150
|
/**
|
|
149
151
|
* @internal
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"columnChart.d.ts","sourceRoot":"","sources":["../../src/configs/columnChart.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;
|
|
1
|
+
{"version":3,"file":"columnChart.d.ts","sourceRoot":"","sources":["../../src/configs/columnChart.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAanE,OAAO,EAAE,KAAK,aAAa,EAAE,KAAK,YAAY,EAAE,KAAK,cAAc,EAAE,KAAK,eAAe,EAAE,MAAM,YAAY,CAAC;AAC9G,OAAO,EACH,KAAK,cAAc,EACnB,KAAK,mBAAmB,EAI3B,MAAM,YAAY,CAAC;AAEpB,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,GAAG,MAAM,CAAC;QAC5C,OAAO,EAAE,OAAO,CAAC;KACpB,CAAC;IACF,IAAI,EAAE;QACF,OAAO,EAAE,OAAO,CAAC;KACpB,CAAC;IACF,gBAAgB,EAAE,OAAO,CAAC;IAC1B,mBAAmB,EAAE,OAAO,CAAC;IAC7B,aAAa,EAAE,OAAO,CAAC;IACvB,uBAAuB,EAAE,OAAO,CAAC;IACjC,yBAAyB,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACnD,aAAa,EAAE,cAAc,CAAC;CACjC,CAAC;AAmDF,gBAAgB;AAChB,eAAO,MAAM,qBAAqB,6CAAW,CAAC;AAE9C,gBAAgB;AAChB,wBAAgB,eAAe,CAAC,KAAK,EAAE,mBAAmB,CAAC,2BAA2B,CAAC,kEAoHtF;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAgE9C;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, loadDisableKda, saveChartFill, saveColorMapping, } from "../utils/configUtils.js";
|
|
2
|
+
import { DEFAULT_CUSTOM_TOOLTIP, loadChartFill, loadColorMapping, loadCustomTooltip, loadDisableKda, saveChartFill, saveColorMapping, saveCustomTooltip, } from "../utils/configUtils.js";
|
|
3
3
|
import { getValueOrDefault, loadConfig, saveConfigObject, } from "./utils.js";
|
|
4
4
|
/** @internal */
|
|
5
5
|
const DEFAULTS = {
|
|
@@ -47,6 +47,7 @@ const DEFAULTS = {
|
|
|
47
47
|
disableAlerts: false,
|
|
48
48
|
disableScheduledExports: false,
|
|
49
49
|
disableKeyDriveAnalysisOn: {},
|
|
50
|
+
customTooltip: DEFAULT_CUSTOM_TOOLTIP,
|
|
50
51
|
};
|
|
51
52
|
/** @internal */
|
|
52
53
|
export const COLUMN_CHART_DEFAULTS = DEFAULTS;
|
|
@@ -161,6 +162,8 @@ export function columnChartLoad(props) {
|
|
|
161
162
|
];
|
|
162
163
|
case "disableKeyDriveAnalysisOn":
|
|
163
164
|
return [["disable_key_drive_analysis", loadDisableKda(value)]];
|
|
165
|
+
case "customTooltip":
|
|
166
|
+
return [["custom_tooltip", loadCustomTooltip(value)]];
|
|
164
167
|
default:
|
|
165
168
|
return [];
|
|
166
169
|
}
|
|
@@ -214,6 +217,7 @@ export function columnChartSave(_fields, config) {
|
|
|
214
217
|
disableAlerts: getValueOrDefault(config.disable_alerts, DEFAULTS.disableAlerts, "bool"),
|
|
215
218
|
disableScheduledExports: getValueOrDefault(config.disable_scheduled_exports, DEFAULTS.disableScheduledExports, "bool"),
|
|
216
219
|
disableKeyDriveAnalysisOn: saveConfigObject(config.disable_key_drive_analysis),
|
|
220
|
+
customTooltip: saveConfigObject(saveCustomTooltip(config.custom_tooltip)),
|
|
217
221
|
});
|
|
218
222
|
}
|
|
219
223
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Bucket, Visualisation } from "@gooddata/sdk-code-schemas/v1";
|
|
2
|
-
import { type ChartFillType, type ColorMapping, type PatternFillName, type PointShapeSymbol } from "./types.js";
|
|
2
|
+
import { type ChartFillType, type ColorMapping, type ICustomTooltip, type PatternFillName, type PointShapeSymbol } from "./types.js";
|
|
3
3
|
import { type ConfigDefaults, type VisualisationConfig } from "./utils.js";
|
|
4
4
|
/** @internal */
|
|
5
5
|
export type ComboChartConfigProperties = {
|
|
@@ -73,6 +73,7 @@ export type ComboChartConfigProperties = {
|
|
|
73
73
|
disableAlerts: boolean;
|
|
74
74
|
disableScheduledExports: boolean;
|
|
75
75
|
disableKeyDriveAnalysisOn: Record<string, boolean>;
|
|
76
|
+
customTooltip: ICustomTooltip;
|
|
76
77
|
thresholdMeasures: string[];
|
|
77
78
|
thresholdExcludedMeasures: string[];
|
|
78
79
|
};
|
|
@@ -196,6 +197,7 @@ export declare function comboChartSave(_fields: Visualisation["query"]["fields"]
|
|
|
196
197
|
} | {
|
|
197
198
|
[k: string]: boolean;
|
|
198
199
|
} | undefined;
|
|
200
|
+
customTooltip: ICustomTooltip | undefined;
|
|
199
201
|
thresholdMeasures: string[] | undefined;
|
|
200
202
|
thresholdExcludedMeasures: string[] | undefined;
|
|
201
203
|
} | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"comboChart.d.ts","sourceRoot":"","sources":["../../src/configs/comboChart.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;
|
|
1
|
+
{"version":3,"file":"comboChart.d.ts","sourceRoot":"","sources":["../../src/configs/comboChart.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAc3E,OAAO,EACH,KAAK,aAAa,EAClB,KAAK,YAAY,EACjB,KAAK,cAAc,EACnB,KAAK,eAAe,EACpB,KAAK,gBAAgB,EACxB,MAAM,YAAY,CAAC;AACpB,OAAO,EACH,KAAK,cAAc,EACnB,KAAK,mBAAmB,EAI3B,MAAM,YAAY,CAAC;AAEpB,gBAAgB;AAChB,MAAM,MAAM,0BAA0B,GAAG;IACrC,YAAY,EAAE,KAAK,CAAC,YAAY,CAAC,CAA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AE7C,gBAAgB;AAChB,wBAAgB,cAAc,CAAC,KAAK,EAAE,mBAAmB,CAAC,0BAA0B,CAAC,kEAyMpF;AAED,gBAAgB;AAChB,wBAAgB,cAAc,CAC1B,OAAO,EAAE,aAAa,CAAC,OAAO,CAAC,CAAC,QAAQ,CAAC,GAAG,SAAS,EACrD,MAAM,EAAE,aAAa,CAAC,QAAQ,CAAC,GAAG,SAAS,EAC3C,OAAO,GAAE,MAAM,EAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAgJzB;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, loadDisableKda, saveChartFill, saveColorMapping, } from "../utils/configUtils.js";
|
|
2
|
+
import { DEFAULT_CUSTOM_TOOLTIP, loadChartFill, loadColorMapping, loadCustomTooltip, loadDisableKda, saveChartFill, saveColorMapping, saveCustomTooltip, } from "../utils/configUtils.js";
|
|
3
3
|
import { getFullBucket } from "../utils/sharedUtils.js";
|
|
4
4
|
import { getValueOrDefault, loadConfig, saveConfigObject, } from "./utils.js";
|
|
5
5
|
/** @internal */
|
|
@@ -72,6 +72,7 @@ const DEFAULTS = {
|
|
|
72
72
|
disableAlerts: false,
|
|
73
73
|
disableScheduledExports: false,
|
|
74
74
|
disableKeyDriveAnalysisOn: {},
|
|
75
|
+
customTooltip: DEFAULT_CUSTOM_TOOLTIP,
|
|
75
76
|
thresholdMeasures: [],
|
|
76
77
|
thresholdExcludedMeasures: [],
|
|
77
78
|
};
|
|
@@ -256,6 +257,8 @@ export function comboChartLoad(props) {
|
|
|
256
257
|
];
|
|
257
258
|
case "disableKeyDriveAnalysisOn":
|
|
258
259
|
return [["disable_key_drive_analysis", loadDisableKda(value)]];
|
|
260
|
+
case "customTooltip":
|
|
261
|
+
return [["custom_tooltip", loadCustomTooltip(value)]];
|
|
259
262
|
case "thresholdMeasures": {
|
|
260
263
|
return [
|
|
261
264
|
[
|
|
@@ -357,6 +360,7 @@ export function comboChartSave(_fields, config, buckets = []) {
|
|
|
357
360
|
disableAlerts: getValueOrDefault(config.disable_alerts, DEFAULTS.disableAlerts, "bool"),
|
|
358
361
|
disableScheduledExports: getValueOrDefault(config.disable_scheduled_exports, DEFAULTS.disableScheduledExports, "bool"),
|
|
359
362
|
disableKeyDriveAnalysisOn: saveConfigObject(config.disable_key_drive_analysis),
|
|
363
|
+
customTooltip: saveConfigObject(saveCustomTooltip(config.custom_tooltip)),
|
|
360
364
|
thresholdMeasures: getValueOrDefault(config.line_style_control_metrics, DEFAULTS.thresholdMeasures, "array"),
|
|
361
365
|
thresholdExcludedMeasures: getValueOrDefault(config.line_style_excluded_metrics, DEFAULTS.thresholdExcludedMeasures, "array"),
|
|
362
366
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Visualisation } from "@gooddata/sdk-code-schemas/v1";
|
|
2
|
-
import { type ColorMapping } from "./types.js";
|
|
2
|
+
import { type ColorMapping, type ICustomTooltip } from "./types.js";
|
|
3
3
|
import { type ConfigDefaults, type VisualisationConfig } from "./utils.js";
|
|
4
4
|
/** @internal */
|
|
5
5
|
export type DependencyWheelChartConfigProperties = {
|
|
@@ -16,6 +16,7 @@ export type DependencyWheelChartConfigProperties = {
|
|
|
16
16
|
disableAlerts: boolean;
|
|
17
17
|
disableScheduledExports: boolean;
|
|
18
18
|
disableKeyDriveAnalysisOn: Record<string, boolean>;
|
|
19
|
+
customTooltip: ICustomTooltip;
|
|
19
20
|
};
|
|
20
21
|
/** @internal */
|
|
21
22
|
export declare const DEPENDENCY_WHEEL_CHART_DEFAULTS: ConfigDefaults<DependencyWheelChartConfigProperties>;
|
|
@@ -80,6 +81,7 @@ export declare function dependencyWheelChartSave(_fields: Visualisation["query"]
|
|
|
80
81
|
} | {
|
|
81
82
|
[k: string]: boolean;
|
|
82
83
|
} | undefined;
|
|
84
|
+
customTooltip: ICustomTooltip | undefined;
|
|
83
85
|
} | undefined;
|
|
84
86
|
/**
|
|
85
87
|
* @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;
|
|
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;AAWnE,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,cAAc,EAAE,MAAM,YAAY,CAAC;AACpE,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,mBAAmB,EAAE,OAAO,CAAC;IAC7B,aAAa,EAAE,OAAO,CAAC;IACvB,uBAAuB,EAAE,OAAO,CAAC;IACjC,yBAAyB,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACnD,aAAa,EAAE,cAAc,CAAC;CACjC,CAAC;AAoBF,gBAAgB;AAChB,eAAO,MAAM,+BAA+B,sDAAW,CAAC;AAExD,gBAAgB;AAChB,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,mBAAmB,CAAC,oCAAoC,CAAC,kEA+CxG;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA2B9C;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, loadDisableKda, saveColorMapping } from "../utils/configUtils.js";
|
|
2
|
+
import { DEFAULT_CUSTOM_TOOLTIP, loadColorMapping, loadCustomTooltip, loadDisableKda, saveColorMapping, saveCustomTooltip, } from "../utils/configUtils.js";
|
|
3
3
|
import { getValueOrDefault, loadConfig, saveConfigObject, } from "./utils.js";
|
|
4
4
|
/** @internal */
|
|
5
5
|
const DEFAULTS = {
|
|
@@ -16,6 +16,7 @@ const DEFAULTS = {
|
|
|
16
16
|
disableAlerts: false,
|
|
17
17
|
disableScheduledExports: false,
|
|
18
18
|
disableKeyDriveAnalysisOn: {},
|
|
19
|
+
customTooltip: DEFAULT_CUSTOM_TOOLTIP,
|
|
19
20
|
};
|
|
20
21
|
/** @internal */
|
|
21
22
|
export const DEPENDENCY_WHEEL_CHART_DEFAULTS = DEFAULTS;
|
|
@@ -61,6 +62,8 @@ export function dependencyWheelChartLoad(props) {
|
|
|
61
62
|
];
|
|
62
63
|
case "disableKeyDriveAnalysisOn":
|
|
63
64
|
return [["disable_key_drive_analysis", loadDisableKda(value)]];
|
|
65
|
+
case "customTooltip":
|
|
66
|
+
return [["custom_tooltip", loadCustomTooltip(value)]];
|
|
64
67
|
default:
|
|
65
68
|
return [];
|
|
66
69
|
}
|
|
@@ -85,6 +88,7 @@ export function dependencyWheelChartSave(_fields, config) {
|
|
|
85
88
|
disableAlerts: getValueOrDefault(config.disable_alerts, DEFAULTS.disableAlerts, "bool"),
|
|
86
89
|
disableScheduledExports: getValueOrDefault(config.disable_scheduled_exports, DEFAULTS.disableScheduledExports, "bool"),
|
|
87
90
|
disableKeyDriveAnalysisOn: saveConfigObject(config.disable_key_drive_analysis),
|
|
91
|
+
customTooltip: saveConfigObject(saveCustomTooltip(config.custom_tooltip)),
|
|
88
92
|
});
|
|
89
93
|
}
|
|
90
94
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Visualisation } from "@gooddata/sdk-code-schemas/v1";
|
|
2
|
-
import { type ChartFillType, type ColorMapping, type PatternFillName } from "./types.js";
|
|
2
|
+
import { type ChartFillType, type ColorMapping, type ICustomTooltip, type PatternFillName } from "./types.js";
|
|
3
3
|
import { type ConfigDefaults, type VisualisationConfig } from "./utils.js";
|
|
4
4
|
/** @internal */
|
|
5
5
|
export type DonutChartConfigProperties = {
|
|
@@ -21,6 +21,7 @@ export type DonutChartConfigProperties = {
|
|
|
21
21
|
disableAlerts: boolean;
|
|
22
22
|
disableScheduledExports: boolean;
|
|
23
23
|
disableKeyDriveAnalysisOn: Record<string, boolean>;
|
|
24
|
+
customTooltip: ICustomTooltip;
|
|
24
25
|
};
|
|
25
26
|
/** @internal */
|
|
26
27
|
export declare const DONUT_CHART_DEFAULTS: ConfigDefaults<DonutChartConfigProperties>;
|
|
@@ -90,6 +91,7 @@ export declare function donutChartSave(_fields: Visualisation["query"]["fields"]
|
|
|
90
91
|
} | {
|
|
91
92
|
[k: string]: boolean;
|
|
92
93
|
} | undefined;
|
|
94
|
+
customTooltip: ICustomTooltip | undefined;
|
|
93
95
|
} | undefined;
|
|
94
96
|
/**
|
|
95
97
|
* @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":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAanE,OAAO,EAAE,KAAK,aAAa,EAAE,KAAK,YAAY,EAAE,KAAK,cAAc,EAAE,KAAK,eAAe,EAAE,MAAM,YAAY,CAAC;AAC9G,OAAO,EACH,KAAK,cAAc,EACnB,KAAK,mBAAmB,EAI3B,MAAM,YAAY,CAAC;AAEpB,gBAAgB;AAChB,MAAM,MAAM,0BAA0B,GAAG;IACrC,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,mBAAmB,EAAE,OAAO,CAAC;IAC7B,aAAa,EAAE,OAAO,CAAC;IACvB,uBAAuB,EAAE,OAAO,CAAC;IACjC,yBAAyB,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACnD,aAAa,EAAE,cAAc,CAAC;CACjC,CAAC;AAwBF,gBAAgB;AAChB,eAAO,MAAM,oBAAoB,4CAAW,CAAC;AAE7C,gBAAgB;AAChB,wBAAgB,cAAc,CAAC,KAAK,EAAE,mBAAmB,CAAC,0BAA0B,CAAC,kEAwDpF;AAED,gBAAgB;AAChB,wBAAgB,cAAc,CAC1B,OAAO,EAAE,aAAa,CAAC,OAAO,CAAC,CAAC,QAAQ,CAAC,GAAG,SAAS,EACrD,MAAM,EAAE,aAAa,CAAC,QAAQ,CAAC,GAAG,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA6B9C;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, loadDisableKda, saveChartFill, saveColorMapping, } from "../utils/configUtils.js";
|
|
2
|
+
import { DEFAULT_CUSTOM_TOOLTIP, loadChartFill, loadColorMapping, loadCustomTooltip, loadDisableKda, saveChartFill, saveColorMapping, saveCustomTooltip, } from "../utils/configUtils.js";
|
|
3
3
|
import { getValueOrDefault, loadConfig, saveConfigObject, } from "./utils.js";
|
|
4
4
|
/** @internal */
|
|
5
5
|
const DEFAULTS = {
|
|
@@ -20,6 +20,7 @@ const DEFAULTS = {
|
|
|
20
20
|
disableAlerts: false,
|
|
21
21
|
disableScheduledExports: false,
|
|
22
22
|
disableKeyDriveAnalysisOn: {},
|
|
23
|
+
customTooltip: DEFAULT_CUSTOM_TOOLTIP,
|
|
23
24
|
};
|
|
24
25
|
/** @internal */
|
|
25
26
|
export const DONUT_CHART_DEFAULTS = DEFAULTS;
|
|
@@ -74,6 +75,8 @@ export function donutChartLoad(props) {
|
|
|
74
75
|
];
|
|
75
76
|
case "disableKeyDriveAnalysisOn":
|
|
76
77
|
return [["disable_key_drive_analysis", loadDisableKda(value)]];
|
|
78
|
+
case "customTooltip":
|
|
79
|
+
return [["custom_tooltip", loadCustomTooltip(value)]];
|
|
77
80
|
default:
|
|
78
81
|
return [];
|
|
79
82
|
}
|
|
@@ -100,6 +103,7 @@ export function donutChartSave(_fields, config) {
|
|
|
100
103
|
disableAlerts: getValueOrDefault(config.disable_alerts, DEFAULTS.disableAlerts, "bool"),
|
|
101
104
|
disableScheduledExports: getValueOrDefault(config.disable_scheduled_exports, DEFAULTS.disableScheduledExports, "bool"),
|
|
102
105
|
disableKeyDriveAnalysisOn: saveConfigObject(config.disable_key_drive_analysis),
|
|
106
|
+
customTooltip: saveConfigObject(saveCustomTooltip(config.custom_tooltip)),
|
|
103
107
|
});
|
|
104
108
|
}
|
|
105
109
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Visualisation } from "@gooddata/sdk-code-schemas/v1";
|
|
2
|
-
import { type ChartFillType, type ColorMapping, type PatternFillName } from "./types.js";
|
|
2
|
+
import { type ChartFillType, type ColorMapping, type ICustomTooltip, type PatternFillName } from "./types.js";
|
|
3
3
|
import { type ConfigDefaults, type VisualisationConfig } from "./utils.js";
|
|
4
4
|
/** @internal */
|
|
5
5
|
export type FunnelChartConfigProperties = {
|
|
@@ -21,6 +21,7 @@ export type FunnelChartConfigProperties = {
|
|
|
21
21
|
disableAlerts: boolean;
|
|
22
22
|
disableScheduledExports: boolean;
|
|
23
23
|
disableKeyDriveAnalysisOn: Record<string, boolean>;
|
|
24
|
+
customTooltip: ICustomTooltip;
|
|
24
25
|
};
|
|
25
26
|
/** @internal */
|
|
26
27
|
export declare const FUNNEL_CHART_DEFAULTS: ConfigDefaults<FunnelChartConfigProperties>;
|
|
@@ -90,6 +91,7 @@ export declare function funnelChartSave(_fields: Visualisation["query"]["fields"
|
|
|
90
91
|
} | {
|
|
91
92
|
[k: string]: boolean;
|
|
92
93
|
} | undefined;
|
|
94
|
+
customTooltip: ICustomTooltip | undefined;
|
|
93
95
|
} | undefined;
|
|
94
96
|
/**
|
|
95
97
|
* @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;AAanE,OAAO,EAAE,KAAK,aAAa,EAAE,KAAK,YAAY,EAAE,KAAK,cAAc,EAAE,KAAK,eAAe,EAAE,MAAM,YAAY,CAAC;AAC9G,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,mBAAmB,EAAE,OAAO,CAAC;IAC7B,aAAa,EAAE,OAAO,CAAC;IACvB,uBAAuB,EAAE,OAAO,CAAC;IACjC,yBAAyB,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACnD,aAAa,EAAE,cAAc,CAAC;CACjC,CAAC;AAwBF,gBAAgB;AAChB,eAAO,MAAM,qBAAqB,6CAAW,CAAC;AAE9C,gBAAgB;AAChB,wBAAgB,eAAe,CAAC,KAAK,EAAE,mBAAmB,CAAC,2BAA2B,CAAC,kEAwDtF;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA6B9C;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, loadDisableKda, saveChartFill, saveColorMapping, } from "../utils/configUtils.js";
|
|
2
|
+
import { DEFAULT_CUSTOM_TOOLTIP, loadChartFill, loadColorMapping, loadCustomTooltip, loadDisableKda, saveChartFill, saveColorMapping, saveCustomTooltip, } from "../utils/configUtils.js";
|
|
3
3
|
import { getValueOrDefault, loadConfig, saveConfigObject, } from "./utils.js";
|
|
4
4
|
/** @internal */
|
|
5
5
|
const DEFAULTS = {
|
|
@@ -20,6 +20,7 @@ const DEFAULTS = {
|
|
|
20
20
|
disableAlerts: false,
|
|
21
21
|
disableScheduledExports: false,
|
|
22
22
|
disableKeyDriveAnalysisOn: {},
|
|
23
|
+
customTooltip: DEFAULT_CUSTOM_TOOLTIP,
|
|
23
24
|
};
|
|
24
25
|
/** @internal */
|
|
25
26
|
export const FUNNEL_CHART_DEFAULTS = DEFAULTS;
|
|
@@ -74,6 +75,8 @@ export function funnelChartLoad(props) {
|
|
|
74
75
|
];
|
|
75
76
|
case "disableKeyDriveAnalysisOn":
|
|
76
77
|
return [["disable_key_drive_analysis", loadDisableKda(value)]];
|
|
78
|
+
case "customTooltip":
|
|
79
|
+
return [["custom_tooltip", loadCustomTooltip(value)]];
|
|
77
80
|
default:
|
|
78
81
|
return [];
|
|
79
82
|
}
|
|
@@ -100,6 +103,7 @@ export function funnelChartSave(_fields, config) {
|
|
|
100
103
|
disableAlerts: getValueOrDefault(config.disable_alerts, DEFAULTS.disableAlerts, "bool"),
|
|
101
104
|
disableScheduledExports: getValueOrDefault(config.disable_scheduled_exports, DEFAULTS.disableScheduledExports, "bool"),
|
|
102
105
|
disableKeyDriveAnalysisOn: saveConfigObject(config.disable_key_drive_analysis),
|
|
106
|
+
customTooltip: saveConfigObject(saveCustomTooltip(config.custom_tooltip)),
|
|
103
107
|
});
|
|
104
108
|
}
|
|
105
109
|
/**
|