@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
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
// (C) 2019-2026 GoodData Corporation
|
|
2
2
|
// eslint-disable-next-line no-restricted-imports
|
|
3
|
-
import { get, has
|
|
3
|
+
import { get, has } from "lodash-es";
|
|
4
4
|
import { bucketsIsEmpty, insightBuckets, insightProperties, insightVisualizationUrl, } from "@gooddata/sdk-model";
|
|
5
5
|
import { BucketNames } from "@gooddata/sdk-ui";
|
|
6
|
-
import { _cloneDeep, _isEmpty } from "@gooddata/util";
|
|
6
|
+
import { _cloneDeep, _isEmpty, _set } from "@gooddata/util";
|
|
7
7
|
import { AXIS } from "../constants/axis.js";
|
|
8
8
|
import { PROPERTY_CONTROLS } from "../constants/properties.js";
|
|
9
9
|
import { OPTIONAL_STACKING_PROPERTIES } from "../constants/supportedProperties.js";
|
|
@@ -12,7 +12,7 @@ import { getAllMeasuresShowOnSecondaryAxis, getItemsCount, getItemsLocalIdentifi
|
|
|
12
12
|
export function getSupportedPropertiesControls(visualizationControlsProperties, supportedPropertiesList) {
|
|
13
13
|
const clonedControls = _cloneDeep(visualizationControlsProperties);
|
|
14
14
|
if (supportedPropertiesList) {
|
|
15
|
-
return supportedPropertiesList.reduce((props, current) => has(clonedControls, current) ?
|
|
15
|
+
return supportedPropertiesList.reduce((props, current) => has(clonedControls, current) ? _set(props, current, get(clonedControls, current)) : props, {});
|
|
16
16
|
}
|
|
17
17
|
return {};
|
|
18
18
|
}
|
|
@@ -40,8 +40,8 @@ export function setSecondaryMeasures(referencePoint, axisName) {
|
|
|
40
40
|
0: AXIS.PRIMARY,
|
|
41
41
|
[allMeasures.length]: AXIS.SECONDARY,
|
|
42
42
|
}[secondaryMeasures.length] || AXIS.DUAL;
|
|
43
|
-
|
|
44
|
-
|
|
43
|
+
_set(newReferencePoint, path, secondaryAxis);
|
|
44
|
+
_set(newReferencePoint, UICONFIG_AXIS, axis);
|
|
45
45
|
return newReferencePoint;
|
|
46
46
|
}
|
|
47
47
|
export function isEmptyObject(obj) {
|
|
@@ -255,13 +255,13 @@ export function getColumnHeadersPositionFromProperties(visualizationProperties)
|
|
|
255
255
|
}
|
|
256
256
|
export function getLegendConfiguration(controlProperties, insight) {
|
|
257
257
|
const legendPosition = getLegendPosition(controlProperties, insight);
|
|
258
|
-
|
|
258
|
+
_set(controlProperties, "legend.position", legendPosition);
|
|
259
259
|
return controlProperties;
|
|
260
260
|
}
|
|
261
261
|
export function getLegendConfigurationDashboardsEnv(controlProperties, options) {
|
|
262
262
|
const legendPosition = getLegendPositionDashboardsEnv(controlProperties, options);
|
|
263
|
-
|
|
264
|
-
|
|
263
|
+
_set(controlProperties, "legend.position", legendPosition);
|
|
264
|
+
_set(controlProperties, "legend.responsive", "autoPositionWithPopup");
|
|
265
265
|
return controlProperties;
|
|
266
266
|
}
|
|
267
267
|
export function getChartSupportedControls(controlProperties, insight) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../../src/internal/utils/translations.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../../src/internal/utils/translations.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAE5C,OAAO,EAEH,KAAK,aAAa,EAErB,MAAM,kBAAkB,CAAC;AAG1B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAE/D,wBAAgB,cAAc,CAC1B,aAAa,EAAE,MAAM,GAAG,SAAS,EACjC,IAAI,CAAC,EAAE,SAAS,EAChB,MAAM,GAAE;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;CAAO,GACvC,MAAM,CAKR;AAED,wBAAgB,0BAA0B,CAAC,aAAa,EAAE,aAAa,EAAE,EAAE,IAAI,EAAE,SAAS,GAAG,aAAa,EAAE,CAM3G;AAQD;;GAEG;AACH,eAAO,MAAM,gBAAgB,UAAU,CAAC;AAyDxC;;;;;GAKG;AACH,eAAO,MAAM,eAAe,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,OAAO,CAAC,aAAa,CAAqC,CAAC;AAE7G,eAAO,MAAM,gBAAgB;;;;CAK5B,CAAC"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
// (C) 2019-2026 GoodData Corporation
|
|
2
|
-
import { memoize } from "lodash-es";
|
|
3
2
|
import { DEFAULT_MESSAGES as DEFAULT_MESSAGES_SDK_UI, resolveMessages as sdkUiresolveMessages, } from "@gooddata/sdk-ui";
|
|
4
|
-
import { removeMetadata } from "@gooddata/util";
|
|
3
|
+
import { _memoize, removeMetadata } from "@gooddata/util";
|
|
5
4
|
export function getTranslation(translationId, intl, values = {}) {
|
|
6
5
|
if (!translationId) {
|
|
7
6
|
return "";
|
|
@@ -80,7 +79,7 @@ const resolveMessagesInternal = async (locale) => {
|
|
|
80
79
|
*
|
|
81
80
|
* @internal
|
|
82
81
|
*/
|
|
83
|
-
export const resolveMessages =
|
|
82
|
+
export const resolveMessages = _memoize(resolveMessagesInternal);
|
|
84
83
|
export const DEFAULT_MESSAGES = {
|
|
85
84
|
[DEFAULT_LANGUAGE]: {
|
|
86
85
|
...DEFAULT_OWN_MESSAGES,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"areaChartUiConfigHelper.d.ts","sourceRoot":"","sources":["../../../../src/internal/utils/uiConfigHelpers/areaChartUiConfigHelper.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"areaChartUiConfigHelper.d.ts","sourceRoot":"","sources":["../../../../src/internal/utils/uiConfigHelpers/areaChartUiConfigHelper.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;AAQ5C,OAAO,EAGH,KAAK,uBAAuB,EAE/B,MAAM,mCAAmC,CAAC;AAiE3C,wBAAgB,oBAAoB,CAChC,cAAc,EAAE,uBAAuB,EACvC,IAAI,EAAE,SAAS,EACf,iBAAiB,EAAE,MAAM,GAC1B,uBAAuB,CAuCzB"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
// (C) 2019-2026 GoodData Corporation
|
|
2
|
-
import { set } from "lodash-es";
|
|
3
2
|
import { BucketNames } from "@gooddata/sdk-ui";
|
|
4
|
-
import { _cloneDeep } from "@gooddata/util";
|
|
3
|
+
import { _cloneDeep, _set } from "@gooddata/util";
|
|
5
4
|
import { messages } from "../../../locales.js";
|
|
6
5
|
import { ATTRIBUTE, BUCKETS, DATE } from "../../constants/bucket.js";
|
|
7
6
|
import { UICONFIG } from "../../constants/uiConfig.js";
|
|
@@ -46,7 +45,7 @@ function setAreaChartBucketWarningMessages(referencePoint, messageConfig) {
|
|
|
46
45
|
if (!uiConfig) {
|
|
47
46
|
return uiConfig;
|
|
48
47
|
}
|
|
49
|
-
return
|
|
48
|
+
return _set(uiConfig, [BUCKETS, localIdentifier, "warningMessage"], warningMessage);
|
|
50
49
|
}, updatedUiConfig);
|
|
51
50
|
}
|
|
52
51
|
export function setAreaChartUiConfig(referencePoint, intl, visualizationType) {
|
|
@@ -65,13 +64,13 @@ export function setAreaChartUiConfig(referencePoint, intl, visualizationType) {
|
|
|
65
64
|
[BucketNames.VIEW]: getWarningMessageForViewByBucket(intl, measuresCount, stackItems),
|
|
66
65
|
[BucketNames.STACK]: getWarningMessageForStackByBucket(intl, categoriesCount),
|
|
67
66
|
};
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
67
|
+
_set(referencePointConfigured, UICONFIG, setBucketTitles(referencePoint, visualizationType, intl));
|
|
68
|
+
_set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.MEASURES, "canAddItems"], canAddMeasuresItems);
|
|
69
|
+
_set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.VIEW, "canAddItems"], canAddViewItems);
|
|
70
|
+
_set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.STACK, "canAddItems"], canAddStackItems);
|
|
72
71
|
setAreaChartBucketWarningMessages(referencePointConfigured, messageConfig);
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
72
|
+
_set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.MEASURES, "icon"], areaMeasuresIcon);
|
|
73
|
+
_set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.VIEW, "icon"], areaViewIcon);
|
|
74
|
+
_set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.STACK, "icon"], areaStackIcon);
|
|
76
75
|
return referencePointConfigured;
|
|
77
76
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"baseChartUiConfigHelper.d.ts","sourceRoot":"","sources":["../../../../src/internal/utils/uiConfigHelpers/baseChartUiConfigHelper.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"baseChartUiConfigHelper.d.ts","sourceRoot":"","sources":["../../../../src/internal/utils/uiConfigHelpers/baseChartUiConfigHelper.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;AAQ5C,OAAO,EACH,KAAK,WAAW,EAEhB,KAAK,uBAAuB,EAE/B,MAAM,mCAAmC,CAAC;AA8D3C,wBAAgB,oBAAoB,CAChC,cAAc,EAAE,uBAAuB,EACvC,IAAI,EAAE,SAAS,EACf,iBAAiB,EAAE,MAAM,GAC1B,uBAAuB,CAwDzB;AAED,wBAAgB,mCAAmC,CAC/C,cAAc,EAAE,uBAAuB,EACvC,iBAAiB,EAAE,MAAM,GAC1B,uBAAuB,CAoBzB;AAgBD,wBAAgB,4BAA4B,CACxC,SAAS,EAAE,MAAM,GAAG,SAAS,EAC7B,IAAI,EAAE,SAAS,EACf,WAAW,EAAE,WAAW,EAAE,GAC3B,MAAM,CAMR"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
// (C) 2019-2026 GoodData Corporation
|
|
2
|
-
import { set } from "lodash-es";
|
|
3
2
|
import { BucketNames, VisualizationTypes } from "@gooddata/sdk-ui";
|
|
4
|
-
import { _cloneDeep } from "@gooddata/util";
|
|
3
|
+
import { _cloneDeep, _set } from "@gooddata/util";
|
|
5
4
|
import { messages } from "../../../locales.js";
|
|
6
5
|
import { ATTRIBUTE, BUCKETS, DATE } from "../../constants/bucket.js";
|
|
7
6
|
import { OPEN_AS_REPORT, RECOMMENDATIONS, SUPPORTED, UICONFIG } from "../../constants/uiConfig.js";
|
|
@@ -41,7 +40,7 @@ function setBaseChartBucketWarningMessages(referencePoint, intl) {
|
|
|
41
40
|
warningMessage = getTranslation(messages["categoryStack"].id, intl);
|
|
42
41
|
}
|
|
43
42
|
if (warningMessage) {
|
|
44
|
-
|
|
43
|
+
_set(updatedUiConfig, [BUCKETS, localIdentifier, "warningMessage"], warningMessage);
|
|
45
44
|
}
|
|
46
45
|
}
|
|
47
46
|
});
|
|
@@ -52,11 +51,11 @@ export function setBaseChartUiConfig(referencePoint, intl, visualizationType) {
|
|
|
52
51
|
const buckets = referencePointConfigured?.buckets ?? [];
|
|
53
52
|
const measuresCanAddItems = hasNoMeasures(buckets) || hasNoStacksWithDate(buckets);
|
|
54
53
|
const stackCanAddItems = !hasMoreThanOneMasterMeasure(buckets, BucketNames.MEASURES);
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
54
|
+
_set(referencePointConfigured, [UICONFIG], setBucketTitles(referencePoint, visualizationType, intl));
|
|
55
|
+
_set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.MEASURES, "canAddItems"], measuresCanAddItems);
|
|
56
|
+
_set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.VIEW, "canAddItems"], true);
|
|
57
|
+
_set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.STACK, "canAddItems"], stackCanAddItems);
|
|
58
|
+
_set(referencePointConfigured, [UICONFIG, OPEN_AS_REPORT, SUPPORTED], !hasColorMapping(referencePointConfigured.properties));
|
|
60
59
|
const iconsMap = {
|
|
61
60
|
column: {
|
|
62
61
|
[BucketNames.MEASURES]: columnMeasuresIcon,
|
|
@@ -69,10 +68,10 @@ export function setBaseChartUiConfig(referencePoint, intl, visualizationType) {
|
|
|
69
68
|
[BucketNames.STACK]: barStackIcon,
|
|
70
69
|
},
|
|
71
70
|
};
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
71
|
+
_set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.MEASURES, "icon"], iconsMap[visualizationType]?.[BucketNames.MEASURES]);
|
|
72
|
+
_set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.VIEW, "icon"], iconsMap[visualizationType]?.[BucketNames.VIEW]);
|
|
73
|
+
_set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.STACK, "icon"], iconsMap[visualizationType]?.[BucketNames.STACK]);
|
|
74
|
+
_set(referencePointConfigured, UICONFIG, setBaseChartBucketWarningMessages(referencePointConfigured, intl));
|
|
76
75
|
return referencePointConfigured;
|
|
77
76
|
}
|
|
78
77
|
export function setBaseChartUiConfigRecommendations(referencePoint, visualizationType) {
|
|
@@ -84,11 +83,11 @@ export function setBaseChartUiConfigRecommendations(referencePoint, visualizatio
|
|
|
84
83
|
const comparisonAndTrending = comparisonAndTrendingRecommendationEnabled(buckets);
|
|
85
84
|
const overTimeComparison = overTimeComparisonRecommendationEnabled(newReferencePoint);
|
|
86
85
|
const previousPeriod = previousPeriodRecommendationEnabled(buckets);
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
86
|
+
_set(newReferencePoint, [UICONFIG, RECOMMENDATIONS, "percent"], percentEnabled);
|
|
87
|
+
_set(newReferencePoint, [UICONFIG, RECOMMENDATIONS, "comparison"], comparisonAndTrending);
|
|
88
|
+
_set(newReferencePoint, [UICONFIG, RECOMMENDATIONS, "trending"], comparisonAndTrending);
|
|
89
|
+
_set(newReferencePoint, [UICONFIG, RECOMMENDATIONS, "overTimeComparison"], overTimeComparison);
|
|
90
|
+
_set(newReferencePoint, [UICONFIG, RECOMMENDATIONS, "previousPeriod"], previousPeriod);
|
|
92
91
|
return newReferencePoint;
|
|
93
92
|
}
|
|
94
93
|
return referencePoint;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bubbleChartUiConfigHelper.d.ts","sourceRoot":"","sources":["../../../../src/internal/utils/uiConfigHelpers/bubbleChartUiConfigHelper.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"bubbleChartUiConfigHelper.d.ts","sourceRoot":"","sources":["../../../../src/internal/utils/uiConfigHelpers/bubbleChartUiConfigHelper.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;AAO5C,OAAO,EAAE,KAAK,uBAAuB,EAAE,MAAM,mCAAmC,CAAC;AAWjF,wBAAgB,sBAAsB,CAClC,cAAc,EAAE,uBAAuB,EACvC,IAAI,EAAE,SAAS,EACf,iBAAiB,EAAE,MAAM,GAC1B,uBAAuB,CAmBzB"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
// (C) 2019-2026 GoodData Corporation
|
|
2
|
-
import { set } from "lodash-es";
|
|
3
2
|
import { BucketNames } from "@gooddata/sdk-ui";
|
|
4
|
-
import { _cloneDeep } from "@gooddata/util";
|
|
3
|
+
import { _cloneDeep, _set } from "@gooddata/util";
|
|
5
4
|
import { BUCKETS } from "../../constants/bucket.js";
|
|
6
5
|
import { UICONFIG } from "../../constants/uiConfig.js";
|
|
7
6
|
import { setBucketTitles } from "../bucketHelper.js";
|
|
@@ -14,10 +13,10 @@ const bubbleSizeIcon = "local:bubble/bucket-title-size.svg";
|
|
|
14
13
|
const bubbleViewByIcon = "local:bubble/bucket-title-view-by.svg";
|
|
15
14
|
export function setBubbleChartUiConfig(referencePoint, intl, visualizationType) {
|
|
16
15
|
const referencePointConfigured = _cloneDeep(referencePoint);
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
16
|
+
_set(referencePointConfigured, UICONFIG, setBucketTitles(referencePoint, visualizationType, intl));
|
|
17
|
+
_set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.MEASURES, "icon"], bubbleMeasuresXIcon);
|
|
18
|
+
_set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.SECONDARY_MEASURES, "icon"], bubbleMeasuresYIcon);
|
|
19
|
+
_set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.TERTIARY_MEASURES, "icon"], bubbleSizeIcon);
|
|
20
|
+
_set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.VIEW, "icon"], bubbleViewByIcon);
|
|
22
21
|
return referencePointConfigured;
|
|
23
22
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"columnBarChartUiConfigHelper.d.ts","sourceRoot":"","sources":["../../../../src/internal/utils/uiConfigHelpers/columnBarChartUiConfigHelper.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"columnBarChartUiConfigHelper.d.ts","sourceRoot":"","sources":["../../../../src/internal/utils/uiConfigHelpers/columnBarChartUiConfigHelper.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;AAQ5C,OAAO,EAAE,KAAK,uBAAuB,EAAE,MAAM,mCAAmC,CAAC;AAIjF,wBAAgB,yBAAyB,CACrC,cAAc,EAAE,uBAAuB,EACvC,IAAI,EAAE,SAAS,GAChB,uBAAuB,CAwBzB"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
// (C) 2019-2026 GoodData Corporation
|
|
2
|
-
import { set } from "lodash-es";
|
|
3
2
|
import { BucketNames, OverTimeComparisonTypes } from "@gooddata/sdk-ui";
|
|
4
|
-
import { _cloneDeep } from "@gooddata/util";
|
|
3
|
+
import { _cloneDeep, _set } from "@gooddata/util";
|
|
5
4
|
import { messages } from "../../../locales.js";
|
|
6
5
|
import { BUCKETS } from "../../constants/bucket.js";
|
|
7
6
|
import { SUPPORTED_COMPARISON_TYPES, UICONFIG } from "../../constants/uiConfig.js";
|
|
@@ -9,13 +8,13 @@ import { getMeasureItems } from "../bucketHelper.js";
|
|
|
9
8
|
import { getTranslation } from "../translations.js";
|
|
10
9
|
export function setColumnBarChartUiConfig(referencePoint, intl) {
|
|
11
10
|
const referencePointConfigured = _cloneDeep(referencePoint);
|
|
12
|
-
|
|
11
|
+
_set(referencePointConfigured, [UICONFIG, SUPPORTED_COMPARISON_TYPES], [OverTimeComparisonTypes.SAME_PERIOD_PREVIOUS_YEAR, OverTimeComparisonTypes.PREVIOUS_PERIOD]);
|
|
13
12
|
const buckets = referencePointConfigured?.buckets ?? [];
|
|
14
13
|
const measures = getMeasureItems(buckets);
|
|
15
14
|
if (measures.length > 1) {
|
|
16
15
|
const warningMessage = getTranslation(messages["measureStack"].id, intl);
|
|
17
|
-
|
|
18
|
-
|
|
16
|
+
_set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.STACK, "canAddItems"], false);
|
|
17
|
+
_set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.STACK, "warningMessage"], warningMessage);
|
|
19
18
|
}
|
|
20
19
|
return referencePointConfigured;
|
|
21
20
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"comboChartUiConfigHelper.d.ts","sourceRoot":"","sources":["../../../../src/internal/utils/uiConfigHelpers/comboChartUiConfigHelper.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"comboChartUiConfigHelper.d.ts","sourceRoot":"","sources":["../../../../src/internal/utils/uiConfigHelpers/comboChartUiConfigHelper.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;AAE5C,OAAO,EAAe,KAAK,SAAS,EAAsB,MAAM,kBAAkB,CAAC;AAOnF,OAAO,EAEH,KAAK,uBAAuB,EAE/B,MAAM,mCAAmC,CAAC;AA8C3C,wBAAgB,qBAAqB,CACjC,cAAc,EAAE,uBAAuB,EACvC,IAAI,EAAE,SAAS,EACf,iBAAiB,EAAE,SAAS,GAC7B,uBAAuB,CA6BzB"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
// (C) 2019-2026 GoodData Corporation
|
|
2
|
-
import { set } from "lodash-es";
|
|
3
2
|
import { BucketNames, VisualizationTypes } from "@gooddata/sdk-ui";
|
|
4
3
|
import { isLineChart } from "@gooddata/sdk-ui-charts";
|
|
5
|
-
import { _cloneDeep } from "@gooddata/util";
|
|
4
|
+
import { _cloneDeep, _set } from "@gooddata/util";
|
|
6
5
|
import { messages } from "../../../locales.js";
|
|
7
6
|
import { BUCKETS } from "../../constants/bucket.js";
|
|
8
7
|
import { UICONFIG } from "../../constants/uiConfig.js";
|
|
@@ -39,7 +38,7 @@ const VIEW_BY_ICONS = {
|
|
|
39
38
|
};
|
|
40
39
|
function setCanStackInPercent(uiConfig, secondaryChartType, isDualAxis) {
|
|
41
40
|
const canStackInPercent = !(isDualAxis === false && isLineChart(secondaryChartType));
|
|
42
|
-
|
|
41
|
+
_set(uiConfig, "optionalStacking.canStackInPercent", canStackInPercent);
|
|
43
42
|
}
|
|
44
43
|
export function setComboChartUiConfig(referencePoint, intl, visualizationType) {
|
|
45
44
|
const referencePointConfigured = _cloneDeep(referencePoint);
|
|
@@ -58,10 +57,10 @@ export function setComboChartUiConfig(referencePoint, intl, visualizationType) {
|
|
|
58
57
|
const type = chartTypes[index];
|
|
59
58
|
const localIdentifier = bucket?.localIdentifier ?? "";
|
|
60
59
|
const subtitle = getTranslation(messages[type].id, intl);
|
|
61
|
-
|
|
62
|
-
|
|
60
|
+
_set(updatedUiConfig, [BUCKETS, localIdentifier, "subtitle"], subtitle);
|
|
61
|
+
_set(updatedUiConfig, [BUCKETS, localIdentifier, "icon"], MEASURE_BUCKET_ICONS[type]);
|
|
63
62
|
});
|
|
64
|
-
|
|
65
|
-
|
|
63
|
+
_set(updatedUiConfig, [BUCKETS, BucketNames.VIEW, "icon"], VIEW_BY_ICONS[chartTypes.join("-")]);
|
|
64
|
+
_set(referencePointConfigured, UICONFIG, updatedUiConfig);
|
|
66
65
|
return referencePointConfigured;
|
|
67
66
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"comboChartUiConfigHelperDeprecated.d.ts","sourceRoot":"","sources":["../../../../src/internal/utils/uiConfigHelpers/comboChartUiConfigHelperDeprecated.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"comboChartUiConfigHelperDeprecated.d.ts","sourceRoot":"","sources":["../../../../src/internal/utils/uiConfigHelpers/comboChartUiConfigHelperDeprecated.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;AAE5C,OAAO,EAAe,KAAK,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAK/D,OAAO,EAAE,KAAK,uBAAuB,EAAE,MAAM,mCAAmC,CAAC;AAUjF,wBAAgB,+BAA+B,CAC3C,cAAc,EAAE,uBAAuB,EACvC,IAAI,EAAE,SAAS,EACf,iBAAiB,EAAE,SAAS,GAC7B,uBAAuB,CAiBzB"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
// (C) 2019-2026 GoodData Corporation
|
|
2
|
-
import { set } from "lodash-es";
|
|
3
2
|
import { BucketNames } from "@gooddata/sdk-ui";
|
|
4
|
-
import { _cloneDeep } from "@gooddata/util";
|
|
3
|
+
import { _cloneDeep, _set } from "@gooddata/util";
|
|
5
4
|
import { BUCKETS } from "../../constants/bucket.js";
|
|
6
5
|
import { UICONFIG } from "../../constants/uiConfig.js";
|
|
7
6
|
import { setBucketTitles } from "../bucketHelper.js";
|
|
@@ -13,12 +12,12 @@ const columnMeasureIcon = "local:combo/bucket-title-measures-column.svg";
|
|
|
13
12
|
const columnLineIcon = "local:combo/bucket-title-view-column-line.svg";
|
|
14
13
|
export function setComboChartUiConfigDeprecated(referencePoint, intl, visualizationType) {
|
|
15
14
|
const referencePointConfigured = _cloneDeep(referencePoint);
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
15
|
+
_set(referencePointConfigured, UICONFIG, setBucketTitles(referencePoint, visualizationType, intl));
|
|
16
|
+
_set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.MEASURES, "canAddItems"], true);
|
|
17
|
+
_set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.SECONDARY_MEASURES, "canAddItems"], true);
|
|
18
|
+
_set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.VIEW, "canAddItems"], true);
|
|
19
|
+
_set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.MEASURES, "icon"], columnMeasureIcon);
|
|
20
|
+
_set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.SECONDARY_MEASURES, "icon"], comboSecondaryMeasuresIcon);
|
|
21
|
+
_set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.VIEW, "icon"], columnLineIcon);
|
|
23
22
|
return referencePointConfigured;
|
|
24
23
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dependencyWheelChartUiConfigHelper.d.ts","sourceRoot":"","sources":["../../../../src/internal/utils/uiConfigHelpers/dependencyWheelChartUiConfigHelper.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"dependencyWheelChartUiConfigHelper.d.ts","sourceRoot":"","sources":["../../../../src/internal/utils/uiConfigHelpers/dependencyWheelChartUiConfigHelper.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,KAAK,uBAAuB,EAAE,MAAM,mCAAmC,CAAC;AASjF,eAAO,MAAM,6BAA6B,2BACd,uBAAuB,KAChD,uBAQF,CAAC"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
// (C) 2019-2026 GoodData Corporation
|
|
2
|
-
import { set } from "lodash-es";
|
|
3
2
|
import { BucketNames } from "@gooddata/sdk-ui";
|
|
4
|
-
import { _cloneDeep } from "@gooddata/util";
|
|
3
|
+
import { _cloneDeep, _set } from "@gooddata/util";
|
|
5
4
|
import { BUCKETS } from "../../constants/bucket.js";
|
|
6
5
|
import { UICONFIG } from "../../constants/uiConfig.js";
|
|
7
6
|
// If you need to edit these icons
|
|
@@ -12,8 +11,8 @@ const fromIcon = "local:dependencyWheel/bucket-title-from.svg";
|
|
|
12
11
|
const toIcon = "local:dependencyWheel/bucket-title-to.svg";
|
|
13
12
|
export const configDependencyWheelUiConfig = (extendedReferencePoint) => {
|
|
14
13
|
const referencePointConfigured = _cloneDeep(extendedReferencePoint);
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
14
|
+
_set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.MEASURES, "icon"], measureIcon);
|
|
15
|
+
_set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.ATTRIBUTE_FROM, "icon"], fromIcon);
|
|
16
|
+
_set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.ATTRIBUTE_TO, "icon"], toIcon);
|
|
18
17
|
return referencePointConfigured;
|
|
19
18
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"donutChartUiConfigHelper.d.ts","sourceRoot":"","sources":["../../../../src/internal/utils/uiConfigHelpers/donutChartUiConfigHelper.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"donutChartUiConfigHelper.d.ts","sourceRoot":"","sources":["../../../../src/internal/utils/uiConfigHelpers/donutChartUiConfigHelper.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,KAAK,uBAAuB,EAAE,MAAM,mCAAmC,CAAC;AAQjF,wBAAgB,qBAAqB,CAAC,cAAc,EAAE,uBAAuB,GAAG,uBAAuB,CAStG"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
// (C) 2019-2026 GoodData Corporation
|
|
2
|
-
import { set } from "lodash-es";
|
|
3
2
|
import { BucketNames } from "@gooddata/sdk-ui";
|
|
4
|
-
import { _cloneDeep } from "@gooddata/util";
|
|
3
|
+
import { _cloneDeep, _set } from "@gooddata/util";
|
|
5
4
|
import { BUCKETS } from "../../constants/bucket.js";
|
|
6
5
|
import { UICONFIG, disabledOpenAsReportConfig } from "../../constants/uiConfig.js";
|
|
7
6
|
// If you need to edit these icons
|
|
@@ -12,7 +11,7 @@ const donutViewIcon = "local:donut/bucket-title-view.svg";
|
|
|
12
11
|
export function setDonutChartUiConfig(referencePoint) {
|
|
13
12
|
const referencePointConfigured = _cloneDeep(referencePoint);
|
|
14
13
|
Object.assign(referencePointConfigured[UICONFIG], disabledOpenAsReportConfig);
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
_set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.MEASURES, "icon"], donutMeasuresIcon);
|
|
15
|
+
_set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.VIEW, "icon"], donutViewIcon);
|
|
17
16
|
return referencePointConfigured;
|
|
18
17
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"funnelChartUiConfigHelper.d.ts","sourceRoot":"","sources":["../../../../src/internal/utils/uiConfigHelpers/funnelChartUiConfigHelper.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"funnelChartUiConfigHelper.d.ts","sourceRoot":"","sources":["../../../../src/internal/utils/uiConfigHelpers/funnelChartUiConfigHelper.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,KAAK,uBAAuB,EAAE,MAAM,mCAAmC,CAAC;AASjF,wBAAgB,sBAAsB,CAAC,cAAc,EAAE,uBAAuB,GAAG,uBAAuB,CAiBvG"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
// (C) 2019-2026 GoodData Corporation
|
|
2
|
-
import { set } from "lodash-es";
|
|
3
2
|
import { BucketNames } from "@gooddata/sdk-ui";
|
|
4
|
-
import { _cloneDeep } from "@gooddata/util";
|
|
3
|
+
import { _cloneDeep, _set } from "@gooddata/util";
|
|
5
4
|
import { BUCKETS } from "../../constants/bucket.js";
|
|
6
5
|
import { UICONFIG, disabledOpenAsReportConfig } from "../../constants/uiConfig.js";
|
|
7
6
|
import { configurePercent } from "../bucketConfig.js";
|
|
@@ -13,10 +12,10 @@ const funnelViewIcon = "local:funnel/bucket-title-view.svg";
|
|
|
13
12
|
export function setFunnelChartUiConfig(referencePoint) {
|
|
14
13
|
const referencePointConfigured = _cloneDeep(referencePoint);
|
|
15
14
|
Object.assign(referencePointConfigured[UICONFIG], disabledOpenAsReportConfig);
|
|
16
|
-
|
|
17
|
-
|
|
15
|
+
_set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.MEASURES, "icon"], funnelMeasuresIcon);
|
|
16
|
+
_set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.VIEW, "icon"], funnelViewIcon);
|
|
18
17
|
// always disabled for funnel
|
|
19
|
-
|
|
18
|
+
_set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.MEASURES, "isShowInPercentVisible"], false);
|
|
20
19
|
configurePercent(referencePointConfigured, true);
|
|
21
20
|
return referencePointConfigured;
|
|
22
21
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"geoAreaChartUiConfigHelper.d.ts","sourceRoot":"","sources":["../../../../src/internal/utils/uiConfigHelpers/geoAreaChartUiConfigHelper.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"geoAreaChartUiConfigHelper.d.ts","sourceRoot":"","sources":["../../../../src/internal/utils/uiConfigHelpers/geoAreaChartUiConfigHelper.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;AAM5C,OAAO,EAAE,KAAK,uBAAuB,EAAkB,MAAM,mCAAmC,CAAC;AAejG;;;;;;;;GAQG;AACH,wBAAgB,kBAAkB,CAC9B,cAAc,EAAE,uBAAuB,EACvC,IAAI,EAAE,SAAS,GAChB,uBAAuB,CAWzB"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
// (C) 2025 GoodData Corporation
|
|
2
|
-
import { set } from "lodash-es";
|
|
1
|
+
// (C) 2025-2026 GoodData Corporation
|
|
3
2
|
import { BucketNames, VisualizationTypes } from "@gooddata/sdk-ui";
|
|
3
|
+
import { _set } from "@gooddata/util";
|
|
4
4
|
import { BUCKETS } from "../../constants/bucket.js";
|
|
5
5
|
import { setBucketTitles } from "../bucketHelper.js";
|
|
6
6
|
const geoAreaBucketAreaIcon = "local:geoPushpin/bucket-title-location-icon.svg";
|
|
@@ -10,7 +10,7 @@ function setBucketIcon(uiConfig, bucketName, icon) {
|
|
|
10
10
|
if (!uiConfig) {
|
|
11
11
|
return;
|
|
12
12
|
}
|
|
13
|
-
|
|
13
|
+
_set(uiConfig, [BUCKETS, bucketName, "icon"], icon);
|
|
14
14
|
}
|
|
15
15
|
/**
|
|
16
16
|
* Sets the UI config for geo area chart reference point.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"geoPushpinChartUiConfigHelper.d.ts","sourceRoot":"","sources":["../../../../src/internal/utils/uiConfigHelpers/geoPushpinChartUiConfigHelper.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"geoPushpinChartUiConfigHelper.d.ts","sourceRoot":"","sources":["../../../../src/internal/utils/uiConfigHelpers/geoPushpinChartUiConfigHelper.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;AAE5C,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAErD,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAMvD,OAAO,EAAE,KAAK,uBAAuB,EAAE,MAAM,mCAAmC,CAAC;AAuBjF,wBAAgB,qBAAqB,CACjC,cAAc,EAAE,uBAAuB,EACvC,IAAI,EAAE,SAAS,EACf,iBAAiB,EAAE,MAAM,EACzB,YAAY,CAAC,EAAE,SAAS,GACzB,uBAAuB,CAwEzB;AAED,wBAAgB,wBAAwB,CAAC,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,SAAS,GAAG,UAAU,CAS5F"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
// (C) 2019-2026 GoodData Corporation
|
|
2
|
-
import { set } from "lodash-es";
|
|
3
2
|
import { BucketNames } from "@gooddata/sdk-ui";
|
|
4
|
-
import { _cloneDeep } from "@gooddata/util";
|
|
3
|
+
import { _cloneDeep, _set } from "@gooddata/util";
|
|
5
4
|
import { BUCKETS } from "../../constants/bucket.js";
|
|
6
5
|
import { isGeoPushpinIconEnabled } from "../../constants/featureFlags.js";
|
|
7
6
|
import { OPEN_AS_REPORT, SUPPORTED, UICONFIG } from "../../constants/uiConfig.js";
|
|
@@ -24,22 +23,22 @@ function canAddItemsToBucket(referencePoint, bucketName) {
|
|
|
24
23
|
}
|
|
25
24
|
export function setGeoPushpinUiConfig(referencePoint, intl, visualizationType, featureFlags) {
|
|
26
25
|
const referencePointConfigured = _cloneDeep(referencePoint);
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
26
|
+
_set(referencePointConfigured, UICONFIG, setBucketTitles(referencePoint, visualizationType, intl));
|
|
27
|
+
_set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.LOCATION, "icon"], geoPushPinBucketLocationIcon);
|
|
28
|
+
_set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.SIZE, "icon"], geoPushPinBucketSizeIcon);
|
|
29
|
+
_set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.COLOR, "icon"], geoPushPinBucketColorIcon);
|
|
30
|
+
_set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.SEGMENT, "icon"], geoPushPinBucketSegmentIcon);
|
|
31
|
+
_set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.MEASURES, "icon"], geoPushPinBucketMetricIcon);
|
|
33
32
|
// overide base config
|
|
34
|
-
|
|
33
|
+
_set(referencePointConfigured, [UICONFIG, OPEN_AS_REPORT, SUPPORTED], false);
|
|
35
34
|
const iconEnabled = isGeoPushpinIconEnabled(featureFlags);
|
|
36
35
|
const shapeType = referencePointConfigured.properties?.controls?.["points"]?.shapeType ?? "circle";
|
|
37
36
|
const sizeColorBucketsEditable = arePushpinSizeColorBucketsEditable(shapeType);
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
37
|
+
_set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.LOCATION, "canAddItems"], canAddItemsToBucket(referencePointConfigured, BucketNames.LOCATION));
|
|
38
|
+
_set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.SIZE, "canAddItems"], canAddItemsToBucket(referencePointConfigured, BucketNames.SIZE) && sizeColorBucketsEditable);
|
|
39
|
+
_set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.COLOR, "canAddItems"], canAddItemsToBucket(referencePointConfigured, BucketNames.COLOR) && sizeColorBucketsEditable);
|
|
40
|
+
_set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.SEGMENT, "canAddItems"], canAddItemsToBucket(referencePointConfigured, BucketNames.SEGMENT) && sizeColorBucketsEditable);
|
|
41
|
+
_set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.MEASURES, "canAddItems"], canAddItemsToBucket(referencePointConfigured, BucketNames.MEASURES));
|
|
43
42
|
// Build the filtered bucket set
|
|
44
43
|
const filteredBuckets = {
|
|
45
44
|
[BucketNames.LOCATION]: referencePointConfigured?.uiConfig?.buckets?.[BucketNames.LOCATION],
|
|
@@ -54,7 +53,7 @@ export function setGeoPushpinUiConfig(referencePoint, intl, visualizationType, f
|
|
|
54
53
|
referencePointConfigured?.uiConfig?.buckets?.[BucketNames.MEASURES];
|
|
55
54
|
}
|
|
56
55
|
// only apply related bucket uiConfig
|
|
57
|
-
|
|
56
|
+
_set(referencePointConfigured, [UICONFIG, BUCKETS], filteredBuckets);
|
|
58
57
|
return referencePointConfigured;
|
|
59
58
|
}
|
|
60
59
|
export function updateConfigWithSettings(config, settings) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"headlineUiConfigHelper.d.ts","sourceRoot":"","sources":["../../../../src/internal/utils/uiConfigHelpers/headlineUiConfigHelper.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"headlineUiConfigHelper.d.ts","sourceRoot":"","sources":["../../../../src/internal/utils/uiConfigHelpers/headlineUiConfigHelper.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;AAE5C,OAAO,EAEH,KAAK,aAAa,EAElB,KAAK,kBAAkB,EAEvB,KAAK,SAAS,EACd,KAAK,MAAM,EAOd,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAGH,KAAK,YAAY,EAIpB,MAAM,yBAAyB,CAAC;AAQjC,OAAO,EAAE,KAAK,yBAAyB,EAAE,MAAM,uCAAuC,CAAC;AACvF,OAAO,EACH,KAAK,eAAe,EACpB,KAAK,SAAS,EACd,KAAK,SAAS,EACd,KAAK,wBAAwB,EAChC,MAAM,mCAAmC,CAAC;AAW3C,wBAAgB,0BAA0B,IAAI,SAAS,CAItD;AAED,wBAAgB,mBAAmB,CAAC,cAAc,EAAE,eAAe,EAAE,IAAI,EAAE,SAAS,GAAG,SAAS,CAyC/F;AAED,wBAAgB,gCAAgC,CAC5C,uBAAuB,EAAE,wBAAwB,EACjD,QAAQ,EAAE,SAAS,GAAG,SAAS,EAC/B,OAAO,EAAE,SAAS,GACnB,YAAY,CAad;AAED,wBAAgB,8BAA8B,CAC1C,uBAAuB,EAAE,wBAAwB,GAClD,wBAAwB,CAAC,yBAAyB,CAAC,CAarD;AAED,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,kBAAkB,GAAG,SAAS,GAAG,OAAO,CAQpF;AAED,wBAAgB,mCAAmC,CAAC,OAAO,EAAE,kBAAkB,qDAM9E;AAED,wBAAgB,yBAAyB,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,aAAa,CAavE"}
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
// (C) 2019-2026 GoodData Corporation
|
|
2
|
-
import { set } from "lodash-es";
|
|
3
2
|
import { bucketMeasure, bucketMeasures, insightBucket, isPoPMeasure, isPreviousPeriodMeasure, } from "@gooddata/sdk-model";
|
|
4
3
|
import { BucketNames, VisualizationTypes } from "@gooddata/sdk-ui";
|
|
5
4
|
import { CalculateAs, ComparisonColorType, getComparisonRgbColor, updateConfigWithSettings, } from "@gooddata/sdk-ui-charts";
|
|
6
5
|
import { parseRGBString } from "@gooddata/sdk-ui-vis-commons";
|
|
7
|
-
import { _cloneDeep } from "@gooddata/util";
|
|
6
|
+
import { _cloneDeep, _set } from "@gooddata/util";
|
|
8
7
|
import { messages } from "../../../locales.js";
|
|
9
8
|
import { BUCKETS } from "../../constants/bucket.js";
|
|
10
9
|
import { HEADLINE_DEFAULT_CONTROL_PROPERTIES } from "../../constants/supportedProperties.js";
|
|
@@ -19,7 +18,7 @@ const headlineMeasuresIcon = "local:headline/bucket-title-measures.svg";
|
|
|
19
18
|
const headlineSecondaryMeasuresIcon = "local:headline/bucket-title-secondary-measures.svg";
|
|
20
19
|
export function getDefaultHeadlineUiConfig() {
|
|
21
20
|
const uiConfig = _cloneDeep(DEFAULT_HEADLINE_UICONFIG);
|
|
22
|
-
|
|
21
|
+
_set(uiConfig, [BUCKETS, BucketNames.SECONDARY_MEASURES, "itemsLimit"], 2);
|
|
23
22
|
return uiConfig;
|
|
24
23
|
}
|
|
25
24
|
export function getHeadlineUiConfig(referencePoint, intl) {
|
|
@@ -31,10 +30,10 @@ export function getHeadlineUiConfig(referencePoint, intl) {
|
|
|
31
30
|
...referencePoint,
|
|
32
31
|
uiConfig,
|
|
33
32
|
}, VisualizationTypes.HEADLINE, intl);
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
33
|
+
_set(uiConfig, [BUCKETS, BucketNames.MEASURES, "canAddItems"], viewCanAddPrimaryItems);
|
|
34
|
+
_set(uiConfig, [BUCKETS, BucketNames.SECONDARY_MEASURES, "canAddItems"], viewCanAddSecondaryItems);
|
|
35
|
+
_set(uiConfig, [BUCKETS, BucketNames.MEASURES, "icon"], headlineMeasuresIcon);
|
|
36
|
+
_set(uiConfig, [BUCKETS, BucketNames.SECONDARY_MEASURES, "icon"], headlineSecondaryMeasuresIcon);
|
|
38
37
|
const primaryMeasuresCount = getItemsCount(buckets, BucketNames.MEASURES);
|
|
39
38
|
const secondaryMeasuresCount = getItemsCount(buckets, BucketNames.SECONDARY_MEASURES);
|
|
40
39
|
if (primaryMeasuresCount === 0 && secondaryMeasuresCount !== 0) {
|
|
@@ -43,9 +42,9 @@ export function getHeadlineUiConfig(referencePoint, intl) {
|
|
|
43
42
|
text: getTranslation(messages["text"].id, intl),
|
|
44
43
|
};
|
|
45
44
|
}
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
45
|
+
_set(uiConfig, [BUCKETS, BucketNames.SECONDARY_MEASURES, "canAddItems"], true);
|
|
46
|
+
_set(uiConfig, [BUCKETS, BucketNames.SECONDARY_MEASURES, "itemsLimit"], noDerivedMeasurePresent(buckets) ? 2 : 1);
|
|
47
|
+
_set(uiConfig, [BUCKETS, BucketNames.SECONDARY_MEASURES, "allowsReordering"], true);
|
|
49
48
|
return uiConfig;
|
|
50
49
|
}
|
|
51
50
|
export function buildHeadlineVisualizationConfig(visualizationProperties, settings, options) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"heatmapUiConfigHelper.d.ts","sourceRoot":"","sources":["../../../../src/internal/utils/uiConfigHelpers/heatmapUiConfigHelper.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"heatmapUiConfigHelper.d.ts","sourceRoot":"","sources":["../../../../src/internal/utils/uiConfigHelpers/heatmapUiConfigHelper.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;AAO5C,OAAO,EAAE,KAAK,uBAAuB,EAAE,MAAM,mCAAmC,CAAC;AAUjF,wBAAgB,kBAAkB,CAC9B,cAAc,EAAE,uBAAuB,EACvC,IAAI,EAAE,SAAS,EACf,iBAAiB,EAAE,MAAM,GAC1B,uBAAuB,CAUzB"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
// (C) 2019-2026 GoodData Corporation
|
|
2
|
-
import { set } from "lodash-es";
|
|
3
2
|
import { BucketNames } from "@gooddata/sdk-ui";
|
|
4
|
-
import { _cloneDeep } from "@gooddata/util";
|
|
3
|
+
import { _cloneDeep, _set } from "@gooddata/util";
|
|
5
4
|
import { BUCKETS } from "../../constants/bucket.js";
|
|
6
5
|
import { UICONFIG } from "../../constants/uiConfig.js";
|
|
7
6
|
import { setBucketTitles } from "../bucketHelper.js";
|
|
@@ -13,9 +12,9 @@ const heatmapViewIcon = "local:heatmap/bucket-title-view.svg";
|
|
|
13
12
|
const heatmapStackIcon = "local:heatmap/bucket-title-stack.svg";
|
|
14
13
|
export function setHeatmapUiConfig(referencePoint, intl, visualizationType) {
|
|
15
14
|
const referencePointConfigured = _cloneDeep(referencePoint);
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
15
|
+
_set(referencePointConfigured, [UICONFIG], setBucketTitles(referencePoint, visualizationType, intl));
|
|
16
|
+
_set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.MEASURES, "icon"], heatmapMeasuresIcon);
|
|
17
|
+
_set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.VIEW, "icon"], heatmapViewIcon);
|
|
18
|
+
_set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.STACK, "icon"], heatmapStackIcon);
|
|
20
19
|
return referencePointConfigured;
|
|
21
20
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lineChartUiConfigHelper.d.ts","sourceRoot":"","sources":["../../../../src/internal/utils/uiConfigHelpers/lineChartUiConfigHelper.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"lineChartUiConfigHelper.d.ts","sourceRoot":"","sources":["../../../../src/internal/utils/uiConfigHelpers/lineChartUiConfigHelper.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;AAQ5C,OAAO,EAAE,KAAK,uBAAuB,EAAE,MAAM,mCAAmC,CAAC;AAuDjF,wBAAgB,oBAAoB,CAChC,cAAc,EAAE,uBAAuB,EACvC,IAAI,EAAE,SAAS,EACf,iBAAiB,EAAE,MAAM,GAC1B,uBAAuB,CAsCzB"}
|