@gooddata/sdk-ui-ext 9.6.0-alpha.6 → 9.6.0-alpha.8
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/esm/dataLoaders/ColorPaletteDataLoader.js +2 -0
- package/esm/dataLoaders/ColorPaletteDataLoader.js.map +1 -1
- package/esm/dataLoaders/InsightDataLoader.js +2 -1
- package/esm/dataLoaders/InsightDataLoader.js.map +1 -1
- package/esm/dataLoaders/UserWorkspaceSettingsDataLoader.js +2 -0
- package/esm/dataLoaders/UserWorkspaceSettingsDataLoader.js.map +1 -1
- package/esm/insightView/InsightError.js +2 -2
- package/esm/insightView/InsightError.js.map +1 -1
- package/esm/insightView/InsightRenderer.js +164 -170
- package/esm/insightView/InsightRenderer.js.map +1 -1
- package/esm/insightView/InsightView.js +11 -8
- package/esm/insightView/InsightView.js.map +1 -1
- package/esm/internal/FluidLayoutDescriptor.js +3 -4
- package/esm/internal/FluidLayoutDescriptor.js.map +1 -1
- package/esm/internal/components/BaseVisualization.js +49 -49
- package/esm/internal/components/BaseVisualization.js.map +1 -1
- package/esm/internal/components/DisabledBubbleMessage.js +3 -3
- package/esm/internal/components/DisabledBubbleMessage.js.map +1 -1
- package/esm/internal/components/VisualizationCatalog.js +5 -1
- package/esm/internal/components/VisualizationCatalog.js.map +1 -1
- package/esm/internal/components/attributeHierarchies/attributeHierarchyDialog/AttributeHierarchyDialogProvider.js +13 -5
- package/esm/internal/components/attributeHierarchies/attributeHierarchyDialog/AttributeHierarchyDialogProvider.js.map +1 -1
- package/esm/internal/components/attributeHierarchies/attributeHierarchyDialog/useBackendProvider.js +9 -3
- package/esm/internal/components/attributeHierarchies/attributeHierarchyDialog/useBackendProvider.js.map +1 -1
- package/esm/internal/components/attributeHierarchies/attributeHierarchyDialog/utils.js +2 -2
- package/esm/internal/components/attributeHierarchies/attributeHierarchyDialog/utils.js.map +1 -1
- package/esm/internal/components/configurationControls/CheckboxControl.js +5 -5
- package/esm/internal/components/configurationControls/CheckboxControl.js.map +1 -1
- package/esm/internal/components/configurationControls/ColumnHeadersPositionControl.js +5 -6
- package/esm/internal/components/configurationControls/ColumnHeadersPositionControl.js.map +1 -1
- package/esm/internal/components/configurationControls/ConfigSection.js +13 -15
- package/esm/internal/components/configurationControls/ConfigSection.js.map +1 -1
- package/esm/internal/components/configurationControls/ConfigSubsection.js +8 -8
- package/esm/internal/components/configurationControls/ConfigSubsection.js.map +1 -1
- package/esm/internal/components/configurationControls/ContinuousLineControl.js +5 -5
- package/esm/internal/components/configurationControls/ContinuousLineControl.js.map +1 -1
- package/esm/internal/components/configurationControls/DataLabelsControl.js +9 -10
- package/esm/internal/components/configurationControls/DataLabelsControl.js.map +1 -1
- package/esm/internal/components/configurationControls/DataPointsControl.js +5 -6
- package/esm/internal/components/configurationControls/DataPointsControl.js.map +1 -1
- package/esm/internal/components/configurationControls/DropdownControl.js +8 -8
- package/esm/internal/components/configurationControls/DropdownControl.js.map +1 -1
- package/esm/internal/components/configurationControls/InputControl.js +13 -12
- package/esm/internal/components/configurationControls/InputControl.js.map +1 -1
- package/esm/internal/components/configurationControls/MetricsPositionControl.js +5 -6
- package/esm/internal/components/configurationControls/MetricsPositionControl.js.map +1 -1
- package/esm/internal/components/configurationControls/MinMaxControl.js +19 -27
- package/esm/internal/components/configurationControls/MinMaxControl.js.map +1 -1
- package/esm/internal/components/configurationControls/OrientationDropdownControl.js +17 -11
- package/esm/internal/components/configurationControls/OrientationDropdownControl.js.map +1 -1
- package/esm/internal/components/configurationControls/PushpinSizeControl.js +1 -2
- package/esm/internal/components/configurationControls/PushpinSizeControl.js.map +1 -1
- package/esm/internal/components/configurationControls/PushpinViewportControl.js +1 -2
- package/esm/internal/components/configurationControls/PushpinViewportControl.js.map +1 -1
- package/esm/internal/components/configurationControls/axis/LabelFormatControl.js +4 -5
- package/esm/internal/components/configurationControls/axis/LabelFormatControl.js.map +1 -1
- package/esm/internal/components/configurationControls/axis/LabelRotationControl.js +4 -5
- package/esm/internal/components/configurationControls/axis/LabelRotationControl.js.map +1 -1
- package/esm/internal/components/configurationControls/axis/LabelSubsection.js +3 -4
- package/esm/internal/components/configurationControls/axis/LabelSubsection.js.map +1 -1
- package/esm/internal/components/configurationControls/axis/NamePositionControl.js +4 -5
- package/esm/internal/components/configurationControls/axis/NamePositionControl.js.map +1 -1
- package/esm/internal/components/configurationControls/axis/NameSubsection.js +3 -4
- package/esm/internal/components/configurationControls/axis/NameSubsection.js.map +1 -1
- package/esm/internal/components/configurationControls/colors/ColorsSection.js +25 -29
- package/esm/internal/components/configurationControls/colors/ColorsSection.js.map +1 -1
- package/esm/internal/components/configurationControls/colors/colorDropdown/ColorDropdown.js +31 -30
- package/esm/internal/components/configurationControls/colors/colorDropdown/ColorDropdown.js.map +1 -1
- package/esm/internal/components/configurationControls/colors/colorDropdown/ColorOverlay.js +12 -15
- package/esm/internal/components/configurationControls/colors/colorDropdown/ColorOverlay.js.map +1 -1
- package/esm/internal/components/configurationControls/colors/colorDropdown/ColorPalette.js +3 -6
- package/esm/internal/components/configurationControls/colors/colorDropdown/ColorPalette.js.map +1 -1
- package/esm/internal/components/configurationControls/colors/colorDropdown/ColorPaletteItem.js +8 -7
- package/esm/internal/components/configurationControls/colors/colorDropdown/ColorPaletteItem.js.map +1 -1
- package/esm/internal/components/configurationControls/colors/colorDropdown/CustomColorButton.js +3 -6
- package/esm/internal/components/configurationControls/colors/colorDropdown/CustomColorButton.js.map +1 -1
- package/esm/internal/components/configurationControls/colors/coloredItemsList/ColoredItem.js +10 -13
- package/esm/internal/components/configurationControls/colors/coloredItemsList/ColoredItem.js.map +1 -1
- package/esm/internal/components/configurationControls/colors/coloredItemsList/ColoredItemsList.js +21 -21
- package/esm/internal/components/configurationControls/colors/coloredItemsList/ColoredItemsList.js.map +1 -1
- package/esm/internal/components/configurationControls/comparison/ComparisonSection.js +2 -3
- package/esm/internal/components/configurationControls/comparison/ComparisonSection.js.map +1 -1
- package/esm/internal/components/configurationControls/comparison/calculation/CalculationControl.js +5 -3
- package/esm/internal/components/configurationControls/comparison/calculation/CalculationControl.js.map +1 -1
- package/esm/internal/components/configurationControls/comparison/indicators/ArrowControl.js +1 -2
- package/esm/internal/components/configurationControls/comparison/indicators/ArrowControl.js.map +1 -1
- package/esm/internal/components/configurationControls/comparison/indicators/colorsControl/ColorCheckbox.js +1 -2
- package/esm/internal/components/configurationControls/comparison/indicators/colorsControl/ColorCheckbox.js.map +1 -1
- package/esm/internal/components/configurationControls/comparison/indicators/colorsControl/ColorResetButton.js +1 -2
- package/esm/internal/components/configurationControls/comparison/indicators/colorsControl/ColorResetButton.js.map +1 -1
- package/esm/internal/components/configurationControls/comparison/indicators/colorsControl/ColorsControl.js +5 -6
- package/esm/internal/components/configurationControls/comparison/indicators/colorsControl/ColorsControl.js.map +1 -1
- package/esm/internal/components/configurationControls/comparison/label/LabelSubSection.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/comparison/label/LabelSubSection.js +7 -8
- package/esm/internal/components/configurationControls/comparison/label/LabelSubSection.js.map +1 -1
- package/esm/internal/components/configurationControls/comparison/values/ComparisonPositionControl.js +1 -2
- package/esm/internal/components/configurationControls/comparison/values/ComparisonPositionControl.js.map +1 -1
- package/esm/internal/components/configurationControls/comparison/values/ValueSubSection.js +1 -2
- package/esm/internal/components/configurationControls/comparison/values/ValueSubSection.js.map +1 -1
- package/esm/internal/components/configurationControls/interactions/InteractionsSection.js +1 -2
- package/esm/internal/components/configurationControls/interactions/InteractionsSection.js.map +1 -1
- package/esm/internal/components/configurationControls/legend/LegendSection.js +10 -11
- package/esm/internal/components/configurationControls/legend/LegendSection.js.map +1 -1
- package/esm/internal/components/configurationControls/total/TotalSection.js +2 -3
- package/esm/internal/components/configurationControls/total/TotalSection.js.map +1 -1
- package/esm/internal/components/configurationPanels/BaseChartConfigurationPanel.js +9 -9
- package/esm/internal/components/configurationPanels/BaseChartConfigurationPanel.js.map +1 -1
- package/esm/internal/components/configurationPanels/BubbleChartConfigurationPanel.js +4 -5
- package/esm/internal/components/configurationPanels/BubbleChartConfigurationPanel.js.map +1 -1
- package/esm/internal/components/configurationPanels/BulletChartConfigurationPanel.js +1 -1
- package/esm/internal/components/configurationPanels/BulletChartConfigurationPanel.js.map +1 -1
- package/esm/internal/components/configurationPanels/ConfigurationPanelContent.js +16 -15
- package/esm/internal/components/configurationPanels/ConfigurationPanelContent.js.map +1 -1
- package/esm/internal/components/configurationPanels/GeoPushpinConfigurationPanel.js +1 -2
- package/esm/internal/components/configurationPanels/GeoPushpinConfigurationPanel.js.map +1 -1
- package/esm/internal/components/configurationPanels/HeatMapConfigurationPanel.js +3 -4
- package/esm/internal/components/configurationPanels/HeatMapConfigurationPanel.js.map +1 -1
- package/esm/internal/components/configurationPanels/LineChartBasedConfigurationPanel.js +1 -2
- package/esm/internal/components/configurationPanels/LineChartBasedConfigurationPanel.js.map +1 -1
- package/esm/internal/components/configurationPanels/ScatterPlotConfigurationPanel.js +5 -6
- package/esm/internal/components/configurationPanels/ScatterPlotConfigurationPanel.js.map +1 -1
- package/esm/internal/components/configurationPanels/WaterfallChartConfigurationPanel.js +3 -5
- package/esm/internal/components/configurationPanels/WaterfallChartConfigurationPanel.js.map +1 -1
- package/esm/internal/components/dialogs/embedInsightDialog/EmbedInsightDialog.js +12 -7
- package/esm/internal/components/dialogs/embedInsightDialog/EmbedInsightDialog.js.map +1 -1
- package/esm/internal/components/dialogs/userManagementDialogs/DeleteLink.js +1 -1
- package/esm/internal/components/dialogs/userManagementDialogs/DeleteLink.js.map +1 -1
- package/esm/internal/components/dialogs/userManagementDialogs/Details/UserDetailsView.js +3 -3
- package/esm/internal/components/dialogs/userManagementDialogs/Details/UserDetailsView.js.map +1 -1
- package/esm/internal/components/dialogs/userManagementDialogs/Details/UserGroupDetailsView.js +1 -1
- package/esm/internal/components/dialogs/userManagementDialogs/Details/UserGroupDetailsView.js.map +1 -1
- package/esm/internal/components/dialogs/userManagementDialogs/Details/detailsHooks.js +4 -1
- package/esm/internal/components/dialogs/userManagementDialogs/Details/detailsHooks.js.map +1 -1
- package/esm/internal/components/dialogs/userManagementDialogs/TelemetryContext.js +1 -1
- package/esm/internal/components/dialogs/userManagementDialogs/TelemetryContext.js.map +1 -1
- package/esm/internal/components/dialogs/userManagementDialogs/UserGroupEditDialog.js +1 -1
- package/esm/internal/components/dialogs/userManagementDialogs/UserGroupEditDialog.js.map +1 -1
- package/esm/internal/components/dialogs/userManagementDialogs/UserGroups/AsyncSelectComponents.js +4 -4
- package/esm/internal/components/dialogs/userManagementDialogs/UserGroups/AsyncSelectComponents.js.map +1 -1
- package/esm/internal/components/dialogs/userManagementDialogs/UserGroups/backend/loadUserGroupOptionsPromise.js +1 -1
- package/esm/internal/components/dialogs/userManagementDialogs/UserGroups/backend/loadUserGroupOptionsPromise.js.map +1 -1
- package/esm/internal/components/dialogs/userManagementDialogs/Users/AsyncSelectComponents.js +4 -4
- package/esm/internal/components/dialogs/userManagementDialogs/Users/AsyncSelectComponents.js.map +1 -1
- package/esm/internal/components/dialogs/userManagementDialogs/Users/backend/loadUsersOptionsPromise.js +1 -1
- package/esm/internal/components/dialogs/userManagementDialogs/Users/backend/loadUsersOptionsPromise.js.map +1 -1
- package/esm/internal/components/dialogs/userManagementDialogs/Workspace/AsyncSelectComponents.js +4 -4
- package/esm/internal/components/dialogs/userManagementDialogs/Workspace/AsyncSelectComponents.js.map +1 -1
- package/esm/internal/components/dialogs/userManagementDialogs/Workspace/WorkspaceItem/HierarchicalPermissionsDropdown.js +1 -1
- package/esm/internal/components/dialogs/userManagementDialogs/Workspace/WorkspaceItem/HierarchicalPermissionsDropdown.js.map +1 -1
- package/esm/internal/components/dialogs/userManagementDialogs/Workspace/WorkspaceItem/PermissionsDropdown.js +1 -1
- package/esm/internal/components/dialogs/userManagementDialogs/Workspace/WorkspaceItem/PermissionsDropdown.js.map +1 -1
- package/esm/internal/components/dialogs/userManagementDialogs/Workspace/WorkspaceItem/QuestionMarkIcon.js +1 -2
- package/esm/internal/components/dialogs/userManagementDialogs/Workspace/WorkspaceItem/QuestionMarkIcon.js.map +1 -1
- package/esm/internal/components/dialogs/userManagementDialogs/Workspace/backend/loadWorkspaceOptionsPromise.js +1 -1
- package/esm/internal/components/dialogs/userManagementDialogs/Workspace/backend/loadWorkspaceOptionsPromise.js.map +1 -1
- package/esm/internal/components/dialogs/userManagementDialogs/dialogHooks.js +8 -8
- package/esm/internal/components/dialogs/userManagementDialogs/dialogHooks.js.map +1 -1
- package/esm/internal/components/dialogs/userManagementDialogs/utils.js +1 -1
- package/esm/internal/components/dialogs/userManagementDialogs/utils.js.map +1 -1
- package/esm/internal/components/pluggableVisualizations/AbstractPluggableVisualization.js +74 -48
- package/esm/internal/components/pluggableVisualizations/AbstractPluggableVisualization.js.map +1 -1
- package/esm/internal/components/pluggableVisualizations/PluggableColumnBarCharts.js +6 -11
- package/esm/internal/components/pluggableVisualizations/PluggableColumnBarCharts.js.map +1 -1
- package/esm/internal/components/pluggableVisualizations/PluggableUnknownChart.js +5 -3
- package/esm/internal/components/pluggableVisualizations/PluggableUnknownChart.js.map +1 -1
- package/esm/internal/components/pluggableVisualizations/UnknownVisualizationDescriptor.js +2 -1
- package/esm/internal/components/pluggableVisualizations/UnknownVisualizationDescriptor.js.map +1 -1
- package/esm/internal/components/pluggableVisualizations/areaChart/AreaChartDescriptor.js +18 -21
- package/esm/internal/components/pluggableVisualizations/areaChart/AreaChartDescriptor.js.map +1 -1
- package/esm/internal/components/pluggableVisualizations/areaChart/PluggableAreaChart.js +19 -16
- package/esm/internal/components/pluggableVisualizations/areaChart/PluggableAreaChart.js.map +1 -1
- package/esm/internal/components/pluggableVisualizations/barChart/BarChartDescriptor.js +18 -21
- package/esm/internal/components/pluggableVisualizations/barChart/BarChartDescriptor.js.map +1 -1
- package/esm/internal/components/pluggableVisualizations/barChart/PluggableBarChart.js +9 -3
- package/esm/internal/components/pluggableVisualizations/barChart/PluggableBarChart.js.map +1 -1
- package/esm/internal/components/pluggableVisualizations/barChart/sortHelpers.js +4 -6
- package/esm/internal/components/pluggableVisualizations/barChart/sortHelpers.js.map +1 -1
- package/esm/internal/components/pluggableVisualizations/baseChart/PluggableBaseChart.js +57 -25
- package/esm/internal/components/pluggableVisualizations/baseChart/PluggableBaseChart.js.map +1 -1
- package/esm/internal/components/pluggableVisualizations/baseChart/insightIntrospection.js +2 -3
- package/esm/internal/components/pluggableVisualizations/baseChart/insightIntrospection.js.map +1 -1
- package/esm/internal/components/pluggableVisualizations/bubbleChart/BubbleChartDescriptor.js +19 -22
- package/esm/internal/components/pluggableVisualizations/bubbleChart/BubbleChartDescriptor.js.map +1 -1
- package/esm/internal/components/pluggableVisualizations/bubbleChart/PluggableBubbleChart.js +5 -3
- package/esm/internal/components/pluggableVisualizations/bubbleChart/PluggableBubbleChart.js.map +1 -1
- package/esm/internal/components/pluggableVisualizations/bulletChart/BulletChartDescriptor.js +19 -22
- package/esm/internal/components/pluggableVisualizations/bulletChart/BulletChartDescriptor.js.map +1 -1
- package/esm/internal/components/pluggableVisualizations/bulletChart/PluggableBulletChart.js +13 -5
- package/esm/internal/components/pluggableVisualizations/bulletChart/PluggableBulletChart.js.map +1 -1
- package/esm/internal/components/pluggableVisualizations/chartCodeGenUtils.js +12 -6
- package/esm/internal/components/pluggableVisualizations/chartCodeGenUtils.js.map +1 -1
- package/esm/internal/components/pluggableVisualizations/columnChart/ColumnChartDescriptor.js +18 -21
- package/esm/internal/components/pluggableVisualizations/columnChart/ColumnChartDescriptor.js.map +1 -1
- package/esm/internal/components/pluggableVisualizations/columnChart/PluggableColumnChart.js +8 -2
- package/esm/internal/components/pluggableVisualizations/columnChart/PluggableColumnChart.js.map +1 -1
- package/esm/internal/components/pluggableVisualizations/comboChart/ComboChartDescriptor.js +18 -21
- package/esm/internal/components/pluggableVisualizations/comboChart/ComboChartDescriptor.js.map +1 -1
- package/esm/internal/components/pluggableVisualizations/comboChart/PluggableComboChart.js +53 -36
- package/esm/internal/components/pluggableVisualizations/comboChart/PluggableComboChart.js.map +1 -1
- package/esm/internal/components/pluggableVisualizations/comboChart/PluggableComboChartDeprecated.js +6 -5
- package/esm/internal/components/pluggableVisualizations/comboChart/PluggableComboChartDeprecated.js.map +1 -1
- package/esm/internal/components/pluggableVisualizations/dependencyWheelChart/DependencyWheelChartDescriptor.js +18 -21
- package/esm/internal/components/pluggableVisualizations/dependencyWheelChart/DependencyWheelChartDescriptor.js.map +1 -1
- package/esm/internal/components/pluggableVisualizations/donutChart/DonutChartDescriptor.js +17 -20
- package/esm/internal/components/pluggableVisualizations/donutChart/DonutChartDescriptor.js.map +1 -1
- package/esm/internal/components/pluggableVisualizations/drillDownUtil.js +1 -1
- package/esm/internal/components/pluggableVisualizations/drillDownUtil.js.map +1 -1
- package/esm/internal/components/pluggableVisualizations/funnelChart/FunnelChartDescriptor.js +17 -20
- package/esm/internal/components/pluggableVisualizations/funnelChart/FunnelChartDescriptor.js.map +1 -1
- package/esm/internal/components/pluggableVisualizations/funnelChart/PluggableFunnelChart.js +1 -2
- package/esm/internal/components/pluggableVisualizations/funnelChart/PluggableFunnelChart.js.map +1 -1
- package/esm/internal/components/pluggableVisualizations/geoChart/GeoPushpinChartDescriptor.js +30 -33
- package/esm/internal/components/pluggableVisualizations/geoChart/GeoPushpinChartDescriptor.js.map +1 -1
- package/esm/internal/components/pluggableVisualizations/geoChart/PluggableGeoPushpinChart.js +62 -39
- package/esm/internal/components/pluggableVisualizations/geoChart/PluggableGeoPushpinChart.js.map +1 -1
- package/esm/internal/components/pluggableVisualizations/geoChart/geoConfigCodeGenerator.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/geoChart/geoConfigCodeGenerator.js +13 -8
- package/esm/internal/components/pluggableVisualizations/geoChart/geoConfigCodeGenerator.js.map +1 -1
- package/esm/internal/components/pluggableVisualizations/headline/HeadlineDescriptor.js +23 -25
- package/esm/internal/components/pluggableVisualizations/headline/HeadlineDescriptor.js.map +1 -1
- package/esm/internal/components/pluggableVisualizations/headline/PluggableHeadline.js +29 -20
- package/esm/internal/components/pluggableVisualizations/headline/PluggableHeadline.js.map +1 -1
- package/esm/internal/components/pluggableVisualizations/headline/headlineBucketConversion.js +2 -2
- package/esm/internal/components/pluggableVisualizations/headline/headlineBucketConversion.js.map +1 -1
- package/esm/internal/components/pluggableVisualizations/headline/headlineBucketHelper.js +1 -1
- package/esm/internal/components/pluggableVisualizations/headline/headlineBucketHelper.js.map +1 -1
- package/esm/internal/components/pluggableVisualizations/headline/headlineConfigFromInsight.js +10 -7
- package/esm/internal/components/pluggableVisualizations/headline/headlineConfigFromInsight.js.map +1 -1
- package/esm/internal/components/pluggableVisualizations/heatMap/HeatmapDescriptor.js +18 -21
- package/esm/internal/components/pluggableVisualizations/heatMap/HeatmapDescriptor.js.map +1 -1
- package/esm/internal/components/pluggableVisualizations/heatMap/PluggableHeatmap.js +13 -5
- package/esm/internal/components/pluggableVisualizations/heatMap/PluggableHeatmap.js.map +1 -1
- package/esm/internal/components/pluggableVisualizations/lineChart/LineChartDescriptor.js +18 -21
- package/esm/internal/components/pluggableVisualizations/lineChart/LineChartDescriptor.js.map +1 -1
- package/esm/internal/components/pluggableVisualizations/lineChart/PluggableLineChart.js +17 -12
- package/esm/internal/components/pluggableVisualizations/lineChart/PluggableLineChart.js.map +1 -1
- package/esm/internal/components/pluggableVisualizations/pieChart/PieChartDescriptor.js +17 -20
- package/esm/internal/components/pluggableVisualizations/pieChart/PieChartDescriptor.js.map +1 -1
- package/esm/internal/components/pluggableVisualizations/pieChart/PluggablePieChart.js +19 -9
- package/esm/internal/components/pluggableVisualizations/pieChart/PluggablePieChart.js.map +1 -1
- package/esm/internal/components/pluggableVisualizations/pivotTable/PivotTableDescriptor.js +26 -29
- package/esm/internal/components/pluggableVisualizations/pivotTable/PivotTableDescriptor.js.map +1 -1
- package/esm/internal/components/pluggableVisualizations/pivotTable/PluggablePivotTable.js +143 -66
- package/esm/internal/components/pluggableVisualizations/pivotTable/PluggablePivotTable.js.map +1 -1
- package/esm/internal/components/pluggableVisualizations/pivotTable/pivotTableAdditionalFactories.js +1 -1
- package/esm/internal/components/pluggableVisualizations/pivotTable/pivotTableAdditionalFactories.js.map +1 -1
- package/esm/internal/components/pluggableVisualizations/pivotTable/pivotTableConfigFromInsight.js +12 -6
- package/esm/internal/components/pluggableVisualizations/pivotTable/pivotTableConfigFromInsight.js.map +1 -1
- package/esm/internal/components/pluggableVisualizations/pivotTable/sortItemsHelpers.js +7 -4
- package/esm/internal/components/pluggableVisualizations/pivotTable/sortItemsHelpers.js.map +1 -1
- package/esm/internal/components/pluggableVisualizations/pivotTable/widthItemsHelpers.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/pivotTable/widthItemsHelpers.js +5 -1
- package/esm/internal/components/pluggableVisualizations/pivotTable/widthItemsHelpers.js.map +1 -1
- package/esm/internal/components/pluggableVisualizations/pyramidChart/PluggablePyramidChart.js +1 -2
- package/esm/internal/components/pluggableVisualizations/pyramidChart/PluggablePyramidChart.js.map +1 -1
- package/esm/internal/components/pluggableVisualizations/pyramidChart/PyramidChartDescriptor.js +17 -20
- package/esm/internal/components/pluggableVisualizations/pyramidChart/PyramidChartDescriptor.js.map +1 -1
- package/esm/internal/components/pluggableVisualizations/sankeyChart/PluggableSankeyChart.js +5 -3
- package/esm/internal/components/pluggableVisualizations/sankeyChart/PluggableSankeyChart.js.map +1 -1
- package/esm/internal/components/pluggableVisualizations/sankeyChart/SankeyChartDescriptor.js +18 -21
- package/esm/internal/components/pluggableVisualizations/sankeyChart/SankeyChartDescriptor.js.map +1 -1
- package/esm/internal/components/pluggableVisualizations/scatterPlot/PluggableScatterPlot.js +5 -3
- package/esm/internal/components/pluggableVisualizations/scatterPlot/PluggableScatterPlot.js.map +1 -1
- package/esm/internal/components/pluggableVisualizations/scatterPlot/ScatterPlotDescriptor.js +18 -21
- package/esm/internal/components/pluggableVisualizations/scatterPlot/ScatterPlotDescriptor.js.map +1 -1
- package/esm/internal/components/pluggableVisualizations/treeMap/PluggableTreemap.js +8 -8
- package/esm/internal/components/pluggableVisualizations/treeMap/PluggableTreemap.js.map +1 -1
- package/esm/internal/components/pluggableVisualizations/treeMap/TreemapDescriptor.js +17 -20
- package/esm/internal/components/pluggableVisualizations/treeMap/TreemapDescriptor.js.map +1 -1
- package/esm/internal/components/pluggableVisualizations/waterfallChart/PluggableWaterfallChart.js +23 -15
- package/esm/internal/components/pluggableVisualizations/waterfallChart/PluggableWaterfallChart.js.map +1 -1
- package/esm/internal/components/pluggableVisualizations/waterfallChart/WaterfallChartDescriptor.js +17 -20
- package/esm/internal/components/pluggableVisualizations/waterfallChart/WaterfallChartDescriptor.js.map +1 -1
- package/esm/internal/components/pluggableVisualizations/xirr/PluggableXirr.js +37 -26
- package/esm/internal/components/pluggableVisualizations/xirr/PluggableXirr.js.map +1 -1
- package/esm/internal/components/pluggableVisualizations/xirr/XirrDescriptor.js +14 -16
- package/esm/internal/components/pluggableVisualizations/xirr/XirrDescriptor.js.map +1 -1
- package/esm/internal/components/pluggableVisualizations/xirr/xirrBucketHelper.js +10 -2
- package/esm/internal/components/pluggableVisualizations/xirr/xirrBucketHelper.js.map +1 -1
- package/esm/internal/constants/axis.js +33 -8
- package/esm/internal/constants/axis.js.map +1 -1
- package/esm/internal/constants/uiConfig.js +580 -55
- package/esm/internal/constants/uiConfig.js.map +1 -1
- package/esm/internal/interfaces/SortConfig.js +7 -2
- package/esm/internal/interfaces/SortConfig.js.map +1 -1
- package/esm/internal/interfaces/Visualization.js +2 -0
- package/esm/internal/interfaces/Visualization.js.map +1 -1
- package/esm/internal/utils/bucketHelper.js +47 -42
- package/esm/internal/utils/bucketHelper.js.map +1 -1
- package/esm/internal/utils/bucketRules.js +12 -17
- package/esm/internal/utils/bucketRules.js.map +1 -1
- package/esm/internal/utils/colors.d.ts.map +1 -1
- package/esm/internal/utils/colors.js +11 -6
- package/esm/internal/utils/colors.js.map +1 -1
- package/esm/internal/utils/comparisonHelper.js +4 -7
- package/esm/internal/utils/comparisonHelper.js.map +1 -1
- package/esm/internal/utils/controlsHelper.js +15 -12
- package/esm/internal/utils/controlsHelper.js.map +1 -1
- package/esm/internal/utils/dimensions.js +4 -6
- package/esm/internal/utils/dimensions.js.map +1 -1
- package/esm/internal/utils/drillablePredicates.js +2 -2
- package/esm/internal/utils/drillablePredicates.js.map +1 -1
- package/esm/internal/utils/embeddingCodeGenerator/getReactEmbeddingCodeGenerator.js +7 -9
- package/esm/internal/utils/embeddingCodeGenerator/getReactEmbeddingCodeGenerator.js.map +1 -1
- package/esm/internal/utils/embeddingCodeGenerator/insightToPropsConverter/convenience.js +5 -9
- package/esm/internal/utils/embeddingCodeGenerator/insightToPropsConverter/convenience.js.map +1 -1
- package/esm/internal/utils/embeddingInsightViewCodeGenerator/insightViewCodeGenerator.js +1 -1
- package/esm/internal/utils/embeddingInsightViewCodeGenerator/insightViewCodeGenerator.js.map +1 -1
- package/esm/internal/utils/embeddingInsightViewCodeGenerator/insightViewConfig.js +1 -2
- package/esm/internal/utils/embeddingInsightViewCodeGenerator/insightViewConfig.js.map +1 -1
- package/esm/internal/utils/internalIntlProvider.js +1 -1
- package/esm/internal/utils/internalIntlProvider.js.map +1 -1
- package/esm/internal/utils/propertiesHelper.js +84 -60
- package/esm/internal/utils/propertiesHelper.js.map +1 -1
- package/esm/internal/utils/sort.d.ts.map +1 -1
- package/esm/internal/utils/sort.js +29 -23
- package/esm/internal/utils/sort.js.map +1 -1
- package/esm/internal/utils/translations.js +1 -1
- package/esm/internal/utils/translations.js.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/areaChartUiConfigHelper.js +7 -10
- package/esm/internal/utils/uiConfigHelpers/areaChartUiConfigHelper.js.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/baseChartUiConfigHelper.js +12 -15
- package/esm/internal/utils/uiConfigHelpers/baseChartUiConfigHelper.js.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/bulletChartUiConfigHelper.js +20 -6
- package/esm/internal/utils/uiConfigHelpers/bulletChartUiConfigHelper.js.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/columnBarChartUiConfigHelper.js +1 -2
- package/esm/internal/utils/uiConfigHelpers/columnBarChartUiConfigHelper.js.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/comboChartUiConfigHelper.js +5 -7
- package/esm/internal/utils/uiConfigHelpers/comboChartUiConfigHelper.js.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/geoPushpinChartUiConfigHelper.js +5 -6
- package/esm/internal/utils/uiConfigHelpers/geoPushpinChartUiConfigHelper.js.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/headlineUiConfigHelper.js +31 -18
- package/esm/internal/utils/uiConfigHelpers/headlineUiConfigHelper.js.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/lineChartUiConfigHelper.js +7 -9
- package/esm/internal/utils/uiConfigHelpers/lineChartUiConfigHelper.js.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/pieChartUiConfigHelper.js +7 -9
- package/esm/internal/utils/uiConfigHelpers/pieChartUiConfigHelper.js.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/pivotTableUiConfigHelper.js +40 -16
- package/esm/internal/utils/uiConfigHelpers/pivotTableUiConfigHelper.js.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/sankeyChartUiConfigHelper.js +3 -4
- package/esm/internal/utils/uiConfigHelpers/sankeyChartUiConfigHelper.js.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/treemapUiConfigHelper.js +7 -9
- package/esm/internal/utils/uiConfigHelpers/treemapUiConfigHelper.js.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/waterfallChartUiConfigHelper.js +8 -10
- package/esm/internal/utils/uiConfigHelpers/waterfallChartUiConfigHelper.js.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/xirrUiConfigHelper.js +5 -3
- package/esm/internal/utils/uiConfigHelpers/xirrUiConfigHelper.js.map +1 -1
- package/package.json +20 -25
|
@@ -23,24 +23,25 @@ export function getSupportedPropertiesControls(visualizationControlsProperties,
|
|
|
23
23
|
return {};
|
|
24
24
|
}
|
|
25
25
|
export function hasColorMapping(properties) {
|
|
26
|
-
|
|
27
|
-
return !!((_a = properties === null || properties === void 0 ? void 0 : properties.controls) === null || _a === void 0 ? void 0 : _a.colorMapping);
|
|
26
|
+
return !!properties?.controls?.colorMapping;
|
|
28
27
|
}
|
|
29
28
|
export function setSecondaryMeasures(referencePoint, axisName) {
|
|
30
|
-
var _a, _b, _c;
|
|
31
29
|
if (!axisName) {
|
|
32
30
|
return referencePoint;
|
|
33
31
|
}
|
|
34
32
|
const newReferencePoint = cloneDeep(referencePoint);
|
|
35
33
|
const path = `${PROPERTY_CONTROLS}.${axisName}`;
|
|
36
|
-
const secondaryAxisProperties =
|
|
37
|
-
const buckets =
|
|
34
|
+
const secondaryAxisProperties = newReferencePoint?.properties?.controls?.[axisName];
|
|
35
|
+
const buckets = newReferencePoint?.buckets ?? [];
|
|
38
36
|
const allMeasures = getMeasureItems(buckets);
|
|
39
37
|
const secondaryMeasures = getAllMeasuresShowOnSecondaryAxis(buckets);
|
|
40
38
|
if (!secondaryAxisProperties && !secondaryMeasures.length) {
|
|
41
39
|
return referencePoint;
|
|
42
40
|
}
|
|
43
|
-
const secondaryAxis =
|
|
41
|
+
const secondaryAxis = {
|
|
42
|
+
...secondaryAxisProperties,
|
|
43
|
+
measures: getItemsLocalIdentifiers(secondaryMeasures),
|
|
44
|
+
};
|
|
44
45
|
const axis = {
|
|
45
46
|
0: AXIS.PRIMARY,
|
|
46
47
|
[allMeasures.length]: AXIS.SECONDARY,
|
|
@@ -53,8 +54,7 @@ export function isEmptyObject(obj) {
|
|
|
53
54
|
return obj && keys(obj).length === 0;
|
|
54
55
|
}
|
|
55
56
|
export function getSupportedProperties(visualizationProperties, supportedPropertiesList) {
|
|
56
|
-
|
|
57
|
-
const controls = (_a = visualizationProperties === null || visualizationProperties === void 0 ? void 0 : visualizationProperties.controls) !== null && _a !== void 0 ? _a : {};
|
|
57
|
+
const controls = visualizationProperties?.controls ?? {};
|
|
58
58
|
const supportedControls = getSupportedPropertiesControls(controls, supportedPropertiesList);
|
|
59
59
|
return isEmpty(supportedControls)
|
|
60
60
|
? {}
|
|
@@ -63,58 +63,74 @@ export function getSupportedProperties(visualizationProperties, supportedPropert
|
|
|
63
63
|
};
|
|
64
64
|
}
|
|
65
65
|
export function getReferencePointWithSupportedProperties(referencePoint, supportedPropertiesList) {
|
|
66
|
-
var _a, _b;
|
|
67
66
|
const supportedControlsProperties = referencePoint.properties
|
|
68
67
|
? getSupportedPropertiesControls(referencePoint.properties.controls, supportedPropertiesList)
|
|
69
68
|
: {};
|
|
70
69
|
if (isEmpty(supportedControlsProperties)) {
|
|
71
|
-
const sortItems =
|
|
70
|
+
const sortItems = referencePoint.properties?.sortItems;
|
|
72
71
|
const sortItemsExpand = sortItems && !isEmpty(sortItems) ? { sortItems } : {};
|
|
73
|
-
return
|
|
72
|
+
return {
|
|
73
|
+
...referencePoint,
|
|
74
|
+
properties: {
|
|
75
|
+
...sortItemsExpand,
|
|
76
|
+
},
|
|
77
|
+
};
|
|
74
78
|
}
|
|
75
|
-
const buckets =
|
|
79
|
+
const buckets = referencePoint?.buckets ?? [];
|
|
76
80
|
const stackCount = getItemsCount(buckets, BucketNames.STACK);
|
|
77
81
|
const stackMeasuresToPercent = Boolean(supportedControlsProperties.stackMeasuresToPercent);
|
|
78
82
|
if (!stackCount && stackMeasuresToPercent) {
|
|
79
83
|
supportedControlsProperties.stackMeasures = true;
|
|
80
84
|
}
|
|
81
|
-
return
|
|
85
|
+
return {
|
|
86
|
+
...referencePoint,
|
|
87
|
+
properties: {
|
|
88
|
+
...referencePoint.properties,
|
|
89
|
+
controls: supportedControlsProperties,
|
|
90
|
+
},
|
|
91
|
+
};
|
|
82
92
|
}
|
|
83
93
|
export function getReferencePointWithTotalLabelsInitialized(referencePoint) {
|
|
84
|
-
|
|
85
|
-
const dataLabelVisibility = (_b = (_a = referencePoint.properties.controls) === null || _a === void 0 ? void 0 : _a.dataLabels) === null || _b === void 0 ? void 0 : _b.visible;
|
|
94
|
+
const dataLabelVisibility = referencePoint.properties.controls?.dataLabels?.visible;
|
|
86
95
|
const stacks = getStackItems(referencePoint.buckets);
|
|
87
96
|
// Initialize total labels visibility with data labels visibility value.
|
|
88
97
|
// Initialize if data labels visibility is defined and total labels visibility
|
|
89
98
|
// is not defined and if current chart configuration allows configuring total labels.
|
|
90
99
|
if (!isNil(dataLabelVisibility) &&
|
|
91
|
-
isNil(
|
|
100
|
+
isNil(referencePoint.properties.controls?.dataLabels?.totalsVisible) &&
|
|
92
101
|
!isStackingToPercent(referencePoint.properties) &&
|
|
93
102
|
(stacks.length || isStackingMeasure(referencePoint.properties))) {
|
|
94
|
-
return
|
|
103
|
+
return {
|
|
104
|
+
...referencePoint,
|
|
105
|
+
properties: {
|
|
106
|
+
...referencePoint.properties,
|
|
107
|
+
controls: {
|
|
108
|
+
...referencePoint.properties.controls,
|
|
109
|
+
dataLabels: {
|
|
110
|
+
...referencePoint.properties.controls.dataLabels,
|
|
111
|
+
totalsVisible: dataLabelVisibility,
|
|
112
|
+
},
|
|
113
|
+
},
|
|
114
|
+
},
|
|
115
|
+
};
|
|
95
116
|
}
|
|
96
117
|
return referencePoint;
|
|
97
118
|
}
|
|
98
119
|
export function isStackingMeasure(properties) {
|
|
99
|
-
|
|
100
|
-
return (_b = (_a = properties === null || properties === void 0 ? void 0 : properties.controls) === null || _a === void 0 ? void 0 : _a.stackMeasures) !== null && _b !== void 0 ? _b : false;
|
|
120
|
+
return properties?.controls?.stackMeasures ?? false;
|
|
101
121
|
}
|
|
102
122
|
export function isStackingToPercent(properties) {
|
|
103
|
-
|
|
104
|
-
return (_b = (_a = properties === null || properties === void 0 ? void 0 : properties.controls) === null || _a === void 0 ? void 0 : _a.stackMeasuresToPercent) !== null && _b !== void 0 ? _b : false;
|
|
123
|
+
return properties?.controls?.stackMeasuresToPercent ?? false;
|
|
105
124
|
}
|
|
106
125
|
export function isTotalSectionEnabled(properties) {
|
|
107
|
-
|
|
108
|
-
return (_c = (_b = (_a = properties === null || properties === void 0 ? void 0 : properties.controls) === null || _a === void 0 ? void 0 : _a.total) === null || _b === void 0 ? void 0 : _b.enabled) !== null && _c !== void 0 ? _c : true;
|
|
126
|
+
return properties?.controls?.total?.enabled ?? true;
|
|
109
127
|
}
|
|
110
128
|
export function isDualAxisOrSomeSecondaryAxisMeasure(extReferencePoint, secondaryMeasures) {
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
secondaryMeasures.some((item) => item === null || item === void 0 ? void 0 : item.showOnSecondaryAxis));
|
|
129
|
+
return ((extReferencePoint?.properties?.controls?.dualAxis ?? true) ||
|
|
130
|
+
secondaryMeasures.some((item) => item?.showOnSecondaryAxis));
|
|
114
131
|
}
|
|
115
132
|
export function removeImmutableOptionalStackingProperties(referencePoint, supportedPropertiesList) {
|
|
116
|
-
|
|
117
|
-
const buckets = (_a = referencePoint === null || referencePoint === void 0 ? void 0 : referencePoint.buckets) !== null && _a !== void 0 ? _a : [];
|
|
133
|
+
const buckets = referencePoint?.buckets ?? [];
|
|
118
134
|
let immutableProperties = [];
|
|
119
135
|
if (getItemsCount(buckets, BucketNames.MEASURES) <= 1) {
|
|
120
136
|
immutableProperties = OPTIONAL_STACKING_PROPERTIES;
|
|
@@ -137,41 +153,48 @@ const AXIS_NAME_POSITION_MAPPING = {
|
|
|
137
153
|
const AXIS_TYPES = ["xaxis", "yaxis", "secondary_xaxis", "secondary_yaxis"];
|
|
138
154
|
export function getHighchartsAxisNameConfiguration(controlProperties, enableAxisNameConfiguration = false) {
|
|
139
155
|
const axisProperties = AXIS_TYPES.reduce((result, axis) => {
|
|
140
|
-
|
|
141
|
-
const axisNameConfig = (_a = controlProperties === null || controlProperties === void 0 ? void 0 : controlProperties[axis]) === null || _a === void 0 ? void 0 : _a.name;
|
|
156
|
+
const axisNameConfig = controlProperties?.[axis]?.name;
|
|
142
157
|
if (isEmpty(axisNameConfig)) {
|
|
143
158
|
return result;
|
|
144
159
|
}
|
|
145
160
|
axisNameConfig.position =
|
|
146
161
|
AXIS_NAME_POSITION_MAPPING[enableAxisNameConfiguration ? axisNameConfig.position : AXIS_NAME_POSITION_MAPPING.auto];
|
|
147
|
-
result[axis] =
|
|
162
|
+
result[axis] = {
|
|
163
|
+
...controlProperties[axis],
|
|
164
|
+
name: axisNameConfig,
|
|
165
|
+
};
|
|
148
166
|
return result;
|
|
149
167
|
}, {});
|
|
150
|
-
return
|
|
168
|
+
return {
|
|
169
|
+
...controlProperties,
|
|
170
|
+
...axisProperties,
|
|
171
|
+
};
|
|
151
172
|
}
|
|
152
173
|
export function getDataPointsConfiguration(controlProperties, enableHidingOfDataPoints = false) {
|
|
153
|
-
var _a;
|
|
154
174
|
if (enableHidingOfDataPoints) {
|
|
155
|
-
const dataPointsVisible =
|
|
156
|
-
return
|
|
175
|
+
const dataPointsVisible = controlProperties.dataPoints?.visible;
|
|
176
|
+
return {
|
|
177
|
+
...controlProperties,
|
|
178
|
+
dataPoints: {
|
|
157
179
|
visible: dataPointsVisible !== undefined ? dataPointsVisible : "auto",
|
|
158
|
-
}
|
|
180
|
+
},
|
|
181
|
+
};
|
|
159
182
|
}
|
|
160
|
-
return
|
|
183
|
+
return {
|
|
184
|
+
...controlProperties,
|
|
185
|
+
dataPoints: {
|
|
161
186
|
visible: undefined,
|
|
162
|
-
}
|
|
187
|
+
},
|
|
188
|
+
};
|
|
163
189
|
}
|
|
164
190
|
export function getColumnWidthsFromProperties(visualizationProperties) {
|
|
165
|
-
|
|
166
|
-
return (_a = visualizationProperties === null || visualizationProperties === void 0 ? void 0 : visualizationProperties.controls) === null || _a === void 0 ? void 0 : _a.columnWidths;
|
|
191
|
+
return visualizationProperties?.controls?.columnWidths;
|
|
167
192
|
}
|
|
168
193
|
export function getMeasureGroupDimensionFromProperties(visualizationProperties) {
|
|
169
|
-
|
|
170
|
-
return (_a = visualizationProperties === null || visualizationProperties === void 0 ? void 0 : visualizationProperties.controls) === null || _a === void 0 ? void 0 : _a.measureGroupDimension;
|
|
194
|
+
return visualizationProperties?.controls?.measureGroupDimension;
|
|
171
195
|
}
|
|
172
196
|
export function getColumnHeadersPositionFromProperties(visualizationProperties) {
|
|
173
|
-
|
|
174
|
-
return (_a = visualizationProperties === null || visualizationProperties === void 0 ? void 0 : visualizationProperties.controls) === null || _a === void 0 ? void 0 : _a.columnHeadersPosition;
|
|
197
|
+
return visualizationProperties?.controls?.columnHeadersPosition;
|
|
175
198
|
}
|
|
176
199
|
export function getLegendConfiguration(controlProperties, insight) {
|
|
177
200
|
const legendPosition = getLegendPosition(controlProperties, insight);
|
|
@@ -186,20 +209,18 @@ export function getLegendConfigurationDashboardsEnv(controlProperties, options,
|
|
|
186
209
|
return controlProperties;
|
|
187
210
|
}
|
|
188
211
|
export function getChartSupportedControls(controlProperties, insight, settings) {
|
|
189
|
-
return flow((c) => cloneDeep(c
|
|
212
|
+
return flow((c) => cloneDeep(c ?? {}), (c) => getLegendConfiguration(c, insight), (c) => getHighchartsAxisNameConfiguration(c, settings?.enableAxisNameConfiguration), (c) => getDataPointsConfiguration(c, settings?.enableHidingOfDataPoints))(controlProperties);
|
|
190
213
|
}
|
|
191
214
|
export function getChartSupportedControlsDashboardsEnv(controlProperties, options, settings) {
|
|
192
|
-
return flow((c) => cloneDeep(c
|
|
215
|
+
return flow((c) => cloneDeep(c ?? {}), (c) => getLegendConfigurationDashboardsEnv(c, options, settings?.enableKDWidgetCustomHeight), (c) => getHighchartsAxisNameConfiguration(c, settings?.enableAxisNameConfiguration), (c) => getDataPointsConfiguration(c, settings?.enableHidingOfDataPoints))(controlProperties);
|
|
193
216
|
}
|
|
194
217
|
function getLegendPosition(controlProperties, insight) {
|
|
195
|
-
|
|
196
|
-
const legendPosition = (_b = (_a = controlProperties === null || controlProperties === void 0 ? void 0 : controlProperties.legend) === null || _a === void 0 ? void 0 : _a.position) !== null && _b !== void 0 ? _b : "auto";
|
|
218
|
+
const legendPosition = controlProperties?.legend?.position ?? "auto";
|
|
197
219
|
return legendPosition === "auto" && isStacked(insight) ? "right" : legendPosition;
|
|
198
220
|
}
|
|
199
221
|
function getLegendPositionDashboardsEnv(controlProperties, options) {
|
|
200
|
-
|
|
201
|
-
const
|
|
202
|
-
const width = (_c = options.dimensions) === null || _c === void 0 ? void 0 : _c.width;
|
|
222
|
+
const legendPosition = controlProperties?.legend?.position ?? "auto";
|
|
223
|
+
const width = options.dimensions?.width;
|
|
203
224
|
return width !== undefined && width <= getMaxWidthForCollapsedLegend(legendPosition)
|
|
204
225
|
? "top"
|
|
205
226
|
: legendPosition;
|
|
@@ -214,14 +235,17 @@ function getMaxWidthForCollapsedLegend(legendPosition) {
|
|
|
214
235
|
}
|
|
215
236
|
export function getPivotTableProperties(settings, properties) {
|
|
216
237
|
const { enablePivotTableTransposition, enableColumnHeadersPosition } = settings;
|
|
217
|
-
return
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
238
|
+
return {
|
|
239
|
+
...(enablePivotTableTransposition === true
|
|
240
|
+
? {
|
|
241
|
+
measureGroupDimension: getMeasureGroupDimensionFromProperties(properties),
|
|
242
|
+
}
|
|
243
|
+
: {}),
|
|
244
|
+
...(enableColumnHeadersPosition === true
|
|
245
|
+
? {
|
|
246
|
+
columnHeadersPosition: getColumnHeadersPositionFromProperties(properties),
|
|
247
|
+
}
|
|
248
|
+
: {}),
|
|
249
|
+
};
|
|
226
250
|
}
|
|
227
251
|
//# sourceMappingURL=propertiesHelper.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"propertiesHelper.js","sourceRoot":"","sources":["../../../src/internal/utils/propertiesHelper.ts"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,oIAAoI;AACpI,OAAO,GAAG,MAAM,eAAe,CAAC;AAChC,OAAO,IAAI,MAAM,gBAAgB,CAAC;AAClC,OAAO,GAAG,MAAM,eAAe,CAAC;AAChC,OA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1F;AAED,wBAAgB,UAAU,CAAC,cAAc,EAAE,QAAQ,CAAC,uBAAuB,CAAC,GAAG,uBAAuB,CAiBrG;AAoGD;;;;;;;;;;;GAWG;AACH,wBAAgB,mBAAmB,CAC/B,sBAAsB,GAAE,oBAAoB,EAAO,EACnD,YAAY,GAAE,SAAS,EAAO,EAC9B,cAAc,GAAE,oBAAoB,EAAO,EAC3C,WAAW,GAAE,SAAS,EAAO,GAC9B,SAAS,EAAE,CA8Bb;AAED,wBAAgB,gCAAgC,CAC5C,gBAAgB,EAAE,WAAW,EAAE,EAC/B,kBAAkB,EAAE,WAAW,EAAE,EACjC,IAAI,EAAE,SAAS,GAChB,MAAM,CAUR"}
|
|
@@ -14,7 +14,11 @@ export function getAttributeSortItem(identifier, direction = "asc", aggregation
|
|
|
14
14
|
};
|
|
15
15
|
return {
|
|
16
16
|
attributeSortItem: aggregation
|
|
17
|
-
?
|
|
17
|
+
? {
|
|
18
|
+
...attributeSortItemWithoutAggregation,
|
|
19
|
+
aggregation: "sum",
|
|
20
|
+
}
|
|
21
|
+
: attributeSortItemWithoutAggregation,
|
|
18
22
|
};
|
|
19
23
|
}
|
|
20
24
|
function getDefaultBarChartSort(insight, canSortStackTotalValue = false) {
|
|
@@ -63,7 +67,7 @@ function getDefaultHeatmapSortFromBuckets(viewBy) {
|
|
|
63
67
|
}
|
|
64
68
|
function getDefaultHeatmapSort(insight) {
|
|
65
69
|
const sorts = insightSorts(insight);
|
|
66
|
-
if (
|
|
70
|
+
if (sorts?.length > 0) {
|
|
67
71
|
return sorts;
|
|
68
72
|
}
|
|
69
73
|
return getDefaultHeatmapSortFromBuckets(insightBucket(insight, BucketNames.VIEW));
|
|
@@ -83,8 +87,7 @@ function getDefaultPieDonutPyramidFunnelSort(insight) {
|
|
|
83
87
|
*/
|
|
84
88
|
// Consider dissolving this function into individual components
|
|
85
89
|
export function createSorts(type, insight, supportedControls, featureFlags) {
|
|
86
|
-
|
|
87
|
-
if (((_a = insight.insight.sorts) === null || _a === void 0 ? void 0 : _a.length) > 0) {
|
|
90
|
+
if (insight.insight.sorts?.length > 0) {
|
|
88
91
|
return insight.insight.sorts;
|
|
89
92
|
}
|
|
90
93
|
switch (type) {
|
|
@@ -109,32 +112,34 @@ export function createSorts(type, insight, supportedControls, featureFlags) {
|
|
|
109
112
|
return [];
|
|
110
113
|
}
|
|
111
114
|
function areAllMeasuresOnSingleAxis(insight, secondaryYAxis) {
|
|
112
|
-
var _a, _b;
|
|
113
115
|
const measureCount = insightMeasures(insight).length;
|
|
114
|
-
const numberOfMeasureOnSecondaryAxis =
|
|
116
|
+
const numberOfMeasureOnSecondaryAxis = secondaryYAxis.measures?.length ?? 0;
|
|
115
117
|
return numberOfMeasureOnSecondaryAxis === 0 || measureCount === numberOfMeasureOnSecondaryAxis;
|
|
116
118
|
}
|
|
117
119
|
function canSortStackTotalValue(insight, supportedControls) {
|
|
118
|
-
|
|
119
|
-
const
|
|
120
|
-
const secondaryAxis = (_b = supportedControls === null || supportedControls === void 0 ? void 0 : supportedControls.secondary_yaxis) !== null && _b !== void 0 ? _b : { measures: [] };
|
|
120
|
+
const stackMeasures = supportedControls?.stackMeasures ?? false;
|
|
121
|
+
const secondaryAxis = supportedControls?.secondary_yaxis ?? { measures: [] };
|
|
121
122
|
const allMeasuresOnSingleAxis = areAllMeasuresOnSingleAxis(insight, secondaryAxis);
|
|
122
123
|
return stackMeasures && allMeasuresOnSingleAxis;
|
|
123
124
|
}
|
|
124
125
|
export function getBucketItemIdentifiers(referencePoint) {
|
|
125
|
-
|
|
126
|
-
const buckets = (_a = referencePoint === null || referencePoint === void 0 ? void 0 : referencePoint.buckets) !== null && _a !== void 0 ? _a : [];
|
|
126
|
+
const buckets = referencePoint?.buckets ?? [];
|
|
127
127
|
return buckets.reduce((localIdentifiers, bucket) => {
|
|
128
|
-
|
|
129
|
-
const items = (_a = bucket === null || bucket === void 0 ? void 0 : bucket.items) !== null && _a !== void 0 ? _a : [];
|
|
128
|
+
const items = bucket?.items ?? [];
|
|
130
129
|
localIdentifiers.push(...items.map((item) => item.localIdentifier));
|
|
131
130
|
return localIdentifiers;
|
|
132
131
|
}, []);
|
|
133
132
|
}
|
|
134
133
|
export function removeSort(referencePoint) {
|
|
135
134
|
if (referencePoint.properties) {
|
|
136
|
-
const properties = omitBy(
|
|
137
|
-
|
|
135
|
+
const properties = omitBy({
|
|
136
|
+
...referencePoint.properties,
|
|
137
|
+
sortItems: null,
|
|
138
|
+
}, isNil);
|
|
139
|
+
return {
|
|
140
|
+
...referencePoint,
|
|
141
|
+
properties,
|
|
142
|
+
};
|
|
138
143
|
}
|
|
139
144
|
return referencePoint;
|
|
140
145
|
}
|
|
@@ -143,9 +148,8 @@ function validateMeasureSortLocators(sortLocators, availableLocators) {
|
|
|
143
148
|
sortLocators.every((sortLocator, locatorIndex) => isEqual(sortLocator, availableLocators[locatorIndex])));
|
|
144
149
|
}
|
|
145
150
|
function isValidMeasureSort(measureSort, availableSort) {
|
|
146
|
-
var _a;
|
|
147
151
|
return (availableSort &&
|
|
148
|
-
!!
|
|
152
|
+
!!availableSort.metricSorts?.find((availableMetricSort) => validateMeasureSortLocators(availableMetricSort.locators, sortMeasureLocators(measureSort))));
|
|
149
153
|
}
|
|
150
154
|
function handleDifferentOrder(currentSort, availableSortGroup, previousAvailableSorts) {
|
|
151
155
|
const correspondingGroupIndex = previousAvailableSorts.findIndex((previousSortGroup) => areObjRefsEqual(previousSortGroup.itemId, availableSortGroup.itemId));
|
|
@@ -165,27 +169,26 @@ function reuseAttributeValueSortItem(currentSortItem, availableSortGroup) {
|
|
|
165
169
|
return newAttributeSort(availableSortGroup.itemId.localIdentifier, currentSortDirection);
|
|
166
170
|
}
|
|
167
171
|
function reuseAttributeAreaSortItem(currentSortItem, availableSortGroup) {
|
|
168
|
-
var _a;
|
|
169
172
|
const currentSortDirection = sortDirection(currentSortItem);
|
|
170
173
|
// reuse it whole
|
|
171
174
|
if (availableSortGroup.attributeSort.areaSortEnabled) {
|
|
172
175
|
return newAttributeAreaSort(availableSortGroup.itemId.localIdentifier, currentSortDirection);
|
|
173
176
|
}
|
|
174
177
|
// reuse numeric sort type
|
|
175
|
-
const availableMetricSort =
|
|
178
|
+
const availableMetricSort = availableSortGroup.metricSorts?.[0];
|
|
176
179
|
if (availableMetricSort) {
|
|
177
180
|
return newMeasureSortFromLocators(availableMetricSort.locators, currentSortDirection);
|
|
178
181
|
}
|
|
182
|
+
return undefined;
|
|
179
183
|
}
|
|
180
184
|
function reuseMetricSortItem(currentSortItem, availableSortGroup) {
|
|
181
|
-
var _a;
|
|
182
185
|
const currentSortDirection = sortDirection(currentSortItem);
|
|
183
186
|
// reuse it whole
|
|
184
187
|
if (isValidMeasureSort(currentSortItem, availableSortGroup)) {
|
|
185
188
|
return currentSortItem;
|
|
186
189
|
}
|
|
187
190
|
// reuse direction
|
|
188
|
-
const availableMetricSort =
|
|
191
|
+
const availableMetricSort = availableSortGroup.metricSorts?.[0];
|
|
189
192
|
if (availableMetricSort) {
|
|
190
193
|
return newMeasureSortFromLocators(availableMetricSort.locators, currentSortDirection);
|
|
191
194
|
}
|
|
@@ -193,6 +196,7 @@ function reuseMetricSortItem(currentSortItem, availableSortGroup) {
|
|
|
193
196
|
if (availableSortGroup.attributeSort.areaSortEnabled) {
|
|
194
197
|
return newAttributeAreaSort(availableSortGroup.itemId.localIdentifier, currentSortDirection);
|
|
195
198
|
}
|
|
199
|
+
return undefined;
|
|
196
200
|
}
|
|
197
201
|
function reuseSortItemType(currentSortItem, availableSortGroup) {
|
|
198
202
|
if (currentSortItem) {
|
|
@@ -206,6 +210,7 @@ function reuseSortItemType(currentSortItem, availableSortGroup) {
|
|
|
206
210
|
return reuseMetricSortItem(currentSortItem, availableSortGroup);
|
|
207
211
|
}
|
|
208
212
|
}
|
|
213
|
+
return undefined;
|
|
209
214
|
}
|
|
210
215
|
/**
|
|
211
216
|
* Validates the previous sort in context of new available sorts for new buckets state.
|
|
@@ -232,16 +237,16 @@ export function validateCurrentSort(previousAvailableSorts = [], previousSort =
|
|
|
232
237
|
sortsToReuse = modifiedSorts;
|
|
233
238
|
return reusedItem;
|
|
234
239
|
}
|
|
240
|
+
return undefined;
|
|
235
241
|
});
|
|
236
242
|
return availableSorts
|
|
237
243
|
.map((availableSortGroup, index) => {
|
|
238
|
-
var _a;
|
|
239
244
|
if (completelyReused[index]) {
|
|
240
245
|
return completelyReused[index];
|
|
241
246
|
}
|
|
242
247
|
const currentSortItem = sortsToReuse[index];
|
|
243
248
|
// reuse at least type of sort item
|
|
244
|
-
return
|
|
249
|
+
return reuseSortItemType(currentSortItem, availableSortGroup) ?? defaultSort[index];
|
|
245
250
|
})
|
|
246
251
|
.filter(Boolean);
|
|
247
252
|
}
|
|
@@ -252,5 +257,6 @@ export function getCustomSortDisabledExplanation(relevantMeasures, relevantAttri
|
|
|
252
257
|
if (relevantAttributes.length === 0) {
|
|
253
258
|
return getTranslation(messages.explanationAttribute.id, intl);
|
|
254
259
|
}
|
|
260
|
+
return undefined;
|
|
255
261
|
}
|
|
256
262
|
//# sourceMappingURL=sort.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sort.js","sourceRoot":"","sources":["../../../src/internal/utils/sort.ts"],"names":[],"mappings":"AAEA,OAAO,OAAO,MAAM,mBAAmB,CAAC;AACxC,OAAO,KAAK,MAAM,iBAAiB,CAAC;AACpC,OAAO,MAAM,MAAM,kBAAkB,CAAC;AACtC,OAAO,OAAO,MAAM,mBAAmB,CAAC;AACxC,OAAO,EACH,gBAAgB,EAIhB,aAAa,EACb,eAAe,EACf,YAAY,EACZ,gBAAgB,EAChB,cAAc,EACd,0BAA0B,EAG1B,oBAAoB,EAEpB,mBAAmB,EACnB,oBAAoB,EACpB,aAAa,EACb,mBAAmB,EAEnB,aAAa,EACb,eAAe,GAElB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAEnE,OAAO,EAAE,c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AK,CAAC,EAAE;QACjC,OAAO,cAAc,CAAC,QAAQ,CAAC,oBAAoB,CAAC,EAAE,EAAE,IAAI,CAAC,CAAC;KACjE;IAED,OAAO,SAAS,CAAC;AACrB,CAAC"}
|
|
@@ -18,7 +18,7 @@ export function getTranslatedDropdownItems(dropdownItems, intl) {
|
|
|
18
18
|
return dropdownItems.map((item) => {
|
|
19
19
|
const translatedTitleProp = item.title ? { title: getTranslation(item.title, intl) } : {};
|
|
20
20
|
const translatedInfoProp = item.info ? { info: getTranslation(item.info, intl) } : {};
|
|
21
|
-
return
|
|
21
|
+
return { ...item, ...translatedTitleProp, ...translatedInfoProp };
|
|
22
22
|
});
|
|
23
23
|
}
|
|
24
24
|
const sdkUiExtTranslations = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"translations.js","sourceRoot":"","sources":["../../../src/internal/utils/translations.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,iBAAiB,CAAC;AACpC,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,EAAE,WAAW,IAAI,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAEpE,OAAO,IAAI,MAAM,4BAA4B,CAAC;AAC9C,OAAO,IAAI,MAAM,4BAA4B,CAAC;AAC9C,OAAO,IAAI,MAAM,4BAA4B,CAAC;AAC9C,OAAO,IAAI,MAAM,4BAA4B,CAAC;AAC9C,OAAO,IAAI,MAAM,4BAA4B,CAAC;AAC9C,OAAO,IAAI,MAAM,4BAA4B,CAAC;AAC9C,OAAO,IAAI,MAAM,4BAA4B,CAAC;AAC9C,OAAO,IAAI,MAAM,4BAA4B,CAAC;AAC9C,OAAO,MAAM,MAAM,8BAA8B,CAAC;AAClD,OAAO,IAAI,MAAM,4BAA4B,CAAC;AAG9C,MAAM,UAAU,cAAc,CAC1B,aAAqB,EACrB,IAAe,EACf,SAAoC,EAAE;IAEtC,OAAO,IAAI,CAAC,CAAC,CAAC,IAAI,CAA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getTranslation(messages.measureStack.id, intl);
|
|
32
32
|
}
|
|
33
33
|
function setAreaChartBucketWarningMessages(referencePoint, messageConfig) {
|
|
34
|
-
|
|
35
|
-
const
|
|
36
|
-
const updatedUiConfig = referencePoint === null || referencePoint === void 0 ? void 0 : referencePoint.uiConfig;
|
|
34
|
+
const buckets = referencePoint?.buckets ?? [];
|
|
35
|
+
const updatedUiConfig = referencePoint?.uiConfig;
|
|
37
36
|
return buckets.reduce((uiConfig, bucket) => {
|
|
38
|
-
|
|
39
|
-
const
|
|
40
|
-
const
|
|
41
|
-
const
|
|
42
|
-
const canAddItem = bucketUiConfig === null || bucketUiConfig === void 0 ? void 0 : bucketUiConfig.canAddItems;
|
|
37
|
+
const localIdentifier = bucket?.localIdentifier ?? "";
|
|
38
|
+
const bucketUiConfig = uiConfig?.buckets?.[localIdentifier];
|
|
39
|
+
const isEnabled = bucketUiConfig?.enabled ?? false;
|
|
40
|
+
const canAddItem = bucketUiConfig?.canAddItems;
|
|
43
41
|
// skip disabled buckets
|
|
44
42
|
if (canAddItem || !isEnabled) {
|
|
45
43
|
return uiConfig;
|
|
@@ -49,9 +47,8 @@ function setAreaChartBucketWarningMessages(referencePoint, messageConfig) {
|
|
|
49
47
|
}, updatedUiConfig);
|
|
50
48
|
}
|
|
51
49
|
export function setAreaChartUiConfig(referencePoint, intl, visualizationType) {
|
|
52
|
-
var _a;
|
|
53
50
|
const referencePointConfigured = cloneDeep(referencePoint);
|
|
54
|
-
const buckets =
|
|
51
|
+
const buckets = referencePointConfigured?.buckets ?? [];
|
|
55
52
|
const categoriesCount = getItemsCount(buckets, BucketNames.VIEW);
|
|
56
53
|
const stackItems = getStackItems(buckets, [ATTRIBUTE, DATE]);
|
|
57
54
|
const viewItems = getViewItems(buckets, [ATTRIBUTE, DATE]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"areaChartUiConfigHelper.js","sourceRoot":"","sources":["../../../../src/internal/utils/uiConfigHelpers/areaChartUiConfigHel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