@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,7 +1,7 @@
|
|
|
1
1
|
// (C) 2026 GoodData Corporation
|
|
2
|
-
import { cloneDeep, isEmpty, set } from "lodash-es";
|
|
3
2
|
import { bucketIsEmpty, insightBucket, insightSorts, isMeasureSort, newAttributeSort, } from "@gooddata/sdk-model";
|
|
4
3
|
import { BucketNames, VisualizationTypes } from "@gooddata/sdk-ui";
|
|
4
|
+
import { _cloneDeep, _isEmpty, _set } from "@gooddata/util";
|
|
5
5
|
import { BUCKETS } from "../../../constants/bucket.js";
|
|
6
6
|
import { MEKKO_SUPPORTED_PROPERTIES } from "../../../constants/supportedProperties.js";
|
|
7
7
|
import { DEFAULT_MEKKO_UICONFIG } from "../../../constants/uiConfig.js";
|
|
@@ -15,13 +15,13 @@ import { transformBuckets } from "./bucketHelper.js";
|
|
|
15
15
|
/** Declares "Stack to 100%" visibility (the app heuristic misses a Height-only metric) and locks it checked for Width-only + Stack By — uiConfig only, never the durable user property. */
|
|
16
16
|
function configurePercentStacking(referencePoint) {
|
|
17
17
|
const buckets = referencePoint[BUCKETS];
|
|
18
|
-
const hasWidth = !
|
|
19
|
-
const hasHeight = !
|
|
20
|
-
const hasStack = !
|
|
21
|
-
|
|
18
|
+
const hasWidth = !_isEmpty(getBucketItems(buckets, BucketNames.MEASURES));
|
|
19
|
+
const hasHeight = !_isEmpty(getBucketItems(buckets, BucketNames.SECONDARY_MEASURES));
|
|
20
|
+
const hasStack = !_isEmpty(getBucketItems(buckets, BucketNames.STACK));
|
|
21
|
+
_set(referencePoint, ["uiConfig", "optionalStacking", "stackToPercentVisible"], hasStack && (hasWidth || hasHeight));
|
|
22
22
|
if (hasWidth && !hasHeight && hasStack) {
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
_set(referencePoint, ["uiConfig", "optionalStacking", "disabled"], true);
|
|
24
|
+
_set(referencePoint, ["uiConfig", "optionalStacking", "stackMeasuresToPercent"], true);
|
|
25
25
|
}
|
|
26
26
|
return referencePoint;
|
|
27
27
|
}
|
|
@@ -80,8 +80,8 @@ export class PluggableMekko extends PluggableBaseChart {
|
|
|
80
80
|
};
|
|
81
81
|
}
|
|
82
82
|
getExtendedReferencePoint(referencePoint) {
|
|
83
|
-
const clonedReferencePoint =
|
|
84
|
-
const uiConfig =
|
|
83
|
+
const clonedReferencePoint = _cloneDeep(referencePoint);
|
|
84
|
+
const uiConfig = _cloneDeep(DEFAULT_MEKKO_UICONFIG);
|
|
85
85
|
let newReferencePoint = {
|
|
86
86
|
...clonedReferencePoint,
|
|
87
87
|
uiConfig,
|
|
@@ -107,7 +107,7 @@ export class PluggableMekko extends PluggableBaseChart {
|
|
|
107
107
|
...getBucketItems(buckets, BucketNames.SECONDARY_MEASURES),
|
|
108
108
|
];
|
|
109
109
|
// Sorting needs a column attribute and at least one measure to sort by.
|
|
110
|
-
const disabled =
|
|
110
|
+
const disabled = _isEmpty(viewBy) || _isEmpty(measures);
|
|
111
111
|
// Sort by the single view-by attribute; use viewBy[0] to stay consistent with availableSorts.
|
|
112
112
|
const defaultSort = viewBy
|
|
113
113
|
.slice(0, 1)
|
|
@@ -119,7 +119,7 @@ export class PluggableMekko extends PluggableBaseChart {
|
|
|
119
119
|
// when stacked these apply client-side — see getExecution above
|
|
120
120
|
measures.map((m) => m.localIdentifier), true,
|
|
121
121
|
// area sort (by the stacked total) only makes sense with stacked segments
|
|
122
|
-
!
|
|
122
|
+
!_isEmpty(stackBy)),
|
|
123
123
|
];
|
|
124
124
|
return Promise.resolve({
|
|
125
125
|
supported: true,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PluggablePieChart.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/pluggableVisualizations/pieChart/PluggablePieChart.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"PluggablePieChart.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/pluggableVisualizations/pieChart/PluggablePieChart.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,kBAAkB,EAAkB,MAAM,qBAAqB,CAAC;AAE9E,OAAO,EAAE,KAAK,YAAY,EAAO,MAAM,yBAAyB,CAAC;AAajE,OAAO,EAAE,KAAK,WAAW,EAA0B,MAAM,mCAAmC,CAAC;AAC7F,OAAO,EACH,KAAK,WAAW,EAChB,KAAK,uBAAuB,EAC5B,KAAK,eAAe,EACpB,KAAK,aAAa,EAClB,KAAK,SAAS,EACd,KAAK,wBAAwB,EAChC,MAAM,sCAAsC,CAAC;AAe9C,OAAO,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,CAAC;AAExE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,qBAAa,iBAAkB,SAAQ,kBAAkB;IACrD,YAAY,KAAK,EAAE,aAAa,EAM/B;IAEe,yBAAyB,CACrC,cAAc,EAAE,eAAe,GAChC,OAAO,CAAC,uBAAuB,CAAC,CA6DlC;IAED,SAAS,CAAC,0BAA0B,CAChC,QAAQ,EAAE,WAAW,EAAE,EACvB,MAAM,EAAE,WAAW,EAAE,GACtB;QACC,WAAW,EAAE,WAAW,CAAC,aAAa,CAAC,CAAC;QACxC,cAAc,EAAE,WAAW,CAAC,gBAAgB,CAAC,CAAC;KACjD,CAmBA;IAED,OAAO,CAAC,cAAc;IAYN,aAAa,CAAC,cAAc,EAAE,eAAe,GAAG,OAAO,CAAC,WAAW,CAAC,CAqBnF;IAED,UAAmB,wBAAwB,CAAC,OAAO,EAAE,kBAAkB,EAAE,OAAO,EAAE,SAAS,GAAG,IAAI,CA6BjG;IAED,UAAmB,wBAAwB,CACvC,OAAO,EAAE,SAAS,EAClB,iBAAiB,EAAE,wBAAwB,GAC5C,YAAY,CAWd;CACJ"}
|
|
@@ -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 { newMeasureSort } from "@gooddata/sdk-model";
|
|
5
4
|
import { BucketNames, VisualizationTypes } from "@gooddata/sdk-ui";
|
|
6
5
|
import { TOP } from "@gooddata/sdk-ui-charts";
|
|
6
|
+
import { _cloneDeep, _isEmpty, _set } from "@gooddata/util";
|
|
7
7
|
import { BUCKETS } from "../../../constants/bucket.js";
|
|
8
8
|
import { DASHBOARDS_ENVIRONMENT } from "../../../constants/properties.js";
|
|
9
9
|
import { PIECHART_SUPPORTED_PROPERTIES } from "../../../constants/supportedProperties.js";
|
|
@@ -58,8 +58,8 @@ export class PluggablePieChart extends PluggableBaseChart {
|
|
|
58
58
|
this.initializeProperties(props.visualizationProperties);
|
|
59
59
|
}
|
|
60
60
|
getExtendedReferencePoint(referencePoint) {
|
|
61
|
-
const clonedReferencePoint =
|
|
62
|
-
const uiConfig =
|
|
61
|
+
const clonedReferencePoint = _cloneDeep(referencePoint);
|
|
62
|
+
const uiConfig = _cloneDeep(DEFAULT_PIE_UICONFIG);
|
|
63
63
|
let newReferencePoint = {
|
|
64
64
|
...clonedReferencePoint,
|
|
65
65
|
uiConfig,
|
|
@@ -71,7 +71,7 @@ export class PluggablePieChart extends PluggableBaseChart {
|
|
|
71
71
|
if (attributes.length) {
|
|
72
72
|
const limitedBuckets = limitNumberOfMeasuresInBuckets(buckets, 1);
|
|
73
73
|
const limitedMeasures = getMeasureItems(limitedBuckets);
|
|
74
|
-
|
|
74
|
+
_set(newReferencePoint, BUCKETS, [
|
|
75
75
|
{
|
|
76
76
|
localIdentifier: BucketNames.MEASURES,
|
|
77
77
|
items: limitedMeasures,
|
|
@@ -86,12 +86,12 @@ export class PluggablePieChart extends PluggableBaseChart {
|
|
|
86
86
|
const limitedBuckets = limitNumberOfMeasuresInBuckets(buckets, DEFAULT_PIE_ONLY_MAX_METRICS_COUNT, true);
|
|
87
87
|
const limitedMeasures = getMeasureItems(limitedBuckets);
|
|
88
88
|
if (limitedMeasures.length > 1) {
|
|
89
|
-
|
|
89
|
+
_set(newReferencePoint, UICONFIG, _cloneDeep(PIE_UICONFIG_WITH_MULTIPLE_METRICS));
|
|
90
90
|
}
|
|
91
91
|
else {
|
|
92
|
-
|
|
92
|
+
_set(newReferencePoint, UICONFIG, _cloneDeep(PIE_UICONFIG_WITH_ONE_METRIC));
|
|
93
93
|
}
|
|
94
|
-
|
|
94
|
+
_set(newReferencePoint, BUCKETS, [
|
|
95
95
|
{
|
|
96
96
|
localIdentifier: BucketNames.MEASURES,
|
|
97
97
|
items: limitedMeasures,
|
|
@@ -109,7 +109,7 @@ export class PluggablePieChart extends PluggableBaseChart {
|
|
|
109
109
|
return Promise.resolve(sanitizeFilters(newReferencePoint, referencePoint));
|
|
110
110
|
}
|
|
111
111
|
getDefaultAndAvailableSort(measures, viewBy) {
|
|
112
|
-
if (!
|
|
112
|
+
if (!_isEmpty(measures) && !_isEmpty(viewBy)) {
|
|
113
113
|
return {
|
|
114
114
|
defaultSort: [newMeasureSort(measures[0].localIdentifier, "desc")],
|
|
115
115
|
availableSorts: [
|
package/esm/internal/components/pluggableVisualizations/pivotTable/PluggablePivotTable.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PluggablePivotTable.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/pluggableVisualizations/pivotTable/PluggablePivotTable.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"PluggablePivotTable.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/pluggableVisualizations/pivotTable/PluggablePivotTable.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,KAAK,oBAAoB,EAAE,KAAK,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAC9F,OAAO,EACH,KAAK,UAAU,EACf,KAAK,QAAQ,EACb,KAAK,kBAAkB,EACvB,KAAK,SAAS,EAWjB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAe,KAAK,wBAAwB,EAAsB,MAAM,kBAAkB,CAAC;AAClG,OAAO,EAEH,KAAK,eAAe,EAIpB,KAAK,iBAAiB,EAGzB,MAAM,wBAAwB,CAAC;AAMhC,OAAO,EAEH,KAAK,WAAW,EAChB,KAAK,YAAY,EACjB,KAAK,iBAAiB,EACtB,KAAK,uBAAuB,EAC5B,KAAK,UAAU,EACf,KAAK,eAAe,EACpB,KAAK,aAAa,EAClB,KAAK,SAAS,EACd,KAAK,wBAAwB,EAGhC,MAAM,sCAAsC,CAAC;AA0B9C,OAAO,EAAE,8BAA8B,EAAE,MAAM,sCAAsC,CAAC;AAwBtF,eAAO,MAAM,mBAAmB,YAAa,YAAY,EAAE,KAAG,WAAW,EAMxE,CAAC;AAEF,eAAO,MAAM,gBAAgB,YAAa,YAAY,EAAE,KAAG,WAAW,EAerE,CAAC;AAIF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,qBAAa,mBAAoB,SAAQ,8BAA8B;IACnE,OAAO,CAAC,WAAW,CAAuC;IAC1D,OAAO,CAAC,SAAS,CAAiB;IAClC,OAAO,CAAC,UAAU,CAAkB;IACpC,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAY;IACrC,OAAO,CAAC,mBAAmB,CAAuB;IAElD,YAAY,KAAK,EAAE,aAAa,EAa/B;IAEM,OAAO,IAAI,IAAI,CAErB;IAEM,yBAAyB,CAC5B,cAAc,EAAE,eAAe,EAC/B,sBAAsB,CAAC,EAAE,eAAe,GACzC,OAAO,CAAC,uBAAuB,CAAC,CAqIlC;IAEe,8BAA8B,CAC1C,mBAAmB,EAAE,QAAQ,EAC7B,gBAAgB,EAAE,iBAAiB,EACnC,0BAA0B,EAAE,OAAO,GACpC,QAAQ,CAWV;IAEM,YAAY,CACf,OAAO,EAAE,SAAS,EAClB,OAAO,EAAE,kBAAkB,EAC3B,gBAAgB,EAAE,iBAAiB,0DAUtC;IAED,SAAS,CAAC,oBAAoB,CAAC,uBAAuB,EAAE,wBAAwB,GAAG,IAAI,CAWtF;IAED,OAAO,CAAC,yBAAyB,CAc/B;IAEF,UAAmB,wBAAwB,CACvC,OAAO,EAAE,SAAS,EAClB,OAAO,EAAE,kBAAkB,EAC3B,qBAAqB,EAAE,GAAG,GAC3B,IAAI,CASN;IAED,SAAS,CAAC,mBAAmB,CACzB,OAAO,EAAE,SAAS,EAClB,OAAO,EAAE,kBAAkB,EAC3B,gBAAgB,EAAE,iBAAiB,GACpC,IAAI,CA0FN;IAED,SAAS,CAAC,wBAAwB,CAAC,OAAO,EAAE,kBAAkB,EAAE,OAAO,EAAE,SAAS,GAAG,IAAI,CAuCxF;IAED,SAAS,CAAC,aAAa,CAAC,OAAO,EAAE,kBAAkB,EAAE,yBAAyB,CAAC,EAAE,GAAG,GAAG,UAAU,EAAE,CAElG;IAED,OAAO,CAAC,wBAAwB;IAYhC,OAAO,CAAC,oBAAoB;IA6B5B,OAAO,CAAC,eAAe;IAavB,OAAO,CAAC,cAAc;CAmBzB;AAMD;;;;GAIG;AACH,wBAAgB,sBAAsB,CAClC,MAAM,EAAE,UAAU,EAClB,WAAW,EAAE,wBAAwB,EACrC,QAAQ,EAAE,SAAS,EACnB,YAAY,EAAE,oBAAoB,EAClC,YAAY,CAAC,EAAE,eAAe,EAAE,GACjC,iBAAiB,CAsDnB"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { defaultImport } from "default-import";
|
|
3
|
-
import { cloneDeep, isEmpty, isEqual } from "lodash-es";
|
|
4
3
|
import Measure from "react-measure";
|
|
5
4
|
import { bucketAttribute, insightBucket, insightBuckets, insightHasDataDefined, insightProperties, insightSanitize, insightSorts, newAttributeSort, } from "@gooddata/sdk-model";
|
|
6
5
|
import { BucketNames, VisualizationTypes } from "@gooddata/sdk-ui";
|
|
7
6
|
import { CorePivotTable, pivotTableMenuForCapabilities, } from "@gooddata/sdk-ui-pivot";
|
|
7
|
+
import { _cloneDeep, _isEmpty, _isEqual } from "@gooddata/util";
|
|
8
8
|
import { ATTRIBUTE, DATE, METRIC } from "../../../constants/bucket.js";
|
|
9
9
|
import { ANALYTICAL_ENVIRONMENT, DASHBOARDS_ENVIRONMENT } from "../../../constants/properties.js";
|
|
10
10
|
import { PIVOT_TABLE_SUPPORTED_PROPERTIES } from "../../../constants/supportedProperties.js";
|
|
@@ -94,7 +94,7 @@ export class PluggablePivotTable extends AbstractPluggableVisualization {
|
|
|
94
94
|
this.unmountFun([this.getElement(), this.getConfigPanelElement()]);
|
|
95
95
|
}
|
|
96
96
|
getExtendedReferencePoint(referencePoint, previousReferencePoint) {
|
|
97
|
-
const clonedReferencePoint =
|
|
97
|
+
const clonedReferencePoint = _cloneDeep(referencePoint);
|
|
98
98
|
const newReferencePoint = {
|
|
99
99
|
...clonedReferencePoint,
|
|
100
100
|
uiConfig: getPivotTableDefaultUiConfig(),
|
|
@@ -308,11 +308,11 @@ export class PluggablePivotTable extends AbstractPluggableVisualization {
|
|
|
308
308
|
}
|
|
309
309
|
}
|
|
310
310
|
sanitizeColumnWidths(columnWidths, insight, visualizationProperties, measureGroupDimension) {
|
|
311
|
-
if (
|
|
311
|
+
if (_isEmpty(insightBuckets(insight))) {
|
|
312
312
|
return;
|
|
313
313
|
}
|
|
314
314
|
const adaptedColumnWidths = adaptMdObjectWidthItemsToPivotTable(columnWidths, insight, measureGroupDimension);
|
|
315
|
-
if (!
|
|
315
|
+
if (!_isEqual(columnWidths, adaptedColumnWidths)) {
|
|
316
316
|
this.visualizationProperties.controls["columnWidths"] = adaptedColumnWidths;
|
|
317
317
|
this.pushData({
|
|
318
318
|
properties: {
|
|
@@ -426,7 +426,7 @@ export function createPivotTableConfig(config, environment, settings, capabiliti
|
|
|
426
426
|
function getPivotTableSortItems(insight) {
|
|
427
427
|
const sorts = insightSorts(insight);
|
|
428
428
|
const mesureGroupDimension = getMeasureGroupDimensionFromProperties(insightProperties(insight));
|
|
429
|
-
if (!
|
|
429
|
+
if (!_isEmpty(sorts)) {
|
|
430
430
|
/*
|
|
431
431
|
* This is here to ensure that when rendering pivot table in KD, all invalid sort items
|
|
432
432
|
* are filtered out. At this moment, core pivot table does not handle invalid sorts so well and
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pivotTableAdditionalFactories.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/pluggableVisualizations/pivotTable/pivotTableAdditionalFactories.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"pivotTableAdditionalFactories.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/pluggableVisualizations/pivotTable/pivotTableAdditionalFactories.ts"],"names":[],"mappings":"AAEA,OAAO,EAGH,KAAK,0BAA0B,EAC/B,KAAK,uBAAuB,EAC5B,KAAK,yBAAyB,EAE9B,KAAK,uBAAuB,EAC5B,KAAK,mBAAmB,EACxB,KAAK,2BAA2B,EAQnC,MAAM,wBAAwB,CAAC;AAGhC,OAAO,EAAE,KAAK,4BAA4B,EAAE,MAAM,gDAAgD,CAAC;AAEnG,wBAAgB,0CAA0C,CAAC,GAAG,EAAE,yBAAyB,GAAG,MAAM,CAQjG;AAED,wBAAgB,wCAAwC,CAAC,GAAG,EAAE,uBAAuB,GAAG,MAAM,CA4B7F;AAED,wBAAgB,wCAAwC,CAAC,GAAG,EAAE,uBAAuB,GAAG,MAAM,CAO7F;AAED,wBAAgB,oCAAoC,CAAC,GAAG,EAAE,mBAAmB,GAAG,MAAM,CAOrF;AAED,wBAAgB,4CAA4C,CAAC,GAAG,EAAE,2BAA2B,GAAG,MAAM,CASrG;AAED,wBAAgB,2CAA2C,CAAC,GAAG,EAAE,0BAA0B,GAAG,MAAM,CAKnG;AAED,eAAO,MAAM,6BAA6B,EAAE,4BAA4B,EAmEvE,CAAC"}
|
package/esm/internal/components/pluggableVisualizations/pivotTable/pivotTableAdditionalFactories.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// (C) 2022-2026 GoodData Corporation
|
|
2
|
-
import { partition } from "lodash-es";
|
|
3
2
|
import { isAllMeasureColumnWidthItem, isAttributeColumnLocator, isAttributeColumnWidthItem, isMeasureColumnLocator, isMeasureColumnWidthItem, isTotalColumnLocator, isWeakMeasureColumnWidthItem, } from "@gooddata/sdk-ui-pivot";
|
|
3
|
+
import { _partition } from "@gooddata/util";
|
|
4
4
|
export function factoryNotationForAttributeColumnWidthItem(obj) {
|
|
5
5
|
const { attributeIdentifier, width } = obj.attributeColumnWidthItem;
|
|
6
6
|
const { value: widthValue, allowGrowToFit } = width;
|
|
@@ -10,7 +10,7 @@ export function factoryNotationForAttributeColumnWidthItem(obj) {
|
|
|
10
10
|
}
|
|
11
11
|
export function factoryNotationForMeasureColumnWidthItem(obj) {
|
|
12
12
|
const { locators, width } = obj.measureColumnWidthItem;
|
|
13
|
-
const [measureLocators, attributeLocators] =
|
|
13
|
+
const [measureLocators, attributeLocators] = _partition(locators, isMeasureColumnLocator);
|
|
14
14
|
const allowGrowToFit = typeof width === "string" ? false : width.allowGrowToFit;
|
|
15
15
|
const attributeLocatorFactories = attributeLocators.map((locator) => isAttributeColumnLocator(locator)
|
|
16
16
|
? factoryNotationForAttributeColumnLocator(locator)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pivotTableConfigFromInsight.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/pluggableVisualizations/pivotTable/pivotTableConfigFromInsight.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"pivotTableConfigFromInsight.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/pluggableVisualizations/pivotTable/pivotTableConfigFromInsight.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,kBAAkB,EAAqB,MAAM,qBAAqB,CAAC;AACjF,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAGhE,OAAO,EAAE,KAAK,qBAAqB,EAAE,MAAM,gDAAgD,CAAC;AAK5F,wBAAgB,2BAA2B,CACvC,OAAO,EAAE,kBAAkB,EAC3B,GAAG,EAAE,qBAAqB,GAAG,SAAS,GACvC,iBAAiB,CA8BnB"}
|
package/esm/internal/components/pluggableVisualizations/pivotTable/pivotTableConfigFromInsight.js
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
// (C) 2022-2026 GoodData Corporation
|
|
2
|
-
import { isEmpty } from "lodash-es";
|
|
3
2
|
import { insightProperties } from "@gooddata/sdk-model";
|
|
3
|
+
import { _isEmpty } from "@gooddata/util";
|
|
4
4
|
import { getColumnWidthsFromProperties } from "../../../utils/propertiesHelper.js";
|
|
5
5
|
import { createPivotTableConfig } from "./PluggablePivotTable.js";
|
|
6
6
|
export function pivotTableConfigFromInsight(insight, ctx) {
|
|
7
7
|
const baseConfig = ctx?.settings && ctx.backend
|
|
8
8
|
? createPivotTableConfig({ separators: ctx?.settings?.separators }, "none", ctx.settings, ctx.backend.capabilities, getColumnWidthsFromProperties(insightProperties(insight)) ?? [])
|
|
9
9
|
: {};
|
|
10
|
-
const columnSizingProp =
|
|
10
|
+
const columnSizingProp = _isEmpty(baseConfig.columnSizing)
|
|
11
11
|
? {}
|
|
12
12
|
: { columnSizing: baseConfig.columnSizing };
|
|
13
|
-
const menuProp =
|
|
14
|
-
const separatorsProp =
|
|
13
|
+
const menuProp = _isEmpty(baseConfig.menu) ? {} : { menu: baseConfig.menu };
|
|
14
|
+
const separatorsProp = _isEmpty(baseConfig.separators) ? {} : { separators: baseConfig.separators };
|
|
15
15
|
const measureGroupDimension = insightProperties(insight)?.["controls"]?.measureGroupDimension;
|
|
16
|
-
const metricsPositionProp =
|
|
16
|
+
const metricsPositionProp = _isEmpty(measureGroupDimension) ? {} : { measureGroupDimension };
|
|
17
17
|
const columnHeadersPosition = insightProperties(insight)?.["controls"]?.columnHeadersPosition;
|
|
18
|
-
const columnHeadersPositionProp =
|
|
18
|
+
const columnHeadersPositionProp = _isEmpty(columnHeadersPosition) ? {} : { columnHeadersPosition };
|
|
19
19
|
return {
|
|
20
20
|
...columnSizingProp,
|
|
21
21
|
...menuProp,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PluggablePivotTableNext.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/pluggableVisualizations/pivotTableNext/PluggablePivotTableNext.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"PluggablePivotTableNext.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/pluggableVisualizations/pivotTableNext/PluggablePivotTableNext.tsx"],"names":[],"mappings":"AAEA,OAAO,EAGH,KAAK,iBAAiB,EACzB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACH,KAAK,UAAU,EACf,KAAK,QAAQ,EACb,KAAK,kBAAkB,EACvB,KAAK,SAAS,EAcjB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAIH,KAAK,wBAAwB,EAEhC,MAAM,kBAAkB,CAAC;AAM1B,OAAO,EAIH,KAAK,oBAAoB,EAE5B,MAAM,6BAA6B,CAAC;AAMrC,OAAO,EAEH,KAAK,iBAAiB,EACtB,KAAK,uBAAuB,EAC5B,KAAK,UAAU,EACf,KAAK,eAAe,EACpB,KAAK,aAAa,EAClB,KAAK,SAAS,EACd,KAAK,wBAAwB,EAGhC,MAAM,sCAAsC,CAAC;AAqC9C,OAAO,EAAE,8BAA8B,EAAE,MAAM,sCAAsC,CAAC;AAiBtF,wBAAgB,0BAA0B,CACtC,MAAM,EAAE,UAAU,EAClB,WAAW,EAAE,wBAAwB,EACrC,QAAQ,EAAE,SAAS,GACpB,oBAAoB,CAmCtB;AAED;;;;;GAKG;AACH,qBAAa,uBAAwB,SAAQ,8BAA8B;IACvE,OAAO,CAAC,SAAS,CAAiB;IAClC,OAAO,CAAC,UAAU,CAAkB;IACpC,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAY;IACrC,OAAO,CAAC,mBAAmB,CAAuB;IAElD,OAAO,CAAC,SAAS,CAAqB;IACtC,OAAO,CAAC,WAAW,CAAS;IAC5B,OAAO,CAAC,cAAc,CAAkB;IACxC,OAAO,CAAC,WAAW,CAAuC;IAE1D,OAAO,CAAC,YAAY,CAAqB;IAEzC,YAAY,KAAK,EAAE,aAAa,EAqB/B;IAEM,OAAO,IAAI,IAAI,CAErB;IAEM,yBAAyB,CAC5B,cAAc,EAAE,eAAe,EAC/B,sBAAsB,CAAC,EAAE,eAAe,GACzC,OAAO,CAAC,uBAAuB,CAAC,CA8GlC;IAEe,8BAA8B,CAC1C,mBAAmB,EAAE,QAAQ,EAC7B,gBAAgB,EAAE,iBAAiB,EACnC,0BAA0B,EAAE,OAAO,GACpC,QAAQ,CAWV;IAED,OAAO,CAAC,kBAAkB;IAInB,YAAY,CACf,OAAO,EAAE,SAAS,EAClB,OAAO,EAAE,kBAAkB,EAC3B,gBAAgB,EAAE,iBAAiB,0DActC;IAED,SAAS,CAAC,oBAAoB,CAAC,uBAAuB,EAAE,wBAAwB,GAAG,IAAI,CActF;IAKD,OAAO,CAAC,cAAc,CAIpB;IAIF,OAAO,CAAC,oBAAoB,CAe1B;IAEF,OAAO,CAAC,yBAAyB,CAe/B;IAEF,UAAmB,wBAAwB,CACvC,OAAO,EAAE,SAAS,EAClB,OAAO,EAAE,kBAAkB,EAC3B,qBAAqB,EAAE,GAAG,GAC3B,IAAI,CASN;IAED,UAAmB,iBAAiB,CAAC,OAAO,EAAE,kBAAkB,GAAG,OAAO,CAOzE;IAED,SAAS,CAAC,mBAAmB,CACzB,OAAO,EAAE,SAAS,EAClB,OAAO,EAAE,kBAAkB,EAC3B,gBAAgB,EAAE,iBAAiB,GACpC,IAAI,CAgGN;IAED,SAAS,CAAC,wBAAwB,CAAC,OAAO,EAAE,kBAAkB,EAAE,OAAO,EAAE,SAAS,GAAG,IAAI,CA6BxF;IAED,SAAS,CAAC,aAAa,CAAC,OAAO,EAAE,kBAAkB,EAAE,yBAAyB,CAAC,EAAE,GAAG,GAAG,UAAU,EAAE,CAElG;IAED,OAAO,CAAC,wBAAwB;IAYhC,OAAO,CAAC,oBAAoB;IA8B5B,OAAO,CAAC,eAAe;IAkBvB,OAAO,CAAC,qBAAqB;IAqB7B,OAAO,CAAC,cAAc;CA8CzB"}
|
package/esm/internal/components/pluggableVisualizations/pivotTableNext/PluggablePivotTableNext.js
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
// (C) 2025-2026 GoodData Corporation
|
|
3
|
-
import { cloneDeep, isEmpty, isEqual } from "lodash-es";
|
|
4
2
|
import { bucketAttributes, bucketMeasures, bucketTotals, insightBucket, insightBuckets, insightFilters, insightHasDataDefined, insightProperties, insightSanitize, insightSorts, resolveWeekStart, } from "@gooddata/sdk-model";
|
|
5
3
|
import { BucketNames, VisualizationTypes, } from "@gooddata/sdk-ui";
|
|
6
4
|
import { CorePivotTableNext, } from "@gooddata/sdk-ui-pivot/next";
|
|
5
|
+
import { _cloneDeep, _isEmpty, _isEqual } from "@gooddata/util";
|
|
7
6
|
import { METRIC } from "../../../constants/bucket.js";
|
|
8
7
|
import { ANALYTICAL_ENVIRONMENT, DASHBOARDS_ENVIRONMENT } from "../../../constants/properties.js";
|
|
9
8
|
import { PIVOT_TABLE_NEXT_SUPPORTED_PROPERTIES } from "../../../constants/supportedProperties.js";
|
|
@@ -98,7 +97,7 @@ export class PluggablePivotTableNext extends AbstractPluggableVisualization {
|
|
|
98
97
|
this.unmountFun([this.getElement(), this.getConfigPanelElement()]);
|
|
99
98
|
}
|
|
100
99
|
getExtendedReferencePoint(referencePoint, previousReferencePoint) {
|
|
101
|
-
const clonedReferencePoint =
|
|
100
|
+
const clonedReferencePoint = _cloneDeep(referencePoint);
|
|
102
101
|
const newReferencePoint = {
|
|
103
102
|
...clonedReferencePoint,
|
|
104
103
|
uiConfig: getPivotTableNextDefaultUiConfig(),
|
|
@@ -356,11 +355,11 @@ export class PluggablePivotTableNext extends AbstractPluggableVisualization {
|
|
|
356
355
|
}
|
|
357
356
|
}
|
|
358
357
|
sanitizeColumnWidths(columnWidths, insight, visualizationProperties, measureGroupDimension) {
|
|
359
|
-
if (
|
|
358
|
+
if (_isEmpty(insightBuckets(insight))) {
|
|
360
359
|
return;
|
|
361
360
|
}
|
|
362
361
|
const adaptedColumnWidths = adaptMdObjectWidthItemsToPivotTable(columnWidths, insight, measureGroupDimension);
|
|
363
|
-
if (!
|
|
362
|
+
if (!_isEqual(columnWidths, adaptedColumnWidths) && this.visualizationProperties) {
|
|
364
363
|
this.visualizationProperties.controls = this.visualizationProperties.controls ?? {};
|
|
365
364
|
this.visualizationProperties.controls["columnWidths"] = adaptedColumnWidths;
|
|
366
365
|
this.pushData({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pivotTableNextAdditionalFactories.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/pluggableVisualizations/pivotTableNext/pivotTableNextAdditionalFactories.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"pivotTableNextAdditionalFactories.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/pluggableVisualizations/pivotTableNext/pivotTableNextAdditionalFactories.ts"],"names":[],"mappings":"AAEA,OAAO,EAGH,KAAK,0BAA0B,EAC/B,KAAK,uBAAuB,EAC5B,KAAK,yBAAyB,EAE9B,KAAK,uBAAuB,EAC5B,KAAK,mBAAmB,EACxB,KAAK,2BAA2B,EAQnC,MAAM,wBAAwB,CAAC;AAGhC,OAAO,EAAE,KAAK,4BAA4B,EAAE,MAAM,gDAAgD,CAAC;AAEnG,wBAAgB,0CAA0C,CAAC,GAAG,EAAE,yBAAyB,GAAG,MAAM,CAQjG;AAED,wBAAgB,wCAAwC,CAAC,GAAG,EAAE,uBAAuB,GAAG,MAAM,CA4B7F;AAED,wBAAgB,wCAAwC,CAAC,GAAG,EAAE,uBAAuB,GAAG,MAAM,CAO7F;AAED,wBAAgB,oCAAoC,CAAC,GAAG,EAAE,mBAAmB,GAAG,MAAM,CAOrF;AAED,wBAAgB,4CAA4C,CAAC,GAAG,EAAE,2BAA2B,GAAG,MAAM,CASrG;AAED,wBAAgB,2CAA2C,CAAC,GAAG,EAAE,0BAA0B,GAAG,MAAM,CAKnG;AAED,eAAO,MAAM,iCAAiC,EAAE,4BAA4B,EAmE3E,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// (C) 2022-2026 GoodData Corporation
|
|
2
|
-
import { partition } from "lodash-es";
|
|
3
2
|
import { isAllMeasureColumnWidthItem, isAttributeColumnLocator, isAttributeColumnWidthItem, isMeasureColumnLocator, isMeasureColumnWidthItem, isTotalColumnLocator, isWeakMeasureColumnWidthItem, } from "@gooddata/sdk-ui-pivot";
|
|
3
|
+
import { _partition } from "@gooddata/util";
|
|
4
4
|
export function factoryNotationForAttributeColumnWidthItem(obj) {
|
|
5
5
|
const { attributeIdentifier, width } = obj.attributeColumnWidthItem;
|
|
6
6
|
const { value: widthValue, allowGrowToFit } = width;
|
|
@@ -10,7 +10,7 @@ export function factoryNotationForAttributeColumnWidthItem(obj) {
|
|
|
10
10
|
}
|
|
11
11
|
export function factoryNotationForMeasureColumnWidthItem(obj) {
|
|
12
12
|
const { locators, width } = obj.measureColumnWidthItem;
|
|
13
|
-
const [measureLocators, attributeLocators] =
|
|
13
|
+
const [measureLocators, attributeLocators] = _partition(locators, isMeasureColumnLocator);
|
|
14
14
|
const allowGrowToFit = typeof width === "string" ? false : width.allowGrowToFit;
|
|
15
15
|
const attributeLocatorFactories = attributeLocators.map((locator) => isAttributeColumnLocator(locator)
|
|
16
16
|
? factoryNotationForAttributeColumnLocator(locator)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sortHelpers.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/pluggableVisualizations/pivotTableNext/sortHelpers.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"sortHelpers.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/pluggableVisualizations/pivotTableNext/sortHelpers.ts"],"names":[],"mappings":"AAEA,OAAO,EAEH,KAAK,OAAO,EACZ,KAAK,kBAAkB,EAEvB,KAAK,SAAS,EAiBjB,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,KAAK,qBAAqB,EAAE,MAAM,wBAAwB,CAAC;AAGpE,OAAO,EAEH,KAAK,aAAa,EAClB,KAAK,WAAW,EACnB,MAAM,sCAAsC,CAAC;AAI9C,eAAO,MAAM,wCAAwC,sBAC9B,SAAS,EAAE,YACpB,WAAW,EAAE,iBACR,WAAW,EAAE,oBACV,WAAW,EAAE,yBACR,qBAAqB,KAC7C,SAAS,EAaX,CAAC;AAmEF,eAAO,MAAM,cAAc,cACZ,SAAS,EAAE,WACb,aAAa,EAAE,iBACT,WAAW,EAAE,yBACL,WAAW,EAAE,qBAClB,WAAW,EAAE,KAChC,SAAS,EAoCX,CAAC;AAmCF,eAAO,MAAM,iBAAiB,aAChB,SAAS,WACV,aAAa,EAAE,oBACN,WAAW,EAAE,KAChC,OAGoE,CAAC;AAExE,eAAO,MAAM,qBAAqB,cACnB,SAAS,EAAE,GAAG,SAAS,yBACX,qBAAqB,KAC7C,SAAS,EAOX,CAAC;AAEF;;;;;;;;;GASG;AACH,eAAO,MAAM,sBAAsB,YAAa,kBAAkB,KAAG,SAAS,EAAE,GAAG,SAyBlF,CAAC;AAEF,eAAO,MAAM,uBAAuB,sBACb,SAAS,EAAE,WACrB,OAAO,EAAE,yBACK,qBAAqB,KAC7C,SAAS,EAmBX,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// (C) 2025-2026 GoodData Corporation
|
|
2
|
-
import { isEmpty } from "lodash-es";
|
|
3
2
|
import { areObjRefsEqual, attributeLocalId, bucketAttribute, bucketAttributes, bucketsFind, bucketsMeasures, insightBucket, insightBuckets, insightProperties, insightSorts, isAttributeLocator, isAttributeSort, isMeasureLocator, isMeasureSort, measureLocalId, newAttributeSort, } from "@gooddata/sdk-model";
|
|
4
3
|
import { BucketNames } from "@gooddata/sdk-ui";
|
|
4
|
+
import { _isEmpty } from "@gooddata/util";
|
|
5
5
|
import { isAttributeFilter } from "../../../utils/bucketHelper.js";
|
|
6
6
|
import { getMeasureGroupDimensionFromProperties } from "../../../utils/propertiesHelper.js";
|
|
7
7
|
export const adaptReferencePointSortItemsToPivotTable = (originalSortItems, measures, rowAttributes, columnAttributes, measureGroupDimension) => {
|
|
@@ -130,7 +130,7 @@ export const getSanitizedSortItems = (sortItems, measureGroupDimension) => {
|
|
|
130
130
|
export const getPivotTableSortItems = (insight) => {
|
|
131
131
|
const sorts = insightSorts(insight);
|
|
132
132
|
const mesureGroupDimension = getMeasureGroupDimensionFromProperties(insightProperties(insight));
|
|
133
|
-
if (!
|
|
133
|
+
if (!_isEmpty(sorts)) {
|
|
134
134
|
/*
|
|
135
135
|
* This is here to ensure that when rendering pivot table in KD, all invalid sort items
|
|
136
136
|
* are filtered out. At this moment, core pivot table does not handle invalid sorts so well and
|
package/esm/internal/components/pluggableVisualizations/radarChart/PluggableRadarChart.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PluggableRadarChart.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/pluggableVisualizations/radarChart/PluggableRadarChart.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"PluggableRadarChart.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/pluggableVisualizations/radarChart/PluggableRadarChart.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,QAAQ,EAAE,KAAK,kBAAkB,EAAoB,MAAM,qBAAqB,CAAC;AAO/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;AAkB9C,OAAO,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,CAAC;AAOxE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,qBAAa,mBAAoB,SAAQ,kBAAkB;IACvD,YAAY,KAAK,EAAE,aAAa,EAK/B;IAEe,WAAW,IAAI,SAAS,CAEvC;IAEe,yBAAyB,CACrC,cAAc,EAAE,eAAe,GAChC,OAAO,CAAC,uBAAuB,CAAC,CAoBlC;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,CA6BjG;IAED,OAAO,CAAC,iCAAiC;IAiDzC,OAAO,CAAC,UAAU;IAUlB,OAAO,CAAC,0BAA0B;IAsBlC,OAAO,CAAC,cAAc;CAUzB"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
// (C) 2026 GoodData Corporation
|
|
3
|
-
import { cloneDeep, set } from "lodash-es";
|
|
4
3
|
import { newAttributeSort } from "@gooddata/sdk-model";
|
|
5
4
|
import { BucketNames, VisualizationTypes } from "@gooddata/sdk-ui";
|
|
5
|
+
import { _cloneDeep, _set } from "@gooddata/util";
|
|
6
6
|
import { ATTRIBUTE, BUCKETS, DATE } from "../../../constants/bucket.js";
|
|
7
7
|
import { RADAR_CHART_SUPPORTED_PROPERTIES } from "../../../constants/supportedProperties.js";
|
|
8
8
|
import { MAX_METRICS_COUNT, RADAR_UICONFIG } from "../../../constants/uiConfig.js";
|
|
@@ -54,10 +54,10 @@ export class PluggableRadarChart extends PluggableBaseChart {
|
|
|
54
54
|
this.initializeProperties(props.visualizationProperties);
|
|
55
55
|
}
|
|
56
56
|
getUiConfig() {
|
|
57
|
-
return
|
|
57
|
+
return _cloneDeep(RADAR_UICONFIG);
|
|
58
58
|
}
|
|
59
59
|
getExtendedReferencePoint(referencePoint) {
|
|
60
|
-
const clonedReferencePoint =
|
|
60
|
+
const clonedReferencePoint = _cloneDeep(referencePoint);
|
|
61
61
|
let newReferencePoint = {
|
|
62
62
|
...clonedReferencePoint,
|
|
63
63
|
uiConfig: this.getUiConfig(),
|
|
@@ -132,7 +132,7 @@ export class PluggableRadarChart extends PluggableBaseChart {
|
|
|
132
132
|
}
|
|
133
133
|
attributes = getAttributeItemsWithoutStacks(buckets, [ATTRIBUTE, DATE]).slice(0, 1);
|
|
134
134
|
}
|
|
135
|
-
|
|
135
|
+
_set(newReferencePoint, BUCKETS, [
|
|
136
136
|
{
|
|
137
137
|
localIdentifier: BucketNames.MEASURES,
|
|
138
138
|
items: this.getBucketMeasures(newReferencePoint.buckets),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PluggableRepeater.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/pluggableVisualizations/repeater/PluggableRepeater.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"PluggableRepeater.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/pluggableVisualizations/repeater/PluggableRepeater.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AACnE,OAAO,EAIH,KAAK,kBAAkB,EAO1B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAe,KAAK,SAAS,EAAiC,MAAM,kBAAkB,CAAC;AAe9F,OAAO,EAAE,KAAK,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AACzE,OAAO,EACH,KAAK,WAAW,EAChB,KAAK,YAAY,EACjB,KAAK,uBAAuB,EAC5B,KAAK,eAAe,EACpB,KAAK,aAAa,EAClB,KAAK,SAAS,EACd,KAAK,wBAAwB,EAKhC,MAAM,sCAAsC,CAAC;AAU9C,OAAO,EAAE,8BAA8B,EAAE,MAAM,sCAAsC,CAAC;AAEtF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,qBAAa,iBAAkB,SAAQ,8BAA8B;IACjE,OAAO,CAAC,WAAW,CAAuC;IAC1D,OAAO,CAAC,SAAS,CAAiB;IAClC,OAAO,CAAC,UAAU,CAAkB;IACpC,SAAS,CAAC,MAAM,EAAE,mBAAmB,GAAG,SAAS,CAAC;IAElD,YAAY,KAAK,EAAE,aAAa,EAQ/B;IAEM,OAAO,IAAI,IAAI,CAErB;IAEM,yBAAyB,mBACZ,eAAe,KAChC,OAAO,CAAC,uBAAuB,CAAC,CAYjC;IAEK,YAAY,CACf,OAAO,EAAE,SAAS,EAClB,OAAO,EAAE,kBAAkB,EAC3B,gBAAgB,EAAE,iBAAiB,0DAqBtC;IAEe,kBAAkB,CAC9B,qBAAqB,EAAE,eAAe,EACtC,kBAAkB,EAAE,eAAe,GACpC,WAAW,EAAE,GAAG,SAAS,CA6B3B;IAED,OAAO,CAAC,qBAAqB;IAK7B,OAAO,CAAC,iBAAiB;IAKzB,OAAO,CAAC,cAAc;IAKtB,UAAmB,uBAAuB,CACtC,eAAe,EAAE,eAAe,EAChC,MAAM,EAAE,YAAY,EACpB,qBAAqB,EAAE,WAAW,EAAE,GACrC,WAAW,EAAE,CAsBf;IAED,UAAmB,iBAAiB,CAAC,OAAO,EAAE,kBAAkB,GAAG,OAAO,CAWzE;IAED,SAAS,CAAC,oBAAoB,CAAC,uBAAuB,EAAE,wBAAwB,GAAG,IAAI,CAWtF;IAED,OAAO,CAAC,eAAe,CAcrB;IAEF,OAAO,CAAC,iBAAiB;IAwBzB,OAAO,CAAC,iBAAiB;IASzB,OAAO,CAAC,iBAAiB;IAYzB,SAAS,CAAC,2BAA2B,CAAC,IAAI,EAAE,SAAS,GAAG,IAAI,CAe3D;IAED,SAAS,CAAC,cAAc,SAAU,SAAS,KAAG,IAAI,CAMhD;IAEF,SAAS,CAAC,mBAAmB,CACzB,OAAO,EAAE,SAAS,EAClB,OAAO,EAAE,kBAAkB,EAC3B,gBAAgB,EAAE,iBAAiB,GACpC,IAAI,CA8BN;IAED,SAAS,CAAC,wBAAwB,CAAC,OAAO,EAAE,kBAAkB,EAAE,OAAO,EAAE,SAAS,GAAG,IAAI,CAwBxF;CACJ"}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
// (C) 2024-2026 GoodData Corporation
|
|
3
|
-
import { cloneDeep, compact, omit } from "lodash-es";
|
|
4
2
|
import { areObjRefsEqual, insightBucket, insightBuckets, insightProperties, insightSetBuckets, } from "@gooddata/sdk-model";
|
|
5
3
|
import { BucketNames } from "@gooddata/sdk-ui";
|
|
6
4
|
import { ColorUtils, CoreRepeater, constructRepeaterBuckets, constructRepeaterDimensions, updateConfigWithSettings, } from "@gooddata/sdk-ui-charts";
|
|
5
|
+
import { _cloneDeep, _compact, _omit } from "@gooddata/util";
|
|
7
6
|
import { DASHBOARDS_ENVIRONMENT } from "../../../constants/properties.js";
|
|
8
7
|
import { REPEATER_SUPPORTER_PROPERTIES_LIST } from "../../../constants/supportedProperties.js";
|
|
9
8
|
import { InvalidBucketsSdkError, InvalidColumnsSdkError, } from "../../../interfaces/Visualization.js";
|
|
@@ -62,7 +61,7 @@ export class PluggableRepeater extends AbstractPluggableVisualization {
|
|
|
62
61
|
this.unmountFun([this.getElement(), this.getConfigPanelElement()]);
|
|
63
62
|
}
|
|
64
63
|
getExtendedReferencePoint = async (referencePoint) => {
|
|
65
|
-
const referencePointCloned =
|
|
64
|
+
const referencePointCloned = _cloneDeep(referencePoint);
|
|
66
65
|
const uiConfig = getDefaultRepeaterUiConfig();
|
|
67
66
|
let newReferencePoint = {
|
|
68
67
|
...referencePointCloned,
|
|
@@ -88,8 +87,8 @@ export class PluggableRepeater extends AbstractPluggableVisualization {
|
|
|
88
87
|
.withDateFormat(dateFormat);
|
|
89
88
|
}
|
|
90
89
|
getBucketsToUpdate(currentReferencePoint, nextReferencePoint) {
|
|
91
|
-
const currentRefencePointClone =
|
|
92
|
-
const nextReferencePointClone =
|
|
90
|
+
const currentRefencePointClone = _cloneDeep(currentReferencePoint);
|
|
91
|
+
const nextReferencePointClone = _cloneDeep(nextReferencePoint);
|
|
93
92
|
const currentBuckets = currentRefencePointClone?.buckets ?? [];
|
|
94
93
|
const currentRowAttribute = getMainRowAttribute(currentBuckets);
|
|
95
94
|
const nextBuckets = nextReferencePointClone?.buckets ?? [];
|
|
@@ -192,7 +191,7 @@ export class PluggableRepeater extends AbstractPluggableVisualization {
|
|
|
192
191
|
return columnSizing;
|
|
193
192
|
}
|
|
194
193
|
buildColorMapping(colorMapping) {
|
|
195
|
-
const validColorMapping =
|
|
194
|
+
const validColorMapping = _compact(colorMapping).map((mapItem) => ({
|
|
196
195
|
predicate: ColorUtils.getColorMappingPredicate(mapItem.id),
|
|
197
196
|
color: mapItem.color,
|
|
198
197
|
}));
|
|
@@ -241,7 +240,7 @@ export class PluggableRepeater extends AbstractPluggableVisualization {
|
|
|
241
240
|
renderConfigurationPanel(insight, options) {
|
|
242
241
|
const configPanelElement = this.getConfigPanelElement();
|
|
243
242
|
if (configPanelElement) {
|
|
244
|
-
this.renderFun(_jsx(RepeaterConfigurationPanel, { colors: this.colors, locale: this.locale, properties: this.visualizationProperties, propertiesMeta: this.propertiesMeta, insight: insight, pushData: this.handlePushData, isError: this.getIsError(), isLoading: this.isLoading, featureFlags: this.featureFlags, permissions: this.permissions, configurationPanelRenderers:
|
|
243
|
+
this.renderFun(_jsx(RepeaterConfigurationPanel, { colors: this.colors, locale: this.locale, properties: this.visualizationProperties, propertiesMeta: this.propertiesMeta, insight: insight, pushData: this.handlePushData, isError: this.getIsError(), isLoading: this.isLoading, featureFlags: this.featureFlags, permissions: this.permissions, configurationPanelRenderers: _omit(options.custom?.configurationPanelRenderers, "InteractionsDetailRenderer") }), configPanelElement);
|
|
245
244
|
}
|
|
246
245
|
}
|
|
247
246
|
}
|
package/esm/internal/components/pluggableVisualizations/sankeyChart/PluggableSankeyChart.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PluggableSankeyChart.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/pluggableVisualizations/sankeyChart/PluggableSankeyChart.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"PluggableSankeyChart.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/pluggableVisualizations/sankeyChart/PluggableSankeyChart.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAM9D,OAAO,EACH,KAAK,uBAAuB,EAC5B,KAAK,eAAe,EACpB,KAAK,aAAa,EAClB,KAAK,SAAS,EACjB,MAAM,sCAAsC,CAAC;AAY9C,OAAO,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,CAAC;AAExE;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,qBAAa,oBAAqB,SAAQ,kBAAkB;IACxD,YAAY,MAAM,EAAE,aAAa,EAGhC;IAEe,yBAAyB,CACrC,cAAc,EAAE,eAAe,GAChC,OAAO,CAAC,uBAAuB,CAAC,CAgBlC;IAED,UAAmB,0BAA0B,IAAI,MAAM,EAAE,CAExD;IAED,UAAmB,wBAAwB,CAAC,OAAO,EAAE,kBAAkB,EAAE,OAAO,EAAE,SAAS,GAAG,IAAI,CA6BjG;CACJ"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
// (C) 2023-2026 GoodData Corporation
|
|
3
|
-
import { cloneDeep } from "lodash-es";
|
|
4
2
|
import { VisualizationTypes } from "@gooddata/sdk-ui";
|
|
3
|
+
import { _cloneDeep } from "@gooddata/util";
|
|
5
4
|
import { SANKEY_CHART_SUPPORTED_PROPERTIES } from "../../../constants/supportedProperties.js";
|
|
6
5
|
import { DEFAULT_SANKEY_UI_CONFIG } from "../../../constants/uiConfig.js";
|
|
7
6
|
import { configureOverTimeComparison, configurePercent } from "../../../utils/bucketConfig.js";
|
|
@@ -42,9 +41,9 @@ export class PluggableSankeyChart extends PluggableBaseChart {
|
|
|
42
41
|
this.type = VisualizationTypes.SANKEY;
|
|
43
42
|
}
|
|
44
43
|
getExtendedReferencePoint(referencePoint) {
|
|
45
|
-
const uiConfig =
|
|
44
|
+
const uiConfig = _cloneDeep(DEFAULT_SANKEY_UI_CONFIG);
|
|
46
45
|
let extendedReferencePoint = {
|
|
47
|
-
...
|
|
46
|
+
..._cloneDeep(referencePoint),
|
|
48
47
|
uiConfig,
|
|
49
48
|
};
|
|
50
49
|
extendedReferencePoint = removeAllArithmeticMeasuresFromDerived(extendedReferencePoint);
|
package/esm/internal/components/pluggableVisualizations/scatterPlot/PluggableScatterPlot.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PluggableScatterPlot.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/pluggableVisualizations/scatterPlot/PluggableScatterPlot.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"PluggableScatterPlot.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/pluggableVisualizations/scatterPlot/PluggableScatterPlot.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAO9D,OAAO,EACH,KAAK,uBAAuB,EAC5B,KAAK,eAAe,EACpB,KAAK,aAAa,EAClB,KAAK,SAAS,EACjB,MAAM,sCAAsC,CAAC;AAY9C,OAAO,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,CAAC;AAIxE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,qBAAa,oBAAqB,SAAQ,kBAAkB;IACxD,YAAY,KAAK,EAAE,aAAa,EAK/B;IAEe,yBAAyB,CACrC,cAAc,EAAE,eAAe,GAChC,OAAO,CAAC,uBAAuB,CAAC,CA2BlC;IAED,UAAmB,wBAAwB,CAAC,OAAO,EAAE,kBAAkB,EAAE,OAAO,EAAE,SAAS,GAAG,IAAI,CA4BjG;CACJ"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
// (C) 2019-2026 GoodData Corporation
|
|
3
|
-
import { cloneDeep, set } from "lodash-es";
|
|
4
2
|
import { BucketNames, VisualizationTypes } from "@gooddata/sdk-ui";
|
|
3
|
+
import { _cloneDeep, _set } from "@gooddata/util";
|
|
5
4
|
import { BUCKETS } from "../../../constants/bucket.js";
|
|
6
5
|
import { SCATTERPLOT_SUPPORTED_PROPERTIES } from "../../../constants/supportedProperties.js";
|
|
7
6
|
import { DEFAULT_SCATTERPLOT_UICONFIG } from "../../../constants/uiConfig.js";
|
|
@@ -51,8 +50,8 @@ export class PluggableScatterPlot extends PluggableBaseChart {
|
|
|
51
50
|
this.initializeProperties(props.visualizationProperties);
|
|
52
51
|
}
|
|
53
52
|
getExtendedReferencePoint(referencePoint) {
|
|
54
|
-
const clonedReferencePoint =
|
|
55
|
-
const uiConfig =
|
|
53
|
+
const clonedReferencePoint = _cloneDeep(referencePoint);
|
|
54
|
+
const uiConfig = _cloneDeep(DEFAULT_SCATTERPLOT_UICONFIG);
|
|
56
55
|
let newReferencePoint = {
|
|
57
56
|
...clonedReferencePoint,
|
|
58
57
|
uiConfig,
|
|
@@ -85,7 +84,7 @@ function disableClusteringForMissingViewBy(referencePoint) {
|
|
|
85
84
|
const viewByBucket = findBucket(referencePoint.buckets, BucketNames.ATTRIBUTE);
|
|
86
85
|
const hasViewByItems = (viewByBucket?.items?.length ?? 0) > 0;
|
|
87
86
|
if (!hasViewByItems) {
|
|
88
|
-
updatedReferencePoint =
|
|
87
|
+
updatedReferencePoint = _set(referencePoint, "properties.controls.clustering.enabled", false);
|
|
89
88
|
}
|
|
90
89
|
return updatedReferencePoint;
|
|
91
90
|
}
|
|
@@ -97,7 +96,7 @@ function disableClusteringIfFewerThanTwoMeasures(referencePoint) {
|
|
|
97
96
|
const secondaryMeasuresBucketItemsCount = secondaryMeasuresBucket?.items?.length ?? 0;
|
|
98
97
|
const hasXAndYMeasures = measuresBucketItemsCount === 1 && secondaryMeasuresBucketItemsCount === 1;
|
|
99
98
|
if (!hasXAndYMeasures) {
|
|
100
|
-
updatedReferencePoint =
|
|
99
|
+
updatedReferencePoint = _set(referencePoint, "properties.controls.clustering.enabled", false);
|
|
101
100
|
}
|
|
102
101
|
return updatedReferencePoint;
|
|
103
102
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PluggableTreemap.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/pluggableVisualizations/treeMap/PluggableTreemap.tsx"],"names":[],"mappings":"AAIA,OAAO,EACH,KAAK,QAAQ,EACb,KAAK,kBAAkB,EAG1B,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"PluggableTreemap.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/pluggableVisualizations/treeMap/PluggableTreemap.tsx"],"names":[],"mappings":"AAIA,OAAO,EACH,KAAK,QAAQ,EACb,KAAK,kBAAkB,EAG1B,MAAM,qBAAqB,CAAC;AAO7B,OAAO,EAEH,KAAK,iBAAiB,EAEtB,KAAK,uBAAuB,EAC5B,KAAK,eAAe,EACpB,KAAK,aAAa,EAClB,KAAK,SAAS,EACjB,MAAM,sCAAsC,CAAC;AAgB9C,OAAO,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,CAAC;AAOxE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,qBAAa,gBAAiB,SAAQ,kBAAkB;IACpD,YAAY,KAAK,EAAE,aAAa,EAK/B;IAED,OAAO,CAAC,iBAAiB;IAKzB,OAAO,CAAC,+BAA+B;IAoBvC,UAAmB,gBAAgB,CAAC,iBAAiB,EAAE,uBAAuB,GAAG,IAAI,CAiBpF;IAED,OAAO,CAAC,kBAAkB;IAQV,yBAAyB,CACrC,cAAc,EAAE,eAAe,GAChC,OAAO,CAAC,uBAAuB,CAAC,CA4BlC;IAED,OAAO,CAAC,UAAU;IAUF,8BAA8B,CAC1C,MAAM,EAAE,QAAQ,EAChB,gBAAgB,EAAE,iBAAiB,EACnC,0BAA0B,EAAE,OAAO,GACpC,QAAQ,CAQV;IAED,UAAmB,wBAAwB,CAAC,OAAO,EAAE,kBAAkB,EAAE,OAAO,EAAE,SAAS,GAAG,IAAI,CAgCjG;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 { bucketsAttributes, insightBuckets, } from "@gooddata/sdk-model";
|
|
5
5
|
import { BucketNames, VisualizationTypes } 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 { TREEMAP_SUPPORTED_PROPERTIES } from "../../../constants/supportedProperties.js";
|
|
8
9
|
import { MAX_METRICS_COUNT, getTreemapUiConfig } from "../../../constants/uiConfig.js";
|
|
@@ -68,7 +69,7 @@ export class PluggableTreemap extends PluggableBaseChart {
|
|
|
68
69
|
if (nonStackAttributes.length > 0) {
|
|
69
70
|
measures = getMeasureItems(limitNumberOfMeasuresInBuckets(buckets, 1));
|
|
70
71
|
}
|
|
71
|
-
if (nonStackAttributes.length > 1 &&
|
|
72
|
+
if (nonStackAttributes.length > 1 && _isEmpty(stacks)) {
|
|
72
73
|
// first attribute is taken, find next available and put to stacks
|
|
73
74
|
const attributesWithoutFirst = tail(nonStackAttributes);
|
|
74
75
|
stacks = attributesWithoutFirst.slice(0, 1);
|
|
@@ -77,7 +78,7 @@ export class PluggableTreemap extends PluggableBaseChart {
|
|
|
77
78
|
}
|
|
78
79
|
configureBuckets(newReferencePoint) {
|
|
79
80
|
const { measures, view, stacks } = this.getBucketItemsWithMultipleDates(newReferencePoint);
|
|
80
|
-
|
|
81
|
+
_set(newReferencePoint, BUCKETS, [
|
|
81
82
|
{
|
|
82
83
|
localIdentifier: BucketNames.MEASURES,
|
|
83
84
|
items: measures,
|
|
@@ -99,7 +100,7 @@ export class PluggableTreemap extends PluggableBaseChart {
|
|
|
99
100
|
return getTreemapUiConfig(nonStackAttributes.length > 0, measures.length > 1);
|
|
100
101
|
}
|
|
101
102
|
getExtendedReferencePoint(referencePoint) {
|
|
102
|
-
const clonedReferencePoint =
|
|
103
|
+
const clonedReferencePoint = _cloneDeep(referencePoint);
|
|
103
104
|
let newReferencePoint = {
|
|
104
105
|
...clonedReferencePoint,
|
|
105
106
|
uiConfig: this.getTreemapUIConfig(referencePoint),
|
|
@@ -113,7 +114,7 @@ export class PluggableTreemap extends PluggableBaseChart {
|
|
|
113
114
|
newReferencePoint = getReferencePointWithSupportedProperties(newReferencePoint, this.supportedPropertiesList);
|
|
114
115
|
// set chart fill to solid if treemap is stacked
|
|
115
116
|
if (!hasNoStacksWithDate(newReferencePoint.buckets)) {
|
|
116
|
-
newReferencePoint =
|
|
117
|
+
newReferencePoint = _set(newReferencePoint, "properties.controls.chartFill", { type: "solid" });
|
|
117
118
|
}
|
|
118
119
|
newReferencePoint = removeSort(newReferencePoint);
|
|
119
120
|
return Promise.resolve(sanitizeFilters(newReferencePoint, referencePoint));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PluggableWaterfallChart.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/pluggableVisualizations/waterfallChart/PluggableWaterfallChart.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"PluggableWaterfallChart.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/pluggableVisualizations/waterfallChart/PluggableWaterfallChart.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,kBAAkB,EAAkB,MAAM,qBAAqB,CAAC;AAa9E,OAAO,EAAE,KAAK,WAAW,EAA0B,MAAM,mCAAmC,CAAC;AAC7F,OAAO,EACH,KAAK,WAAW,EAChB,KAAK,uBAAuB,EAC5B,KAAK,eAAe,EACpB,KAAK,SAAS,EACd,KAAK,aAAa,EAClB,KAAK,SAAS,EACd,KAAK,wBAAwB,EAChC,MAAM,sCAAsC,CAAC;AAsB9C,OAAO,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,CAAC;AAExE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,qBAAa,uBAAwB,SAAQ,kBAAkB;IAC3D,YAAY,KAAK,EAAE,aAAa,EAI/B;IAED,UAAmB,0BAA0B,IAAI,MAAM,EAAE,CAExD;IAED,UAAmB,oBAAoB,CAAC,uBAAuB,EAAE,wBAAwB,GAAG,IAAI,CAmB/F;IAEe,WAAW,IAAI,SAAS,CAEvC;IAEe,yBAAyB,CACrC,cAAc,EAAE,eAAe,GAChC,OAAO,CAAC,uBAAuB,CAAC,CAwDlC;IAED,SAAS,CAAC,0BAA0B,CAChC,QAAQ,EAAE,WAAW,EAAE,EACvB,MAAM,EAAE,WAAW,EAAE,GACtB;QACC,WAAW,EAAE,WAAW,CAAC,aAAa,CAAC,CAAC;QACxC,cAAc,EAAE,WAAW,CAAC,gBAAgB,CAAC,CAAC;KACjD,CAaA;IAED,OAAO,CAAC,cAAc;IAYN,aAAa,CAAC,cAAc,EAAE,eAAe,GAAG,OAAO,CAAC,WAAW,CAAC,CAqBnF;IAED,UAAmB,wBAAwB,CAAC,OAAO,EAAE,kBAAkB,EAAE,OAAO,EAAE,SAAS,GAAG,IAAI,CA8BjG;IAED,OAAO,CAAC,0BAA0B;CAqBrC"}
|