@gooddata/sdk-ui-ext 11.68.0-alpha.8 → 11.68.0
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 +45 -376
- package/esm/internal/components/BaseVisualization.d.ts.map +1 -1
- package/esm/internal/components/BaseVisualization.js +2 -3
- 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/LineShapeControl.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/LineShapeControl.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/advanced/ConfigEditor.js +2 -2
- 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 +3 -3
- 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 +2 -4
- 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/de-DE.localization-bundle.d.ts +7 -0
- package/esm/internal/translations/de-DE.localization-bundle.d.ts.map +1 -1
- package/esm/internal/translations/de-DE.localization-bundle.js +12 -5
- package/esm/internal/translations/en-AU.localization-bundle.d.ts +7 -0
- package/esm/internal/translations/en-AU.localization-bundle.d.ts.map +1 -1
- package/esm/internal/translations/en-AU.localization-bundle.js +7 -0
- package/esm/internal/translations/en-GB.localization-bundle.d.ts +7 -0
- package/esm/internal/translations/en-GB.localization-bundle.d.ts.map +1 -1
- package/esm/internal/translations/en-GB.localization-bundle.js +7 -0
- 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/translations/es-419.localization-bundle.d.ts +7 -0
- package/esm/internal/translations/es-419.localization-bundle.d.ts.map +1 -1
- package/esm/internal/translations/es-419.localization-bundle.js +7 -0
- package/esm/internal/translations/es-ES.localization-bundle.d.ts +7 -0
- package/esm/internal/translations/es-ES.localization-bundle.d.ts.map +1 -1
- package/esm/internal/translations/es-ES.localization-bundle.js +7 -0
- package/esm/internal/translations/fi-FI.localization-bundle.d.ts +7 -0
- package/esm/internal/translations/fi-FI.localization-bundle.d.ts.map +1 -1
- package/esm/internal/translations/fi-FI.localization-bundle.js +7 -0
- package/esm/internal/translations/fr-CA.localization-bundle.d.ts +7 -0
- package/esm/internal/translations/fr-CA.localization-bundle.d.ts.map +1 -1
- package/esm/internal/translations/fr-CA.localization-bundle.js +7 -0
- package/esm/internal/translations/fr-FR.localization-bundle.d.ts +7 -0
- package/esm/internal/translations/fr-FR.localization-bundle.d.ts.map +1 -1
- package/esm/internal/translations/fr-FR.localization-bundle.js +7 -0
- package/esm/internal/translations/id-ID.localization-bundle.d.ts +7 -0
- package/esm/internal/translations/id-ID.localization-bundle.d.ts.map +1 -1
- package/esm/internal/translations/id-ID.localization-bundle.js +7 -0
- package/esm/internal/translations/it-IT.localization-bundle.d.ts +7 -0
- package/esm/internal/translations/it-IT.localization-bundle.d.ts.map +1 -1
- package/esm/internal/translations/it-IT.localization-bundle.js +7 -0
- package/esm/internal/translations/ja-JP.localization-bundle.d.ts +7 -0
- package/esm/internal/translations/ja-JP.localization-bundle.d.ts.map +1 -1
- package/esm/internal/translations/ja-JP.localization-bundle.js +7 -0
- package/esm/internal/translations/ko-KR.localization-bundle.d.ts +7 -0
- package/esm/internal/translations/ko-KR.localization-bundle.d.ts.map +1 -1
- package/esm/internal/translations/ko-KR.localization-bundle.js +7 -0
- package/esm/internal/translations/nl-NL.localization-bundle.d.ts +7 -0
- package/esm/internal/translations/nl-NL.localization-bundle.d.ts.map +1 -1
- package/esm/internal/translations/nl-NL.localization-bundle.js +7 -0
- package/esm/internal/translations/pl-PL.localization-bundle.d.ts +7 -0
- package/esm/internal/translations/pl-PL.localization-bundle.d.ts.map +1 -1
- package/esm/internal/translations/pl-PL.localization-bundle.js +7 -0
- package/esm/internal/translations/pt-BR.localization-bundle.d.ts +7 -0
- package/esm/internal/translations/pt-BR.localization-bundle.d.ts.map +1 -1
- package/esm/internal/translations/pt-BR.localization-bundle.js +7 -0
- package/esm/internal/translations/pt-PT.localization-bundle.d.ts +7 -0
- package/esm/internal/translations/pt-PT.localization-bundle.d.ts.map +1 -1
- package/esm/internal/translations/pt-PT.localization-bundle.js +7 -0
- package/esm/internal/translations/ru-RU.localization-bundle.d.ts +7 -0
- package/esm/internal/translations/ru-RU.localization-bundle.d.ts.map +1 -1
- package/esm/internal/translations/ru-RU.localization-bundle.js +7 -0
- package/esm/internal/translations/sl-SI.localization-bundle.d.ts +7 -0
- package/esm/internal/translations/sl-SI.localization-bundle.d.ts.map +1 -1
- package/esm/internal/translations/sl-SI.localization-bundle.js +7 -0
- package/esm/internal/translations/th-TH.localization-bundle.d.ts +7 -0
- package/esm/internal/translations/th-TH.localization-bundle.d.ts.map +1 -1
- package/esm/internal/translations/th-TH.localization-bundle.js +7 -0
- package/esm/internal/translations/tr-TR.localization-bundle.d.ts +7 -0
- package/esm/internal/translations/tr-TR.localization-bundle.d.ts.map +1 -1
- package/esm/internal/translations/tr-TR.localization-bundle.js +7 -0
- package/esm/internal/translations/uk-UA.localization-bundle.d.ts +7 -0
- package/esm/internal/translations/uk-UA.localization-bundle.d.ts.map +1 -1
- package/esm/internal/translations/uk-UA.localization-bundle.js +7 -0
- package/esm/internal/translations/vi-VN.localization-bundle.d.ts +7 -0
- package/esm/internal/translations/vi-VN.localization-bundle.d.ts.map +1 -1
- package/esm/internal/translations/vi-VN.localization-bundle.js +7 -0
- package/esm/internal/translations/zh-HK.localization-bundle.d.ts +7 -0
- package/esm/internal/translations/zh-HK.localization-bundle.d.ts.map +1 -1
- package/esm/internal/translations/zh-HK.localization-bundle.js +7 -0
- package/esm/internal/translations/zh-Hans.localization-bundle.d.ts +7 -0
- package/esm/internal/translations/zh-Hans.localization-bundle.d.ts.map +1 -1
- package/esm/internal/translations/zh-Hans.localization-bundle.js +7 -0
- package/esm/internal/translations/zh-Hant.localization-bundle.d.ts +7 -0
- package/esm/internal/translations/zh-Hant.localization-bundle.d.ts.map +1 -1
- package/esm/internal/translations/zh-Hant.localization-bundle.js +7 -0
- package/esm/internal/utils/bucketConfig.d.ts.map +1 -1
- package/esm/internal/utils/bucketConfig.js +2 -3
- package/esm/internal/utils/bucketHelper.js +7 -7
- 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/drillablePredicates.d.ts.map +1 -1
- package/esm/internal/utils/drillablePredicates.js +4 -4
- package/esm/internal/utils/embeddingCodeGenerator/getReactEmbeddingCodeGenerator.d.ts.map +1 -1
- package/esm/internal/utils/embeddingCodeGenerator/getReactEmbeddingCodeGenerator.js +5 -6
- package/esm/internal/utils/propertiesHelper.js +8 -8
- 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/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
|
@@ -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":"LineShapeControl.d.ts","sourceRoot":"","sources":["../../../../src/internal/components/configurationControls/LineShapeControl.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"LineShapeControl.d.ts","sourceRoot":"","sources":["../../../../src/internal/components/configurationControls/LineShapeControl.tsx"],"names":[],"mappings":"AAMA,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,10 +1,9 @@
|
|
|
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 { merge } from "lodash-es";
|
|
5
4
|
import { FormattedMessage, useIntl } from "react-intl";
|
|
6
5
|
import { UiButtonSegmentedControl, UiIconButton, UiTooltip } from "@gooddata/sdk-ui-kit";
|
|
7
|
-
import { _cloneDeep } from "@gooddata/util";
|
|
6
|
+
import { _cloneDeep, _merge } from "@gooddata/util";
|
|
8
7
|
import { messages } from "../../../locales.js";
|
|
9
8
|
export function LineShapeControl({ disabled, properties, pushData }) {
|
|
10
9
|
const labelId = useId();
|
|
@@ -25,7 +24,7 @@ export function LineShapeControl({ disabled, properties, pushData }) {
|
|
|
25
24
|
return;
|
|
26
25
|
}
|
|
27
26
|
pushData({
|
|
28
|
-
properties:
|
|
27
|
+
properties: _merge(_cloneDeep(properties), {
|
|
29
28
|
controls: { lineShape: value },
|
|
30
29
|
}),
|
|
31
30
|
});
|
|
@@ -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
|
};
|
|
@@ -2,9 +2,9 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
// (C) 2024-2026 GoodData Corporation
|
|
3
3
|
import { useState } from "react";
|
|
4
4
|
import * as jsYaml from "js-yaml";
|
|
5
|
-
import { merge } from "lodash-es";
|
|
6
5
|
import { useIntl } from "react-intl";
|
|
7
6
|
import { Button, Hyperlink, Overlay } from "@gooddata/sdk-ui-kit";
|
|
7
|
+
import { _merge } from "@gooddata/util";
|
|
8
8
|
import { messages } from "../../../../locales.js";
|
|
9
9
|
import { CodeMirrorEditor } from "./CodeMirrorEditor.js";
|
|
10
10
|
import { SnippetHeader, SnippetItem } from "./SnippetItem.js";
|
|
@@ -26,7 +26,7 @@ export function ConfigEditor({ value, onSubmit, onCancel }) {
|
|
|
26
26
|
}
|
|
27
27
|
try {
|
|
28
28
|
const currentYamlValueAsJson = jsYaml.load(currentYamlValue);
|
|
29
|
-
const mergedJson =
|
|
29
|
+
const mergedJson = _merge(currentYamlValueAsJson, snippet.value);
|
|
30
30
|
setCurrentYamlValue(jsYaml.dump(mergedJson));
|
|
31
31
|
}
|
|
32
32
|
catch (e) {
|
|
@@ -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"}
|
|
@@ -2,11 +2,10 @@ 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 { set } from "lodash-es";
|
|
6
5
|
import { useIntl } from "react-intl";
|
|
7
6
|
import { isSemanticConditionalFormattingEnabled, } from "@gooddata/sdk-model";
|
|
8
7
|
import { Button, UiIconButton } from "@gooddata/sdk-ui-kit";
|
|
9
|
-
import { _cloneDeep } from "@gooddata/util";
|
|
8
|
+
import { _cloneDeep, _set } from "@gooddata/util";
|
|
10
9
|
import { conditionalFormattingMessages } from "../../../../locales.js";
|
|
11
10
|
import { ConfigSection } from "../ConfigSection.js";
|
|
12
11
|
import { ConditionalFormattingDialog } from "./ConditionalFormattingDialog.js";
|
|
@@ -134,7 +133,7 @@ export function ConditionalFormattingSection({ properties, propertiesMeta, insig
|
|
|
134
133
|
// Spread the existing config so version (and any future cross-stack fields) survive an edit.
|
|
135
134
|
const next = withSuppressedTargets({ ...config, enabled: enabledNext, rules: rulesNext }, prunedSuppressedTargets);
|
|
136
135
|
const cloned = _cloneDeep(properties ?? {});
|
|
137
|
-
|
|
136
|
+
_set(cloned, "controls.conditionalFormatting", next);
|
|
138
137
|
pushData?.({ properties: cloned });
|
|
139
138
|
};
|
|
140
139
|
// The one place that edits `suppressedTargets` membership for a single target — every other commit
|
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":"AAYA,OAAO,EAAE,KAAK,wBAAwB,EAAE,MAAM,sCAAsC,CAAC;AAarF,MAAM,WAAW,0BAA0B;IACvC,gBAAgB,EAAE,OAAO,CAAC;IAC1B,UAAU,CAAC,EAAE,wBAAwB,CAAC;IACtC,cAAc,CAAC,EAAE,GAAG,CAAC;IACrB,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,GAAG,KAAK,IAAI,CAAC;CAClC;AAED,wBAAgB,oBAAoB,CAAC,EACjC,gBAAwB,EACxB,UAAe,EACf,cAAmB,EACnB,QAAmB,GACtB,EAAE,0BAA0B,2CA2H5B"}
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
// (C) 2026 GoodData Corporation
|
|
3
3
|
import { useEffect, useId, useRef, useState } from "react";
|
|
4
|
-
import { set } from "lodash-es";
|
|
5
4
|
import { FormattedMessage, useIntl } from "react-intl";
|
|
6
5
|
import { useDebounce } from "@gooddata/sdk-ui";
|
|
7
6
|
import { UiIcon, UiLink } 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 { customTooltipPlacementDropdownItems } from "../../../constants/dropdowns.js";
|
|
11
10
|
import { getTranslatedDropdownItems } from "../../../utils/translations.js";
|
|
@@ -33,7 +32,7 @@ export function CustomTooltipSection({ controlsDisabled = false, properties = {}
|
|
|
33
32
|
const pushContent = (newContent) => {
|
|
34
33
|
lastPushedContentRef.current = newContent;
|
|
35
34
|
const clonedProperties = _cloneDeep(properties);
|
|
36
|
-
|
|
35
|
+
_set(clonedProperties, "controls.customTooltip.content", newContent);
|
|
37
36
|
pushData({ properties: clonedProperties });
|
|
38
37
|
};
|
|
39
38
|
const pushContentRef = useRef(pushContent);
|