@gooddata/sdk-ui-ext 11.68.0-alpha.6 → 11.68.0-alpha.7
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 +42 -42
- 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 +4 -4
- 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 +5 -4
- 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 +6 -6
- package/esm/internal/utils/colors.js +5 -5
- package/esm/internal/utils/propertiesHelper.js +6 -6
- 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/package.json +21 -21
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
// (C) 2019-2026 GoodData Corporation
|
|
2
|
-
import {
|
|
2
|
+
import { compact, negate, set, uniqBy, without } from "lodash-es";
|
|
3
3
|
import { areObjRefsEqual, bucketItems, bucketsFind, bucketsMeasures, idRef, insightBuckets, insightVisualizationType, isObjRef, isPoPMeasure, isPreviousPeriodMeasure, isSimpleMeasure, } from "@gooddata/sdk-model";
|
|
4
4
|
import { BucketNames, OverTimeComparisonTypes, VisualizationTypes, } from "@gooddata/sdk-ui";
|
|
5
5
|
import { isAreaChart, isBulletChart, isComboChart, isLineChart } from "@gooddata/sdk-ui-charts";
|
|
6
|
-
import { _isEmpty } from "@gooddata/util";
|
|
6
|
+
import { _cloneDeep, _isEmpty } from "@gooddata/util";
|
|
7
7
|
import { subtitles, titles } from "../../locales.js";
|
|
8
8
|
import { ATTRIBUTE, BUCKETS, DATE, METRIC, SHOW_ON_SECONDARY_AXIS } from "../constants/bucket.js";
|
|
9
9
|
import { DATE_DATASET_ATTRIBUTE, } from "../interfaces/Visualization.js";
|
|
@@ -350,7 +350,7 @@ function bucketSupportsSubtitle(visualizationType, bucketLocalIdentifier) {
|
|
|
350
350
|
}
|
|
351
351
|
export function setBucketTitles(referencePoint, visualizationType, intl) {
|
|
352
352
|
const buckets = referencePoint?.buckets;
|
|
353
|
-
const updatedUiConfig =
|
|
353
|
+
const updatedUiConfig = _cloneDeep(referencePoint?.uiConfig);
|
|
354
354
|
if (!updatedUiConfig) {
|
|
355
355
|
return updatedUiConfig;
|
|
356
356
|
}
|
|
@@ -578,7 +578,7 @@ function hasItemsAboveLimit(bucket, itemsLimit) {
|
|
|
578
578
|
}
|
|
579
579
|
function applyItemsLimit(bucket, itemsLimit) {
|
|
580
580
|
if (itemsLimit !== undefined && hasItemsAboveLimit(bucket, itemsLimit)) {
|
|
581
|
-
const newBucket =
|
|
581
|
+
const newBucket = _cloneDeep(bucket);
|
|
582
582
|
newBucket.items = newBucket.items.slice(0, itemsLimit);
|
|
583
583
|
return newBucket;
|
|
584
584
|
}
|
|
@@ -610,7 +610,7 @@ export function getFirstMasterWithDerived(measureItems) {
|
|
|
610
610
|
measureItem === chosenMaster);
|
|
611
611
|
}
|
|
612
612
|
export function removeAllArithmeticMeasuresFromDerived(extendedReferencePoint) {
|
|
613
|
-
const originalBuckets =
|
|
613
|
+
const originalBuckets = _cloneDeep(extendedReferencePoint.buckets);
|
|
614
614
|
extendedReferencePoint.buckets.forEach((bucket) => {
|
|
615
615
|
bucket.items = filterOutArithmeticMeasuresFromDerived(bucket.items, originalBuckets);
|
|
616
616
|
});
|
|
@@ -849,7 +849,7 @@ export const getMainRowAttribute = (buckets) => {
|
|
|
849
849
|
return attributeItems[0] ?? undefined;
|
|
850
850
|
};
|
|
851
851
|
export const cloneBucketItem = (item) => {
|
|
852
|
-
const clonedItem =
|
|
852
|
+
const clonedItem = _cloneDeep(item);
|
|
853
853
|
clonedItem.localIdentifier = clonedItem.localIdentifier + "_cloned";
|
|
854
854
|
return clonedItem;
|
|
855
855
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
// (C) 2019-2026 GoodData Corporation
|
|
2
|
-
import {
|
|
2
|
+
import { compact, set, uniqBy } from "lodash-es";
|
|
3
3
|
import { isAttributeDescriptor, isColorDescriptor, isColorFromPalette, isMeasureDescriptor, isResultAttributeHeader, isRgbColor, isUriRef, } from "@gooddata/sdk-model";
|
|
4
4
|
import { getMappingHeaderFormattedName } from "@gooddata/sdk-ui";
|
|
5
5
|
import { ColorUtils } from "@gooddata/sdk-ui-charts";
|
|
6
|
-
import { _isEmpty, _isEqual } from "@gooddata/util";
|
|
6
|
+
import { _cloneDeep, _isEmpty, _isEqual } from "@gooddata/util";
|
|
7
7
|
/**
|
|
8
8
|
* Name of the colored item as the list displays it, so that searching matches what the user sees: the
|
|
9
9
|
* formatted element value for dates and number-formatted attributes, the raw name otherwise.
|
|
@@ -96,7 +96,7 @@ function mergeColorMappingToProperties(properties, id, color) {
|
|
|
96
96
|
];
|
|
97
97
|
const previousColorMapping = properties?.controls?.["colorMapping"] ?? [];
|
|
98
98
|
const mergedMapping = compact(uniqBy([...colorMapping, ...previousColorMapping], "id"));
|
|
99
|
-
const newProperties =
|
|
99
|
+
const newProperties = _cloneDeep(properties);
|
|
100
100
|
set(newProperties, "controls.colorMapping", mergedMapping);
|
|
101
101
|
return newProperties;
|
|
102
102
|
}
|
|
@@ -112,7 +112,7 @@ export function removeColorMappingFromProperties(properties, id) {
|
|
|
112
112
|
// a null color instructs the host application to remove the stored entry;
|
|
113
113
|
// omitting the entry is not enough because hosts merge pushed properties additively
|
|
114
114
|
const updatedMapping = previousColorMapping.map((item) => item.id === id ? { id, color: null } : item);
|
|
115
|
-
const newProperties =
|
|
115
|
+
const newProperties = _cloneDeep(properties);
|
|
116
116
|
set(newProperties, "controls.colorMapping", updatedMapping);
|
|
117
117
|
return newProperties;
|
|
118
118
|
}
|
|
@@ -120,7 +120,7 @@ export function getLineStyleProperties(properties, id, lineStyle, lineWidth) {
|
|
|
120
120
|
const newEntry = { id, lineStyle, lineWidth };
|
|
121
121
|
const previousMapping = properties?.controls?.["lineStyleMapping"] ?? [];
|
|
122
122
|
const merged = compact(uniqBy([newEntry, ...previousMapping], "id"));
|
|
123
|
-
const newProperties =
|
|
123
|
+
const newProperties = _cloneDeep(properties);
|
|
124
124
|
set(newProperties, "controls.lineStyleMapping", merged);
|
|
125
125
|
return newProperties;
|
|
126
126
|
}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
// (C) 2019-2026 GoodData Corporation
|
|
2
2
|
// eslint-disable-next-line no-restricted-imports
|
|
3
|
-
import {
|
|
3
|
+
import { get, has, set } from "lodash-es";
|
|
4
4
|
import { bucketsIsEmpty, insightBuckets, insightProperties, insightVisualizationUrl, } from "@gooddata/sdk-model";
|
|
5
5
|
import { BucketNames } from "@gooddata/sdk-ui";
|
|
6
|
-
import { _isEmpty } from "@gooddata/util";
|
|
6
|
+
import { _cloneDeep, _isEmpty } from "@gooddata/util";
|
|
7
7
|
import { AXIS } from "../constants/axis.js";
|
|
8
8
|
import { PROPERTY_CONTROLS } from "../constants/properties.js";
|
|
9
9
|
import { OPTIONAL_STACKING_PROPERTIES } from "../constants/supportedProperties.js";
|
|
10
10
|
import { UICONFIG_AXIS } from "../constants/uiConfig.js";
|
|
11
11
|
import { getAllMeasuresShowOnSecondaryAxis, getItemsCount, getItemsLocalIdentifiers, getMeasureItems, getStackItems, } from "./bucketHelper.js";
|
|
12
12
|
export function getSupportedPropertiesControls(visualizationControlsProperties, supportedPropertiesList) {
|
|
13
|
-
const clonedControls =
|
|
13
|
+
const clonedControls = _cloneDeep(visualizationControlsProperties);
|
|
14
14
|
if (supportedPropertiesList) {
|
|
15
15
|
return supportedPropertiesList.reduce((props, current) => has(clonedControls, current) ? set(props, current, get(clonedControls, current)) : props, {});
|
|
16
16
|
}
|
|
@@ -23,7 +23,7 @@ export function setSecondaryMeasures(referencePoint, axisName) {
|
|
|
23
23
|
if (!axisName) {
|
|
24
24
|
return referencePoint;
|
|
25
25
|
}
|
|
26
|
-
const newReferencePoint =
|
|
26
|
+
const newReferencePoint = _cloneDeep(referencePoint);
|
|
27
27
|
const path = `${PROPERTY_CONTROLS}.${axisName}`;
|
|
28
28
|
const secondaryAxisProperties = newReferencePoint?.properties?.controls?.[axisName];
|
|
29
29
|
const buckets = newReferencePoint?.buckets ?? [];
|
|
@@ -265,10 +265,10 @@ export function getLegendConfigurationDashboardsEnv(controlProperties, options)
|
|
|
265
265
|
return controlProperties;
|
|
266
266
|
}
|
|
267
267
|
export function getChartSupportedControls(controlProperties, insight) {
|
|
268
|
-
return getDataPointsConfiguration(getHighchartsAxisNameConfiguration(getLegendConfiguration(
|
|
268
|
+
return getDataPointsConfiguration(getHighchartsAxisNameConfiguration(getLegendConfiguration(_cloneDeep(controlProperties ?? {}), insight)));
|
|
269
269
|
}
|
|
270
270
|
export function getChartSupportedControlsDashboardsEnv(controlProperties, options) {
|
|
271
|
-
return getDataPointsConfiguration(getHighchartsAxisNameConfiguration(getLegendConfigurationDashboardsEnv(
|
|
271
|
+
return getDataPointsConfiguration(getHighchartsAxisNameConfiguration(getLegendConfigurationDashboardsEnv(_cloneDeep(controlProperties ?? {}), options)));
|
|
272
272
|
}
|
|
273
273
|
function getLegendPosition(controlProperties, insight) {
|
|
274
274
|
const legendPosition = controlProperties?.["legend"]?.position ?? "auto";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"areaChartUiConfigHelper.d.ts","sourceRoot":"","sources":["../../../../src/internal/utils/uiConfigHelpers/areaChartUiConfigHelper.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"areaChartUiConfigHelper.d.ts","sourceRoot":"","sources":["../../../../src/internal/utils/uiConfigHelpers/areaChartUiConfigHelper.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;AAQ5C,OAAO,EAGH,KAAK,uBAAuB,EAE/B,MAAM,mCAAmC,CAAC;AAiE3C,wBAAgB,oBAAoB,CAChC,cAAc,EAAE,uBAAuB,EACvC,IAAI,EAAE,SAAS,EACf,iBAAiB,EAAE,MAAM,GAC1B,uBAAuB,CAuCzB"}
|
|
@@ -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
|
}
|