@gooddata/sdk-ui-ext 11.68.0-alpha.7 → 11.68.0-alpha.9
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 +161 -126
- package/esm/internal/components/BaseVisualization.d.ts.map +1 -1
- package/esm/internal/components/BaseVisualization.js +2 -3
- 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 +2 -3
- package/esm/internal/components/configurationControls/ConfigSection.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/ConfigSection.js +2 -3
- package/esm/internal/components/configurationControls/ConfigSubsection.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/ConfigSubsection.js +2 -3
- package/esm/internal/components/configurationControls/ContinuousLineControl.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/ContinuousLineControl.js +2 -3
- package/esm/internal/components/configurationControls/DistintcPointShapesControl.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/DistintcPointShapesControl.js +2 -3
- package/esm/internal/components/configurationControls/DropdownControl.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/DropdownControl.js +2 -3
- package/esm/internal/components/configurationControls/GeoViewportControl.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/GeoViewportControl.js +13 -14
- package/esm/internal/components/configurationControls/InputControl.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/InputControl.js +2 -3
- package/esm/internal/components/configurationControls/PagingSection.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/PagingSection.js +3 -4
- package/esm/internal/components/configurationControls/PushpinShapeControl.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/PushpinShapeControl.js +3 -4
- package/esm/internal/components/configurationControls/advanced/AdvancedSection.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/advanced/AdvancedSection.js +2 -3
- package/esm/internal/components/configurationControls/colors/ColorsSection.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/colors/ColorsSection.js +3 -4
- package/esm/internal/components/configurationControls/comparison/indicators/colorsControl/ColorCheckbox.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/comparison/indicators/colorsControl/ColorCheckbox.js +2 -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 +2 -3
- 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 -5
- package/esm/internal/components/configurationControls/comparison/values/numberFormat/NumberFormatControl.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/comparison/values/numberFormat/NumberFormatControl.js +2 -3
- package/esm/internal/components/configurationControls/conditionalFormatting/ConditionalFormattingSection.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/conditionalFormatting/ConditionalFormattingSection.js +2 -3
- package/esm/internal/components/configurationControls/customTooltip/CustomTooltipSection.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/customTooltip/CustomTooltipSection.js +2 -3
- package/esm/internal/components/configurationControls/interactions/InteractionsSection.d.ts +1 -2
- package/esm/internal/components/configurationControls/interactions/InteractionsSection.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/interactions/InteractionsSection.js +2 -2
- package/esm/internal/components/configurationControls/total/TotalSection.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/total/TotalSection.js +2 -3
- package/esm/internal/components/configurationPanels/ConfigurationPanelContent.d.ts.map +1 -1
- package/esm/internal/components/configurationPanels/ConfigurationPanelContent.js +1 -2
- package/esm/internal/components/configurationPanels/UnsupportedConfigurationPanel.js +2 -2
- package/esm/internal/components/insightList/useInsightPagedList.d.ts.map +1 -1
- package/esm/internal/components/insightList/useInsightPagedList.js +2 -3
- package/esm/internal/components/pluggableVisualizations/PluggableColumnBarCharts.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/PluggableColumnBarCharts.js +2 -3
- package/esm/internal/components/pluggableVisualizations/areaChart/PluggableAreaChart.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/areaChart/PluggableAreaChart.js +2 -3
- 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 +2 -4
- package/esm/internal/components/pluggableVisualizations/comboChart/PluggableComboChart.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/comboChart/PluggableComboChart.js +3 -4
- package/esm/internal/components/pluggableVisualizations/comboChart/PluggableComboChartDeprecated.js +3 -3
- package/esm/internal/components/pluggableVisualizations/geoAreaChart/PluggableGeoAreaChart.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/geoAreaChart/PluggableGeoAreaChart.js +2 -4
- package/esm/internal/components/pluggableVisualizations/geoChart/PluggableGeoPushpinChart.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/geoChart/PluggableGeoPushpinChart.js +5 -7
- package/esm/internal/components/pluggableVisualizations/geoChartNext/PluggableGeoPushpinChartNext.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/geoChartNext/PluggableGeoPushpinChartNext.js +10 -12
- package/esm/internal/components/pluggableVisualizations/geoCommon/geoPropertySanitization.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/geoCommon/geoPropertySanitization.js +6 -7
- package/esm/internal/components/pluggableVisualizations/heatMap/PluggableHeatmap.js +3 -3
- package/esm/internal/components/pluggableVisualizations/lineChart/PluggableLineChart.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/lineChart/PluggableLineChart.js +4 -5
- package/esm/internal/components/pluggableVisualizations/mekko/PluggableMekko.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/mekko/PluggableMekko.js +4 -5
- package/esm/internal/components/pluggableVisualizations/pieChart/PluggablePieChart.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/pieChart/PluggablePieChart.js +5 -6
- package/esm/internal/components/pluggableVisualizations/pivotTable/pivotTableAdditionalFactories.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/pivotTable/pivotTableAdditionalFactories.js +2 -2
- package/esm/internal/components/pluggableVisualizations/pivotTableNext/pivotTableNextAdditionalFactories.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/pivotTableNext/pivotTableNextAdditionalFactories.js +2 -2
- package/esm/internal/components/pluggableVisualizations/radarChart/PluggableRadarChart.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/radarChart/PluggableRadarChart.js +2 -3
- package/esm/internal/components/pluggableVisualizations/repeater/PluggableRepeater.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/repeater/PluggableRepeater.js +3 -5
- package/esm/internal/components/pluggableVisualizations/scatterPlot/PluggableScatterPlot.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/scatterPlot/PluggableScatterPlot.js +3 -5
- package/esm/internal/components/pluggableVisualizations/treeMap/PluggableTreemap.js +4 -4
- package/esm/internal/components/pluggableVisualizations/waterfallChart/PluggableWaterfallChart.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/waterfallChart/PluggableWaterfallChart.js +7 -8
- package/esm/internal/translations/en-US.localization-bundle.d.ts +28 -0
- package/esm/internal/translations/en-US.localization-bundle.d.ts.map +1 -1
- package/esm/internal/translations/en-US.localization-bundle.js +29 -1
- package/esm/internal/utils/bucketConfig.d.ts.map +1 -1
- package/esm/internal/utils/bucketConfig.js +2 -3
- package/esm/internal/utils/bucketHelper.js +8 -8
- package/esm/internal/utils/colors.d.ts.map +1 -1
- package/esm/internal/utils/colors.js +6 -7
- package/esm/internal/utils/controlsHelper.d.ts.map +1 -1
- package/esm/internal/utils/controlsHelper.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/drillablePredicates.d.ts.map +1 -1
- package/esm/internal/utils/drillablePredicates.js +4 -4
- package/esm/internal/utils/embeddingCodeGenerator/getReactEmbeddingCodeGenerator.js +8 -8
- package/esm/internal/utils/propertiesHelper.js +8 -8
- package/esm/internal/utils/removeUseless.d.ts.map +1 -1
- package/esm/internal/utils/removeUseless.js +2 -3
- package/esm/internal/utils/translations.d.ts.map +1 -1
- package/esm/internal/utils/translations.js +2 -3
- package/esm/internal/utils/uiConfigHelpers/areaChartUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/areaChartUiConfigHelper.js +9 -10
- package/esm/internal/utils/uiConfigHelpers/baseChartUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/baseChartUiConfigHelper.js +16 -17
- package/esm/internal/utils/uiConfigHelpers/bubbleChartUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/bubbleChartUiConfigHelper.js +6 -7
- package/esm/internal/utils/uiConfigHelpers/columnBarChartUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/columnBarChartUiConfigHelper.js +4 -5
- package/esm/internal/utils/uiConfigHelpers/comboChartUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/comboChartUiConfigHelper.js +6 -7
- package/esm/internal/utils/uiConfigHelpers/comboChartUiConfigHelperDeprecated.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/comboChartUiConfigHelperDeprecated.js +8 -9
- package/esm/internal/utils/uiConfigHelpers/dependencyWheelChartUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/dependencyWheelChartUiConfigHelper.js +4 -5
- package/esm/internal/utils/uiConfigHelpers/donutChartUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/donutChartUiConfigHelper.js +3 -4
- package/esm/internal/utils/uiConfigHelpers/funnelChartUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/funnelChartUiConfigHelper.js +4 -5
- package/esm/internal/utils/uiConfigHelpers/geoAreaChartUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/geoAreaChartUiConfigHelper.js +3 -3
- package/esm/internal/utils/uiConfigHelpers/geoPushpinChartUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/geoPushpinChartUiConfigHelper.js +14 -15
- package/esm/internal/utils/uiConfigHelpers/headlineUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/headlineUiConfigHelper.js +9 -10
- package/esm/internal/utils/uiConfigHelpers/heatmapUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/heatmapUiConfigHelper.js +5 -6
- package/esm/internal/utils/uiConfigHelpers/lineChartUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/lineChartUiConfigHelper.js +11 -12
- package/esm/internal/utils/uiConfigHelpers/mekkoUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/mekkoUiConfigHelper.js +6 -7
- package/esm/internal/utils/uiConfigHelpers/pieChartUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/pieChartUiConfigHelper.js +9 -10
- package/esm/internal/utils/uiConfigHelpers/pivotTableNextUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/pivotTableNextUiConfigHelper.js +13 -14
- package/esm/internal/utils/uiConfigHelpers/pivotTableUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/pivotTableUiConfigHelper.js +13 -14
- package/esm/internal/utils/uiConfigHelpers/pyramidChartUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/pyramidChartUiConfigHelper.js +3 -4
- package/esm/internal/utils/uiConfigHelpers/radarChartUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/radarChartUiConfigHelper.js +11 -12
- package/esm/internal/utils/uiConfigHelpers/repeaterUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/repeaterUiConfigHelper.js +9 -10
- package/esm/internal/utils/uiConfigHelpers/sankeyChartUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/sankeyChartUiConfigHelper.js +6 -7
- package/esm/internal/utils/uiConfigHelpers/scatterPlotUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/scatterPlotUiConfigHelper.js +6 -7
- package/esm/internal/utils/uiConfigHelpers/treemapUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/treemapUiConfigHelper.js +10 -11
- package/esm/internal/utils/uiConfigHelpers/waterfallChartUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/waterfallChartUiConfigHelper.js +9 -10
- package/esm/internal/utils/uiConfigHelpers/xirrUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/xirrUiConfigHelper.js +3 -4
- package/esm/notificationsPanel/Notification/Notification.d.ts.map +1 -1
- package/esm/notificationsPanel/Notification/Notification.js +4 -4
- package/esm/sdk-ui-ext.d.ts +1 -1
- package/esm/share/ObjectShareDialog.d.ts +1 -1
- package/esm/share/ObjectShareDialog.js +3 -3
- package/esm/share/messages.d.ts +28 -0
- package/esm/share/messages.d.ts.map +1 -1
- package/esm/share/messages.js +14 -0
- package/esm/share/removeAccessConfirm.d.ts +21 -0
- package/esm/share/removeAccessConfirm.d.ts.map +1 -0
- package/esm/share/removeAccessConfirm.js +27 -0
- package/esm/share/useObjectShareDialog.d.ts +14 -11
- package/esm/share/useObjectShareDialog.d.ts.map +1 -1
- package/esm/share/useObjectShareDialog.js +54 -24
- package/package.json +21 -21
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseVisualization.d.ts","sourceRoot":"","sources":["../../../src/internal/components/BaseVisualization.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"BaseVisualization.d.ts","sourceRoot":"","sources":["../../../src/internal/components/BaseVisualization.tsx"],"names":[],"mappings":"AAOA,OAAO,EACH,KAAK,kBAAkB,EAEvB,KAAK,kBAAkB,EAC1B,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACH,KAAK,gBAAgB,EACrB,KAAK,QAAQ,EACb,KAAK,kBAAkB,EACvB,KAAK,SAAS,EACd,KAAK,MAAM,EACX,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAI7B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACH,KAAK,aAAa,EAClB,KAAK,OAAO,EACZ,KAAK,OAAO,EACZ,KAAK,aAAa,EAClB,KAAK,gBAAgB,EACrB,KAAK,wBAAwB,EAChC,MAAM,kBAAkB,CAAC;AAI1B,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAC/D,OAAO,EAEH,KAAK,WAAW,EAChB,KAAK,4BAA4B,EACjC,KAAK,iBAAiB,EACtB,KAAK,uBAAuB,EAC5B,KAAK,UAAU,EACf,KAAK,eAAe,EACpB,KAAK,aAAa,EAIrB,MAAM,gCAAgC,CAAC;AAIxC,OAAO,EAA4B,KAAK,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAEjG,MAAM,WAAW,uBAAwB,SAAQ,aAAa;IAC1D,OAAO,EAAE,kBAAkB,CAAC;IAC5B,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,kBAAkB,CAAC;IAC5B,qBAAqB,CAAC,EAAE,GAAG,CAAC;IAC5B,MAAM,CAAC,EAAE,UAAU,CAAC;IACpB,eAAe,CAAC,EAAE,gBAAgB,CAAC;IACnC,kBAAkB,EAAE,mBAAmB,CAAC;IACxC,WAAW,CAAC,EAAE,wBAAwB,CAAC;IACvC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACjC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,cAAc,CAAC,EAAE,aAAa,EAAE,CAAC;IACjC,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,YAAY,CAAC,EAAE,SAAS,CAAC;IACzB,WAAW,CAAC,EAAE,qBAAqB,CAAC;IACpC,oBAAoB,CAAC,EAAE,qBAAqB,CAAC;IAC7C,qBAAqB,CAAC,EAAE,WAAW,EAAE,CAAC;IACtC,cAAc,CAAC,EAAE,eAAe,CAAC;IACjC,OAAO,EAAE,OAAO,CAAC;IACjB,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B,gBAAgB,EAAE,gBAAgB,CAAC;IACnC,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,+BAA+B,CAAC,CAAC,cAAc,EAAE,uBAAuB,EAAE,UAAU,CAAC,EAAE,WAAW,GAAG,IAAI,CAAC;IAC1G,gBAAgB,CAAC,CAAC,UAAU,EAAE,WAAW,GAAG,IAAI,CAAC;IAEjD,6BAA6B,CAAC,IAAI,IAAI,CAAC;IAEvC,QAAQ,CAAC,CAAC,SAAS,EAAE,GAAG,EAAE,MAAM,EAAE,OAAO,GAAG,IAAI,CAAC;IACjD,OAAO,CAAC,IAAI,IAAI,CAAC;IACjB,2BAA2B,CAAC,EAAE,4BAA4B,CAAC;IAC3D,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC/B;AAED;;GAEG;AACH,MAAM,WAAW,qBAAqB;IAClC,YAAY,IAAI,kBAAkB,GAAG,IAAI,CAAC;IAC1C,aAAa,IAAI,kBAAkB,EAAE,GAAG,SAAS,CAAC;IAClD,8BAA8B,CAC1B,mBAAmB,EAAE,QAAQ,EAC7B,gBAAgB,EAAE,iBAAiB,GACpC,QAAQ,CAAC;CACf;AAyBD,eAAO,MAAM,iBAAiB,2HA+c7B,CAAC"}
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
// (C) 2019-2026 GoodData Corporation
|
|
3
3
|
import { forwardRef, useEffect, useImperativeHandle, useLayoutEffect, useRef, useState } from "react";
|
|
4
|
-
import { omit } from "lodash-es";
|
|
5
4
|
import { createRoot } from "react-dom/client";
|
|
6
5
|
import { v4 as uuidv4 } from "uuid";
|
|
7
6
|
import { insightProperties, isInsight, visClassUrl, } from "@gooddata/sdk-model";
|
|
8
7
|
import { OverlayZIndexContext, useContainingOverlayZIndex } from "@gooddata/sdk-ui-kit";
|
|
9
|
-
import { _isEmpty, _isEqual } from "@gooddata/util";
|
|
8
|
+
import { _isEmpty, _isEqual, _omit } from "@gooddata/util";
|
|
10
9
|
import { ConfigPanelClassName, } from "../interfaces/Visualization.js";
|
|
11
10
|
import { cleanupKeyDriverAnalysisOnMetrics, hideKeyDriverOnMetrics } from "../utils/keyDriverAnalysis.js";
|
|
12
11
|
import { FullVisualizationCatalog } from "./VisualizationCatalog.js";
|
|
@@ -15,7 +14,7 @@ function getVisualizationId(insight) {
|
|
|
15
14
|
return isInsight(insight) ? insight.insight.identifier : "__new_visualization__";
|
|
16
15
|
}
|
|
17
16
|
function bucketReferencePointHasChanged(currentReferencePoint, nextReferencePoint) {
|
|
18
|
-
return !_isEqual(
|
|
17
|
+
return !_isEqual(_omit(currentReferencePoint, ["properties", "availableSorts"]), _omit(nextReferencePoint, ["properties", "availableSorts"]));
|
|
19
18
|
}
|
|
20
19
|
function propertiesControlsHasChanged(currentReferencePoint, nextReferencePoint) {
|
|
21
20
|
return !_isEqual(currentReferencePoint?.properties?.controls, nextReferencePoint?.properties?.controls);
|
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;AAMtE,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,9 +1,8 @@
|
|
|
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 { set } from "lodash-es";
|
|
5
4
|
import { useIntl } from "react-intl";
|
|
6
|
-
import { _cloneDeep } from "@gooddata/util";
|
|
5
|
+
import { _cloneDeep, _set } from "@gooddata/util";
|
|
7
6
|
import { getTranslation } from "../../utils/translations.js";
|
|
8
7
|
import { DisabledBubbleMessage } from "../DisabledBubbleMessage.js";
|
|
9
8
|
export function CheckboxControl({ checked = false, disabled = false, showDisabledMessage = false, labelText, labelContent, valuePath, disabledMessageId, properties, pushData, isValueInverted = false, defaultValue, }) {
|
|
@@ -15,7 +14,7 @@ export function CheckboxControl({ checked = false, disabled = false, showDisable
|
|
|
15
14
|
// during merge. This prevents the Save button from staying enabled when toggling
|
|
16
15
|
// back to the default state.
|
|
17
16
|
const valueToSet = value === defaultValue ? undefined : value;
|
|
18
|
-
|
|
17
|
+
_set(clonedProperties, `controls.${valuePath}`, valueToSet);
|
|
19
18
|
pushData?.({ properties: clonedProperties });
|
|
20
19
|
}, [properties, isValueInverted, pushData, valuePath, defaultValue]);
|
|
21
20
|
return (_jsx(DisabledBubbleMessage, { showDisabledMessage: showDisabledMessage, messageId: disabledMessageId, children: _jsxs("label", { className: "input-checkbox-label", children: [_jsx("input", { checked: checked, disabled: disabled, type: "checkbox", className: "input-checkbox", onChange: onValueChanged }), labelText ? (_jsx("span", { className: "input-label-text", children: getTranslation(labelText, intl) })) : null, labelContent ? _jsx("span", { className: "input-label-text", children: labelContent }) : null] }) }));
|
|
@@ -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;AAUpG,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,9 +2,8 @@ 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 { set } from "lodash-es";
|
|
6
5
|
import { useIntl } from "react-intl";
|
|
7
|
-
import { _cloneDeep } from "@gooddata/util";
|
|
6
|
+
import { _cloneDeep, _set } from "@gooddata/util";
|
|
8
7
|
import { getTranslation } from "../../utils/translations.js";
|
|
9
8
|
import { DisabledBubbleMessage } from "../DisabledBubbleMessage.js";
|
|
10
9
|
export function ConfigSection({ id, valuePath, canBeToggled = false, toggleDisabled = false, toggledOn = true, propertiesMeta, properties = {}, title, subtitle, showDisabledMessage = false, className = "", pushData = () => { }, children, toggleMessageId, onToggle, }) {
|
|
@@ -30,7 +29,7 @@ export function ConfigSection({ id, valuePath, canBeToggled = false, toggleDisab
|
|
|
30
29
|
}
|
|
31
30
|
if (valuePath && properties && pushData) {
|
|
32
31
|
const clonedProperties = _cloneDeep(properties);
|
|
33
|
-
|
|
32
|
+
_set(clonedProperties, `controls.${valuePath}`, event.target.checked);
|
|
34
33
|
pushData({ properties: clonedProperties });
|
|
35
34
|
}
|
|
36
35
|
}, [onToggle, valuePath, properties, pushData]);
|
|
@@ -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;AAMzD,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,7 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { set } from "lodash-es";
|
|
3
2
|
import { useIntl } from "react-intl";
|
|
4
|
-
import { _cloneDeep } from "@gooddata/util";
|
|
3
|
+
import { _cloneDeep, _set } from "@gooddata/util";
|
|
5
4
|
import { getTranslation } from "../../utils/translations.js";
|
|
6
5
|
import { DisabledBubbleMessage } from "../DisabledBubbleMessage.js";
|
|
7
6
|
export function ConfigSubsection({ title, canBeToggled = false, toggleDisabled = false, toggledOn = true, pushData = () => { }, showDisabledMessage = false, valuePath, properties, axisType, children, }) {
|
|
@@ -9,7 +8,7 @@ export function ConfigSubsection({ title, canBeToggled = false, toggleDisabled =
|
|
|
9
8
|
const toggleValue = (event) => {
|
|
10
9
|
if (valuePath && properties && pushData) {
|
|
11
10
|
const clonedProperties = _cloneDeep(properties);
|
|
12
|
-
|
|
11
|
+
_set(clonedProperties, `controls.${valuePath}`, event.target.checked);
|
|
13
12
|
pushData({ properties: clonedProperties });
|
|
14
13
|
}
|
|
15
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":"AAUA,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,8 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { set } from "lodash-es";
|
|
3
2
|
import { useIntl } from "react-intl";
|
|
4
3
|
import { UiTooltip, useIdPrefixed } from "@gooddata/sdk-ui-kit";
|
|
5
|
-
import { _cloneDeep } from "@gooddata/util";
|
|
4
|
+
import { _cloneDeep, _set } from "@gooddata/util";
|
|
6
5
|
import { messages } from "../../../locales.js";
|
|
7
6
|
import { getTranslation } from "../../utils/translations.js";
|
|
8
7
|
export function ContinuousLineControl({ properties, valuePath = "continuousLine.enabled", checked = false, disabled = false, pushData, }) {
|
|
@@ -10,7 +9,7 @@ export function ContinuousLineControl({ properties, valuePath = "continuousLine.
|
|
|
10
9
|
const tooltipId = useIdPrefixed("continuous-line-tooltip");
|
|
11
10
|
const onValueChanged = (event) => {
|
|
12
11
|
const clonedProperties = _cloneDeep(properties);
|
|
13
|
-
|
|
12
|
+
_set(clonedProperties, `controls.${valuePath}`, event.target.checked);
|
|
14
13
|
pushData?.({ properties: clonedProperties });
|
|
15
14
|
};
|
|
16
15
|
const hasTooltip = !disabled;
|
|
@@ -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":"AAUA,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,8 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { set } from "lodash-es";
|
|
3
2
|
import { useIntl } from "react-intl";
|
|
4
3
|
import { UiTooltip, useIdPrefixed } from "@gooddata/sdk-ui-kit";
|
|
5
|
-
import { _cloneDeep } from "@gooddata/util";
|
|
4
|
+
import { _cloneDeep, _set } from "@gooddata/util";
|
|
6
5
|
import { messages } from "../../../locales.js";
|
|
7
6
|
import { getTranslation } from "../../utils/translations.js";
|
|
8
7
|
export function DistinctPointShapesControl({ properties, valuePath = "distinctPointShapes.enabled", checked = false, disabled = false, pushData, }) {
|
|
@@ -10,7 +9,7 @@ export function DistinctPointShapesControl({ properties, valuePath = "distinctPo
|
|
|
10
9
|
const tooltipId = useIdPrefixed("distinct-point-shapes-tooltip");
|
|
11
10
|
const onValueChanged = (event) => {
|
|
12
11
|
const clonedProperties = _cloneDeep(properties);
|
|
13
|
-
|
|
12
|
+
_set(clonedProperties, `controls.${valuePath}`, event.target.checked);
|
|
14
13
|
pushData?.({ properties: clonedProperties });
|
|
15
14
|
};
|
|
16
15
|
const hasTooltip = disabled;
|
|
@@ -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;
|
|
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;AAI/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,10 +1,9 @@
|
|
|
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 { set } from "lodash-es";
|
|
5
4
|
import { useIntl } from "react-intl";
|
|
6
5
|
import { Dropdown, DropdownButton, DropdownList, SingleSelectListItem, } from "@gooddata/sdk-ui-kit";
|
|
7
|
-
import { _cloneDeep } from "@gooddata/util";
|
|
6
|
+
import { _cloneDeep, _set } from "@gooddata/util";
|
|
8
7
|
import { getTranslation } from "../../utils/translations.js";
|
|
9
8
|
import { DisabledBubbleMessage } from "../DisabledBubbleMessage.js";
|
|
10
9
|
const alignPoints = ["bl tl", "tl bl", "br tr", "tr br"];
|
|
@@ -30,7 +29,7 @@ export const DropdownControl = memo(function DropdownControl({ valuePath, proper
|
|
|
30
29
|
// we must not change the properties at any cost, so deep clone for now.
|
|
31
30
|
// ideally we should use st. like immer with copy on write to not clone everything all the time
|
|
32
31
|
const clonedProperties = _cloneDeep(properties);
|
|
33
|
-
|
|
32
|
+
_set(clonedProperties, `controls.${valuePath}`, selectedItem.value);
|
|
34
33
|
pushData?.({ properties: clonedProperties });
|
|
35
34
|
};
|
|
36
35
|
const getDropdownButton = (selectedItem, disabled, isOpen, toggleDropdown) => {
|
|
@@ -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;
|
|
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;AAIhF,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,11 +1,10 @@
|
|
|
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 { set } from "lodash-es";
|
|
5
4
|
import { useIntl } from "react-intl";
|
|
6
5
|
import { PRESET_VIEWPORT_BOUNDS, isConcreteViewportPreset } from "@gooddata/sdk-ui-geo/internal";
|
|
7
6
|
import { Bubble, BubbleHoverTrigger } from "@gooddata/sdk-ui-kit";
|
|
8
|
-
import { _cloneDeep } from "@gooddata/util";
|
|
7
|
+
import { _cloneDeep, _set } from "@gooddata/util";
|
|
9
8
|
import { messages } from "../../../locales.js";
|
|
10
9
|
import { pushpinViewportDropdownItems } from "../../constants/dropdowns.js";
|
|
11
10
|
import { getTranslatedDropdownItems } from "../../utils/translations.js";
|
|
@@ -57,9 +56,9 @@ export function GeoViewportControl(props) {
|
|
|
57
56
|
: undefined;
|
|
58
57
|
if (presetBounds) {
|
|
59
58
|
// Switching from a preset to "custom": use preset bounds, clear center/zoom
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
59
|
+
_set(nextProperties, "controls.bounds", presetBounds);
|
|
60
|
+
_set(nextProperties, "controls.center", undefined);
|
|
61
|
+
_set(nextProperties, "controls.zoom", undefined);
|
|
63
62
|
pushData?.({
|
|
64
63
|
...data,
|
|
65
64
|
properties: nextProperties,
|
|
@@ -70,21 +69,21 @@ export function GeoViewportControl(props) {
|
|
|
70
69
|
// Switching to "custom" with no preset: use current map bounds if available,
|
|
71
70
|
// otherwise fall back to center/zoom
|
|
72
71
|
if (currentMapView.bounds) {
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
72
|
+
_set(nextProperties, "controls.bounds", currentMapView.bounds);
|
|
73
|
+
_set(nextProperties, "controls.center", undefined);
|
|
74
|
+
_set(nextProperties, "controls.zoom", undefined);
|
|
76
75
|
}
|
|
77
76
|
else {
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
77
|
+
_set(nextProperties, "controls.center", currentMapView.center);
|
|
78
|
+
_set(nextProperties, "controls.zoom", currentMapView.zoom);
|
|
79
|
+
_set(nextProperties, "controls.bounds", undefined);
|
|
81
80
|
}
|
|
82
81
|
}
|
|
83
82
|
}
|
|
84
83
|
else {
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
84
|
+
_set(nextProperties, "controls.center", undefined);
|
|
85
|
+
_set(nextProperties, "controls.zoom", undefined);
|
|
86
|
+
_set(nextProperties, "controls.bounds", undefined);
|
|
88
87
|
}
|
|
89
88
|
pushData?.({
|
|
90
89
|
...data,
|
|
@@ -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;
|
|
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;AAGf,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"}
|
|
@@ -2,9 +2,8 @@ import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-run
|
|
|
2
2
|
// (C) 2019-2026 GoodData Corporation
|
|
3
3
|
import { useEffect, useRef, useState, } from "react";
|
|
4
4
|
import cx from "classnames";
|
|
5
|
-
import { set } from "lodash-es";
|
|
6
5
|
import { FormattedMessage, useIntl } from "react-intl";
|
|
7
|
-
import { _cloneDeep } from "@gooddata/util";
|
|
6
|
+
import { _cloneDeep, _set } from "@gooddata/util";
|
|
8
7
|
import { getTranslation } from "../../utils/translations.js";
|
|
9
8
|
import { DisabledBubbleMessage } from "../DisabledBubbleMessage.js";
|
|
10
9
|
const MAX_NUMBER_LENGTH = 15;
|
|
@@ -57,7 +56,7 @@ export function InputControl({ valuePath, properties, labelText, value: propValu
|
|
|
57
56
|
const emitData = () => {
|
|
58
57
|
const modifiedData = modifyDataForSending(value);
|
|
59
58
|
const clonedProperties = _cloneDeep(properties);
|
|
60
|
-
|
|
59
|
+
_set(clonedProperties, `controls.${valuePath}`, modifiedData);
|
|
61
60
|
setValue(modifiedData);
|
|
62
61
|
pushData?.({ properties: clonedProperties });
|
|
63
62
|
justEmittedRef.current = true;
|
|
@@ -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":"AAUA,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,9 +1,8 @@
|
|
|
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 { set } from "lodash-es";
|
|
5
4
|
import { useIntl } from "react-intl";
|
|
6
|
-
import { _cloneDeep } from "@gooddata/util";
|
|
5
|
+
import { _cloneDeep, _set } from "@gooddata/util";
|
|
7
6
|
import { messages } from "../../../locales.js";
|
|
8
7
|
import { ConfigSection } from "./ConfigSection.js";
|
|
9
8
|
import { DropdownControl } from "./DropdownControl.js";
|
|
@@ -26,14 +25,14 @@ export function PagingSection({ properties, propertiesMeta, pushData, isDisabled
|
|
|
26
25
|
// When enabling pagination, ensure pageSize is set
|
|
27
26
|
const clonedProperties = _cloneDeep(data.properties);
|
|
28
27
|
if (!clonedProperties?.controls?.["pageSize"]) {
|
|
29
|
-
|
|
28
|
+
_set(clonedProperties, "controls.pageSize", DEFAULT_PAGE_SIZE);
|
|
30
29
|
}
|
|
31
30
|
pushData?.({ ...data, properties: clonedProperties });
|
|
32
31
|
}
|
|
33
32
|
else if (newPaginationEnabled === false) {
|
|
34
33
|
// When disabling pagination, also reset pageSize
|
|
35
34
|
const clonedProperties = _cloneDeep(data.properties);
|
|
36
|
-
|
|
35
|
+
_set(clonedProperties, "controls.pageSize", undefined);
|
|
37
36
|
pushData?.({ ...data, properties: clonedProperties });
|
|
38
37
|
}
|
|
39
38
|
else {
|
|
@@ -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;AAQ1E,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,9 +1,8 @@
|
|
|
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 { set } from "lodash-es";
|
|
5
4
|
import { useIntl } from "react-intl";
|
|
6
|
-
import { _cloneDeep } from "@gooddata/util";
|
|
5
|
+
import { _cloneDeep, _set } from "@gooddata/util";
|
|
7
6
|
import { messages } from "../../../locales.js";
|
|
8
7
|
import { pushpinShapeTypeDropdownItems } from "../../constants/dropdowns.js";
|
|
9
8
|
import { getTranslatedDropdownItems } from "../../utils/translations.js";
|
|
@@ -46,7 +45,7 @@ export function PushpinShapeControl(props) {
|
|
|
46
45
|
const nextShape = data.properties?.controls?.["points"]?.shapeType;
|
|
47
46
|
if (nextShape !== "oneIcon" && data.properties?.controls?.["points"]?.icon !== undefined) {
|
|
48
47
|
const sanitized = _cloneDeep(data.properties);
|
|
49
|
-
|
|
48
|
+
_set(sanitized, "controls.points.icon", undefined);
|
|
50
49
|
pushData({ ...data, properties: sanitized });
|
|
51
50
|
return;
|
|
52
51
|
}
|
|
@@ -67,7 +66,7 @@ export function PushpinShapeControl(props) {
|
|
|
67
66
|
}
|
|
68
67
|
lastAutoSelectedIcon.current = firstSpriteIcon;
|
|
69
68
|
const clonedProperties = _cloneDeep(properties);
|
|
70
|
-
|
|
69
|
+
_set(clonedProperties, "controls.points.icon", firstSpriteIcon);
|
|
71
70
|
pushData({ properties: clonedProperties });
|
|
72
71
|
}, [shapeType, icon, spriteIcons, properties, pushData]);
|
|
73
72
|
// Keep the shape section visible when metrics lock the current valid mode to circle.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AdvancedSection.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/configurationControls/advanced/AdvancedSection.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AdvancedSection.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/configurationControls/advanced/AdvancedSection.tsx"],"names":[],"mappings":"AAOA,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,10 +2,9 @@ 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 { set } from "lodash-es";
|
|
6
5
|
import { useIntl } from "react-intl";
|
|
7
6
|
import { Button } from "@gooddata/sdk-ui-kit";
|
|
8
|
-
import { _cloneDeep } from "@gooddata/util";
|
|
7
|
+
import { _cloneDeep, _set } from "@gooddata/util";
|
|
9
8
|
import { messages } from "../../../../locales.js";
|
|
10
9
|
import { ConfigSection } from "../ConfigSection.js";
|
|
11
10
|
import { ConfigEditor } from "./ConfigEditor.js";
|
|
@@ -20,7 +19,7 @@ export const AdvancedSection = memo(function AdvancedSection({ properties, prope
|
|
|
20
19
|
const configurationValue = properties?.controls?.["chartConfigOverride"];
|
|
21
20
|
const onChange = (value) => {
|
|
22
21
|
const clonedProperties = _cloneDeep(properties);
|
|
23
|
-
|
|
22
|
+
_set(clonedProperties, `controls.${valuePath}`, value);
|
|
24
23
|
pushData?.({ properties: clonedProperties });
|
|
25
24
|
setShowDialog(false);
|
|
26
25
|
};
|
|
@@ -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;AAYvC,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,9 +1,8 @@
|
|
|
1
1
|
import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import cx from "classnames";
|
|
3
|
-
import { set } from "lodash-es";
|
|
4
3
|
import { useIntl } from "react-intl";
|
|
5
4
|
import { Button } from "@gooddata/sdk-ui-kit";
|
|
6
|
-
import { _cloneDeep } from "@gooddata/util";
|
|
5
|
+
import { _cloneDeep, _set } from "@gooddata/util";
|
|
7
6
|
import { messages } from "../../../../locales.js";
|
|
8
7
|
import { fillDropdownItems } from "../../../constants/dropdowns.js";
|
|
9
8
|
import { getColoredInputItems, getLineStyleMappingId, getLineStyleProperties, getMappingHeaderId, getProperties, removeColorMappingFromProperties, } from "../../../utils/colors.js";
|
|
@@ -58,9 +57,9 @@ export function ColorsSection({ controlsDisabled, properties, propertiesMeta, pu
|
|
|
58
57
|
if (isDefaultColorMapping()) {
|
|
59
58
|
return;
|
|
60
59
|
}
|
|
61
|
-
let updatedProperties =
|
|
60
|
+
let updatedProperties = _set(_cloneDeep(properties), "controls.colorMapping", undefined);
|
|
62
61
|
if (supportsLineStyles) {
|
|
63
|
-
updatedProperties =
|
|
62
|
+
updatedProperties = _set(updatedProperties, "controls.lineStyleMapping", undefined);
|
|
64
63
|
}
|
|
65
64
|
pushData?.({ messageId: COLOR_MAPPING_CHANGED, properties: updatedProperties, references: {} });
|
|
66
65
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ColorCheckbox.d.ts","sourceRoot":"","sources":["../../../../../../../src/internal/components/configurationControls/comparison/indicators/colorsControl/ColorCheckbox.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ColorCheckbox.d.ts","sourceRoot":"","sources":["../../../../../../../src/internal/components/configurationControls/comparison/indicators/colorsControl/ColorCheckbox.tsx"],"names":[],"mappings":"AAIA,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,9 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
// (C) 2023-2026 GoodData Corporation
|
|
3
|
-
import { set } from "lodash-es";
|
|
4
3
|
import { useIntl } from "react-intl";
|
|
5
4
|
import { Checkbox } from "@gooddata/sdk-ui-kit";
|
|
6
|
-
import { _cloneDeep } from "@gooddata/util";
|
|
5
|
+
import { _cloneDeep, _set } from "@gooddata/util";
|
|
7
6
|
import { comparisonMessages } from "../../../../../../locales.js";
|
|
8
7
|
import { DisabledBubbleMessage } from "../../../../DisabledBubbleMessage.js";
|
|
9
8
|
import { COMPARISON_COLOR_CONFIG_DISABLED } from "../../ComparisonValuePath.js";
|
|
@@ -13,7 +12,7 @@ export function ColorCheckbox({ disabled, showDisabledMessage, properties, pushD
|
|
|
13
12
|
const label = formatMessage(comparisonMessages["colorsConfigTitle"]);
|
|
14
13
|
const handleChange = (value) => {
|
|
15
14
|
const clonedProperties = _cloneDeep(properties);
|
|
16
|
-
|
|
15
|
+
_set(clonedProperties.controls, COMPARISON_COLOR_CONFIG_DISABLED, !value);
|
|
17
16
|
pushData({ properties: clonedProperties });
|
|
18
17
|
};
|
|
19
18
|
return (_jsx(DisabledBubbleMessage, { showDisabledMessage: !!showDisabledMessage, children: _jsx(Checkbox, { text: label, value: checked, disabled: disabled, onChange: handleChange }) }));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ColorItem.d.ts","sourceRoot":"","sources":["../../../../../../../src/internal/components/configurationControls/comparison/indicators/colorsControl/ColorItem.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ColorItem.d.ts","sourceRoot":"","sources":["../../../../../../../src/internal/components/configurationControls/comparison/indicators/colorsControl/ColorItem.tsx"],"names":[],"mappings":"AAEA,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,9 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
// (C) 2023-2026 GoodData Corporation
|
|
3
|
-
import { set } from "lodash-es";
|
|
4
3
|
import { useIntl } from "react-intl";
|
|
5
4
|
import { getComparisonRgbColor } from "@gooddata/sdk-ui-charts";
|
|
6
|
-
import { _cloneDeep } from "@gooddata/util";
|
|
5
|
+
import { _cloneDeep, _set } from "@gooddata/util";
|
|
7
6
|
import { DisabledBubbleMessage } from "../../../../DisabledBubbleMessage.js";
|
|
8
7
|
import { ColorDropdown } from "../../../colors/colorDropdown/ColorDropdown.js";
|
|
9
8
|
import { ColoredItemContent } from "../../../colors/coloredItemsList/ColoredItemContent.js";
|
|
@@ -14,7 +13,7 @@ export function ColorItem({ disabled, align, showDisabledMessage, color, colorTy
|
|
|
14
13
|
const chartFill = properties?.controls?.["chartFill"];
|
|
15
14
|
const handleColorSelected = (color) => {
|
|
16
15
|
const clonedProperties = _cloneDeep(properties);
|
|
17
|
-
|
|
16
|
+
_set(clonedProperties.controls, valuePath, color);
|
|
18
17
|
pushData({ properties: clonedProperties });
|
|
19
18
|
};
|
|
20
19
|
return (_jsx(DisabledBubbleMessage, { showDisabledMessage: !!showDisabledMessage, children: _jsx(ColorDropdown, { colorPalette: colorPalette, onColorSelected: handleColorSelected, selectedColorItem: color, disabled: disabled, children: _jsx(ColoredItemContent, { text: label, align: align, color: rgbColor, chartFill: chartFill }) }) }));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ColorResetButton.d.ts","sourceRoot":"","sources":["../../../../../../../src/internal/components/configurationControls/comparison/indicators/colorsControl/ColorResetButton.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ColorResetButton.d.ts","sourceRoot":"","sources":["../../../../../../../src/internal/components/configurationControls/comparison/indicators/colorsControl/ColorResetButton.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;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,10 +1,9 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
// (C) 2023-2026 GoodData Corporation
|
|
3
3
|
import cx from "classnames";
|
|
4
|
-
import { set } from "lodash-es";
|
|
5
4
|
import { useIntl } from "react-intl";
|
|
6
5
|
import { Button } from "@gooddata/sdk-ui-kit";
|
|
7
|
-
import { _cloneDeep } from "@gooddata/util";
|
|
6
|
+
import { _cloneDeep, _set } from "@gooddata/util";
|
|
8
7
|
import { messages } from "../../../../../../locales.js";
|
|
9
8
|
import { isComparisonDefaultColors } from "../../../../../utils/comparisonHelper.js";
|
|
10
9
|
import { COMPARISON_COLOR_CONFIG_EQUALS, COMPARISON_COLOR_CONFIG_NEGATIVE, COMPARISON_COLOR_CONFIG_POSITIVE, } from "../../ComparisonValuePath.js";
|
|
@@ -14,9 +13,9 @@ export function ColorResetButton({ disabled, properties, pushData }) {
|
|
|
14
13
|
const isDefaultColors = isComparisonDefaultColors(properties?.controls?.comparison?.colorConfig);
|
|
15
14
|
const resetColors = () => {
|
|
16
15
|
const clonedProperties = _cloneDeep(properties);
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
16
|
+
_set(clonedProperties.controls, COMPARISON_COLOR_CONFIG_POSITIVE, undefined);
|
|
17
|
+
_set(clonedProperties.controls, COMPARISON_COLOR_CONFIG_NEGATIVE, undefined);
|
|
18
|
+
_set(clonedProperties.controls, COMPARISON_COLOR_CONFIG_EQUALS, undefined);
|
|
20
19
|
pushData({ properties: clonedProperties });
|
|
21
20
|
};
|
|
22
21
|
const classNames = cx(["gd-color-reset-colors-section", "s-gd-color-reset-colors-section"], {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NumberFormatControl.d.ts","sourceRoot":"","sources":["../../../../../../../src/internal/components/configurationControls/comparison/values/numberFormat/NumberFormatControl.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"NumberFormatControl.d.ts","sourceRoot":"","sources":["../../../../../../../src/internal/components/configurationControls/comparison/values/numberFormat/NumberFormatControl.tsx"],"names":[],"mappings":"AAMA,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,10 +1,9 @@
|
|
|
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 { set } from "lodash-es";
|
|
5
4
|
import { FormattedMessage, useIntl } from "react-intl";
|
|
6
5
|
import { MeasureNumberFormat } from "@gooddata/sdk-ui-kit";
|
|
7
|
-
import { _cloneDeep } from "@gooddata/util";
|
|
6
|
+
import { _cloneDeep, _set } from "@gooddata/util";
|
|
8
7
|
import { getPresets, getTemplates } from "../../../../../utils/comparisonHelper.js";
|
|
9
8
|
import { DisabledBubbleMessage } from "../../../../DisabledBubbleMessage.js";
|
|
10
9
|
import { NumberFormatToggleButton } from "./NumberFormatToggleButton.js";
|
|
@@ -12,7 +11,7 @@ export function NumberFormatControl({ disabled, valuePath, labelText, format, sh
|
|
|
12
11
|
const intl = useIntl();
|
|
13
12
|
const selectFormat = (format) => {
|
|
14
13
|
const clonedProperties = _cloneDeep(properties);
|
|
15
|
-
|
|
14
|
+
_set(clonedProperties.controls, valuePath, format);
|
|
16
15
|
pushData({ properties: clonedProperties });
|
|
17
16
|
};
|
|
18
17
|
const presets = useMemo(() => getPresets(intl), [intl]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConditionalFormattingSection.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/configurationControls/conditionalFormatting/ConditionalFormattingSection.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ConditionalFormattingSection.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/configurationControls/conditionalFormatting/ConditionalFormattingSection.tsx"],"names":[],"mappings":"AAOA,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"}
|