@gooddata/sdk-ui-ext 11.68.0-alpha.1 → 11.68.0-alpha.11
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 +8336 -63104
- 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 +2 -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/advanced/ConfigEditor.js +2 -2
- 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 -11
- 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 +1 -1
- package/esm/share/ObjectShareDialog.d.ts +1 -1
- package/esm/share/ObjectShareDialog.js +3 -3
- package/esm/share/messages.d.ts +28 -0
- package/esm/share/messages.d.ts.map +1 -1
- package/esm/share/messages.js +14 -0
- package/esm/share/removeAccessConfirm.d.ts +21 -0
- package/esm/share/removeAccessConfirm.d.ts.map +1 -0
- package/esm/share/removeAccessConfirm.js +27 -0
- package/esm/share/useObjectShareDialog.d.ts +14 -11
- package/esm/share/useObjectShareDialog.d.ts.map +1 -1
- package/esm/share/useObjectShareDialog.js +54 -24
- package/package.json +21 -21
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InsightRenderer.d.ts","sourceRoot":"","sources":["../../src/insightView/InsightRenderer.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"InsightRenderer.d.ts","sourceRoot":"","sources":["../../src/insightView/InsightRenderer.tsx"],"names":[],"mappings":"AAWA,OAAO,EAGH,KAAK,sBAAsB,EAC9B,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACH,KAAK,aAAa,EAClB,KAAK,kBAAkB,EACvB,KAAK,cAAc,EACnB,KAAK,MAAM,EACX,KAAK,qBAAqB,EAM7B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAKH,KAAK,OAAO,EACZ,KAAK,aAAa,EAGlB,KAAK,OAAO,EAMf,MAAM,kBAAkB,CAAC;AAK1B,OAAO,EAGH,KAAK,iBAAiB,EAKzB,MAAM,sBAAsB,CAAC;AAE9B;;GAEG;AACH,MAAM,WAAW,qBAAsB,SAAQ,IAAI,CAC/C,iBAAiB,EACjB,SAAS,GAAG,gBAAgB,GAAG,iBAAiB,GAAG,WAAW,CACjE;IACG,OAAO,EAAE,kBAAkB,GAAG,SAAS,CAAC;IACxC,MAAM,EAAE,OAAO,CAAC;IAChB,QAAQ,EAAE,sBAAsB,GAAG,SAAS,CAAC;IAC7C,WAAW,CAAC,EAAE,qBAAqB,CAAC;IACpC,YAAY,EAAE,aAAa,GAAG,SAAS,CAAC;IACxC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;IACzB;;;OAGG;IACH,MAAM,CAAC,EAAE,cAAc,CAAC;CAC3B;AAiYD,eAAO,MAAM,mBAAmB;cA/XoC,aAAa;EA+Xb,CAAC;AAwBrE;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,qBAAqB,kDAuC3D"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
// (C) 2020-2026 GoodData Corporation
|
|
3
3
|
import { memo, useCallback, useEffect, useLayoutEffect, useRef, useState } from "react";
|
|
4
|
-
import { isEqual } from "lodash-es";
|
|
5
4
|
import { createRoot } from "react-dom/client";
|
|
6
5
|
import { v4 as uuidv4 } from "uuid";
|
|
7
6
|
import { ExecutionFactoryUpgradingToExecByReference, ExecutionFactoryWithFixedFilters, } from "@gooddata/sdk-backend-base";
|
|
@@ -9,6 +8,7 @@ import { insightProperties, insightSetProperties, insightTitle, insightVisualiza
|
|
|
9
8
|
import { DefaultLocale, ErrorComponent, IntlWrapper, LoadingComponent, fillMissingFormats, fillMissingTitlesWithMessages, ignoreTitlesForSimpleMeasures, useResolveMessages, withContexts, } from "@gooddata/sdk-ui";
|
|
10
9
|
import { OverlayZIndexContext, useContainingOverlayZIndex } from "@gooddata/sdk-ui-kit";
|
|
11
10
|
import { useTheme } from "@gooddata/sdk-ui-theme-provider";
|
|
11
|
+
import { _isEqual } from "@gooddata/util";
|
|
12
12
|
import { DEFAULT_MESSAGES, FullVisualizationCatalog, resolveMessages, } from "../internal/index.js";
|
|
13
13
|
const getElementId = () => `gd-vis-${uuidv4()}`;
|
|
14
14
|
const visualizationUriRootStyle = {
|
|
@@ -241,9 +241,9 @@ const InsightRendererCore = memo(function InsightRendererCore(props) {
|
|
|
241
241
|
*/
|
|
242
242
|
const prevInsightForCompare = prevProps.insight && insightSetProperties(prevProps.insight, {});
|
|
243
243
|
const newInsightForCompare = currentProps.insight && insightSetProperties(currentProps.insight, {});
|
|
244
|
-
const needsNewSetup = !
|
|
245
|
-
!
|
|
246
|
-
!
|
|
244
|
+
const needsNewSetup = !_isEqual(newInsightForCompare, prevInsightForCompare) ||
|
|
245
|
+
!_isEqual(currentProps.filters, prevProps.filters) ||
|
|
246
|
+
!_isEqual(currentProps.settings, prevProps.settings) ||
|
|
247
247
|
currentProps.workspace !== prevProps.workspace;
|
|
248
248
|
if (needsNewSetup) {
|
|
249
249
|
setupVisualization();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseVisualization.d.ts","sourceRoot":"","sources":["../../../src/internal/components/BaseVisualization.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"BaseVisualization.d.ts","sourceRoot":"","sources":["../../../src/internal/components/BaseVisualization.tsx"],"names":[],"mappings":"AAOA,OAAO,EACH,KAAK,kBAAkB,EAEvB,KAAK,kBAAkB,EAC1B,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACH,KAAK,gBAAgB,EACrB,KAAK,QAAQ,EACb,KAAK,kBAAkB,EACvB,KAAK,SAAS,EACd,KAAK,MAAM,EACX,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAI7B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACH,KAAK,aAAa,EAClB,KAAK,OAAO,EACZ,KAAK,OAAO,EACZ,KAAK,aAAa,EAClB,KAAK,gBAAgB,EACrB,KAAK,wBAAwB,EAChC,MAAM,kBAAkB,CAAC;AAI1B,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAC/D,OAAO,EAEH,KAAK,WAAW,EAChB,KAAK,4BAA4B,EACjC,KAAK,iBAAiB,EACtB,KAAK,uBAAuB,EAC5B,KAAK,UAAU,EACf,KAAK,eAAe,EACpB,KAAK,aAAa,EAIrB,MAAM,gCAAgC,CAAC;AAIxC,OAAO,EAA4B,KAAK,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAEjG,MAAM,WAAW,uBAAwB,SAAQ,aAAa;IAC1D,OAAO,EAAE,kBAAkB,CAAC;IAC5B,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,kBAAkB,CAAC;IAC5B,qBAAqB,CAAC,EAAE,GAAG,CAAC;IAC5B,MAAM,CAAC,EAAE,UAAU,CAAC;IACpB,eAAe,CAAC,EAAE,gBAAgB,CAAC;IACnC,kBAAkB,EAAE,mBAAmB,CAAC;IACxC,WAAW,CAAC,EAAE,wBAAwB,CAAC;IACvC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACjC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,cAAc,CAAC,EAAE,aAAa,EAAE,CAAC;IACjC,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,YAAY,CAAC,EAAE,SAAS,CAAC;IACzB,WAAW,CAAC,EAAE,qBAAqB,CAAC;IACpC,oBAAoB,CAAC,EAAE,qBAAqB,CAAC;IAC7C,qBAAqB,CAAC,EAAE,WAAW,EAAE,CAAC;IACtC,cAAc,CAAC,EAAE,eAAe,CAAC;IACjC,OAAO,EAAE,OAAO,CAAC;IACjB,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B,gBAAgB,EAAE,gBAAgB,CAAC;IACnC,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,+BAA+B,CAAC,CAAC,cAAc,EAAE,uBAAuB,EAAE,UAAU,CAAC,EAAE,WAAW,GAAG,IAAI,CAAC;IAC1G,gBAAgB,CAAC,CAAC,UAAU,EAAE,WAAW,GAAG,IAAI,CAAC;IAEjD,6BAA6B,CAAC,IAAI,IAAI,CAAC;IAEvC,QAAQ,CAAC,CAAC,SAAS,EAAE,GAAG,EAAE,MAAM,EAAE,OAAO,GAAG,IAAI,CAAC;IACjD,OAAO,CAAC,IAAI,IAAI,CAAC;IACjB,2BAA2B,CAAC,EAAE,4BAA4B,CAAC;IAC3D,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC/B;AAED;;GAEG;AACH,MAAM,WAAW,qBAAqB;IAClC,YAAY,IAAI,kBAAkB,GAAG,IAAI,CAAC;IAC1C,aAAa,IAAI,kBAAkB,EAAE,GAAG,SAAS,CAAC;IAClD,8BAA8B,CAC1B,mBAAmB,EAAE,QAAQ,EAC7B,gBAAgB,EAAE,iBAAiB,GACpC,QAAQ,CAAC;CACf;AAyBD,eAAO,MAAM,iBAAiB,2HA+c7B,CAAC"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
// (C) 2019-2026 GoodData Corporation
|
|
3
3
|
import { forwardRef, useEffect, useImperativeHandle, useLayoutEffect, useRef, useState } from "react";
|
|
4
|
-
import { isEmpty, isEqual, omit } from "lodash-es";
|
|
5
4
|
import { createRoot } from "react-dom/client";
|
|
6
5
|
import { v4 as uuidv4 } from "uuid";
|
|
7
6
|
import { insightProperties, isInsight, visClassUrl, } from "@gooddata/sdk-model";
|
|
8
7
|
import { OverlayZIndexContext, useContainingOverlayZIndex } from "@gooddata/sdk-ui-kit";
|
|
8
|
+
import { _isEmpty, _isEqual, _omit } from "@gooddata/util";
|
|
9
9
|
import { ConfigPanelClassName, } from "../interfaces/Visualization.js";
|
|
10
10
|
import { cleanupKeyDriverAnalysisOnMetrics, hideKeyDriverOnMetrics } from "../utils/keyDriverAnalysis.js";
|
|
11
11
|
import { FullVisualizationCatalog } from "./VisualizationCatalog.js";
|
|
@@ -14,10 +14,10 @@ function getVisualizationId(insight) {
|
|
|
14
14
|
return isInsight(insight) ? insight.insight.identifier : "__new_visualization__";
|
|
15
15
|
}
|
|
16
16
|
function bucketReferencePointHasChanged(currentReferencePoint, nextReferencePoint) {
|
|
17
|
-
return !
|
|
17
|
+
return !_isEqual(_omit(currentReferencePoint, ["properties", "availableSorts"]), _omit(nextReferencePoint, ["properties", "availableSorts"]));
|
|
18
18
|
}
|
|
19
19
|
function propertiesControlsHasChanged(currentReferencePoint, nextReferencePoint) {
|
|
20
|
-
return !
|
|
20
|
+
return !_isEqual(currentReferencePoint?.properties?.controls, nextReferencePoint?.properties?.controls);
|
|
21
21
|
}
|
|
22
22
|
export const BaseVisualization = forwardRef(function BaseVisualization(props, ref) {
|
|
23
23
|
const { visualizationCatalog = FullVisualizationCatalog, newDerivedBucketItems = [], referencePoint = undefined, onExtendedReferencePointChanged = noop, onNewDerivedBucketItemsPlaced = noop, isMdObjectValid = true, configPanelClassName = ConfigPanelClassName, featureFlags = {}, } = props;
|
|
@@ -245,8 +245,8 @@ export const BaseVisualization = forwardRef(function BaseVisualization(props, re
|
|
|
245
245
|
// the very first run, there is nothing to diff against yet
|
|
246
246
|
return;
|
|
247
247
|
}
|
|
248
|
-
const newDerivedBucketItemsChanged = !
|
|
249
|
-
!
|
|
248
|
+
const newDerivedBucketItemsChanged = !_isEmpty(currentProps.newDerivedBucketItems) &&
|
|
249
|
+
!_isEqual(currentProps.newDerivedBucketItems, previousProps.newDerivedBucketItems);
|
|
250
250
|
if (newDerivedBucketItemsChanged) {
|
|
251
251
|
triggerPlaceNewDerivedBucketItems(currentProps);
|
|
252
252
|
return;
|
|
@@ -258,10 +258,10 @@ export const BaseVisualization = forwardRef(function BaseVisualization(props, re
|
|
|
258
258
|
triggerExtendedReferencePointChanged(currentProps, previousProps);
|
|
259
259
|
return;
|
|
260
260
|
}
|
|
261
|
-
const visualizationClassChanged = !
|
|
261
|
+
const visualizationClassChanged = !_isEqual(currentProps.visualizationClass, previousProps.visualizationClass);
|
|
262
262
|
const referencePointChanged = bucketReferencePointHasChanged(previousProps.referencePoint, currentProps.referencePoint);
|
|
263
263
|
const relevantPropertiesChanged = somePropertiesRelevantForReferencePointChanged(previousProps.referencePoint, currentProps.referencePoint);
|
|
264
|
-
const labelsChanged = !
|
|
264
|
+
const labelsChanged = !_isEqual(previousProps.insight?.insight.attributeFilterConfigs, currentProps.insight?.insight.attributeFilterConfigs);
|
|
265
265
|
const propertiesControlsChanged = propertiesControlsHasChanged(previousProps.referencePoint, currentProps.referencePoint);
|
|
266
266
|
if (visualizationClassChanged) {
|
|
267
267
|
const newVisElementId = uuidv4();
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { isEmpty } from "lodash-es";
|
|
3
2
|
import { FormattedMessage, useIntl } from "react-intl";
|
|
4
3
|
import { messages } from "@gooddata/sdk-ui";
|
|
5
4
|
import { Button } from "@gooddata/sdk-ui-kit";
|
|
5
|
+
import { _isEmpty } from "@gooddata/util";
|
|
6
6
|
import { useAttributeHierarchyDialog } from "./AttributeHierarchyDialogProvider.js";
|
|
7
7
|
const HOW_TO_WORK_DOCUMENTATION_LINK = "https://www.gooddata.com/docs/cloud/create-dashboards/drilling-in-dashboards/set-drill-down/";
|
|
8
8
|
export function AttributeHierarchyDialogFooter() {
|
|
9
9
|
const { formatMessage } = useIntl();
|
|
10
10
|
const { isEditing, isDirty, isLoading, attributes, onSaveAttributeHierarchy, onClose, setDisplayDeleteConfirmation, } = useAttributeHierarchyDialog();
|
|
11
|
-
const isSaveDisabled =
|
|
11
|
+
const isSaveDisabled = _isEmpty(attributes) || !isDirty;
|
|
12
12
|
const onDelete = () => {
|
|
13
13
|
setDisplayDeleteConfirmation(true);
|
|
14
14
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AttributeHierarchyDialogProvider.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/attributeHierarchies/attributeHierarchyDialog/AttributeHierarchyDialogProvider.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAA2D,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"AttributeHierarchyDialogProvider.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/attributeHierarchies/attributeHierarchyDialog/AttributeHierarchyDialogProvider.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAA2D,MAAM,OAAO,CAAC;AAIhG,OAAO,EAAE,KAAK,0BAA0B,EAAE,KAAK,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAGnF,OAAO,EACH,KAAK,kBAAkB,EACvB,KAAK,cAAc,EACnB,KAAK,qBAAqB,EAC1B,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EAC1B,MAAM,YAAY,CAAC;AAQpB,UAAU,sCAAsC;IAC5C,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,yBAAyB,CAAC,EAAE,0BAA0B,CAAC;IACvD,OAAO,CAAC,EAAE,kBAAkB,CAAC;IAC7B,qBAAqB,CAAC,EAAE,oBAAoB,CAAC;IAC7C,eAAe,CAAC,EAAE,kBAAkB,CAAC;IACrC,qBAAqB,CAAC,EAAE,MAAM,IAAI,CAAC;IACnC,wBAAwB,CAAC,EAAE,MAAM,IAAI,CAAC;IACtC,QAAQ,EAAE,SAAS,CAAC;CACvB;AAED,MAAM,WAAW,qCAAqC;IAClD,SAAS,EAAE,OAAO,CAAC;IACnB,OAAO,EAAE,OAAO,CAAC;IACjB,UAAU,EAAE,cAAc,EAAE,CAAC;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,OAAO,CAAC;IACnB,UAAU,EAAE,kBAAkB,CAAC;IAC/B,+BAA+B,CAAC,EAAE,OAAO,CAAC;IAC1C,4BAA4B,EAAE,CAAC,SAAS,EAAE,OAAO,KAAK,IAAI,CAAC;IAC3D,OAAO,CAAC,EAAE,kBAAkB,CAAC;IAC7B,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,mBAAmB,EAAE,CAAC,YAAY,EAAE,MAAM,KAAK,IAAI,CAAC;IACpD,mBAAmB,EAAE,CAAC,YAAY,EAAE,qBAAqB,EAAE,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IACrF,kBAAkB,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,OAAO,CAAC,qBAAqB,EAAE,CAAC,CAAC;IAC3E,iBAAiB,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IAC9C,wBAAwB,EAAE,kBAAkB,CAAC;IAC7C,0BAA0B,EAAE,CAAC,SAAS,EAAE,OAAO,KAAK,IAAI,CAAC;CAC5D;AAED,eAAO,MAAM,uCAAuC,gEAiBlD,CAAC;AAEH,eAAO,MAAM,2BAA2B,6CACsD,CAAC;AAE/F,wBAAgB,gCAAgC,CAAC,EAC7C,mBAAmB,EACnB,yBAAyB,EACzB,QAAQ,EACR,OAAO,EACP,qBAAqB,EACrB,eAAe,EACf,qBAAqB,EACrB,wBAAwB,GAC3B,EAAE,sCAAsC,2CAsGxC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
// (C) 2023-
|
|
2
|
+
// (C) 2023-2026 GoodData Corporation
|
|
3
3
|
import { createContext, useContext, useEffect, useMemo, useState } from "react";
|
|
4
4
|
import stableStringify from "json-stable-stringify";
|
|
5
|
-
import {
|
|
5
|
+
import { _isEmpty } from "@gooddata/util";
|
|
6
6
|
import { useBackendProvider } from "./useBackendProvider.js";
|
|
7
7
|
import { appendEmptyAttribute, convertToCatalogAttributeDataByRefs, findCatalogAttributeByRef, } from "./utils.js";
|
|
8
8
|
export const AttributeHierarchyDialogProviderContext = createContext({
|
|
@@ -66,7 +66,7 @@ export function AttributeHierarchyDialogProvider({ initialAttributeRef, editingA
|
|
|
66
66
|
setAttributes(newAttributes);
|
|
67
67
|
};
|
|
68
68
|
useEffect(() => {
|
|
69
|
-
if (editingAttributeHierarchy && !
|
|
69
|
+
if (editingAttributeHierarchy && !_isEmpty(catalogAttributesMap)) {
|
|
70
70
|
const refs = editingAttributeHierarchy.attributeHierarchy.attributes;
|
|
71
71
|
const initialAttributes = convertToCatalogAttributeDataByRefs(catalogAttributesMap, refs).map((attribute) => ({
|
|
72
72
|
...attribute,
|
|
@@ -76,7 +76,7 @@ export function AttributeHierarchyDialogProvider({ initialAttributeRef, editingA
|
|
|
76
76
|
setInitialAttributes(initialAttributes);
|
|
77
77
|
return;
|
|
78
78
|
}
|
|
79
|
-
if (initialAttributeRef && !
|
|
79
|
+
if (initialAttributeRef && !_isEmpty(catalogAttributesMap)) {
|
|
80
80
|
const initialAttribute = findCatalogAttributeByRef(catalogAttributesMap, initialAttributeRef);
|
|
81
81
|
if (initialAttribute) {
|
|
82
82
|
const initialAttributes = [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useBackendProvider.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/attributeHierarchies/attributeHierarchyDialog/useBackendProvider.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useBackendProvider.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/attributeHierarchies/attributeHierarchyDialog/useBackendProvider.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,0BAA0B,EAAe,MAAM,qBAAqB,CAAC;AAKnF,OAAO,EACH,KAAK,kBAAkB,EACvB,KAAK,cAAc,EACnB,KAAK,qBAAqB,EAC1B,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EAC1B,MAAM,YAAY,CAAC;AAGpB,UAAU,2BAA2B;IACjC,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,cAAc,EAAE,CAAC;IAC7B,yBAAyB,CAAC,EAAE,0BAA0B,CAAC;IACvD,UAAU,EAAE,kBAAkB,CAAC;IAC/B,qBAAqB,CAAC,EAAE,oBAAoB,CAAC;IAC7C,eAAe,CAAC,EAAE,kBAAkB,CAAC;IACrC,wBAAwB,CAAC,EAAE,MAAM,IAAI,CAAC;IACtC,OAAO,CAAC,EAAE,kBAAkB,CAAC;CAChC;AAED,eAAO,MAAM,kBAAkB,WAAY,2BAA2B;;;;mCAqB7C,MAAM;CA8H9B,CAAC"}
|
package/esm/internal/components/attributeHierarchies/attributeHierarchyDialog/useBackendProvider.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
// (C) 2023-2026 GoodData Corporation
|
|
2
2
|
import { useCallback, useEffect, useState } from "react";
|
|
3
|
-
import { isEmpty } from "lodash-es";
|
|
4
3
|
import { useIntl } from "react-intl";
|
|
5
4
|
import { messages, useBackendStrict, useWorkspaceStrict } from "@gooddata/sdk-ui";
|
|
6
5
|
import { useToastMessage } from "@gooddata/sdk-ui-kit";
|
|
6
|
+
import { _isEmpty } from "@gooddata/util";
|
|
7
7
|
import { convertToCatalogAttributeData, convertToCatalogAttributeDataByRefs } from "./utils.js";
|
|
8
8
|
export const useBackendProvider = (params) => {
|
|
9
9
|
const { title, attributes, editingAttributeHierarchy, setLoading, onSaveOrUpdateSuccess, onClose, onDeleteSuccess, onCreateHierarchyClicked, } = params;
|
|
@@ -108,7 +108,7 @@ export const useBackendProvider = (params) => {
|
|
|
108
108
|
};
|
|
109
109
|
// Prepare all catalog attributes
|
|
110
110
|
useEffect(() => {
|
|
111
|
-
if (
|
|
111
|
+
if (_isEmpty(catalogAttributesMap)) {
|
|
112
112
|
void backend
|
|
113
113
|
.workspace(workspace)
|
|
114
114
|
.catalog()
|
package/esm/internal/components/attributeHierarchies/attributeHierarchyDialog/utils.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/attributeHierarchies/attributeHierarchyDialog/utils.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/attributeHierarchies/attributeHierarchyDialog/utils.ts"],"names":[],"mappings":"AAEA,OAAO,EACH,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,EACxB,KAAK,MAAM,EAEd,MAAM,qBAAqB,CAAC;AAG7B,OAAO,EAA4B,KAAK,cAAc,EAAE,KAAK,qBAAqB,EAAE,MAAM,YAAY,CAAC;AAEvG,eAAO,MAAM,yBAAyB,yBACZ,GAAG,CAAC,MAAM,EAAE,qBAAqB,CAAC,OACnD,MAAM,KACZ,qBAAqB,GAAG,SAE1B,CAAC;AAEF,eAAO,MAAM,6BAA6B,eAC1B,iBAAiB,EAAE,SACxB,mBAAmB,EAAE,KAC7B,GAAG,CAAC,MAAM,EAAE,qBAAqB,CAqBnC,CAAC;AAEF,eAAO,MAAM,mCAAmC,yBACtB,GAAG,CAAC,MAAM,EAAE,qBAAqB,CAAC,QAClD,MAAM,EAAE,KACf,qBAAqB,EAEvB,CAAC;AAEF,eAAO,MAAM,oBAAoB,eAAgB,cAAc,EAAE,gBAAgB,MAAM,qBAStF,CAAC;AAEF,eAAO,MAAM,gBAAgB,eACb,qBAAqB,EAAE,eACtB,MAAM,gBACL,MAAM,4BAKvB,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// (C) 2023-2026 GoodData Corporation
|
|
2
|
-
import { compact } from "lodash-es";
|
|
3
2
|
import { serializeObjRef, } from "@gooddata/sdk-model";
|
|
3
|
+
import { _compact } from "@gooddata/util";
|
|
4
4
|
import { CatalogAttributeDataType } from "./types.js";
|
|
5
5
|
export const findCatalogAttributeByRef = (catalogAttributesMap, ref) => {
|
|
6
6
|
return catalogAttributesMap.get(getCatalogKey(ref));
|
|
@@ -26,7 +26,7 @@ export const convertToCatalogAttributeData = (attributes, dates) => {
|
|
|
26
26
|
}, new Map());
|
|
27
27
|
};
|
|
28
28
|
export const convertToCatalogAttributeDataByRefs = (catalogAttributesMap, refs) => {
|
|
29
|
-
return
|
|
29
|
+
return _compact(refs.map((ref) => findCatalogAttributeByRef(catalogAttributesMap, ref)));
|
|
30
30
|
};
|
|
31
31
|
export const appendEmptyAttribute = (attributes, baseRowIndex) => {
|
|
32
32
|
const uncompletedItemIndex = attributes.findIndex((attribute) => !attribute.completed);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CheckboxControl.d.ts","sourceRoot":"","sources":["../../../../src/internal/components/configurationControls/CheckboxControl.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAoB,KAAK,SAAS,EAAe,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"CheckboxControl.d.ts","sourceRoot":"","sources":["../../../../src/internal/components/configurationControls/CheckboxControl.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAoB,KAAK,SAAS,EAAe,MAAM,OAAO,CAAC;AAMtE,OAAO,EAAE,KAAK,wBAAwB,EAAE,MAAM,mCAAmC,CAAC;AAIlF,MAAM,WAAW,qBAAqB;IAClC,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,wBAAwB,CAAC;IACtC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,SAAS,CAAC;IACzB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,CAAC,IAAI,EAAE,GAAG,GAAG,IAAI,CAAC;IAC3B,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B;;;;;OAKG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;CAC1B;AAED,wBAAgB,eAAe,CAAC,EAC5B,OAAe,EACf,QAAgB,EAChB,mBAA2B,EAC3B,SAAS,EACT,YAAY,EACZ,SAAS,EACT,iBAAiB,EACjB,UAAU,EACV,QAAQ,EACR,eAAuB,EACvB,YAAY,GACf,EAAE,qBAAqB,2CAiCvB"}
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
// (C) 2019-2026 GoodData Corporation
|
|
3
3
|
import { useCallback } from "react";
|
|
4
|
-
import { cloneDeep, set } from "lodash-es";
|
|
5
4
|
import { useIntl } from "react-intl";
|
|
5
|
+
import { _cloneDeep, _set } from "@gooddata/util";
|
|
6
6
|
import { getTranslation } from "../../utils/translations.js";
|
|
7
7
|
import { DisabledBubbleMessage } from "../DisabledBubbleMessage.js";
|
|
8
8
|
export function CheckboxControl({ checked = false, disabled = false, showDisabledMessage = false, labelText, labelContent, valuePath, disabledMessageId, properties, pushData, isValueInverted = false, defaultValue, }) {
|
|
9
9
|
const intl = useIntl();
|
|
10
10
|
const onValueChanged = useCallback((event) => {
|
|
11
|
-
const clonedProperties =
|
|
11
|
+
const clonedProperties = _cloneDeep(properties);
|
|
12
12
|
const value = isValueInverted ? !event.target.checked : event.target.checked;
|
|
13
13
|
// When the value matches the default, set to undefined so the property gets removed
|
|
14
14
|
// during merge. This prevents the Save button from staying enabled when toggling
|
|
15
15
|
// back to the default state.
|
|
16
16
|
const valueToSet = value === defaultValue ? undefined : value;
|
|
17
|
-
|
|
17
|
+
_set(clonedProperties, `controls.${valuePath}`, valueToSet);
|
|
18
18
|
pushData?.({ properties: clonedProperties });
|
|
19
19
|
}, [properties, isValueInverted, pushData, valuePath, defaultValue]);
|
|
20
20
|
return (_jsx(DisabledBubbleMessage, { showDisabledMessage: showDisabledMessage, messageId: disabledMessageId, children: _jsxs("label", { className: "input-checkbox-label", children: [_jsx("input", { checked: checked, disabled: disabled, type: "checkbox", className: "input-checkbox", onChange: onValueChanged }), labelText ? (_jsx("span", { className: "input-label-text", children: getTranslation(labelText, intl) })) : null, labelContent ? _jsx("span", { className: "input-label-text", children: labelContent }) : null] }) }));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConfigSection.d.ts","sourceRoot":"","sources":["../../../../src/internal/components/configurationControls/ConfigSection.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAoB,KAAK,SAAS,EAA6C,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"ConfigSection.d.ts","sourceRoot":"","sources":["../../../../src/internal/components/configurationControls/ConfigSection.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAoB,KAAK,SAAS,EAA6C,MAAM,OAAO,CAAC;AAUpG,MAAM,WAAW,mBAAmB;IAChC,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,cAAc,CAAC,EAAE,GAAG,CAAC;IACrB,UAAU,CAAC,EAAE,GAAG,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,CAAC,IAAI,EAAE,GAAG,GAAG,IAAI,CAAC;IAC3B,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,eAAe,CAAC,EAAE,MAAM,CAAC;IAEzB,QAAQ,CAAC,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAAC;CACrC;AAED,wBAAgB,aAAa,CAAC,EAC1B,EAAE,EACF,SAAS,EACT,YAAoB,EACpB,cAAsB,EACtB,SAAgB,EAChB,cAAc,EACd,UAAe,EACf,KAAK,EACL,QAAQ,EACR,mBAA2B,EAC3B,SAAc,EACd,QAAmB,EACnB,QAAQ,EACR,eAAe,EACf,QAAQ,GACX,EAAE,mBAAmB,2CA2GrB"}
|
|
@@ -2,8 +2,8 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
// (C) 2019-2026 GoodData Corporation
|
|
3
3
|
import { useCallback, useEffect, useMemo, useState } from "react";
|
|
4
4
|
import cx from "classnames";
|
|
5
|
-
import { cloneDeep, set } from "lodash-es";
|
|
6
5
|
import { useIntl } from "react-intl";
|
|
6
|
+
import { _cloneDeep, _set } from "@gooddata/util";
|
|
7
7
|
import { getTranslation } from "../../utils/translations.js";
|
|
8
8
|
import { DisabledBubbleMessage } from "../DisabledBubbleMessage.js";
|
|
9
9
|
export function ConfigSection({ id, valuePath, canBeToggled = false, toggleDisabled = false, toggledOn = true, propertiesMeta, properties = {}, title, subtitle, showDisabledMessage = false, className = "", pushData = () => { }, children, toggleMessageId, onToggle, }) {
|
|
@@ -28,8 +28,8 @@ export function ConfigSection({ id, valuePath, canBeToggled = false, toggleDisab
|
|
|
28
28
|
return;
|
|
29
29
|
}
|
|
30
30
|
if (valuePath && properties && pushData) {
|
|
31
|
-
const clonedProperties =
|
|
32
|
-
|
|
31
|
+
const clonedProperties = _cloneDeep(properties);
|
|
32
|
+
_set(clonedProperties, `controls.${valuePath}`, event.target.checked);
|
|
33
33
|
pushData({ properties: clonedProperties });
|
|
34
34
|
}
|
|
35
35
|
}, [onToggle, valuePath, properties, pushData]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConfigSubsection.d.ts","sourceRoot":"","sources":["../../../../src/internal/components/configurationControls/ConfigSubsection.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAoB,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"ConfigSubsection.d.ts","sourceRoot":"","sources":["../../../../src/internal/components/configurationControls/ConfigSubsection.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAoB,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAMzD,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AAI7D,MAAM,WAAW,yBAAyB;IACtC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,UAAU,CAAC,EAAE,GAAG,CAAC;IACjB,QAAQ,CAAC,CAAC,IAAI,EAAE,GAAG,GAAG,IAAI,CAAC;IAC3B,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACxB;AAED,MAAM,WAAW,sBAAsB;IACnC,QAAQ,EAAE,OAAO,CAAC;CACrB;AAED,MAAM,MAAM,sBAAsB,GAAG,yBAAyB,CAAC;AAE/D,wBAAgB,gBAAgB,CAAC,EAC7B,KAAK,EACL,YAAoB,EACpB,cAAsB,EACtB,SAAgB,EAChB,QAAmB,EACnB,mBAA2B,EAC3B,SAAS,EACT,UAAU,EACV,QAAQ,EACR,QAAQ,GACX,EAAE,sBAAsB,2CAqDxB"}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { cloneDeep, set } from "lodash-es";
|
|
3
2
|
import { useIntl } from "react-intl";
|
|
3
|
+
import { _cloneDeep, _set } from "@gooddata/util";
|
|
4
4
|
import { getTranslation } from "../../utils/translations.js";
|
|
5
5
|
import { DisabledBubbleMessage } from "../DisabledBubbleMessage.js";
|
|
6
6
|
export function ConfigSubsection({ title, canBeToggled = false, toggleDisabled = false, toggledOn = true, pushData = () => { }, showDisabledMessage = false, valuePath, properties, axisType, children, }) {
|
|
7
7
|
const intl = useIntl();
|
|
8
8
|
const toggleValue = (event) => {
|
|
9
9
|
if (valuePath && properties && pushData) {
|
|
10
|
-
const clonedProperties =
|
|
11
|
-
|
|
10
|
+
const clonedProperties = _cloneDeep(properties);
|
|
11
|
+
_set(clonedProperties, `controls.${valuePath}`, event.target.checked);
|
|
12
12
|
pushData({ properties: clonedProperties });
|
|
13
13
|
}
|
|
14
14
|
};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { cloneDeep, set } from "lodash-es";
|
|
3
2
|
import { useIntl } from "react-intl";
|
|
4
3
|
import { UiTooltip, useIdPrefixed } from "@gooddata/sdk-ui-kit";
|
|
4
|
+
import { _cloneDeep, _set } from "@gooddata/util";
|
|
5
5
|
import { messages } from "../../../locales.js";
|
|
6
6
|
import { getTranslation } from "../../utils/translations.js";
|
|
7
7
|
export function ContinuousLineControl({ properties, valuePath = "continuousLine.enabled", checked = false, disabled = false, pushData, }) {
|
|
8
8
|
const intl = useIntl();
|
|
9
9
|
const tooltipId = useIdPrefixed("continuous-line-tooltip");
|
|
10
10
|
const onValueChanged = (event) => {
|
|
11
|
-
const clonedProperties =
|
|
12
|
-
|
|
11
|
+
const clonedProperties = _cloneDeep(properties);
|
|
12
|
+
_set(clonedProperties, `controls.${valuePath}`, event.target.checked);
|
|
13
13
|
pushData?.({ properties: clonedProperties });
|
|
14
14
|
};
|
|
15
15
|
const hasTooltip = !disabled;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { cloneDeep, set } from "lodash-es";
|
|
3
2
|
import { useIntl } from "react-intl";
|
|
4
3
|
import { UiTooltip, useIdPrefixed } from "@gooddata/sdk-ui-kit";
|
|
4
|
+
import { _cloneDeep, _set } from "@gooddata/util";
|
|
5
5
|
import { messages } from "../../../locales.js";
|
|
6
6
|
import { getTranslation } from "../../utils/translations.js";
|
|
7
7
|
export function DistinctPointShapesControl({ properties, valuePath = "distinctPointShapes.enabled", checked = false, disabled = false, pushData, }) {
|
|
8
8
|
const intl = useIntl();
|
|
9
9
|
const tooltipId = useIdPrefixed("distinct-point-shapes-tooltip");
|
|
10
10
|
const onValueChanged = (event) => {
|
|
11
|
-
const clonedProperties =
|
|
12
|
-
|
|
11
|
+
const clonedProperties = _cloneDeep(properties);
|
|
12
|
+
_set(clonedProperties, `controls.${valuePath}`, event.target.checked);
|
|
13
13
|
pushData?.({ properties: clonedProperties });
|
|
14
14
|
};
|
|
15
15
|
const hasTooltip = disabled;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DropdownControl.d.ts","sourceRoot":"","sources":["../../../../src/internal/components/configurationControls/DropdownControl.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,aAAa,EAAsC,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"DropdownControl.d.ts","sourceRoot":"","sources":["../../../../src/internal/components/configurationControls/DropdownControl.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,aAAa,EAAsC,MAAM,OAAO,CAAC;AAI/E,OAAO,EAIH,KAAK,WAAW,EAChB,KAAK,0BAA0B,EAElC,MAAM,sBAAsB,CAAC;AAG9B,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAClE,OAAO,EAAE,KAAK,wBAAwB,EAAE,MAAM,mCAAmC,CAAC;AAIlF,MAAM,WAAW,qBAAqB;IAClC,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,wBAAwB,CAAC;IACtC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,KAAK,CAAC,EAAE,aAAa,EAAE,CAAC;IACxB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,0BAA0B,CAAC,EAAE,WAAW,EAAE,CAAC;IAC3C,cAAc,CAAC,EAAE,aAAa,CAAC,0BAA0B,CAAC,CAAC;IAC3D,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAE3B,QAAQ,CAAC,CAAC,IAAI,EAAE,GAAG,GAAG,IAAI,CAAC;CAC9B;AAMD,eAAO,MAAM,eAAe,iOAczB,qBAAqB,6CAqHtB,CAAC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
// (C) 2019-2026 GoodData Corporation
|
|
3
3
|
import { memo, useCallback, useId, useState } from "react";
|
|
4
|
-
import { cloneDeep, set } from "lodash-es";
|
|
5
4
|
import { useIntl } from "react-intl";
|
|
6
5
|
import { Dropdown, DropdownButton, DropdownList, SingleSelectListItem, } from "@gooddata/sdk-ui-kit";
|
|
6
|
+
import { _cloneDeep, _set } from "@gooddata/util";
|
|
7
7
|
import { getTranslation } from "../../utils/translations.js";
|
|
8
8
|
import { DisabledBubbleMessage } from "../DisabledBubbleMessage.js";
|
|
9
9
|
const alignPoints = ["bl tl", "tl bl", "br tr", "tr br"];
|
|
@@ -28,8 +28,8 @@ export const DropdownControl = memo(function DropdownControl({ valuePath, proper
|
|
|
28
28
|
const onSelect = (selectedItem) => {
|
|
29
29
|
// we must not change the properties at any cost, so deep clone for now.
|
|
30
30
|
// ideally we should use st. like immer with copy on write to not clone everything all the time
|
|
31
|
-
const clonedProperties =
|
|
32
|
-
|
|
31
|
+
const clonedProperties = _cloneDeep(properties);
|
|
32
|
+
_set(clonedProperties, `controls.${valuePath}`, selectedItem.value);
|
|
33
33
|
pushData?.({ properties: clonedProperties });
|
|
34
34
|
};
|
|
35
35
|
const getDropdownButton = (selectedItem, disabled, isOpen, toggleDropdown) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GeoViewportControl.d.ts","sourceRoot":"","sources":["../../../../src/internal/components/configurationControls/GeoViewportControl.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,SAAS,EAAwB,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"GeoViewportControl.d.ts","sourceRoot":"","sources":["../../../../src/internal/components/configurationControls/GeoViewportControl.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,SAAS,EAAwB,MAAM,OAAO,CAAC;AAIhF,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAGH,KAAK,UAAU,EACf,KAAK,gBAAgB,EACxB,MAAM,sBAAsB,CAAC;AAO9B,OAAO,EAAE,KAAK,wBAAwB,EAAE,MAAM,mCAAmC,CAAC;AAMlF,MAAM,WAAW,eAAe;IAC5B,MAAM,CAAC,EAAE,UAAU,CAAC;IACpB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,gBAAgB,CAAC;CAC7B;AAED,MAAM,WAAW,mBAAmB;IAChC,QAAQ,EAAE,OAAO,CAAC;IAClB,UAAU,CAAC,EAAE,wBAAwB,CAAC;IACtC,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,SAAS,KAAK,IAAI,CAAC;IACrC,iBAAiB,CAAC,EAAE,MAAM,eAAe,CAAC;IAC1C,uBAAuB,CAAC,EAAE,SAAS,CAAC;IACpC,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB;AAqBD;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,mBAAmB,GAAG,YAAY,CA4I3E"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
// (C) 2025-2026 GoodData Corporation
|
|
3
3
|
import { useCallback, useMemo } from "react";
|
|
4
|
-
import { cloneDeep, set } from "lodash-es";
|
|
5
4
|
import { useIntl } from "react-intl";
|
|
6
5
|
import { PRESET_VIEWPORT_BOUNDS, isConcreteViewportPreset } from "@gooddata/sdk-ui-geo/internal";
|
|
7
6
|
import { Bubble, BubbleHoverTrigger } from "@gooddata/sdk-ui-kit";
|
|
7
|
+
import { _cloneDeep, _set } from "@gooddata/util";
|
|
8
8
|
import { messages } from "../../../locales.js";
|
|
9
9
|
import { pushpinViewportDropdownItems } from "../../constants/dropdowns.js";
|
|
10
10
|
import { getTranslatedDropdownItems } from "../../utils/translations.js";
|
|
@@ -41,7 +41,7 @@ export function GeoViewportControl(props) {
|
|
|
41
41
|
const effectiveArea = !isAdvancedViewportConfigEnabled && area === "custom" ? "auto" : area;
|
|
42
42
|
const shouldRenderNavigationControls = isAdvancedViewportConfigEnabled;
|
|
43
43
|
const handleViewportPushData = useCallback((data) => {
|
|
44
|
-
const nextProperties =
|
|
44
|
+
const nextProperties = _cloneDeep(data.properties ?? properties);
|
|
45
45
|
if (!nextProperties) {
|
|
46
46
|
pushData?.(data);
|
|
47
47
|
return;
|
|
@@ -56,9 +56,9 @@ export function GeoViewportControl(props) {
|
|
|
56
56
|
: undefined;
|
|
57
57
|
if (presetBounds) {
|
|
58
58
|
// Switching from a preset to "custom": use preset bounds, clear center/zoom
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
59
|
+
_set(nextProperties, "controls.bounds", presetBounds);
|
|
60
|
+
_set(nextProperties, "controls.center", undefined);
|
|
61
|
+
_set(nextProperties, "controls.zoom", undefined);
|
|
62
62
|
pushData?.({
|
|
63
63
|
...data,
|
|
64
64
|
properties: nextProperties,
|
|
@@ -69,21 +69,21 @@ export function GeoViewportControl(props) {
|
|
|
69
69
|
// Switching to "custom" with no preset: use current map bounds if available,
|
|
70
70
|
// otherwise fall back to center/zoom
|
|
71
71
|
if (currentMapView.bounds) {
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
72
|
+
_set(nextProperties, "controls.bounds", currentMapView.bounds);
|
|
73
|
+
_set(nextProperties, "controls.center", undefined);
|
|
74
|
+
_set(nextProperties, "controls.zoom", undefined);
|
|
75
75
|
}
|
|
76
76
|
else {
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
77
|
+
_set(nextProperties, "controls.center", currentMapView.center);
|
|
78
|
+
_set(nextProperties, "controls.zoom", currentMapView.zoom);
|
|
79
|
+
_set(nextProperties, "controls.bounds", undefined);
|
|
80
80
|
}
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
83
|
else {
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
84
|
+
_set(nextProperties, "controls.center", undefined);
|
|
85
|
+
_set(nextProperties, "controls.zoom", undefined);
|
|
86
|
+
_set(nextProperties, "controls.bounds", undefined);
|
|
87
87
|
}
|
|
88
88
|
pushData?.({
|
|
89
89
|
...data,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InputControl.d.ts","sourceRoot":"","sources":["../../../../src/internal/components/configurationControls/InputControl.tsx"],"names":[],"mappings":"AAEA,OAAO,EAEH,KAAK,cAAc,EAKtB,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"InputControl.d.ts","sourceRoot":"","sources":["../../../../src/internal/components/configurationControls/InputControl.tsx"],"names":[],"mappings":"AAEA,OAAO,EAEH,KAAK,cAAc,EAKtB,MAAM,OAAO,CAAC;AAGf,OAAO,EAAE,gBAAgB,EAAW,MAAM,YAAY,CAAC;AAEvD,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAGxD,OAAO,EAAE,KAAK,wBAAwB,EAAE,MAAM,mCAAmC,CAAC;AAIlF,MAAM,WAAW,kBAAkB;IAC/B,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,wBAAwB,CAAC;IACtC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,0BAA0B,CAAC,EAAE,WAAW,EAAE,CAAC;IAC3C,QAAQ,CAAC,CAAC,IAAI,EAAE,GAAG,GAAG,IAAI,CAAC;IAC3B,2BAA2B,CAAC,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IAClD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,iBAAiB,CAAC,EAAE,cAAc,CAAC,OAAO,gBAAgB,CAAC,CAAC,QAAQ,CAAC,CAAC;IAEtE;;;;;;;OAOG;IACH,UAAU,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,OAAO,CAAC;IACxC;;;;;;OAMG;IACH,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;CAC3C;AAED,MAAM,WAAW,kBAAkB;IAC/B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,aAAa,CAAC,EAAE,MAAM,CAAC;CAC1B;AAID,wBAAgB,YAAY,CAAC,EACzB,SAAS,EACT,UAAU,EACV,SAAS,EACT,KAAK,EAAE,SAAc,EACrB,WAAW,EACX,IAAa,EACb,QAAgB,EAChB,mBAA2B,EAC3B,iBAAiB,EACjB,UAAkB,EAClB,0BAA0B,EAC1B,QAAmB,EACnB,SAAS,EACT,WAAW,EACX,iBAAiB,EACjB,UAAU,EACV,WAAW,GACd,EAAE,kBAAkB,2CA0HpB"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
// (C) 2019-
|
|
2
|
+
// (C) 2019-2026 GoodData Corporation
|
|
3
3
|
import { useEffect, useRef, useState, } from "react";
|
|
4
4
|
import cx from "classnames";
|
|
5
|
-
import { cloneDeep, set } from "lodash-es";
|
|
6
5
|
import { FormattedMessage, useIntl } from "react-intl";
|
|
6
|
+
import { _cloneDeep, _set } from "@gooddata/util";
|
|
7
7
|
import { getTranslation } from "../../utils/translations.js";
|
|
8
8
|
import { DisabledBubbleMessage } from "../DisabledBubbleMessage.js";
|
|
9
9
|
const MAX_NUMBER_LENGTH = 15;
|
|
@@ -55,8 +55,8 @@ export function InputControl({ valuePath, properties, labelText, value: propValu
|
|
|
55
55
|
};
|
|
56
56
|
const emitData = () => {
|
|
57
57
|
const modifiedData = modifyDataForSending(value);
|
|
58
|
-
const clonedProperties =
|
|
59
|
-
|
|
58
|
+
const clonedProperties = _cloneDeep(properties);
|
|
59
|
+
_set(clonedProperties, `controls.${valuePath}`, modifiedData);
|
|
60
60
|
setValue(modifiedData);
|
|
61
61
|
pushData?.({ properties: clonedProperties });
|
|
62
62
|
justEmittedRef.current = true;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LineShapeControl.d.ts","sourceRoot":"","sources":["../../../../src/internal/components/configurationControls/LineShapeControl.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"LineShapeControl.d.ts","sourceRoot":"","sources":["../../../../src/internal/components/configurationControls/LineShapeControl.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAKzD,OAAO,EAAE,KAAK,wBAAwB,EAAE,MAAM,mCAAmC,CAAC;AAElF,UAAU,oBAAoB;IAC1B,SAAS,CAAC,EAAE,SAAS,CAAC;CACzB;AAED,MAAM,WAAW,sBAAsB;IACnC,QAAQ,EAAE,OAAO,CAAC;IAClB,UAAU,CAAC,EAAE,wBAAwB,CAAC,oBAAoB,CAAC,CAAC;IAC5D,QAAQ,EAAE,CAAC,IAAI,EAAE;QAAE,UAAU,EAAE,WAAW,CAAC,sBAAsB,CAAC,YAAY,CAAC,CAAC,CAAA;KAAE,KAAK,IAAI,CAAC;CAC/F;AAED,wBAAgB,gBAAgB,CAAC,EAAE,QAAQ,EAAE,UAAU,EAAE,QAAQ,EAAE,EAAE,sBAAsB,2CAoE1F"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
// (C) 2026 GoodData Corporation
|
|
3
3
|
import { useId } from "react";
|
|
4
|
-
import { cloneDeep, merge } from "lodash-es";
|
|
5
4
|
import { FormattedMessage, useIntl } from "react-intl";
|
|
6
5
|
import { UiButtonSegmentedControl, UiIconButton, UiTooltip } from "@gooddata/sdk-ui-kit";
|
|
6
|
+
import { _cloneDeep, _merge } from "@gooddata/util";
|
|
7
7
|
import { messages } from "../../../locales.js";
|
|
8
8
|
export function LineShapeControl({ disabled, properties, pushData }) {
|
|
9
9
|
const labelId = useId();
|
|
@@ -24,7 +24,7 @@ export function LineShapeControl({ disabled, properties, pushData }) {
|
|
|
24
24
|
return;
|
|
25
25
|
}
|
|
26
26
|
pushData({
|
|
27
|
-
properties:
|
|
27
|
+
properties: _merge(_cloneDeep(properties), {
|
|
28
28
|
controls: { lineShape: value },
|
|
29
29
|
}),
|
|
30
30
|
});
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
// (C) 2025-2026 GoodData Corporation
|
|
3
3
|
import { useCallback, useMemo } from "react";
|
|
4
|
-
import { cloneDeep, set } from "lodash-es";
|
|
5
4
|
import { useIntl } from "react-intl";
|
|
5
|
+
import { _cloneDeep, _set } from "@gooddata/util";
|
|
6
6
|
import { messages } from "../../../locales.js";
|
|
7
7
|
import { ConfigSection } from "./ConfigSection.js";
|
|
8
8
|
import { DropdownControl } from "./DropdownControl.js";
|
|
@@ -23,16 +23,16 @@ export function PagingSection({ properties, propertiesMeta, pushData, isDisabled
|
|
|
23
23
|
const newPaginationEnabled = data?.properties?.controls?.["pagination"]?.enabled;
|
|
24
24
|
if (newPaginationEnabled === true) {
|
|
25
25
|
// When enabling pagination, ensure pageSize is set
|
|
26
|
-
const clonedProperties =
|
|
26
|
+
const clonedProperties = _cloneDeep(data.properties);
|
|
27
27
|
if (!clonedProperties?.controls?.["pageSize"]) {
|
|
28
|
-
|
|
28
|
+
_set(clonedProperties, "controls.pageSize", DEFAULT_PAGE_SIZE);
|
|
29
29
|
}
|
|
30
30
|
pushData?.({ ...data, properties: clonedProperties });
|
|
31
31
|
}
|
|
32
32
|
else if (newPaginationEnabled === false) {
|
|
33
33
|
// When disabling pagination, also reset pageSize
|
|
34
|
-
const clonedProperties =
|
|
35
|
-
|
|
34
|
+
const clonedProperties = _cloneDeep(data.properties);
|
|
35
|
+
_set(clonedProperties, "controls.pageSize", undefined);
|
|
36
36
|
pushData?.({ ...data, properties: clonedProperties });
|
|
37
37
|
}
|
|
38
38
|
else {
|
package/esm/internal/components/configurationControls/PivotTableTextWrappingControl.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PivotTableTextWrappingControl.d.ts","sourceRoot":"","sources":["../../../../src/internal/components/configurationControls/PivotTableTextWrappingControl.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"PivotTableTextWrappingControl.d.ts","sourceRoot":"","sources":["../../../../src/internal/components/configurationControls/PivotTableTextWrappingControl.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAKlD,OAAO,EAAE,KAAK,wBAAwB,EAAE,MAAM,mCAAmC,CAAC;AAWlF;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACtC,UAAU,EAAE,wBAAwB,CAAC;IACrC,QAAQ,EAAE,CAAC,IAAI,EAAE,SAAS,KAAK,IAAI,CAAC;IACpC,QAAQ,CAAC,EAAE,OAAO,CAAC;CACtB;AAkGD;;;;GAIG;AACH,wBAAgB,+BAA+B,CAAC,EAC5C,UAAU,EACV,QAAQ,EACR,QAAgB,GACnB,EAAE,yBAAyB,2CAW3B;AAED;;;;GAIG;AACH,wBAAgB,uBAAuB,CAAC,EACpC,UAAU,EACV,QAAQ,EACR,QAAgB,GACnB,EAAE,yBAAyB,2CAW3B"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
// (C) 2025 GoodData Corporation
|
|
2
|
+
// (C) 2025-2026 GoodData Corporation
|
|
3
3
|
import { useCallback, useMemo } from "react";
|
|
4
|
-
import { cloneDeep } from "lodash-es";
|
|
5
4
|
import { useIntl } from "react-intl";
|
|
6
5
|
import { UiCheckbox } from "@gooddata/sdk-ui-kit";
|
|
6
|
+
import { _cloneDeep } from "@gooddata/util";
|
|
7
7
|
import { messages } from "../../../locales.js";
|
|
8
8
|
/**
|
|
9
9
|
* Single text wrapping checkbox control.
|
|
@@ -28,7 +28,7 @@ function TextWrappingCheckbox({ properties, pushData, disabled = false, wrapType
|
|
|
28
28
|
const indeterminate = hasOverrides;
|
|
29
29
|
// Update global wrapping setting and clear corresponding overrides
|
|
30
30
|
const updateWrapping = useCallback((event) => {
|
|
31
|
-
const clonedProperties =
|
|
31
|
+
const clonedProperties = _cloneDeep(properties) || {};
|
|
32
32
|
clonedProperties.controls = clonedProperties.controls || {};
|
|
33
33
|
const currentTextWrapping = clonedProperties.controls["textWrapping"] || {};
|
|
34
34
|
const currentOverrides = currentTextWrapping.columnOverrides ?? [];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PushpinShapeControl.d.ts","sourceRoot":"","sources":["../../../../src/internal/components/configurationControls/PushpinShapeControl.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,YAAY,EAAkC,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"PushpinShapeControl.d.ts","sourceRoot":"","sources":["../../../../src/internal/components/configurationControls/PushpinShapeControl.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,YAAY,EAAkC,MAAM,OAAO,CAAC;AAQ1E,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAClE,OAAO,EAAE,KAAK,wBAAwB,EAAE,MAAM,mCAAmC,CAAC;AAMlF,MAAM,WAAW,yBAAyB;IACtC,QAAQ,EAAE,OAAO,CAAC;IAClB,UAAU,EAAE,wBAAwB,CAAC;IACrC,QAAQ,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IAClC,WAAW,CAAC,EAAE,aAAa,EAAE,CAAC;IAC9B,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,qBAAqB,CAAC,EAAE,OAAO,CAAC;CACnC;AAED,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,yBAAyB,GAAG,YAAY,GAAG,IAAI,CAiHzF"}
|