@gooddata/sdk-ui-ext 11.68.0-alpha.0 → 11.68.0-alpha.10
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 +8338 -63070
- package/esm/insightPicker/InsightPickerCore.d.ts +1 -1
- package/esm/insightPicker/InsightPickerCore.d.ts.map +1 -1
- package/esm/insightPicker/InsightPickerCore.js +8 -6
- package/esm/insightPicker/InsightPickerMenu.d.ts +1 -1
- package/esm/insightPicker/InsightPickerMenu.d.ts.map +1 -1
- package/esm/insightPicker/InsightPickerMenu.js +5 -1
- package/esm/insightPicker/types.d.ts +5 -1
- package/esm/insightPicker/types.d.ts.map +1 -1
- package/esm/insightPicker/useInsightPickerHybridSearch.d.ts.map +1 -1
- package/esm/insightPicker/useInsightPickerHybridSearch.js +2 -0
- package/esm/insightView/InsightRenderer.d.ts.map +1 -1
- package/esm/insightView/InsightRenderer.js +4 -4
- package/esm/internal/components/BaseVisualization.d.ts.map +1 -1
- package/esm/internal/components/BaseVisualization.js +7 -7
- package/esm/internal/components/attributeHierarchies/attributeHierarchyDialog/AttributeHierarchyDialogFooter.js +2 -2
- package/esm/internal/components/attributeHierarchies/attributeHierarchyDialog/AttributeHierarchyDialogProvider.d.ts.map +1 -1
- package/esm/internal/components/attributeHierarchies/attributeHierarchyDialog/AttributeHierarchyDialogProvider.js +4 -4
- package/esm/internal/components/attributeHierarchies/attributeHierarchyDialog/useBackendProvider.d.ts.map +1 -1
- package/esm/internal/components/attributeHierarchies/attributeHierarchyDialog/useBackendProvider.js +2 -2
- package/esm/internal/components/attributeHierarchies/attributeHierarchyDialog/utils.d.ts.map +1 -1
- package/esm/internal/components/attributeHierarchies/attributeHierarchyDialog/utils.js +2 -2
- package/esm/internal/components/configurationControls/CheckboxControl.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/CheckboxControl.js +3 -3
- package/esm/internal/components/configurationControls/ConfigSection.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/ConfigSection.js +3 -3
- package/esm/internal/components/configurationControls/ConfigSubsection.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/ConfigSubsection.js +3 -3
- package/esm/internal/components/configurationControls/ContinuousLineControl.js +3 -3
- package/esm/internal/components/configurationControls/DistintcPointShapesControl.js +3 -3
- package/esm/internal/components/configurationControls/DropdownControl.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/DropdownControl.js +3 -3
- package/esm/internal/components/configurationControls/GeoViewportControl.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/GeoViewportControl.js +14 -14
- package/esm/internal/components/configurationControls/InputControl.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/InputControl.js +4 -4
- package/esm/internal/components/configurationControls/LineShapeControl.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/LineShapeControl.js +3 -2
- package/esm/internal/components/configurationControls/PagingSection.js +5 -5
- package/esm/internal/components/configurationControls/PivotTableTextWrappingControl.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/PivotTableTextWrappingControl.js +3 -3
- package/esm/internal/components/configurationControls/PushpinShapeControl.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/PushpinShapeControl.js +5 -5
- package/esm/internal/components/configurationControls/advanced/AdvancedSection.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/advanced/AdvancedSection.js +3 -3
- package/esm/internal/components/configurationControls/colors/ColorsSection.js +3 -3
- package/esm/internal/components/configurationControls/comparison/indicators/colorsControl/ColorCheckbox.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/comparison/indicators/colorsControl/ColorCheckbox.js +4 -4
- package/esm/internal/components/configurationControls/comparison/indicators/colorsControl/ColorItem.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/comparison/indicators/colorsControl/ColorItem.js +3 -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 +6 -6
- package/esm/internal/components/configurationControls/comparison/values/numberFormat/NumberFormatControl.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/comparison/values/numberFormat/NumberFormatControl.js +3 -3
- package/esm/internal/components/configurationControls/conditionalFormatting/ConditionalFormattingDialog.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/conditionalFormatting/ConditionalFormattingDialog.js +2 -2
- package/esm/internal/components/configurationControls/conditionalFormatting/ConditionalFormattingSection.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/conditionalFormatting/ConditionalFormattingSection.js +3 -3
- package/esm/internal/components/configurationControls/customTooltip/CustomTooltipSection.js +3 -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 +4 -4
- package/esm/internal/components/configurationPanels/BaseChartConfigurationPanel.js +2 -2
- 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/LineChartBasedConfigurationPanel.js +1 -1
- package/esm/internal/components/configurationPanels/UnsupportedConfigurationPanel.js +2 -2
- package/esm/internal/components/dialogs/userManagementDialogs/Workspace/WorkspaceItem/granularPermissionUtils.d.ts.map +1 -1
- package/esm/internal/components/dialogs/userManagementDialogs/Workspace/WorkspaceItem/granularPermissionUtils.js +3 -3
- package/esm/internal/components/dialogs/userManagementDialogs/types.d.ts.map +1 -1
- package/esm/internal/components/dialogs/userManagementDialogs/types.js +6 -6
- package/esm/internal/components/insightList/useInsightPagedList.d.ts.map +1 -1
- package/esm/internal/components/insightList/useInsightPagedList.js +3 -3
- package/esm/internal/components/pluggableVisualizations/AbstractPluggableVisualization.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/AbstractPluggableVisualization.js +4 -4
- package/esm/internal/components/pluggableVisualizations/PluggableColumnBarCharts.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/PluggableColumnBarCharts.js +3 -4
- package/esm/internal/components/pluggableVisualizations/areaChart/PluggableAreaChart.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/areaChart/PluggableAreaChart.js +6 -6
- package/esm/internal/components/pluggableVisualizations/barChart/PluggableBarChart.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/barChart/PluggableBarChart.js +7 -7
- package/esm/internal/components/pluggableVisualizations/baseChart/PluggableBaseChart.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/baseChart/PluggableBaseChart.js +9 -8
- package/esm/internal/components/pluggableVisualizations/bubbleChart/PluggableBubbleChart.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/bubbleChart/PluggableBubbleChart.js +4 -5
- package/esm/internal/components/pluggableVisualizations/bulletChart/PluggableBulletChart.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/bulletChart/PluggableBulletChart.js +3 -3
- package/esm/internal/components/pluggableVisualizations/columnChart/PluggableColumnChart.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/columnChart/PluggableColumnChart.js +7 -7
- package/esm/internal/components/pluggableVisualizations/comboChart/PluggableComboChart.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/comboChart/PluggableComboChart.js +6 -6
- package/esm/internal/components/pluggableVisualizations/comboChart/PluggableComboChartDeprecated.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/comboChart/PluggableComboChartDeprecated.js +5 -4
- package/esm/internal/components/pluggableVisualizations/geoAreaChart/PluggableGeoAreaChart.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/geoAreaChart/PluggableGeoAreaChart.js +4 -5
- package/esm/internal/components/pluggableVisualizations/geoChart/PluggableGeoPushpinChart.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/geoChart/PluggableGeoPushpinChart.js +8 -9
- package/esm/internal/components/pluggableVisualizations/geoChartNext/PluggableGeoPushpinChartNext.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/geoChartNext/PluggableGeoPushpinChartNext.js +15 -16
- package/esm/internal/components/pluggableVisualizations/geoCommon/geoPropertySanitization.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/geoCommon/geoPropertySanitization.js +8 -8
- package/esm/internal/components/pluggableVisualizations/headline/PluggableHeadline.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/headline/PluggableHeadline.js +2 -3
- package/esm/internal/components/pluggableVisualizations/headline/headlineBucketHelper.js +3 -3
- package/esm/internal/components/pluggableVisualizations/heatMap/PluggableHeatmap.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/heatMap/PluggableHeatmap.js +8 -7
- package/esm/internal/components/pluggableVisualizations/lineChart/PluggableLineChart.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/lineChart/PluggableLineChart.js +8 -8
- package/esm/internal/components/pluggableVisualizations/mekko/PluggableMekko.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/mekko/PluggableMekko.js +11 -11
- package/esm/internal/components/pluggableVisualizations/pieChart/PluggablePieChart.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/pieChart/PluggablePieChart.js +8 -8
- package/esm/internal/components/pluggableVisualizations/pivotTable/PluggablePivotTable.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/pivotTable/PluggablePivotTable.js +5 -5
- 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/pivotTable/pivotTableConfigFromInsight.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/pivotTable/pivotTableConfigFromInsight.js +6 -6
- package/esm/internal/components/pluggableVisualizations/pivotTableNext/PluggablePivotTableNext.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/pivotTableNext/PluggablePivotTableNext.js +4 -5
- 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/pivotTableNext/sortHelpers.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/pivotTableNext/sortHelpers.js +2 -2
- package/esm/internal/components/pluggableVisualizations/radarChart/PluggableRadarChart.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/radarChart/PluggableRadarChart.js +4 -4
- package/esm/internal/components/pluggableVisualizations/repeater/PluggableRepeater.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/repeater/PluggableRepeater.js +6 -7
- package/esm/internal/components/pluggableVisualizations/sankeyChart/PluggableSankeyChart.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/sankeyChart/PluggableSankeyChart.js +3 -4
- package/esm/internal/components/pluggableVisualizations/scatterPlot/PluggableScatterPlot.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/scatterPlot/PluggableScatterPlot.js +5 -6
- package/esm/internal/components/pluggableVisualizations/treeMap/PluggableTreemap.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/treeMap/PluggableTreemap.js +6 -5
- package/esm/internal/components/pluggableVisualizations/waterfallChart/PluggableWaterfallChart.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/waterfallChart/PluggableWaterfallChart.js +11 -11
- package/esm/internal/components/pluggableVisualizations/xirr/PluggableXirr.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/xirr/PluggableXirr.js +2 -3
- package/esm/internal/interfaces/Visualization.d.ts.map +1 -1
- package/esm/internal/interfaces/Visualization.js +6 -6
- 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/fr-CA.localization-bundle.js +1 -1
- package/esm/internal/translations/it-IT.localization-bundle.js +2 -2
- package/esm/internal/translations/ru-RU.localization-bundle.js +1 -1
- package/esm/internal/translations/tr-TR.localization-bundle.js +1 -1
- package/esm/internal/translations/zh-Hant.localization-bundle.js +4 -4
- package/esm/internal/utils/bucketConfig.d.ts.map +1 -1
- package/esm/internal/utils/bucketConfig.js +5 -5
- package/esm/internal/utils/bucketHelper.d.ts.map +1 -1
- package/esm/internal/utils/bucketHelper.js +15 -14
- package/esm/internal/utils/bucketRules.d.ts.map +1 -1
- package/esm/internal/utils/bucketRules.js +3 -2
- package/esm/internal/utils/colors.d.ts.map +1 -1
- package/esm/internal/utils/colors.js +11 -11
- package/esm/internal/utils/controlsHelper.d.ts.map +1 -1
- package/esm/internal/utils/controlsHelper.js +7 -7
- package/esm/internal/utils/dimensions.d.ts.map +1 -1
- package/esm/internal/utils/dimensions.js +4 -4
- package/esm/internal/utils/drillablePredicates.d.ts.map +1 -1
- package/esm/internal/utils/drillablePredicates.js +4 -4
- package/esm/internal/utils/embeddingCodeGenerator/getReactEmbeddingCodeGenerator.d.ts.map +1 -1
- package/esm/internal/utils/embeddingCodeGenerator/getReactEmbeddingCodeGenerator.js +11 -10
- package/esm/internal/utils/propertiesHelper.d.ts.map +1 -1
- package/esm/internal/utils/propertiesHelper.js +16 -15
- package/esm/internal/utils/removeUseless.js +3 -3
- package/esm/internal/utils/sort.d.ts.map +1 -1
- package/esm/internal/utils/sort.js +9 -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 +10 -10
- package/esm/internal/utils/uiConfigHelpers/baseChartUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/baseChartUiConfigHelper.js +19 -19
- package/esm/internal/utils/uiConfigHelpers/bubbleChartUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/bubbleChartUiConfigHelper.js +8 -8
- package/esm/internal/utils/uiConfigHelpers/bulletChartUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/bulletChartUiConfigHelper.js +2 -2
- package/esm/internal/utils/uiConfigHelpers/columnBarChartUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/columnBarChartUiConfigHelper.js +6 -6
- package/esm/internal/utils/uiConfigHelpers/comboChartUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/comboChartUiConfigHelper.js +8 -8
- package/esm/internal/utils/uiConfigHelpers/comboChartUiConfigHelperDeprecated.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/comboChartUiConfigHelperDeprecated.js +10 -10
- package/esm/internal/utils/uiConfigHelpers/dependencyWheelChartUiConfigHelper.js +6 -6
- package/esm/internal/utils/uiConfigHelpers/donutChartUiConfigHelper.js +5 -5
- package/esm/internal/utils/uiConfigHelpers/funnelChartUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/funnelChartUiConfigHelper.js +6 -6
- 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 +15 -15
- package/esm/internal/utils/uiConfigHelpers/headlineUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/headlineUiConfigHelper.js +10 -10
- package/esm/internal/utils/uiConfigHelpers/heatmapUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/heatmapUiConfigHelper.js +7 -7
- package/esm/internal/utils/uiConfigHelpers/lineChartUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/lineChartUiConfigHelper.js +13 -13
- package/esm/internal/utils/uiConfigHelpers/mekkoUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/mekkoUiConfigHelper.js +7 -7
- package/esm/internal/utils/uiConfigHelpers/pieChartUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/pieChartUiConfigHelper.js +12 -12
- package/esm/internal/utils/uiConfigHelpers/pivotTableNextUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/pivotTableNextUiConfigHelper.js +14 -14
- package/esm/internal/utils/uiConfigHelpers/pivotTableUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/pivotTableUiConfigHelper.js +14 -14
- package/esm/internal/utils/uiConfigHelpers/pyramidChartUiConfigHelper.js +5 -5
- package/esm/internal/utils/uiConfigHelpers/radarChartUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/radarChartUiConfigHelper.js +13 -13
- package/esm/internal/utils/uiConfigHelpers/repeaterUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/repeaterUiConfigHelper.js +14 -14
- package/esm/internal/utils/uiConfigHelpers/sankeyChartUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/sankeyChartUiConfigHelper.js +10 -10
- package/esm/internal/utils/uiConfigHelpers/scatterPlotUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/scatterPlotUiConfigHelper.js +8 -8
- package/esm/internal/utils/uiConfigHelpers/treemapUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/treemapUiConfigHelper.js +12 -12
- package/esm/internal/utils/uiConfigHelpers/waterfallChartUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/waterfallChartUiConfigHelper.js +11 -11
- package/esm/internal/utils/uiConfigHelpers/xirrUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/xirrUiConfigHelper.js +5 -5
- package/esm/notificationsPanel/Notification/Notification.d.ts.map +1 -1
- package/esm/notificationsPanel/Notification/Notification.js +4 -4
- package/esm/sdk-ui-ext.d.ts +6 -2
- package/esm/share/ObjectShareDialog.d.ts +1 -1
- package/esm/share/ObjectShareDialog.js +3 -3
- package/esm/share/messages.d.ts +28 -0
- package/esm/share/messages.d.ts.map +1 -1
- package/esm/share/messages.js +14 -0
- package/esm/share/removeAccessConfirm.d.ts +21 -0
- package/esm/share/removeAccessConfirm.d.ts.map +1 -0
- package/esm/share/removeAccessConfirm.js +27 -0
- package/esm/share/useObjectShareDialog.d.ts +14 -11
- package/esm/share/useObjectShareDialog.d.ts.map +1 -1
- package/esm/share/useObjectShareDialog.js +54 -24
- package/package.json +21 -21
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"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,6 +1,6 @@
|
|
|
1
1
|
// (C) 2019-2026 GoodData Corporation
|
|
2
|
-
import { cloneDeep, set } from "lodash-es";
|
|
3
2
|
import { BucketNames } from "@gooddata/sdk-ui";
|
|
3
|
+
import { _cloneDeep, _set } from "@gooddata/util";
|
|
4
4
|
import { messages } from "../../../locales.js";
|
|
5
5
|
import { ATTRIBUTE, BUCKETS, DATE } from "../../constants/bucket.js";
|
|
6
6
|
import { UICONFIG } from "../../constants/uiConfig.js";
|
|
@@ -45,11 +45,11 @@ function setAreaChartBucketWarningMessages(referencePoint, messageConfig) {
|
|
|
45
45
|
if (!uiConfig) {
|
|
46
46
|
return uiConfig;
|
|
47
47
|
}
|
|
48
|
-
return
|
|
48
|
+
return _set(uiConfig, [BUCKETS, localIdentifier, "warningMessage"], warningMessage);
|
|
49
49
|
}, updatedUiConfig);
|
|
50
50
|
}
|
|
51
51
|
export function setAreaChartUiConfig(referencePoint, intl, visualizationType) {
|
|
52
|
-
const referencePointConfigured =
|
|
52
|
+
const referencePointConfigured = _cloneDeep(referencePoint);
|
|
53
53
|
const buckets = referencePointConfigured?.buckets ?? [];
|
|
54
54
|
const categoriesCount = getItemsCount(buckets, BucketNames.VIEW);
|
|
55
55
|
const stackItems = getStackItems(buckets, [ATTRIBUTE, DATE]);
|
|
@@ -64,13 +64,13 @@ export function setAreaChartUiConfig(referencePoint, intl, visualizationType) {
|
|
|
64
64
|
[BucketNames.VIEW]: getWarningMessageForViewByBucket(intl, measuresCount, stackItems),
|
|
65
65
|
[BucketNames.STACK]: getWarningMessageForStackByBucket(intl, categoriesCount),
|
|
66
66
|
};
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
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);
|
|
71
71
|
setAreaChartBucketWarningMessages(referencePointConfigured, messageConfig);
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
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);
|
|
75
75
|
return referencePointConfigured;
|
|
76
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,6 +1,6 @@
|
|
|
1
1
|
// (C) 2019-2026 GoodData Corporation
|
|
2
|
-
import { cloneDeep, set } from "lodash-es";
|
|
3
2
|
import { BucketNames, VisualizationTypes } from "@gooddata/sdk-ui";
|
|
3
|
+
import { _cloneDeep, _set } from "@gooddata/util";
|
|
4
4
|
import { messages } from "../../../locales.js";
|
|
5
5
|
import { ATTRIBUTE, BUCKETS, DATE } from "../../constants/bucket.js";
|
|
6
6
|
import { OPEN_AS_REPORT, RECOMMENDATIONS, SUPPORTED, UICONFIG } from "../../constants/uiConfig.js";
|
|
@@ -19,7 +19,7 @@ const barViewIcon = "local:bar/bucket-title-view.svg";
|
|
|
19
19
|
const barStackIcon = "local:bar/bucket-title-stack.svg";
|
|
20
20
|
function setBaseChartBucketWarningMessages(referencePoint, intl) {
|
|
21
21
|
const buckets = referencePoint?.buckets ?? [];
|
|
22
|
-
const updatedUiConfig =
|
|
22
|
+
const updatedUiConfig = _cloneDeep(referencePoint?.uiConfig);
|
|
23
23
|
const stackItems = getStackItems(buckets, [ATTRIBUTE, DATE]);
|
|
24
24
|
if (!updatedUiConfig) {
|
|
25
25
|
return updatedUiConfig;
|
|
@@ -40,22 +40,22 @@ function setBaseChartBucketWarningMessages(referencePoint, intl) {
|
|
|
40
40
|
warningMessage = getTranslation(messages["categoryStack"].id, intl);
|
|
41
41
|
}
|
|
42
42
|
if (warningMessage) {
|
|
43
|
-
|
|
43
|
+
_set(updatedUiConfig, [BUCKETS, localIdentifier, "warningMessage"], warningMessage);
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
46
|
});
|
|
47
47
|
return updatedUiConfig;
|
|
48
48
|
}
|
|
49
49
|
export function setBaseChartUiConfig(referencePoint, intl, visualizationType) {
|
|
50
|
-
const referencePointConfigured =
|
|
50
|
+
const referencePointConfigured = _cloneDeep(referencePoint);
|
|
51
51
|
const buckets = referencePointConfigured?.buckets ?? [];
|
|
52
52
|
const measuresCanAddItems = hasNoMeasures(buckets) || hasNoStacksWithDate(buckets);
|
|
53
53
|
const stackCanAddItems = !hasMoreThanOneMasterMeasure(buckets, BucketNames.MEASURES);
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
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));
|
|
59
59
|
const iconsMap = {
|
|
60
60
|
column: {
|
|
61
61
|
[BucketNames.MEASURES]: columnMeasuresIcon,
|
|
@@ -68,26 +68,26 @@ export function setBaseChartUiConfig(referencePoint, intl, visualizationType) {
|
|
|
68
68
|
[BucketNames.STACK]: barStackIcon,
|
|
69
69
|
},
|
|
70
70
|
};
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
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));
|
|
75
75
|
return referencePointConfigured;
|
|
76
76
|
}
|
|
77
77
|
export function setBaseChartUiConfigRecommendations(referencePoint, visualizationType) {
|
|
78
78
|
if (visualizationType === VisualizationTypes.COLUMN) {
|
|
79
|
-
const newReferencePoint =
|
|
79
|
+
const newReferencePoint = _cloneDeep(referencePoint);
|
|
80
80
|
const buckets = newReferencePoint?.buckets;
|
|
81
81
|
const filters = newReferencePoint?.filters;
|
|
82
82
|
const percentEnabled = percentRecommendationEnabled(buckets, filters);
|
|
83
83
|
const comparisonAndTrending = comparisonAndTrendingRecommendationEnabled(buckets);
|
|
84
84
|
const overTimeComparison = overTimeComparisonRecommendationEnabled(newReferencePoint);
|
|
85
85
|
const previousPeriod = previousPeriodRecommendationEnabled(buckets);
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
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);
|
|
91
91
|
return newReferencePoint;
|
|
92
92
|
}
|
|
93
93
|
return referencePoint;
|
|
@@ -1 +1 @@
|
|
|
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;
|
|
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,6 +1,6 @@
|
|
|
1
|
-
// (C) 2019-
|
|
2
|
-
import { cloneDeep, set } from "lodash-es";
|
|
1
|
+
// (C) 2019-2026 GoodData Corporation
|
|
3
2
|
import { BucketNames } from "@gooddata/sdk-ui";
|
|
3
|
+
import { _cloneDeep, _set } from "@gooddata/util";
|
|
4
4
|
import { BUCKETS } from "../../constants/bucket.js";
|
|
5
5
|
import { UICONFIG } from "../../constants/uiConfig.js";
|
|
6
6
|
import { setBucketTitles } from "../bucketHelper.js";
|
|
@@ -12,11 +12,11 @@ const bubbleMeasuresYIcon = "local:bubble/bucket-title-measures-y.svg";
|
|
|
12
12
|
const bubbleSizeIcon = "local:bubble/bucket-title-size.svg";
|
|
13
13
|
const bubbleViewByIcon = "local:bubble/bucket-title-view-by.svg";
|
|
14
14
|
export function setBubbleChartUiConfig(referencePoint, intl, visualizationType) {
|
|
15
|
-
const referencePointConfigured =
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
15
|
+
const referencePointConfigured = _cloneDeep(referencePoint);
|
|
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);
|
|
21
21
|
return referencePointConfigured;
|
|
22
22
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bulletChartUiConfigHelper.d.ts","sourceRoot":"","sources":["../../../../src/internal/utils/uiConfigHelpers/bulletChartUiConfigHelper.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"bulletChartUiConfigHelper.d.ts","sourceRoot":"","sources":["../../../../src/internal/utils/uiConfigHelpers/bulletChartUiConfigHelper.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;AAO5C,OAAO,EAAE,KAAK,uBAAuB,EAAE,MAAM,mCAAmC,CAAC;AAYjF,wBAAgB,sBAAsB,CAClC,cAAc,EAAE,uBAAuB,EACvC,IAAI,EAAE,SAAS,EACf,iBAAiB,EAAE,MAAM,GAC1B,uBAAuB,CA0CzB"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// (C) 2019-2026 GoodData Corporation
|
|
2
|
-
import { cloneDeep } from "lodash-es";
|
|
3
2
|
import { BucketNames } from "@gooddata/sdk-ui";
|
|
3
|
+
import { _cloneDeep } from "@gooddata/util";
|
|
4
4
|
import { messages } from "../../../locales.js";
|
|
5
5
|
import { UICONFIG } from "../../constants/uiConfig.js";
|
|
6
6
|
import { getItemsCount, setBucketTitles } from "../bucketHelper.js";
|
|
@@ -13,7 +13,7 @@ const bulletTargetMeasureIcon = "local:bullet/bucket-title-target.svg";
|
|
|
13
13
|
const bulletComparativeMeasureIcon = "local:bullet/bucket-title-comparative.svg";
|
|
14
14
|
const bulletViewByIcon = "local:bullet/bucket-title-view-by.svg";
|
|
15
15
|
export function getBulletChartUiConfig(referencePoint, intl, visualizationType) {
|
|
16
|
-
const referencePointConfigured =
|
|
16
|
+
const referencePointConfigured = _cloneDeep(referencePoint);
|
|
17
17
|
referencePointConfigured[UICONFIG] = setBucketTitles(referencePointConfigured, visualizationType, intl);
|
|
18
18
|
const buckets = referencePoint?.buckets ?? [];
|
|
19
19
|
const primaryMeasuresCount = getItemsCount(buckets, BucketNames.MEASURES);
|
|
@@ -1 +1 @@
|
|
|
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;
|
|
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,20 +1,20 @@
|
|
|
1
|
-
// (C) 2019-
|
|
2
|
-
import { cloneDeep, set } from "lodash-es";
|
|
1
|
+
// (C) 2019-2026 GoodData Corporation
|
|
3
2
|
import { BucketNames, OverTimeComparisonTypes } from "@gooddata/sdk-ui";
|
|
3
|
+
import { _cloneDeep, _set } from "@gooddata/util";
|
|
4
4
|
import { messages } from "../../../locales.js";
|
|
5
5
|
import { BUCKETS } from "../../constants/bucket.js";
|
|
6
6
|
import { SUPPORTED_COMPARISON_TYPES, UICONFIG } from "../../constants/uiConfig.js";
|
|
7
7
|
import { getMeasureItems } from "../bucketHelper.js";
|
|
8
8
|
import { getTranslation } from "../translations.js";
|
|
9
9
|
export function setColumnBarChartUiConfig(referencePoint, intl) {
|
|
10
|
-
const referencePointConfigured =
|
|
11
|
-
|
|
10
|
+
const referencePointConfigured = _cloneDeep(referencePoint);
|
|
11
|
+
_set(referencePointConfigured, [UICONFIG, SUPPORTED_COMPARISON_TYPES], [OverTimeComparisonTypes.SAME_PERIOD_PREVIOUS_YEAR, OverTimeComparisonTypes.PREVIOUS_PERIOD]);
|
|
12
12
|
const buckets = referencePointConfigured?.buckets ?? [];
|
|
13
13
|
const measures = getMeasureItems(buckets);
|
|
14
14
|
if (measures.length > 1) {
|
|
15
15
|
const warningMessage = getTranslation(messages["measureStack"].id, intl);
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
_set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.STACK, "canAddItems"], false);
|
|
17
|
+
_set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.STACK, "warningMessage"], warningMessage);
|
|
18
18
|
}
|
|
19
19
|
return referencePointConfigured;
|
|
20
20
|
}
|
|
@@ -1 +1 @@
|
|
|
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;
|
|
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,7 +1,7 @@
|
|
|
1
|
-
// (C) 2019-
|
|
2
|
-
import { cloneDeep, set } from "lodash-es";
|
|
1
|
+
// (C) 2019-2026 GoodData Corporation
|
|
3
2
|
import { BucketNames, VisualizationTypes } from "@gooddata/sdk-ui";
|
|
4
3
|
import { isLineChart } from "@gooddata/sdk-ui-charts";
|
|
4
|
+
import { _cloneDeep, _set } from "@gooddata/util";
|
|
5
5
|
import { messages } from "../../../locales.js";
|
|
6
6
|
import { BUCKETS } from "../../constants/bucket.js";
|
|
7
7
|
import { UICONFIG } from "../../constants/uiConfig.js";
|
|
@@ -38,10 +38,10 @@ const VIEW_BY_ICONS = {
|
|
|
38
38
|
};
|
|
39
39
|
function setCanStackInPercent(uiConfig, secondaryChartType, isDualAxis) {
|
|
40
40
|
const canStackInPercent = !(isDualAxis === false && isLineChart(secondaryChartType));
|
|
41
|
-
|
|
41
|
+
_set(uiConfig, "optionalStacking.canStackInPercent", canStackInPercent);
|
|
42
42
|
}
|
|
43
43
|
export function setComboChartUiConfig(referencePoint, intl, visualizationType) {
|
|
44
|
-
const referencePointConfigured =
|
|
44
|
+
const referencePointConfigured = _cloneDeep(referencePoint);
|
|
45
45
|
const measureBuckets = getBucketsByNames(referencePointConfigured?.buckets, [
|
|
46
46
|
BucketNames.MEASURES,
|
|
47
47
|
BucketNames.SECONDARY_MEASURES,
|
|
@@ -57,10 +57,10 @@ export function setComboChartUiConfig(referencePoint, intl, visualizationType) {
|
|
|
57
57
|
const type = chartTypes[index];
|
|
58
58
|
const localIdentifier = bucket?.localIdentifier ?? "";
|
|
59
59
|
const subtitle = getTranslation(messages[type].id, intl);
|
|
60
|
-
|
|
61
|
-
|
|
60
|
+
_set(updatedUiConfig, [BUCKETS, localIdentifier, "subtitle"], subtitle);
|
|
61
|
+
_set(updatedUiConfig, [BUCKETS, localIdentifier, "icon"], MEASURE_BUCKET_ICONS[type]);
|
|
62
62
|
});
|
|
63
|
-
|
|
64
|
-
|
|
63
|
+
_set(updatedUiConfig, [BUCKETS, BucketNames.VIEW, "icon"], VIEW_BY_ICONS[chartTypes.join("-")]);
|
|
64
|
+
_set(referencePointConfigured, UICONFIG, updatedUiConfig);
|
|
65
65
|
return referencePointConfigured;
|
|
66
66
|
}
|
|
@@ -1 +1 @@
|
|
|
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;
|
|
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,6 +1,6 @@
|
|
|
1
|
-
// (C) 2019-
|
|
2
|
-
import { cloneDeep, set } from "lodash-es";
|
|
1
|
+
// (C) 2019-2026 GoodData Corporation
|
|
3
2
|
import { BucketNames } from "@gooddata/sdk-ui";
|
|
3
|
+
import { _cloneDeep, _set } from "@gooddata/util";
|
|
4
4
|
import { BUCKETS } from "../../constants/bucket.js";
|
|
5
5
|
import { UICONFIG } from "../../constants/uiConfig.js";
|
|
6
6
|
import { setBucketTitles } from "../bucketHelper.js";
|
|
@@ -11,13 +11,13 @@ const comboSecondaryMeasuresIcon = "local:combo/bucket-title-secondary-measures.
|
|
|
11
11
|
const columnMeasureIcon = "local:combo/bucket-title-measures-column.svg";
|
|
12
12
|
const columnLineIcon = "local:combo/bucket-title-view-column-line.svg";
|
|
13
13
|
export function setComboChartUiConfigDeprecated(referencePoint, intl, visualizationType) {
|
|
14
|
-
const referencePointConfigured =
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
14
|
+
const referencePointConfigured = _cloneDeep(referencePoint);
|
|
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);
|
|
22
22
|
return referencePointConfigured;
|
|
23
23
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
// (C) 2019-
|
|
2
|
-
import { cloneDeep, set } from "lodash-es";
|
|
1
|
+
// (C) 2019-2026 GoodData Corporation
|
|
3
2
|
import { BucketNames } from "@gooddata/sdk-ui";
|
|
3
|
+
import { _cloneDeep, _set } from "@gooddata/util";
|
|
4
4
|
import { BUCKETS } from "../../constants/bucket.js";
|
|
5
5
|
import { UICONFIG } from "../../constants/uiConfig.js";
|
|
6
6
|
// If you need to edit these icons
|
|
@@ -10,9 +10,9 @@ const measureIcon = "local:dependencyWheel/bucket-title-measures.svg";
|
|
|
10
10
|
const fromIcon = "local:dependencyWheel/bucket-title-from.svg";
|
|
11
11
|
const toIcon = "local:dependencyWheel/bucket-title-to.svg";
|
|
12
12
|
export const configDependencyWheelUiConfig = (extendedReferencePoint) => {
|
|
13
|
-
const referencePointConfigured =
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
13
|
+
const referencePointConfigured = _cloneDeep(extendedReferencePoint);
|
|
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);
|
|
17
17
|
return referencePointConfigured;
|
|
18
18
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
// (C) 2019-
|
|
2
|
-
import { cloneDeep, set } from "lodash-es";
|
|
1
|
+
// (C) 2019-2026 GoodData Corporation
|
|
3
2
|
import { BucketNames } from "@gooddata/sdk-ui";
|
|
3
|
+
import { _cloneDeep, _set } from "@gooddata/util";
|
|
4
4
|
import { BUCKETS } from "../../constants/bucket.js";
|
|
5
5
|
import { UICONFIG, disabledOpenAsReportConfig } from "../../constants/uiConfig.js";
|
|
6
6
|
// If you need to edit these icons
|
|
@@ -9,9 +9,9 @@ import { UICONFIG, disabledOpenAsReportConfig } from "../../constants/uiConfig.j
|
|
|
9
9
|
const donutMeasuresIcon = "local:donut/bucket-title-measures.svg";
|
|
10
10
|
const donutViewIcon = "local:donut/bucket-title-view.svg";
|
|
11
11
|
export function setDonutChartUiConfig(referencePoint) {
|
|
12
|
-
const referencePointConfigured =
|
|
12
|
+
const referencePointConfigured = _cloneDeep(referencePoint);
|
|
13
13
|
Object.assign(referencePointConfigured[UICONFIG], disabledOpenAsReportConfig);
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
_set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.MEASURES, "icon"], donutMeasuresIcon);
|
|
15
|
+
_set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.VIEW, "icon"], donutViewIcon);
|
|
16
16
|
return referencePointConfigured;
|
|
17
17
|
}
|
|
@@ -1 +1 @@
|
|
|
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,
|
|
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,6 +1,6 @@
|
|
|
1
|
-
// (C) 2019-
|
|
2
|
-
import { cloneDeep, set } from "lodash-es";
|
|
1
|
+
// (C) 2019-2026 GoodData Corporation
|
|
3
2
|
import { BucketNames } from "@gooddata/sdk-ui";
|
|
3
|
+
import { _cloneDeep, _set } from "@gooddata/util";
|
|
4
4
|
import { BUCKETS } from "../../constants/bucket.js";
|
|
5
5
|
import { UICONFIG, disabledOpenAsReportConfig } from "../../constants/uiConfig.js";
|
|
6
6
|
import { configurePercent } from "../bucketConfig.js";
|
|
@@ -10,12 +10,12 @@ import { configurePercent } from "../bucketConfig.js";
|
|
|
10
10
|
const funnelMeasuresIcon = "local:funnel/bucket-title-measures.svg";
|
|
11
11
|
const funnelViewIcon = "local:funnel/bucket-title-view.svg";
|
|
12
12
|
export function setFunnelChartUiConfig(referencePoint) {
|
|
13
|
-
const referencePointConfigured =
|
|
13
|
+
const referencePointConfigured = _cloneDeep(referencePoint);
|
|
14
14
|
Object.assign(referencePointConfigured[UICONFIG], disabledOpenAsReportConfig);
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
_set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.MEASURES, "icon"], funnelMeasuresIcon);
|
|
16
|
+
_set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.VIEW, "icon"], funnelViewIcon);
|
|
17
17
|
// always disabled for funnel
|
|
18
|
-
|
|
18
|
+
_set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.MEASURES, "isShowInPercentVisible"], false);
|
|
19
19
|
configurePercent(referencePointConfigured, true);
|
|
20
20
|
return referencePointConfigured;
|
|
21
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,6 +1,6 @@
|
|
|
1
1
|
// (C) 2019-2026 GoodData Corporation
|
|
2
|
-
import { cloneDeep, set } from "lodash-es";
|
|
3
2
|
import { BucketNames } from "@gooddata/sdk-ui";
|
|
3
|
+
import { _cloneDeep, _set } from "@gooddata/util";
|
|
4
4
|
import { BUCKETS } from "../../constants/bucket.js";
|
|
5
5
|
import { isGeoPushpinIconEnabled } from "../../constants/featureFlags.js";
|
|
6
6
|
import { OPEN_AS_REPORT, SUPPORTED, UICONFIG } from "../../constants/uiConfig.js";
|
|
@@ -22,23 +22,23 @@ function canAddItemsToBucket(referencePoint, bucketName) {
|
|
|
22
22
|
return getItemsCount(referencePoint.buckets ?? [], bucketName) < itemsLimit;
|
|
23
23
|
}
|
|
24
24
|
export function setGeoPushpinUiConfig(referencePoint, intl, visualizationType, featureFlags) {
|
|
25
|
-
const referencePointConfigured =
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
25
|
+
const referencePointConfigured = _cloneDeep(referencePoint);
|
|
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);
|
|
32
32
|
// overide base config
|
|
33
|
-
|
|
33
|
+
_set(referencePointConfigured, [UICONFIG, OPEN_AS_REPORT, SUPPORTED], false);
|
|
34
34
|
const iconEnabled = isGeoPushpinIconEnabled(featureFlags);
|
|
35
35
|
const shapeType = referencePointConfigured.properties?.controls?.["points"]?.shapeType ?? "circle";
|
|
36
36
|
const sizeColorBucketsEditable = arePushpinSizeColorBucketsEditable(shapeType);
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
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));
|
|
42
42
|
// Build the filtered bucket set
|
|
43
43
|
const filteredBuckets = {
|
|
44
44
|
[BucketNames.LOCATION]: referencePointConfigured?.uiConfig?.buckets?.[BucketNames.LOCATION],
|
|
@@ -53,7 +53,7 @@ export function setGeoPushpinUiConfig(referencePoint, intl, visualizationType, f
|
|
|
53
53
|
referencePointConfigured?.uiConfig?.buckets?.[BucketNames.MEASURES];
|
|
54
54
|
}
|
|
55
55
|
// only apply related bucket uiConfig
|
|
56
|
-
|
|
56
|
+
_set(referencePointConfigured, [UICONFIG, BUCKETS], filteredBuckets);
|
|
57
57
|
return referencePointConfigured;
|
|
58
58
|
}
|
|
59
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,9 +1,9 @@
|
|
|
1
1
|
// (C) 2019-2026 GoodData Corporation
|
|
2
|
-
import { cloneDeep, 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";
|
|
6
|
+
import { _cloneDeep, _set } from "@gooddata/util";
|
|
7
7
|
import { messages } from "../../../locales.js";
|
|
8
8
|
import { BUCKETS } from "../../constants/bucket.js";
|
|
9
9
|
import { HEADLINE_DEFAULT_CONTROL_PROPERTIES } from "../../constants/supportedProperties.js";
|
|
@@ -17,8 +17,8 @@ import { getTranslation } from "../translations.js";
|
|
|
17
17
|
const headlineMeasuresIcon = "local:headline/bucket-title-measures.svg";
|
|
18
18
|
const headlineSecondaryMeasuresIcon = "local:headline/bucket-title-secondary-measures.svg";
|
|
19
19
|
export function getDefaultHeadlineUiConfig() {
|
|
20
|
-
const uiConfig =
|
|
21
|
-
|
|
20
|
+
const uiConfig = _cloneDeep(DEFAULT_HEADLINE_UICONFIG);
|
|
21
|
+
_set(uiConfig, [BUCKETS, BucketNames.SECONDARY_MEASURES, "itemsLimit"], 2);
|
|
22
22
|
return uiConfig;
|
|
23
23
|
}
|
|
24
24
|
export function getHeadlineUiConfig(referencePoint, intl) {
|
|
@@ -30,10 +30,10 @@ export function getHeadlineUiConfig(referencePoint, intl) {
|
|
|
30
30
|
...referencePoint,
|
|
31
31
|
uiConfig,
|
|
32
32
|
}, VisualizationTypes.HEADLINE, intl);
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
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);
|
|
37
37
|
const primaryMeasuresCount = getItemsCount(buckets, BucketNames.MEASURES);
|
|
38
38
|
const secondaryMeasuresCount = getItemsCount(buckets, BucketNames.SECONDARY_MEASURES);
|
|
39
39
|
if (primaryMeasuresCount === 0 && secondaryMeasuresCount !== 0) {
|
|
@@ -42,9 +42,9 @@ export function getHeadlineUiConfig(referencePoint, intl) {
|
|
|
42
42
|
text: getTranslation(messages["text"].id, intl),
|
|
43
43
|
};
|
|
44
44
|
}
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
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);
|
|
48
48
|
return uiConfig;
|
|
49
49
|
}
|
|
50
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":"AAEA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;
|
|
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,6 +1,6 @@
|
|
|
1
|
-
// (C) 2019-
|
|
2
|
-
import { cloneDeep, set } from "lodash-es";
|
|
1
|
+
// (C) 2019-2026 GoodData Corporation
|
|
3
2
|
import { BucketNames } from "@gooddata/sdk-ui";
|
|
3
|
+
import { _cloneDeep, _set } from "@gooddata/util";
|
|
4
4
|
import { BUCKETS } from "../../constants/bucket.js";
|
|
5
5
|
import { UICONFIG } from "../../constants/uiConfig.js";
|
|
6
6
|
import { setBucketTitles } from "../bucketHelper.js";
|
|
@@ -11,10 +11,10 @@ const heatmapMeasuresIcon = "local:heatmap/bucket-title-measures.svg";
|
|
|
11
11
|
const heatmapViewIcon = "local:heatmap/bucket-title-view.svg";
|
|
12
12
|
const heatmapStackIcon = "local:heatmap/bucket-title-stack.svg";
|
|
13
13
|
export function setHeatmapUiConfig(referencePoint, intl, visualizationType) {
|
|
14
|
-
const referencePointConfigured =
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
14
|
+
const referencePointConfigured = _cloneDeep(referencePoint);
|
|
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);
|
|
19
19
|
return referencePointConfigured;
|
|
20
20
|
}
|