@gooddata/sdk-ui-ext 11.68.0-alpha.0 → 11.68.0-alpha.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/NOTICE +8338 -63070
- package/esm/insightPicker/InsightPickerCore.d.ts +1 -1
- package/esm/insightPicker/InsightPickerCore.d.ts.map +1 -1
- package/esm/insightPicker/InsightPickerCore.js +8 -6
- package/esm/insightPicker/InsightPickerMenu.d.ts +1 -1
- package/esm/insightPicker/InsightPickerMenu.d.ts.map +1 -1
- package/esm/insightPicker/InsightPickerMenu.js +5 -1
- package/esm/insightPicker/types.d.ts +5 -1
- package/esm/insightPicker/types.d.ts.map +1 -1
- package/esm/insightPicker/useInsightPickerHybridSearch.d.ts.map +1 -1
- package/esm/insightPicker/useInsightPickerHybridSearch.js +2 -0
- package/esm/insightView/InsightRenderer.d.ts.map +1 -1
- package/esm/insightView/InsightRenderer.js +4 -4
- package/esm/internal/components/BaseVisualization.d.ts.map +1 -1
- package/esm/internal/components/BaseVisualization.js +7 -7
- package/esm/internal/components/attributeHierarchies/attributeHierarchyDialog/AttributeHierarchyDialogFooter.js +2 -2
- package/esm/internal/components/attributeHierarchies/attributeHierarchyDialog/AttributeHierarchyDialogProvider.d.ts.map +1 -1
- package/esm/internal/components/attributeHierarchies/attributeHierarchyDialog/AttributeHierarchyDialogProvider.js +4 -4
- package/esm/internal/components/attributeHierarchies/attributeHierarchyDialog/useBackendProvider.d.ts.map +1 -1
- package/esm/internal/components/attributeHierarchies/attributeHierarchyDialog/useBackendProvider.js +2 -2
- package/esm/internal/components/attributeHierarchies/attributeHierarchyDialog/utils.d.ts.map +1 -1
- package/esm/internal/components/attributeHierarchies/attributeHierarchyDialog/utils.js +2 -2
- package/esm/internal/components/configurationControls/CheckboxControl.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/CheckboxControl.js +3 -3
- package/esm/internal/components/configurationControls/ConfigSection.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/ConfigSection.js +3 -3
- package/esm/internal/components/configurationControls/ConfigSubsection.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/ConfigSubsection.js +3 -3
- package/esm/internal/components/configurationControls/ContinuousLineControl.js +3 -3
- package/esm/internal/components/configurationControls/DistintcPointShapesControl.js +3 -3
- package/esm/internal/components/configurationControls/DropdownControl.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/DropdownControl.js +3 -3
- package/esm/internal/components/configurationControls/GeoViewportControl.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/GeoViewportControl.js +14 -14
- package/esm/internal/components/configurationControls/InputControl.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/InputControl.js +4 -4
- package/esm/internal/components/configurationControls/LineShapeControl.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/LineShapeControl.js +3 -2
- package/esm/internal/components/configurationControls/PagingSection.js +5 -5
- package/esm/internal/components/configurationControls/PivotTableTextWrappingControl.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/PivotTableTextWrappingControl.js +3 -3
- package/esm/internal/components/configurationControls/PushpinShapeControl.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/PushpinShapeControl.js +5 -5
- package/esm/internal/components/configurationControls/advanced/AdvancedSection.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/advanced/AdvancedSection.js +3 -3
- package/esm/internal/components/configurationControls/colors/ColorsSection.js +3 -3
- package/esm/internal/components/configurationControls/comparison/indicators/colorsControl/ColorCheckbox.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/comparison/indicators/colorsControl/ColorCheckbox.js +4 -4
- package/esm/internal/components/configurationControls/comparison/indicators/colorsControl/ColorItem.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/comparison/indicators/colorsControl/ColorItem.js +3 -3
- package/esm/internal/components/configurationControls/comparison/indicators/colorsControl/ColorResetButton.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/comparison/indicators/colorsControl/ColorResetButton.js +6 -6
- package/esm/internal/components/configurationControls/comparison/values/numberFormat/NumberFormatControl.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/comparison/values/numberFormat/NumberFormatControl.js +3 -3
- package/esm/internal/components/configurationControls/conditionalFormatting/ConditionalFormattingDialog.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/conditionalFormatting/ConditionalFormattingDialog.js +2 -2
- package/esm/internal/components/configurationControls/conditionalFormatting/ConditionalFormattingSection.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/conditionalFormatting/ConditionalFormattingSection.js +3 -3
- package/esm/internal/components/configurationControls/customTooltip/CustomTooltipSection.js +3 -3
- package/esm/internal/components/configurationControls/interactions/InteractionsSection.d.ts +1 -2
- package/esm/internal/components/configurationControls/interactions/InteractionsSection.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/interactions/InteractionsSection.js +2 -2
- package/esm/internal/components/configurationControls/total/TotalSection.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/total/TotalSection.js +4 -4
- package/esm/internal/components/configurationPanels/BaseChartConfigurationPanel.js +2 -2
- package/esm/internal/components/configurationPanels/ConfigurationPanelContent.d.ts.map +1 -1
- package/esm/internal/components/configurationPanels/ConfigurationPanelContent.js +1 -2
- package/esm/internal/components/configurationPanels/LineChartBasedConfigurationPanel.js +1 -1
- package/esm/internal/components/configurationPanels/UnsupportedConfigurationPanel.js +2 -2
- package/esm/internal/components/dialogs/userManagementDialogs/Workspace/WorkspaceItem/granularPermissionUtils.d.ts.map +1 -1
- package/esm/internal/components/dialogs/userManagementDialogs/Workspace/WorkspaceItem/granularPermissionUtils.js +3 -3
- package/esm/internal/components/dialogs/userManagementDialogs/types.d.ts.map +1 -1
- package/esm/internal/components/dialogs/userManagementDialogs/types.js +6 -6
- package/esm/internal/components/insightList/useInsightPagedList.d.ts.map +1 -1
- package/esm/internal/components/insightList/useInsightPagedList.js +3 -3
- package/esm/internal/components/pluggableVisualizations/AbstractPluggableVisualization.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/AbstractPluggableVisualization.js +4 -4
- package/esm/internal/components/pluggableVisualizations/PluggableColumnBarCharts.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/PluggableColumnBarCharts.js +3 -4
- package/esm/internal/components/pluggableVisualizations/areaChart/PluggableAreaChart.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/areaChart/PluggableAreaChart.js +6 -6
- package/esm/internal/components/pluggableVisualizations/barChart/PluggableBarChart.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/barChart/PluggableBarChart.js +7 -7
- package/esm/internal/components/pluggableVisualizations/baseChart/PluggableBaseChart.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/baseChart/PluggableBaseChart.js +9 -8
- package/esm/internal/components/pluggableVisualizations/bubbleChart/PluggableBubbleChart.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/bubbleChart/PluggableBubbleChart.js +4 -5
- package/esm/internal/components/pluggableVisualizations/bulletChart/PluggableBulletChart.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/bulletChart/PluggableBulletChart.js +3 -3
- package/esm/internal/components/pluggableVisualizations/columnChart/PluggableColumnChart.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/columnChart/PluggableColumnChart.js +7 -7
- package/esm/internal/components/pluggableVisualizations/comboChart/PluggableComboChart.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/comboChart/PluggableComboChart.js +6 -6
- package/esm/internal/components/pluggableVisualizations/comboChart/PluggableComboChartDeprecated.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/comboChart/PluggableComboChartDeprecated.js +5 -4
- package/esm/internal/components/pluggableVisualizations/geoAreaChart/PluggableGeoAreaChart.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/geoAreaChart/PluggableGeoAreaChart.js +4 -5
- package/esm/internal/components/pluggableVisualizations/geoChart/PluggableGeoPushpinChart.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/geoChart/PluggableGeoPushpinChart.js +8 -9
- package/esm/internal/components/pluggableVisualizations/geoChartNext/PluggableGeoPushpinChartNext.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/geoChartNext/PluggableGeoPushpinChartNext.js +15 -16
- package/esm/internal/components/pluggableVisualizations/geoCommon/geoPropertySanitization.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/geoCommon/geoPropertySanitization.js +8 -8
- package/esm/internal/components/pluggableVisualizations/headline/PluggableHeadline.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/headline/PluggableHeadline.js +2 -3
- package/esm/internal/components/pluggableVisualizations/headline/headlineBucketHelper.js +3 -3
- package/esm/internal/components/pluggableVisualizations/heatMap/PluggableHeatmap.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/heatMap/PluggableHeatmap.js +8 -7
- package/esm/internal/components/pluggableVisualizations/lineChart/PluggableLineChart.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/lineChart/PluggableLineChart.js +8 -8
- package/esm/internal/components/pluggableVisualizations/mekko/PluggableMekko.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/mekko/PluggableMekko.js +11 -11
- package/esm/internal/components/pluggableVisualizations/pieChart/PluggablePieChart.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/pieChart/PluggablePieChart.js +8 -8
- package/esm/internal/components/pluggableVisualizations/pivotTable/PluggablePivotTable.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/pivotTable/PluggablePivotTable.js +5 -5
- package/esm/internal/components/pluggableVisualizations/pivotTable/pivotTableAdditionalFactories.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/pivotTable/pivotTableAdditionalFactories.js +2 -2
- package/esm/internal/components/pluggableVisualizations/pivotTable/pivotTableConfigFromInsight.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/pivotTable/pivotTableConfigFromInsight.js +6 -6
- package/esm/internal/components/pluggableVisualizations/pivotTableNext/PluggablePivotTableNext.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/pivotTableNext/PluggablePivotTableNext.js +4 -5
- package/esm/internal/components/pluggableVisualizations/pivotTableNext/pivotTableNextAdditionalFactories.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/pivotTableNext/pivotTableNextAdditionalFactories.js +2 -2
- package/esm/internal/components/pluggableVisualizations/pivotTableNext/sortHelpers.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/pivotTableNext/sortHelpers.js +2 -2
- package/esm/internal/components/pluggableVisualizations/radarChart/PluggableRadarChart.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/radarChart/PluggableRadarChart.js +4 -4
- package/esm/internal/components/pluggableVisualizations/repeater/PluggableRepeater.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/repeater/PluggableRepeater.js +6 -7
- package/esm/internal/components/pluggableVisualizations/sankeyChart/PluggableSankeyChart.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/sankeyChart/PluggableSankeyChart.js +3 -4
- package/esm/internal/components/pluggableVisualizations/scatterPlot/PluggableScatterPlot.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/scatterPlot/PluggableScatterPlot.js +5 -6
- package/esm/internal/components/pluggableVisualizations/treeMap/PluggableTreemap.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/treeMap/PluggableTreemap.js +6 -5
- package/esm/internal/components/pluggableVisualizations/waterfallChart/PluggableWaterfallChart.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/waterfallChart/PluggableWaterfallChart.js +11 -11
- package/esm/internal/components/pluggableVisualizations/xirr/PluggableXirr.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/xirr/PluggableXirr.js +2 -3
- package/esm/internal/interfaces/Visualization.d.ts.map +1 -1
- package/esm/internal/interfaces/Visualization.js +6 -6
- package/esm/internal/translations/en-US.localization-bundle.d.ts +28 -0
- package/esm/internal/translations/en-US.localization-bundle.d.ts.map +1 -1
- package/esm/internal/translations/en-US.localization-bundle.js +29 -1
- package/esm/internal/translations/fr-CA.localization-bundle.js +1 -1
- package/esm/internal/translations/it-IT.localization-bundle.js +2 -2
- package/esm/internal/translations/ru-RU.localization-bundle.js +1 -1
- package/esm/internal/translations/tr-TR.localization-bundle.js +1 -1
- package/esm/internal/translations/zh-Hant.localization-bundle.js +4 -4
- package/esm/internal/utils/bucketConfig.d.ts.map +1 -1
- package/esm/internal/utils/bucketConfig.js +5 -5
- package/esm/internal/utils/bucketHelper.d.ts.map +1 -1
- package/esm/internal/utils/bucketHelper.js +15 -14
- package/esm/internal/utils/bucketRules.d.ts.map +1 -1
- package/esm/internal/utils/bucketRules.js +3 -2
- package/esm/internal/utils/colors.d.ts.map +1 -1
- package/esm/internal/utils/colors.js +11 -11
- package/esm/internal/utils/controlsHelper.d.ts.map +1 -1
- package/esm/internal/utils/controlsHelper.js +7 -7
- package/esm/internal/utils/dimensions.d.ts.map +1 -1
- package/esm/internal/utils/dimensions.js +4 -4
- package/esm/internal/utils/drillablePredicates.d.ts.map +1 -1
- package/esm/internal/utils/drillablePredicates.js +4 -4
- package/esm/internal/utils/embeddingCodeGenerator/getReactEmbeddingCodeGenerator.d.ts.map +1 -1
- package/esm/internal/utils/embeddingCodeGenerator/getReactEmbeddingCodeGenerator.js +11 -10
- package/esm/internal/utils/propertiesHelper.d.ts.map +1 -1
- package/esm/internal/utils/propertiesHelper.js +16 -15
- package/esm/internal/utils/removeUseless.js +3 -3
- package/esm/internal/utils/sort.d.ts.map +1 -1
- package/esm/internal/utils/sort.js +9 -8
- package/esm/internal/utils/translations.d.ts.map +1 -1
- package/esm/internal/utils/translations.js +2 -3
- package/esm/internal/utils/uiConfigHelpers/areaChartUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/areaChartUiConfigHelper.js +10 -10
- package/esm/internal/utils/uiConfigHelpers/baseChartUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/baseChartUiConfigHelper.js +19 -19
- package/esm/internal/utils/uiConfigHelpers/bubbleChartUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/bubbleChartUiConfigHelper.js +8 -8
- package/esm/internal/utils/uiConfigHelpers/bulletChartUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/bulletChartUiConfigHelper.js +2 -2
- package/esm/internal/utils/uiConfigHelpers/columnBarChartUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/columnBarChartUiConfigHelper.js +6 -6
- package/esm/internal/utils/uiConfigHelpers/comboChartUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/comboChartUiConfigHelper.js +8 -8
- package/esm/internal/utils/uiConfigHelpers/comboChartUiConfigHelperDeprecated.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/comboChartUiConfigHelperDeprecated.js +10 -10
- package/esm/internal/utils/uiConfigHelpers/dependencyWheelChartUiConfigHelper.js +6 -6
- package/esm/internal/utils/uiConfigHelpers/donutChartUiConfigHelper.js +5 -5
- package/esm/internal/utils/uiConfigHelpers/funnelChartUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/funnelChartUiConfigHelper.js +6 -6
- package/esm/internal/utils/uiConfigHelpers/geoAreaChartUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/geoAreaChartUiConfigHelper.js +3 -3
- package/esm/internal/utils/uiConfigHelpers/geoPushpinChartUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/geoPushpinChartUiConfigHelper.js +15 -15
- package/esm/internal/utils/uiConfigHelpers/headlineUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/headlineUiConfigHelper.js +10 -10
- package/esm/internal/utils/uiConfigHelpers/heatmapUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/heatmapUiConfigHelper.js +7 -7
- package/esm/internal/utils/uiConfigHelpers/lineChartUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/lineChartUiConfigHelper.js +13 -13
- package/esm/internal/utils/uiConfigHelpers/mekkoUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/mekkoUiConfigHelper.js +7 -7
- package/esm/internal/utils/uiConfigHelpers/pieChartUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/pieChartUiConfigHelper.js +12 -12
- package/esm/internal/utils/uiConfigHelpers/pivotTableNextUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/pivotTableNextUiConfigHelper.js +14 -14
- package/esm/internal/utils/uiConfigHelpers/pivotTableUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/pivotTableUiConfigHelper.js +14 -14
- package/esm/internal/utils/uiConfigHelpers/pyramidChartUiConfigHelper.js +5 -5
- package/esm/internal/utils/uiConfigHelpers/radarChartUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/radarChartUiConfigHelper.js +13 -13
- package/esm/internal/utils/uiConfigHelpers/repeaterUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/repeaterUiConfigHelper.js +14 -14
- package/esm/internal/utils/uiConfigHelpers/sankeyChartUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/sankeyChartUiConfigHelper.js +10 -10
- package/esm/internal/utils/uiConfigHelpers/scatterPlotUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/scatterPlotUiConfigHelper.js +8 -8
- package/esm/internal/utils/uiConfigHelpers/treemapUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/treemapUiConfigHelper.js +12 -12
- package/esm/internal/utils/uiConfigHelpers/waterfallChartUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/waterfallChartUiConfigHelper.js +11 -11
- package/esm/internal/utils/uiConfigHelpers/xirrUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/xirrUiConfigHelper.js +5 -5
- package/esm/notificationsPanel/Notification/Notification.d.ts.map +1 -1
- package/esm/notificationsPanel/Notification/Notification.js +4 -4
- package/esm/sdk-ui-ext.d.ts +6 -2
- package/esm/share/ObjectShareDialog.d.ts +1 -1
- package/esm/share/ObjectShareDialog.js +3 -3
- package/esm/share/messages.d.ts +28 -0
- package/esm/share/messages.d.ts.map +1 -1
- package/esm/share/messages.js +14 -0
- package/esm/share/removeAccessConfirm.d.ts +21 -0
- package/esm/share/removeAccessConfirm.d.ts.map +1 -0
- package/esm/share/removeAccessConfirm.js +27 -0
- package/esm/share/useObjectShareDialog.d.ts +14 -11
- package/esm/share/useObjectShareDialog.d.ts.map +1 -1
- package/esm/share/useObjectShareDialog.js +54 -24
- package/package.json +21 -21
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConfigurationPanelContent.d.ts","sourceRoot":"","sources":["../../../../src/internal/components/configurationPanels/ConfigurationPanelContent.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAEtD,OAAO,EACH,KAAK,kBAAkB,EACvB,KAAK,SAAS,EACd,KAAK,qBAAqB,EAG7B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,KAAK,SAAS,EAAiB,MAAM,kBAAkB,CAAC;AAEjE,OAAO,EAAE,KAAK,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACtE,OAAO,EACH,KAAK,4BAA4B,EACjC,KAAK,eAAe,EACpB,KAAK,WAAW,EAChB,KAAK,wBAAwB,EAChC,MAAM,mCAAmC,CAAC;AAqB3C,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAEpD,MAAM,WAAW,+BAA+B,C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
|
|
1
|
+
{"version":3,"file":"ConfigurationPanelContent.d.ts","sourceRoot":"","sources":["../../../../src/internal/components/configurationPanels/ConfigurationPanelContent.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAEtD,OAAO,EACH,KAAK,kBAAkB,EACvB,KAAK,SAAS,EACd,KAAK,qBAAqB,EAG7B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,KAAK,SAAS,EAAiB,MAAM,kBAAkB,CAAC;AAEjE,OAAO,EAAE,KAAK,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACtE,OAAO,EACH,KAAK,4BAA4B,EACjC,KAAK,eAAe,EACpB,KAAK,WAAW,EAChB,KAAK,wBAAwB,EAChC,MAAM,mCAAmC,CAAC;AAqB3C,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAEpD,MAAM,WAAW,+BAA+B,CAAC,WAAW,GAAG,GAAG;IAC9D,UAAU,CAAC,EAAE,wBAAwB,CAAC;IACtC,UAAU,CAAC,EAAE,WAAW,CAAC;IACzB,cAAc,CAAC,EAAE,eAAe,CAAC;IACjC,cAAc,CAAC,EAAE,GAAG,CAAC;IACrB,MAAM,CAAC,EAAE,mBAAmB,CAAC;IAC7B,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,OAAO,CAAC,EAAE,kBAAkB,CAAC;IAC7B,YAAY,CAAC,EAAE,SAAS,CAAC;IACzB,WAAW,CAAC,EAAE,qBAAqB,CAAC;IACpC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI,CAAC;IAC9B,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,2BAA2B,CAAC,EAAE,4BAA4B,CAAC;IAC3D;;;;;;OAMG;IACH,qBAAqB,CAAC,EAAE,OAAO,CAAC;CACnC;AAED,8BAAsB,yBAAyB,CAC3C,CAAC,SAAS,+BAA+B,GAAG,+BAA+B,CAC7E,SAAQ,aAAa,CAAC,CAAC,CAAC;IACtB,OAAc,YAAY,EAAE,+BAA+B,CAgBzD;IAEF,SAAS,CAAC,uBAAuB,EAAE,MAAM,EAAE,GAAG,SAAS,CAAC;IAExD,YAAY,KAAK,EAAE,CAAC,EAGnB;IAEe,MAAM,4CAQrB;IAED,SAAS,CAAC,QAAQ,CAAC,wBAAwB,IAAI,SAAS,CAAC;IAEzD;;;OAGG;IACH,SAAS,CAAC,iBAAiB,CAAC,YAAY,CAAC,EAAE,WAAW,GAAG,OAAO,CAG/D;IAED,SAAS,CAAC,kBAAkB,IAAI,SAAS,CAwBxC;IAED,SAAS,CAAC,mBAAmB,IAAI,SAAS,CAYzC;IAED,SAAS,CAAC,yBAAyB,IAAI,SAAS,CAsC/C;IAED,SAAS,CAAC,qBAAqB,IAAI,SAAS,CAiB3C;IAED,SAAS,CAAC,sBAAsB,IAAI,SAAS,CAqC5C;IAED,SAAS,CAAC,0BAA0B,IAAI,SAAS,CAehD;IAED,SAAS,CAAC,qBAAqB,IAAI,SAAS,CAU3C;CACJ"}
|
|
@@ -65,7 +65,6 @@ export class ConfigurationPanelContent extends PureComponent {
|
|
|
65
65
|
renderInteractionsSection() {
|
|
66
66
|
const { pushData, properties, propertiesMeta, panelConfig, configurationPanelRenderers, featureFlags, insight, } = this.props;
|
|
67
67
|
const showImplicitDrillToUrl = isInsightSupportedForImplicitDrillToUrl(insight);
|
|
68
|
-
const supportsKeyDriveAnalysis = featureFlags?.enableChangeAnalysis;
|
|
69
68
|
const insightSupportsScheduledExports = isInsightSupportedForScheduledExports(insight);
|
|
70
69
|
const insightSupportsAlerts = isInsightSupportedForAlerts(insight);
|
|
71
70
|
const supportsAlertsConfiguration = insightSupportsAlerts;
|
|
@@ -74,7 +73,7 @@ export class ConfigurationPanelContent extends PureComponent {
|
|
|
74
73
|
return supportsAlertsConfiguration ||
|
|
75
74
|
supportsScheduledExportsConfiguration ||
|
|
76
75
|
panelConfig?.supportsAttributeHierarchies ||
|
|
77
|
-
showImplicitDrillToUrl ? (_jsx(InteractionsSection, { metrics: metrics, areControlsDisabledGetter: this.isControlDisabled, properties: properties, propertiesMeta: propertiesMeta, pushData: pushData, supportsAlertConfiguration: !!supportsAlertsConfiguration, supportsDrillDownConfiguration: panelConfig?.supportsAttributeHierarchies, supportsScheduledExportsConfiguration: !!supportsScheduledExportsConfiguration, InteractionsDetailRenderer: configurationPanelRenderers?.InteractionsDetailRenderer, showImplicitDrillToUrl: showImplicitDrillToUrl,
|
|
76
|
+
showImplicitDrillToUrl ? (_jsx(InteractionsSection, { metrics: metrics, areControlsDisabledGetter: this.isControlDisabled, properties: properties, propertiesMeta: propertiesMeta, pushData: pushData, supportsAlertConfiguration: !!supportsAlertsConfiguration, supportsDrillDownConfiguration: panelConfig?.supportsAttributeHierarchies, supportsScheduledExportsConfiguration: !!supportsScheduledExportsConfiguration, InteractionsDetailRenderer: configurationPanelRenderers?.InteractionsDetailRenderer, showImplicitDrillToUrl: showImplicitDrillToUrl,
|
|
78
77
|
// enableDrillToUrlByDefault is actually not a feature flag, but setting
|
|
79
78
|
// for some reason the property is called featureFlags, but contains both feature flags and settings
|
|
80
79
|
enableDrillToUrlByDefault: featureFlags?.enableDrillToUrlByDefault })) : null;
|
|
@@ -33,6 +33,6 @@ export class LineChartBasedConfigurationPanel extends BaseChartConfigurationPane
|
|
|
33
33
|
const shouldContinuousLineControlDisabled = controlsDisabled || isContinuousLineControlDisabled;
|
|
34
34
|
const distinctPointShapesEnabled = properties?.controls?.["distinctPointShapes"]?.enabled;
|
|
35
35
|
const shouldDistinctPointShapesDisabled = controlsDisabled || isDataPointsControlDisabled || !isDistinctPointShapesDisabled;
|
|
36
|
-
return (_jsxs(BubbleHoverTrigger, { showDelay: SHOW_DELAY_DEFAULT, hideDelay: HIDE_DELAY_DEFAULT, children: [_jsxs("div", { children: [this.renderColorSection(), this.getBaseChartAxisSection(axes), this.renderLegendSection(), this.renderInteractionsSection(), _jsxs(ConfigSection, { id: "canvas_section", className: "gd-canvas-section", title: messages["canvasTitle"].id, propertiesMeta: propertiesMeta, properties: properties, pushData: pushData, children: [_jsx(DataLabelsControl, { pushData: pushData, properties: properties, isDisabled: controlsDisabled, defaultValue: dataLabelDefaultValue }), _jsx(DataPointsControl, { pushData: pushData, properties: properties, isDisabled: controlsDisabled || isDataPointsControlDisabled, showDisabledMessage: isDataPointsControlDisabled }), _jsx(LineShapeControl, { disabled: controlsDisabled || hasNoLineOrAreaMeasures, pushData: pushData, properties: properties }), _jsxs("div", { className: "gd-canvas-section__checkbox-wrapper", children: [_jsx(DistinctPointShapesControl, { pushData: pushData, checked: shouldDistinctPointShapesDisabled ? false : distinctPointShapesEnabled, properties: properties, disabled: shouldDistinctPointShapesDisabled }), _jsx(CheckboxControl, { valuePath: "grid.enabled", labelText: messages["canvasGridLine"].id, properties: properties, checked: gridEnabled, disabled: controlsDisabled, pushData: pushData }), _jsx(ContinuousLineControl, { properties: properties, checked: shouldContinuousLineControlDisabled ? false : continuousLineEnabled, disabled:
|
|
36
|
+
return (_jsxs(BubbleHoverTrigger, { showDelay: SHOW_DELAY_DEFAULT, hideDelay: HIDE_DELAY_DEFAULT, children: [_jsxs("div", { children: [this.renderColorSection(), this.getBaseChartAxisSection(axes), this.renderLegendSection(), this.renderInteractionsSection(), _jsxs(ConfigSection, { id: "canvas_section", className: "gd-canvas-section", title: messages["canvasTitle"].id, propertiesMeta: propertiesMeta, properties: properties, pushData: pushData, children: [_jsx(DataLabelsControl, { pushData: pushData, properties: properties, isDisabled: controlsDisabled, defaultValue: dataLabelDefaultValue }), _jsx(DataPointsControl, { pushData: pushData, properties: properties, isDisabled: controlsDisabled || isDataPointsControlDisabled, showDisabledMessage: isDataPointsControlDisabled }), _jsx(LineShapeControl, { disabled: controlsDisabled || hasNoLineOrAreaMeasures, pushData: pushData, properties: properties }), _jsxs("div", { className: "gd-canvas-section__checkbox-wrapper", children: [_jsx(DistinctPointShapesControl, { pushData: pushData, checked: shouldDistinctPointShapesDisabled ? false : distinctPointShapesEnabled, properties: properties, disabled: shouldDistinctPointShapesDisabled }), _jsx(CheckboxControl, { valuePath: "grid.enabled", labelText: messages["canvasGridLine"].id, properties: properties, checked: gridEnabled, disabled: controlsDisabled, pushData: pushData }), _jsx(ContinuousLineControl, { properties: properties, checked: shouldContinuousLineControlDisabled ? false : continuousLineEnabled, disabled: shouldContinuousLineControlDisabled, pushData: pushData })] })] }), this.renderForecastSection(), this.renderAnomaliesSection(), this.renderCustomTooltipSection(), this.renderAdvancedSection()] }), _jsx(Bubble, { className: this.getBubbleClassNames(), arrowOffsets: { "tc bc": [BUBBLE_ARROW_OFFSET_X, BUBBLE_ARROW_OFFSET_Y] }, alignPoints: [{ align: "tc bc" }], children: _jsx(FormattedMessage, { id: "properties.config.not_applicable" }) })] }));
|
|
37
37
|
}
|
|
38
38
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { _omit } from "@gooddata/util";
|
|
3
3
|
import { UnsupportedProperties } from "../configurationControls/UnsupportedProperties.js";
|
|
4
4
|
import { ConfigurationPanelContent } from "./ConfigurationPanelContent.js";
|
|
5
5
|
export class UnsupportedConfigurationPanel extends ConfigurationPanelContent {
|
|
6
6
|
componentDidMount() {
|
|
7
7
|
this.props.pushData?.({
|
|
8
|
-
properties:
|
|
8
|
+
properties: _omit(this.props.properties, "controls"),
|
|
9
9
|
references: null,
|
|
10
10
|
ignoreUndoRedo: true,
|
|
11
11
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"granularPermissionUtils.d.ts","sourceRoot":"","sources":["../../../../../../../src/internal/components/dialogs/userManagementDialogs/Workspace/WorkspaceItem/granularPermissionUtils.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"granularPermissionUtils.d.ts","sourceRoot":"","sources":["../../../../../../../src/internal/components/dialogs/userManagementDialogs/Workspace/WorkspaceItem/granularPermissionUtils.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;AAI5C,OAAO,EAAE,KAAK,iBAAiB,EAAE,KAAK,mBAAmB,EAAE,KAAK,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAI7G,eAAO,MAAM,oBAAoB,EAAE,oBAAoD,CAAC;AAExF,eAAO,MAAM,iBAAiB,EAAE,oBAA0D,CAAC;AAW3F;;;;;GAKG;AACH,eAAO,MAAM,8BAA8B,wBAClB,mBAAmB,oDAEzC,oBAwBF,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,sBAAsB,gBAAiB,oBAAoB,KAAG,mBAQ1E,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,sBAAsB,gBAClB,oBAAoB,oDAElC,oBAeF,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,yBAAyB,sBACf,mBAAmB,eACzB,oBAAoB,WACxB,OAAO,KACjB,oBA2BF,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,4BAA4B,eACzB,mBAAmB,+BACF,oBAAoB,YAOpD,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,eACjB,mBAAmB,+BACF,mBAAmB,+BACnB,oBAAoB,2DAUpD,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,0BAA0B,gBACtB,oBAAoB,oDAElC,oBAsBF,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,+BAA+B,eAC5B,iBAAiB,cACjB,iBAAiB,2DAchC,CAAC;AAuCF;;GAEG;AACH,eAAO,MAAM,gCAAgC,gBAC5B,oBAAoB,QAC3B,SAAS,KAChB,MAmBF,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,8BAA8B,gBAAiB,oBAAoB,KAAG,OAGlF,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// (C) 2024-2026 GoodData Corporation
|
|
2
|
-
import {
|
|
2
|
+
import { _isEqual } from "@gooddata/util";
|
|
3
3
|
import { workspaceGranularPermissionMessages } from "./locales.js";
|
|
4
4
|
export const workspacePermissions = ["MANAGE", "ANALYZE", "VIEW"];
|
|
5
5
|
const exportSubPermissions = ["EXPORT_PDF", "EXPORT_TABULAR"];
|
|
@@ -157,7 +157,7 @@ export const haveWorkspacePermissionsChanged = (workspace1, workspace2, analyzeI
|
|
|
157
157
|
return false;
|
|
158
158
|
}
|
|
159
159
|
return (workspace1.isHierarchical !== workspace2.isHierarchical ||
|
|
160
|
-
!
|
|
160
|
+
!_isEqual(removeRedundantPermissions(workspace1.permissions, analyzeIncludesManageVisualizations).sort(), removeRedundantPermissions(workspace2.permissions, analyzeIncludesManageVisualizations).sort()));
|
|
161
161
|
};
|
|
162
162
|
/**
|
|
163
163
|
* Returns reordered permissions with MANAGE, ANALYZE, or VIEW at the first position in this order.
|
|
@@ -215,5 +215,5 @@ export const getHumanReadablePermissionsTitle = (permissions, intl) => {
|
|
|
215
215
|
*/
|
|
216
216
|
export const areRedundantPermissionsPresent = (permissions) => {
|
|
217
217
|
const effectivePermissions = removeRedundantPermissions(permissions);
|
|
218
|
-
return !
|
|
218
|
+
return !_isEqual(effectivePermissions.sort(), permissions.sort());
|
|
219
219
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/dialogs/userManagementDialogs/types.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/dialogs/userManagementDialogs/types.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACtE,OAAO,EACH,KAAK,2BAA2B,EAChC,KAAK,sBAAsB,EAC3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CACpB;AAED,MAAM,WAAW,iBAAiB;IAC9B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,kBAAkB,QAAS,OAAO,KAAG,GAAG,IAAI,iBAExD,CAAC;AAEF,MAAM,WAAW,sBAAsB;IACnC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,iBAAiB,CAAC;CAC5B;AAED,MAAM,WAAW,WAAW;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,UAAU,QAAS,OAAO,KAAG,GAAG,IAAI,WAEhD,CAAC;AAEF,MAAM,WAAW,iBAAiB;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,WAAW,CAAC;CACtB;AAED,MAAM,WAAW,kBAAkB;IAC/B,UAAU,EAAE,OAAO,CAAC;IACpB,IAAI,EAAE,OAAO,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,KAAK,CAAC;CACjB;AAED,eAAO,MAAM,mBAAmB,QAAS,OAAO,KAAG,GAAG,IAAI,kBAEzD,CAAC"}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
// (C) 2023-2026 GoodData Corporation
|
|
2
|
-
import {
|
|
2
|
+
import { _isEmpty } from "@gooddata/util";
|
|
3
3
|
export const isWorkspaceItem = (obj) => {
|
|
4
|
-
return !
|
|
4
|
+
return !_isEmpty(obj) && obj.id !== undefined;
|
|
5
5
|
};
|
|
6
6
|
export const isDataSourceItem = (obj) => {
|
|
7
|
-
return !
|
|
7
|
+
return !_isEmpty(obj) && obj.id !== undefined;
|
|
8
8
|
};
|
|
9
9
|
export const isGrantedUserGroup = (obj) => {
|
|
10
|
-
return !
|
|
10
|
+
return !_isEmpty(obj) && obj.id !== undefined;
|
|
11
11
|
};
|
|
12
12
|
export const isUserItem = (obj) => {
|
|
13
|
-
return !
|
|
13
|
+
return !_isEmpty(obj) && obj.id !== undefined;
|
|
14
14
|
};
|
|
15
15
|
export const isSelectErrorOption = (obj) => {
|
|
16
|
-
return !
|
|
16
|
+
return !_isEmpty(obj) && obj.type === "error";
|
|
17
17
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useInsightPagedList.d.ts","sourceRoot":"","sources":["../../../../src/internal/components/insightList/useInsightPagedList.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useInsightPagedList.d.ts","sourceRoot":"","sources":["../../../../src/internal/components/insightList/useInsightPagedList.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,kBAAkB,EAA2B,MAAM,2BAA2B,CAAC;AAC7F,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAKjD;;;GAGG;AACH,MAAM,MAAM,iBAAiB,GAAG,cAAc,GAAG,MAAM,CAAC;AAExD;;;GAGG;AACH,MAAM,MAAM,wBAAwB,GAAG,KAAK,GAAG,MAAM,CAAC;AAEtD;;;GAGG;AACH,MAAM,WAAW,QAAQ;IACrB,EAAE,EAAE,MAAM,CAAC;IACX,GAAG,EAAE,MAAM,CAAC;CACf;AAED;;;GAGG;AACH,MAAM,WAAW,uBAAuB;IACpC,OAAO,EAAE,kBAAkB,CAAC;IAC5B,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,OAAO,EAAE,QAAQ,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;IACvB;;;OAGG;IACH,MAAM,CAAC,EAAE,iBAAiB,CAAC;IAC3B;;OAEG;IACH,aAAa,CAAC,EAAE,wBAAwB,CAAC;IACzC;;;OAGG;IACH,eAAe,CAAC,EAAE,MAAM,EA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ACX,MAAM,EACN,OAAO,EACP,IAAI,EACJ,WAAW,EACX,MAAM,EACN,aAAsC,EACtC,eAAe,EACf,iBAAyB,EACzB,kBAA0B,EAC1B,UAAU,GACb,EAAE,uBAAuB,GAAG,uBAAuB,CA2PnD"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// (C) 2026 GoodData Corporation
|
|
2
2
|
import { useCallback, useMemo, useRef, useState } from "react";
|
|
3
|
-
import {
|
|
3
|
+
import { _debounce, _isEmpty } from "@gooddata/util";
|
|
4
4
|
const ITEMS_PER_PAGE = 50;
|
|
5
5
|
const DEFAULT_SORT_DIRECTION = "desc";
|
|
6
6
|
function buildSorting(sortBy, direction) {
|
|
@@ -51,7 +51,7 @@ export function useInsightPagedList({ backend, workspaceId, author, tabsIds, tag
|
|
|
51
51
|
const searchedText = searchValue || undefined;
|
|
52
52
|
// When includeAuthorInfo is true (picker mode), only use the explicit createdByFilter.
|
|
53
53
|
// Otherwise fall back to the legacy tab-based author filtering.
|
|
54
|
-
const searchedAuthor = !includeAuthorInfo && tabId === tabsIds.my &&
|
|
54
|
+
const searchedAuthor = !includeAuthorInfo && tabId === tabsIds.my && _isEmpty(searchValue) ? author : undefined;
|
|
55
55
|
const effectiveCreatedBy = createdByFilter?.length
|
|
56
56
|
? createdByFilter
|
|
57
57
|
: searchedAuthor
|
|
@@ -173,7 +173,7 @@ export function useInsightPagedList({ backend, workspaceId, author, tabsIds, tag
|
|
|
173
173
|
void fetchItems({ page: nextPage, search: effectiveSearch, tabId: selectedTabId });
|
|
174
174
|
}, [hasNextPage, isNextPageLoading, isLoading, currentPage, effectiveSearch, selectedTabId, fetchItems]);
|
|
175
175
|
// oxlint-disable-next-line react-hooks/exhaustive-deps
|
|
176
|
-
const onSearch = useCallback(
|
|
176
|
+
const onSearch = useCallback(_debounce((searchString) => {
|
|
177
177
|
setCurrentPage(0);
|
|
178
178
|
setSearch(searchString);
|
|
179
179
|
void fetchItems({ page: 0, search: searchString, tabId: selectedTabId, resetItems: true });
|
package/esm/internal/components/pluggableVisualizations/AbstractPluggableVisualization.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AbstractPluggableVisualization.d.ts","sourceRoot":"","sources":["../../../../src/internal/components/pluggableVisualizations/AbstractPluggableVisualization.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AbstractPluggableVisualization.d.ts","sourceRoot":"","sources":["../../../../src/internal/components/pluggableVisualizations/AbstractPluggableVisualization.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;AAE5C,OAAO,EAAE,KAAK,iBAAiB,EAAE,KAAK,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAC5F,OAAO,EACH,KAAK,QAAQ,EACb,KAAK,kBAAkB,EACvB,KAAK,SAAS,EACd,KAAK,qBAAqB,EAG7B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACH,KAAK,cAAc,EAEnB,KAAK,gBAAgB,EACrB,KAAK,WAAW,EAChB,KAAK,eAAe,EACpB,KAAK,aAAa,EAClB,KAAK,OAAO,EACZ,KAAK,SAAS,EAKjB,MAAM,kBAAkB,CAAC;AAG1B,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAClE,OAAO,EAGH,KAAK,WAAW,EAChB,KAAK,YAAY,EACjB,KAAK,iBAAiB,EACtB,KAAK,uBAAuB,EAC5B,KAAK,eAAe,EAEpB,KAAK,aAAa,EAClB,KAAK,SAAS,EACd,KAAK,cAAc,EACnB,KAAK,qBAAqB,EAC1B,KAAK,wBAAwB,EAEhC,MAAM,mCAAmC,CAAC;AAS3C,8BAAsB,8BAA+B,YAAW,cAAc;IAC1E,SAAS,CAAC,IAAI,EAAE,SAAS,CAAC;IAC1B,SAAS,CAAC,MAAM,EAAE,OAAO,CAAC;IAC1B,SAAS,CAAC,YAAY,EAAE,SAAS,CAAC;IAClC,SAAS,CAAC,WAAW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,CAc1B;IAED,SAAS,CAAC,uBAAuB,CAC7B,cAAc,EAAE,eAAe,EAC/B,MAAM,EAAE,YAAY,EACpB,qBAAqB,EAAE,WAAW,EAAE,GACrC,WAAW,EAAE,CAcf;IAED;;;;;;;;OAQG;IACI,8BAA8B,CACjC,mBAAmB,EAAE,QAAQ,EAC7B,iBAAiB,EAAE,iBAAiB,EACpC,2BAA2B,EAAE,OAAO,GACrC,QAAQ,CAEV;IAED;;;;;OAKG;IACI,aAAa,CAAC,eAAe,EAAE,eAAe,GAAG,OAAO,CAAC,WAAW,CAAC,CAO3E;IAEM,kDAAkD,CACrD,qBAAqB,EAAE,eAAe,EACtC,kBAAkB,EAAE,eAAe,WAkBtC;IAEM,kBAAkB,CACrB,sBAAsB,EAAE,eAAe,EACvC,mBAAmB,EAAE,eAAe,GACrC,WAAW,EAAE,GAAG,SAAS,CAE3B;CACJ"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// (C) 2019-2026 GoodData Corporation
|
|
2
|
-
import { cloneDeep, isEqual } from "lodash-es";
|
|
3
2
|
import { insightHasDataDefined, insightProperties, } from "@gooddata/sdk-model";
|
|
4
3
|
import { DefaultLocale, UnexpectedSdkError, isClusteringNotReceived, isForecastNotReceived, isGoodDataSdkError, } from "@gooddata/sdk-ui";
|
|
4
|
+
import { _cloneDeep, _isEqual } from "@gooddata/util";
|
|
5
5
|
import { EmptyAfmSdkError, isEmptyAfm, } from "../../interfaces/Visualization.js";
|
|
6
6
|
import { findDerivedBucketItem, hasDerivedBucketItems, isDerivedBucketItem, } from "../../utils/bucketHelper.js";
|
|
7
7
|
import { createInternalIntl } from "../../utils/internalIntlProvider.js";
|
|
@@ -184,7 +184,7 @@ export class AbstractPluggableVisualization {
|
|
|
184
184
|
if (!referencePoint.buckets) {
|
|
185
185
|
return Promise.resolve(referencePoint);
|
|
186
186
|
}
|
|
187
|
-
const newReferencePoint =
|
|
187
|
+
const newReferencePoint = _cloneDeep(referencePoint);
|
|
188
188
|
newReferencePoint.buckets = referencePoint.buckets.map((bucket) => {
|
|
189
189
|
return {
|
|
190
190
|
...bucket,
|
|
@@ -233,11 +233,11 @@ export class AbstractPluggableVisualization {
|
|
|
233
233
|
});
|
|
234
234
|
}
|
|
235
235
|
haveSomePropertiesRelevantForReferencePointChanged(currentReferencePoint, nextReferencePoint) {
|
|
236
|
-
return (this.propertiesAffectingReferencePoint.some((prop) => !
|
|
236
|
+
return (this.propertiesAffectingReferencePoint.some((prop) => !_isEqual(currentReferencePoint?.properties?.controls?.[prop], nextReferencePoint?.properties?.controls?.[prop])) ||
|
|
237
237
|
// Analytical Designer takes sorts from sortItems and put them to target insight,
|
|
238
238
|
// however there is no visualization update/re-render when they are changed by the visualization itself, and not by Analytical Designer UI.
|
|
239
239
|
// I know this is not nice, but I didn't found any better way how to resolve it.
|
|
240
|
-
!
|
|
240
|
+
!_isEqual(currentReferencePoint?.properties?.sortItems ?? [], nextReferencePoint?.properties?.sortItems ?? []));
|
|
241
241
|
}
|
|
242
242
|
getBucketsToUpdate(_currentReferencePoint, _nextReferencePoint) {
|
|
243
243
|
return undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PluggableColumnBarCharts.d.ts","sourceRoot":"","sources":["../../../../src/internal/components/pluggableVisualizations/PluggableColumnBarCharts.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"PluggableColumnBarCharts.d.ts","sourceRoot":"","sources":["../../../../src/internal/components/pluggableVisualizations/PluggableColumnBarCharts.tsx"],"names":[],"mappings":"AAEA,OAAO,EACH,KAAK,QAAQ,EAMhB,MAAM,qBAAqB,CAAC;AAiB7B,OAAO,EAGH,KAAK,iBAAiB,EAEtB,KAAK,uBAAuB,EAC5B,KAAK,eAAe,EACpB,KAAK,SAAS,EACd,KAAK,aAAa,EACrB,MAAM,mCAAmC,CAAC;AAoB3C,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AAGvE,qBAAa,wBAAyB,SAAQ,kBAAkB;IAC5D,YAAY,KAAK,EAAE,aAAa,EAM/B;IAEe,WAAW,IAAI,SAAS,CAEvC;IAEe,yBAAyB,CACrC,cAAc,EAAE,eAAe,GAChC,OAAO,CAAC,uBAAuB,CAAC,CAoBlC;IAEe,uBAAuB,IAAI,OAAO,CAOjD;IAED,OAAO,CAAC,8BAA8B;IAWtC,OAAO,CAAC,sBAAsB;IAad,8BAA8B,CAC1C,MAAM,EAAE,QAAQ,EAChB,gBAAgB,EAAE,iBAAiB,EACnC,0BAA0B,EAAE,OAAO,GACpC,QAAQ,CAQV;IAED,OAAO,CAAC,iBAAiB;IAKzB,UAAmB,gBAAgB,CAAC,sBAAsB,EAAE,uBAAuB,GAAG,IAAI,CAEzF;IAED,OAAO,CAAC,iCAAiC;IAmBzC,OAAO,CAAC,uBAAuB;IAgB/B,OAAO,CAAC,+BAA+B;IAwCvC,OAAO,CAAC,qBAAqB;IAM7B,OAAO,CAAC,sBAAsB;CAGjC"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
// (C) 2019-2026 GoodData Corporation
|
|
2
|
-
import { cloneDeep, set } from "lodash-es";
|
|
3
2
|
import { bucketIsEmpty, bucketsItems, insightBucket, insightBuckets, } from "@gooddata/sdk-model";
|
|
4
3
|
import { BucketNames, getIntersectionPartAfter, } from "@gooddata/sdk-ui";
|
|
5
|
-
import { shiftArrayRight } from "@gooddata/util";
|
|
4
|
+
import { _cloneDeep, _set, shiftArrayRight } from "@gooddata/util";
|
|
6
5
|
import { AXIS } from "../../constants/axis.js";
|
|
7
6
|
import { ATTRIBUTE, BUCKETS, DATE } from "../../constants/bucket.js";
|
|
8
7
|
import { COLUMN_BAR_CHART_UICONFIG_WITH_MULTIPLE_DATES, MAX_CATEGORIES_COUNT, MAX_METRICS_COUNT, MAX_STACKS_COUNT, } from "../../constants/uiConfig.js";
|
|
@@ -21,7 +20,7 @@ export class PluggableColumnBarCharts extends PluggableBaseChart {
|
|
|
21
20
|
this.supportedPropertiesList = this.getSupportedPropertiesList();
|
|
22
21
|
}
|
|
23
22
|
getUiConfig() {
|
|
24
|
-
return
|
|
23
|
+
return _cloneDeep(COLUMN_BAR_CHART_UICONFIG_WITH_MULTIPLE_DATES);
|
|
25
24
|
}
|
|
26
25
|
getExtendedReferencePoint(referencePoint) {
|
|
27
26
|
// reset the list to retrieve full 'referencePoint.properties.controls'
|
|
@@ -66,7 +65,7 @@ export class PluggableColumnBarCharts extends PluggableBaseChart {
|
|
|
66
65
|
}
|
|
67
66
|
configureBucketsWithMultipleDates(extendedReferencePoint) {
|
|
68
67
|
const { measures, views, stacks } = this.getMeasuresViewStackBucketItems(extendedReferencePoint);
|
|
69
|
-
|
|
68
|
+
_set(extendedReferencePoint, BUCKETS, [
|
|
70
69
|
{
|
|
71
70
|
localIdentifier: BucketNames.MEASURES,
|
|
72
71
|
items: measures,
|
package/esm/internal/components/pluggableVisualizations/areaChart/PluggableAreaChart.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PluggableAreaChart.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/pluggableVisualizations/areaChart/PluggableAreaChart.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"PluggableAreaChart.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/pluggableVisualizations/areaChart/PluggableAreaChart.tsx"],"names":[],"mappings":"AAEA,OAAO,EACH,KAAK,QAAQ,EACb,KAAK,kBAAkB,EAK1B,MAAM,qBAAqB,CAAC;AAc7B,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;AAmB9C,OAAO,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,CAAC;AAOxE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,qBAAa,kBAAmB,SAAQ,kBAAkB;IACtD,YAAY,KAAK,EAAE,aAAa,EAO/B;IAEe,WAAW,IAAI,SAAS,CAEvC;IAEe,yBAAyB,CACrC,cAAc,EAAE,eAAe,GAChC,OAAO,CAAC,uBAAuB,CAAC,CAwBlC;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,CAiBnF;IAED,UAAmB,wBAAwB,CACvC,OAAO,EAAE,SAAS,EAClB,OAAO,EAAE,kBAAkB,EAC3B,qBAAqB,EAAE,GAAG,GAC3B,IAAI,CAIN;IAED,UAAmB,gBAAgB,CAAC,sBAAsB,EAAE,uBAAuB,GAAG,IAAI,CAiBzF;IAED,UAAmB,0BAA0B,IAAI,MAAM,EAAE,CAExD;IAED,UAAmB,wBAAwB,CAAC,OAAO,EAAE,kBAAkB,EAAE,OAAO,EAAE,SAAS,GAAG,IAAI,CA8BjG;IAED,OAAO,CAAC,UAAU;IAUlB,OAAO,CAAC,+BAA+B;IAevC,OAAO,CAAC,sBAAsB;IAS9B,OAAO,CAAC,qBAAqB;IAI7B,OAAO,CAAC,iBAAiB;IAKzB,OAAO,CAAC,+BAA+B;IAyBvC,OAAO,CAAC,0BAA0B;IA8DlC,OAAO,CAAC,cAAc;IAWtB,OAAO,CAAC,+BAA+B;IAUvC,OAAO,CAAC,6BAA6B;CASxC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
// (C) 2019-2026 GoodData Corporation
|
|
3
|
-
import { cloneDeep, isEmpty, set } from "lodash-es";
|
|
4
3
|
import { bucketsItems, insightBucket, insightBuckets, newAttributeSort, } from "@gooddata/sdk-model";
|
|
5
4
|
import { BucketNames, VisualizationTypes } from "@gooddata/sdk-ui";
|
|
5
|
+
import { _cloneDeep, _isEmpty, _set } from "@gooddata/util";
|
|
6
6
|
import { ATTRIBUTE, BUCKETS, DATE } from "../../../constants/bucket.js";
|
|
7
7
|
import { AREA_CHART_SUPPORTED_PROPERTIES, OPTIONAL_STACKING_PROPERTIES, } from "../../../constants/supportedProperties.js";
|
|
8
8
|
import { AREA_UICONFIG_WITH_MULTIPLE_DATES, MAX_CATEGORIES_COUNT, MAX_METRICS_COUNT, } from "../../../constants/uiConfig.js";
|
|
@@ -60,10 +60,10 @@ export class PluggableAreaChart extends PluggableBaseChart {
|
|
|
60
60
|
this.initializeProperties(props.visualizationProperties);
|
|
61
61
|
}
|
|
62
62
|
getUiConfig() {
|
|
63
|
-
return
|
|
63
|
+
return _cloneDeep(AREA_UICONFIG_WITH_MULTIPLE_DATES);
|
|
64
64
|
}
|
|
65
65
|
getExtendedReferencePoint(referencePoint) {
|
|
66
|
-
const clonedReferencePoint =
|
|
66
|
+
const clonedReferencePoint = _cloneDeep(referencePoint);
|
|
67
67
|
let newReferencePoint = {
|
|
68
68
|
...clonedReferencePoint,
|
|
69
69
|
uiConfig: this.getUiConfig(),
|
|
@@ -101,7 +101,7 @@ export class PluggableAreaChart extends PluggableBaseChart {
|
|
|
101
101
|
}
|
|
102
102
|
configureBuckets(extendedReferencePoint) {
|
|
103
103
|
const { measures, views, stacks } = this.getBucketItemsWithMultipleDates(extendedReferencePoint);
|
|
104
|
-
|
|
104
|
+
_set(extendedReferencePoint, BUCKETS, [
|
|
105
105
|
{
|
|
106
106
|
localIdentifier: BucketNames.MEASURES,
|
|
107
107
|
items: measures,
|
|
@@ -199,7 +199,7 @@ export class PluggableAreaChart extends PluggableBaseChart {
|
|
|
199
199
|
],
|
|
200
200
|
};
|
|
201
201
|
}
|
|
202
|
-
if (measures.length === 1 &&
|
|
202
|
+
if (measures.length === 1 && _isEmpty(stackBy)) {
|
|
203
203
|
if (viewBy.length >= 2) {
|
|
204
204
|
return {
|
|
205
205
|
defaultSort,
|
|
@@ -219,7 +219,7 @@ export class PluggableAreaChart extends PluggableBaseChart {
|
|
|
219
219
|
return {
|
|
220
220
|
defaultSort,
|
|
221
221
|
availableSorts: [
|
|
222
|
-
newAvailableSortsGroup(viewBy[0].localIdentifier,
|
|
222
|
+
newAvailableSortsGroup(viewBy[0].localIdentifier, _isEmpty(stackBy) ? measures.map((m) => m.localIdentifier) : []),
|
|
223
223
|
],
|
|
224
224
|
};
|
|
225
225
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PluggableBarChart.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/pluggableVisualizations/barChart/PluggableBarChart.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"PluggableBarChart.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/pluggableVisualizations/barChart/PluggableBarChart.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,kBAAkB,EAAwC,MAAM,qBAAqB,CAAC;AAMpG,OAAO,EAAE,KAAK,WAAW,EAA0B,MAAM,mCAAmC,CAAC;AAC7F,OAAO,EACH,KAAK,eAAe,EACpB,KAAK,aAAa,EAClB,KAAK,SAAS,EACjB,MAAM,sCAAsC,CAAC;AAI9C,OAAO,EAAE,wBAAwB,EAAE,MAAM,gCAAgC,CAAC;AAI1E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AACH,qBAAa,iBAAkB,SAAQ,wBAAwB;IAC3D,YAAY,KAAK,EAAE,aAAa,EAQ/B;IAEe,0BAA0B,IAAI,MAAM,EAAE,CAErD;IAED,UAAmB,wBAAwB,CAAC,OAAO,EAAE,kBAAkB,EAAE,OAAO,EAAE,SAAS,GAAG,IAAI,CA8BjG;IAED,SAAS,CAAC,0BAA0B,CAChC,cAAc,EAAE,eAAe,EAC/B,sBAAsB,EAAE,OAAO,GAChC;QACC,WAAW,EAAE,WAAW,CAAC,aAAa,CAAC,CAAC;QACxC,cAAc,EAAE,WAAW,CAAC,gBAAgB,CAAC,CAAC;KACjD,CA8BA;IAED,OAAO,CAAC,mBAAmB;IA+C3B,OAAO,CAAC,6BAA6B;IAgBrC,OAAO,CAAC,+BAA+B;IAmBvC,OAAO,CAAC,cAAc;IAWN,aAAa,CAAC,cAAc,EAAE,eAAe,GAAG,OAAO,CAAC,WAAW,CAAC,CAuBnF;CACJ"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
// (C) 2019-2026 GoodData Corporation
|
|
3
|
-
import { isEmpty } from "lodash-es";
|
|
4
3
|
import { newAttributeAreaSort, newMeasureSort } from "@gooddata/sdk-model";
|
|
5
4
|
import { BucketNames, VisualizationTypes } from "@gooddata/sdk-ui";
|
|
5
|
+
import { _isEmpty } from "@gooddata/util";
|
|
6
6
|
import { AXIS, AXIS_NAME } from "../../../constants/axis.js";
|
|
7
7
|
import { BAR_CHART_SUPPORTED_PROPERTIES } from "../../../constants/supportedProperties.js";
|
|
8
8
|
import { newAvailableSortsGroup } from "../../../interfaces/SortConfig.js";
|
|
@@ -86,14 +86,14 @@ export class PluggableBarChart extends PluggableColumnBarCharts {
|
|
|
86
86
|
const measures = getBucketItems(buckets, BucketNames.MEASURES);
|
|
87
87
|
const viewBy = getBucketItems(buckets, BucketNames.VIEW);
|
|
88
88
|
const stackBy = getBucketItems(buckets, BucketNames.STACK);
|
|
89
|
-
const isStacked = !
|
|
90
|
-
if (viewBy.length === 2 && !
|
|
89
|
+
const isStacked = !_isEmpty(stackBy) || canSortStackTotalValue;
|
|
90
|
+
if (viewBy.length === 2 && !_isEmpty(measures)) {
|
|
91
91
|
return this.getSortForTwoViewBy(measures, viewBy, stackBy, isStacked, canSortStackTotalValue);
|
|
92
92
|
}
|
|
93
|
-
if (!
|
|
93
|
+
if (!_isEmpty(viewBy) && isStacked) {
|
|
94
94
|
return this.getSortForStackedSingleViewBy(measures, viewBy, stackBy);
|
|
95
95
|
}
|
|
96
|
-
if (!
|
|
96
|
+
if (!_isEmpty(viewBy) && !_isEmpty(measures)) {
|
|
97
97
|
return this.getSortForUnstackedSingleViewBy(measures, viewBy);
|
|
98
98
|
}
|
|
99
99
|
return {
|
|
@@ -118,7 +118,7 @@ export class PluggableBarChart extends PluggableColumnBarCharts {
|
|
|
118
118
|
const secondViewBySort = isStacked
|
|
119
119
|
? newAttributeAreaSort(viewBy[1].localIdentifier, "desc")
|
|
120
120
|
: newMeasureSort(measures[0].localIdentifier, "desc");
|
|
121
|
-
const measureIds =
|
|
121
|
+
const measureIds = _isEmpty(stackBy) ? measures.map((m) => m.localIdentifier) : [];
|
|
122
122
|
return {
|
|
123
123
|
defaultSort: [newAttributeAreaSort(viewBy[0].localIdentifier, "desc"), secondViewBySort],
|
|
124
124
|
availableSorts: [
|
|
@@ -128,7 +128,7 @@ export class PluggableBarChart extends PluggableColumnBarCharts {
|
|
|
128
128
|
};
|
|
129
129
|
}
|
|
130
130
|
getSortForStackedSingleViewBy(measures, viewBy, stackBy) {
|
|
131
|
-
const measureIds =
|
|
131
|
+
const measureIds = _isEmpty(stackBy) ? measures.map((m) => m.localIdentifier) : [];
|
|
132
132
|
return {
|
|
133
133
|
defaultSort: [newAttributeAreaSort(viewBy[0].localIdentifier, "desc")],
|
|
134
134
|
availableSorts: [newAvailableSortsGroup(viewBy[0].localIdentifier, measureIds)],
|
package/esm/internal/components/pluggableVisualizations/baseChart/PluggableBaseChart.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PluggableBaseChart.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/pluggableVisualizations/baseChart/PluggableBaseChart.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,oBAAoB,EAAkB,KAAK,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAC9G,OAAO,EAEH,KAAK,UAAU,EACf,KAAK,QAAQ,EACb,KAAK,kBAAkB,EACvB,KAAK,SAAS,EAEjB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAe,KAAK,SAAS,EAAsB,MAAM,kBAAkB,CAAC;AACnF,OAAO,EAGH,KAAK,YAAY,EAKpB,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"PluggableBaseChart.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/pluggableVisualizations/baseChart/PluggableBaseChart.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,oBAAoB,EAAkB,KAAK,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAC9G,OAAO,EAEH,KAAK,UAAU,EACf,KAAK,QAAQ,EACb,KAAK,kBAAkB,EACvB,KAAK,SAAS,EAEjB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAe,KAAK,SAAS,EAAsB,MAAM,kBAAkB,CAAC;AACnF,OAAO,EAGH,KAAK,YAAY,EAKpB,MAAM,yBAAyB,CAAC;AAUjC,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,iCAAiC,CAAC;AAChE,OAAO,EAAE,KAAK,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AACzE,OAAO,EAAE,KAAK,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AAC9E,OAAO,EACH,KAAK,WAAW,EAChB,KAAK,YAAY,EACjB,KAAK,iBAAiB,EACtB,KAAK,uBAAuB,EAC5B,KAAK,eAAe,EACpB,KAAK,WAAW,EAChB,KAAK,SAAS,EACd,KAAK,aAAa,EAClB,KAAK,SAAS,EACd,KAAK,wBAAwB,EAE7B,KAAK,cAAc,EACnB,KAAK,eAAe,EACvB,MAAM,sCAAsC,CAAC;AA+B9C,OAAO,EAAE,8BAA8B,EAAE,MAAM,sCAAsC,CAAC;AAGtF,qBAAa,kBAAmB,SAAQ,8BAA8B;IAClE,SAAS,CAAC,SAAS,EAAE,MAAM,CAAC;IAC5B,SAAS,CAAC,IAAI,EAAE,SAAS,CAAC;IAC1B,SAAS,CAA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EAAE,CAqB9D;IAED,UAAmB,iBAAiB,CAAC,OAAO,EAAE,kBAAkB,GAAG,OAAO,CAQzE;IAED,SAAS,CAAC,mBAAmB,CACzB,OAAO,EAAE,SAAS,EAClB,OAAO,EAAE,kBAAkB,EAC3B,gBAAgB,EAAE,iBAAiB,GACpC,IAAI,CAgEN;IAED,SAAS,CAAC,oBAAoB,CAAC,uBAAuB,EAAE,wBAAwB,GAAG,IAAI,CAWtF;IAED,SAAS,CAAC,wBAAwB,CAAC,OAAO,EAAE,kBAAkB,EAAE,OAAO,EAAE,SAAS,GAAG,IAAI,CA6BxF;IAED,SAAS,CAAC,aAAa,CAAC,OAAO,EAAE,kBAAkB,GAAG,UAAU,EAAE,CAEjE;IAED,SAAS,CAAC,2BAA2B,CAAC,IAAI,EAAE,GAAG,GAAG,IAAI,CAiCrD;IAED,SAAS,CAAC,cAAc,SAAU,GAAG,KAAG,IAAI,CAW1C;IAEF,SAAS,CAAC,wBAAwB,CAC9B,OAAO,EAAE,SAAS,EAClB,iBAAiB,CAAC,EAAE,wBAAwB,GAC7C,YAAY,CAsBd;IAED,OAAO,CAAC,qBAAqB;IAc7B,OAAO,CAAC,oBAAoB;IAqB5B,SAAS,CAAC,gBAAgB,CACtB,sBAAsB,EAAE,oBAAoB,EAAE,GAAG,SAAS,EAC1D,UAAU,EAAE,wBAAwB,GAAG,SAAS,EAChD,cAAc,EAAE,oBAAoB,EAAE,GAAG,SAAS,EAClD,WAAW,EAAE,SAAS,EAAE,eAI3B;CACJ"}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
// (C) 2019-2026 GoodData Corporation
|
|
3
|
-
import {
|
|
3
|
+
import { omitBy, tail } from "lodash-es";
|
|
4
4
|
import { insightHasMeasures, } from "@gooddata/sdk-model";
|
|
5
5
|
import { BucketNames, VisualizationTypes } from "@gooddata/sdk-ui";
|
|
6
6
|
import { BaseChart, ColorUtils, updateConfigWithSettings, updateForecastWithSettings, updateOutliersWithSettings, } from "@gooddata/sdk-ui-charts";
|
|
7
7
|
import { buildTooltipExecutionFromConfig } from "@gooddata/sdk-ui-vis-commons";
|
|
8
|
+
import { _cloneDeep, _compact, _isEmpty, _set } from "@gooddata/util";
|
|
8
9
|
import { messages } from "../../../../locales.js";
|
|
9
10
|
import { BUCKETS } from "../../../constants/bucket.js";
|
|
10
11
|
import { DASHBOARDS_ENVIRONMENT } from "../../../constants/properties.js";
|
|
@@ -57,10 +58,10 @@ export class PluggableBaseChart extends AbstractPluggableVisualization {
|
|
|
57
58
|
this.unmountFun([this.getElement(), this.getConfigPanelElement()].filter(Boolean));
|
|
58
59
|
}
|
|
59
60
|
getUiConfig() {
|
|
60
|
-
return
|
|
61
|
+
return _cloneDeep(DEFAULT_BASE_CHART_UICONFIG);
|
|
61
62
|
}
|
|
62
63
|
getExtendedReferencePoint(referencePoint) {
|
|
63
|
-
const clonedReferencePoint =
|
|
64
|
+
const clonedReferencePoint = _cloneDeep(referencePoint);
|
|
64
65
|
const uiConfig = this.getUiConfig();
|
|
65
66
|
let newReferencePoint = {
|
|
66
67
|
...clonedReferencePoint,
|
|
@@ -99,7 +100,7 @@ export class PluggableBaseChart extends AbstractPluggableVisualization {
|
|
|
99
100
|
configureBuckets(extendedReferencePoint) {
|
|
100
101
|
const buckets = extendedReferencePoint?.buckets ?? [];
|
|
101
102
|
const categoriesCount = extendedReferencePoint?.uiConfig?.buckets?.[BucketNames.VIEW]?.itemsLimit ?? MAX_CATEGORIES_COUNT;
|
|
102
|
-
|
|
103
|
+
_set(extendedReferencePoint, BUCKETS, [
|
|
103
104
|
{
|
|
104
105
|
localIdentifier: BucketNames.MEASURES,
|
|
105
106
|
items: getFilteredMeasuresForStackedCharts(buckets),
|
|
@@ -150,7 +151,7 @@ export class PluggableBaseChart extends AbstractPluggableVisualization {
|
|
|
150
151
|
const resultingHeight = this.environment === DASHBOARDS_ENVIRONMENT ? height : undefined;
|
|
151
152
|
const { drillableItems } = custom;
|
|
152
153
|
const supportedControls = this.getSupportedControls(insight, options);
|
|
153
|
-
const configSupportedControls =
|
|
154
|
+
const configSupportedControls = _isEmpty(supportedControls) ? undefined : supportedControls;
|
|
154
155
|
const fullConfig = this.buildVisualizationConfig(options, configSupportedControls);
|
|
155
156
|
const execution = this.getExecution(options, insight, executionFactory);
|
|
156
157
|
// Build secondary execution for custom tooltip external references.
|
|
@@ -230,7 +231,7 @@ export class PluggableBaseChart extends AbstractPluggableVisualization {
|
|
|
230
231
|
buildVisualizationConfig(options, supportedControls) {
|
|
231
232
|
const { config = {}, customVisualizationConfig = {}, a11yTitle, a11yDescription } = options;
|
|
232
233
|
const colorMapping = supportedControls?.["colorMapping"];
|
|
233
|
-
const validColorMapping =
|
|
234
|
+
const validColorMapping = _compact(colorMapping).map((mapItem) => ({
|
|
234
235
|
predicate: ColorUtils.getColorMappingPredicate(mapItem.id),
|
|
235
236
|
color: mapItem.color,
|
|
236
237
|
}));
|
|
@@ -292,7 +293,7 @@ function enhancePropertiesMetaWithPartialClusteringInfo(data, type) {
|
|
|
292
293
|
}
|
|
293
294
|
return {
|
|
294
295
|
...data,
|
|
295
|
-
...omitBy(dataPropertiesMeta,
|
|
296
|
+
...omitBy(dataPropertiesMeta, _isEmpty),
|
|
296
297
|
};
|
|
297
298
|
}
|
|
298
299
|
function enhanceBaseChartWithClusteringConfiguration(fullConfig) {
|
|
@@ -303,7 +304,7 @@ function enhanceBaseChartWithClusteringConfiguration(fullConfig) {
|
|
|
303
304
|
: (fullConfig?.clustering?.threshold ?? DEFAULT_CLUSTERING_THRESHOLD),
|
|
304
305
|
}
|
|
305
306
|
: {};
|
|
306
|
-
return !
|
|
307
|
+
return !_isEmpty(fullConfig.clustering) && fullConfig.clustering.enabled
|
|
307
308
|
? {
|
|
308
309
|
clusteringConfig: {
|
|
309
310
|
...fullConfig.clustering,
|
package/esm/internal/components/pluggableVisualizations/bubbleChart/PluggableBubbleChart.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PluggableBubbleChart.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/pluggableVisualizations/bubbleChart/PluggableBubbleChart.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"PluggableBubbleChart.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/pluggableVisualizations/bubbleChart/PluggableBubbleChart.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;AAe9C,OAAO,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,CAAC;AAExE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,qBAAa,oBAAqB,SAAQ,kBAAkB;IACxD,YAAY,KAAK,EAAE,aAAa,EAK/B;IAEe,yBAAyB,CACrC,cAAc,EAAE,eAAe,GAChC,OAAO,CAAC,uBAAuB,CAAC,CAqFlC;IAED,UAAmB,wBAAwB,CAAC,OAAO,EAAE,kBAAkB,EAAE,OAAO,EAAE,SAAS,GAAG,IAAI,CA8BjG;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, METRIC } from "../../../constants/bucket.js";
|
|
6
5
|
import { BUBBLE_CHART_SUPPORTED_PROPERTIES } from "../../../constants/supportedProperties.js";
|
|
7
6
|
import { DEFAULT_BUBBLE_CHART_CONFIG } from "../../../constants/uiConfig.js";
|
|
@@ -50,8 +49,8 @@ export class PluggableBubbleChart extends PluggableBaseChart {
|
|
|
50
49
|
this.initializeProperties(props.visualizationProperties);
|
|
51
50
|
}
|
|
52
51
|
getExtendedReferencePoint(referencePoint) {
|
|
53
|
-
const clonedReferencePoint =
|
|
54
|
-
const uiConfig =
|
|
52
|
+
const clonedReferencePoint = _cloneDeep(referencePoint);
|
|
53
|
+
const uiConfig = _cloneDeep(DEFAULT_BUBBLE_CHART_CONFIG);
|
|
55
54
|
let newReferencePoint = {
|
|
56
55
|
...clonedReferencePoint,
|
|
57
56
|
uiConfig,
|
|
@@ -83,7 +82,7 @@ export class PluggableBubbleChart extends PluggableBaseChart {
|
|
|
83
82
|
: allMeasures
|
|
84
83
|
.filter((measure) => ![...measures, ...secondaryMeasures].includes(measure))
|
|
85
84
|
.slice(0, 1);
|
|
86
|
-
|
|
85
|
+
_set(newReferencePoint, BUCKETS, [
|
|
87
86
|
{
|
|
88
87
|
localIdentifier: BucketNames.MEASURES,
|
|
89
88
|
items: measures,
|
package/esm/internal/components/pluggableVisualizations/bulletChart/PluggableBulletChart.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PluggableBulletChart.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/pluggableVisualizations/bulletChart/PluggableBulletChart.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"PluggableBulletChart.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/pluggableVisualizations/bulletChart/PluggableBulletChart.tsx"],"names":[],"mappings":"AAEA,OAAO,EACH,KAAK,QAAQ,EACb,KAAK,kBAAkB,EAI1B,MAAM,qBAAqB,CAAC;AAY7B,OAAO,EAAE,KAAK,WAAW,EAA0B,MAAM,mCAAmC,CAAC;AAC7F,OAAO,EACH,KAAK,WAAW,EAChB,KAAK,YAAY,EACjB,KAAK,iBAAiB,EAEtB,KAAK,uBAAuB,EAC5B,KAAK,eAAe,EACpB,KAAK,SAAS,EACd,KAAK,aAAa,EAClB,KAAK,SAAS,EAEjB,MAAM,sCAAsC,CAAC;AAiB9C,OAAO,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,CAAC;AAKxE;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,qBAAa,oBAAqB,SAAQ,kBAAkB;IACxD,YAAY,KAAK,EAAE,aAAa,EAM/B;IAEe,WAAW,IAAI,SAAS,CAEvC;IAEe,yBAAyB,CACrC,cAAc,EAAE,eAAe,GAChC,OAAO,CAAC,uBAAuB,CAAC,CA8BlC;IAED,OAAO,CAAC,mBAAmB;IAYX,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,CA+BjG;IAED,UAAmB,uBAAuB,CACtC,cAAc,EAAE,eAAe,EAC/B,MAAM,EAAE,YAAY,EACpB,qBAAqB,EAAE,WAAW,EAAE,GACrC,WAAW,EAAE,CAgBf;IAED,UAAmB,iBAAiB,CAAC,OAAO,EAAE,kBAAkB,GAAG,OAAO,CAYzE;IAED,OAAO,CAAC,cAAc;IAWtB,OAAO,CAAC,0BAA0B;IAiDlB,aAAa,CAAC,cAAc,EAAE,eAAe,GAAG,OAAO,CAAC,WAAW,CAAC,CAiBnF;CACJ"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
// (C) 2019-2026 GoodData Corporation
|
|
3
|
-
import { cloneDeep } from "lodash-es";
|
|
4
3
|
import { bucketIsEmpty, insightBucket, newAttributeSort, } from "@gooddata/sdk-model";
|
|
5
4
|
import { BucketNames, VisualizationTypes, getIntersectionPartAfter, } from "@gooddata/sdk-ui";
|
|
5
|
+
import { _cloneDeep } from "@gooddata/util";
|
|
6
6
|
import { BUCKETS, METRIC } from "../../../constants/bucket.js";
|
|
7
7
|
import { BULLET_CHART_SUPPORTED_PROPERTIES } from "../../../constants/supportedProperties.js";
|
|
8
8
|
import { BULLET_CHART_CONFIG_MULTIPLE_DATES } from "../../../constants/uiConfig.js";
|
|
@@ -55,10 +55,10 @@ export class PluggableBulletChart extends PluggableBaseChart {
|
|
|
55
55
|
this.initializeProperties(props.visualizationProperties);
|
|
56
56
|
}
|
|
57
57
|
getUiConfig() {
|
|
58
|
-
return
|
|
58
|
+
return _cloneDeep(BULLET_CHART_CONFIG_MULTIPLE_DATES);
|
|
59
59
|
}
|
|
60
60
|
getExtendedReferencePoint(referencePoint) {
|
|
61
|
-
const clonedReferencePoint =
|
|
61
|
+
const clonedReferencePoint = _cloneDeep(referencePoint);
|
|
62
62
|
let newReferencePoint = {
|
|
63
63
|
...clonedReferencePoint,
|
|
64
64
|
uiConfig: this.getUiConfig(),
|
package/esm/internal/components/pluggableVisualizations/columnChart/PluggableColumnChart.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PluggableColumnChart.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/pluggableVisualizations/columnChart/PluggableColumnChart.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"PluggableColumnChart.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/pluggableVisualizations/columnChart/PluggableColumnChart.tsx"],"names":[],"mappings":"AAQA,OAAO,EAAE,KAAK,WAAW,EAA0B,MAAM,mCAAmC,CAAC;AAC7F,OAAO,EAAE,KAAK,eAAe,EAAE,KAAK,aAAa,EAAE,MAAM,sCAAsC,CAAC;AAIhG,OAAO,EAAE,wBAAwB,EAAE,MAAM,gCAAgC,CAAC;AAE1E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,qBAAa,oBAAqB,SAAQ,wBAAwB;IAC9D,YAAY,KAAK,EAAE,aAAa,EAQ/B;IAEe,0BAA0B,IAAI,MAAM,EAAE,CAErD;IAED,SAAS,CAAC,0BAA0B,CAChC,cAAc,EAAE,eAAe,EAC/B,sBAAsB,EAAE,OAAO,GAChC;QACC,WAAW,EAAE,WAAW,CAAC,aAAa,CAAC,CAAC;QACxC,cAAc,EAAE,WAAW,CAAC,gBAAgB,CAAC,CAAC;KACjD,CAwEA;IAED,OAAO,CAAC,cAAc;IAYN,aAAa,CAAC,cAAc,EAAE,eAAe,GAAG,OAAO,CAAC,WAAW,CAAC,CAsBnF;CACJ"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
// (C) 2019-
|
|
2
|
-
import { isEmpty } from "lodash-es";
|
|
1
|
+
// (C) 2019-2026 GoodData Corporation
|
|
3
2
|
import { newAttributeSort } from "@gooddata/sdk-model";
|
|
4
3
|
import { BucketNames, VisualizationTypes } from "@gooddata/sdk-ui";
|
|
4
|
+
import { _isEmpty } from "@gooddata/util";
|
|
5
5
|
import { AXIS, AXIS_NAME } from "../../../constants/axis.js";
|
|
6
6
|
import { COLUMN_CHART_SUPPORTED_PROPERTIES } from "../../../constants/supportedProperties.js";
|
|
7
7
|
import { newAvailableSortsGroup } from "../../../interfaces/SortConfig.js";
|
|
@@ -68,7 +68,7 @@ export class PluggableColumnChart extends PluggableColumnBarCharts {
|
|
|
68
68
|
const stackBy = getBucketItems(buckets, BucketNames.STACK);
|
|
69
69
|
const measures = getBucketItems(buckets, BucketNames.MEASURES);
|
|
70
70
|
const defaultSort = viewBy.map((vb) => newAttributeSort(vb.localIdentifier, "asc"));
|
|
71
|
-
const isStacked = !
|
|
71
|
+
const isStacked = !_isEmpty(stackBy) || canSortStackTotalValue;
|
|
72
72
|
if (viewBy.length === 2) {
|
|
73
73
|
if (measures.length >= 2 && !canSortStackTotalValue) {
|
|
74
74
|
return {
|
|
@@ -83,19 +83,19 @@ export class PluggableColumnChart extends PluggableColumnBarCharts {
|
|
|
83
83
|
defaultSort,
|
|
84
84
|
availableSorts: [
|
|
85
85
|
newAvailableSortsGroup(viewBy[0].localIdentifier),
|
|
86
|
-
newAvailableSortsGroup(viewBy[1].localIdentifier,
|
|
86
|
+
newAvailableSortsGroup(viewBy[1].localIdentifier, _isEmpty(stackBy) ? measures.map((m) => m.localIdentifier) : [], true, isStacked || measures.length > 1),
|
|
87
87
|
],
|
|
88
88
|
};
|
|
89
89
|
}
|
|
90
|
-
if (!
|
|
90
|
+
if (!_isEmpty(viewBy) && isStacked) {
|
|
91
91
|
return {
|
|
92
92
|
defaultSort,
|
|
93
93
|
availableSorts: [
|
|
94
|
-
newAvailableSortsGroup(viewBy[0].localIdentifier,
|
|
94
|
+
newAvailableSortsGroup(viewBy[0].localIdentifier, _isEmpty(stackBy) ? measures.map((m) => m.localIdentifier) : []),
|
|
95
95
|
],
|
|
96
96
|
};
|
|
97
97
|
}
|
|
98
|
-
if (!
|
|
98
|
+
if (!_isEmpty(viewBy) && !_isEmpty(measures)) {
|
|
99
99
|
return {
|
|
100
100
|
defaultSort,
|
|
101
101
|
availableSorts: [
|
package/esm/internal/components/pluggableVisualizations/comboChart/PluggableComboChart.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PluggableComboChart.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/pluggableVisualizations/comboChart/PluggableComboChart.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"PluggableComboChart.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/pluggableVisualizations/comboChart/PluggableComboChart.tsx"],"names":[],"mappings":"AAEA,OAAO,EACH,KAAK,kBAAkB,EAK1B,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,KAAK,YAAY,EAA4B,MAAM,yBAAyB,CAAC;AAQtF,OAAO,EAAE,KAAK,WAAW,EAA0B,MAAM,mCAAmC,CAAC;AAC7F,OAAO,EAEH,KAAK,YAAY,EACjB,KAAK,uBAAuB,EAC5B,KAAK,eAAe,EACpB,KAAK,SAAS,EACd,KAAK,aAAa,EAClB,KAAK,SAAS,EACd,KAAK,wBAAwB,EAChC,MAAM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