@gooddata/sdk-code-convertors 11.35.0-alpha.5 → 11.35.0-alpha.6
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 +22 -9
- package/esm/configs/areaChart.js +13 -4
- package/esm/configs/barChart.d.ts +22 -9
- package/esm/configs/barChart.js +13 -4
- package/esm/configs/bubbleChart.d.ts +22 -9
- package/esm/configs/bubbleChart.js +13 -4
- package/esm/configs/bulletChart.d.ts +22 -9
- package/esm/configs/bulletChart.js +13 -4
- package/esm/configs/columnChart.d.ts +22 -9
- package/esm/configs/columnChart.js +13 -4
- package/esm/configs/comboChart.d.ts +22 -9
- package/esm/configs/comboChart.js +13 -4
- package/esm/configs/dependencyWheelChart.d.ts +22 -9
- package/esm/configs/dependencyWheelChart.js +13 -4
- package/esm/configs/donutChart.d.ts +22 -9
- package/esm/configs/donutChart.js +13 -4
- package/esm/configs/funnelChart.d.ts +22 -9
- package/esm/configs/funnelChart.js +13 -4
- package/esm/configs/geoAreaChart.d.ts +22 -9
- package/esm/configs/geoAreaChart.js +13 -4
- package/esm/configs/geoChart.d.ts +22 -9
- package/esm/configs/geoChart.js +13 -4
- package/esm/configs/headlineChart.d.ts +22 -9
- package/esm/configs/headlineChart.js +13 -4
- package/esm/configs/heatmapChart.d.ts +22 -9
- package/esm/configs/heatmapChart.js +13 -4
- package/esm/configs/lineChart.d.ts +22 -9
- package/esm/configs/lineChart.js +13 -4
- package/esm/configs/pieChart.d.ts +22 -9
- package/esm/configs/pieChart.js +13 -4
- package/esm/configs/pyramidChart.d.ts +22 -9
- package/esm/configs/pyramidChart.js +13 -4
- package/esm/configs/repeaterChart.d.ts +25 -10
- package/esm/configs/repeaterChart.js +15 -5
- package/esm/configs/sankeyChart.d.ts +22 -9
- package/esm/configs/sankeyChart.js +13 -4
- package/esm/configs/scatterChart.d.ts +22 -9
- package/esm/configs/scatterChart.js +13 -4
- package/esm/configs/table.d.ts +22 -9
- package/esm/configs/table.js +13 -4
- package/esm/configs/treemapChart.d.ts +22 -9
- package/esm/configs/treemapChart.js +13 -4
- package/esm/configs/types.d.ts +28 -0
- package/esm/configs/utils.d.ts +1 -0
- package/esm/configs/waterfallChart.d.ts +22 -9
- package/esm/configs/waterfallChart.js +13 -4
- package/esm/conts.d.ts +8 -0
- package/esm/conts.js +8 -0
- package/esm/from/declarativeDashboardToYaml.d.ts +9 -0
- package/esm/from/declarativeDashboardToYaml.js +7 -0
- package/esm/from/declarativeVisualisationToYaml.d.ts +47 -17
- package/esm/from/declarativeVisualisationToYaml.js +19 -0
- package/esm/index.d.ts +27 -27
- package/esm/index.js +23 -23
- package/esm/sdk-code-convertors.d.ts +2107 -1647
- package/esm/to/yamlDashboardToDeclarative.d.ts +18 -5
- package/esm/to/yamlDashboardToDeclarative.js +5 -0
- package/esm/to/yamlDatasetToDeclarative.d.ts +4 -0
- package/esm/to/yamlDatasetToDeclarative.js +4 -0
- package/esm/to/yamlVisualisationToDeclarative.d.ts +7 -2
- package/esm/to/yamlVisualisationToDeclarative.js +5 -0
- package/esm/utils/sharedUtils.d.ts +1 -0
- package/package.json +7 -7
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import type { Visualisation } from "@gooddata/sdk-code-schemas/v1";
|
|
2
2
|
import { type ChartFillType, type ColorMapping, type PatternFillName, type PointShapeSymbol } from "./types.js";
|
|
3
3
|
import { type ConfigDefaults, type VisualisationConfig } from "./utils.js";
|
|
4
|
-
|
|
4
|
+
/** @internal */
|
|
5
|
+
export type AreaChartConfigProperties = {
|
|
5
6
|
colorMapping: Array<ColorMapping>;
|
|
6
7
|
distinctPointShapes: {
|
|
7
8
|
enabled: boolean;
|
|
@@ -52,8 +53,12 @@ type DefaultProperties = {
|
|
|
52
53
|
disableAlerts: boolean;
|
|
53
54
|
disableScheduledExports: boolean;
|
|
54
55
|
};
|
|
55
|
-
|
|
56
|
-
declare
|
|
56
|
+
/** @internal */
|
|
57
|
+
export declare const AREA_CHART_DEFAULTS: ConfigDefaults<AreaChartConfigProperties>;
|
|
58
|
+
/** @internal */
|
|
59
|
+
export declare function areaChartLoad(props: VisualisationConfig<AreaChartConfigProperties>): import("yaml").Pair<import("yaml").Scalar<string>, any> | null;
|
|
60
|
+
/** @internal */
|
|
61
|
+
export declare function areaChartSave(_fields: Visualisation["query"]["fields"] | undefined, config: Visualisation["config"] | undefined): {
|
|
57
62
|
colorMapping: ColorMapping[] | undefined;
|
|
58
63
|
distinctPointShapes: {
|
|
59
64
|
enabled: boolean | undefined;
|
|
@@ -104,9 +109,17 @@ declare function save(_fields: Visualisation["query"]["fields"] | undefined, con
|
|
|
104
109
|
disableAlerts: boolean | undefined;
|
|
105
110
|
disableScheduledExports: boolean | undefined;
|
|
106
111
|
} | undefined;
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
112
|
+
/**
|
|
113
|
+
* @internal
|
|
114
|
+
* @deprecated Use areaChartLoad and areaChartSave instead.
|
|
115
|
+
*/
|
|
116
|
+
export interface IAreaChartConfig {
|
|
117
|
+
load: typeof areaChartLoad;
|
|
118
|
+
save: typeof areaChartSave;
|
|
119
|
+
DEFAULTS: ConfigDefaults<AreaChartConfigProperties>;
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
122
|
+
* @internal
|
|
123
|
+
* @deprecated Use areaChartLoad and areaChartSave instead.
|
|
124
|
+
*/
|
|
125
|
+
export declare const areaChart: IAreaChartConfig;
|
package/esm/configs/areaChart.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// (C) 2023-2026 GoodData Corporation
|
|
2
2
|
import { loadChartFill, loadColorMapping, saveChartFill, saveColorMapping } from "../utils/configUtils.js";
|
|
3
3
|
import { getValueOrDefault, loadConfig, saveConfigObject, } from "./utils.js";
|
|
4
|
+
/** @internal */
|
|
4
5
|
const DEFAULTS = {
|
|
5
6
|
colorMapping: [],
|
|
6
7
|
distinctPointShapes: {
|
|
@@ -50,7 +51,10 @@ const DEFAULTS = {
|
|
|
50
51
|
disableAlerts: false,
|
|
51
52
|
disableScheduledExports: false,
|
|
52
53
|
};
|
|
53
|
-
|
|
54
|
+
/** @internal */
|
|
55
|
+
export const AREA_CHART_DEFAULTS = DEFAULTS;
|
|
56
|
+
/** @internal */
|
|
57
|
+
export function areaChartLoad(props) {
|
|
54
58
|
return loadConfig(props, (key, value) => {
|
|
55
59
|
switch (key) {
|
|
56
60
|
case "colorMapping":
|
|
@@ -170,7 +174,8 @@ function load(props) {
|
|
|
170
174
|
}
|
|
171
175
|
});
|
|
172
176
|
}
|
|
173
|
-
|
|
177
|
+
/** @internal */
|
|
178
|
+
export function areaChartSave(_fields, config) {
|
|
174
179
|
if (!config) {
|
|
175
180
|
return undefined;
|
|
176
181
|
}
|
|
@@ -224,8 +229,12 @@ function save(_fields, config) {
|
|
|
224
229
|
disableScheduledExports: getValueOrDefault(config.disable_scheduled_exports, DEFAULTS.disableScheduledExports, "bool"),
|
|
225
230
|
});
|
|
226
231
|
}
|
|
232
|
+
/**
|
|
233
|
+
* @internal
|
|
234
|
+
* @deprecated Use areaChartLoad and areaChartSave instead.
|
|
235
|
+
*/
|
|
227
236
|
export const areaChart = {
|
|
228
|
-
load,
|
|
229
|
-
save,
|
|
237
|
+
load: areaChartLoad,
|
|
238
|
+
save: areaChartSave,
|
|
230
239
|
DEFAULTS,
|
|
231
240
|
};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import type { Visualisation } from "@gooddata/sdk-code-schemas/v1";
|
|
2
2
|
import { type ChartFillType, type ColorMapping, type PatternFillName } from "./types.js";
|
|
3
3
|
import { type ConfigDefaults, type VisualisationConfig } from "./utils.js";
|
|
4
|
-
|
|
4
|
+
/** @internal */
|
|
5
|
+
export type BarChartConfigProperties = {
|
|
5
6
|
colorMapping: Array<ColorMapping>;
|
|
6
7
|
dataLabels: {
|
|
7
8
|
totalsVisible: boolean | "auto";
|
|
@@ -46,8 +47,12 @@ type DefaultProperties = {
|
|
|
46
47
|
disableAlerts: boolean;
|
|
47
48
|
disableScheduledExports: boolean;
|
|
48
49
|
};
|
|
49
|
-
|
|
50
|
-
declare
|
|
50
|
+
/** @internal */
|
|
51
|
+
export declare const BAR_CHART_DEFAULTS: ConfigDefaults<BarChartConfigProperties>;
|
|
52
|
+
/** @internal */
|
|
53
|
+
export declare function barChartLoad(props: VisualisationConfig<BarChartConfigProperties>): import("yaml").Pair<import("yaml").Scalar<string>, any> | null;
|
|
54
|
+
/** @internal */
|
|
55
|
+
export declare function barChartSave(_fields: Visualisation["query"]["fields"] | undefined, config: Visualisation["config"] | undefined): {
|
|
51
56
|
colorMapping: ColorMapping[] | undefined;
|
|
52
57
|
dataLabels: {
|
|
53
58
|
totalsVisible: "auto" | boolean | undefined;
|
|
@@ -92,9 +97,17 @@ declare function save(_fields: Visualisation["query"]["fields"] | undefined, con
|
|
|
92
97
|
disableAlerts: boolean | undefined;
|
|
93
98
|
disableScheduledExports: boolean | undefined;
|
|
94
99
|
} | undefined;
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
100
|
+
/**
|
|
101
|
+
* @internal
|
|
102
|
+
* @deprecated Use barChartLoad and barChartSave instead.
|
|
103
|
+
*/
|
|
104
|
+
export interface IBarChartConfig {
|
|
105
|
+
load: typeof barChartLoad;
|
|
106
|
+
save: typeof barChartSave;
|
|
107
|
+
DEFAULTS: ConfigDefaults<BarChartConfigProperties>;
|
|
108
|
+
}
|
|
109
|
+
/**
|
|
110
|
+
* @internal
|
|
111
|
+
* @deprecated Use barChartLoad and barChartSave instead.
|
|
112
|
+
*/
|
|
113
|
+
export declare const barChart: IBarChartConfig;
|
package/esm/configs/barChart.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// (C) 2023-2026 GoodData Corporation
|
|
2
2
|
import { loadChartFill, loadColorMapping, saveChartFill, saveColorMapping } from "../utils/configUtils.js";
|
|
3
3
|
import { getValueOrDefault, loadConfig, saveConfigObject, } from "./utils.js";
|
|
4
|
+
/** @internal */
|
|
4
5
|
const DEFAULTS = {
|
|
5
6
|
colorMapping: [],
|
|
6
7
|
dataLabels: {
|
|
@@ -45,7 +46,10 @@ const DEFAULTS = {
|
|
|
45
46
|
disableAlerts: false,
|
|
46
47
|
disableScheduledExports: false,
|
|
47
48
|
};
|
|
48
|
-
|
|
49
|
+
/** @internal */
|
|
50
|
+
export const BAR_CHART_DEFAULTS = DEFAULTS;
|
|
51
|
+
/** @internal */
|
|
52
|
+
export function barChartLoad(props) {
|
|
49
53
|
return loadConfig(props, (key, value) => {
|
|
50
54
|
switch (key) {
|
|
51
55
|
case "colorMapping":
|
|
@@ -155,7 +159,8 @@ function load(props) {
|
|
|
155
159
|
}
|
|
156
160
|
});
|
|
157
161
|
}
|
|
158
|
-
|
|
162
|
+
/** @internal */
|
|
163
|
+
export function barChartSave(_fields, config) {
|
|
159
164
|
if (!config) {
|
|
160
165
|
return undefined;
|
|
161
166
|
}
|
|
@@ -202,8 +207,12 @@ function save(_fields, config) {
|
|
|
202
207
|
disableScheduledExports: getValueOrDefault(config.disable_scheduled_exports, DEFAULTS.disableScheduledExports, "bool"),
|
|
203
208
|
});
|
|
204
209
|
}
|
|
210
|
+
/**
|
|
211
|
+
* @internal
|
|
212
|
+
* @deprecated Use barChartLoad and barChartSave instead.
|
|
213
|
+
*/
|
|
205
214
|
export const barChart = {
|
|
206
|
-
load,
|
|
207
|
-
save,
|
|
215
|
+
load: barChartLoad,
|
|
216
|
+
save: barChartSave,
|
|
208
217
|
DEFAULTS,
|
|
209
218
|
};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import type { Visualisation } from "@gooddata/sdk-code-schemas/v1";
|
|
2
2
|
import { type ColorMapping } from "./types.js";
|
|
3
3
|
import { type ConfigDefaults, type VisualisationConfig } from "./utils.js";
|
|
4
|
-
|
|
4
|
+
/** @internal */
|
|
5
|
+
export type BubbleChartConfigProperties = {
|
|
5
6
|
colorMapping: Array<ColorMapping>;
|
|
6
7
|
dataLabels: {
|
|
7
8
|
visible: boolean | "auto";
|
|
@@ -42,8 +43,12 @@ type DefaultProperties = {
|
|
|
42
43
|
disableAlerts: boolean;
|
|
43
44
|
disableScheduledExports: boolean;
|
|
44
45
|
};
|
|
45
|
-
|
|
46
|
-
declare
|
|
46
|
+
/** @internal */
|
|
47
|
+
export declare const BUBBLE_CHART_DEFAULTS: ConfigDefaults<BubbleChartConfigProperties>;
|
|
48
|
+
/** @internal */
|
|
49
|
+
export declare function bubbleChartLoad(props: VisualisationConfig<BubbleChartConfigProperties>): import("yaml").Pair<import("yaml").Scalar<string>, any> | null;
|
|
50
|
+
/** @internal */
|
|
51
|
+
export declare function bubbleChartSave(_fields: Visualisation["query"]["fields"] | undefined, config: Visualisation["config"] | undefined): {
|
|
47
52
|
colorMapping: ColorMapping[] | undefined;
|
|
48
53
|
dataLabels: {
|
|
49
54
|
visible: "auto" | boolean | undefined;
|
|
@@ -84,9 +89,17 @@ declare function save(_fields: Visualisation["query"]["fields"] | undefined, con
|
|
|
84
89
|
disableAlerts: boolean | undefined;
|
|
85
90
|
disableScheduledExports: boolean | undefined;
|
|
86
91
|
} | undefined;
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
92
|
+
/**
|
|
93
|
+
* @internal
|
|
94
|
+
* @deprecated Use bubbleChartLoad and bubbleChartSave instead.
|
|
95
|
+
*/
|
|
96
|
+
export interface IBubbleChartConfig {
|
|
97
|
+
load: typeof bubbleChartLoad;
|
|
98
|
+
save: typeof bubbleChartSave;
|
|
99
|
+
DEFAULTS: ConfigDefaults<BubbleChartConfigProperties>;
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* @internal
|
|
103
|
+
* @deprecated Use bubbleChartLoad and bubbleChartSave instead.
|
|
104
|
+
*/
|
|
105
|
+
export declare const bubbleChart: IBubbleChartConfig;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// (C) 2023-2026 GoodData Corporation
|
|
2
2
|
import { loadColorMapping, saveColorMapping } from "../utils/configUtils.js";
|
|
3
3
|
import { getValueOrDefault, loadConfig, saveConfigObject, } from "./utils.js";
|
|
4
|
+
/** @internal */
|
|
4
5
|
const DEFAULTS = {
|
|
5
6
|
colorMapping: [],
|
|
6
7
|
dataLabels: {
|
|
@@ -42,7 +43,10 @@ const DEFAULTS = {
|
|
|
42
43
|
disableAlerts: false,
|
|
43
44
|
disableScheduledExports: false,
|
|
44
45
|
};
|
|
45
|
-
|
|
46
|
+
/** @internal */
|
|
47
|
+
export const BUBBLE_CHART_DEFAULTS = DEFAULTS;
|
|
48
|
+
/** @internal */
|
|
49
|
+
export function bubbleChartLoad(props) {
|
|
46
50
|
return loadConfig(props, (key, value) => {
|
|
47
51
|
switch (key) {
|
|
48
52
|
case "colorMapping":
|
|
@@ -132,7 +136,8 @@ function load(props) {
|
|
|
132
136
|
}
|
|
133
137
|
});
|
|
134
138
|
}
|
|
135
|
-
|
|
139
|
+
/** @internal */
|
|
140
|
+
export function bubbleChartSave(_fields, config) {
|
|
136
141
|
if (!config) {
|
|
137
142
|
return undefined;
|
|
138
143
|
}
|
|
@@ -178,8 +183,12 @@ function save(_fields, config) {
|
|
|
178
183
|
disableScheduledExports: getValueOrDefault(config.disable_scheduled_exports, DEFAULTS.disableScheduledExports, "bool"),
|
|
179
184
|
});
|
|
180
185
|
}
|
|
186
|
+
/**
|
|
187
|
+
* @internal
|
|
188
|
+
* @deprecated Use bubbleChartLoad and bubbleChartSave instead.
|
|
189
|
+
*/
|
|
181
190
|
export const bubbleChart = {
|
|
182
|
-
load,
|
|
183
|
-
save,
|
|
191
|
+
load: bubbleChartLoad,
|
|
192
|
+
save: bubbleChartSave,
|
|
184
193
|
DEFAULTS,
|
|
185
194
|
};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import type { Visualisation } from "@gooddata/sdk-code-schemas/v1";
|
|
2
2
|
import { type ChartFillType, type ColorMapping, type PatternFillName } from "./types.js";
|
|
3
3
|
import { type ConfigDefaults, type VisualisationConfig } from "./utils.js";
|
|
4
|
-
|
|
4
|
+
/** @internal */
|
|
5
|
+
export type BulletChartConfigProperties = {
|
|
5
6
|
colorMapping: Array<ColorMapping>;
|
|
6
7
|
legend: {
|
|
7
8
|
enabled: boolean;
|
|
@@ -39,8 +40,12 @@ type DefaultProperties = {
|
|
|
39
40
|
disableAlerts: boolean;
|
|
40
41
|
disableScheduledExports: boolean;
|
|
41
42
|
};
|
|
42
|
-
|
|
43
|
-
declare
|
|
43
|
+
/** @internal */
|
|
44
|
+
export declare const BULLET_CHART_DEFAULTS: ConfigDefaults<BulletChartConfigProperties>;
|
|
45
|
+
/** @internal */
|
|
46
|
+
export declare function bulletChartLoad(props: VisualisationConfig<BulletChartConfigProperties>): import("yaml").Pair<import("yaml").Scalar<string>, any> | null;
|
|
47
|
+
/** @internal */
|
|
48
|
+
export declare function bulletChartSave(_fields: Visualisation["query"]["fields"] | undefined, config: Visualisation["config"] | undefined): {
|
|
44
49
|
colorMapping: ColorMapping[] | undefined;
|
|
45
50
|
legend: {
|
|
46
51
|
enabled: boolean | undefined;
|
|
@@ -78,9 +83,17 @@ declare function save(_fields: Visualisation["query"]["fields"] | undefined, con
|
|
|
78
83
|
disableAlerts: boolean | undefined;
|
|
79
84
|
disableScheduledExports: boolean | undefined;
|
|
80
85
|
} | undefined;
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
86
|
+
/**
|
|
87
|
+
* @internal
|
|
88
|
+
* @deprecated Use bulletChartLoad and bulletChartSave instead.
|
|
89
|
+
*/
|
|
90
|
+
export interface IBulletChartConfig {
|
|
91
|
+
load: typeof bulletChartLoad;
|
|
92
|
+
save: typeof bulletChartSave;
|
|
93
|
+
DEFAULTS: ConfigDefaults<BulletChartConfigProperties>;
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* @internal
|
|
97
|
+
* @deprecated Use bulletChartLoad and bulletChartSave instead.
|
|
98
|
+
*/
|
|
99
|
+
export declare const bulletChart: IBulletChartConfig;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// (C) 2023-2026 GoodData Corporation
|
|
2
2
|
import { loadChartFill, loadColorMapping, saveChartFill, saveColorMapping } from "../utils/configUtils.js";
|
|
3
3
|
import { getValueOrDefault, loadConfig, saveConfigObject, } from "./utils.js";
|
|
4
|
+
/** @internal */
|
|
4
5
|
const DEFAULTS = {
|
|
5
6
|
colorMapping: [],
|
|
6
7
|
legend: {
|
|
@@ -38,7 +39,10 @@ const DEFAULTS = {
|
|
|
38
39
|
disableAlerts: false,
|
|
39
40
|
disableScheduledExports: false,
|
|
40
41
|
};
|
|
41
|
-
|
|
42
|
+
/** @internal */
|
|
43
|
+
export const BULLET_CHART_DEFAULTS = DEFAULTS;
|
|
44
|
+
/** @internal */
|
|
45
|
+
export function bulletChartLoad(props) {
|
|
42
46
|
return loadConfig(props, (key, value) => {
|
|
43
47
|
switch (key) {
|
|
44
48
|
case "colorMapping":
|
|
@@ -126,7 +130,8 @@ function load(props) {
|
|
|
126
130
|
}
|
|
127
131
|
});
|
|
128
132
|
}
|
|
129
|
-
|
|
133
|
+
/** @internal */
|
|
134
|
+
export function bulletChartSave(_fields, config) {
|
|
130
135
|
if (!config) {
|
|
131
136
|
return undefined;
|
|
132
137
|
}
|
|
@@ -166,8 +171,12 @@ function save(_fields, config) {
|
|
|
166
171
|
disableScheduledExports: getValueOrDefault(config.disable_scheduled_exports, DEFAULTS.disableScheduledExports, "bool"),
|
|
167
172
|
});
|
|
168
173
|
}
|
|
174
|
+
/**
|
|
175
|
+
* @internal
|
|
176
|
+
* @deprecated Use bulletChartLoad and bulletChartSave instead.
|
|
177
|
+
*/
|
|
169
178
|
export const bulletChart = {
|
|
170
|
-
load,
|
|
171
|
-
save,
|
|
179
|
+
load: bulletChartLoad,
|
|
180
|
+
save: bulletChartSave,
|
|
172
181
|
DEFAULTS,
|
|
173
182
|
};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import type { Visualisation } from "@gooddata/sdk-code-schemas/v1";
|
|
2
2
|
import { type ChartFillType, type ColorMapping, type PatternFillName } from "./types.js";
|
|
3
3
|
import { type ConfigDefaults, type VisualisationConfig } from "./utils.js";
|
|
4
|
-
|
|
4
|
+
/** @internal */
|
|
5
|
+
export type ColumnChartConfigProperties = {
|
|
5
6
|
colorMapping: Array<ColorMapping>;
|
|
6
7
|
dataLabels: {
|
|
7
8
|
totalsVisible: boolean | "auto";
|
|
@@ -46,8 +47,12 @@ type DefaultProperties = {
|
|
|
46
47
|
disableAlerts: boolean;
|
|
47
48
|
disableScheduledExports: boolean;
|
|
48
49
|
};
|
|
49
|
-
|
|
50
|
-
declare
|
|
50
|
+
/** @internal */
|
|
51
|
+
export declare const COLUMN_CHART_DEFAULTS: ConfigDefaults<ColumnChartConfigProperties>;
|
|
52
|
+
/** @internal */
|
|
53
|
+
export declare function columnChartLoad(props: VisualisationConfig<ColumnChartConfigProperties>): import("yaml").Pair<import("yaml").Scalar<string>, any> | null;
|
|
54
|
+
/** @internal */
|
|
55
|
+
export declare function columnChartSave(_fields: Visualisation["query"]["fields"] | undefined, config: Visualisation["config"] | undefined): {
|
|
51
56
|
colorMapping: ColorMapping[] | undefined;
|
|
52
57
|
dataLabels: {
|
|
53
58
|
totalsVisible: "auto" | boolean | undefined;
|
|
@@ -92,9 +97,17 @@ declare function save(_fields: Visualisation["query"]["fields"] | undefined, con
|
|
|
92
97
|
disableAlerts: boolean | undefined;
|
|
93
98
|
disableScheduledExports: boolean | undefined;
|
|
94
99
|
} | undefined;
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
100
|
+
/**
|
|
101
|
+
* @internal
|
|
102
|
+
* @deprecated Use columnChartLoad and columnChartSave instead.
|
|
103
|
+
*/
|
|
104
|
+
export interface IColumnChartConfig {
|
|
105
|
+
load: typeof columnChartLoad;
|
|
106
|
+
save: typeof columnChartSave;
|
|
107
|
+
DEFAULTS: ConfigDefaults<ColumnChartConfigProperties>;
|
|
108
|
+
}
|
|
109
|
+
/**
|
|
110
|
+
* @internal
|
|
111
|
+
* @deprecated Use columnChartLoad and columnChartSave instead.
|
|
112
|
+
*/
|
|
113
|
+
export declare const columnChart: IColumnChartConfig;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// (C) 2023-2026 GoodData Corporation
|
|
2
2
|
import { loadChartFill, loadColorMapping, saveChartFill, saveColorMapping } from "../utils/configUtils.js";
|
|
3
3
|
import { getValueOrDefault, loadConfig, saveConfigObject, } from "./utils.js";
|
|
4
|
+
/** @internal */
|
|
4
5
|
const DEFAULTS = {
|
|
5
6
|
colorMapping: [],
|
|
6
7
|
dataLabels: {
|
|
@@ -45,7 +46,10 @@ const DEFAULTS = {
|
|
|
45
46
|
disableAlerts: false,
|
|
46
47
|
disableScheduledExports: false,
|
|
47
48
|
};
|
|
48
|
-
|
|
49
|
+
/** @internal */
|
|
50
|
+
export const COLUMN_CHART_DEFAULTS = DEFAULTS;
|
|
51
|
+
/** @internal */
|
|
52
|
+
export function columnChartLoad(props) {
|
|
49
53
|
return loadConfig(props, (key, value) => {
|
|
50
54
|
switch (key) {
|
|
51
55
|
case "colorMapping":
|
|
@@ -155,7 +159,8 @@ function load(props) {
|
|
|
155
159
|
}
|
|
156
160
|
});
|
|
157
161
|
}
|
|
158
|
-
|
|
162
|
+
/** @internal */
|
|
163
|
+
export function columnChartSave(_fields, config) {
|
|
159
164
|
if (!config) {
|
|
160
165
|
return undefined;
|
|
161
166
|
}
|
|
@@ -202,8 +207,12 @@ function save(_fields, config) {
|
|
|
202
207
|
disableScheduledExports: getValueOrDefault(config.disable_scheduled_exports, DEFAULTS.disableScheduledExports, "bool"),
|
|
203
208
|
});
|
|
204
209
|
}
|
|
210
|
+
/**
|
|
211
|
+
* @internal
|
|
212
|
+
* @deprecated Use columnChartLoad and columnChartSave instead.
|
|
213
|
+
*/
|
|
205
214
|
export const columnChart = {
|
|
206
|
-
load,
|
|
207
|
-
save,
|
|
215
|
+
load: columnChartLoad,
|
|
216
|
+
save: columnChartSave,
|
|
208
217
|
DEFAULTS,
|
|
209
218
|
};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import type { Bucket, Visualisation } from "@gooddata/sdk-code-schemas/v1";
|
|
2
2
|
import { type ChartFillType, type ColorMapping, type PatternFillName, type PointShapeSymbol } from "./types.js";
|
|
3
3
|
import { type ConfigDefaults, type VisualisationConfig } from "./utils.js";
|
|
4
|
-
|
|
4
|
+
/** @internal */
|
|
5
|
+
export type ComboChartConfigProperties = {
|
|
5
6
|
colorMapping: Array<ColorMapping>;
|
|
6
7
|
continuousLine: {
|
|
7
8
|
enabled: boolean;
|
|
@@ -73,8 +74,12 @@ type DefaultProperties = {
|
|
|
73
74
|
thresholdMeasures: string[];
|
|
74
75
|
thresholdExcludedMeasures: string[];
|
|
75
76
|
};
|
|
76
|
-
|
|
77
|
-
declare
|
|
77
|
+
/** @internal */
|
|
78
|
+
export declare const COMBO_CHART_DEFAULTS: ConfigDefaults<ComboChartConfigProperties>;
|
|
79
|
+
/** @internal */
|
|
80
|
+
export declare function comboChartLoad(props: VisualisationConfig<ComboChartConfigProperties>): import("yaml").Pair<import("yaml").Scalar<string>, any> | null;
|
|
81
|
+
/** @internal */
|
|
82
|
+
export declare function comboChartSave(_fields: Visualisation["query"]["fields"] | undefined, config: Visualisation["config"] | undefined, buckets?: Bucket[]): {
|
|
78
83
|
colorMapping: ColorMapping[] | undefined;
|
|
79
84
|
continuousLine: {
|
|
80
85
|
enabled: boolean | undefined;
|
|
@@ -146,9 +151,17 @@ declare function save(_fields: Visualisation["query"]["fields"] | undefined, con
|
|
|
146
151
|
thresholdMeasures: string[] | undefined;
|
|
147
152
|
thresholdExcludedMeasures: string[] | undefined;
|
|
148
153
|
} | undefined;
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
154
|
+
/**
|
|
155
|
+
* @internal
|
|
156
|
+
* @deprecated Use comboChartLoad and comboChartSave instead.
|
|
157
|
+
*/
|
|
158
|
+
export interface IComboChartConfig {
|
|
159
|
+
load: typeof comboChartLoad;
|
|
160
|
+
save: typeof comboChartSave;
|
|
161
|
+
DEFAULTS: ConfigDefaults<ComboChartConfigProperties>;
|
|
162
|
+
}
|
|
163
|
+
/**
|
|
164
|
+
* @internal
|
|
165
|
+
* @deprecated Use comboChartLoad and comboChartSave instead.
|
|
166
|
+
*/
|
|
167
|
+
export declare const comboChart: IComboChartConfig;
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
import { loadChartFill, loadColorMapping, saveChartFill, saveColorMapping } from "../utils/configUtils.js";
|
|
3
3
|
import { getFullBucket } from "../utils/sharedUtils.js";
|
|
4
4
|
import { getValueOrDefault, loadConfig, saveConfigObject, } from "./utils.js";
|
|
5
|
+
/** @internal */
|
|
5
6
|
const DEFAULTS = {
|
|
6
7
|
colorMapping: [],
|
|
7
8
|
continuousLine: {
|
|
@@ -72,7 +73,10 @@ const DEFAULTS = {
|
|
|
72
73
|
thresholdMeasures: [],
|
|
73
74
|
thresholdExcludedMeasures: [],
|
|
74
75
|
};
|
|
75
|
-
|
|
76
|
+
/** @internal */
|
|
77
|
+
export const COMBO_CHART_DEFAULTS = DEFAULTS;
|
|
78
|
+
/** @internal */
|
|
79
|
+
export function comboChartLoad(props) {
|
|
76
80
|
return loadConfig(props, (key, value) => {
|
|
77
81
|
switch (key) {
|
|
78
82
|
case "colorMapping":
|
|
@@ -266,7 +270,8 @@ function load(props) {
|
|
|
266
270
|
}
|
|
267
271
|
});
|
|
268
272
|
}
|
|
269
|
-
|
|
273
|
+
/** @internal */
|
|
274
|
+
export function comboChartSave(_fields, config, buckets = []) {
|
|
270
275
|
if (!config) {
|
|
271
276
|
return undefined;
|
|
272
277
|
}
|
|
@@ -347,8 +352,12 @@ function save(_fields, config, buckets = []) {
|
|
|
347
352
|
thresholdExcludedMeasures: getValueOrDefault(config.line_style_excluded_metrics, DEFAULTS.thresholdExcludedMeasures, "array"),
|
|
348
353
|
});
|
|
349
354
|
}
|
|
355
|
+
/**
|
|
356
|
+
* @internal
|
|
357
|
+
* @deprecated Use comboChartLoad and comboChartSave instead.
|
|
358
|
+
*/
|
|
350
359
|
export const comboChart = {
|
|
351
|
-
load,
|
|
352
|
-
save,
|
|
360
|
+
load: comboChartLoad,
|
|
361
|
+
save: comboChartSave,
|
|
353
362
|
DEFAULTS,
|
|
354
363
|
};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import type { Visualisation } from "@gooddata/sdk-code-schemas/v1";
|
|
2
2
|
import { type ColorMapping } from "./types.js";
|
|
3
3
|
import { type ConfigDefaults, type VisualisationConfig } from "./utils.js";
|
|
4
|
-
|
|
4
|
+
/** @internal */
|
|
5
|
+
export type DependencyWheelChartConfigProperties = {
|
|
5
6
|
colorMapping: Array<ColorMapping>;
|
|
6
7
|
dataLabels: {
|
|
7
8
|
visible: boolean | "auto";
|
|
@@ -14,8 +15,12 @@ type DefaultProperties = {
|
|
|
14
15
|
disableAlerts: boolean;
|
|
15
16
|
disableScheduledExports: boolean;
|
|
16
17
|
};
|
|
17
|
-
|
|
18
|
-
declare
|
|
18
|
+
/** @internal */
|
|
19
|
+
export declare const DEPENDENCY_WHEEL_CHART_DEFAULTS: ConfigDefaults<DependencyWheelChartConfigProperties>;
|
|
20
|
+
/** @internal */
|
|
21
|
+
export declare function dependencyWheelChartLoad(props: VisualisationConfig<DependencyWheelChartConfigProperties>): import("yaml").Pair<import("yaml").Scalar<string>, any> | null;
|
|
22
|
+
/** @internal */
|
|
23
|
+
export declare function dependencyWheelChartSave(_fields: Visualisation["query"]["fields"] | undefined, config: Visualisation["config"] | undefined): {
|
|
19
24
|
colorMapping: ColorMapping[] | undefined;
|
|
20
25
|
dataLabels: {
|
|
21
26
|
visible: "auto" | boolean | undefined;
|
|
@@ -28,9 +33,17 @@ declare function save(_fields: Visualisation["query"]["fields"] | undefined, con
|
|
|
28
33
|
disableAlerts: boolean | undefined;
|
|
29
34
|
disableScheduledExports: boolean | undefined;
|
|
30
35
|
} | undefined;
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
36
|
+
/**
|
|
37
|
+
* @internal
|
|
38
|
+
* @deprecated Use dependencyWheelChartLoad and dependencyWheelChartSave instead.
|
|
39
|
+
*/
|
|
40
|
+
export interface IDependencyWheelChartConfig {
|
|
41
|
+
load: typeof dependencyWheelChartLoad;
|
|
42
|
+
save: typeof dependencyWheelChartSave;
|
|
43
|
+
DEFAULTS: ConfigDefaults<DependencyWheelChartConfigProperties>;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* @internal
|
|
47
|
+
* @deprecated Use dependencyWheelChartLoad and dependencyWheelChartSave instead.
|
|
48
|
+
*/
|
|
49
|
+
export declare const dependencyWheelChart: IDependencyWheelChartConfig;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// (C) 2023-2026 GoodData Corporation
|
|
2
2
|
import { loadColorMapping, saveColorMapping } from "../utils/configUtils.js";
|
|
3
3
|
import { getValueOrDefault, loadConfig, saveConfigObject, } from "./utils.js";
|
|
4
|
+
/** @internal */
|
|
4
5
|
const DEFAULTS = {
|
|
5
6
|
colorMapping: [],
|
|
6
7
|
dataLabels: {
|
|
@@ -14,7 +15,10 @@ const DEFAULTS = {
|
|
|
14
15
|
disableAlerts: false,
|
|
15
16
|
disableScheduledExports: false,
|
|
16
17
|
};
|
|
17
|
-
|
|
18
|
+
/** @internal */
|
|
19
|
+
export const DEPENDENCY_WHEEL_CHART_DEFAULTS = DEFAULTS;
|
|
20
|
+
/** @internal */
|
|
21
|
+
export function dependencyWheelChartLoad(props) {
|
|
18
22
|
return loadConfig(props, (key, value) => {
|
|
19
23
|
switch (key) {
|
|
20
24
|
case "colorMapping":
|
|
@@ -55,7 +59,8 @@ function load(props) {
|
|
|
55
59
|
}
|
|
56
60
|
});
|
|
57
61
|
}
|
|
58
|
-
|
|
62
|
+
/** @internal */
|
|
63
|
+
export function dependencyWheelChartSave(_fields, config) {
|
|
59
64
|
if (!config) {
|
|
60
65
|
return undefined;
|
|
61
66
|
}
|
|
@@ -73,8 +78,12 @@ function save(_fields, config) {
|
|
|
73
78
|
disableScheduledExports: getValueOrDefault(config.disable_scheduled_exports, DEFAULTS.disableScheduledExports, "bool"),
|
|
74
79
|
});
|
|
75
80
|
}
|
|
81
|
+
/**
|
|
82
|
+
* @internal
|
|
83
|
+
* @deprecated Use dependencyWheelChartLoad and dependencyWheelChartSave instead.
|
|
84
|
+
*/
|
|
76
85
|
export const dependencyWheelChart = {
|
|
77
|
-
load,
|
|
78
|
-
save,
|
|
86
|
+
load: dependencyWheelChartLoad,
|
|
87
|
+
save: dependencyWheelChartSave,
|
|
79
88
|
DEFAULTS,
|
|
80
89
|
};
|