@gooddata/sdk-ui-ext 11.68.0-alpha.6 → 11.68.0-alpha.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/NOTICE +172 -137
- package/esm/internal/components/attributeHierarchies/attributeHierarchyDialog/utils.d.ts.map +1 -1
- package/esm/internal/components/attributeHierarchies/attributeHierarchyDialog/utils.js +2 -2
- package/esm/internal/components/configurationControls/CheckboxControl.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/CheckboxControl.js +3 -2
- package/esm/internal/components/configurationControls/ConfigSection.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/ConfigSection.js +3 -2
- package/esm/internal/components/configurationControls/ConfigSubsection.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/ConfigSubsection.js +3 -2
- package/esm/internal/components/configurationControls/ContinuousLineControl.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/ContinuousLineControl.js +3 -2
- package/esm/internal/components/configurationControls/DistintcPointShapesControl.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/DistintcPointShapesControl.js +3 -2
- package/esm/internal/components/configurationControls/DropdownControl.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/DropdownControl.js +3 -2
- package/esm/internal/components/configurationControls/GeoViewportControl.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/GeoViewportControl.js +3 -2
- package/esm/internal/components/configurationControls/InputControl.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/InputControl.js +4 -3
- package/esm/internal/components/configurationControls/LineShapeControl.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/LineShapeControl.js +3 -2
- package/esm/internal/components/configurationControls/PagingSection.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/PagingSection.js +4 -3
- package/esm/internal/components/configurationControls/PivotTableTextWrappingControl.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/PivotTableTextWrappingControl.js +3 -3
- package/esm/internal/components/configurationControls/PushpinShapeControl.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/PushpinShapeControl.js +4 -3
- package/esm/internal/components/configurationControls/advanced/AdvancedSection.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/advanced/AdvancedSection.js +3 -2
- package/esm/internal/components/configurationControls/colors/ColorsSection.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/colors/ColorsSection.js +3 -2
- package/esm/internal/components/configurationControls/comparison/indicators/colorsControl/ColorCheckbox.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/comparison/indicators/colorsControl/ColorCheckbox.js +4 -3
- package/esm/internal/components/configurationControls/comparison/indicators/colorsControl/ColorItem.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/comparison/indicators/colorsControl/ColorItem.js +3 -2
- package/esm/internal/components/configurationControls/comparison/indicators/colorsControl/ColorResetButton.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/comparison/indicators/colorsControl/ColorResetButton.js +4 -3
- package/esm/internal/components/configurationControls/comparison/values/numberFormat/NumberFormatControl.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/comparison/values/numberFormat/NumberFormatControl.js +3 -2
- package/esm/internal/components/configurationControls/conditionalFormatting/ConditionalFormattingSection.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/conditionalFormatting/ConditionalFormattingSection.js +3 -2
- package/esm/internal/components/configurationControls/customTooltip/CustomTooltipSection.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/customTooltip/CustomTooltipSection.js +3 -2
- package/esm/internal/components/configurationControls/total/TotalSection.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/total/TotalSection.js +4 -3
- package/esm/internal/components/pluggableVisualizations/AbstractPluggableVisualization.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/AbstractPluggableVisualization.js +2 -3
- package/esm/internal/components/pluggableVisualizations/PluggableColumnBarCharts.js +3 -3
- package/esm/internal/components/pluggableVisualizations/areaChart/PluggableAreaChart.js +4 -4
- package/esm/internal/components/pluggableVisualizations/baseChart/PluggableBaseChart.js +5 -5
- package/esm/internal/components/pluggableVisualizations/bubbleChart/PluggableBubbleChart.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/bubbleChart/PluggableBubbleChart.js +4 -3
- package/esm/internal/components/pluggableVisualizations/bulletChart/PluggableBulletChart.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/bulletChart/PluggableBulletChart.js +3 -3
- package/esm/internal/components/pluggableVisualizations/comboChart/PluggableComboChart.js +4 -4
- package/esm/internal/components/pluggableVisualizations/comboChart/PluggableComboChartDeprecated.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/comboChart/PluggableComboChartDeprecated.js +4 -3
- package/esm/internal/components/pluggableVisualizations/geoAreaChart/PluggableGeoAreaChart.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/geoAreaChart/PluggableGeoAreaChart.js +4 -3
- package/esm/internal/components/pluggableVisualizations/geoChart/PluggableGeoPushpinChart.js +4 -4
- package/esm/internal/components/pluggableVisualizations/geoChartNext/PluggableGeoPushpinChartNext.js +10 -10
- package/esm/internal/components/pluggableVisualizations/geoCommon/geoPropertySanitization.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/geoCommon/geoPropertySanitization.js +4 -3
- package/esm/internal/components/pluggableVisualizations/headline/PluggableHeadline.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/headline/PluggableHeadline.js +2 -3
- package/esm/internal/components/pluggableVisualizations/headline/headlineBucketHelper.js +3 -3
- package/esm/internal/components/pluggableVisualizations/heatMap/PluggableHeatmap.js +4 -4
- package/esm/internal/components/pluggableVisualizations/lineChart/PluggableLineChart.js +4 -4
- package/esm/internal/components/pluggableVisualizations/mekko/PluggableMekko.js +4 -4
- package/esm/internal/components/pluggableVisualizations/pieChart/PluggablePieChart.js +6 -6
- package/esm/internal/components/pluggableVisualizations/pivotTable/PluggablePivotTable.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/pivotTable/PluggablePivotTable.js +2 -3
- package/esm/internal/components/pluggableVisualizations/pivotTableNext/PluggablePivotTableNext.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/pivotTableNext/PluggablePivotTableNext.js +2 -4
- package/esm/internal/components/pluggableVisualizations/radarChart/PluggableRadarChart.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/radarChart/PluggableRadarChart.js +4 -3
- package/esm/internal/components/pluggableVisualizations/repeater/PluggableRepeater.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/repeater/PluggableRepeater.js +6 -5
- package/esm/internal/components/pluggableVisualizations/sankeyChart/PluggableSankeyChart.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/sankeyChart/PluggableSankeyChart.js +3 -4
- package/esm/internal/components/pluggableVisualizations/scatterPlot/PluggableScatterPlot.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/scatterPlot/PluggableScatterPlot.js +4 -3
- package/esm/internal/components/pluggableVisualizations/treeMap/PluggableTreemap.js +3 -3
- package/esm/internal/components/pluggableVisualizations/waterfallChart/PluggableWaterfallChart.js +6 -6
- package/esm/internal/components/pluggableVisualizations/xirr/PluggableXirr.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/xirr/PluggableXirr.js +2 -3
- package/esm/internal/utils/bucketConfig.js +4 -4
- package/esm/internal/utils/bucketHelper.js +7 -7
- package/esm/internal/utils/colors.js +7 -7
- package/esm/internal/utils/dimensions.d.ts.map +1 -1
- package/esm/internal/utils/dimensions.js +4 -4
- package/esm/internal/utils/embeddingCodeGenerator/getReactEmbeddingCodeGenerator.js +5 -5
- package/esm/internal/utils/propertiesHelper.js +6 -6
- package/esm/internal/utils/removeUseless.d.ts.map +1 -1
- package/esm/internal/utils/removeUseless.js +2 -3
- package/esm/internal/utils/uiConfigHelpers/areaChartUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/areaChartUiConfigHelper.js +3 -2
- package/esm/internal/utils/uiConfigHelpers/baseChartUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/baseChartUiConfigHelper.js +5 -4
- package/esm/internal/utils/uiConfigHelpers/bubbleChartUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/bubbleChartUiConfigHelper.js +4 -3
- package/esm/internal/utils/uiConfigHelpers/bulletChartUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/bulletChartUiConfigHelper.js +2 -2
- package/esm/internal/utils/uiConfigHelpers/columnBarChartUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/columnBarChartUiConfigHelper.js +4 -3
- package/esm/internal/utils/uiConfigHelpers/comboChartUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/comboChartUiConfigHelper.js +4 -3
- package/esm/internal/utils/uiConfigHelpers/comboChartUiConfigHelperDeprecated.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/comboChartUiConfigHelperDeprecated.js +4 -3
- package/esm/internal/utils/uiConfigHelpers/dependencyWheelChartUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/dependencyWheelChartUiConfigHelper.js +4 -3
- package/esm/internal/utils/uiConfigHelpers/donutChartUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/donutChartUiConfigHelper.js +4 -3
- package/esm/internal/utils/uiConfigHelpers/funnelChartUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/funnelChartUiConfigHelper.js +4 -3
- package/esm/internal/utils/uiConfigHelpers/geoPushpinChartUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/geoPushpinChartUiConfigHelper.js +3 -2
- package/esm/internal/utils/uiConfigHelpers/headlineUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/headlineUiConfigHelper.js +3 -2
- package/esm/internal/utils/uiConfigHelpers/heatmapUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/heatmapUiConfigHelper.js +4 -3
- package/esm/internal/utils/uiConfigHelpers/lineChartUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/lineChartUiConfigHelper.js +4 -3
- package/esm/internal/utils/uiConfigHelpers/mekkoUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/mekkoUiConfigHelper.js +3 -2
- package/esm/internal/utils/uiConfigHelpers/pieChartUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/pieChartUiConfigHelper.js +5 -4
- package/esm/internal/utils/uiConfigHelpers/pivotTableNextUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/pivotTableNextUiConfigHelper.js +3 -2
- package/esm/internal/utils/uiConfigHelpers/pivotTableUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/pivotTableUiConfigHelper.js +3 -2
- package/esm/internal/utils/uiConfigHelpers/pyramidChartUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/pyramidChartUiConfigHelper.js +4 -3
- package/esm/internal/utils/uiConfigHelpers/radarChartUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/radarChartUiConfigHelper.js +4 -3
- package/esm/internal/utils/uiConfigHelpers/repeaterUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/repeaterUiConfigHelper.js +7 -6
- package/esm/internal/utils/uiConfigHelpers/sankeyChartUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/sankeyChartUiConfigHelper.js +6 -5
- package/esm/internal/utils/uiConfigHelpers/scatterPlotUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/scatterPlotUiConfigHelper.js +4 -3
- package/esm/internal/utils/uiConfigHelpers/treemapUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/treemapUiConfigHelper.js +4 -3
- package/esm/internal/utils/uiConfigHelpers/waterfallChartUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/waterfallChartUiConfigHelper.js +4 -3
- package/esm/internal/utils/uiConfigHelpers/xirrUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/xirrUiConfigHelper.js +4 -3
- package/esm/notificationsPanel/Notification/Notification.d.ts.map +1 -1
- package/esm/notificationsPanel/Notification/Notification.js +4 -4
- package/package.json +21 -21
package/esm/internal/components/attributeHierarchies/attributeHierarchyDialog/utils.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/attributeHierarchies/attributeHierarchyDialog/utils.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/attributeHierarchies/attributeHierarchyDialog/utils.ts"],"names":[],"mappings":"AAEA,OAAO,EACH,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,EACxB,KAAK,MAAM,EAEd,MAAM,qBAAqB,CAAC;AAG7B,OAAO,EAA4B,KAAK,cAAc,EAAE,KAAK,qBAAqB,EAAE,MAAM,YAAY,CAAC;AAEvG,eAAO,MAAM,yBAAyB,yBACZ,GAAG,CAAC,MAAM,EAAE,qBAAqB,CAAC,OACnD,MAAM,KACZ,qBAAqB,GAAG,SAE1B,CAAC;AAEF,eAAO,MAAM,6BAA6B,eAC1B,iBAAiB,EAAE,SACxB,mBAAmB,EAAE,KAC7B,GAAG,CAAC,MAAM,EAAE,qBAAqB,CAqBnC,CAAC;AAEF,eAAO,MAAM,mCAAmC,yBACtB,GAAG,CAAC,MAAM,EAAE,qBAAqB,CAAC,QAClD,MAAM,EAAE,KACf,qBAAqB,EAEvB,CAAC;AAEF,eAAO,MAAM,oBAAoB,eAAgB,cAAc,EAAE,gBAAgB,MAAM,qBAStF,CAAC;AAEF,eAAO,MAAM,gBAAgB,eACb,qBAAqB,EAAE,eACtB,MAAM,gBACL,MAAM,4BAKvB,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// (C) 2023-2026 GoodData Corporation
|
|
2
|
-
import { compact } from "lodash-es";
|
|
3
2
|
import { serializeObjRef, } from "@gooddata/sdk-model";
|
|
3
|
+
import { _compact } from "@gooddata/util";
|
|
4
4
|
import { CatalogAttributeDataType } from "./types.js";
|
|
5
5
|
export const findCatalogAttributeByRef = (catalogAttributesMap, ref) => {
|
|
6
6
|
return catalogAttributesMap.get(getCatalogKey(ref));
|
|
@@ -26,7 +26,7 @@ export const convertToCatalogAttributeData = (attributes, dates) => {
|
|
|
26
26
|
}, new Map());
|
|
27
27
|
};
|
|
28
28
|
export const convertToCatalogAttributeDataByRefs = (catalogAttributesMap, refs) => {
|
|
29
|
-
return
|
|
29
|
+
return _compact(refs.map((ref) => findCatalogAttributeByRef(catalogAttributesMap, ref)));
|
|
30
30
|
};
|
|
31
31
|
export const appendEmptyAttribute = (attributes, baseRowIndex) => {
|
|
32
32
|
const uncompletedItemIndex = attributes.findIndex((attribute) => !attribute.completed);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CheckboxControl.d.ts","sourceRoot":"","sources":["../../../../src/internal/components/configurationControls/CheckboxControl.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAoB,KAAK,SAAS,EAAe,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"CheckboxControl.d.ts","sourceRoot":"","sources":["../../../../src/internal/components/configurationControls/CheckboxControl.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAoB,KAAK,SAAS,EAAe,MAAM,OAAO,CAAC;AAOtE,OAAO,EAAE,KAAK,wBAAwB,EAAE,MAAM,mCAAmC,CAAC;AAIlF,MAAM,WAAW,qBAAqB;IAClC,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,wBAAwB,CAAC;IACtC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,SAAS,CAAC;IACzB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,CAAC,IAAI,EAAE,GAAG,GAAG,IAAI,CAAC;IAC3B,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B;;;;;OAKG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;CAC1B;AAED,wBAAgB,eAAe,CAAC,EAC5B,OAAe,EACf,QAAgB,EAChB,mBAA2B,EAC3B,SAAS,EACT,YAAY,EACZ,SAAS,EACT,iBAAiB,EACjB,UAAU,EACV,QAAQ,EACR,eAAuB,EACvB,YAAY,GACf,EAAE,qBAAqB,2CAiCvB"}
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
// (C) 2019-2026 GoodData Corporation
|
|
3
3
|
import { useCallback } 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 { getTranslation } from "../../utils/translations.js";
|
|
7
8
|
import { DisabledBubbleMessage } from "../DisabledBubbleMessage.js";
|
|
8
9
|
export function CheckboxControl({ checked = false, disabled = false, showDisabledMessage = false, labelText, labelContent, valuePath, disabledMessageId, properties, pushData, isValueInverted = false, defaultValue, }) {
|
|
9
10
|
const intl = useIntl();
|
|
10
11
|
const onValueChanged = useCallback((event) => {
|
|
11
|
-
const clonedProperties =
|
|
12
|
+
const clonedProperties = _cloneDeep(properties);
|
|
12
13
|
const value = isValueInverted ? !event.target.checked : event.target.checked;
|
|
13
14
|
// When the value matches the default, set to undefined so the property gets removed
|
|
14
15
|
// during merge. This prevents the Save button from staying enabled when toggling
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConfigSection.d.ts","sourceRoot":"","sources":["../../../../src/internal/components/configurationControls/ConfigSection.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAoB,KAAK,SAAS,EAA6C,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"ConfigSection.d.ts","sourceRoot":"","sources":["../../../../src/internal/components/configurationControls/ConfigSection.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAoB,KAAK,SAAS,EAA6C,MAAM,OAAO,CAAC;AAWpG,MAAM,WAAW,mBAAmB;IAChC,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,cAAc,CAAC,EAAE,GAAG,CAAC;IACrB,UAAU,CAAC,EAAE,GAAG,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,CAAC,IAAI,EAAE,GAAG,GAAG,IAAI,CAAC;IAC3B,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,eAAe,CAAC,EAAE,MAAM,CAAC;IAEzB,QAAQ,CAAC,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAAC;CACrC;AAED,wBAAgB,aAAa,CAAC,EAC1B,EAAE,EACF,SAAS,EACT,YAAoB,EACpB,cAAsB,EACtB,SAAgB,EAChB,cAAc,EACd,UAAe,EACf,KAAK,EACL,QAAQ,EACR,mBAA2B,EAC3B,SAAc,EACd,QAAmB,EACnB,QAAQ,EACR,eAAe,EACf,QAAQ,GACX,EAAE,mBAAmB,2CA2GrB"}
|
|
@@ -2,8 +2,9 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
// (C) 2019-2026 GoodData Corporation
|
|
3
3
|
import { useCallback, useEffect, useMemo, 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
|
+
import { _cloneDeep } from "@gooddata/util";
|
|
7
8
|
import { getTranslation } from "../../utils/translations.js";
|
|
8
9
|
import { DisabledBubbleMessage } from "../DisabledBubbleMessage.js";
|
|
9
10
|
export function ConfigSection({ id, valuePath, canBeToggled = false, toggleDisabled = false, toggledOn = true, propertiesMeta, properties = {}, title, subtitle, showDisabledMessage = false, className = "", pushData = () => { }, children, toggleMessageId, onToggle, }) {
|
|
@@ -28,7 +29,7 @@ export function ConfigSection({ id, valuePath, canBeToggled = false, toggleDisab
|
|
|
28
29
|
return;
|
|
29
30
|
}
|
|
30
31
|
if (valuePath && properties && pushData) {
|
|
31
|
-
const clonedProperties =
|
|
32
|
+
const clonedProperties = _cloneDeep(properties);
|
|
32
33
|
set(clonedProperties, `controls.${valuePath}`, event.target.checked);
|
|
33
34
|
pushData({ properties: clonedProperties });
|
|
34
35
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConfigSubsection.d.ts","sourceRoot":"","sources":["../../../../src/internal/components/configurationControls/ConfigSubsection.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAoB,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"ConfigSubsection.d.ts","sourceRoot":"","sources":["../../../../src/internal/components/configurationControls/ConfigSubsection.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAoB,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAOzD,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AAI7D,MAAM,WAAW,yBAAyB;IACtC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,UAAU,CAAC,EAAE,GAAG,CAAC;IACjB,QAAQ,CAAC,CAAC,IAAI,EAAE,GAAG,GAAG,IAAI,CAAC;IAC3B,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACxB;AAED,MAAM,WAAW,sBAAsB;IACnC,QAAQ,EAAE,OAAO,CAAC;CACrB;AAED,MAAM,MAAM,sBAAsB,GAAG,yBAAyB,CAAC;AAE/D,wBAAgB,gBAAgB,CAAC,EAC7B,KAAK,EACL,YAAoB,EACpB,cAAsB,EACtB,SAAgB,EAChB,QAAmB,EACnB,mBAA2B,EAC3B,SAAS,EACT,UAAU,EACV,QAAQ,EACR,QAAQ,GACX,EAAE,sBAAsB,2CAqDxB"}
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { set } from "lodash-es";
|
|
3
3
|
import { useIntl } from "react-intl";
|
|
4
|
+
import { _cloneDeep } from "@gooddata/util";
|
|
4
5
|
import { getTranslation } from "../../utils/translations.js";
|
|
5
6
|
import { DisabledBubbleMessage } from "../DisabledBubbleMessage.js";
|
|
6
7
|
export function ConfigSubsection({ title, canBeToggled = false, toggleDisabled = false, toggledOn = true, pushData = () => { }, showDisabledMessage = false, valuePath, properties, axisType, children, }) {
|
|
7
8
|
const intl = useIntl();
|
|
8
9
|
const toggleValue = (event) => {
|
|
9
10
|
if (valuePath && properties && pushData) {
|
|
10
|
-
const clonedProperties =
|
|
11
|
+
const clonedProperties = _cloneDeep(properties);
|
|
11
12
|
set(clonedProperties, `controls.${valuePath}`, event.target.checked);
|
|
12
13
|
pushData({ properties: clonedProperties });
|
|
13
14
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContinuousLineControl.d.ts","sourceRoot":"","sources":["../../../../src/internal/components/configurationControls/ContinuousLineControl.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ContinuousLineControl.d.ts","sourceRoot":"","sources":["../../../../src/internal/components/configurationControls/ContinuousLineControl.tsx"],"names":[],"mappings":"AAWA,OAAO,EAAE,KAAK,wBAAwB,EAAE,MAAM,mCAAmC,CAAC;AAGlF,MAAM,WAAW,2BAA2B;IACxC,UAAU,CAAC,EAAE,wBAAwB,CAAC;IACtC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,CAAC,IAAI,EAAE,GAAG,GAAG,IAAI,CAAC;CAC9B;AAED,wBAAgB,qBAAqB,CAAC,EAClC,UAAU,EACV,SAAoC,EACpC,OAAe,EACf,QAAgB,EAChB,QAAQ,GACX,EAAE,2BAA2B,2CAsC7B"}
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { set } from "lodash-es";
|
|
3
3
|
import { useIntl } from "react-intl";
|
|
4
4
|
import { UiTooltip, useIdPrefixed } from "@gooddata/sdk-ui-kit";
|
|
5
|
+
import { _cloneDeep } from "@gooddata/util";
|
|
5
6
|
import { messages } from "../../../locales.js";
|
|
6
7
|
import { getTranslation } from "../../utils/translations.js";
|
|
7
8
|
export function ContinuousLineControl({ properties, valuePath = "continuousLine.enabled", checked = false, disabled = false, pushData, }) {
|
|
8
9
|
const intl = useIntl();
|
|
9
10
|
const tooltipId = useIdPrefixed("continuous-line-tooltip");
|
|
10
11
|
const onValueChanged = (event) => {
|
|
11
|
-
const clonedProperties =
|
|
12
|
+
const clonedProperties = _cloneDeep(properties);
|
|
12
13
|
set(clonedProperties, `controls.${valuePath}`, event.target.checked);
|
|
13
14
|
pushData?.({ properties: clonedProperties });
|
|
14
15
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DistintcPointShapesControl.d.ts","sourceRoot":"","sources":["../../../../src/internal/components/configurationControls/DistintcPointShapesControl.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DistintcPointShapesControl.d.ts","sourceRoot":"","sources":["../../../../src/internal/components/configurationControls/DistintcPointShapesControl.tsx"],"names":[],"mappings":"AAWA,OAAO,EAAE,KAAK,wBAAwB,EAAE,MAAM,mCAAmC,CAAC;AAGlF,MAAM,WAAW,gCAAgC;IAC7C,UAAU,CAAC,EAAE,wBAAwB,CAAC;IACtC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,CAAC,IAAI,EAAE,GAAG,GAAG,IAAI,CAAC;CAC9B;AAED,wBAAgB,0BAA0B,CAAC,EACvC,UAAU,EACV,SAAyC,EACzC,OAAe,EACf,QAAgB,EAChB,QAAQ,GACX,EAAE,gCAAgC,2CAsClC"}
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { set } from "lodash-es";
|
|
3
3
|
import { useIntl } from "react-intl";
|
|
4
4
|
import { UiTooltip, useIdPrefixed } from "@gooddata/sdk-ui-kit";
|
|
5
|
+
import { _cloneDeep } from "@gooddata/util";
|
|
5
6
|
import { messages } from "../../../locales.js";
|
|
6
7
|
import { getTranslation } from "../../utils/translations.js";
|
|
7
8
|
export function DistinctPointShapesControl({ properties, valuePath = "distinctPointShapes.enabled", checked = false, disabled = false, pushData, }) {
|
|
8
9
|
const intl = useIntl();
|
|
9
10
|
const tooltipId = useIdPrefixed("distinct-point-shapes-tooltip");
|
|
10
11
|
const onValueChanged = (event) => {
|
|
11
|
-
const clonedProperties =
|
|
12
|
+
const clonedProperties = _cloneDeep(properties);
|
|
12
13
|
set(clonedProperties, `controls.${valuePath}`, event.target.checked);
|
|
13
14
|
pushData?.({ properties: clonedProperties });
|
|
14
15
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DropdownControl.d.ts","sourceRoot":"","sources":["../../../../src/internal/components/configurationControls/DropdownControl.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,aAAa,EAAsC,MAAM,OAAO,CAAC;AAK/E,OAAO,EAIH,KAAK,WAAW,EAChB,KAAK,0BAA0B,EAElC,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"DropdownControl.d.ts","sourceRoot":"","sources":["../../../../src/internal/components/configurationControls/DropdownControl.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,aAAa,EAAsC,MAAM,OAAO,CAAC;AAK/E,OAAO,EAIH,KAAK,WAAW,EAChB,KAAK,0BAA0B,EAElC,MAAM,sBAAsB,CAAC;AAG9B,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAClE,OAAO,EAAE,KAAK,wBAAwB,EAAE,MAAM,mCAAmC,CAAC;AAIlF,MAAM,WAAW,qBAAqB;IAClC,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,wBAAwB,CAAC;IACtC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,KAAK,CAAC,EAAE,aAAa,EAAE,CAAC;IACxB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,0BAA0B,CAAC,EAAE,WAAW,EAAE,CAAC;IAC3C,cAAc,CAAC,EAAE,aAAa,CAAC,0BAA0B,CAAC,CAAC;IAC3D,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAE3B,QAAQ,CAAC,CAAC,IAAI,EAAE,GAAG,GAAG,IAAI,CAAC;CAC9B;AAMD,eAAO,MAAM,eAAe,iOAczB,qBAAqB,6CAqHtB,CAAC"}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
// (C) 2019-2026 GoodData Corporation
|
|
3
3
|
import { memo, useCallback, useId, useState } from "react";
|
|
4
|
-
import {
|
|
4
|
+
import { set } from "lodash-es";
|
|
5
5
|
import { useIntl } from "react-intl";
|
|
6
6
|
import { Dropdown, DropdownButton, DropdownList, SingleSelectListItem, } from "@gooddata/sdk-ui-kit";
|
|
7
|
+
import { _cloneDeep } from "@gooddata/util";
|
|
7
8
|
import { getTranslation } from "../../utils/translations.js";
|
|
8
9
|
import { DisabledBubbleMessage } from "../DisabledBubbleMessage.js";
|
|
9
10
|
const alignPoints = ["bl tl", "tl bl", "br tr", "tr br"];
|
|
@@ -28,7 +29,7 @@ export const DropdownControl = memo(function DropdownControl({ valuePath, proper
|
|
|
28
29
|
const onSelect = (selectedItem) => {
|
|
29
30
|
// we must not change the properties at any cost, so deep clone for now.
|
|
30
31
|
// ideally we should use st. like immer with copy on write to not clone everything all the time
|
|
31
|
-
const clonedProperties =
|
|
32
|
+
const clonedProperties = _cloneDeep(properties);
|
|
32
33
|
set(clonedProperties, `controls.${valuePath}`, selectedItem.value);
|
|
33
34
|
pushData?.({ properties: clonedProperties });
|
|
34
35
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GeoViewportControl.d.ts","sourceRoot":"","sources":["../../../../src/internal/components/configurationControls/GeoViewportControl.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,SAAS,EAAwB,MAAM,OAAO,CAAC;AAKhF,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAGH,KAAK,UAAU,EACf,KAAK,gBAAgB,EACxB,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"GeoViewportControl.d.ts","sourceRoot":"","sources":["../../../../src/internal/components/configurationControls/GeoViewportControl.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,SAAS,EAAwB,MAAM,OAAO,CAAC;AAKhF,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAGH,KAAK,UAAU,EACf,KAAK,gBAAgB,EACxB,MAAM,sBAAsB,CAAC;AAO9B,OAAO,EAAE,KAAK,wBAAwB,EAAE,MAAM,mCAAmC,CAAC;AAMlF,MAAM,WAAW,eAAe;IAC5B,MAAM,CAAC,EAAE,UAAU,CAAC;IACpB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,gBAAgB,CAAC;CAC7B;AAED,MAAM,WAAW,mBAAmB;IAChC,QAAQ,EAAE,OAAO,CAAC;IAClB,UAAU,CAAC,EAAE,wBAAwB,CAAC;IACtC,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,SAAS,KAAK,IAAI,CAAC;IACrC,iBAAiB,CAAC,EAAE,MAAM,eAAe,CAAC;IAC1C,uBAAuB,CAAC,EAAE,SAAS,CAAC;IACpC,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB;AAqBD;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,mBAAmB,GAAG,YAAY,CA4I3E"}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
// (C) 2025-2026 GoodData Corporation
|
|
3
3
|
import { useCallback, useMemo } from "react";
|
|
4
|
-
import {
|
|
4
|
+
import { set } from "lodash-es";
|
|
5
5
|
import { useIntl } from "react-intl";
|
|
6
6
|
import { PRESET_VIEWPORT_BOUNDS, isConcreteViewportPreset } from "@gooddata/sdk-ui-geo/internal";
|
|
7
7
|
import { Bubble, BubbleHoverTrigger } from "@gooddata/sdk-ui-kit";
|
|
8
|
+
import { _cloneDeep } from "@gooddata/util";
|
|
8
9
|
import { messages } from "../../../locales.js";
|
|
9
10
|
import { pushpinViewportDropdownItems } from "../../constants/dropdowns.js";
|
|
10
11
|
import { getTranslatedDropdownItems } from "../../utils/translations.js";
|
|
@@ -41,7 +42,7 @@ export function GeoViewportControl(props) {
|
|
|
41
42
|
const effectiveArea = !isAdvancedViewportConfigEnabled && area === "custom" ? "auto" : area;
|
|
42
43
|
const shouldRenderNavigationControls = isAdvancedViewportConfigEnabled;
|
|
43
44
|
const handleViewportPushData = useCallback((data) => {
|
|
44
|
-
const nextProperties =
|
|
45
|
+
const nextProperties = _cloneDeep(data.properties ?? properties);
|
|
45
46
|
if (!nextProperties) {
|
|
46
47
|
pushData?.(data);
|
|
47
48
|
return;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InputControl.d.ts","sourceRoot":"","sources":["../../../../src/internal/components/configurationControls/InputControl.tsx"],"names":[],"mappings":"AAEA,OAAO,EAEH,KAAK,cAAc,EAKtB,MAAM,OAAO,CAAC;AAIf,OAAO,EAAE,gBAAgB,EAAW,MAAM,YAAY,CAAC;AAEvD,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"InputControl.d.ts","sourceRoot":"","sources":["../../../../src/internal/components/configurationControls/InputControl.tsx"],"names":[],"mappings":"AAEA,OAAO,EAEH,KAAK,cAAc,EAKtB,MAAM,OAAO,CAAC;AAIf,OAAO,EAAE,gBAAgB,EAAW,MAAM,YAAY,CAAC;AAEvD,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAGxD,OAAO,EAAE,KAAK,wBAAwB,EAAE,MAAM,mCAAmC,CAAC;AAIlF,MAAM,WAAW,kBAAkB;IAC/B,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,wBAAwB,CAAC;IACtC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,0BAA0B,CAAC,EAAE,WAAW,EAAE,CAAC;IAC3C,QAAQ,CAAC,CAAC,IAAI,EAAE,GAAG,GAAG,IAAI,CAAC;IAC3B,2BAA2B,CAAC,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IAClD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,iBAAiB,CAAC,EAAE,cAAc,CAAC,OAAO,gBAAgB,CAAC,CAAC,QAAQ,CAAC,CAAC;IAEtE;;;;;;;OAOG;IACH,UAAU,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,OAAO,CAAC;IACxC;;;;;;OAMG;IACH,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;CAC3C;AAED,MAAM,WAAW,kBAAkB;IAC/B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,aAAa,CAAC,EAAE,MAAM,CAAC;CAC1B;AAID,wBAAgB,YAAY,CAAC,EACzB,SAAS,EACT,UAAU,EACV,SAAS,EACT,KAAK,EAAE,SAAc,EACrB,WAAW,EACX,IAAa,EACb,QAAgB,EAChB,mBAA2B,EAC3B,iBAAiB,EACjB,UAAkB,EAClB,0BAA0B,EAC1B,QAAmB,EACnB,SAAS,EACT,WAAW,EACX,iBAAiB,EACjB,UAAU,EACV,WAAW,GACd,EAAE,kBAAkB,2CA0HpB"}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
// (C) 2019-
|
|
2
|
+
// (C) 2019-2026 GoodData Corporation
|
|
3
3
|
import { useEffect, useRef, useState, } from "react";
|
|
4
4
|
import cx from "classnames";
|
|
5
|
-
import {
|
|
5
|
+
import { set } from "lodash-es";
|
|
6
6
|
import { FormattedMessage, useIntl } from "react-intl";
|
|
7
|
+
import { _cloneDeep } from "@gooddata/util";
|
|
7
8
|
import { getTranslation } from "../../utils/translations.js";
|
|
8
9
|
import { DisabledBubbleMessage } from "../DisabledBubbleMessage.js";
|
|
9
10
|
const MAX_NUMBER_LENGTH = 15;
|
|
@@ -55,7 +56,7 @@ export function InputControl({ valuePath, properties, labelText, value: propValu
|
|
|
55
56
|
};
|
|
56
57
|
const emitData = () => {
|
|
57
58
|
const modifiedData = modifyDataForSending(value);
|
|
58
|
-
const clonedProperties =
|
|
59
|
+
const clonedProperties = _cloneDeep(properties);
|
|
59
60
|
set(clonedProperties, `controls.${valuePath}`, modifiedData);
|
|
60
61
|
setValue(modifiedData);
|
|
61
62
|
pushData?.({ properties: clonedProperties });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LineShapeControl.d.ts","sourceRoot":"","sources":["../../../../src/internal/components/configurationControls/LineShapeControl.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"LineShapeControl.d.ts","sourceRoot":"","sources":["../../../../src/internal/components/configurationControls/LineShapeControl.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAKzD,OAAO,EAAE,KAAK,wBAAwB,EAAE,MAAM,mCAAmC,CAAC;AAElF,UAAU,oBAAoB;IAC1B,SAAS,CAAC,EAAE,SAAS,CAAC;CACzB;AAED,MAAM,WAAW,sBAAsB;IACnC,QAAQ,EAAE,OAAO,CAAC;IAClB,UAAU,CAAC,EAAE,wBAAwB,CAAC,oBAAoB,CAAC,CAAC;IAC5D,QAAQ,EAAE,CAAC,IAAI,EAAE;QAAE,UAAU,EAAE,WAAW,CAAC,sBAAsB,CAAC,YAAY,CAAC,CAAC,CAAA;KAAE,KAAK,IAAI,CAAC;CAC/F;AAED,wBAAgB,gBAAgB,CAAC,EAAE,QAAQ,EAAE,UAAU,EAAE,QAAQ,EAAE,EAAE,sBAAsB,2CAoE1F"}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
// (C) 2026 GoodData Corporation
|
|
3
3
|
import { useId } from "react";
|
|
4
|
-
import {
|
|
4
|
+
import { merge } from "lodash-es";
|
|
5
5
|
import { FormattedMessage, useIntl } from "react-intl";
|
|
6
6
|
import { UiButtonSegmentedControl, UiIconButton, UiTooltip } from "@gooddata/sdk-ui-kit";
|
|
7
|
+
import { _cloneDeep } from "@gooddata/util";
|
|
7
8
|
import { messages } from "../../../locales.js";
|
|
8
9
|
export function LineShapeControl({ disabled, properties, pushData }) {
|
|
9
10
|
const labelId = useId();
|
|
@@ -24,7 +25,7 @@ export function LineShapeControl({ disabled, properties, pushData }) {
|
|
|
24
25
|
return;
|
|
25
26
|
}
|
|
26
27
|
pushData({
|
|
27
|
-
properties: merge(
|
|
28
|
+
properties: merge(_cloneDeep(properties), {
|
|
28
29
|
controls: { lineShape: value },
|
|
29
30
|
}),
|
|
30
31
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PagingSection.d.ts","sourceRoot":"","sources":["../../../../src/internal/components/configurationControls/PagingSection.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"PagingSection.d.ts","sourceRoot":"","sources":["../../../../src/internal/components/configurationControls/PagingSection.tsx"],"names":[],"mappings":"AAWA,OAAO,EAAE,KAAK,wBAAwB,EAAE,MAAM,mCAAmC,CAAC;AAKlF,MAAM,WAAW,mBAAmB;IAChC,UAAU,CAAC,EAAE,wBAAwB,CAAC;IACtC,cAAc,CAAC,EAAE,GAAG,CAAC;IACrB,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,GAAG,KAAK,IAAI,CAAC;IAC/B,UAAU,CAAC,EAAE,OAAO,CAAC;CACxB;AAID,wBAAgB,aAAa,CAAC,EAC1B,UAAU,EACV,cAAc,EACd,QAAQ,EACR,UAAkB,GACrB,EAAE,mBAAmB,2CAoErB"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
// (C) 2025-2026 GoodData Corporation
|
|
3
3
|
import { useCallback, useMemo } 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 { ConfigSection } from "./ConfigSection.js";
|
|
8
9
|
import { DropdownControl } from "./DropdownControl.js";
|
|
@@ -23,7 +24,7 @@ export function PagingSection({ properties, propertiesMeta, pushData, isDisabled
|
|
|
23
24
|
const newPaginationEnabled = data?.properties?.controls?.["pagination"]?.enabled;
|
|
24
25
|
if (newPaginationEnabled === true) {
|
|
25
26
|
// When enabling pagination, ensure pageSize is set
|
|
26
|
-
const clonedProperties =
|
|
27
|
+
const clonedProperties = _cloneDeep(data.properties);
|
|
27
28
|
if (!clonedProperties?.controls?.["pageSize"]) {
|
|
28
29
|
set(clonedProperties, "controls.pageSize", DEFAULT_PAGE_SIZE);
|
|
29
30
|
}
|
|
@@ -31,7 +32,7 @@ export function PagingSection({ properties, propertiesMeta, pushData, isDisabled
|
|
|
31
32
|
}
|
|
32
33
|
else if (newPaginationEnabled === false) {
|
|
33
34
|
// When disabling pagination, also reset pageSize
|
|
34
|
-
const clonedProperties =
|
|
35
|
+
const clonedProperties = _cloneDeep(data.properties);
|
|
35
36
|
set(clonedProperties, "controls.pageSize", undefined);
|
|
36
37
|
pushData?.({ ...data, properties: clonedProperties });
|
|
37
38
|
}
|
package/esm/internal/components/configurationControls/PivotTableTextWrappingControl.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PivotTableTextWrappingControl.d.ts","sourceRoot":"","sources":["../../../../src/internal/components/configurationControls/PivotTableTextWrappingControl.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"PivotTableTextWrappingControl.d.ts","sourceRoot":"","sources":["../../../../src/internal/components/configurationControls/PivotTableTextWrappingControl.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAKlD,OAAO,EAAE,KAAK,wBAAwB,EAAE,MAAM,mCAAmC,CAAC;AAWlF;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACtC,UAAU,EAAE,wBAAwB,CAAC;IACrC,QAAQ,EAAE,CAAC,IAAI,EAAE,SAAS,KAAK,IAAI,CAAC;IACpC,QAAQ,CAAC,EAAE,OAAO,CAAC;CACtB;AAkGD;;;;GAIG;AACH,wBAAgB,+BAA+B,CAAC,EAC5C,UAAU,EACV,QAAQ,EACR,QAAgB,GACnB,EAAE,yBAAyB,2CAW3B;AAED;;;;GAIG;AACH,wBAAgB,uBAAuB,CAAC,EACpC,UAAU,EACV,QAAQ,EACR,QAAgB,GACnB,EAAE,yBAAyB,2CAW3B"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
// (C) 2025 GoodData Corporation
|
|
2
|
+
// (C) 2025-2026 GoodData Corporation
|
|
3
3
|
import { useCallback, useMemo } from "react";
|
|
4
|
-
import { cloneDeep } from "lodash-es";
|
|
5
4
|
import { useIntl } from "react-intl";
|
|
6
5
|
import { UiCheckbox } from "@gooddata/sdk-ui-kit";
|
|
6
|
+
import { _cloneDeep } from "@gooddata/util";
|
|
7
7
|
import { messages } from "../../../locales.js";
|
|
8
8
|
/**
|
|
9
9
|
* Single text wrapping checkbox control.
|
|
@@ -28,7 +28,7 @@ function TextWrappingCheckbox({ properties, pushData, disabled = false, wrapType
|
|
|
28
28
|
const indeterminate = hasOverrides;
|
|
29
29
|
// Update global wrapping setting and clear corresponding overrides
|
|
30
30
|
const updateWrapping = useCallback((event) => {
|
|
31
|
-
const clonedProperties =
|
|
31
|
+
const clonedProperties = _cloneDeep(properties) || {};
|
|
32
32
|
clonedProperties.controls = clonedProperties.controls || {};
|
|
33
33
|
const currentTextWrapping = clonedProperties.controls["textWrapping"] || {};
|
|
34
34
|
const currentOverrides = currentTextWrapping.columnOverrides ?? [];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PushpinShapeControl.d.ts","sourceRoot":"","sources":["../../../../src/internal/components/configurationControls/PushpinShapeControl.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,YAAY,EAAkC,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"PushpinShapeControl.d.ts","sourceRoot":"","sources":["../../../../src/internal/components/configurationControls/PushpinShapeControl.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,YAAY,EAAkC,MAAM,OAAO,CAAC;AAS1E,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAClE,OAAO,EAAE,KAAK,wBAAwB,EAAE,MAAM,mCAAmC,CAAC;AAMlF,MAAM,WAAW,yBAAyB;IACtC,QAAQ,EAAE,OAAO,CAAC;IAClB,UAAU,EAAE,wBAAwB,CAAC;IACrC,QAAQ,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IAClC,WAAW,CAAC,EAAE,aAAa,EAAE,CAAC;IAC9B,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,qBAAqB,CAAC,EAAE,OAAO,CAAC;CACnC;AAED,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,yBAAyB,GAAG,YAAY,GAAG,IAAI,CAiHzF"}
|
|
@@ -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"}
|