@gooddata/sdk-ui-ext 9.6.0-alpha.2 → 9.6.0-alpha.21
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/AttributeDropdownBody.js +1 -1
- package/esm/internal/components/attributeHierarchies/attributeHierarchyDialog/AttributeDropdownBody.js.map +1 -1
- package/esm/internal/components/attributeHierarchies/attributeHierarchyDialog/AttributeHierarchyDialogProvider.d.ts.map +1 -1
- package/esm/internal/components/attributeHierarchies/attributeHierarchyDialog/AttributeHierarchyDialogProvider.js +16 -6
- package/esm/internal/components/attributeHierarchies/attributeHierarchyDialog/AttributeHierarchyDialogProvider.js.map +1 -1
- package/esm/internal/components/attributeHierarchies/attributeHierarchyDialog/useBackendProvider.d.ts.map +1 -1
- package/esm/internal/components/attributeHierarchies/attributeHierarchyDialog/useBackendProvider.js +12 -4
- 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
- package/styles/css/main.css +7 -7
- package/styles/internal/css/attribute_hierarchies.css +7 -7
- package/styles/internal/scss/attribute_hierarchies.scss +2 -2
|
@@ -61,8 +61,7 @@ export class PluggableTreemap extends PluggableBaseChart {
|
|
|
61
61
|
return getMeasureItems(limitedBuckets);
|
|
62
62
|
}
|
|
63
63
|
getBucketItemsWithMultipleDates(newReferencePoint) {
|
|
64
|
-
|
|
65
|
-
const buckets = (_a = newReferencePoint === null || newReferencePoint === void 0 ? void 0 : newReferencePoint.buckets) !== null && _a !== void 0 ? _a : [];
|
|
64
|
+
const buckets = newReferencePoint?.buckets ?? [];
|
|
66
65
|
let measures = this.getBucketMeasures(buckets);
|
|
67
66
|
let stacks = getStackItems(buckets, [ATTRIBUTE, DATE]);
|
|
68
67
|
const nonStackAttributes = getAttributeItemsWithoutStacks(buckets, [ATTRIBUTE, DATE]);
|
|
@@ -78,8 +77,7 @@ export class PluggableTreemap extends PluggableBaseChart {
|
|
|
78
77
|
return { measures, view, stacks };
|
|
79
78
|
}
|
|
80
79
|
getBucketItems(newReferencePoint) {
|
|
81
|
-
|
|
82
|
-
const buckets = (_a = newReferencePoint === null || newReferencePoint === void 0 ? void 0 : newReferencePoint.buckets) !== null && _a !== void 0 ? _a : [];
|
|
80
|
+
const buckets = newReferencePoint?.buckets ?? [];
|
|
83
81
|
let measures = this.getBucketMeasures(buckets);
|
|
84
82
|
let stacks = getStackItems(buckets);
|
|
85
83
|
const nonStackAttributes = getAttributeItemsWithoutStacks(buckets);
|
|
@@ -115,7 +113,7 @@ export class PluggableTreemap extends PluggableBaseChart {
|
|
|
115
113
|
]);
|
|
116
114
|
}
|
|
117
115
|
getTreemapUIConfig(referencePoint) {
|
|
118
|
-
const buckets = referencePoint
|
|
116
|
+
const buckets = referencePoint?.buckets;
|
|
119
117
|
const allowsMultipleDates = this.isMultipleDatesEnabled();
|
|
120
118
|
const nonStackAttributes = allowsMultipleDates
|
|
121
119
|
? getAttributeItemsWithoutStacks(buckets, [ATTRIBUTE, DATE])
|
|
@@ -125,7 +123,10 @@ export class PluggableTreemap extends PluggableBaseChart {
|
|
|
125
123
|
}
|
|
126
124
|
getExtendedReferencePoint(referencePoint) {
|
|
127
125
|
const clonedReferencePoint = cloneDeep(referencePoint);
|
|
128
|
-
let newReferencePoint =
|
|
126
|
+
let newReferencePoint = {
|
|
127
|
+
...clonedReferencePoint,
|
|
128
|
+
uiConfig: this.getTreemapUIConfig(referencePoint),
|
|
129
|
+
};
|
|
129
130
|
newReferencePoint = removeAllArithmeticMeasuresFromDerived(newReferencePoint);
|
|
130
131
|
newReferencePoint = removeAllDerivedMeasures(newReferencePoint);
|
|
131
132
|
this.configureBuckets(newReferencePoint);
|
|
@@ -145,13 +146,12 @@ export class PluggableTreemap extends PluggableBaseChart {
|
|
|
145
146
|
return modifyBucketsAttributesForDrillDown(withFilters, drillDownContext.drillDefinition);
|
|
146
147
|
}
|
|
147
148
|
renderConfigurationPanel(insight, options) {
|
|
148
|
-
var _a;
|
|
149
149
|
const configPanelElement = this.getConfigPanelElement();
|
|
150
150
|
if (configPanelElement) {
|
|
151
151
|
const panelConfig = {
|
|
152
152
|
supportsAttributeHierarchies: this.backendCapabilities.supportsAttributeHierarchies,
|
|
153
153
|
};
|
|
154
|
-
this.renderFun(React.createElement(TreeMapConfigurationPanel, { locale: this.locale, references: this.references, properties: this.visualizationProperties, propertiesMeta: this.propertiesMeta, insight: insight, colors: this.colors, pushData: this.handlePushData, type: this.type, isError: this.getIsError(), isLoading: this.isLoading, featureFlags: this.featureFlags, panelConfig: panelConfig, configurationPanelRenderers:
|
|
154
|
+
this.renderFun(React.createElement(TreeMapConfigurationPanel, { locale: this.locale, references: this.references, properties: this.visualizationProperties, propertiesMeta: this.propertiesMeta, insight: insight, colors: this.colors, pushData: this.handlePushData, type: this.type, isError: this.getIsError(), isLoading: this.isLoading, featureFlags: this.featureFlags, panelConfig: panelConfig, configurationPanelRenderers: options.custom?.configurationPanelRenderers }), configPanelElement);
|
|
155
155
|
}
|
|
156
156
|
}
|
|
157
157
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PluggableTreemap.js","sourceRoot":"","sources":["../../../../../src/internal/components/pluggableVisualizations/treeMap/PluggableTreemap.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,SAAS,MAAM,qBAAqB,CAAC;AAC5C,OAAO,OAAO,MAAM,mBAAmB,CAAC;AACxC,OAAO,GAAG,MAAM,eAAe,CAAC;AAChC,OAAO,IAAI,MAAM,gBAAgB,CAAC;AAClC,OAAO,EAAE,WAAW,EAAe,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAChF,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AACxE,OAAO,EAAE,4BAA4B,EAAE,MAAM,2CAA2C,CAAC;AAEzF,OAAO,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AAUvF,OAAO,EAAE,2BAA2B,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAE/F,OAAO,EACH,8BAA8B,EAC9B,eAAe,EACf,aAAa,EACb,gBAAgB,EAChB,8BAA8B,EAC9B,sCAAsC,EACtC,wBAAwB,EACxB,eAAe,GAClB,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAAE,wCAAwC,EAAE,MAAM,oCAAoC,CAAC;AAC9F,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAEpD,OAAO,EAAE,kBAAkB,EAAE,MAAM,yDAAyD,CAAC;AAC7F,OAAO,yBAAyB,MAAM,wDAAwD,CAAC;AAC/F,OAAO,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,CAAC;AAExE,OAAO,EACH,+BAA+B,EAC/B,mCAAmC,EACnC,0BAA0B,GAC7B,MAAM,qBAAqB,CAAC;AAE7B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,MAAM,OAAO,gBAAiB,SAAQ,kBAAkB;IACpD,YAAY,KAAoB;QAC5B,KAAK,CAAC,KAAK,CAAC,CAAC;QACb,IAAI,CAAC,IAAI,GAAG,kBAAkB,CAAC,OAAO,CAAC;QACvC,IAAI,CAAC,uBAAuB,GAAG,4BAA4B,CAAC;QAC5D,IAAI,CAAC,oBAAoB,CAAC,KAAK,CAAC,uBAAuB,CAAC,CAAC;IAC7D,CAAC;IAEO,iBAAiB,CAAC,UAA0B,EAAE;QAClD,MAAM,cAAc,GAAG,8BAA8B,CAAC,OAAO,EAAE,iBAAiB,EAAE,IAAI,CAAC,CAAC;QACxF,OAAO,eAAe,CAAC,cAAc,CAAC,CAAC;IAC3C,CAAC;IAEO,+BAA+B,CAAC,iBAA0C
|
|
1
|
+
{"version":3,"file":"PluggableTreemap.js","sourceRoot":"","sources":["../../../../../src/internal/components/pluggableVisualizations/treeMap/PluggableTreemap.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,SAAS,MAAM,qBAAqB,CAAC;AAC5C,OAAO,OAAO,MAAM,mBAAmB,CAAC;AACxC,OAAO,GAAG,MAAM,eAAe,CAAC;AAChC,OAAO,IAAI,MAAM,gBAAgB,CAAC;AAClC,OAAO,EAAE,WAAW,EAAe,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAChF,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AACxE,OAAO,EAAE,4BAA4B,EAAE,MAAM,2CAA2C,CAAC;AAEzF,OAAO,EAAE,iBAAiB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iltersToInsight, modifyBucketsAttributesForDrillDown, r
|
|
|
5
5
|
import { executionConfigInsightConversion, filtersInsightConversion, getInsightToPropsConverter, getReactEmbeddingCodeGenerator, localeInsightConversion, multipleAttributesOrMeasuresBucketConversion, singleAttributeBucketConversion, } from "../../../utils/embeddingCodeGenerator/index.js";
|
|
6
6
|
import { chartAdditionalFactories, chartConfigInsightConversion } from "../chartCodeGenUtils.js";
|
|
7
7
|
export class TreemapDescriptor extends BigChartDescriptor {
|
|
8
|
-
constructor() {
|
|
9
|
-
super(...arguments);
|
|
10
|
-
this.getEmbeddingCode = getReactEmbeddingCodeGenerator({
|
|
11
|
-
component: {
|
|
12
|
-
importType: "named",
|
|
13
|
-
name: "Treemap",
|
|
14
|
-
package: "@gooddata/sdk-ui-charts",
|
|
15
|
-
},
|
|
16
|
-
insightToProps: getInsightToPropsConverter({
|
|
17
|
-
measures: multipleAttributesOrMeasuresBucketConversion("measures", BucketNames.MEASURES),
|
|
18
|
-
viewBy: singleAttributeBucketConversion("viewBy", BucketNames.VIEW),
|
|
19
|
-
segmentBy: singleAttributeBucketConversion("segmentBy", BucketNames.SEGMENT),
|
|
20
|
-
filters: filtersInsightConversion("filters"),
|
|
21
|
-
config: chartConfigInsightConversion("config"),
|
|
22
|
-
locale: localeInsightConversion("locale"),
|
|
23
|
-
execConfig: executionConfigInsightConversion("execConfig"),
|
|
24
|
-
}),
|
|
25
|
-
additionalFactories: chartAdditionalFactories(),
|
|
26
|
-
});
|
|
27
|
-
}
|
|
28
8
|
getFactory() {
|
|
29
9
|
return (params) => new PluggableTreemap(params);
|
|
30
10
|
}
|
|
@@ -32,6 +12,23 @@ export class TreemapDescriptor extends BigChartDescriptor {
|
|
|
32
12
|
const withFilters = this.addFilters(source, drillDownContext.drillDefinition, drillDownContext.event, backendSupportsElementUris);
|
|
33
13
|
return modifyBucketsAttributesForDrillDown(withFilters, drillDownContext.drillDefinition);
|
|
34
14
|
}
|
|
15
|
+
getEmbeddingCode = getReactEmbeddingCodeGenerator({
|
|
16
|
+
component: {
|
|
17
|
+
importType: "named",
|
|
18
|
+
name: "Treemap",
|
|
19
|
+
package: "@gooddata/sdk-ui-charts",
|
|
20
|
+
},
|
|
21
|
+
insightToProps: getInsightToPropsConverter({
|
|
22
|
+
measures: multipleAttributesOrMeasuresBucketConversion("measures", BucketNames.MEASURES),
|
|
23
|
+
viewBy: singleAttributeBucketConversion("viewBy", BucketNames.VIEW),
|
|
24
|
+
segmentBy: singleAttributeBucketConversion("segmentBy", BucketNames.SEGMENT),
|
|
25
|
+
filters: filtersInsightConversion("filters"),
|
|
26
|
+
config: chartConfigInsightConversion("config"),
|
|
27
|
+
locale: localeInsightConversion("locale"),
|
|
28
|
+
execConfig: executionConfigInsightConversion("execConfig"),
|
|
29
|
+
}),
|
|
30
|
+
additionalFactories: chartAdditionalFactories(),
|
|
31
|
+
});
|
|
35
32
|
getMeta() {
|
|
36
33
|
return {
|
|
37
34
|
documentationUrl: "https://sdk.gooddata.com/gooddata-ui/docs/treemap_component.html",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TreemapDescriptor.js","sourceRoot":"","sources":["../../../../../src/internal/components/pluggableVisualizations/treeMap/TreemapDescriptor.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAe,MAAM,kBAAkB,CAAC;AAO5D,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAC9D,OAAO,EACH,+BAA+B,EAC/B,mCAAmC,EACnC,0BAA0B,GAC7B,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EACH,gCAAgC,EAChC,wBAAwB,EACxB,0BAA0B,EAC1B,8BAA8B,EAC9B,uBAAuB,EACvB,4CAA4C,EAC5C,+BAA+B,GAClC,MAAM,gDAAgD,CAAC;AACxD,OAAO,EAAE,wBAAwB,EAAE,4BAA4B,EAAE,MAAM,yBAAyB,CAAC;AAEjG,MAAM,OAAO,iBAAkB,SAAQ,kBAAkB;
|
|
1
|
+
{"version":3,"file":"TreemapDescriptor.js","sourceRoot":"","sources":["../../../../../src/internal/components/pluggableVisualizations/treeMap/TreemapDescriptor.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAe,MAAM,kBAAkB,CAAC;AAO5D,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAC9D,OAAO,EACH,+BAA+B,EAC/B,mCAAmC,EACnC,0BAA0B,GAC7B,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EACH,gCAAgC,EAChC,wBAAwB,EACxB,0BAA0B,EAC1B,8BAA8B,EAC9B,uBAAuB,EACvB,4CAA4C,EAC5C,+BAA+B,GAClC,MAAM,gDAAgD,CAAC;AACxD,OAAO,EAAE,wBAAwB,EAAE,4BAA4B,EAAE,MAAM,yBAAyB,CAAC;AAEjG,MAAM,OAAO,iBAAkB,SAAQ,kBAAkB;IAC9C,UAAU;QACb,OAAO,CAAC,MAAM,EAAE,EAAE,CAAC,IAAI,gBAAgB,CAAC,MAAM,CAAC,CAAC;IACpD,CAAC;IAEM,cAAc,CACjB,MAAgB,EAChB,gBAAmC,EACnC,0BAAmC;QAEnC,MAAM,WAAW,GAAG,IAAI,CAAC,UAAU,CAC/B,MAAM,EACN,gBAAgB,CAAC,eAAe,EAChC,gBAAgB,CAAC,KAAK,EACtB,0BAA0B,CAC7B,CAAC;QACF,OAAO,mCAAmC,CAAC,WAAW,EAAE,gBAAgB,CAAC,eAAe,CAAC,CAAC;IAC9F,CAAC;IAEM,gBAAgB,GAAG,8BAA8B,CAAC;QACrD,SAAS,EAAE;YACP,UAAU,EAAE,OAAO;YACnB,IAAI,EAAE,SAAS;YACf,OAAO,EAAE,yBAAyB;SACrC;QACD,cAAc,EAAE,0BAA0B,CAAgB;YACtD,QAAQ,EAAE,4CAA4C,CAAC,UAAU,EAAE,WAAW,CAAC,QAAQ,CAAC;YACxF,MAAM,EAAE,+BAA+B,CAAC,QAAQ,EAAE,WAAW,CAAC,IAAI,CAAC;YACnE,SAAS,EAAE,+BAA+B,CAAC,WAAW,EAAE,WAAW,CAAC,OAAO,CAAC;YAC5E,OAAO,EAAE,wBAAwB,CAAC,SAAS,CAAC;YAC5C,MAAM,EAAE,4BAA4B,CAAC,QAAQ,CAAC;YAC9C,MAAM,EAAE,uBAAuB,CAAC,QAAQ,CAAC;YACzC,UAAU,EAAE,gCAAgC,CAAC,YAAY,CAAC;SAC7D,CAAC;QACF,mBAAmB,EAAE,wBAAwB,EAAE;KAClD,CAAC,CAAC;IAEI,OAAO;QACV,OAAO;YACH,gBAAgB,EAAE,kEAAkE;YACpF,cAAc,EAAE,IAAI;YACpB,eAAe,EAAE,IAAI;SACxB,CAAC;IACN,CAAC;IAEO,UAAU,CACd,MAAgB,EAChB,WAAiC,EACjC,KAAkB,EAClB,0BAAmC;QAEnC,MAAM,eAAe,GAAG,0BAA0B,CAAC,WAAW,EAAE,KAAK,CAAC,YAAY,CAAC,YAAY,CAAC,CAAC;QACjG,OAAO,+BAA+B,CAAC,MAAM,EAAE,eAAe,EAAE,0BAA0B,CAAC,CAAC;IAChG,CAAC;CACJ"}
|
package/esm/internal/components/pluggableVisualizations/waterfallChart/PluggableWaterfallChart.js
CHANGED
|
@@ -61,15 +61,17 @@ export class PluggableWaterfallChart extends PluggableBaseChart {
|
|
|
61
61
|
return WATERFALL_CHART_SUPPORTED_PROPERTIES;
|
|
62
62
|
}
|
|
63
63
|
initializeProperties(visualizationProperties) {
|
|
64
|
-
|
|
65
|
-
const controls = visualizationProperties === null || visualizationProperties === void 0 ? void 0 : visualizationProperties.controls;
|
|
64
|
+
const controls = visualizationProperties?.controls;
|
|
66
65
|
const supportedProperties = getSupportedPropertiesControls(controls, this.supportedPropertiesList);
|
|
67
66
|
const initialProperties = {
|
|
68
67
|
supportedProperties: {
|
|
69
|
-
controls:
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
68
|
+
controls: {
|
|
69
|
+
...supportedProperties,
|
|
70
|
+
total: {
|
|
71
|
+
enabled: controls?.total?.enabled ?? true,
|
|
72
|
+
name: getWaterfallTotalColumnName(controls?.total?.name, this.intl),
|
|
73
|
+
},
|
|
74
|
+
},
|
|
73
75
|
},
|
|
74
76
|
};
|
|
75
77
|
this.pushData({
|
|
@@ -80,12 +82,14 @@ export class PluggableWaterfallChart extends PluggableBaseChart {
|
|
|
80
82
|
return cloneDeep(DEFAULT_WATERFALL_UICONFIG);
|
|
81
83
|
}
|
|
82
84
|
getExtendedReferencePoint(referencePoint) {
|
|
83
|
-
var _a;
|
|
84
85
|
const clonedReferencePoint = cloneDeep(referencePoint);
|
|
85
|
-
let newReferencePoint =
|
|
86
|
+
let newReferencePoint = {
|
|
87
|
+
...clonedReferencePoint,
|
|
88
|
+
uiConfig: this.getUiConfig(),
|
|
89
|
+
};
|
|
86
90
|
newReferencePoint = removeAllArithmeticMeasuresFromDerived(newReferencePoint);
|
|
87
91
|
newReferencePoint = removeAllDerivedMeasures(newReferencePoint);
|
|
88
|
-
const buckets =
|
|
92
|
+
const buckets = clonedReferencePoint?.buckets ?? [];
|
|
89
93
|
const attributes = getAttributeItems(buckets);
|
|
90
94
|
if (attributes.length) {
|
|
91
95
|
const limitedBuckets = limitNumberOfMeasuresInBuckets(buckets, 1);
|
|
@@ -162,28 +166,32 @@ export class PluggableWaterfallChart extends PluggableBaseChart {
|
|
|
162
166
|
const viewBy = getBucketItems(buckets, BucketNames.VIEW);
|
|
163
167
|
const { defaultSort, availableSorts } = this.getDefaultAndAvailableSort(measures, viewBy);
|
|
164
168
|
const { disabled, disabledExplanation } = this.isSortDisabled(referencePoint, availableSorts);
|
|
165
|
-
return Promise.resolve(
|
|
166
|
-
|
|
169
|
+
return Promise.resolve({
|
|
170
|
+
supported: true,
|
|
171
|
+
disabled,
|
|
172
|
+
appliedSort: super.reuseCurrentSort(previousAvailableSorts, properties, availableSorts, defaultSort),
|
|
173
|
+
defaultSort,
|
|
174
|
+
availableSorts,
|
|
175
|
+
...(disabledExplanation && { disabledExplanation }),
|
|
176
|
+
});
|
|
167
177
|
}
|
|
168
178
|
renderConfigurationPanel(insight, options) {
|
|
169
|
-
var _a;
|
|
170
179
|
const configPanelElement = this.getConfigPanelElement();
|
|
171
180
|
if (configPanelElement) {
|
|
172
181
|
const panelConfig = {
|
|
173
182
|
supportsAttributeHierarchies: this.backendCapabilities.supportsAttributeHierarchies,
|
|
174
183
|
};
|
|
175
|
-
this.renderFun(React.createElement(WaterfallChartConfigurationPanel, { locale: this.locale, properties: this.visualizationProperties, propertiesMeta: this.propertiesMeta, insight: insight, pushData: this.handlePushData, colors: this.colors, type: this.type, isError: this.getIsError(), isLoading: this.isLoading, featureFlags: this.featureFlags, references: this.references, dataLabelDefaultValue: "auto", panelConfig: panelConfig, configurationPanelRenderers:
|
|
184
|
+
this.renderFun(React.createElement(WaterfallChartConfigurationPanel, { locale: this.locale, properties: this.visualizationProperties, propertiesMeta: this.propertiesMeta, insight: insight, pushData: this.handlePushData, colors: this.colors, type: this.type, isError: this.getIsError(), isLoading: this.isLoading, featureFlags: this.featureFlags, references: this.references, dataLabelDefaultValue: "auto", panelConfig: panelConfig, configurationPanelRenderers: options.custom?.configurationPanelRenderers }), configPanelElement);
|
|
176
185
|
}
|
|
177
186
|
}
|
|
178
187
|
setPropertiesTotalMeasures(referencePoint) {
|
|
179
|
-
var _a, _b;
|
|
180
188
|
const { buckets, properties } = referencePoint;
|
|
181
189
|
const viewItems = getViewItems(buckets);
|
|
182
190
|
const measureItems = getMeasureItems(buckets);
|
|
183
191
|
const listTotalMeasures = measureItems
|
|
184
192
|
.filter((item) => item.isTotalMeasure)
|
|
185
193
|
.map((item) => item.localIdentifier);
|
|
186
|
-
const existingTotalMeasures =
|
|
194
|
+
const existingTotalMeasures = properties?.controls?.total?.measures || [];
|
|
187
195
|
if (measureItems.length <= 1 && existingTotalMeasures.length > 0) {
|
|
188
196
|
// In case one view item, we need to reset the total measures is empty
|
|
189
197
|
set(referencePoint, "properties.controls.total.measures", []);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PluggableWaterfallChart.js","sourceRoot":"","sources":["../../../../../src/internal/components/pluggableVisualizations/waterfallChart/PluggableWaterfallChart.tsx"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,SAAS,MAAM,qBAAqB,CAAC;AAC5C,OAAO,GAAG,MAAM,eAAe,CAAC;AAChC,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AACnE,OAAO,EAAsB,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACzE,OAAO,OAAO,MAAM,mBAAmB,CAAC;AACxC,OAAO,OAAO,MAAM,mBAAmB,CAAC;AAExC,OAAO,gCAAgC,MAAM,+DAA+D,CAAC;AAC7G,OAAO,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AACvD,OAAO,EAAE,oCAAoC,EAAE,MAAM,2CAA2C,CAAC;AACjG,OAAO,EACH,0BAA0B,EAC1B,wCAAwC,EACxC,QAAQ,EACR,kCAAkC,EAClC,iBAAiB,GACpB,MAAM,gCAAgC,CAAC;AAUxC,OAAO,EAAE,2BAA2B,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAC/F,OAAO,EACH,iBAAiB,EACjB,cAAc,EACd,eAAe,EACf,YAAY,EACZ,8BAA8B,EAC9B,sCAAsC,EACtC,wBAAwB,EACxB,eAAe,GAClB,MAAM,gCAAgC,CAAC;AACxC,OAAO,EACH,wCAAwC,EACxC,8BAA8B,GACjC,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAAE,gCAAgC,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACtF,OAAO,EACH,2BAA2B,EAC3B,yBAAyB,GAC5B,MAAM,gEAAgE,CAAC;AACxE,OAAO,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,CAAC;AACxE,OAAO,EAAe,sBAAsB,EAAE,MAAM,mCAAmC,CAAC;AAExF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,MAAM,OAAO,uBAAwB,SAAQ,kBAAkB;IAC3D,YAAY,KAAoB;QAC5B,KAAK,CAAC,KAAK,CAAC,CAAC;QACb,IAAI,CAAC,IAAI,GAAG,kBAAkB,CAAC,SAAS,CAAC;QACzC,IAAI,CAAC,oBAAoB,CAAC,KAAK,CAAC,uBAAuB,CAAC,CAAC;IAC7D,CAAC;IAES,0BAA0B;QAChC,OAAO,oCAAoC,CAAC;IAChD,CAAC;IAES,oBAAoB,CAAC,uBAAiD
|
|
1
|
+
{"version":3,"file":"PluggableWaterfallChart.js","sourceRoot":"","sources":["../../../../../src/internal/components/pluggableVisualizations/waterfallChart/PluggableWaterfallChart.tsx"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,SAAS,MAAM,qBAAqB,CAAC;AAC5C,OAAO,GAAG,MAAM,eAAe,CAAC;AAChC,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AACnE,OAAO,EAAsB,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACzE,OAAO,OAAO,MAAM,mBAAmB,CAAC;AACxC,OAAO,OAAO,MAAM,mBAAmB,CAAC;AAExC,OAAO,gCAAgC,MAAM,+DAA+D,CAAC;AAC7G,OAAO,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AACvD,OAAO,EAAE,oCAAoC,EAAE,MAAM,2CAA2C,CAAC;AACjG,OAAO,EACH,0BAA0B,EAC1B,wCAAwC,EACxC,QAAQ,EACR,kCAAkC,EAClC,iBAAiB,GACpB,MAAM,gCAAgC,CAAC;AAUxC,OAAO,EAAE,2BAA2B,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAC/F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QACxC,MAAM,YAAY,GAAG,eAAe,CAAC,OAAO,CAAC,CAAC;QAC9C,MAAM,iBAAiB,GAAG,YAAY;aACjC,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,cAAc,CAAC;aACrC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;QACzC,MAAM,qBAAqB,GAAG,UAAU,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,IAAI,EAAE,CAAC;QAE1E,IAAI,YAAY,CAAC,MAAM,IAAI,CAAC,IAAI,qBAAqB,CAAC,MAAM,GAAG,CAAC,EAAE;YAC9D,sEAAsE;YACtE,GAAG,CAAC,cAAc,EAAE,oCAAoC,EAAE,EAAE,CAAC,CAAC;SACjE;QAED,IAAI,SAAS,CAAC,MAAM,GAAG,CAAC,IAAI,OAAO,CAAC,iBAAiB,EAAE,qBAAqB,CAAC,EAAE;YAC3E,OAAO,cAAc,CAAC;SACzB;QAED,GAAG,CAAC,cAAc,EAAE,oCAAoC,EAAE,iBAAiB,CAAC,CAAC;QAC7E,OAAO,cAAc,CAAC;IAC1B,CAAC;CACJ"}
|
package/esm/internal/components/pluggableVisualizations/waterfallChart/WaterfallChartDescriptor.js
CHANGED
|
@@ -4,29 +4,26 @@ import { BaseChartDescriptor } from "../baseChart/BaseChartDescriptor.js";
|
|
|
4
4
|
import { executionConfigInsightConversion, filtersInsightConversion, getInsightToPropsConverter, getReactEmbeddingCodeGenerator, localeInsightConversion, multipleAttributesOrMeasuresBucketConversion, singleAttributeBucketConversion, sortsInsightConversion, } from "../../../utils/embeddingCodeGenerator/index.js";
|
|
5
5
|
import { chartAdditionalFactories, chartConfigInsightConversion } from "../chartCodeGenUtils.js";
|
|
6
6
|
export class WaterfallChartDescriptor extends BaseChartDescriptor {
|
|
7
|
-
constructor() {
|
|
8
|
-
super(...arguments);
|
|
9
|
-
this.getEmbeddingCode = getReactEmbeddingCodeGenerator({
|
|
10
|
-
component: {
|
|
11
|
-
importType: "named",
|
|
12
|
-
name: "WaterfallChart",
|
|
13
|
-
package: "@gooddata/sdk-ui-charts",
|
|
14
|
-
},
|
|
15
|
-
insightToProps: getInsightToPropsConverter({
|
|
16
|
-
measures: multipleAttributesOrMeasuresBucketConversion("measures", BucketNames.MEASURES),
|
|
17
|
-
viewBy: singleAttributeBucketConversion("viewBy", BucketNames.VIEW),
|
|
18
|
-
filters: filtersInsightConversion("filters"),
|
|
19
|
-
sortBy: sortsInsightConversion("sortBy"),
|
|
20
|
-
config: chartConfigInsightConversion("config"),
|
|
21
|
-
locale: localeInsightConversion("locale"),
|
|
22
|
-
execConfig: executionConfigInsightConversion("execConfig"),
|
|
23
|
-
}),
|
|
24
|
-
additionalFactories: chartAdditionalFactories(),
|
|
25
|
-
});
|
|
26
|
-
}
|
|
27
7
|
getFactory() {
|
|
28
8
|
return (params) => new PluggableWaterfallChart(params);
|
|
29
9
|
}
|
|
10
|
+
getEmbeddingCode = getReactEmbeddingCodeGenerator({
|
|
11
|
+
component: {
|
|
12
|
+
importType: "named",
|
|
13
|
+
name: "WaterfallChart",
|
|
14
|
+
package: "@gooddata/sdk-ui-charts",
|
|
15
|
+
},
|
|
16
|
+
insightToProps: getInsightToPropsConverter({
|
|
17
|
+
measures: multipleAttributesOrMeasuresBucketConversion("measures", BucketNames.MEASURES),
|
|
18
|
+
viewBy: singleAttributeBucketConversion("viewBy", BucketNames.VIEW),
|
|
19
|
+
filters: filtersInsightConversion("filters"),
|
|
20
|
+
sortBy: sortsInsightConversion("sortBy"),
|
|
21
|
+
config: chartConfigInsightConversion("config"),
|
|
22
|
+
locale: localeInsightConversion("locale"),
|
|
23
|
+
execConfig: executionConfigInsightConversion("execConfig"),
|
|
24
|
+
}),
|
|
25
|
+
additionalFactories: chartAdditionalFactories(),
|
|
26
|
+
});
|
|
30
27
|
getMeta() {
|
|
31
28
|
return {
|
|
32
29
|
documentationUrl: "https://sdk.gooddata.com/gooddata-ui/docs/waterfall_chart_component.html",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WaterfallChartDescriptor.js","sourceRoot":"","sources":["../../../../../src/internal/components/pluggableVisualizations/waterfallChart/WaterfallChartDescriptor.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAO/C,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AACvE,OAAO,EAAE,mBAAmB,EAAE,MAAM,qCAAqC,CAAC;AAC1E,OAAO,EACH,gCAAgC,EAChC,wBAAwB,EACxB,0BAA0B,EAC1B,8BAA8B,EAC9B,uBAAuB,EACvB,4CAA4C,EAC5C,+BAA+B,EAC/B,sBAAsB,GACzB,MAAM,gDAAgD,CAAC;AACxD,OAAO,EAAE,wBAAwB,EAAE,4BAA4B,EAAE,MAAM,yBAAyB,CAAC;AAEjG,MAAM,OAAO,wBAAyB,SAAQ,mBAAmB;
|
|
1
|
+
{"version":3,"file":"WaterfallChartDescriptor.js","sourceRoot":"","sources":["../../../../../src/internal/components/pluggableVisualizations/waterfallChart/WaterfallChartDescriptor.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAO/C,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AACvE,OAAO,EAAE,mBAAmB,EAAE,MAAM,qCAAqC,CAAC;AAC1E,OAAO,EACH,gCAAgC,EAChC,wBAAwB,EACxB,0BAA0B,EAC1B,8BAA8B,EAC9B,uBAAuB,EACvB,4CAA4C,EAC5C,+BAA+B,EAC/B,sBAAsB,GACzB,MAAM,gDAAgD,CAAC;AACxD,OAAO,EAAE,wBAAwB,EAAE,4BAA4B,EAAE,MAAM,yBAAyB,CAAC;AAEjG,MAAM,OAAO,wBAAyB,SAAQ,mBAAmB;IACtD,UAAU;QACb,OAAO,CAAC,MAAM,EAAE,EAAE,CAAC,IAAI,uBAAuB,CAAC,MAAM,CAAC,CAAC;IAC3D,CAAC;IAEM,gBAAgB,GAAG,8BAA8B,CAAC;QACrD,SAAS,EAAE;YACP,UAAU,EAAE,OAAO;YACnB,IAAI,EAAE,gBAAgB;YACtB,OAAO,EAAE,yBAAyB;SACrC;QACD,cAAc,EAAE,0BAA0B,CAAuB;YAC7D,QAAQ,EAAE,4CAA4C,CAAC,UAAU,EAAE,WAAW,CAAC,QAAQ,CAAC;YACxF,MAAM,EAAE,+BAA+B,CAAC,QAAQ,EAAE,WAAW,CAAC,IAAI,CAAC;YACnE,OAAO,EAAE,wBAAwB,CAAC,SAAS,CAAC;YAC5C,MAAM,EAAE,sBAAsB,CAAC,QAAQ,CAAC;YACxC,MAAM,EAAE,4BAA4B,CAAC,QAAQ,CAAC;YAC9C,MAAM,EAAE,uBAAuB,CAAC,QAAQ,CAAC;YACzC,UAAU,EAAE,gCAAgC,CAAC,YAAY,CAAC;SAC7D,CAAC;QACF,mBAAmB,EAAE,wBAAwB,EAAE;KAClD,CAAC,CAAC;IAEI,OAAO;QACV,OAAO;YACH,gBAAgB,EAAE,0EAA0E;YAC5F,cAAc,EAAE,IAAI;YACpB,eAAe,EAAE,KAAK;SACzB,CAAC;IACN,CAAC;CACJ"}
|
|
@@ -38,31 +38,11 @@ import cloneDeep from "lodash/cloneDeep.js";
|
|
|
38
38
|
* The PluggableXirr does not use any sorts.
|
|
39
39
|
*/
|
|
40
40
|
export class PluggableXirr extends AbstractPluggableVisualization {
|
|
41
|
+
settings;
|
|
42
|
+
renderFun;
|
|
43
|
+
unmountFun;
|
|
41
44
|
constructor(props) {
|
|
42
45
|
super(props);
|
|
43
|
-
this.getExtendedReferencePoint = async (referencePoint) => {
|
|
44
|
-
const referencePointCloned = cloneDeep(referencePoint);
|
|
45
|
-
let newReferencePoint = Object.assign(Object.assign({}, referencePointCloned), { uiConfig: getDefaultXirrUiConfig() });
|
|
46
|
-
if (!hasGlobalDateFilter(referencePoint.filters)) {
|
|
47
|
-
newReferencePoint = removeAllArithmeticMeasuresFromDerived(newReferencePoint);
|
|
48
|
-
newReferencePoint = removeAllDerivedMeasures(newReferencePoint);
|
|
49
|
-
}
|
|
50
|
-
const buckets = getXirrBuckets(referencePoint);
|
|
51
|
-
newReferencePoint.buckets = buckets;
|
|
52
|
-
newReferencePoint.uiConfig = getXirrUiConfig(newReferencePoint, this.intl);
|
|
53
|
-
newReferencePoint = removeSort(newReferencePoint);
|
|
54
|
-
newReferencePoint = getReferencePointWithSupportedProperties(newReferencePoint, this.supportedPropertiesList);
|
|
55
|
-
return sanitizeFilters(newReferencePoint);
|
|
56
|
-
};
|
|
57
|
-
// This is effectively calling super.pushData()
|
|
58
|
-
// https://stackoverflow.com/questions/31088947/inheritance-method-call-triggers-typescript-compiler-error
|
|
59
|
-
// https://github.com/basarat/typescript-book/blob/master/docs/arrow-functions.md#tip-arrow-functions-and-inheritance
|
|
60
|
-
this.superPushData = this.pushData;
|
|
61
|
-
this.pushData = (data, options) => {
|
|
62
|
-
// For xirr chart we do not support drilling from attributes.
|
|
63
|
-
const filterAttributes = this.withEmptyAttributeTargets(data);
|
|
64
|
-
this.superPushData(filterAttributes, options);
|
|
65
|
-
};
|
|
66
46
|
this.settings = props.featureFlags;
|
|
67
47
|
this.renderFun = props.renderFun;
|
|
68
48
|
this.unmountFun = props.unmountFun;
|
|
@@ -70,6 +50,23 @@ export class PluggableXirr extends AbstractPluggableVisualization {
|
|
|
70
50
|
unmount() {
|
|
71
51
|
this.unmountFun([this.getElement(), this.getConfigPanelElement()]);
|
|
72
52
|
}
|
|
53
|
+
getExtendedReferencePoint = async (referencePoint) => {
|
|
54
|
+
const referencePointCloned = cloneDeep(referencePoint);
|
|
55
|
+
let newReferencePoint = {
|
|
56
|
+
...referencePointCloned,
|
|
57
|
+
uiConfig: getDefaultXirrUiConfig(),
|
|
58
|
+
};
|
|
59
|
+
if (!hasGlobalDateFilter(referencePoint.filters)) {
|
|
60
|
+
newReferencePoint = removeAllArithmeticMeasuresFromDerived(newReferencePoint);
|
|
61
|
+
newReferencePoint = removeAllDerivedMeasures(newReferencePoint);
|
|
62
|
+
}
|
|
63
|
+
const buckets = getXirrBuckets(referencePoint);
|
|
64
|
+
newReferencePoint.buckets = buckets;
|
|
65
|
+
newReferencePoint.uiConfig = getXirrUiConfig(newReferencePoint, this.intl);
|
|
66
|
+
newReferencePoint = removeSort(newReferencePoint);
|
|
67
|
+
newReferencePoint = getReferencePointWithSupportedProperties(newReferencePoint, this.supportedPropertiesList);
|
|
68
|
+
return sanitizeFilters(newReferencePoint);
|
|
69
|
+
};
|
|
73
70
|
getExecution(options, insight, executionFactory) {
|
|
74
71
|
const { dateFormat } = options;
|
|
75
72
|
return executionFactory
|
|
@@ -84,10 +81,9 @@ export class PluggableXirr extends AbstractPluggableVisualization {
|
|
|
84
81
|
this.renderFun(React.createElement(CoreXirr, { execution: execution, drillableItems: drillableItems, onDrill: this.onDrill, locale: locale, config: updateConfigWithSettings(config, this.settings), afterRender: this.afterRender, onLoadingChanged: this.onLoadingChanged, pushData: this.pushData, onError: this.onError, LoadingComponent: null, ErrorComponent: null }), this.getElement());
|
|
85
82
|
}
|
|
86
83
|
renderConfigurationPanel() {
|
|
87
|
-
var _a;
|
|
88
84
|
const configPanelElement = this.getConfigPanelElement();
|
|
89
85
|
if (configPanelElement) {
|
|
90
|
-
const properties =
|
|
86
|
+
const properties = this.visualizationProperties ?? {};
|
|
91
87
|
this.renderFun(React.createElement(UnsupportedConfigurationPanel, { locale: this.locale, pushData: this.pushData, properties: getSupportedProperties(properties, this.supportedPropertiesList) }), configPanelElement);
|
|
92
88
|
}
|
|
93
89
|
}
|
|
@@ -97,7 +93,22 @@ export class PluggableXirr extends AbstractPluggableVisualization {
|
|
|
97
93
|
return [newDimension([MeasureGroupIdentifier, ...attributes])];
|
|
98
94
|
}
|
|
99
95
|
withEmptyAttributeTargets(data) {
|
|
100
|
-
return
|
|
96
|
+
return {
|
|
97
|
+
...data,
|
|
98
|
+
availableDrillTargets: {
|
|
99
|
+
...data?.availableDrillTargets,
|
|
100
|
+
attributes: [],
|
|
101
|
+
},
|
|
102
|
+
};
|
|
101
103
|
}
|
|
104
|
+
// This is effectively calling super.pushData()
|
|
105
|
+
// https://stackoverflow.com/questions/31088947/inheritance-method-call-triggers-typescript-compiler-error
|
|
106
|
+
// https://github.com/basarat/typescript-book/blob/master/docs/arrow-functions.md#tip-arrow-functions-and-inheritance
|
|
107
|
+
superPushData = this.pushData;
|
|
108
|
+
pushData = (data, options) => {
|
|
109
|
+
// For xirr chart we do not support drilling from attributes.
|
|
110
|
+
const filterAttributes = this.withEmptyAttributeTargets(data);
|
|
111
|
+
this.superPushData(filterAttributes, options);
|
|
112
|
+
};
|
|
102
113
|
}
|
|
103
114
|
//# sourceMappingURL=PluggableXirr.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PluggableXirr.js","sourceRoot":"","sources":["../../../../../src/internal/components/pluggableVisualizations/xirr/PluggableXirr.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AAGrC,OAAO,EACH,gBAAgB,EAGhB,aAAa,EACb,sBAAsB,EACtB,YAAY,GAEf,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,WAAW,EAAa,MAAM,kBAAkB,CAAC;AAE1D,OAAO,EAAE,QAAQ,EAAE,wBAAwB,EAAE,MAAM,yBAAyB,CAAC;AAC7E,OAAO,KAAK,MAAM,OAAO,CAAC;AAU1B,OAAO,EACH,sCAAsC,EACtC,wBAAwB,EACxB,eAAe,GAClB,MAAM,gCAAgC,CAAC;AAExC,OAAO,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AACpE,OAAO,EACH,wCAAwC,EACxC,sBAAsB,GACzB,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACpD,OAAO,EACH,sBAAsB,EACtB,eAAe,GAClB,MAAM,sDAAsD,CAAC;AAE9D,OAAO,6BAA6B,MAAM,4DAA4D,CAAC;AACvG,OAAO,EAAE,8BAA8B,EAAE,MAAM,sCAAsC,CAAC;AACtF,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,SAAS,MAAM,qBAAqB,CAAC;AAE5C;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,MAAM,OAAO,aAAc,SAAQ,8BAA8B;
|
|
1
|
+
{"version":3,"file":"PluggableXirr.js","sourceRoot":"","sources":["../../../../../src/internal/components/pluggableVisualizations/xirr/PluggableXirr.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AAGrC,OAAO,EACH,gBAAgB,EAGhB,aAAa,EACb,sBAAsB,EACtB,YAAY,GAEf,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,WAAW,EAAa,MAAM,kBAAkB,CAAC;AAE1D,OAAO,EAAE,QAAQ,EAAE,wBAAwB,EAAE,MAAM,yBAAyB,CAAC;AAC7E,OAAO,KAAK,MAAM,OAAO,CAAC;AAU1B,OAAO,EACH,sCAAsC,EACtC,wBAAwB,EACxB,eAAe,GAClB,MAAM,gCAAgC,CAAC;AAExC,OAAO,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AACpE,OAAO,EACH,wCAAwC,EACxC,sBAAsB,GACzB,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACpD,OAAO,EACH,sBAAsB,EACtB,eAAe,GAClB,MAAM,sDAAsD,CAAC;AAE9D,OAAO,6BAA6B,MAAM,4DAA4D,CAAC;AACvG,OAAO,EAAE,8BAA8B,EAAE,MAAM,sCAAsC,CAAC;AACtF,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,SAAS,MAAM,qBAAqB,CAAC;AAE5C;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,MAAM,OAAO,aAAc,SAAQ,8BAA8B;IACrD,QAAQ,CAAa;IACrB,SAAS,CAAiB;IAC1B,UAAU,CAAkB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B,UAAU,EAAE,sBAAsB,CAAC,UAAU,EAAE,IAAI,CAAC,uBAAuB,CAAC,GAC9E,EACF,kBAAkB,CACrB,CAAC;SACL;IACL,CAAC;IAEO,iBAAiB,CAAC,OAA2B;QACjD,MAAM,eAAe,GAAG,aAAa,CAAC,OAAO,EAAE,WAAW,CAAC,SAAS,CAAC,CAAC;QACtE,MAAM,UAAU,GAAG,eAAe,CAAC,CAAC,CAAC,gBAAgB,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;QAE5E,OAAO,CAAC,YAAY,CAAC,CAAC,sBAAsB,EAAE,GAAG,UAAU,CAAC,CAAC,CAAC,CAAC;IACnE,CAAC;IAEO,yBAAyB,CAAC,IAAe;QAC7C,OAAO;YACH,GAAG,IAAI;YACP,qBAAqB,EAAE;gBACnB,GAAG,IAAI,EAAE,qBAAqB;gBAC9B,UAAU,EAAE,EAAE;aACjB;SACJ,CAAC;IACN,CAAC;IAED,+CAA+C;IAC/C,0GAA0G;IAC1G,qHAAqH;IAC7G,aAAa,GAAG,IAAI,CAAC,QAAQ,CAAC;IAE5B,QAAQ,GAAG,CAAC,IAAe,EAAE,OAA+B,EAAQ,EAAE;QAC5E,6DAA6D;QAC7D,MAAM,gBAAgB,GAAG,IAAI,CAAC,yBAAyB,CAAC,IAAI,CAAC,CAAC;QAC9D,IAAI,CAAC,aAAa,CAAC,gBAAgB,EAAE,OAAO,CAAC,CAAC;IAClD,CAAC,CAAC;CACL"}
|
|
@@ -3,22 +3,6 @@ import { PluggableXirr } from "./PluggableXirr.js";
|
|
|
3
3
|
import { DASHBOARD_LAYOUT_DEFAULT_KPI_HEIGHT, MAX_VISUALIZATION_HEIGHT } from "../constants.js";
|
|
4
4
|
import { executionConfigInsightConversion, filtersInsightConversion, getInsightToPropsConverter, getReactEmbeddingCodeGenerator, localeInsightConversion, singleAttributeBucketConversion, singleMeasureBucketConversion, } from "../../../utils/embeddingCodeGenerator/index.js";
|
|
5
5
|
export class XirrDescriptor {
|
|
6
|
-
constructor() {
|
|
7
|
-
this.getEmbeddingCode = getReactEmbeddingCodeGenerator({
|
|
8
|
-
component: {
|
|
9
|
-
importType: "named",
|
|
10
|
-
name: "Xirr",
|
|
11
|
-
package: "@gooddata/sdk-ui-charts",
|
|
12
|
-
},
|
|
13
|
-
insightToProps: getInsightToPropsConverter({
|
|
14
|
-
measure: singleMeasureBucketConversion("measure", BucketNames.MEASURES),
|
|
15
|
-
attribute: singleAttributeBucketConversion("attribute", BucketNames.ATTRIBUTE),
|
|
16
|
-
filters: filtersInsightConversion("filters"),
|
|
17
|
-
locale: localeInsightConversion("locale"),
|
|
18
|
-
execConfig: executionConfigInsightConversion("execConfig"),
|
|
19
|
-
}),
|
|
20
|
-
});
|
|
21
|
-
}
|
|
22
6
|
getFactory() {
|
|
23
7
|
return (params) => new PluggableXirr(params);
|
|
24
8
|
}
|
|
@@ -57,6 +41,20 @@ export class XirrDescriptor {
|
|
|
57
41
|
applyDrillDown(insight) {
|
|
58
42
|
return insight;
|
|
59
43
|
}
|
|
44
|
+
getEmbeddingCode = getReactEmbeddingCodeGenerator({
|
|
45
|
+
component: {
|
|
46
|
+
importType: "named",
|
|
47
|
+
name: "Xirr",
|
|
48
|
+
package: "@gooddata/sdk-ui-charts",
|
|
49
|
+
},
|
|
50
|
+
insightToProps: getInsightToPropsConverter({
|
|
51
|
+
measure: singleMeasureBucketConversion("measure", BucketNames.MEASURES),
|
|
52
|
+
attribute: singleAttributeBucketConversion("attribute", BucketNames.ATTRIBUTE),
|
|
53
|
+
filters: filtersInsightConversion("filters"),
|
|
54
|
+
locale: localeInsightConversion("locale"),
|
|
55
|
+
execConfig: executionConfigInsightConversion("execConfig"),
|
|
56
|
+
}),
|
|
57
|
+
});
|
|
60
58
|
getMeta() {
|
|
61
59
|
return {
|
|
62
60
|
supportsExport: false,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"XirrDescriptor.js","sourceRoot":"","sources":["../../../../../src/internal/components/pluggableVisualizations/xirr/XirrDescriptor.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAS/C,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,mCAAmC,EAAE,wBAAwB,EAAE,MAAM,iBAAiB,CAAC;AAChG,OAAO,EACH,gCAAgC,EAChC,wBAAwB,EACxB,0BAA0B,EAC1B,8BAA8B,EAC9B,uBAAuB,EACvB,+BAA+B,EAC/B,6BAA6B,GAChC,MAAM,gDAAgD,CAAC;AAExD,MAAM,OAAO,cAAc;
|
|
1
|
+
{"version":3,"file":"XirrDescriptor.js","sourceRoot":"","sources":["../../../../../src/internal/components/pluggableVisualizations/xirr/XirrDescriptor.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAS/C,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,mCAAmC,EAAE,wBAAwB,EAAE,MAAM,iBAAiB,CAAC;AAChG,OAAO,EACH,gCAAgC,EAChC,wBAAwB,EACxB,0BAA0B,EAC1B,8BAA8B,EAC9B,uBAAuB,EACvB,+BAA+B,EAC/B,6BAA6B,GAChC,MAAM,gDAAgD,CAAC;AAExD,MAAM,OAAO,cAAc;IAChB,UAAU;QACb,OAAO,CAAC,MAAM,EAAE,EAAE,CAAC,IAAI,aAAa,CAAC,MAAM,CAAC,CAAC;IACjD,CAAC;IAEM,WAAW,CACd,QAA4B,EAC5B,gBAAwC,EACxC,QAAmB;QAEnB,OAAO;YACH,KAAK,EAAE;gBACH,OAAO,EAAE,CAAC;gBACV,GAAG,EAAE,CAAC;gBACN,GAAG,EAAE,gBAAgB,CAAC,gBAAgB;aACzC;YACD,MAAM,EAAE;gBACJ,OAAO,EAAE,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC,0BAA0B,CAAC;gBACnE,GAAG,EAAE,IAAI,CAAC,YA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AllMeasures(limitedMeasureBuckets)[0];
|
|
8
8
|
const dateAttributeItem = getDateItems(buckets)[0];
|
|
9
9
|
return [
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
{
|
|
11
|
+
...currentMeasureBucket,
|
|
12
|
+
localIdentifier: BucketNames.MEASURES,
|
|
13
|
+
items: measureItem ? [measureItem] : [],
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
...currentAttributeBucket,
|
|
17
|
+
localIdentifier: BucketNames.ATTRIBUTE,
|
|
18
|
+
items: dateAttributeItem ? [dateAttributeItem] : [],
|
|
19
|
+
},
|
|
12
20
|
];
|
|
13
21
|
};
|
|
14
22
|
//# sourceMappingURL=xirrBucketHelper.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"xirrBucketHelper.js","sourceRoot":"","sources":["../../../../../src/internal/components/pluggableVisualizations/xirr/xirrBucketHelper.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EACH,YAAY,EACZ,UAAU,EACV,8BAA8B,EAC9B,cAAc,GACjB,MAAM,gCAAgC,CAAC;AAExC,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,EAAE,OAAO,EAA6B,EAAkB,EAAE;IACrF,MAAM,qBAAqB,GAAG,8BAA8B,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC;IAEzE,MAAM,oBAAoB,GAAG,UAAU,CAAC,qBAAqB,EAAE,WAAW,CAAC,QAAQ,CAAC,CAAC;IACrF,MAAM,sBAAsB,GAAG,UAAU,CAAC,OAAO,EAAE,WAAW,CAAC,SAAS,CAAC,CAAC;IAE1E,MAAM,WAAW,GAAG,cAAc,CAAC,qBAAqB,CAAC,CAAC,CAAC,CAAC,CAAC;IAC7D,MAAM,iBAAiB,GAAG,YAAY,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC;IAEnD,OAAO;
|
|
1
|
+
{"version":3,"file":"xirrBucketHelper.js","sourceRoot":"","sources":["../../../../../src/internal/components/pluggableVisualizations/xirr/xirrBucketHelper.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EACH,YAAY,EACZ,UAAU,EACV,8BAA8B,EAC9B,cAAc,GACjB,MAAM,gCAAgC,CAAC;AAExC,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,EAAE,OAAO,EAA6B,EAAkB,EAAE;IACrF,MAAM,qBAAqB,GAAG,8BAA8B,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC;IAEzE,MAAM,oBAAoB,GAAG,UAAU,CAAC,qBAAqB,EAAE,WAAW,CAAC,QAAQ,CAAC,CAAC;IACrF,MAAM,sBAAsB,GAAG,UAAU,CAAC,OAAO,EAAE,WAAW,CAAC,SAAS,CAAC,CAAC;IAE1E,MAAM,WAAW,GAAG,cAAc,CAAC,qBAAqB,CAAC,CAAC,CAAC,CAAC,CAAC;IAC7D,MAAM,iBAAiB,GAAG,YAAY,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC;IAEnD,OAAO;QACH;YACI,GAAG,oBAAoB;YACvB,eAAe,EAAE,WAAW,CAAC,QAAQ;YACrC,KAAK,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,EAAE;SAC1C;QACD;YACI,GAAG,sBAAsB;YACzB,eAAe,EAAE,WAAW,CAAC,SAAS;YACtC,KAAK,EAAE,iBAAiB,CAAC,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAC,CAAC,CAAC,EAAE;SACtD;KACJ,CAAC;AACN,CAAC,CAAC"}
|
|
@@ -30,25 +30,50 @@ const BASE_Y_AXIS = {
|
|
|
30
30
|
subtitle: "",
|
|
31
31
|
primary: true,
|
|
32
32
|
};
|
|
33
|
-
const BASE_SECONDARY_Y_AXIS =
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
33
|
+
const BASE_SECONDARY_Y_AXIS = {
|
|
34
|
+
...BASE_Y_AXIS,
|
|
35
|
+
name: AXIS_NAME.SECONDARY_Y,
|
|
36
|
+
};
|
|
37
|
+
const BAR_X_AXIS = {
|
|
38
|
+
...BASE_X_AXIS,
|
|
39
|
+
primary: true,
|
|
40
|
+
};
|
|
41
|
+
const BAR_SECONDARY_X_AXIS = {
|
|
42
|
+
...BASE_X_AXIS,
|
|
43
|
+
name: AXIS_NAME.SECONDARY_X,
|
|
44
|
+
primary: true,
|
|
45
|
+
};
|
|
46
|
+
const BAR_Y_AXIS = {
|
|
47
|
+
...BASE_Y_AXIS,
|
|
48
|
+
primary: false,
|
|
49
|
+
};
|
|
37
50
|
export const BASE_CHART_AXIS_CONFIG = {
|
|
38
51
|
[AXIS.PRIMARY]: [BASE_X_AXIS, BASE_Y_AXIS],
|
|
39
52
|
[AXIS.SECONDARY]: [BASE_X_AXIS, BASE_SECONDARY_Y_AXIS],
|
|
40
53
|
[AXIS.DUAL]: [
|
|
41
54
|
BASE_X_AXIS,
|
|
42
|
-
|
|
43
|
-
|
|
55
|
+
{
|
|
56
|
+
...BASE_Y_AXIS,
|
|
57
|
+
subtitle: "properties.axis.left",
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
...BASE_SECONDARY_Y_AXIS,
|
|
61
|
+
subtitle: "properties.axis.right",
|
|
62
|
+
},
|
|
44
63
|
],
|
|
45
64
|
};
|
|
46
65
|
export const BAR_CHART_AXIS_CONFIG = {
|
|
47
66
|
[AXIS.PRIMARY]: [BAR_X_AXIS, BAR_Y_AXIS],
|
|
48
67
|
[AXIS.SECONDARY]: [BAR_SECONDARY_X_AXIS, BAR_Y_AXIS],
|
|
49
68
|
[AXIS.DUAL]: [
|
|
50
|
-
|
|
51
|
-
|
|
69
|
+
{
|
|
70
|
+
...BAR_SECONDARY_X_AXIS,
|
|
71
|
+
subtitle: "properties.axis.top",
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
...BAR_X_AXIS,
|
|
75
|
+
subtitle: "properties.axis.bottom",
|
|
76
|
+
},
|
|
52
77
|
BAR_Y_AXIS,
|
|
53
78
|
],
|
|
54
79
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"axis.js","sourceRoot":"","sources":["../../../src/internal/constants/axis.ts"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,EAAE,kBAAkB,EAAa,MAAM,kBAAkB,CAAC;AAEjE,MAAM,CAAC,MAAM,IAAI,GAAG;IAChB,OAAO,EAAE,SAAS;IAClB,SAAS,EAAE,WAAW;IACtB,IAAI,EAAE,MAAM;CACf,CAAC;AAEF,MAAM,CAAN,IAAY,SAKX;AALD,WAAY,SAAS;IACjB,wBAAW,CAAA;IACX,wBAAW,CAAA;IACX,4CAA+B,CAAA;IAC/B,4CAA+B,CAAA;AACnC,CAAC,EALW,SAAS,GAAT,SAAS,KAAT,SAAS,QAKpB;AAED,MAAM,CAAC,MAAM,0BAA0B,GAAgB;IACnD,kBAAkB,CAAC,MAAM;IACzB,kBAAkB,CAAC,GAAG;IACtB,kBAAkB,CAAC,IAAI;IACvB,kBAAkB,CAAC,KAAK;CAC3B,CAAC;AAEF,MAAM,WAAW,GAAG;IAChB,IAAI,EAAE,SAAS,CAAC,CAAC;IACjB,KAAK,EAAE,wBAAwB;IAC/B,QAAQ,EAAE,EAAE;IACZ,OAAO,EAAE,KAAK;CACjB,CAAC;AAEF,MAAM,WAAW,GAAG;IAChB,IAAI,EAAE,SAAS,CAAC,CAAC;IACjB,KAAK,EAAE,wBAAwB;IAC/B,QAAQ,EAAE,EAAE;IACZ,OAAO,EAAE,IAAI;CAChB,CAAC;AAEF,MAAM,qBAAqB,
|
|
1
|
+
{"version":3,"file":"axis.js","sourceRoot":"","sources":["../../../src/internal/constants/axis.ts"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,EAAE,kBAAkB,EAAa,MAAM,kBAAkB,CAAC;AAEjE,MAAM,CAAC,MAAM,IAAI,GA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