@gooddata/sdk-ui-ext 11.68.0-alpha.6 → 11.68.0-alpha.8
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/NOTICE +172 -137
- package/esm/internal/components/attributeHierarchies/attributeHierarchyDialog/utils.d.ts.map +1 -1
- package/esm/internal/components/attributeHierarchies/attributeHierarchyDialog/utils.js +2 -2
- package/esm/internal/components/configurationControls/CheckboxControl.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/CheckboxControl.js +3 -2
- package/esm/internal/components/configurationControls/ConfigSection.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/ConfigSection.js +3 -2
- package/esm/internal/components/configurationControls/ConfigSubsection.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/ConfigSubsection.js +3 -2
- package/esm/internal/components/configurationControls/ContinuousLineControl.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/ContinuousLineControl.js +3 -2
- package/esm/internal/components/configurationControls/DistintcPointShapesControl.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/DistintcPointShapesControl.js +3 -2
- package/esm/internal/components/configurationControls/DropdownControl.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/DropdownControl.js +3 -2
- package/esm/internal/components/configurationControls/GeoViewportControl.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/GeoViewportControl.js +3 -2
- package/esm/internal/components/configurationControls/InputControl.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/InputControl.js +4 -3
- package/esm/internal/components/configurationControls/LineShapeControl.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/LineShapeControl.js +3 -2
- package/esm/internal/components/configurationControls/PagingSection.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/PagingSection.js +4 -3
- package/esm/internal/components/configurationControls/PivotTableTextWrappingControl.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/PivotTableTextWrappingControl.js +3 -3
- package/esm/internal/components/configurationControls/PushpinShapeControl.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/PushpinShapeControl.js +4 -3
- package/esm/internal/components/configurationControls/advanced/AdvancedSection.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/advanced/AdvancedSection.js +3 -2
- package/esm/internal/components/configurationControls/colors/ColorsSection.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/colors/ColorsSection.js +3 -2
- package/esm/internal/components/configurationControls/comparison/indicators/colorsControl/ColorCheckbox.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/comparison/indicators/colorsControl/ColorCheckbox.js +4 -3
- package/esm/internal/components/configurationControls/comparison/indicators/colorsControl/ColorItem.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/comparison/indicators/colorsControl/ColorItem.js +3 -2
- package/esm/internal/components/configurationControls/comparison/indicators/colorsControl/ColorResetButton.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/comparison/indicators/colorsControl/ColorResetButton.js +4 -3
- package/esm/internal/components/configurationControls/comparison/values/numberFormat/NumberFormatControl.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/comparison/values/numberFormat/NumberFormatControl.js +3 -2
- package/esm/internal/components/configurationControls/conditionalFormatting/ConditionalFormattingSection.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/conditionalFormatting/ConditionalFormattingSection.js +3 -2
- package/esm/internal/components/configurationControls/customTooltip/CustomTooltipSection.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/customTooltip/CustomTooltipSection.js +3 -2
- package/esm/internal/components/configurationControls/total/TotalSection.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/total/TotalSection.js +4 -3
- package/esm/internal/components/pluggableVisualizations/AbstractPluggableVisualization.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/AbstractPluggableVisualization.js +2 -3
- package/esm/internal/components/pluggableVisualizations/PluggableColumnBarCharts.js +3 -3
- package/esm/internal/components/pluggableVisualizations/areaChart/PluggableAreaChart.js +4 -4
- package/esm/internal/components/pluggableVisualizations/baseChart/PluggableBaseChart.js +5 -5
- package/esm/internal/components/pluggableVisualizations/bubbleChart/PluggableBubbleChart.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/bubbleChart/PluggableBubbleChart.js +4 -3
- package/esm/internal/components/pluggableVisualizations/bulletChart/PluggableBulletChart.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/bulletChart/PluggableBulletChart.js +3 -3
- package/esm/internal/components/pluggableVisualizations/comboChart/PluggableComboChart.js +4 -4
- package/esm/internal/components/pluggableVisualizations/comboChart/PluggableComboChartDeprecated.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/comboChart/PluggableComboChartDeprecated.js +4 -3
- package/esm/internal/components/pluggableVisualizations/geoAreaChart/PluggableGeoAreaChart.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/geoAreaChart/PluggableGeoAreaChart.js +4 -3
- package/esm/internal/components/pluggableVisualizations/geoChart/PluggableGeoPushpinChart.js +4 -4
- package/esm/internal/components/pluggableVisualizations/geoChartNext/PluggableGeoPushpinChartNext.js +10 -10
- package/esm/internal/components/pluggableVisualizations/geoCommon/geoPropertySanitization.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/geoCommon/geoPropertySanitization.js +4 -3
- package/esm/internal/components/pluggableVisualizations/headline/PluggableHeadline.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/headline/PluggableHeadline.js +2 -3
- package/esm/internal/components/pluggableVisualizations/headline/headlineBucketHelper.js +3 -3
- package/esm/internal/components/pluggableVisualizations/heatMap/PluggableHeatmap.js +4 -4
- package/esm/internal/components/pluggableVisualizations/lineChart/PluggableLineChart.js +4 -4
- package/esm/internal/components/pluggableVisualizations/mekko/PluggableMekko.js +4 -4
- package/esm/internal/components/pluggableVisualizations/pieChart/PluggablePieChart.js +6 -6
- package/esm/internal/components/pluggableVisualizations/pivotTable/PluggablePivotTable.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/pivotTable/PluggablePivotTable.js +2 -3
- package/esm/internal/components/pluggableVisualizations/pivotTableNext/PluggablePivotTableNext.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/pivotTableNext/PluggablePivotTableNext.js +2 -4
- package/esm/internal/components/pluggableVisualizations/radarChart/PluggableRadarChart.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/radarChart/PluggableRadarChart.js +4 -3
- package/esm/internal/components/pluggableVisualizations/repeater/PluggableRepeater.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/repeater/PluggableRepeater.js +6 -5
- package/esm/internal/components/pluggableVisualizations/sankeyChart/PluggableSankeyChart.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/sankeyChart/PluggableSankeyChart.js +3 -4
- package/esm/internal/components/pluggableVisualizations/scatterPlot/PluggableScatterPlot.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/scatterPlot/PluggableScatterPlot.js +4 -3
- package/esm/internal/components/pluggableVisualizations/treeMap/PluggableTreemap.js +3 -3
- package/esm/internal/components/pluggableVisualizations/waterfallChart/PluggableWaterfallChart.js +6 -6
- package/esm/internal/components/pluggableVisualizations/xirr/PluggableXirr.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/xirr/PluggableXirr.js +2 -3
- package/esm/internal/utils/bucketConfig.js +4 -4
- package/esm/internal/utils/bucketHelper.js +7 -7
- package/esm/internal/utils/colors.js +7 -7
- package/esm/internal/utils/dimensions.d.ts.map +1 -1
- package/esm/internal/utils/dimensions.js +4 -4
- package/esm/internal/utils/embeddingCodeGenerator/getReactEmbeddingCodeGenerator.js +5 -5
- package/esm/internal/utils/propertiesHelper.js +6 -6
- package/esm/internal/utils/removeUseless.d.ts.map +1 -1
- package/esm/internal/utils/removeUseless.js +2 -3
- package/esm/internal/utils/uiConfigHelpers/areaChartUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/areaChartUiConfigHelper.js +3 -2
- package/esm/internal/utils/uiConfigHelpers/baseChartUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/baseChartUiConfigHelper.js +5 -4
- package/esm/internal/utils/uiConfigHelpers/bubbleChartUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/bubbleChartUiConfigHelper.js +4 -3
- package/esm/internal/utils/uiConfigHelpers/bulletChartUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/bulletChartUiConfigHelper.js +2 -2
- package/esm/internal/utils/uiConfigHelpers/columnBarChartUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/columnBarChartUiConfigHelper.js +4 -3
- package/esm/internal/utils/uiConfigHelpers/comboChartUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/comboChartUiConfigHelper.js +4 -3
- package/esm/internal/utils/uiConfigHelpers/comboChartUiConfigHelperDeprecated.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/comboChartUiConfigHelperDeprecated.js +4 -3
- package/esm/internal/utils/uiConfigHelpers/dependencyWheelChartUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/dependencyWheelChartUiConfigHelper.js +4 -3
- package/esm/internal/utils/uiConfigHelpers/donutChartUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/donutChartUiConfigHelper.js +4 -3
- package/esm/internal/utils/uiConfigHelpers/funnelChartUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/funnelChartUiConfigHelper.js +4 -3
- package/esm/internal/utils/uiConfigHelpers/geoPushpinChartUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/geoPushpinChartUiConfigHelper.js +3 -2
- package/esm/internal/utils/uiConfigHelpers/headlineUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/headlineUiConfigHelper.js +3 -2
- package/esm/internal/utils/uiConfigHelpers/heatmapUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/heatmapUiConfigHelper.js +4 -3
- package/esm/internal/utils/uiConfigHelpers/lineChartUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/lineChartUiConfigHelper.js +4 -3
- package/esm/internal/utils/uiConfigHelpers/mekkoUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/mekkoUiConfigHelper.js +3 -2
- package/esm/internal/utils/uiConfigHelpers/pieChartUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/pieChartUiConfigHelper.js +5 -4
- package/esm/internal/utils/uiConfigHelpers/pivotTableNextUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/pivotTableNextUiConfigHelper.js +3 -2
- package/esm/internal/utils/uiConfigHelpers/pivotTableUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/pivotTableUiConfigHelper.js +3 -2
- package/esm/internal/utils/uiConfigHelpers/pyramidChartUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/pyramidChartUiConfigHelper.js +4 -3
- package/esm/internal/utils/uiConfigHelpers/radarChartUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/radarChartUiConfigHelper.js +4 -3
- package/esm/internal/utils/uiConfigHelpers/repeaterUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/repeaterUiConfigHelper.js +7 -6
- package/esm/internal/utils/uiConfigHelpers/sankeyChartUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/sankeyChartUiConfigHelper.js +6 -5
- package/esm/internal/utils/uiConfigHelpers/scatterPlotUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/scatterPlotUiConfigHelper.js +4 -3
- package/esm/internal/utils/uiConfigHelpers/treemapUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/treemapUiConfigHelper.js +4 -3
- package/esm/internal/utils/uiConfigHelpers/waterfallChartUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/waterfallChartUiConfigHelper.js +4 -3
- package/esm/internal/utils/uiConfigHelpers/xirrUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/xirrUiConfigHelper.js +4 -3
- package/esm/notificationsPanel/Notification/Notification.d.ts.map +1 -1
- package/esm/notificationsPanel/Notification/Notification.js +4 -4
- package/package.json +21 -21
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// (C) 2019-2026 GoodData Corporation
|
|
2
|
-
import {
|
|
2
|
+
import { set } from "lodash-es";
|
|
3
3
|
import { BucketNames } from "@gooddata/sdk-ui";
|
|
4
|
+
import { _cloneDeep } from "@gooddata/util";
|
|
4
5
|
import { messages } from "../../../locales.js";
|
|
5
6
|
import { ATTRIBUTE, BUCKETS, DATE } from "../../constants/bucket.js";
|
|
6
7
|
import { UICONFIG } from "../../constants/uiConfig.js";
|
|
@@ -49,7 +50,7 @@ function setAreaChartBucketWarningMessages(referencePoint, messageConfig) {
|
|
|
49
50
|
}, updatedUiConfig);
|
|
50
51
|
}
|
|
51
52
|
export function setAreaChartUiConfig(referencePoint, intl, visualizationType) {
|
|
52
|
-
const referencePointConfigured =
|
|
53
|
+
const referencePointConfigured = _cloneDeep(referencePoint);
|
|
53
54
|
const buckets = referencePointConfigured?.buckets ?? [];
|
|
54
55
|
const categoriesCount = getItemsCount(buckets, BucketNames.VIEW);
|
|
55
56
|
const stackItems = getStackItems(buckets, [ATTRIBUTE, DATE]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"baseChartUiConfigHelper.d.ts","sourceRoot":"","sources":["../../../../src/internal/utils/uiConfigHelpers/baseChartUiConfigHelper.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"baseChartUiConfigHelper.d.ts","sourceRoot":"","sources":["../../../../src/internal/utils/uiConfigHelpers/baseChartUiConfigHelper.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;AAQ5C,OAAO,EACH,KAAK,WAAW,EAEhB,KAAK,uBAAuB,EAE/B,MAAM,mCAAmC,CAAC;AA8D3C,wBAAgB,oBAAoB,CAChC,cAAc,EAAE,uBAAuB,EACvC,IAAI,EAAE,SAAS,EACf,iBAAiB,EAAE,MAAM,GAC1B,uBAAuB,CAwDzB;AAED,wBAAgB,mCAAmC,CAC/C,cAAc,EAAE,uBAAuB,EACvC,iBAAiB,EAAE,MAAM,GAC1B,uBAAuB,CAoBzB;AAgBD,wBAAgB,4BAA4B,CACxC,SAAS,EAAE,MAAM,GAAG,SAAS,EAC7B,IAAI,EAAE,SAAS,EACf,WAAW,EAAE,WAAW,EAAE,GAC3B,MAAM,CAMR"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// (C) 2019-2026 GoodData Corporation
|
|
2
|
-
import {
|
|
2
|
+
import { set } from "lodash-es";
|
|
3
3
|
import { BucketNames, VisualizationTypes } from "@gooddata/sdk-ui";
|
|
4
|
+
import { _cloneDeep } from "@gooddata/util";
|
|
4
5
|
import { messages } from "../../../locales.js";
|
|
5
6
|
import { ATTRIBUTE, BUCKETS, DATE } from "../../constants/bucket.js";
|
|
6
7
|
import { OPEN_AS_REPORT, RECOMMENDATIONS, SUPPORTED, UICONFIG } from "../../constants/uiConfig.js";
|
|
@@ -19,7 +20,7 @@ const barViewIcon = "local:bar/bucket-title-view.svg";
|
|
|
19
20
|
const barStackIcon = "local:bar/bucket-title-stack.svg";
|
|
20
21
|
function setBaseChartBucketWarningMessages(referencePoint, intl) {
|
|
21
22
|
const buckets = referencePoint?.buckets ?? [];
|
|
22
|
-
const updatedUiConfig =
|
|
23
|
+
const updatedUiConfig = _cloneDeep(referencePoint?.uiConfig);
|
|
23
24
|
const stackItems = getStackItems(buckets, [ATTRIBUTE, DATE]);
|
|
24
25
|
if (!updatedUiConfig) {
|
|
25
26
|
return updatedUiConfig;
|
|
@@ -47,7 +48,7 @@ function setBaseChartBucketWarningMessages(referencePoint, intl) {
|
|
|
47
48
|
return updatedUiConfig;
|
|
48
49
|
}
|
|
49
50
|
export function setBaseChartUiConfig(referencePoint, intl, visualizationType) {
|
|
50
|
-
const referencePointConfigured =
|
|
51
|
+
const referencePointConfigured = _cloneDeep(referencePoint);
|
|
51
52
|
const buckets = referencePointConfigured?.buckets ?? [];
|
|
52
53
|
const measuresCanAddItems = hasNoMeasures(buckets) || hasNoStacksWithDate(buckets);
|
|
53
54
|
const stackCanAddItems = !hasMoreThanOneMasterMeasure(buckets, BucketNames.MEASURES);
|
|
@@ -76,7 +77,7 @@ export function setBaseChartUiConfig(referencePoint, intl, visualizationType) {
|
|
|
76
77
|
}
|
|
77
78
|
export function setBaseChartUiConfigRecommendations(referencePoint, visualizationType) {
|
|
78
79
|
if (visualizationType === VisualizationTypes.COLUMN) {
|
|
79
|
-
const newReferencePoint =
|
|
80
|
+
const newReferencePoint = _cloneDeep(referencePoint);
|
|
80
81
|
const buckets = newReferencePoint?.buckets;
|
|
81
82
|
const filters = newReferencePoint?.filters;
|
|
82
83
|
const percentEnabled = percentRecommendationEnabled(buckets, filters);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bubbleChartUiConfigHelper.d.ts","sourceRoot":"","sources":["../../../../src/internal/utils/uiConfigHelpers/bubbleChartUiConfigHelper.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"bubbleChartUiConfigHelper.d.ts","sourceRoot":"","sources":["../../../../src/internal/utils/uiConfigHelpers/bubbleChartUiConfigHelper.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;AAO5C,OAAO,EAAE,KAAK,uBAAuB,EAAE,MAAM,mCAAmC,CAAC;AAWjF,wBAAgB,sBAAsB,CAClC,cAAc,EAAE,uBAAuB,EACvC,IAAI,EAAE,SAAS,EACf,iBAAiB,EAAE,MAAM,GAC1B,uBAAuB,CAezB"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
// (C) 2019-
|
|
2
|
-
import {
|
|
1
|
+
// (C) 2019-2026 GoodData Corporation
|
|
2
|
+
import { set } from "lodash-es";
|
|
3
3
|
import { BucketNames } from "@gooddata/sdk-ui";
|
|
4
|
+
import { _cloneDeep } from "@gooddata/util";
|
|
4
5
|
import { BUCKETS } from "../../constants/bucket.js";
|
|
5
6
|
import { UICONFIG } from "../../constants/uiConfig.js";
|
|
6
7
|
import { setBucketTitles } from "../bucketHelper.js";
|
|
@@ -12,7 +13,7 @@ const bubbleMeasuresYIcon = "local:bubble/bucket-title-measures-y.svg";
|
|
|
12
13
|
const bubbleSizeIcon = "local:bubble/bucket-title-size.svg";
|
|
13
14
|
const bubbleViewByIcon = "local:bubble/bucket-title-view-by.svg";
|
|
14
15
|
export function setBubbleChartUiConfig(referencePoint, intl, visualizationType) {
|
|
15
|
-
const referencePointConfigured =
|
|
16
|
+
const referencePointConfigured = _cloneDeep(referencePoint);
|
|
16
17
|
set(referencePointConfigured, UICONFIG, setBucketTitles(referencePoint, visualizationType, intl));
|
|
17
18
|
set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.MEASURES, "icon"], bubbleMeasuresXIcon);
|
|
18
19
|
set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.SECONDARY_MEASURES, "icon"], bubbleMeasuresYIcon);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bulletChartUiConfigHelper.d.ts","sourceRoot":"","sources":["../../../../src/internal/utils/uiConfigHelpers/bulletChartUiConfigHelper.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"bulletChartUiConfigHelper.d.ts","sourceRoot":"","sources":["../../../../src/internal/utils/uiConfigHelpers/bulletChartUiConfigHelper.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;AAO5C,OAAO,EAAE,KAAK,uBAAuB,EAAE,MAAM,mCAAmC,CAAC;AAYjF,wBAAgB,sBAAsB,CAClC,cAAc,EAAE,uBAAuB,EACvC,IAAI,EAAE,SAAS,EACf,iBAAiB,EAAE,MAAM,GAC1B,uBAAuB,CA0CzB"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// (C) 2019-2026 GoodData Corporation
|
|
2
|
-
import { cloneDeep } from "lodash-es";
|
|
3
2
|
import { BucketNames } from "@gooddata/sdk-ui";
|
|
3
|
+
import { _cloneDeep } from "@gooddata/util";
|
|
4
4
|
import { messages } from "../../../locales.js";
|
|
5
5
|
import { UICONFIG } from "../../constants/uiConfig.js";
|
|
6
6
|
import { getItemsCount, setBucketTitles } from "../bucketHelper.js";
|
|
@@ -13,7 +13,7 @@ const bulletTargetMeasureIcon = "local:bullet/bucket-title-target.svg";
|
|
|
13
13
|
const bulletComparativeMeasureIcon = "local:bullet/bucket-title-comparative.svg";
|
|
14
14
|
const bulletViewByIcon = "local:bullet/bucket-title-view-by.svg";
|
|
15
15
|
export function getBulletChartUiConfig(referencePoint, intl, visualizationType) {
|
|
16
|
-
const referencePointConfigured =
|
|
16
|
+
const referencePointConfigured = _cloneDeep(referencePoint);
|
|
17
17
|
referencePointConfigured[UICONFIG] = setBucketTitles(referencePointConfigured, visualizationType, intl);
|
|
18
18
|
const buckets = referencePoint?.buckets ?? [];
|
|
19
19
|
const primaryMeasuresCount = getItemsCount(buckets, BucketNames.MEASURES);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"columnBarChartUiConfigHelper.d.ts","sourceRoot":"","sources":["../../../../src/internal/utils/uiConfigHelpers/columnBarChartUiConfigHelper.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"columnBarChartUiConfigHelper.d.ts","sourceRoot":"","sources":["../../../../src/internal/utils/uiConfigHelpers/columnBarChartUiConfigHelper.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;AAQ5C,OAAO,EAAE,KAAK,uBAAuB,EAAE,MAAM,mCAAmC,CAAC;AAIjF,wBAAgB,yBAAyB,CACrC,cAAc,EAAE,uBAAuB,EACvC,IAAI,EAAE,SAAS,GAChB,uBAAuB,CAwBzB"}
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
// (C) 2019-
|
|
2
|
-
import {
|
|
1
|
+
// (C) 2019-2026 GoodData Corporation
|
|
2
|
+
import { set } from "lodash-es";
|
|
3
3
|
import { BucketNames, OverTimeComparisonTypes } from "@gooddata/sdk-ui";
|
|
4
|
+
import { _cloneDeep } from "@gooddata/util";
|
|
4
5
|
import { messages } from "../../../locales.js";
|
|
5
6
|
import { BUCKETS } from "../../constants/bucket.js";
|
|
6
7
|
import { SUPPORTED_COMPARISON_TYPES, UICONFIG } from "../../constants/uiConfig.js";
|
|
7
8
|
import { getMeasureItems } from "../bucketHelper.js";
|
|
8
9
|
import { getTranslation } from "../translations.js";
|
|
9
10
|
export function setColumnBarChartUiConfig(referencePoint, intl) {
|
|
10
|
-
const referencePointConfigured =
|
|
11
|
+
const referencePointConfigured = _cloneDeep(referencePoint);
|
|
11
12
|
set(referencePointConfigured, [UICONFIG, SUPPORTED_COMPARISON_TYPES], [OverTimeComparisonTypes.SAME_PERIOD_PREVIOUS_YEAR, OverTimeComparisonTypes.PREVIOUS_PERIOD]);
|
|
12
13
|
const buckets = referencePointConfigured?.buckets ?? [];
|
|
13
14
|
const measures = getMeasureItems(buckets);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"comboChartUiConfigHelper.d.ts","sourceRoot":"","sources":["../../../../src/internal/utils/uiConfigHelpers/comboChartUiConfigHelper.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"comboChartUiConfigHelper.d.ts","sourceRoot":"","sources":["../../../../src/internal/utils/uiConfigHelpers/comboChartUiConfigHelper.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;AAE5C,OAAO,EAAe,KAAK,SAAS,EAAsB,MAAM,kBAAkB,CAAC;AAOnF,OAAO,EAEH,KAAK,uBAAuB,EAE/B,MAAM,mCAAmC,CAAC;AA8C3C,wBAAgB,qBAAqB,CACjC,cAAc,EAAE,uBAAuB,EACvC,IAAI,EAAE,SAAS,EACf,iBAAiB,EAAE,SAAS,GAC7B,uBAAuB,CA6BzB"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
// (C) 2019-
|
|
2
|
-
import {
|
|
1
|
+
// (C) 2019-2026 GoodData Corporation
|
|
2
|
+
import { set } from "lodash-es";
|
|
3
3
|
import { BucketNames, VisualizationTypes } from "@gooddata/sdk-ui";
|
|
4
4
|
import { isLineChart } from "@gooddata/sdk-ui-charts";
|
|
5
|
+
import { _cloneDeep } from "@gooddata/util";
|
|
5
6
|
import { messages } from "../../../locales.js";
|
|
6
7
|
import { BUCKETS } from "../../constants/bucket.js";
|
|
7
8
|
import { UICONFIG } from "../../constants/uiConfig.js";
|
|
@@ -41,7 +42,7 @@ function setCanStackInPercent(uiConfig, secondaryChartType, isDualAxis) {
|
|
|
41
42
|
set(uiConfig, "optionalStacking.canStackInPercent", canStackInPercent);
|
|
42
43
|
}
|
|
43
44
|
export function setComboChartUiConfig(referencePoint, intl, visualizationType) {
|
|
44
|
-
const referencePointConfigured =
|
|
45
|
+
const referencePointConfigured = _cloneDeep(referencePoint);
|
|
45
46
|
const measureBuckets = getBucketsByNames(referencePointConfigured?.buckets, [
|
|
46
47
|
BucketNames.MEASURES,
|
|
47
48
|
BucketNames.SECONDARY_MEASURES,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"comboChartUiConfigHelperDeprecated.d.ts","sourceRoot":"","sources":["../../../../src/internal/utils/uiConfigHelpers/comboChartUiConfigHelperDeprecated.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"comboChartUiConfigHelperDeprecated.d.ts","sourceRoot":"","sources":["../../../../src/internal/utils/uiConfigHelpers/comboChartUiConfigHelperDeprecated.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;AAE5C,OAAO,EAAe,KAAK,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAK/D,OAAO,EAAE,KAAK,uBAAuB,EAAE,MAAM,mCAAmC,CAAC;AAUjF,wBAAgB,+BAA+B,CAC3C,cAAc,EAAE,uBAAuB,EACvC,IAAI,EAAE,SAAS,EACf,iBAAiB,EAAE,SAAS,GAC7B,uBAAuB,CAiBzB"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
// (C) 2019-
|
|
2
|
-
import {
|
|
1
|
+
// (C) 2019-2026 GoodData Corporation
|
|
2
|
+
import { set } from "lodash-es";
|
|
3
3
|
import { BucketNames } from "@gooddata/sdk-ui";
|
|
4
|
+
import { _cloneDeep } from "@gooddata/util";
|
|
4
5
|
import { BUCKETS } from "../../constants/bucket.js";
|
|
5
6
|
import { UICONFIG } from "../../constants/uiConfig.js";
|
|
6
7
|
import { setBucketTitles } from "../bucketHelper.js";
|
|
@@ -11,7 +12,7 @@ const comboSecondaryMeasuresIcon = "local:combo/bucket-title-secondary-measures.
|
|
|
11
12
|
const columnMeasureIcon = "local:combo/bucket-title-measures-column.svg";
|
|
12
13
|
const columnLineIcon = "local:combo/bucket-title-view-column-line.svg";
|
|
13
14
|
export function setComboChartUiConfigDeprecated(referencePoint, intl, visualizationType) {
|
|
14
|
-
const referencePointConfigured =
|
|
15
|
+
const referencePointConfigured = _cloneDeep(referencePoint);
|
|
15
16
|
set(referencePointConfigured, UICONFIG, setBucketTitles(referencePoint, visualizationType, intl));
|
|
16
17
|
set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.MEASURES, "canAddItems"], true);
|
|
17
18
|
set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.SECONDARY_MEASURES, "canAddItems"], true);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dependencyWheelChartUiConfigHelper.d.ts","sourceRoot":"","sources":["../../../../src/internal/utils/uiConfigHelpers/dependencyWheelChartUiConfigHelper.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"dependencyWheelChartUiConfigHelper.d.ts","sourceRoot":"","sources":["../../../../src/internal/utils/uiConfigHelpers/dependencyWheelChartUiConfigHelper.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,KAAK,uBAAuB,EAAE,MAAM,mCAAmC,CAAC;AASjF,eAAO,MAAM,6BAA6B,2BACd,uBAAuB,KAChD,uBAQF,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
// (C) 2019-
|
|
2
|
-
import {
|
|
1
|
+
// (C) 2019-2026 GoodData Corporation
|
|
2
|
+
import { set } from "lodash-es";
|
|
3
3
|
import { BucketNames } from "@gooddata/sdk-ui";
|
|
4
|
+
import { _cloneDeep } from "@gooddata/util";
|
|
4
5
|
import { BUCKETS } from "../../constants/bucket.js";
|
|
5
6
|
import { UICONFIG } from "../../constants/uiConfig.js";
|
|
6
7
|
// If you need to edit these icons
|
|
@@ -10,7 +11,7 @@ const measureIcon = "local:dependencyWheel/bucket-title-measures.svg";
|
|
|
10
11
|
const fromIcon = "local:dependencyWheel/bucket-title-from.svg";
|
|
11
12
|
const toIcon = "local:dependencyWheel/bucket-title-to.svg";
|
|
12
13
|
export const configDependencyWheelUiConfig = (extendedReferencePoint) => {
|
|
13
|
-
const referencePointConfigured =
|
|
14
|
+
const referencePointConfigured = _cloneDeep(extendedReferencePoint);
|
|
14
15
|
set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.MEASURES, "icon"], measureIcon);
|
|
15
16
|
set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.ATTRIBUTE_FROM, "icon"], fromIcon);
|
|
16
17
|
set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.ATTRIBUTE_TO, "icon"], toIcon);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"donutChartUiConfigHelper.d.ts","sourceRoot":"","sources":["../../../../src/internal/utils/uiConfigHelpers/donutChartUiConfigHelper.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"donutChartUiConfigHelper.d.ts","sourceRoot":"","sources":["../../../../src/internal/utils/uiConfigHelpers/donutChartUiConfigHelper.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,KAAK,uBAAuB,EAAE,MAAM,mCAAmC,CAAC;AAQjF,wBAAgB,qBAAqB,CAAC,cAAc,EAAE,uBAAuB,GAAG,uBAAuB,CAStG"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
// (C) 2019-
|
|
2
|
-
import {
|
|
1
|
+
// (C) 2019-2026 GoodData Corporation
|
|
2
|
+
import { set } from "lodash-es";
|
|
3
3
|
import { BucketNames } from "@gooddata/sdk-ui";
|
|
4
|
+
import { _cloneDeep } from "@gooddata/util";
|
|
4
5
|
import { BUCKETS } from "../../constants/bucket.js";
|
|
5
6
|
import { UICONFIG, disabledOpenAsReportConfig } from "../../constants/uiConfig.js";
|
|
6
7
|
// If you need to edit these icons
|
|
@@ -9,7 +10,7 @@ import { UICONFIG, disabledOpenAsReportConfig } from "../../constants/uiConfig.j
|
|
|
9
10
|
const donutMeasuresIcon = "local:donut/bucket-title-measures.svg";
|
|
10
11
|
const donutViewIcon = "local:donut/bucket-title-view.svg";
|
|
11
12
|
export function setDonutChartUiConfig(referencePoint) {
|
|
12
|
-
const referencePointConfigured =
|
|
13
|
+
const referencePointConfigured = _cloneDeep(referencePoint);
|
|
13
14
|
Object.assign(referencePointConfigured[UICONFIG], disabledOpenAsReportConfig);
|
|
14
15
|
set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.MEASURES, "icon"], donutMeasuresIcon);
|
|
15
16
|
set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.VIEW, "icon"], donutViewIcon);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"funnelChartUiConfigHelper.d.ts","sourceRoot":"","sources":["../../../../src/internal/utils/uiConfigHelpers/funnelChartUiConfigHelper.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"funnelChartUiConfigHelper.d.ts","sourceRoot":"","sources":["../../../../src/internal/utils/uiConfigHelpers/funnelChartUiConfigHelper.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,KAAK,uBAAuB,EAAE,MAAM,mCAAmC,CAAC;AASjF,wBAAgB,sBAAsB,CAAC,cAAc,EAAE,uBAAuB,GAAG,uBAAuB,CAavG"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
// (C) 2019-
|
|
2
|
-
import {
|
|
1
|
+
// (C) 2019-2026 GoodData Corporation
|
|
2
|
+
import { set } from "lodash-es";
|
|
3
3
|
import { BucketNames } from "@gooddata/sdk-ui";
|
|
4
|
+
import { _cloneDeep } from "@gooddata/util";
|
|
4
5
|
import { BUCKETS } from "../../constants/bucket.js";
|
|
5
6
|
import { UICONFIG, disabledOpenAsReportConfig } from "../../constants/uiConfig.js";
|
|
6
7
|
import { configurePercent } from "../bucketConfig.js";
|
|
@@ -10,7 +11,7 @@ import { configurePercent } from "../bucketConfig.js";
|
|
|
10
11
|
const funnelMeasuresIcon = "local:funnel/bucket-title-measures.svg";
|
|
11
12
|
const funnelViewIcon = "local:funnel/bucket-title-view.svg";
|
|
12
13
|
export function setFunnelChartUiConfig(referencePoint) {
|
|
13
|
-
const referencePointConfigured =
|
|
14
|
+
const referencePointConfigured = _cloneDeep(referencePoint);
|
|
14
15
|
Object.assign(referencePointConfigured[UICONFIG], disabledOpenAsReportConfig);
|
|
15
16
|
set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.MEASURES, "icon"], funnelMeasuresIcon);
|
|
16
17
|
set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.VIEW, "icon"], funnelViewIcon);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"geoPushpinChartUiConfigHelper.d.ts","sourceRoot":"","sources":["../../../../src/internal/utils/uiConfigHelpers/geoPushpinChartUiConfigHelper.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;AAE5C,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAErD,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"geoPushpinChartUiConfigHelper.d.ts","sourceRoot":"","sources":["../../../../src/internal/utils/uiConfigHelpers/geoPushpinChartUiConfigHelper.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;AAE5C,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAErD,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAMvD,OAAO,EAAE,KAAK,uBAAuB,EAAE,MAAM,mCAAmC,CAAC;AAuBjF,wBAAgB,qBAAqB,CACjC,cAAc,EAAE,uBAAuB,EACvC,IAAI,EAAE,SAAS,EACf,iBAAiB,EAAE,MAAM,EACzB,YAAY,CAAC,EAAE,SAAS,GACzB,uBAAuB,CAwEzB;AAED,wBAAgB,wBAAwB,CAAC,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,SAAS,GAAG,UAAU,CAS5F"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// (C) 2019-2026 GoodData Corporation
|
|
2
|
-
import {
|
|
2
|
+
import { set } from "lodash-es";
|
|
3
3
|
import { BucketNames } from "@gooddata/sdk-ui";
|
|
4
|
+
import { _cloneDeep } from "@gooddata/util";
|
|
4
5
|
import { BUCKETS } from "../../constants/bucket.js";
|
|
5
6
|
import { isGeoPushpinIconEnabled } from "../../constants/featureFlags.js";
|
|
6
7
|
import { OPEN_AS_REPORT, SUPPORTED, UICONFIG } from "../../constants/uiConfig.js";
|
|
@@ -22,7 +23,7 @@ function canAddItemsToBucket(referencePoint, bucketName) {
|
|
|
22
23
|
return getItemsCount(referencePoint.buckets ?? [], bucketName) < itemsLimit;
|
|
23
24
|
}
|
|
24
25
|
export function setGeoPushpinUiConfig(referencePoint, intl, visualizationType, featureFlags) {
|
|
25
|
-
const referencePointConfigured =
|
|
26
|
+
const referencePointConfigured = _cloneDeep(referencePoint);
|
|
26
27
|
set(referencePointConfigured, UICONFIG, setBucketTitles(referencePoint, visualizationType, intl));
|
|
27
28
|
set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.LOCATION, "icon"], geoPushPinBucketLocationIcon);
|
|
28
29
|
set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.SIZE, "icon"], geoPushPinBucketSizeIcon);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"headlineUiConfigHelper.d.ts","sourceRoot":"","sources":["../../../../src/internal/utils/uiConfigHelpers/headlineUiConfigHelper.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;AAE5C,OAAO,EAEH,KAAK,aAAa,EAElB,KAAK,kBAAkB,EAEvB,KAAK,SAAS,EACd,KAAK,MAAM,EAOd,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAGH,KAAK,YAAY,EAIpB,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"headlineUiConfigHelper.d.ts","sourceRoot":"","sources":["../../../../src/internal/utils/uiConfigHelpers/headlineUiConfigHelper.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;AAE5C,OAAO,EAEH,KAAK,aAAa,EAElB,KAAK,kBAAkB,EAEvB,KAAK,SAAS,EACd,KAAK,MAAM,EAOd,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAGH,KAAK,YAAY,EAIpB,MAAM,yBAAyB,CAAC;AAQjC,OAAO,EAAE,KAAK,yBAAyB,EAAE,MAAM,uCAAuC,CAAC;AACvF,OAAO,EACH,KAAK,eAAe,EACpB,KAAK,SAAS,EACd,KAAK,SAAS,EACd,KAAK,wBAAwB,EAChC,MAAM,mCAAmC,CAAC;AAW3C,wBAAgB,0BAA0B,IAAI,SAAS,CAItD;AAED,wBAAgB,mBAAmB,CAAC,cAAc,EAAE,eAAe,EAAE,IAAI,EAAE,SAAS,GAAG,SAAS,CAyC/F;AAED,wBAAgB,gCAAgC,CAC5C,uBAAuB,EAAE,wBAAwB,EACjD,QAAQ,EAAE,SAAS,GAAG,SAAS,EAC/B,OAAO,EAAE,SAAS,GACnB,YAAY,CAad;AAED,wBAAgB,8BAA8B,CAC1C,uBAAuB,EAAE,wBAAwB,GAClD,wBAAwB,CAAC,yBAAyB,CAAC,CAarD;AAED,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,kBAAkB,GAAG,SAAS,GAAG,OAAO,CAQpF;AAED,wBAAgB,mCAAmC,CAAC,OAAO,EAAE,kBAAkB,qDAM9E;AAED,wBAAgB,yBAAyB,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,aAAa,CAavE"}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
// (C) 2019-2026 GoodData Corporation
|
|
2
|
-
import {
|
|
2
|
+
import { set } from "lodash-es";
|
|
3
3
|
import { bucketMeasure, bucketMeasures, insightBucket, isPoPMeasure, isPreviousPeriodMeasure, } from "@gooddata/sdk-model";
|
|
4
4
|
import { BucketNames, VisualizationTypes } from "@gooddata/sdk-ui";
|
|
5
5
|
import { CalculateAs, ComparisonColorType, getComparisonRgbColor, updateConfigWithSettings, } from "@gooddata/sdk-ui-charts";
|
|
6
6
|
import { parseRGBString } from "@gooddata/sdk-ui-vis-commons";
|
|
7
|
+
import { _cloneDeep } from "@gooddata/util";
|
|
7
8
|
import { messages } from "../../../locales.js";
|
|
8
9
|
import { BUCKETS } from "../../constants/bucket.js";
|
|
9
10
|
import { HEADLINE_DEFAULT_CONTROL_PROPERTIES } from "../../constants/supportedProperties.js";
|
|
@@ -17,7 +18,7 @@ import { getTranslation } from "../translations.js";
|
|
|
17
18
|
const headlineMeasuresIcon = "local:headline/bucket-title-measures.svg";
|
|
18
19
|
const headlineSecondaryMeasuresIcon = "local:headline/bucket-title-secondary-measures.svg";
|
|
19
20
|
export function getDefaultHeadlineUiConfig() {
|
|
20
|
-
const uiConfig =
|
|
21
|
+
const uiConfig = _cloneDeep(DEFAULT_HEADLINE_UICONFIG);
|
|
21
22
|
set(uiConfig, [BUCKETS, BucketNames.SECONDARY_MEASURES, "itemsLimit"], 2);
|
|
22
23
|
return uiConfig;
|
|
23
24
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"heatmapUiConfigHelper.d.ts","sourceRoot":"","sources":["../../../../src/internal/utils/uiConfigHelpers/heatmapUiConfigHelper.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"heatmapUiConfigHelper.d.ts","sourceRoot":"","sources":["../../../../src/internal/utils/uiConfigHelpers/heatmapUiConfigHelper.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;AAO5C,OAAO,EAAE,KAAK,uBAAuB,EAAE,MAAM,mCAAmC,CAAC;AAUjF,wBAAgB,kBAAkB,CAC9B,cAAc,EAAE,uBAAuB,EACvC,IAAI,EAAE,SAAS,EACf,iBAAiB,EAAE,MAAM,GAC1B,uBAAuB,CAUzB"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
// (C) 2019-
|
|
2
|
-
import {
|
|
1
|
+
// (C) 2019-2026 GoodData Corporation
|
|
2
|
+
import { set } from "lodash-es";
|
|
3
3
|
import { BucketNames } from "@gooddata/sdk-ui";
|
|
4
|
+
import { _cloneDeep } from "@gooddata/util";
|
|
4
5
|
import { BUCKETS } from "../../constants/bucket.js";
|
|
5
6
|
import { UICONFIG } from "../../constants/uiConfig.js";
|
|
6
7
|
import { setBucketTitles } from "../bucketHelper.js";
|
|
@@ -11,7 +12,7 @@ const heatmapMeasuresIcon = "local:heatmap/bucket-title-measures.svg";
|
|
|
11
12
|
const heatmapViewIcon = "local:heatmap/bucket-title-view.svg";
|
|
12
13
|
const heatmapStackIcon = "local:heatmap/bucket-title-stack.svg";
|
|
13
14
|
export function setHeatmapUiConfig(referencePoint, intl, visualizationType) {
|
|
14
|
-
const referencePointConfigured =
|
|
15
|
+
const referencePointConfigured = _cloneDeep(referencePoint);
|
|
15
16
|
set(referencePointConfigured, [UICONFIG], setBucketTitles(referencePoint, visualizationType, intl));
|
|
16
17
|
set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.MEASURES, "icon"], heatmapMeasuresIcon);
|
|
17
18
|
set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.VIEW, "icon"], heatmapViewIcon);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lineChartUiConfigHelper.d.ts","sourceRoot":"","sources":["../../../../src/internal/utils/uiConfigHelpers/lineChartUiConfigHelper.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"lineChartUiConfigHelper.d.ts","sourceRoot":"","sources":["../../../../src/internal/utils/uiConfigHelpers/lineChartUiConfigHelper.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;AAQ5C,OAAO,EAAE,KAAK,uBAAuB,EAAE,MAAM,mCAAmC,CAAC;AAuDjF,wBAAgB,oBAAoB,CAChC,cAAc,EAAE,uBAAuB,EACvC,IAAI,EAAE,SAAS,EACf,iBAAiB,EAAE,MAAM,GAC1B,uBAAuB,CAsCzB"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// (C) 2019-2026 GoodData Corporation
|
|
2
|
-
import {
|
|
2
|
+
import { set } from "lodash-es";
|
|
3
3
|
import { BucketNames } from "@gooddata/sdk-ui";
|
|
4
|
+
import { _cloneDeep } from "@gooddata/util";
|
|
4
5
|
import { messages } from "../../../locales.js";
|
|
5
6
|
import { ATTRIBUTE, BUCKETS, DATE } from "../../constants/bucket.js";
|
|
6
7
|
import { OPEN_AS_REPORT, SUPPORTED, UICONFIG } from "../../constants/uiConfig.js";
|
|
@@ -17,7 +18,7 @@ const lineTrendIcon = "local:line/bucket-title-trend.svg";
|
|
|
17
18
|
const lineSegmentIcon = "local:line/bucket-title-segment.svg";
|
|
18
19
|
function setLineChartBucketWarningMessages(referencePoint, intl) {
|
|
19
20
|
const buckets = referencePoint?.buckets || [];
|
|
20
|
-
const updatedUiConfig =
|
|
21
|
+
const updatedUiConfig = _cloneDeep(referencePoint?.uiConfig);
|
|
21
22
|
const stackItems = getStackItems(buckets, [ATTRIBUTE, DATE]);
|
|
22
23
|
if (!updatedUiConfig) {
|
|
23
24
|
return updatedUiConfig;
|
|
@@ -45,7 +46,7 @@ function setLineChartBucketWarningMessages(referencePoint, intl) {
|
|
|
45
46
|
return updatedUiConfig;
|
|
46
47
|
}
|
|
47
48
|
export function setLineChartUiConfig(referencePoint, intl, visualizationType) {
|
|
48
|
-
const referencePointConfigured =
|
|
49
|
+
const referencePointConfigured = _cloneDeep(referencePoint);
|
|
49
50
|
const buckets = referencePointConfigured?.buckets ?? [];
|
|
50
51
|
const measuresCanAddItems = hasNoMeasures(buckets) || hasNoStacksWithDate(buckets);
|
|
51
52
|
const segmentCanAddItems = hasSomeSegmentByItems(buckets) ||
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mekkoUiConfigHelper.d.ts","sourceRoot":"","sources":["../../../../src/internal/utils/uiConfigHelpers/mekkoUiConfigHelper.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"mekkoUiConfigHelper.d.ts","sourceRoot":"","sources":["../../../../src/internal/utils/uiConfigHelpers/mekkoUiConfigHelper.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;AAO5C,OAAO,EAAE,KAAK,uBAAuB,EAAE,MAAM,mCAAmC,CAAC;AASjF,wBAAgB,gBAAgB,CAC5B,cAAc,EAAE,uBAAuB,EACvC,IAAI,EAAE,SAAS,EACf,iBAAiB,EAAE,MAAM,GAC1B,uBAAuB,CAezB"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// (C) 2026 GoodData Corporation
|
|
2
|
-
import {
|
|
2
|
+
import { set } from "lodash-es";
|
|
3
3
|
import { BucketNames } from "@gooddata/sdk-ui";
|
|
4
|
+
import { _cloneDeep } from "@gooddata/util";
|
|
4
5
|
import { BUCKETS } from "../../constants/bucket.js";
|
|
5
6
|
import { UICONFIG } from "../../constants/uiConfig.js";
|
|
6
7
|
import { setBucketTitles } from "../bucketHelper.js";
|
|
@@ -10,7 +11,7 @@ const mekkoHeightIcon = "local:mekko/bucket-title-height.svg";
|
|
|
10
11
|
const mekkoViewIcon = "local:mekko/bucket-title-view.svg";
|
|
11
12
|
const mekkoStackIcon = "local:mekko/bucket-title-stack.svg";
|
|
12
13
|
export function setMekkoUiConfig(referencePoint, intl, visualizationType) {
|
|
13
|
-
const referencePointConfigured =
|
|
14
|
+
const referencePointConfigured = _cloneDeep(referencePoint);
|
|
14
15
|
set(referencePointConfigured, UICONFIG, setBucketTitles(referencePoint, visualizationType, intl));
|
|
15
16
|
set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.MEASURES, "icon"], mekkoWidthIcon);
|
|
16
17
|
set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.SECONDARY_MEASURES, "icon"], mekkoHeightIcon);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pieChartUiConfigHelper.d.ts","sourceRoot":"","sources":["../../../../src/internal/utils/uiConfigHelpers/pieChartUiConfigHelper.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"pieChartUiConfigHelper.d.ts","sourceRoot":"","sources":["../../../../src/internal/utils/uiConfigHelpers/pieChartUiConfigHelper.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;AAQ5C,OAAO,EAAE,KAAK,uBAAuB,EAAE,MAAM,mCAAmC,CAAC;AA6CjF,wBAAgB,mBAAmB,CAC/B,cAAc,EAAE,uBAAuB,EACvC,IAAI,EAAE,SAAS,EACf,iBAAiB,EAAE,MAAM,GAC1B,uBAAuB,CAyBzB"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
// (C) 2019-
|
|
2
|
-
import {
|
|
1
|
+
// (C) 2019-2026 GoodData Corporation
|
|
2
|
+
import { set } from "lodash-es";
|
|
3
3
|
import { BucketNames } from "@gooddata/sdk-ui";
|
|
4
|
+
import { _cloneDeep } from "@gooddata/util";
|
|
4
5
|
import { messages } from "../../../locales.js";
|
|
5
6
|
import { BUCKETS } from "../../constants/bucket.js";
|
|
6
7
|
import { OPEN_AS_REPORT, SUPPORTED, UICONFIG } from "../../constants/uiConfig.js";
|
|
@@ -15,7 +16,7 @@ const pieMeasuresIcon = "local:pie/bucket-title-measures.svg";
|
|
|
15
16
|
const pieViewIcon = "local:pie/bucket-title-view.svg";
|
|
16
17
|
function setPieChartBucketWarningMessages(referencePoint, intl) {
|
|
17
18
|
const buckets = referencePoint?.buckets;
|
|
18
|
-
const updatedUiConfig =
|
|
19
|
+
const updatedUiConfig = _cloneDeep(referencePoint?.uiConfig);
|
|
19
20
|
if (!updatedUiConfig) {
|
|
20
21
|
return updatedUiConfig;
|
|
21
22
|
}
|
|
@@ -40,7 +41,7 @@ function setPieChartBucketWarningMessages(referencePoint, intl) {
|
|
|
40
41
|
return updatedUiConfig;
|
|
41
42
|
}
|
|
42
43
|
export function setPieChartUiConfig(referencePoint, intl, visualizationType) {
|
|
43
|
-
const referencePointConfigured =
|
|
44
|
+
const referencePointConfigured = _cloneDeep(referencePoint);
|
|
44
45
|
const buckets = referencePointConfigured?.buckets ?? [];
|
|
45
46
|
const measuresCanAddItems = !hasMoreThanOneCategory(buckets);
|
|
46
47
|
const viewCanAddItems = !hasMoreThanOneMasterMeasure(buckets, BucketNames.MEASURES);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pivotTableNextUiConfigHelper.d.ts","sourceRoot":"","sources":["../../../../src/internal/utils/uiConfigHelpers/pivotTableNextUiConfigHelper.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;AAE5C,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"pivotTableNextUiConfigHelper.d.ts","sourceRoot":"","sources":["../../../../src/internal/utils/uiConfigHelpers/pivotTableNextUiConfigHelper.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;AAE5C,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAkBrD,OAAO,EACH,KAAK,YAAY,EACjB,KAAK,uBAAuB,EAC5B,KAAK,SAAS,EACjB,MAAM,mCAAmC,CAAC;AAgE3C,wBAAgB,8BAA8B,CAAC,SAAS,EAAE,SAAS,EAAE,OAAO,EAAE,YAAY,EAAE,YAM3F;AAED,wBAAgB,yBAAyB,CACrC,cAAc,EAAE,uBAAuB,EACvC,IAAI,EAAE,SAAS,EACf,iBAAiB,EAAE,MAAM,EACzB,SAAS,EAAE,SAAS,GACrB,IAAI,CAsCN;AAED,wBAAgB,gCAAgC,IAAI,SAAS,CAsC5D"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// (C) 2025-2026 GoodData Corporation
|
|
2
|
-
import {
|
|
2
|
+
import { set } from "lodash-es";
|
|
3
3
|
import { BucketNames, OverTimeComparisonTypes } from "@gooddata/sdk-ui";
|
|
4
|
+
import { _cloneDeep } from "@gooddata/util";
|
|
4
5
|
import { messages } from "../../../locales.js";
|
|
5
6
|
import { BUCKETS } from "../../constants/bucket.js";
|
|
6
7
|
import { INCREASE_MAX_TABLE_ATTRIBUTES_ITEMS_LIMIT, INCREASE_MAX_TABLE_MEASURE_ITEMS_LIMIT, MAX_METRICS_COUNT, MAX_TABLE_CATEGORIES_COUNT, UICONFIG, defaultFilters, defaultRootUiConfigProperties, disabledOpenAsReportConfig, measuresBase, viewBase, } from "../../constants/uiConfig.js";
|
|
@@ -15,7 +16,7 @@ const tableRowsIcon = "local:table/bucket-title-rows.svg";
|
|
|
15
16
|
const tableColumnsIcon = "local:table/bucket-title-columns.svg";
|
|
16
17
|
function setPivotTableNextBucketWarningMessages(referencePoint, intl) {
|
|
17
18
|
const buckets = referencePoint?.buckets;
|
|
18
|
-
const updatedUiConfig =
|
|
19
|
+
const updatedUiConfig = _cloneDeep(referencePoint?.uiConfig);
|
|
19
20
|
if (!updatedUiConfig) {
|
|
20
21
|
return updatedUiConfig;
|
|
21
22
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pivotTableUiConfigHelper.d.ts","sourceRoot":"","sources":["../../../../src/internal/utils/uiConfigHelpers/pivotTableUiConfigHelper.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;AAE5C,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"pivotTableUiConfigHelper.d.ts","sourceRoot":"","sources":["../../../../src/internal/utils/uiConfigHelpers/pivotTableUiConfigHelper.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;AAE5C,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAkBrD,OAAO,EACH,KAAK,YAAY,EACjB,KAAK,uBAAuB,EAC5B,KAAK,SAAS,EACjB,MAAM,mCAAmC,CAAC;AAgE3C,wBAAgB,0BAA0B,CAAC,SAAS,EAAE,SAAS,EAAE,OAAO,EAAE,YAAY,EAAE,YAMvF;AAED,wBAAgB,qBAAqB,CACjC,cAAc,EAAE,uBAAuB,EACvC,IAAI,EAAE,SAAS,EACf,iBAAiB,EAAE,MAAM,EACzB,SAAS,EAAE,SAAS,GACrB,IAAI,CAsCN;AAED,wBAAgB,4BAA4B,IAAI,SAAS,CAsCxD"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// (C) 2019-2026 GoodData Corporation
|
|
2
|
-
import {
|
|
2
|
+
import { set } from "lodash-es";
|
|
3
3
|
import { BucketNames, OverTimeComparisonTypes } from "@gooddata/sdk-ui";
|
|
4
|
+
import { _cloneDeep } from "@gooddata/util";
|
|
4
5
|
import { messages } from "../../../locales.js";
|
|
5
6
|
import { BUCKETS } from "../../constants/bucket.js";
|
|
6
7
|
import { INCREASE_MAX_TABLE_ATTRIBUTES_ITEMS_LIMIT, INCREASE_MAX_TABLE_MEASURE_ITEMS_LIMIT, MAX_METRICS_COUNT, MAX_TABLE_CATEGORIES_COUNT, UICONFIG, defaultFilters, defaultRootUiConfigProperties, disabledOpenAsReportConfig, measuresBase, viewBase, } from "../../constants/uiConfig.js";
|
|
@@ -15,7 +16,7 @@ const tableRowsIcon = "local:table/bucket-title-rows.svg";
|
|
|
15
16
|
const tableColumnsIcon = "local:table/bucket-title-columns.svg";
|
|
16
17
|
function setPivotTableBucketWarningMessages(referencePoint, intl) {
|
|
17
18
|
const buckets = referencePoint?.buckets;
|
|
18
|
-
const updatedUiConfig =
|
|
19
|
+
const updatedUiConfig = _cloneDeep(referencePoint?.uiConfig);
|
|
19
20
|
if (!updatedUiConfig) {
|
|
20
21
|
return updatedUiConfig;
|
|
21
22
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pyramidChartUiConfigHelper.d.ts","sourceRoot":"","sources":["../../../../src/internal/utils/uiConfigHelpers/pyramidChartUiConfigHelper.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"pyramidChartUiConfigHelper.d.ts","sourceRoot":"","sources":["../../../../src/internal/utils/uiConfigHelpers/pyramidChartUiConfigHelper.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,KAAK,uBAAuB,EAAE,MAAM,mCAAmC,CAAC;AAQjF,wBAAgB,uBAAuB,CAAC,cAAc,EAAE,uBAAuB,GAAG,uBAAuB,CASxG"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
// (C) 2019-
|
|
2
|
-
import {
|
|
1
|
+
// (C) 2019-2026 GoodData Corporation
|
|
2
|
+
import { set } from "lodash-es";
|
|
3
3
|
import { BucketNames } from "@gooddata/sdk-ui";
|
|
4
|
+
import { _cloneDeep } from "@gooddata/util";
|
|
4
5
|
import { BUCKETS } from "../../constants/bucket.js";
|
|
5
6
|
import { UICONFIG, disabledOpenAsReportConfig } from "../../constants/uiConfig.js";
|
|
6
7
|
// If you need to edit these icons
|
|
@@ -9,7 +10,7 @@ import { UICONFIG, disabledOpenAsReportConfig } from "../../constants/uiConfig.j
|
|
|
9
10
|
const pyramidMeasuresIcon = "local:pyramid/bucket-title-measures.svg";
|
|
10
11
|
const pyramidViewIcon = "local:pyramid/bucket-title-view.svg";
|
|
11
12
|
export function setPyramidChartUiConfig(referencePoint) {
|
|
12
|
-
const referencePointConfigured =
|
|
13
|
+
const referencePointConfigured = _cloneDeep(referencePoint);
|
|
13
14
|
Object.assign(referencePointConfigured[UICONFIG], disabledOpenAsReportConfig);
|
|
14
15
|
set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.MEASURES, "icon"], pyramidMeasuresIcon);
|
|
15
16
|
set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.VIEW, "icon"], pyramidViewIcon);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"radarChartUiConfigHelper.d.ts","sourceRoot":"","sources":["../../../../src/internal/utils/uiConfigHelpers/radarChartUiConfigHelper.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"radarChartUiConfigHelper.d.ts","sourceRoot":"","sources":["../../../../src/internal/utils/uiConfigHelpers/radarChartUiConfigHelper.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;AAQ5C,OAAO,EAAE,KAAK,uBAAuB,EAAE,MAAM,mCAAmC,CAAC;AA8CjF,wBAAgB,qBAAqB,CACjC,cAAc,EAAE,uBAAuB,EACvC,IAAI,EAAE,SAAS,EACf,iBAAiB,EAAE,MAAM,GAC1B,uBAAuB,CAgCzB"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// (C) 2026 GoodData Corporation
|
|
2
|
-
import {
|
|
2
|
+
import { set } from "lodash-es";
|
|
3
3
|
import { BucketNames } from "@gooddata/sdk-ui";
|
|
4
|
+
import { _cloneDeep } from "@gooddata/util";
|
|
4
5
|
import { messages } from "../../../locales.js";
|
|
5
6
|
import { ATTRIBUTE, BUCKETS, DATE } from "../../constants/bucket.js";
|
|
6
7
|
import { OPEN_AS_REPORT, SUPPORTED, UICONFIG } from "../../constants/uiConfig.js";
|
|
@@ -13,7 +14,7 @@ const radarTrendIcon = "local:radar/bucket-title-trend.svg";
|
|
|
13
14
|
const radarSegmentIcon = "local:radar/bucket-title-segment.svg";
|
|
14
15
|
function setRadarChartBucketWarningMessages(referencePoint, intl) {
|
|
15
16
|
const buckets = referencePoint?.buckets || [];
|
|
16
|
-
const updatedUiConfig =
|
|
17
|
+
const updatedUiConfig = _cloneDeep(referencePoint?.uiConfig);
|
|
17
18
|
const stackItems = getStackItems(buckets, [ATTRIBUTE, DATE]);
|
|
18
19
|
if (!updatedUiConfig) {
|
|
19
20
|
return updatedUiConfig;
|
|
@@ -41,7 +42,7 @@ function setRadarChartBucketWarningMessages(referencePoint, intl) {
|
|
|
41
42
|
return updatedUiConfig;
|
|
42
43
|
}
|
|
43
44
|
export function setRadarChartUiConfig(referencePoint, intl, visualizationType) {
|
|
44
|
-
const referencePointConfigured =
|
|
45
|
+
const referencePointConfigured = _cloneDeep(referencePoint);
|
|
45
46
|
const buckets = referencePointConfigured?.buckets ?? [];
|
|
46
47
|
const measuresCanAddItems = hasNoMeasures(buckets) || hasNoStacksWithDate(buckets);
|
|
47
48
|
const segmentCanAddItems = hasSomeSegmentByItems(buckets) || hasNoMeasures(buckets) || hasOneMeasure(buckets);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"repeaterUiConfigHelper.d.ts","sourceRoot":"","sources":["../../../../src/internal/utils/uiConfigHelpers/repeaterUiConfigHelper.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"repeaterUiConfigHelper.d.ts","sourceRoot":"","sources":["../../../../src/internal/utils/uiConfigHelpers/repeaterUiConfigHelper.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;AAQ5C,OAAO,EACH,KAAK,uBAAuB,EAE5B,KAAK,SAAS,EACjB,MAAM,mCAAmC,CAAC;AAI3C,eAAO,MAAM,0BAA0B,QAAO,SAAmD,CAAC;AASlG,wBAAgB,mBAAmB,CAC/B,cAAc,EAAE,uBAAuB,EACvC,IAAI,EAAE,SAAS,GAChB,uBAAuB,CAgCzB;AAED,eAAO,MAAM,qBAAqB,2BACN,uBAAuB,KAChD,uBAoBF,CAAC"}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
// (C) 2024-
|
|
2
|
-
import {
|
|
1
|
+
// (C) 2024-2026 GoodData Corporation
|
|
2
|
+
import { set } from "lodash-es";
|
|
3
3
|
import { areObjRefsEqual } from "@gooddata/sdk-model";
|
|
4
4
|
import { BucketNames, VisualizationTypes } from "@gooddata/sdk-ui";
|
|
5
|
+
import { _cloneDeep } from "@gooddata/util";
|
|
5
6
|
import { ATTRIBUTE, BUCKETS, DATE } from "../../constants/bucket.js";
|
|
6
7
|
import { DEFAULT_REPEATER_UI_CONFIG, UICONFIG } from "../../constants/uiConfig.js";
|
|
7
8
|
import { getBucketItems, getMainRowAttribute, setBucketTitles } from "../bucketHelper.js";
|
|
8
9
|
import { hasNoAttribute, hasNoColumns } from "../bucketRules.js";
|
|
9
|
-
export const getDefaultRepeaterUiConfig = () =>
|
|
10
|
+
export const getDefaultRepeaterUiConfig = () => _cloneDeep(DEFAULT_REPEATER_UI_CONFIG);
|
|
10
11
|
// If you need to edit these icons
|
|
11
12
|
// reflect changes also in gdc-analytical-designer
|
|
12
13
|
// https://github.com/gooddata/gdc-analytical-designer/blob/develop/app/components/buckets/BucketIcon.tsx
|
|
@@ -14,7 +15,7 @@ const repeaterRowsIcon = "local:repeater/bucket-title-rows.svg";
|
|
|
14
15
|
const repeaterColumnsIcon = "local:repeater/bucket-title-columns.svg";
|
|
15
16
|
const repeaterViewIcon = "local:repeater/bucket-title-view.svg";
|
|
16
17
|
export function setRepeaterUiConfig(referencePoint, intl) {
|
|
17
|
-
const referencePointConfigured =
|
|
18
|
+
const referencePointConfigured = _cloneDeep(referencePoint);
|
|
18
19
|
const buckets = referencePointConfigured?.buckets ?? [];
|
|
19
20
|
const attributeCanAddItems = hasNoAttribute(buckets);
|
|
20
21
|
const emptyColumns = hasNoColumns(buckets);
|
|
@@ -30,7 +31,7 @@ export function setRepeaterUiConfig(referencePoint, intl) {
|
|
|
30
31
|
return referencePointConfigured;
|
|
31
32
|
}
|
|
32
33
|
export const configRepeaterBuckets = (extendedReferencePoint) => {
|
|
33
|
-
const newExtendedReferencePoint =
|
|
34
|
+
const newExtendedReferencePoint = _cloneDeep(extendedReferencePoint);
|
|
34
35
|
const { attribute, columns, view } = getRepeaterBucketItems(newExtendedReferencePoint);
|
|
35
36
|
set(newExtendedReferencePoint, BUCKETS, [
|
|
36
37
|
{
|
|
@@ -49,7 +50,7 @@ export const configRepeaterBuckets = (extendedReferencePoint) => {
|
|
|
49
50
|
return newExtendedReferencePoint;
|
|
50
51
|
};
|
|
51
52
|
const getRepeaterBucketItems = (extendedReferencePoint) => {
|
|
52
|
-
const newExtendedReferencePoint =
|
|
53
|
+
const newExtendedReferencePoint = _cloneDeep(extendedReferencePoint);
|
|
53
54
|
const buckets = newExtendedReferencePoint?.buckets ?? [];
|
|
54
55
|
const rowAttribute = getMainRowAttribute(buckets);
|
|
55
56
|
const columns = getBucketItems(buckets, BucketNames.COLUMNS);
|