@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,8 +1,9 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
// (C) 2026 GoodData Corporation
|
|
3
3
|
import { useCallback, useEffect, useRef } from "react";
|
|
4
|
-
import {
|
|
4
|
+
import { set } from "lodash-es";
|
|
5
5
|
import { useIntl } from "react-intl";
|
|
6
|
+
import { _cloneDeep } from "@gooddata/util";
|
|
6
7
|
import { messages } from "../../../locales.js";
|
|
7
8
|
import { pushpinShapeTypeDropdownItems } from "../../constants/dropdowns.js";
|
|
8
9
|
import { getTranslatedDropdownItems } from "../../utils/translations.js";
|
|
@@ -44,7 +45,7 @@ export function PushpinShapeControl(props) {
|
|
|
44
45
|
const handleShapeTypePushData = useCallback((data) => {
|
|
45
46
|
const nextShape = data.properties?.controls?.["points"]?.shapeType;
|
|
46
47
|
if (nextShape !== "oneIcon" && data.properties?.controls?.["points"]?.icon !== undefined) {
|
|
47
|
-
const sanitized =
|
|
48
|
+
const sanitized = _cloneDeep(data.properties);
|
|
48
49
|
set(sanitized, "controls.points.icon", undefined);
|
|
49
50
|
pushData({ ...data, properties: sanitized });
|
|
50
51
|
return;
|
|
@@ -65,7 +66,7 @@ export function PushpinShapeControl(props) {
|
|
|
65
66
|
return;
|
|
66
67
|
}
|
|
67
68
|
lastAutoSelectedIcon.current = firstSpriteIcon;
|
|
68
|
-
const clonedProperties =
|
|
69
|
+
const clonedProperties = _cloneDeep(properties);
|
|
69
70
|
set(clonedProperties, "controls.points.icon", firstSpriteIcon);
|
|
70
71
|
pushData({ properties: clonedProperties });
|
|
71
72
|
}, [shapeType, icon, spriteIcons, properties, pushData]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AdvancedSection.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/configurationControls/advanced/AdvancedSection.tsx"],"names":[],"mappings":"AAQA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"AdvancedSection.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/configurationControls/advanced/AdvancedSection.tsx"],"names":[],"mappings":"AAQA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAKlD,OAAO,EAAE,KAAK,wBAAwB,EAAE,MAAM,sCAAsC,CAAC;AAMrF,MAAM,WAAW,qBAAqB;IAClC,gBAAgB,EAAE,OAAO,CAAC;IAC1B,UAAU,CAAC,EAAE,wBAAwB,CAAC;IACtC,cAAc,CAAC,EAAE,GAAG,CAAC;IACrB,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,SAAS,KAAK,GAAG,CAAC;CACvC;AAED,eAAO,MAAM,eAAe,oGAKzB,qBAAqB,6CA6DtB,CAAC"}
|
|
@@ -2,9 +2,10 @@ import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-run
|
|
|
2
2
|
// (C) 2024-2026 GoodData Corporation
|
|
3
3
|
import { memo, useRef, useState } from "react";
|
|
4
4
|
import cx from "classnames";
|
|
5
|
-
import {
|
|
5
|
+
import { set } from "lodash-es";
|
|
6
6
|
import { useIntl } from "react-intl";
|
|
7
7
|
import { Button } from "@gooddata/sdk-ui-kit";
|
|
8
|
+
import { _cloneDeep } from "@gooddata/util";
|
|
8
9
|
import { messages } from "../../../../locales.js";
|
|
9
10
|
import { ConfigSection } from "../ConfigSection.js";
|
|
10
11
|
import { ConfigEditor } from "./ConfigEditor.js";
|
|
@@ -18,7 +19,7 @@ export const AdvancedSection = memo(function AdvancedSection({ properties, prope
|
|
|
18
19
|
const valuePath = "chartConfigOverride";
|
|
19
20
|
const configurationValue = properties?.controls?.["chartConfigOverride"];
|
|
20
21
|
const onChange = (value) => {
|
|
21
|
-
const clonedProperties =
|
|
22
|
+
const clonedProperties = _cloneDeep(properties);
|
|
22
23
|
set(clonedProperties, `controls.${valuePath}`, value);
|
|
23
24
|
pushData?.({ properties: clonedProperties });
|
|
24
25
|
setShowDialog(false);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ColorsSection.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/configurationControls/colors/ColorsSection.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"ColorsSection.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/configurationControls/colors/ColorsSection.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAavC,OAAO,EAAE,KAAK,mBAAmB,EAAqB,MAAM,+BAA+B,CAAC;AAC5F,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,wBAAwB,EAAE,MAAM,sCAAsC,CAAC;AAevG,MAAM,WAAW,mBAAmB;IAChC,gBAAgB,EAAE,OAAO,CAAC;IAC1B,UAAU,CAAC,EAAE,wBAAwB,CAAC;IACtC,cAAc,CAAC,EAAE,GAAG,CAAC;IACrB,UAAU,CAAC,EAAE,WAAW,CAAC;IACzB,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,GAAG,KAAK,IAAI,CAAC;IAC/B,WAAW,EAAE,OAAO,CAAC;IACrB,MAAM,CAAC,EAAE,mBAAmB,CAAC;IAC7B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,wBAAwB,CAAC,EAAE,MAAM,EAAE,CAAC;IACpC,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,8EAA8E;IAC9E,kBAAkB,CAAC,EAAE,SAAS,CAAC;IAC/B,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,wBAAwB,CAAC,EAAE,MAAM,EAAE,CAAC;IACpC,wFAAwF;IACxF,sBAAsB,CAAC,EAAE,MAAM,EAAE,CAAC;CACrC;AAED,eAAO,MAAM,qBAAqB,0BAA0B,CAAC;AAE7D,wBAAgB,aAAa,CAAC,EAC1B,gBAAgB,EAChB,UAAU,EACV,cAAc,EACd,QAAQ,EACR,WAAW,EACX,MAAM,EACN,SAAS,EACT,iBAAiB,EACjB,wBAA6B,EAC7B,mBAAmB,EACnB,kBAAkB,EAClB,kBAAkB,EAAE,oBAAoB,EACxC,wBAAwB,EACxB,sBAAsB,GACzB,EAAE,mBAAmB,2CA0LrB"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import cx from "classnames";
|
|
3
|
-
import {
|
|
3
|
+
import { set } from "lodash-es";
|
|
4
4
|
import { useIntl } from "react-intl";
|
|
5
5
|
import { Button } from "@gooddata/sdk-ui-kit";
|
|
6
|
+
import { _cloneDeep } from "@gooddata/util";
|
|
6
7
|
import { messages } from "../../../../locales.js";
|
|
7
8
|
import { fillDropdownItems } from "../../../constants/dropdowns.js";
|
|
8
9
|
import { getColoredInputItems, getLineStyleMappingId, getLineStyleProperties, getMappingHeaderId, getProperties, removeColorMappingFromProperties, } from "../../../utils/colors.js";
|
|
@@ -57,7 +58,7 @@ export function ColorsSection({ controlsDisabled, properties, propertiesMeta, pu
|
|
|
57
58
|
if (isDefaultColorMapping()) {
|
|
58
59
|
return;
|
|
59
60
|
}
|
|
60
|
-
let updatedProperties = set(
|
|
61
|
+
let updatedProperties = set(_cloneDeep(properties), "controls.colorMapping", undefined);
|
|
61
62
|
if (supportsLineStyles) {
|
|
62
63
|
updatedProperties = set(updatedProperties, "controls.lineStyleMapping", undefined);
|
|
63
64
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ColorCheckbox.d.ts","sourceRoot":"","sources":["../../../../../../../src/internal/components/configurationControls/comparison/indicators/colorsControl/ColorCheckbox.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"ColorCheckbox.d.ts","sourceRoot":"","sources":["../../../../../../../src/internal/components/configurationControls/comparison/indicators/colorsControl/ColorCheckbox.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAKzD,OAAO,EAAE,KAAK,4BAA4B,EAAE,MAAM,gDAAgD,CAAC;AACnG,OAAO,EAAE,KAAK,wBAAwB,EAAE,MAAM,4CAA4C,CAAC;AAI3F,UAAU,eAAe;IACrB,QAAQ,EAAE,OAAO,CAAC;IAClB,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,UAAU,EAAE,wBAAwB,CAAC,4BAA4B,CAAC,CAAC;IACnE,QAAQ,EAAE,gBAAgB,CAAC;CAC9B;AAED,wBAAgB,aAAa,CAAC,EAAE,QAAQ,EAAE,mBAAmB,EAAE,UAAU,EAAE,QAAQ,EAAE,EAAE,eAAe,2CAkBrG"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
// (C) 2023-
|
|
3
|
-
import {
|
|
2
|
+
// (C) 2023-2026 GoodData Corporation
|
|
3
|
+
import { set } from "lodash-es";
|
|
4
4
|
import { useIntl } from "react-intl";
|
|
5
5
|
import { Checkbox } from "@gooddata/sdk-ui-kit";
|
|
6
|
+
import { _cloneDeep } from "@gooddata/util";
|
|
6
7
|
import { comparisonMessages } from "../../../../../../locales.js";
|
|
7
8
|
import { DisabledBubbleMessage } from "../../../../DisabledBubbleMessage.js";
|
|
8
9
|
import { COMPARISON_COLOR_CONFIG_DISABLED } from "../../ComparisonValuePath.js";
|
|
@@ -11,7 +12,7 @@ export function ColorCheckbox({ disabled, showDisabledMessage, properties, pushD
|
|
|
11
12
|
const checked = !properties?.controls?.comparison?.colorConfig?.disabled;
|
|
12
13
|
const label = formatMessage(comparisonMessages["colorsConfigTitle"]);
|
|
13
14
|
const handleChange = (value) => {
|
|
14
|
-
const clonedProperties =
|
|
15
|
+
const clonedProperties = _cloneDeep(properties);
|
|
15
16
|
set(clonedProperties.controls, COMPARISON_COLOR_CONFIG_DISABLED, !value);
|
|
16
17
|
pushData({ properties: clonedProperties });
|
|
17
18
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ColorItem.d.ts","sourceRoot":"","sources":["../../../../../../../src/internal/components/configurationControls/comparison/indicators/colorsControl/ColorItem.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,iBAAiB,EAAW,MAAM,YAAY,CAAC;AAE7D,OAAO,EAAE,KAAK,MAAM,EAAE,KAAK,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACtE,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AACzD,OAAO,EAAE,KAAK,mBAAmB,EAAyB,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"ColorItem.d.ts","sourceRoot":"","sources":["../../../../../../../src/internal/components/configurationControls/comparison/indicators/colorsControl/ColorItem.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,iBAAiB,EAAW,MAAM,YAAY,CAAC;AAE7D,OAAO,EAAE,KAAK,MAAM,EAAE,KAAK,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACtE,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AACzD,OAAO,EAAE,KAAK,mBAAmB,EAAyB,MAAM,yBAAyB,CAAC;AAG1F,OAAO,EAAE,KAAK,4BAA4B,EAAE,MAAM,gDAAgD,CAAC;AACnG,OAAO,EAAE,KAAK,wBAAwB,EAAE,MAAM,4CAA4C,CAAC;AAK3F,UAAU,eAAe;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IACzB,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,mBAAmB,CAAC;IAC/B,YAAY,EAAE,aAAa,CAAC;IAC5B,eAAe,EAAE,iBAAiB,CAAC;IACnC,UAAU,EAAE,wBAAwB,CAAC,4BAA4B,CAAC,CAAC;IACnE,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,gBAAgB,CAAC;CAC9B;AAED,wBAAgB,SAAS,CAAC,EACtB,QAAQ,EACR,KAAK,EACL,mBAAmB,EACnB,KAAK,EACL,SAAS,EACT,YAAY,EACZ,eAAe,EACf,SAAS,EACT,UAAU,EACV,QAAQ,GACX,EAAE,eAAe,2CA0BjB"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
// (C) 2023-2026 GoodData Corporation
|
|
3
|
-
import {
|
|
3
|
+
import { set } from "lodash-es";
|
|
4
4
|
import { useIntl } from "react-intl";
|
|
5
5
|
import { getComparisonRgbColor } from "@gooddata/sdk-ui-charts";
|
|
6
|
+
import { _cloneDeep } from "@gooddata/util";
|
|
6
7
|
import { DisabledBubbleMessage } from "../../../../DisabledBubbleMessage.js";
|
|
7
8
|
import { ColorDropdown } from "../../../colors/colorDropdown/ColorDropdown.js";
|
|
8
9
|
import { ColoredItemContent } from "../../../colors/coloredItemsList/ColoredItemContent.js";
|
|
@@ -12,7 +13,7 @@ export function ColorItem({ disabled, align, showDisabledMessage, color, colorTy
|
|
|
12
13
|
const rgbColor = getComparisonRgbColor(color, colorType, colorPalette);
|
|
13
14
|
const chartFill = properties?.controls?.["chartFill"];
|
|
14
15
|
const handleColorSelected = (color) => {
|
|
15
|
-
const clonedProperties =
|
|
16
|
+
const clonedProperties = _cloneDeep(properties);
|
|
16
17
|
set(clonedProperties.controls, valuePath, color);
|
|
17
18
|
pushData({ properties: clonedProperties });
|
|
18
19
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ColorResetButton.d.ts","sourceRoot":"","sources":["../../../../../../../src/internal/components/configurationControls/comparison/indicators/colorsControl/ColorResetButton.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"ColorResetButton.d.ts","sourceRoot":"","sources":["../../../../../../../src/internal/components/configurationControls/comparison/indicators/colorsControl/ColorResetButton.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAKzD,OAAO,EAAE,KAAK,4BAA4B,EAAE,MAAM,gDAAgD,CAAC;AACnG,OAAO,EAAE,KAAK,wBAAwB,EAAE,MAAM,4CAA4C,CAAC;AAQ3F,UAAU,sBAAsB;IAC5B,QAAQ,EAAE,OAAO,CAAC;IAClB,UAAU,EAAE,wBAAwB,CAAC,4BAA4B,CAAC,CAAC;IACnE,QAAQ,EAAE,gBAAgB,CAAC;CAC9B;AAED,wBAAgB,gBAAgB,CAAC,EAAE,QAAQ,EAAE,UAAU,EAAE,QAAQ,EAAE,EAAE,sBAAsB,2CAyB1F"}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
// (C) 2023-
|
|
2
|
+
// (C) 2023-2026 GoodData Corporation
|
|
3
3
|
import cx from "classnames";
|
|
4
|
-
import {
|
|
4
|
+
import { set } from "lodash-es";
|
|
5
5
|
import { useIntl } from "react-intl";
|
|
6
6
|
import { Button } from "@gooddata/sdk-ui-kit";
|
|
7
|
+
import { _cloneDeep } from "@gooddata/util";
|
|
7
8
|
import { messages } from "../../../../../../locales.js";
|
|
8
9
|
import { isComparisonDefaultColors } from "../../../../../utils/comparisonHelper.js";
|
|
9
10
|
import { COMPARISON_COLOR_CONFIG_EQUALS, COMPARISON_COLOR_CONFIG_NEGATIVE, COMPARISON_COLOR_CONFIG_POSITIVE, } from "../../ComparisonValuePath.js";
|
|
@@ -12,7 +13,7 @@ export function ColorResetButton({ disabled, properties, pushData }) {
|
|
|
12
13
|
const label = formatMessage(messages["resetColors"]);
|
|
13
14
|
const isDefaultColors = isComparisonDefaultColors(properties?.controls?.comparison?.colorConfig);
|
|
14
15
|
const resetColors = () => {
|
|
15
|
-
const clonedProperties =
|
|
16
|
+
const clonedProperties = _cloneDeep(properties);
|
|
16
17
|
set(clonedProperties.controls, COMPARISON_COLOR_CONFIG_POSITIVE, undefined);
|
|
17
18
|
set(clonedProperties.controls, COMPARISON_COLOR_CONFIG_NEGATIVE, undefined);
|
|
18
19
|
set(clonedProperties.controls, COMPARISON_COLOR_CONFIG_EQUALS, undefined);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NumberFormatControl.d.ts","sourceRoot":"","sources":["../../../../../../../src/internal/components/configurationControls/comparison/values/numberFormat/NumberFormatControl.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"NumberFormatControl.d.ts","sourceRoot":"","sources":["../../../../../../../src/internal/components/configurationControls/comparison/values/numberFormat/NumberFormatControl.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAI3E,OAAO,EAAE,KAAK,4BAA4B,EAAE,MAAM,gDAAgD,CAAC;AACnG,OAAO,EAAE,KAAK,wBAAwB,EAAE,MAAM,4CAA4C,CAAC;AAM3F,UAAU,yBAAyB;IAC/B,QAAQ,EAAE,OAAO,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9B,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,UAAU,EAAE,WAAW,CAAC;IACxB,UAAU,EAAE,wBAAwB,CAAC,4BAA4B,CAAC,CAAC;IACnE,QAAQ,EAAE,gBAAgB,CAAC;CAC9B;AAED,wBAAgB,mBAAmB,CAAC,EAChC,QAAQ,EACR,SAAS,EACT,SAAS,EACT,MAAM,EACN,mBAAmB,EACnB,UAAU,EACV,UAAU,EACV,QAAQ,GACX,EAAE,yBAAyB,2CAmC3B"}
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
// (C) 2023-2026 GoodData Corporation
|
|
3
3
|
import { useMemo } from "react";
|
|
4
|
-
import {
|
|
4
|
+
import { set } from "lodash-es";
|
|
5
5
|
import { FormattedMessage, useIntl } from "react-intl";
|
|
6
6
|
import { MeasureNumberFormat } from "@gooddata/sdk-ui-kit";
|
|
7
|
+
import { _cloneDeep } from "@gooddata/util";
|
|
7
8
|
import { getPresets, getTemplates } from "../../../../../utils/comparisonHelper.js";
|
|
8
9
|
import { DisabledBubbleMessage } from "../../../../DisabledBubbleMessage.js";
|
|
9
10
|
import { NumberFormatToggleButton } from "./NumberFormatToggleButton.js";
|
|
10
11
|
export function NumberFormatControl({ disabled, valuePath, labelText, format, showDisabledMessage, separators, properties, pushData, }) {
|
|
11
12
|
const intl = useIntl();
|
|
12
13
|
const selectFormat = (format) => {
|
|
13
|
-
const clonedProperties =
|
|
14
|
+
const clonedProperties = _cloneDeep(properties);
|
|
14
15
|
set(clonedProperties.controls, valuePath, format);
|
|
15
16
|
pushData({ properties: clonedProperties });
|
|
16
17
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConditionalFormattingSection.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/configurationControls/conditionalFormatting/ConditionalFormattingSection.tsx"],"names":[],"mappings":"AAQA,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,EACH,KAAK,kBAAkB,EAEvB,KAAK,WAAW,EAEnB,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"ConditionalFormattingSection.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/configurationControls/conditionalFormatting/ConditionalFormattingSection.tsx"],"names":[],"mappings":"AAQA,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,EACH,KAAK,kBAAkB,EAEvB,KAAK,WAAW,EAEnB,MAAM,qBAAqB,CAAC;AAM7B,OAAO,EAAE,KAAK,wBAAwB,EAAE,MAAM,sCAAsC,CAAC;AAIrF,OAAO,EACH,KAAK,eAAe,EACpB,KAAK,aAAa,EAerB,MAAM,iCAAiC,CAAC;AAYzC,MAAM,WAAW,kCAAkC;IAC/C,UAAU,CAAC,EAAE,wBAAwB,CAAC;IACtC,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACzC,OAAO,CAAC,EAAE,kBAAkB,CAAC;IAC7B,UAAU,CAAC,EAAE,aAAa,CAAC;IAC3B,yFAAyF;IACzF,OAAO,CAAC,EAAE,kBAAkB,CAAC;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,eAAe,CAAC;IAC/B,UAAU,CAAC,EAAE,WAAW,CAAC;IACzB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACnC;;;;;;;;OAQG;IACH,2BAA2B,CAAC,EAAE,OAAO,CAAC;IACtC;;;;;;OAMG;IACH,mCAAmC,CAAC,EAAE,OAAO,CAAC;CACjD;AAkJD,wBAAgB,4BAA4B,CAAC,EACzC,UAAU,EACV,cAAc,EACd,OAAO,EACP,UAAU,EACV,OAAO,EACP,SAAS,EACT,YAAY,EACZ,UAAU,EACV,SAAS,EACT,QAAQ,EACR,2BAAkC,EAClC,mCAA2C,GAC9C,EAAE,kCAAkC,2CA6SpC"}
|
|
@@ -2,10 +2,11 @@ import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-run
|
|
|
2
2
|
// (C) 2026 GoodData Corporation
|
|
3
3
|
import { useState } from "react";
|
|
4
4
|
import cx from "classnames";
|
|
5
|
-
import {
|
|
5
|
+
import { set } from "lodash-es";
|
|
6
6
|
import { useIntl } from "react-intl";
|
|
7
7
|
import { isSemanticConditionalFormattingEnabled, } from "@gooddata/sdk-model";
|
|
8
8
|
import { Button, UiIconButton } from "@gooddata/sdk-ui-kit";
|
|
9
|
+
import { _cloneDeep } from "@gooddata/util";
|
|
9
10
|
import { conditionalFormattingMessages } from "../../../../locales.js";
|
|
10
11
|
import { ConfigSection } from "../ConfigSection.js";
|
|
11
12
|
import { ConditionalFormattingDialog } from "./ConditionalFormattingDialog.js";
|
|
@@ -132,7 +133,7 @@ export function ConditionalFormattingSection({ properties, propertiesMeta, insig
|
|
|
132
133
|
});
|
|
133
134
|
// Spread the existing config so version (and any future cross-stack fields) survive an edit.
|
|
134
135
|
const next = withSuppressedTargets({ ...config, enabled: enabledNext, rules: rulesNext }, prunedSuppressedTargets);
|
|
135
|
-
const cloned =
|
|
136
|
+
const cloned = _cloneDeep(properties ?? {});
|
|
136
137
|
set(cloned, "controls.conditionalFormatting", next);
|
|
137
138
|
pushData?.({ properties: cloned });
|
|
138
139
|
};
|
package/esm/internal/components/configurationControls/customTooltip/CustomTooltipSection.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CustomTooltipSection.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/configurationControls/customTooltip/CustomTooltipSection.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CustomTooltipSection.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/configurationControls/customTooltip/CustomTooltipSection.tsx"],"names":[],"mappings":"AAaA,OAAO,EAAE,KAAK,wBAAwB,EAAE,MAAM,sCAAsC,CAAC;AAarF,MAAM,WAAW,0BAA0B;IACvC,gBAAgB,EAAE,OAAO,CAAC;IAC1B,UAAU,CAAC,EAAE,wBAAwB,CAAC;IACtC,cAAc,CAAC,EAAE,GAAG,CAAC;IACrB,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,GAAG,KAAK,IAAI,CAAC;CAClC;AAED,wBAAgB,oBAAoB,CAAC,EACjC,gBAAwB,EACxB,UAAe,EACf,cAAmB,EACnB,QAAmB,GACtB,EAAE,0BAA0B,2CA2H5B"}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
// (C) 2026 GoodData Corporation
|
|
3
3
|
import { useEffect, useId, useRef, useState } from "react";
|
|
4
|
-
import {
|
|
4
|
+
import { set } from "lodash-es";
|
|
5
5
|
import { FormattedMessage, useIntl } from "react-intl";
|
|
6
6
|
import { useDebounce } from "@gooddata/sdk-ui";
|
|
7
7
|
import { UiIcon, UiLink } from "@gooddata/sdk-ui-kit";
|
|
8
|
+
import { _cloneDeep } from "@gooddata/util";
|
|
8
9
|
import { messages } from "../../../../locales.js";
|
|
9
10
|
import { customTooltipPlacementDropdownItems } from "../../../constants/dropdowns.js";
|
|
10
11
|
import { getTranslatedDropdownItems } from "../../../utils/translations.js";
|
|
@@ -31,7 +32,7 @@ export function CustomTooltipSection({ controlsDisabled = false, properties = {}
|
|
|
31
32
|
const latestContentRef = useRef(content);
|
|
32
33
|
const pushContent = (newContent) => {
|
|
33
34
|
lastPushedContentRef.current = newContent;
|
|
34
|
-
const clonedProperties =
|
|
35
|
+
const clonedProperties = _cloneDeep(properties);
|
|
35
36
|
set(clonedProperties, "controls.customTooltip.content", newContent);
|
|
36
37
|
pushData({ properties: clonedProperties });
|
|
37
38
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TotalSection.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/configurationControls/total/TotalSection.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TotalSection.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/configurationControls/total/TotalSection.tsx"],"names":[],"mappings":"AAUA,OAAO,EAAE,KAAK,wBAAwB,EAAE,MAAM,sCAAsC,CAAC;AAMrF,MAAM,WAAW,kBAAkB;IAC/B,gBAAgB,EAAE,OAAO,CAAC;IAC1B,UAAU,EAAE,wBAAwB,CAAC;IACrC,cAAc,EAAE,GAAG,CAAC;IACpB,QAAQ,EAAE,CAAC,IAAI,EAAE,GAAG,KAAK,GAAG,CAAC;CAChC;AAID,eAAO,MAAM,YAAY,oGAKtB,kBAAkB,6CAkDnB,CAAC"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
// (C) 2023-
|
|
2
|
+
// (C) 2023-2026 GoodData Corporation
|
|
3
3
|
import { memo, useEffect } from "react";
|
|
4
|
-
import {
|
|
4
|
+
import { set } from "lodash-es";
|
|
5
5
|
import { useIntl } from "react-intl";
|
|
6
|
+
import { _cloneDeep } from "@gooddata/util";
|
|
6
7
|
import { messages } from "../../../../locales.js";
|
|
7
8
|
import { isTotalSectionEnabled } from "../../../utils/propertiesHelper.js";
|
|
8
9
|
import { getTranslation } from "../../../utils/translations.js";
|
|
@@ -24,7 +25,7 @@ export const TotalSection = memo(function TotalSection({ controlsDisabled, prope
|
|
|
24
25
|
: messages["totalToggleTooltip"].id;
|
|
25
26
|
useEffect(() => {
|
|
26
27
|
if (isTotalEnabled && !totalColumnName) {
|
|
27
|
-
const cloneProperties =
|
|
28
|
+
const cloneProperties = _cloneDeep(properties);
|
|
28
29
|
set(cloneProperties, "controls.total.name", defaultTotalColumnName);
|
|
29
30
|
pushData({ properties: cloneProperties });
|
|
30
31
|
}
|
package/esm/internal/components/pluggableVisualizations/AbstractPluggableVisualization.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AbstractPluggableVisualization.d.ts","sourceRoot":"","sources":["../../../../src/internal/components/pluggableVisualizations/AbstractPluggableVisualization.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AbstractPluggableVisualization.d.ts","sourceRoot":"","sources":["../../../../src/internal/components/pluggableVisualizations/AbstractPluggableVisualization.tsx"],"names":[],"mappings":"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"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
// (C) 2019-2026 GoodData Corporation
|
|
2
|
-
import { cloneDeep } from "lodash-es";
|
|
3
2
|
import { insightHasDataDefined, insightProperties, } from "@gooddata/sdk-model";
|
|
4
3
|
import { DefaultLocale, UnexpectedSdkError, isClusteringNotReceived, isForecastNotReceived, isGoodDataSdkError, } from "@gooddata/sdk-ui";
|
|
5
|
-
import { _isEqual } from "@gooddata/util";
|
|
4
|
+
import { _cloneDeep, _isEqual } from "@gooddata/util";
|
|
6
5
|
import { EmptyAfmSdkError, isEmptyAfm, } from "../../interfaces/Visualization.js";
|
|
7
6
|
import { findDerivedBucketItem, hasDerivedBucketItems, isDerivedBucketItem, } from "../../utils/bucketHelper.js";
|
|
8
7
|
import { createInternalIntl } from "../../utils/internalIntlProvider.js";
|
|
@@ -185,7 +184,7 @@ export class AbstractPluggableVisualization {
|
|
|
185
184
|
if (!referencePoint.buckets) {
|
|
186
185
|
return Promise.resolve(referencePoint);
|
|
187
186
|
}
|
|
188
|
-
const newReferencePoint =
|
|
187
|
+
const newReferencePoint = _cloneDeep(referencePoint);
|
|
189
188
|
newReferencePoint.buckets = referencePoint.buckets.map((bucket) => {
|
|
190
189
|
return {
|
|
191
190
|
...bucket,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// (C) 2019-2026 GoodData Corporation
|
|
2
|
-
import {
|
|
2
|
+
import { set } from "lodash-es";
|
|
3
3
|
import { bucketIsEmpty, bucketsItems, insightBucket, insightBuckets, } from "@gooddata/sdk-model";
|
|
4
4
|
import { BucketNames, getIntersectionPartAfter, } from "@gooddata/sdk-ui";
|
|
5
|
-
import { shiftArrayRight } from "@gooddata/util";
|
|
5
|
+
import { _cloneDeep, shiftArrayRight } from "@gooddata/util";
|
|
6
6
|
import { AXIS } from "../../constants/axis.js";
|
|
7
7
|
import { ATTRIBUTE, BUCKETS, DATE } from "../../constants/bucket.js";
|
|
8
8
|
import { COLUMN_BAR_CHART_UICONFIG_WITH_MULTIPLE_DATES, MAX_CATEGORIES_COUNT, MAX_METRICS_COUNT, MAX_STACKS_COUNT, } from "../../constants/uiConfig.js";
|
|
@@ -21,7 +21,7 @@ export class PluggableColumnBarCharts extends PluggableBaseChart {
|
|
|
21
21
|
this.supportedPropertiesList = this.getSupportedPropertiesList();
|
|
22
22
|
}
|
|
23
23
|
getUiConfig() {
|
|
24
|
-
return
|
|
24
|
+
return _cloneDeep(COLUMN_BAR_CHART_UICONFIG_WITH_MULTIPLE_DATES);
|
|
25
25
|
}
|
|
26
26
|
getExtendedReferencePoint(referencePoint) {
|
|
27
27
|
// reset the list to retrieve full 'referencePoint.properties.controls'
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
// (C) 2019-2026 GoodData Corporation
|
|
3
|
-
import {
|
|
3
|
+
import { set } from "lodash-es";
|
|
4
4
|
import { bucketsItems, insightBucket, insightBuckets, newAttributeSort, } from "@gooddata/sdk-model";
|
|
5
5
|
import { BucketNames, VisualizationTypes } from "@gooddata/sdk-ui";
|
|
6
|
-
import { _isEmpty } from "@gooddata/util";
|
|
6
|
+
import { _cloneDeep, _isEmpty } from "@gooddata/util";
|
|
7
7
|
import { ATTRIBUTE, BUCKETS, DATE } from "../../../constants/bucket.js";
|
|
8
8
|
import { AREA_CHART_SUPPORTED_PROPERTIES, OPTIONAL_STACKING_PROPERTIES, } from "../../../constants/supportedProperties.js";
|
|
9
9
|
import { AREA_UICONFIG_WITH_MULTIPLE_DATES, MAX_CATEGORIES_COUNT, MAX_METRICS_COUNT, } from "../../../constants/uiConfig.js";
|
|
@@ -61,10 +61,10 @@ export class PluggableAreaChart extends PluggableBaseChart {
|
|
|
61
61
|
this.initializeProperties(props.visualizationProperties);
|
|
62
62
|
}
|
|
63
63
|
getUiConfig() {
|
|
64
|
-
return
|
|
64
|
+
return _cloneDeep(AREA_UICONFIG_WITH_MULTIPLE_DATES);
|
|
65
65
|
}
|
|
66
66
|
getExtendedReferencePoint(referencePoint) {
|
|
67
|
-
const clonedReferencePoint =
|
|
67
|
+
const clonedReferencePoint = _cloneDeep(referencePoint);
|
|
68
68
|
let newReferencePoint = {
|
|
69
69
|
...clonedReferencePoint,
|
|
70
70
|
uiConfig: this.getUiConfig(),
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
// (C) 2019-2026 GoodData Corporation
|
|
3
|
-
import {
|
|
3
|
+
import { compact, omitBy, set, tail } from "lodash-es";
|
|
4
4
|
import { insightHasMeasures, } from "@gooddata/sdk-model";
|
|
5
5
|
import { BucketNames, VisualizationTypes } from "@gooddata/sdk-ui";
|
|
6
6
|
import { BaseChart, ColorUtils, updateConfigWithSettings, updateForecastWithSettings, updateOutliersWithSettings, } from "@gooddata/sdk-ui-charts";
|
|
7
7
|
import { buildTooltipExecutionFromConfig } from "@gooddata/sdk-ui-vis-commons";
|
|
8
|
-
import { _isEmpty } from "@gooddata/util";
|
|
8
|
+
import { _cloneDeep, _isEmpty } from "@gooddata/util";
|
|
9
9
|
import { messages } from "../../../../locales.js";
|
|
10
10
|
import { BUCKETS } from "../../../constants/bucket.js";
|
|
11
11
|
import { DASHBOARDS_ENVIRONMENT } from "../../../constants/properties.js";
|
|
@@ -58,10 +58,10 @@ export class PluggableBaseChart extends AbstractPluggableVisualization {
|
|
|
58
58
|
this.unmountFun([this.getElement(), this.getConfigPanelElement()].filter(Boolean));
|
|
59
59
|
}
|
|
60
60
|
getUiConfig() {
|
|
61
|
-
return
|
|
61
|
+
return _cloneDeep(DEFAULT_BASE_CHART_UICONFIG);
|
|
62
62
|
}
|
|
63
63
|
getExtendedReferencePoint(referencePoint) {
|
|
64
|
-
const clonedReferencePoint =
|
|
64
|
+
const clonedReferencePoint = _cloneDeep(referencePoint);
|
|
65
65
|
const uiConfig = this.getUiConfig();
|
|
66
66
|
let newReferencePoint = {
|
|
67
67
|
...clonedReferencePoint,
|
package/esm/internal/components/pluggableVisualizations/bubbleChart/PluggableBubbleChart.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PluggableBubbleChart.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/pluggableVisualizations/bubbleChart/PluggableBubbleChart.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"PluggableBubbleChart.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/pluggableVisualizations/bubbleChart/PluggableBubbleChart.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAO9D,OAAO,EACH,KAAK,uBAAuB,EAC5B,KAAK,eAAe,EACpB,KAAK,aAAa,EAClB,KAAK,SAAS,EACjB,MAAM,sCAAsC,CAAC;AAe9C,OAAO,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,CAAC;AAExE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,qBAAa,oBAAqB,SAAQ,kBAAkB;IACxD,YAAY,KAAK,EAAE,aAAa,EAK/B;IAEe,yBAAyB,CACrC,cAAc,EAAE,eAAe,GAChC,OAAO,CAAC,uBAAuB,CAAC,CAqFlC;IAED,UAAmB,wBAAwB,CAAC,OAAO,EAAE,kBAAkB,EAAE,OAAO,EAAE,SAAS,GAAG,IAAI,CA8BjG;CACJ"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
// (C) 2019-2026 GoodData Corporation
|
|
3
|
-
import {
|
|
3
|
+
import { set } from "lodash-es";
|
|
4
4
|
import { BucketNames, VisualizationTypes } from "@gooddata/sdk-ui";
|
|
5
|
+
import { _cloneDeep } from "@gooddata/util";
|
|
5
6
|
import { BUCKETS, METRIC } from "../../../constants/bucket.js";
|
|
6
7
|
import { BUBBLE_CHART_SUPPORTED_PROPERTIES } from "../../../constants/supportedProperties.js";
|
|
7
8
|
import { DEFAULT_BUBBLE_CHART_CONFIG } from "../../../constants/uiConfig.js";
|
|
@@ -50,8 +51,8 @@ export class PluggableBubbleChart extends PluggableBaseChart {
|
|
|
50
51
|
this.initializeProperties(props.visualizationProperties);
|
|
51
52
|
}
|
|
52
53
|
getExtendedReferencePoint(referencePoint) {
|
|
53
|
-
const clonedReferencePoint =
|
|
54
|
-
const uiConfig =
|
|
54
|
+
const clonedReferencePoint = _cloneDeep(referencePoint);
|
|
55
|
+
const uiConfig = _cloneDeep(DEFAULT_BUBBLE_CHART_CONFIG);
|
|
55
56
|
let newReferencePoint = {
|
|
56
57
|
...clonedReferencePoint,
|
|
57
58
|
uiConfig,
|
package/esm/internal/components/pluggableVisualizations/bulletChart/PluggableBulletChart.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PluggableBulletChart.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/pluggableVisualizations/bulletChart/PluggableBulletChart.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"PluggableBulletChart.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/pluggableVisualizations/bulletChart/PluggableBulletChart.tsx"],"names":[],"mappings":"AAEA,OAAO,EACH,KAAK,QAAQ,EACb,KAAK,kBAAkB,EAI1B,MAAM,qBAAqB,CAAC;AAY7B,OAAO,EAAE,KAAK,WAAW,EAA0B,MAAM,mCAAmC,CAAC;AAC7F,OAAO,EACH,KAAK,WAAW,EAChB,KAAK,YAAY,EACjB,KAAK,iBAAiB,EAEtB,KAAK,uBAAuB,EAC5B,KAAK,eAAe,EACpB,KAAK,SAAS,EACd,KAAK,aAAa,EAClB,KAAK,SAAS,EAEjB,MAAM,sCAAsC,CAAC;AAiB9C,OAAO,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,CAAC;AAKxE;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,qBAAa,oBAAqB,SAAQ,kBAAkB;IACxD,YAAY,KAAK,EAAE,aAAa,EAM/B;IAEe,WAAW,IAAI,SAAS,CAEvC;IAEe,yBAAyB,CACrC,cAAc,EAAE,eAAe,GAChC,OAAO,CAAC,uBAAuB,CAAC,CA8BlC;IAED,OAAO,CAAC,mBAAmB;IAYX,8BAA8B,CAC1C,MAAM,EAAE,QAAQ,EAChB,gBAAgB,EAAE,iBAAiB,EACnC,0BAA0B,EAAE,OAAO,GACpC,QAAQ,CAQV;IAED,UAAmB,wBAAwB,CAAC,OAAO,EAAE,kBAAkB,EAAE,OAAO,EAAE,SAAS,GAAG,IAAI,CA+BjG;IAED,UAAmB,uBAAuB,CACtC,cAAc,EAAE,eAAe,EAC/B,MAAM,EAAE,YAAY,EACpB,qBAAqB,EAAE,WAAW,EAAE,GACrC,WAAW,EAAE,CAgBf;IAED,UAAmB,iBAAiB,CAAC,OAAO,EAAE,kBAAkB,GAAG,OAAO,CAYzE;IAED,OAAO,CAAC,cAAc;IAWtB,OAAO,CAAC,0BAA0B;IAiDlB,aAAa,CAAC,cAAc,EAAE,eAAe,GAAG,OAAO,CAAC,WAAW,CAAC,CAiBnF;CACJ"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
// (C) 2019-2026 GoodData Corporation
|
|
3
|
-
import { cloneDeep } from "lodash-es";
|
|
4
3
|
import { bucketIsEmpty, insightBucket, newAttributeSort, } from "@gooddata/sdk-model";
|
|
5
4
|
import { BucketNames, VisualizationTypes, getIntersectionPartAfter, } from "@gooddata/sdk-ui";
|
|
5
|
+
import { _cloneDeep } from "@gooddata/util";
|
|
6
6
|
import { BUCKETS, METRIC } from "../../../constants/bucket.js";
|
|
7
7
|
import { BULLET_CHART_SUPPORTED_PROPERTIES } from "../../../constants/supportedProperties.js";
|
|
8
8
|
import { BULLET_CHART_CONFIG_MULTIPLE_DATES } from "../../../constants/uiConfig.js";
|
|
@@ -55,10 +55,10 @@ export class PluggableBulletChart extends PluggableBaseChart {
|
|
|
55
55
|
this.initializeProperties(props.visualizationProperties);
|
|
56
56
|
}
|
|
57
57
|
getUiConfig() {
|
|
58
|
-
return
|
|
58
|
+
return _cloneDeep(BULLET_CHART_CONFIG_MULTIPLE_DATES);
|
|
59
59
|
}
|
|
60
60
|
getExtendedReferencePoint(referencePoint) {
|
|
61
|
-
const clonedReferencePoint =
|
|
61
|
+
const clonedReferencePoint = _cloneDeep(referencePoint);
|
|
62
62
|
let newReferencePoint = {
|
|
63
63
|
...clonedReferencePoint,
|
|
64
64
|
uiConfig: this.getUiConfig(),
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
// (C) 2019-2026 GoodData Corporation
|
|
3
|
-
import {
|
|
3
|
+
import { set } from "lodash-es";
|
|
4
4
|
import { bucketsIsEmpty, insightBucket, insightBuckets, newAttributeSort, } from "@gooddata/sdk-model";
|
|
5
5
|
import { BucketNames, VisualizationTypes } from "@gooddata/sdk-ui";
|
|
6
6
|
import { isAreaChart, isLineChart } from "@gooddata/sdk-ui-charts";
|
|
7
|
-
import { _isEmpty } from "@gooddata/util";
|
|
7
|
+
import { _cloneDeep, _isEmpty } from "@gooddata/util";
|
|
8
8
|
import { AXIS, AXIS_NAME } from "../../../constants/axis.js";
|
|
9
9
|
import { BUCKETS, METRIC } from "../../../constants/bucket.js";
|
|
10
10
|
import { PROPERTY_CONTROLS_DUAL_AXIS } from "../../../constants/properties.js";
|
|
@@ -69,7 +69,7 @@ export class PluggableComboChart extends PluggableBaseChart {
|
|
|
69
69
|
return COMBO_CHART_SUPPORTED_PROPERTIES[this.axis] || [];
|
|
70
70
|
}
|
|
71
71
|
getUiConfig() {
|
|
72
|
-
const config =
|
|
72
|
+
const config = _cloneDeep({
|
|
73
73
|
...COMBO_CHART_UICONFIG,
|
|
74
74
|
optionalStacking: {
|
|
75
75
|
supported: true,
|
|
@@ -80,7 +80,7 @@ export class PluggableComboChart extends PluggableBaseChart {
|
|
|
80
80
|
return config;
|
|
81
81
|
}
|
|
82
82
|
getExtendedReferencePoint(referencePoint) {
|
|
83
|
-
const clonedReferencePoint =
|
|
83
|
+
const clonedReferencePoint = _cloneDeep(referencePoint);
|
|
84
84
|
const properties = this.configureChartTypes(clonedReferencePoint);
|
|
85
85
|
this.primaryChartType = properties?.controls?.["primaryChartType"] ?? VisualizationTypes.COLUMN;
|
|
86
86
|
this.secondaryChartType = properties?.controls?.["secondaryChartType"] ?? VisualizationTypes.COLUMN;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PluggableComboChartDeprecated.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/pluggableVisualizations/comboChart/PluggableComboChartDeprecated.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"PluggableComboChartDeprecated.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/pluggableVisualizations/comboChart/PluggableComboChartDeprecated.tsx"],"names":[],"mappings":"AASA,OAAO,EAEH,KAAK,uBAAuB,EAC5B,KAAK,eAAe,EACpB,KAAK,aAAa,EACrB,MAAM,sCAAsC,CAAC;AAe9C,OAAO,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,CAAC;AAExE,qBAAa,6BAA8B,SAAQ,kBAAkB;IACjE,YAAY,KAAK,EAAE,aAAa,EAM/B;IAEe,yBAAyB,CACrC,cAAc,EAAE,eAAe,GAChC,OAAO,CAAC,uBAAuB,CAAC,CAwDlC;IAED,UAAmB,wBAAwB,IAAI,IAAI,CAgBlD;CACJ"}
|
package/esm/internal/components/pluggableVisualizations/comboChart/PluggableComboChartDeprecated.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
// (C) 2019-2026 GoodData Corporation
|
|
3
|
-
import {
|
|
3
|
+
import { set, without } from "lodash-es";
|
|
4
4
|
import { BucketNames, VisualizationTypes } from "@gooddata/sdk-ui";
|
|
5
|
+
import { _cloneDeep } from "@gooddata/util";
|
|
5
6
|
import { BUCKETS, METRIC } from "../../../constants/bucket.js";
|
|
6
7
|
import { COMBO_CHART_UICONFIG_DEPRECATED } from "../../../constants/uiConfig.js";
|
|
7
8
|
import { configureOverTimeComparison, configurePercent } from "../../../utils/bucketConfig.js";
|
|
@@ -18,10 +19,10 @@ export class PluggableComboChartDeprecated extends PluggableBaseChart {
|
|
|
18
19
|
this.initializeProperties(props.visualizationProperties);
|
|
19
20
|
}
|
|
20
21
|
getExtendedReferencePoint(referencePoint) {
|
|
21
|
-
const clonedReferencePoint =
|
|
22
|
+
const clonedReferencePoint = _cloneDeep(referencePoint);
|
|
22
23
|
let newReferencePoint = {
|
|
23
24
|
...clonedReferencePoint,
|
|
24
|
-
uiConfig:
|
|
25
|
+
uiConfig: _cloneDeep(COMBO_CHART_UICONFIG_DEPRECATED),
|
|
25
26
|
};
|
|
26
27
|
const buckets = clonedReferencePoint?.buckets ?? [];
|
|
27
28
|
const attributes = getAllAttributeItemsWithPreference(buckets, [
|
package/esm/internal/components/pluggableVisualizations/geoAreaChart/PluggableGeoAreaChart.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PluggableGeoAreaChart.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/pluggableVisualizations/geoAreaChart/PluggableGeoAreaChart.tsx"],"names":[],"mappings":"AAIA,OAAO,EAEH,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,EAC1B,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAEH,KAAK,kBAAkB,EAM1B,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"PluggableGeoAreaChart.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/pluggableVisualizations/geoAreaChart/PluggableGeoAreaChart.tsx"],"names":[],"mappings":"AAIA,OAAO,EAEH,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,EAC1B,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAEH,KAAK,kBAAkB,EAM1B,MAAM,qBAAqB,CAAC;AAiB7B,OAAO,EAEH,KAAK,uBAAuB,EAC5B,KAAK,eAAe,EACpB,KAAK,SAAS,EACd,KAAK,aAAa,EAClB,KAAK,SAAS,EAEjB,MAAM,sCAAsC,CAAC;AAQ9C,OAAO,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,CAAC;AAiCxE;;;;;;GAMG;AACH,qBAAa,qBAAsB,SAAQ,kBAAkB;IACzD,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAqB;IAC7C,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAS;IACnC,OAAO,CAAC,QAAQ,CAAC,WAAW,CAA4B;IACxD,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAAwB;IAE3D,YAAY,KAAK,EAAE,aAAa,EAQ/B;IAID,OAAO,CAAC,wBAAwB;IAMhC;;OAEG;IACa,yBAAyB,CACrC,cAAc,EAAE,eAAe,GAChC,OAAO,CAAC,uBAAuB,CAAC,CAyBlC;IAEe,WAAW,IAAI,SAAS,CAEvC;IAED,UAAmB,0BAA0B,IAAI,MAAM,EAAE,CAExD;IAED;;OAEG;IACH,UAAmB,gBAAgB,CAC/B,sBAAsB,EAAE,uBAAuB,GAChD,uBAAuB,CAkBzB;IAED;;OAEG;IACH,UAAmB,iBAAiB,CAAC,OAAO,EAAE,kBAAkB,GAAG,OAAO,CAWzE;IAED;;;;;;;OAOG;IACa,YAAY,CACxB,OAAO,EAAE,SAAS,EAClB,OAAO,EAAE,kBAAkB,EAC3B,gBAAgB,EAAE,iBAAiB,GACpC,kBAAkB,CAqBpB;IAEe,aAAa,CACzB,OAAO,EAAE,SAAS,EAClB,OAAO,EAAE,kBAAkB,EAC3B,gBAAgB,EAAE,iBAAiB,GACpC,kBAAkB,EAAE,CAqBtB;IAED,UAAmB,wBAAwB,CAAC,OAAO,EAAE,kBAAkB,EAAE,OAAO,EAAE,SAAS,GAAG,IAAI,CAgDjG;IAED;;OAEG;IACH,OAAO,CAAC,+BAA+B;IAevC,OAAO,CAAC,oBAAoB;IAe5B,UAAmB,mBAAmB,CAClC,OAAO,EAAE,SAAS,EAClB,OAAO,EAAE,kBAAkB,EAC3B,gBAAgB,EAAE,iBAAiB,GACpC,IAAI,CA0CN;IAED,OAAO,CAAC,wBAAwB;IAiDhC,OAAO,CAAC,8BAA8B;IAItC,OAAO,CAAC,8BAA8B;IAyBtC,OAAO,CAAC,eAAe;IASvB,OAAO,CAAC,cAAc,CAOnB;IAEH,OAAO,CAAC,2BAA2B,CAAmD;IACtF,OAAO,CAAC,iBAAiB,CAAyC;IAClE,OAAO,CAAC,mBAAmB,CAA2C;IACtE,OAAO,CAAC,8BAA8B,CAAsD;IAC5F,OAAO,CAAC,iBAAiB,CAA0E;CACtG"}
|
package/esm/internal/components/pluggableVisualizations/geoAreaChart/PluggableGeoAreaChart.js
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
// (C) 2025-2026 GoodData Corporation
|
|
3
|
-
import {
|
|
3
|
+
import { set } from "lodash-es";
|
|
4
4
|
import { insightBuckets, insightFilters, insightHasDataDefined, insightLayers, insightTitle, } from "@gooddata/sdk-model";
|
|
5
5
|
import { GeoAreaMissingSdkError, VisualizationTypes } from "@gooddata/sdk-ui";
|
|
6
6
|
import { isGeoLayerPushpin } from "@gooddata/sdk-ui-geo";
|
|
7
7
|
import { AREA_LAYER_ID, GeoChartInternal, buildLayerExecution, insightLayerToGeoLayer, insightLayersToGeoLayers, } from "@gooddata/sdk-ui-geo/internal";
|
|
8
|
+
import { _cloneDeep } from "@gooddata/util";
|
|
8
9
|
import { BUCKETS } from "../../../constants/bucket.js";
|
|
9
10
|
import { isGeoChartsViewportConfigEnabled } from "../../../constants/featureFlags.js";
|
|
10
11
|
import { sanitizeGeoMapStyleOptions } from "../../../constants/geoMapStyle.js";
|
|
@@ -67,7 +68,7 @@ export class PluggableGeoAreaChart extends PluggableBaseChart {
|
|
|
67
68
|
// The generic sanitizeFilters() (in PluggableBaseChart) does not know about additional layers and can
|
|
68
69
|
// incorrectly drop MVFs that are meant for non-root layers (e.g., pushpin layer MVFs).
|
|
69
70
|
// We keep the original filter bucket intact here and rely on per-layer execution sanitization instead.
|
|
70
|
-
const originalFilters =
|
|
71
|
+
const originalFilters = _cloneDeep(referencePoint.filters);
|
|
71
72
|
return super
|
|
72
73
|
.getExtendedReferencePoint(referencePoint)
|
|
73
74
|
.then((extendedReferencePoint) => {
|
|
@@ -80,7 +81,7 @@ export class PluggableGeoAreaChart extends PluggableBaseChart {
|
|
|
80
81
|
});
|
|
81
82
|
}
|
|
82
83
|
getUiConfig() {
|
|
83
|
-
return
|
|
84
|
+
return _cloneDeep(GEO_AREA_CHART_UICONFIG);
|
|
84
85
|
}
|
|
85
86
|
getSupportedPropertiesList() {
|
|
86
87
|
return GEOAREA_SUPPORTED_PROPERTIES;
|
package/esm/internal/components/pluggableVisualizations/geoChart/PluggableGeoPushpinChart.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
// (C) 2019-2026 GoodData Corporation
|
|
3
|
-
import {
|
|
3
|
+
import { set } from "lodash-es";
|
|
4
4
|
import { attributeAlias, attributeDisplayFormRef, attributeLocalId, bucketAttribute, idRef, insightBucket, insightBuckets, insightFilters, insightHasDataDefined, isUriRef, newAttribute, newAttributeSort, newBucket, uriRef, } from "@gooddata/sdk-model";
|
|
5
5
|
import { BucketNames, VisualizationTypes } from "@gooddata/sdk-ui";
|
|
6
6
|
import { CoreGeoChart, getGeoChartDimensions, } from "@gooddata/sdk-ui-geo";
|
|
7
|
-
import { _isEmpty } from "@gooddata/util";
|
|
7
|
+
import { _cloneDeep, _isEmpty } from "@gooddata/util";
|
|
8
8
|
import { ATTRIBUTE, BUCKETS, METRIC } from "../../../constants/bucket.js";
|
|
9
9
|
import { sanitizeGeoMapStyleOptions } from "../../../constants/geoMapStyle.js";
|
|
10
10
|
import { ANALYTICAL_ENVIRONMENT, DASHBOARDS_ENVIRONMENT } from "../../../constants/properties.js";
|
|
@@ -87,7 +87,7 @@ export class PluggableGeoPushpinChart extends PluggableBaseChart {
|
|
|
87
87
|
});
|
|
88
88
|
}
|
|
89
89
|
getUiConfig() {
|
|
90
|
-
return
|
|
90
|
+
return _cloneDeep(GEO_PUSHPIN_CHART_UICONFIG);
|
|
91
91
|
}
|
|
92
92
|
getExecution(options, insight, executionFactory) {
|
|
93
93
|
const { executionConfig } = options;
|
|
@@ -283,7 +283,7 @@ export class PluggableGeoPushpinChart extends PluggableBaseChart {
|
|
|
283
283
|
if (!locationItem) {
|
|
284
284
|
return referencePoint;
|
|
285
285
|
}
|
|
286
|
-
const referencePointConfigured =
|
|
286
|
+
const referencePointConfigured = _cloneDeep(referencePoint);
|
|
287
287
|
const visualizationProperties = this.visualizationProperties || {};
|
|
288
288
|
const { controls = {} } = visualizationProperties;
|
|
289
289
|
const hasSizeMeasure = getItemsCount(buckets, BucketNames.SIZE) > 0;
|