@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,9 +1,9 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
// (C) 2019-2026 GoodData Corporation
|
|
3
|
-
import { cloneDeep, isEmpty, set } from "lodash-es";
|
|
4
3
|
import { bucketsIsEmpty, insightBucket, insightBuckets, newAttributeSort, } from "@gooddata/sdk-model";
|
|
5
4
|
import { BucketNames, VisualizationTypes } from "@gooddata/sdk-ui";
|
|
6
5
|
import { isAreaChart, isLineChart } from "@gooddata/sdk-ui-charts";
|
|
6
|
+
import { _cloneDeep, _isEmpty, _set } from "@gooddata/util";
|
|
7
7
|
import { AXIS, AXIS_NAME } from "../../../constants/axis.js";
|
|
8
8
|
import { BUCKETS, METRIC } from "../../../constants/bucket.js";
|
|
9
9
|
import { PROPERTY_CONTROLS_DUAL_AXIS } from "../../../constants/properties.js";
|
|
@@ -68,7 +68,7 @@ export class PluggableComboChart extends PluggableBaseChart {
|
|
|
68
68
|
return COMBO_CHART_SUPPORTED_PROPERTIES[this.axis] || [];
|
|
69
69
|
}
|
|
70
70
|
getUiConfig() {
|
|
71
|
-
const config =
|
|
71
|
+
const config = _cloneDeep({
|
|
72
72
|
...COMBO_CHART_UICONFIG,
|
|
73
73
|
optionalStacking: {
|
|
74
74
|
supported: true,
|
|
@@ -79,7 +79,7 @@ export class PluggableComboChart extends PluggableBaseChart {
|
|
|
79
79
|
return config;
|
|
80
80
|
}
|
|
81
81
|
getExtendedReferencePoint(referencePoint) {
|
|
82
|
-
const clonedReferencePoint =
|
|
82
|
+
const clonedReferencePoint = _cloneDeep(referencePoint);
|
|
83
83
|
const properties = this.configureChartTypes(clonedReferencePoint);
|
|
84
84
|
this.primaryChartType = properties?.controls?.["primaryChartType"] ?? VisualizationTypes.COLUMN;
|
|
85
85
|
this.secondaryChartType = properties?.controls?.["secondaryChartType"] ?? VisualizationTypes.COLUMN;
|
|
@@ -137,10 +137,10 @@ export class PluggableComboChart extends PluggableBaseChart {
|
|
|
137
137
|
secondaryMeasures = getAllMeasuresShowOnSecondaryAxis(buckets);
|
|
138
138
|
}
|
|
139
139
|
const isDualAxisEnabled = isDualAxisOrSomeSecondaryAxisMeasure(extReferencePoint, secondaryMeasures);
|
|
140
|
-
|
|
140
|
+
_set(extReferencePoint, PROPERTY_CONTROLS_DUAL_AXIS, isDualAxisEnabled);
|
|
141
141
|
const primaryChartType = extReferencePoint?.properties?.controls?.["primaryChartType"] ?? VisualizationTypes.COLUMN;
|
|
142
142
|
const secondaryChartType = extReferencePoint?.properties?.controls?.["secondaryChartType"] ?? VisualizationTypes.LINE;
|
|
143
|
-
|
|
143
|
+
_set(extReferencePoint, BUCKETS, [
|
|
144
144
|
{
|
|
145
145
|
localIdentifier: BucketNames.MEASURES,
|
|
146
146
|
items: setMeasuresShowOnSecondaryAxis(measures, false),
|
|
@@ -254,7 +254,7 @@ export class PluggableComboChart extends PluggableBaseChart {
|
|
|
254
254
|
const secondaryMeasures = getBucketItemsByType(buckets, BucketNames.SECONDARY_MEASURES, [METRIC]);
|
|
255
255
|
const viewBy = getBucketItems(buckets, BucketNames.VIEW);
|
|
256
256
|
const defaultSort = viewBy.map((vb) => newAttributeSort(vb.localIdentifier, "asc"));
|
|
257
|
-
if (!
|
|
257
|
+
if (!_isEmpty(viewBy) && (!_isEmpty(measures) || !_isEmpty(secondaryMeasures))) {
|
|
258
258
|
const mergedMeasures = [...measures, ...secondaryMeasures];
|
|
259
259
|
return {
|
|
260
260
|
defaultSort,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PluggableComboChartDeprecated.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/pluggableVisualizations/comboChart/PluggableComboChartDeprecated.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"PluggableComboChartDeprecated.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/pluggableVisualizations/comboChart/PluggableComboChartDeprecated.tsx"],"names":[],"mappings":"AASA,OAAO,EAEH,KAAK,uBAAuB,EAC5B,KAAK,eAAe,EACpB,KAAK,aAAa,EACrB,MAAM,sCAAsC,CAAC;AAe9C,OAAO,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,CAAC;AAExE,qBAAa,6BAA8B,SAAQ,kBAAkB;IACjE,YAAY,KAAK,EAAE,aAAa,EAM/B;IAEe,yBAAyB,CACrC,cAAc,EAAE,eAAe,GAChC,OAAO,CAAC,uBAAuB,CAAC,CAwDlC;IAED,UAAmB,wBAAwB,IAAI,IAAI,CAgBlD;CACJ"}
|
package/esm/internal/components/pluggableVisualizations/comboChart/PluggableComboChartDeprecated.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
// (C) 2019-2026 GoodData Corporation
|
|
3
|
-
import {
|
|
3
|
+
import { without } from "lodash-es";
|
|
4
4
|
import { BucketNames, VisualizationTypes } from "@gooddata/sdk-ui";
|
|
5
|
+
import { _cloneDeep, _set } from "@gooddata/util";
|
|
5
6
|
import { BUCKETS, METRIC } from "../../../constants/bucket.js";
|
|
6
7
|
import { COMBO_CHART_UICONFIG_DEPRECATED } from "../../../constants/uiConfig.js";
|
|
7
8
|
import { configureOverTimeComparison, configurePercent } from "../../../utils/bucketConfig.js";
|
|
@@ -18,10 +19,10 @@ export class PluggableComboChartDeprecated extends PluggableBaseChart {
|
|
|
18
19
|
this.initializeProperties(props.visualizationProperties);
|
|
19
20
|
}
|
|
20
21
|
getExtendedReferencePoint(referencePoint) {
|
|
21
|
-
const clonedReferencePoint =
|
|
22
|
+
const clonedReferencePoint = _cloneDeep(referencePoint);
|
|
22
23
|
let newReferencePoint = {
|
|
23
24
|
...clonedReferencePoint,
|
|
24
|
-
uiConfig:
|
|
25
|
+
uiConfig: _cloneDeep(COMBO_CHART_UICONFIG_DEPRECATED),
|
|
25
26
|
};
|
|
26
27
|
const buckets = clonedReferencePoint?.buckets ?? [];
|
|
27
28
|
const attributes = getAllAttributeItemsWithPreference(buckets, [
|
|
@@ -43,7 +44,7 @@ export class PluggableComboChartDeprecated extends PluggableBaseChart {
|
|
|
43
44
|
measures = getFirstMasterWithDerived(allMeasures);
|
|
44
45
|
secondaryMeasures = without(allMeasures, ...measures);
|
|
45
46
|
}
|
|
46
|
-
|
|
47
|
+
_set(newReferencePoint, BUCKETS, [
|
|
47
48
|
{
|
|
48
49
|
localIdentifier: BucketNames.MEASURES,
|
|
49
50
|
items: measures,
|
package/esm/internal/components/pluggableVisualizations/geoAreaChart/PluggableGeoAreaChart.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PluggableGeoAreaChart.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/pluggableVisualizations/geoAreaChart/PluggableGeoAreaChart.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"PluggableGeoAreaChart.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/pluggableVisualizations/geoAreaChart/PluggableGeoAreaChart.tsx"],"names":[],"mappings":"AAEA,OAAO,EAEH,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,EAC1B,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAEH,KAAK,kBAAkB,EAM1B,MAAM,qBAAqB,CAAC;AAiB7B,OAAO,EAEH,KAAK,uBAAuB,EAC5B,KAAK,eAAe,EACpB,KAAK,SAAS,EACd,KAAK,aAAa,EAClB,KAAK,SAAS,EAEjB,MAAM,sCAAsC,CAAC;AAQ9C,OAAO,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,CAAC;AAiCxE;;;;;;GAMG;AACH,qBAAa,qBAAsB,SAAQ,kBAAkB;IACzD,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAqB;IAC7C,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAS;IACnC,OAAO,CAAC,QAAQ,CAAC,WAAW,CAA4B;IACxD,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAAwB;IAE3D,YAAY,KAAK,EAAE,aAAa,EAQ/B;IAID,OAAO,CAAC,wBAAwB;IAMhC;;OAEG;IACa,yBAAyB,CACrC,cAAc,EAAE,eAAe,GAChC,OAAO,CAAC,uBAAuB,CAAC,CAyBlC;IAEe,WAAW,IAAI,SAAS,CAEvC;IAED,UAAmB,0BAA0B,IAAI,MAAM,EAAE,CAExD;IAED;;OAEG;IACH,UAAmB,gBAAgB,CAC/B,sBAAsB,EAAE,uBAAuB,GAChD,uBAAuB,CAkBzB;IAED;;OAEG;IACH,UAAmB,iBAAiB,CAAC,OAAO,EAAE,kBAAkB,GAAG,OAAO,CAWzE;IAED;;;;;;;OAOG;IACa,YAAY,CACxB,OAAO,EAAE,SAAS,EAClB,OAAO,EAAE,kBAAkB,EAC3B,gBAAgB,EAAE,iBAAiB,GACpC,kBAAkB,CAqBpB;IAEe,aAAa,CACzB,OAAO,EAAE,SAAS,EAClB,OAAO,EAAE,kBAAkB,EAC3B,gBAAgB,EAAE,iBAAiB,GACpC,kBAAkB,EAAE,CAqBtB;IAED,UAAmB,wBAAwB,CAAC,OAAO,EAAE,kBAAkB,EAAE,OAAO,EAAE,SAAS,GAAG,IAAI,CAgDjG;IAED;;OAEG;IACH,OAAO,CAAC,+BAA+B;IAevC,OAAO,CAAC,oBAAoB;IAe5B,UAAmB,mBAAmB,CAClC,OAAO,EAAE,SAAS,EAClB,OAAO,EAAE,kBAAkB,EAC3B,gBAAgB,EAAE,iBAAiB,GACpC,IAAI,CA0CN;IAED,OAAO,CAAC,wBAAwB;IAiDhC,OAAO,CAAC,8BAA8B;IAItC,OAAO,CAAC,8BAA8B;IAyBtC,OAAO,CAAC,eAAe;IASvB,OAAO,CAAC,cAAc,CAOnB;IAEH,OAAO,CAAC,2BAA2B,CAAmD;IACtF,OAAO,CAAC,iBAAiB,CAAyC;IAClE,OAAO,CAAC,mBAAmB,CAA2C;IACtE,OAAO,CAAC,8BAA8B,CAAsD;IAC5F,OAAO,CAAC,iBAAiB,CAA0E;CACtG"}
|
package/esm/internal/components/pluggableVisualizations/geoAreaChart/PluggableGeoAreaChart.js
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
// (C) 2025-2026 GoodData Corporation
|
|
3
|
-
import { cloneDeep, set } from "lodash-es";
|
|
4
2
|
import { insightBuckets, insightFilters, insightHasDataDefined, insightLayers, insightTitle, } from "@gooddata/sdk-model";
|
|
5
3
|
import { GeoAreaMissingSdkError, VisualizationTypes } from "@gooddata/sdk-ui";
|
|
6
4
|
import { isGeoLayerPushpin } from "@gooddata/sdk-ui-geo";
|
|
7
5
|
import { AREA_LAYER_ID, GeoChartInternal, buildLayerExecution, insightLayerToGeoLayer, insightLayersToGeoLayers, } from "@gooddata/sdk-ui-geo/internal";
|
|
6
|
+
import { _cloneDeep, _set } from "@gooddata/util";
|
|
8
7
|
import { BUCKETS } from "../../../constants/bucket.js";
|
|
9
8
|
import { isGeoChartsViewportConfigEnabled } from "../../../constants/featureFlags.js";
|
|
10
9
|
import { sanitizeGeoMapStyleOptions } from "../../../constants/geoMapStyle.js";
|
|
@@ -67,7 +66,7 @@ export class PluggableGeoAreaChart extends PluggableBaseChart {
|
|
|
67
66
|
// The generic sanitizeFilters() (in PluggableBaseChart) does not know about additional layers and can
|
|
68
67
|
// incorrectly drop MVFs that are meant for non-root layers (e.g., pushpin layer MVFs).
|
|
69
68
|
// We keep the original filter bucket intact here and rely on per-layer execution sanitization instead.
|
|
70
|
-
const originalFilters =
|
|
69
|
+
const originalFilters = _cloneDeep(referencePoint.filters);
|
|
71
70
|
return super
|
|
72
71
|
.getExtendedReferencePoint(referencePoint)
|
|
73
72
|
.then((extendedReferencePoint) => {
|
|
@@ -80,7 +79,7 @@ export class PluggableGeoAreaChart extends PluggableBaseChart {
|
|
|
80
79
|
});
|
|
81
80
|
}
|
|
82
81
|
getUiConfig() {
|
|
83
|
-
return
|
|
82
|
+
return _cloneDeep(GEO_AREA_CHART_UICONFIG);
|
|
84
83
|
}
|
|
85
84
|
getSupportedPropertiesList() {
|
|
86
85
|
return GEOAREA_SUPPORTED_PROPERTIES;
|
|
@@ -96,7 +95,7 @@ export class PluggableGeoAreaChart extends PluggableBaseChart {
|
|
|
96
95
|
const colorMeasures = getColorMeasures(buckets);
|
|
97
96
|
const areaItems = getAreaItems(buckets, uiConfig);
|
|
98
97
|
const configuredBuckets = createAreaConfiguredBuckets(buckets, areaItems, segmentItems, colorMeasures, uiConfig);
|
|
99
|
-
|
|
98
|
+
_set(sanitized, BUCKETS, configuredBuckets);
|
|
100
99
|
return sanitized;
|
|
101
100
|
}
|
|
102
101
|
/**
|
package/esm/internal/components/pluggableVisualizations/geoChart/PluggableGeoPushpinChart.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PluggableGeoPushpinChart.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/pluggableVisualizations/geoChart/PluggableGeoPushpinChart.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"PluggableGeoPushpinChart.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/pluggableVisualizations/geoChart/PluggableGeoPushpinChart.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AACnE,OAAO,EAEH,KAAK,kBAAkB,EAkB1B,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAGH,KAAK,UAAU,EAElB,MAAM,sBAAsB,CAAC;AAQ9B,OAAO,EAIH,KAAK,uBAAuB,EAC5B,KAAK,eAAe,EACpB,KAAK,SAAS,EACd,KAAK,aAAa,EAClB,KAAK,SAAS,EACd,KAAK,wBAAwB,EAChC,MAAM,sCAAsC,CAAC;AAoB9C,OAAO,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,CAAC;AASxE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AACH,qBAAa,wBAAyB,SAAQ,kBAAkB;IAC5D,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAAwB;IAE3D,YAAY,KAAK,EAAE,aAAa,EAM/B;IAED,UAAmB,iBAAiB,CAAC,OAAO,EAAE,kBAAkB,GAAG,OAAO,CAMzE;IAEe,yBAAyB,CACrC,cAAc,EAAE,eAAe,GAChC,OAAO,CAAC,uBAAuB,CAAC,CAalC;IAEe,WAAW,IAAI,SAAS,CAEvC;IAEe,YAAY,CACxB,OAAO,EAAE,SAAS,EAClB,OAAO,EAAE,kBAAkB,EAC3B,gBAAgB,EAAE,iBAAiB,0DAUtC;IAED,UAAmB,0BAA0B,IAAI,MAAM,EAAE,CAExD;IAED,UAAmB,gBAAgB,CAC/B,sBAAsB,EAAE,uBAAuB,GAChD,uBAAuB,CAiDzB;IAED,UAAmB,wBAAwB,CAAC,OAAO,EAAE,kBAAkB,EAAE,OAAO,EAAE,SAAS,GAAG,IAAI,CA2CjG;IAED,UAAmB,wBAAwB,CACvC,OAAO,EAAE,SAAS,EAClB,iBAAiB,EAAE,wBAAwB,GAC5C,UAAU,CAqCZ;IAED,UAAmB,mBAAmB,CAClC,OAAO,EAAE,SAAS,EAClB,OAAO,EAAE,kBAAkB,EAC3B,gBAAgB,EAAE,iBAAiB,GACpC,IAAI,CAiCN;IAED,OAAO,CAAC,yBAAyB;IAejC,OAAO,CAAC,mBAAmB,CAAuB;IAElD,UAAmB,cAAc,SAAU,GAAG,KAAG,IAAI,CAQnD;IAEF,OAAO,CAAC,gBAAgB;IAMxB,OAAO,CAAC,UAAU;IAYlB,OAAO,CAAC,eAAe;IAiBvB,OAAO,CAAC,gBAAgB;IAUxB,OAAO,CAAC,2BAA2B;IAKnC,OAAO,CAAC,yBAAyB;IAiCjC,OAAO,CAAC,qBAAqB;IAkB7B,OAAO,CAAC,cAAc;IAwCtB;;;;;;OAMG;IACH,OAAO,CAAC,wCAAwC;CAgCnD"}
|
package/esm/internal/components/pluggableVisualizations/geoChart/PluggableGeoPushpinChart.js
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
// (C) 2019-2026 GoodData Corporation
|
|
3
|
-
import { cloneDeep, isEmpty, set } from "lodash-es";
|
|
4
2
|
import { attributeAlias, attributeDisplayFormRef, attributeLocalId, bucketAttribute, idRef, insightBucket, insightBuckets, insightFilters, insightHasDataDefined, isUriRef, newAttribute, newAttributeSort, newBucket, uriRef, } from "@gooddata/sdk-model";
|
|
5
3
|
import { BucketNames, VisualizationTypes } from "@gooddata/sdk-ui";
|
|
6
4
|
import { CoreGeoChart, getGeoChartDimensions, } from "@gooddata/sdk-ui-geo";
|
|
5
|
+
import { _cloneDeep, _isEmpty, _set } from "@gooddata/util";
|
|
7
6
|
import { ATTRIBUTE, BUCKETS, METRIC } from "../../../constants/bucket.js";
|
|
8
7
|
import { sanitizeGeoMapStyleOptions } from "../../../constants/geoMapStyle.js";
|
|
9
8
|
import { ANALYTICAL_ENVIRONMENT, DASHBOARDS_ENVIRONMENT } from "../../../constants/properties.js";
|
|
@@ -86,7 +85,7 @@ export class PluggableGeoPushpinChart extends PluggableBaseChart {
|
|
|
86
85
|
});
|
|
87
86
|
}
|
|
88
87
|
getUiConfig() {
|
|
89
|
-
return
|
|
88
|
+
return _cloneDeep(GEO_PUSHPIN_CHART_UICONFIG);
|
|
90
89
|
}
|
|
91
90
|
getExecution(options, insight, executionFactory) {
|
|
92
91
|
const { executionConfig } = options;
|
|
@@ -112,7 +111,7 @@ export class PluggableGeoPushpinChart extends PluggableBaseChart {
|
|
|
112
111
|
const colorMeasures = (secondaryMeasures.length > 0
|
|
113
112
|
? secondaryMeasures
|
|
114
113
|
: allMeasures.filter((measure) => !sizeMeasures.includes(measure))).slice(0, this.getPreferredBucketItemLimit(BucketNames.COLOR));
|
|
115
|
-
|
|
114
|
+
_set(newExtendedReferencePoint, BUCKETS, [
|
|
116
115
|
{
|
|
117
116
|
localIdentifier: BucketNames.LOCATION,
|
|
118
117
|
items: this.getLocationItems(buckets),
|
|
@@ -159,7 +158,7 @@ export class PluggableGeoPushpinChart extends PluggableBaseChart {
|
|
|
159
158
|
const legendProp = legend ? { legend } : {};
|
|
160
159
|
const { isInEditMode, isExportMode } = config;
|
|
161
160
|
if (this.environment === DASHBOARDS_ENVIRONMENT) {
|
|
162
|
-
|
|
161
|
+
_set(supportedControls, "legend.responsive", "autoPositionWithPopup");
|
|
163
162
|
}
|
|
164
163
|
const viewportProp = {
|
|
165
164
|
viewport: {
|
|
@@ -259,7 +258,7 @@ export class PluggableGeoPushpinChart extends PluggableBaseChart {
|
|
|
259
258
|
getSegmentItems(buckets) {
|
|
260
259
|
let segments = getPreferredBucketItems(buckets, [BucketNames.STACK, BucketNames.SEGMENT, BucketNames.COLUMNS], [ATTRIBUTE]);
|
|
261
260
|
const nonSegmentAttributes = getAttributeItemsWithoutStacks(buckets);
|
|
262
|
-
if (nonSegmentAttributes.length > 1 &&
|
|
261
|
+
if (nonSegmentAttributes.length > 1 && _isEmpty(segments)) {
|
|
263
262
|
const locationItems = this.getLocationItems(buckets);
|
|
264
263
|
segments = nonSegmentAttributes
|
|
265
264
|
.filter((attribute) => !locationItems.includes(attribute))
|
|
@@ -282,7 +281,7 @@ export class PluggableGeoPushpinChart extends PluggableBaseChart {
|
|
|
282
281
|
if (!locationItem) {
|
|
283
282
|
return referencePoint;
|
|
284
283
|
}
|
|
285
|
-
const referencePointConfigured =
|
|
284
|
+
const referencePointConfigured = _cloneDeep(referencePoint);
|
|
286
285
|
const visualizationProperties = this.visualizationProperties || {};
|
|
287
286
|
const { controls = {} } = visualizationProperties;
|
|
288
287
|
const hasSizeMeasure = getItemsCount(buckets, BucketNames.SIZE) > 0;
|
|
@@ -291,7 +290,7 @@ export class PluggableGeoPushpinChart extends PluggableBaseChart {
|
|
|
291
290
|
const hasSegmentAttribute = getItemsCount(buckets, BucketNames.SEGMENT) > 0;
|
|
292
291
|
const groupNearbyPoints = hasLocationAttribute && !hasColorMeasure && !hasSizeMeasure && !hasSegmentAttribute;
|
|
293
292
|
const locationProperties = this.getLocationProperties(locationItem);
|
|
294
|
-
|
|
293
|
+
_set(referencePointConfigured, "properties", {
|
|
295
294
|
controls: {
|
|
296
295
|
points: {
|
|
297
296
|
groupNearbyPoints,
|
|
@@ -301,7 +300,7 @@ export class PluggableGeoPushpinChart extends PluggableBaseChart {
|
|
|
301
300
|
},
|
|
302
301
|
});
|
|
303
302
|
if (this.references) {
|
|
304
|
-
|
|
303
|
+
_set(referencePointConfigured, "references", this.references);
|
|
305
304
|
}
|
|
306
305
|
return referencePointConfigured;
|
|
307
306
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PluggableGeoPushpinChartNext.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/pluggableVisualizations/geoChartNext/PluggableGeoPushpinChartNext.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"PluggableGeoPushpinChartNext.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/pluggableVisualizations/geoChartNext/PluggableGeoPushpinChartNext.tsx"],"names":[],"mappings":"AAEA,OAAO,EAEH,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,EAC1B,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAEH,KAAK,kBAAkB,EAO1B,MAAM,qBAAqB,CAAC;AA2B7B,OAAO,EAEH,KAAK,uBAAuB,EAC5B,KAAK,eAAe,EACpB,KAAK,SAAS,EACd,KAAK,aAAa,EAClB,KAAK,SAAS,EAEjB,MAAM,sCAAsC,CAAC;AAY9C,OAAO,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,CAAC;AAqCxE;;;;;;;;GAQG;AACH,qBAAa,4BAA6B,SAAQ,kBAAkB;IAChE,OAAO,CAAC,OAAO,CAAqB;IACpC,OAAO,CAAC,SAAS,CAAS;IAC1B,OAAO,CAAC,WAAW,CAA4B;IAC/C,OAAO,CAAC,WAAW,CAAuB;IAC1C,OAAO,CAAC,oBAAoB,CAAC,CAAS;IACtC,OAAO,CAAC,qBAAqB,CAAC,CAAS;IACvC,OAAO,CAAC,qBAAqB,CAAS;IACtC,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAAwB;IAC3D,YAAY,KAAK,EAAE,aAAa,EAQ/B;IAEe,kDAAkD,CAC9D,qBAAqB,EAAE,eAAe,EACtC,kBAAkB,EAAE,eAAe,GACpC,OAAO,CAQT;IAID,OAAO,CAAC,wBAAwB;IAMhC;;;;;;OAMG;IACa,yBAAyB,CACrC,cAAc,EAAE,eAAe,GAChC,OAAO,CAAC,uBAAuB,CAAC,CAyClC;IAEe,WAAW,IAAI,SAAS,CAMvC;IAED,UAAmB,0BAA0B,IAAI,MAAM,EAAE,CAExD;IAED;;;OAGG;IACH,UAAmB,gBAAgB,CAC/B,sBAAsB,EAAE,uBAAuB,GAChD,uBAAuB,CA2BzB;IAED;;OAEG;IACH,OAAO,CAAC,yBAAyB;IA6BjC;;;;;;;;OAQG;IACH,UAAmB,iBAAiB,CAAC,OAAO,EAAE,kBAAkB,GAAG,OAAO,CAwBzE;IAED;;;;;;;;;OASG;IACa,YAAY,CACxB,OAAO,EAAE,SAAS,EAClB,OAAO,EAAE,kBAAkB,EAC3B,gBAAgB,EAAE,iBAAiB,GACpC,kBAAkB,CAsBpB;IAEe,aAAa,CACzB,OAAO,EAAE,SAAS,EAClB,OAAO,EAAE,kBAAkB,EAC3B,gBAAgB,EAAE,iBAAiB,GACpC,kBAAkB,EAAE,CAsBtB;IAED,OAAO,CAAC,gBAAgB;YAMV,eAAe;IA8B7B,OAAO,CAAC,eAAe;IAcvB,UAAmB,wBAAwB,CAAC,OAAO,EAAE,kBAAkB,EAAE,OAAO,EAAE,SAAS,GAAG,IAAI,CA0DjG;IAED;;;;;;;OAOG;IACH,OAAO,CAAC,2BAA2B;IAenC,OAAO,CAAC,oBAAoB;IAe5B,UAAmB,mBAAmB,CAClC,OAAO,EAAE,SAAS,EAClB,OAAO,EAAE,kBAAkB,EAC3B,gBAAgB,EAAE,iBAAiB,GACpC,IAAI,CAyCN;IAED,OAAO,CAAC,wBAAwB;IA8ChC,OAAO,CAAC,8BAA8B;IAyBtC,OAAO,CAAC,eAAe;IASvB,OAAO,CAAC,8BAA8B;IAUtC,OAAO,CAAC,8CAA8C;IAuBtD,OAAO,CAAC,qCAAqC;IAa7C,OAAO,CAAC,cAAc,CAOnB;IAEH,OAAO,CAAC,2BAA2B,CAAmD;IACtF,OAAO,CAAC,iBAAiB,CAAyC;IAClE,OAAO,CAAC,mBAAmB,CAA2C;IACtE,OAAO,CAAC,8BAA8B,CAAsD;IAC5F,OAAO,CAAC,iBAAiB,CAA0E;CACtG"}
|
package/esm/internal/components/pluggableVisualizations/geoChartNext/PluggableGeoPushpinChartNext.js
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
// (C) 2025-2026 GoodData Corporation
|
|
3
|
-
import { cloneDeep, isEqual, set } from "lodash-es";
|
|
4
2
|
import { insightBuckets, insightFilters, insightHasDataDefined, insightLayers, insightSorts, insightTitle, } from "@gooddata/sdk-model";
|
|
5
3
|
import { BucketNames, GeoLocationMissingSdkError, VisualizationTypes } from "@gooddata/sdk-ui";
|
|
6
4
|
import { isGeoLayerPushpin, } from "@gooddata/sdk-ui-geo";
|
|
7
5
|
import { GeoChartInternal, PUSHPIN_LAYER_ID, buildLayerExecution, insightLayerToGeoLayer, insightLayersToGeoLayers, } from "@gooddata/sdk-ui-geo/internal";
|
|
6
|
+
import { _cloneDeep, _isEqual, _set } from "@gooddata/util";
|
|
8
7
|
import { BUCKETS } from "../../../constants/bucket.js";
|
|
9
8
|
import { isGeoChartsViewportConfigEnabled, isGeoPushpinIconEnabled, } from "../../../constants/featureFlags.js";
|
|
10
9
|
import { sanitizeGeoMapStyleOptions } from "../../../constants/geoMapStyle.js";
|
|
@@ -62,7 +61,7 @@ export class PluggableGeoPushpinChartNext extends PluggableBaseChart {
|
|
|
62
61
|
}
|
|
63
62
|
haveSomePropertiesRelevantForReferencePointChanged(currentReferencePoint, nextReferencePoint) {
|
|
64
63
|
return (getPushpinShapeType(currentReferencePoint) !== getPushpinShapeType(nextReferencePoint) ||
|
|
65
|
-
!
|
|
64
|
+
!_isEqual(currentReferencePoint?.properties?.sortItems ?? [], nextReferencePoint?.properties?.sortItems ?? []));
|
|
66
65
|
}
|
|
67
66
|
// Clear stale propertiesMeta synchronously. useGeoPushData will push the
|
|
68
67
|
// computed value once async data loading completes.
|
|
@@ -84,7 +83,7 @@ export class PluggableGeoPushpinChartNext extends PluggableBaseChart {
|
|
|
84
83
|
// The generic sanitizeFilters() (in PluggableBaseChart) does not know about additional layers and can
|
|
85
84
|
// incorrectly drop MVFs that are meant for non-root layers. We keep the original filter bucket intact
|
|
86
85
|
// and rely on per-layer execution sanitization instead.
|
|
87
|
-
const originalFilters =
|
|
86
|
+
const originalFilters = _cloneDeep(referencePoint.filters);
|
|
88
87
|
return super
|
|
89
88
|
.getExtendedReferencePoint(referencePoint)
|
|
90
89
|
.then((extendedReferencePoint) => {
|
|
@@ -109,7 +108,7 @@ export class PluggableGeoPushpinChartNext extends PluggableBaseChart {
|
|
|
109
108
|
});
|
|
110
109
|
}
|
|
111
110
|
getUiConfig() {
|
|
112
|
-
const config =
|
|
111
|
+
const config = _cloneDeep(GEO_PUSHPIN_CHART_UICONFIG);
|
|
113
112
|
if (!isGeoPushpinIconEnabled(this.featureFlags)) {
|
|
114
113
|
delete config.buckets[BucketNames.MEASURES];
|
|
115
114
|
}
|
|
@@ -133,7 +132,7 @@ export class PluggableGeoPushpinChartNext extends PluggableBaseChart {
|
|
|
133
132
|
const uiConfig = this.getUiConfig();
|
|
134
133
|
const { sizeMeasures, colorMeasures, metricMeasures } = distributeMeasures(buckets, uiConfig);
|
|
135
134
|
const configuredBuckets = createConfiguredBuckets(buckets, sizeMeasures, colorMeasures, metricMeasures, uiConfig);
|
|
136
|
-
|
|
135
|
+
_set(sanitized, BUCKETS, configuredBuckets);
|
|
137
136
|
return sanitized;
|
|
138
137
|
}
|
|
139
138
|
/**
|
|
@@ -146,20 +145,20 @@ export class PluggableGeoPushpinChartNext extends PluggableBaseChart {
|
|
|
146
145
|
if (!locationItem) {
|
|
147
146
|
return referencePoint;
|
|
148
147
|
}
|
|
149
|
-
const referencePointConfigured =
|
|
148
|
+
const referencePointConfigured = _cloneDeep(referencePoint);
|
|
150
149
|
const controls = referencePointConfigured.properties?.controls ?? {};
|
|
151
150
|
const locationProperties = getLocationProperties(locationItem);
|
|
152
151
|
// Don't add groupNearbyPoints if it wasn't already in the properties.
|
|
153
152
|
// This prevents marking the insight as "dirty" when just opening it.
|
|
154
153
|
// The rendering code handles the default value (true when clustering is allowed).
|
|
155
|
-
|
|
154
|
+
_set(referencePointConfigured, "properties", {
|
|
156
155
|
controls: {
|
|
157
156
|
...controls,
|
|
158
157
|
...locationProperties,
|
|
159
158
|
},
|
|
160
159
|
});
|
|
161
160
|
if (this.references) {
|
|
162
|
-
|
|
161
|
+
_set(referencePointConfigured, "references", this.references);
|
|
163
162
|
}
|
|
164
163
|
return referencePointConfigured;
|
|
165
164
|
}
|
|
@@ -461,7 +460,7 @@ export class PluggableGeoPushpinChartNext extends PluggableBaseChart {
|
|
|
461
460
|
(this.environment !== ANALYTICAL_ENVIRONMENT || this.cachedHasGeoIconLabel));
|
|
462
461
|
}
|
|
463
462
|
getResolvedReferencePointWithFallback(referencePoint) {
|
|
464
|
-
return
|
|
463
|
+
return _set(_cloneDeep(referencePoint), "properties", getGeoVisualizationPropertiesWithFallback(this.visualizationProperties ?? {}, referencePoint.properties?.controls ?? {}));
|
|
465
464
|
}
|
|
466
465
|
syncedHandlers = createSyncedViewportHandlers(this.liveMapView, {
|
|
467
466
|
getEnvironment: () => this.environment,
|
|
@@ -488,8 +487,8 @@ function sanitizeGeoPointProperties(referencePoint) {
|
|
|
488
487
|
}
|
|
489
488
|
const shapeType = controls["points"]?.shapeType ?? "circle";
|
|
490
489
|
if (shapeType !== "oneIcon" && controls["points"]?.icon !== undefined) {
|
|
491
|
-
const updated =
|
|
492
|
-
|
|
490
|
+
const updated = _cloneDeep(referencePoint);
|
|
491
|
+
_set(updated, "properties.controls.points.icon", undefined);
|
|
493
492
|
return updated;
|
|
494
493
|
}
|
|
495
494
|
return referencePoint;
|
|
@@ -499,7 +498,7 @@ function disableClusteringIfNotEditable(referencePoint) {
|
|
|
499
498
|
const shapeType = getPushpinShapeType(referencePoint);
|
|
500
499
|
const clusteringEnabled = referencePoint.properties?.controls?.["points"]?.groupNearbyPoints === true;
|
|
501
500
|
if (clusteringEnabled && !isPushpinClusteringEditableForBuckets(referencePoint.buckets, shapeType)) {
|
|
502
|
-
updatedReferencePoint =
|
|
501
|
+
updatedReferencePoint = _set(referencePoint, "properties.controls.points.groupNearbyPoints", false);
|
|
503
502
|
}
|
|
504
503
|
return updatedReferencePoint;
|
|
505
504
|
}
|
|
@@ -508,20 +507,20 @@ function disableClusteringInVisualizationPropertiesWhenNotEditable(visualization
|
|
|
508
507
|
if (isPushpinClusteringEditable(insight, shapeType)) {
|
|
509
508
|
return visualizationProperties;
|
|
510
509
|
}
|
|
511
|
-
return
|
|
510
|
+
return _set(_cloneDeep(visualizationProperties), "controls.points.groupNearbyPoints", false);
|
|
512
511
|
}
|
|
513
512
|
function getPushpinShapeType(referencePoint) {
|
|
514
513
|
return referencePoint.properties?.controls?.["points"]?.shapeType ?? "circle";
|
|
515
514
|
}
|
|
516
515
|
function resetIconByValueShapeType(referencePoint) {
|
|
517
516
|
if (getPushpinShapeType(referencePoint) === "iconByValue") {
|
|
518
|
-
return
|
|
517
|
+
return _set(_cloneDeep(referencePoint), "properties.controls.points.shapeType", "circle");
|
|
519
518
|
}
|
|
520
519
|
return referencePoint;
|
|
521
520
|
}
|
|
522
521
|
function resetIconByValueInVisualizationProperties(properties, hasGeoIconLabel) {
|
|
523
522
|
if (properties?.controls?.["points"]?.shapeType === "iconByValue" && !hasGeoIconLabel) {
|
|
524
|
-
return
|
|
523
|
+
return _set(_cloneDeep(properties), "controls.points.shapeType", "circle");
|
|
525
524
|
}
|
|
526
525
|
return properties;
|
|
527
526
|
}
|
package/esm/internal/components/pluggableVisualizations/geoCommon/geoPropertySanitization.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"geoPropertySanitization.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/pluggableVisualizations/geoCommon/geoPropertySanitization.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"geoPropertySanitization.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/pluggableVisualizations/geoCommon/geoPropertySanitization.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,uBAAuB,EAAE,MAAM,sCAAsC,CAAC;AAEpF;;;;;;;GAOG;AACH,wBAAgB,6BAA6B,CACzC,cAAc,EAAE,uBAAuB,GACxC,uBAAuB,CAgCzB"}
|
package/esm/internal/components/pluggableVisualizations/geoCommon/geoPropertySanitization.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// (C) 2026 GoodData Corporation
|
|
2
|
-
import { cloneDeep, set } from "lodash-es";
|
|
3
2
|
import { isConcreteViewportPreset } from "@gooddata/sdk-ui-geo/internal";
|
|
3
|
+
import { _cloneDeep, _set } from "@gooddata/util";
|
|
4
4
|
/**
|
|
5
5
|
* Strips viewport-related properties that are incompatible with the current viewport mode.
|
|
6
6
|
*
|
|
@@ -23,17 +23,17 @@ export function sanitizeGeoViewportProperties(referencePoint) {
|
|
|
23
23
|
if (!hasBounds && !hasCenter && !hasZoom) {
|
|
24
24
|
return referencePoint;
|
|
25
25
|
}
|
|
26
|
-
const updated =
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
26
|
+
const updated = _cloneDeep(referencePoint);
|
|
27
|
+
_set(updated, "properties.controls.bounds", undefined);
|
|
28
|
+
_set(updated, "properties.controls.center", undefined);
|
|
29
|
+
_set(updated, "properties.controls.zoom", undefined);
|
|
30
30
|
return updated;
|
|
31
31
|
}
|
|
32
32
|
if (viewportArea === "custom" && hasBounds && (hasCenter || hasZoom)) {
|
|
33
33
|
// Custom viewport with bounds — strip redundant center/zoom
|
|
34
|
-
const updated =
|
|
35
|
-
|
|
36
|
-
|
|
34
|
+
const updated = _cloneDeep(referencePoint);
|
|
35
|
+
_set(updated, "properties.controls.center", undefined);
|
|
36
|
+
_set(updated, "properties.controls.zoom", undefined);
|
|
37
37
|
return updated;
|
|
38
38
|
}
|
|
39
39
|
return referencePoint;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PluggableHeadline.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/pluggableVisualizations/headline/PluggableHeadline.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"PluggableHeadline.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/pluggableVisualizations/headline/PluggableHeadline.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AACnE,OAAO,EACH,KAAK,kBAAkB,EAc1B,MAAM,qBAAqB,CAAC;AAY7B,OAAO,EACH,KAAK,WAAW,EAChB,KAAK,YAAY,EACjB,KAAK,uBAAuB,EAC5B,KAAK,eAAe,EACpB,KAAK,aAAa,EAClB,KAAK,SAAS,EAIjB,MAAM,sCAAsC,CAAC;AAwB9C,OAAO,EAAE,8BAA8B,EAAE,MAAM,sCAAsC,CAAC;AAItF;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,qBAAa,iBAAkB,SAAQ,8BAA8B;IACjE,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAY;IACtC,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAiB;IAC3C,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAkB;IAC7C,OAAO,CAAC,6BAA6B,CAAS;IAE9C,YAAY,KAAK,EAAE,aAAa,EAQ/B;IAEM,OAAO,IAAI,IAAI,CAErB;IAEM,yBAAyB,CAC5B,cAAc,EAAE,QAAQ,CAAC,eAAe,CAAC,GAC1C,OAAO,CAAC,uBAAuB,CAAC,CA6DlC;IAEM,YAAY,CACf,OAAO,EAAE,SAAS,EAClB,OAAO,EAAE,kBAAkB,EAC3B,gBAAgB,EAAE,iBAAiB,0DAStC;IAED,UAAmB,iBAAiB,CAAC,OAAO,EAAE,kBAAkB,GAAG,OAAO,CAazE;IAED,SAAS,CAAC,mBAAmB,CACzB,OAAO,EAAE,SAAS,EAClB,OAAO,EAAE,kBAAkB,EAC3B,gBAAgB,EAAE,iBAAiB,GACpC,IAAI,CA0CN;IAED,SAAS,CAAC,wBAAwB,CAAC,OAAO,EAAE,kBAAkB,EAAE,OAAO,EAAE,SAAS,GAAG,IAAI,CA2BxF;IAED,UAAmB,uBAAuB,CACtC,cAAc,EAAE,eAAe,EAC/B,MAAM,EAAE,YAAY,EACpB,qBAAqB,EAAE,WAAW,EAAE,GACrC,WAAW,EAAE,CAqBf;IAED,UAAmB,wBAAwB,CACvC,OAAO,EAAE,SAAS,EAClB,OAAO,EAAE,kBAAkB,EAC3B,qBAAqB,EAAE,GAAG,GAC3B,IAAI,CAqBN;IAED,OAAO,CAAC,iCAAiC;IAazC,OAAO,CAAC,+BAA+B;CAY1C"}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
// (C) 2019-2026 GoodData Corporation
|
|
3
|
-
import { cloneDeep } from "lodash-es";
|
|
4
2
|
import { MeasureGroupIdentifier, bucketIsEmpty, insightBucket, insightBuckets, insightFilters, insightHasDataDefined, insightId, insightProperties, insightSorts, isInsight, isSeparators, newDimension, } from "@gooddata/sdk-model";
|
|
5
3
|
import { BucketNames } from "@gooddata/sdk-ui";
|
|
6
4
|
import { CoreHeadline, createHeadlineProvider } from "@gooddata/sdk-ui-charts";
|
|
5
|
+
import { _cloneDeep } from "@gooddata/util";
|
|
7
6
|
import { METRIC } from "../../../constants/bucket.js";
|
|
8
7
|
import { HEADLINE_DEFAULT_CONTROL_PROPERTIES, HEADLINE_DEFAULT_MIGRATION_CONTROL_PROPERTIES, HEADLINE_SUPPORTED_PROPERTIES, } from "../../../constants/supportedProperties.js";
|
|
9
8
|
import { InvalidBucketsSdkError, } from "../../../interfaces/Visualization.js";
|
|
@@ -57,7 +56,7 @@ export class PluggableHeadline extends AbstractPluggableVisualization {
|
|
|
57
56
|
this.unmountFun([this.getElement(), this.getConfigPanelElement()]);
|
|
58
57
|
}
|
|
59
58
|
getExtendedReferencePoint(referencePoint) {
|
|
60
|
-
const referencePointCloned =
|
|
59
|
+
const referencePointCloned = _cloneDeep(referencePoint);
|
|
61
60
|
let newReferencePoint = {
|
|
62
61
|
...referencePointCloned,
|
|
63
62
|
uiConfig: getDefaultHeadlineUiConfig(),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
// (C) 2019-
|
|
2
|
-
import { cloneDeep } from "lodash-es";
|
|
1
|
+
// (C) 2019-2026 GoodData Corporation
|
|
3
2
|
import { BucketNames } from "@gooddata/sdk-ui";
|
|
3
|
+
import { _cloneDeep } from "@gooddata/util";
|
|
4
4
|
import { BUCKETS, METRIC } from "../../../constants/bucket.js";
|
|
5
5
|
import { findDerivedBucketItems, findMasterBucketItem, findMasterBucketItems, isDerivedBucketItem, } from "../../../utils/bucketHelper.js";
|
|
6
6
|
export function findSecondMasterMeasure(allMeasures) {
|
|
@@ -41,7 +41,7 @@ export function tryToMapForeignBuckets(extendedReferencePoint) {
|
|
|
41
41
|
return allMeasuresCompatible ? newReferencePoint : null;
|
|
42
42
|
}
|
|
43
43
|
export function setHeadlineRefPointBuckets(extendedReferencePoint, primaryMeasure, secondaryMeasure) {
|
|
44
|
-
const newReferencePoint =
|
|
44
|
+
const newReferencePoint = _cloneDeep(extendedReferencePoint);
|
|
45
45
|
newReferencePoint[BUCKETS] = [
|
|
46
46
|
{
|
|
47
47
|
localIdentifier: BucketNames.MEASURES,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PluggableHeatmap.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/pluggableVisualizations/heatMap/PluggableHeatmap.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,QAAQ,EAAE,KAAK,kBAAkB,EAAoB,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"PluggableHeatmap.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/pluggableVisualizations/heatMap/PluggableHeatmap.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,QAAQ,EAAE,KAAK,kBAAkB,EAAoB,MAAM,qBAAqB,CAAC;AAY/F,OAAO,EAAE,KAAK,WAAW,EAA0B,MAAM,mCAAmC,CAAC;AAC7F,OAAO,EACH,KAAK,WAAW,EAChB,KAAK,iBAAiB,EAEtB,KAAK,uBAAuB,EAC5B,KAAK,eAAe,EACpB,KAAK,aAAa,EAClB,KAAK,SAAS,EACjB,MAAM,sCAAsC,CAAC;AAiB9C,OAAO,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,CAAC;AAGxE;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,qBAAa,gBAAiB,SAAQ,kBAAkB;IACpD,YAAY,KAAK,EAAE,aAAa,EAO/B;IAEe,yBAAyB,CACrC,cAAc,EAAE,eAAe,GAChC,OAAO,CAAC,uBAAuB,CAAC,CAwDlC;IAED,OAAO,CAAC,UAAU;IAeF,8BAA8B,CAC1C,MAAM,EAAE,QAAQ,EAChB,gBAAgB,EAAE,iBAAiB,EACnC,0BAA0B,EAAE,OAAO,GACpC,QAAQ,CAQV;IAED,SAAS,CAAC,0BAA0B,CAChC,QAAQ,EAAE,WAAW,EAAE,EACvB,MAAM,EAAE,WAAW,EAAE,EACrB,OAAO,EAAE,WAAW,EAAE,GACvB;QACC,WAAW,EAAE,WAAW,CAAC,aAAa,CAAC,CAAC;QACxC,cAAc,EAAE,WAAW,CAAC,gBAAgB,CAAC,CAAC;KACjD,CAqCA;IAED,OAAO,CAAC,cAAc;IAkBN,aAAa,CAAC,cAAc,EAAE,eAAe,GAAG,OAAO,CAAC,WAAW,CAAC,CAsBnF;IAED,UAAmB,wBAAwB,CAAC,OAAO,EAAE,kBAAkB,EAAE,OAAO,EAAE,SAAS,GAAG,IAAI,CA8BjG;CACJ"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
// (C) 2019-2026 GoodData Corporation
|
|
3
|
-
import {
|
|
3
|
+
import { tail } from "lodash-es";
|
|
4
4
|
import { newAttributeSort } from "@gooddata/sdk-model";
|
|
5
5
|
import { BucketNames, VisualizationTypes, isDrillIntersectionAttributeItem, } from "@gooddata/sdk-ui";
|
|
6
|
+
import { _cloneDeep, _isEmpty, _set } from "@gooddata/util";
|
|
6
7
|
import { ATTRIBUTE, BUCKETS, DATE } from "../../../constants/bucket.js";
|
|
7
8
|
import { HEATMAP_SUPPORTED_PROPERTIES } from "../../../constants/supportedProperties.js";
|
|
8
9
|
import { DEFAULT_HEATMAP_UICONFIG } from "../../../constants/uiConfig.js";
|
|
@@ -54,8 +55,8 @@ export class PluggableHeatmap extends PluggableBaseChart {
|
|
|
54
55
|
this.initializeProperties(props.visualizationProperties);
|
|
55
56
|
}
|
|
56
57
|
getExtendedReferencePoint(referencePoint) {
|
|
57
|
-
const clonedReferencePoint =
|
|
58
|
-
const uiConfig =
|
|
58
|
+
const clonedReferencePoint = _cloneDeep(referencePoint);
|
|
59
|
+
const uiConfig = _cloneDeep(DEFAULT_HEATMAP_UICONFIG);
|
|
59
60
|
let newReferencePoint = {
|
|
60
61
|
...clonedReferencePoint,
|
|
61
62
|
uiConfig,
|
|
@@ -76,7 +77,7 @@ export class PluggableHeatmap extends PluggableBaseChart {
|
|
|
76
77
|
return !stackItems.includes(attribute);
|
|
77
78
|
});
|
|
78
79
|
const columnItems = rowItems.length > 1 ? tail(rowItems) : stackItems;
|
|
79
|
-
|
|
80
|
+
_set(newReferencePoint, BUCKETS, [
|
|
80
81
|
{
|
|
81
82
|
localIdentifier: BucketNames.MEASURES,
|
|
82
83
|
items: measures,
|
|
@@ -107,7 +108,7 @@ export class PluggableHeatmap extends PluggableBaseChart {
|
|
|
107
108
|
return modifyBucketsAttributesForDrillDown(withFilters, drillDownContext.drillDefinition);
|
|
108
109
|
}
|
|
109
110
|
getDefaultAndAvailableSort(measures, viewBy, stackBy) {
|
|
110
|
-
if (!
|
|
111
|
+
if (!_isEmpty(viewBy) && !_isEmpty(stackBy) && !_isEmpty(measures)) {
|
|
111
112
|
return {
|
|
112
113
|
defaultSort: [
|
|
113
114
|
newAttributeSort(viewBy[0].localIdentifier, "desc"),
|
|
@@ -119,7 +120,7 @@ export class PluggableHeatmap extends PluggableBaseChart {
|
|
|
119
120
|
],
|
|
120
121
|
};
|
|
121
122
|
}
|
|
122
|
-
if (!
|
|
123
|
+
if (!_isEmpty(measures) && !_isEmpty(viewBy)) {
|
|
123
124
|
return {
|
|
124
125
|
defaultSort: [newAttributeSort(viewBy[0].localIdentifier, "desc")],
|
|
125
126
|
availableSorts: [
|
|
@@ -127,7 +128,7 @@ export class PluggableHeatmap extends PluggableBaseChart {
|
|
|
127
128
|
],
|
|
128
129
|
};
|
|
129
130
|
}
|
|
130
|
-
if (!
|
|
131
|
+
if (!_isEmpty(measures) && !_isEmpty(stackBy)) {
|
|
131
132
|
return {
|
|
132
133
|
defaultSort: [newAttributeSort(stackBy[0].localIdentifier, "asc")],
|
|
133
134
|
availableSorts: [newAvailableSortsGroup(stackBy[0].localIdentifier)],
|
package/esm/internal/components/pluggableVisualizations/lineChart/PluggableLineChart.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PluggableLineChart.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/pluggableVisualizations/lineChart/PluggableLineChart.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"PluggableLineChart.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/pluggableVisualizations/lineChart/PluggableLineChart.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,QAAQ,EAAE,KAAK,kBAAkB,EAAoB,MAAM,qBAAqB,CAAC;AAQ/F,OAAO,EAAE,KAAK,WAAW,EAA0B,MAAM,mCAAmC,CAAC;AAC7F,OAAO,EAGH,KAAK,iBAAiB,EAEtB,KAAK,uBAAuB,EAC5B,KAAK,eAAe,EACpB,KAAK,SAAS,EACd,KAAK,aAAa,EAClB,KAAK,SAAS,EACjB,MAAM,sCAAsC,CAAC;AAqB9C,OAAO,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,CAAC;AAOxE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,qBAAa,kBAAmB,SAAQ,kBAAkB;IACtD,YAAY,KAAK,EAAE,aAAa,EAQ/B;IAEe,0BAA0B,IAAI,MAAM,EAAE,CAErD;IAEe,WAAW,IAAI,SAAS,CAEvC;IAEe,yBAAyB,CACrC,cAAc,EAAE,eAAe,GAChC,OAAO,CAAC,uBAAuB,CAAC,CA2BlC;IAEe,8BAA8B,CAC1C,MAAM,EAAE,QAAQ,EAChB,gBAAgB,EAAE,iBAAiB,EACnC,0BAA0B,EAAE,OAAO,GACpC,QAAQ,CAQV;IAEe,aAAa,CAAC,cAAc,EAAE,eAAe,GAAG,OAAO,CAAC,WAAW,CAAC,CAkBnF;IAED,OAAO,CAAC,iBAAiB;IAKzB,UAAmB,gBAAgB,CAAC,iBAAiB,EAAE,uBAAuB,GAAG,IAAI,CAEpF;IAED,UAAmB,wBAAwB,CAAC,OAAO,EAAE,kBAAkB,EAAE,OAAO,EAAE,SAAS,GAAG,IAAI,CA+BjG;IAED,OAAO,CAAC,iCAAiC;IAiDzC,OAAO,CAAC,UAAU;IAUlB,OAAO,CAAC,0BAA0B;IAoClC,OAAO,CAAC,cAAc;IAWtB,OAAO,CAAC,sBAAsB;IAoB9B,OAAO,CAAC,6BAA6B;CASxC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
// (C) 2019-2026 GoodData Corporation
|
|
3
|
-
import { cloneDeep, isEmpty, isEqual, set } from "lodash-es";
|
|
4
3
|
import { newAttributeSort } from "@gooddata/sdk-model";
|
|
5
4
|
import { BucketNames, VisualizationTypes } from "@gooddata/sdk-ui";
|
|
5
|
+
import { _cloneDeep, _isEmpty, _isEqual, _set } from "@gooddata/util";
|
|
6
6
|
import { AXIS, AXIS_NAME } from "../../../constants/axis.js";
|
|
7
7
|
import { ATTRIBUTE, BUCKETS, DATE } from "../../../constants/bucket.js";
|
|
8
8
|
import { LINE_CHART_SUPPORTED_PROPERTIES } from "../../../constants/supportedProperties.js";
|
|
@@ -61,10 +61,10 @@ export class PluggableLineChart extends PluggableBaseChart {
|
|
|
61
61
|
return LINE_CHART_SUPPORTED_PROPERTIES[this.axis];
|
|
62
62
|
}
|
|
63
63
|
getUiConfig() {
|
|
64
|
-
return
|
|
64
|
+
return _cloneDeep(LINE_UICONFIG_WITH_MULTIPLE_DATES);
|
|
65
65
|
}
|
|
66
66
|
getExtendedReferencePoint(referencePoint) {
|
|
67
|
-
const clonedReferencePoint =
|
|
67
|
+
const clonedReferencePoint = _cloneDeep(referencePoint);
|
|
68
68
|
let newReferencePoint = {
|
|
69
69
|
...clonedReferencePoint,
|
|
70
70
|
uiConfig: this.getUiConfig(),
|
|
@@ -143,7 +143,7 @@ export class PluggableLineChart extends PluggableBaseChart {
|
|
|
143
143
|
}
|
|
144
144
|
attributes = getAttributeItemsWithoutStacks(buckets, [ATTRIBUTE, DATE]).slice(0, 1);
|
|
145
145
|
}
|
|
146
|
-
|
|
146
|
+
_set(newReferencePoint, BUCKETS, [
|
|
147
147
|
{
|
|
148
148
|
localIdentifier: BucketNames.MEASURES,
|
|
149
149
|
items: this.getBucketMeasures(newReferencePoint.buckets),
|
|
@@ -169,7 +169,7 @@ export class PluggableLineChart extends PluggableBaseChart {
|
|
|
169
169
|
const segmentBy = getBucketItems(buckets, BucketNames.SEGMENT);
|
|
170
170
|
const defaultSort = trendBy.length > 0 ? [newAttributeSort(trendBy[0].localIdentifier, "asc")] : [];
|
|
171
171
|
if (measures.length > 0 && trendBy.length === 1) {
|
|
172
|
-
if (
|
|
172
|
+
if (_isEmpty(segmentBy)) {
|
|
173
173
|
return {
|
|
174
174
|
defaultSort,
|
|
175
175
|
availableSorts: [
|
|
@@ -206,12 +206,12 @@ export class PluggableLineChart extends PluggableBaseChart {
|
|
|
206
206
|
const existingThresholdMeasures = properties?.controls?.["thresholdMeasures"] || [];
|
|
207
207
|
if (measureItems.length <= 1 && existingThresholdMeasures.length > 0) {
|
|
208
208
|
// In case there's just one measure item, we need to reset the threshold measures
|
|
209
|
-
|
|
209
|
+
_set(referencePoint, "properties.controls.thresholdMeasures", []);
|
|
210
210
|
}
|
|
211
|
-
if (
|
|
211
|
+
if (_isEqual(listThresholdMeasures, existingThresholdMeasures)) {
|
|
212
212
|
return referencePoint;
|
|
213
213
|
}
|
|
214
|
-
|
|
214
|
+
_set(referencePoint, "properties.controls.thresholdMeasures", listThresholdMeasures);
|
|
215
215
|
return referencePoint;
|
|
216
216
|
}
|
|
217
217
|
isDistinctPointShapesDisabled() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PluggableMekko.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/pluggableVisualizations/mekko/PluggableMekko.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"PluggableMekko.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/pluggableVisualizations/mekko/PluggableMekko.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AACnE,OAAO,EACH,KAAK,kBAAkB,EAO1B,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAM5D,OAAO,EAAE,KAAK,WAAW,EAA0B,MAAM,mCAAmC,CAAC;AAC7F,OAAO,EACH,KAAK,uBAAuB,EAC5B,KAAK,eAAe,EACpB,KAAK,aAAa,EAClB,KAAK,SAAS,EACd,KAAK,wBAAwB,EAChC,MAAM,sCAAsC,CAAC;AAU9C,OAAO,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,CAAC;AAyBxE;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,qBAAa,cAAe,SAAQ,kBAAkB;IAClD,YAAY,KAAK,EAAE,aAAa,EAK/B;IAEe,YAAY,CACxB,OAAO,EAAE,SAAS,EAClB,OAAO,EAAE,kBAAkB,EAC3B,gBAAgB,EAAE,iBAAiB,0DActC;IAGD,UAAmB,wBAAwB,CACvC,OAAO,EAAE,SAAS,EAClB,iBAAiB,CAAC,EAAE,wBAAwB,GAC7C,YAAY,CAMd;IAEe,yBAAyB,CACrC,cAAc,EAAE,eAAe,GAChC,OAAO,CAAC,uBAAuB,CAAC,CAyBlC;IAEe,aAAa,CAAC,cAAc,EAAE,eAAe,GAAG,OAAO,CAAC,WAAW,CAAC,CA4CnF;CACJ"}
|