@gooddata/sdk-ui-dashboard 10.22.0-alpha.2 → 10.22.0-alpha.20
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/__version.d.ts +1 -1
- package/esm/__version.d.ts.map +1 -1
- package/esm/__version.js +1 -1
- package/esm/__version.js.map +1 -1
- package/esm/_staging/errors/errorPredicates.d.ts +12 -0
- package/esm/_staging/errors/errorPredicates.d.ts.map +1 -1
- package/esm/_staging/errors/errorPredicates.js +13 -1
- package/esm/_staging/errors/errorPredicates.js.map +1 -1
- package/esm/model/commandHandlers/dashboard/common/dashboardInitialize.d.ts +8 -0
- package/esm/model/commandHandlers/dashboard/common/dashboardInitialize.d.ts.map +1 -0
- package/esm/model/commandHandlers/dashboard/common/dashboardInitialize.js +75 -0
- package/esm/model/commandHandlers/dashboard/common/dashboardInitialize.js.map +1 -0
- package/esm/model/commandHandlers/dashboard/common/stateInitializers.d.ts +17 -4
- package/esm/model/commandHandlers/dashboard/common/stateInitializers.d.ts.map +1 -1
- package/esm/model/commandHandlers/dashboard/common/stateInitializers.js +96 -14
- package/esm/model/commandHandlers/dashboard/common/stateInitializers.js.map +1 -1
- package/esm/model/commandHandlers/dashboard/deleteDashboardHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/dashboard/deleteDashboardHandler.js +8 -6
- package/esm/model/commandHandlers/dashboard/deleteDashboardHandler.js.map +1 -1
- package/esm/model/commandHandlers/dashboard/exportDashboardToExcelHandler.d.ts +6 -0
- package/esm/model/commandHandlers/dashboard/exportDashboardToExcelHandler.d.ts.map +1 -0
- package/esm/model/commandHandlers/dashboard/exportDashboardToExcelHandler.js +26 -0
- package/esm/model/commandHandlers/dashboard/exportDashboardToExcelHandler.js.map +1 -0
- package/esm/model/commandHandlers/dashboard/exportDashboardToPdfPresentationHandler.d.ts +6 -0
- package/esm/model/commandHandlers/dashboard/exportDashboardToPdfPresentationHandler.d.ts.map +1 -0
- package/esm/model/commandHandlers/dashboard/exportDashboardToPdfPresentationHandler.js +33 -0
- package/esm/model/commandHandlers/dashboard/exportDashboardToPdfPresentationHandler.js.map +1 -0
- package/esm/model/commandHandlers/dashboard/exportDashboardToPptPresentationHandler.d.ts +6 -0
- package/esm/model/commandHandlers/dashboard/exportDashboardToPptPresentationHandler.d.ts.map +1 -0
- package/esm/model/commandHandlers/dashboard/exportDashboardToPptPresentationHandler.js +33 -0
- package/esm/model/commandHandlers/dashboard/exportDashboardToPptPresentationHandler.js.map +1 -0
- package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/index.d.ts.map +1 -1
- package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/index.js +3 -2
- package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/index.js.map +1 -1
- package/esm/model/commandHandlers/dashboard/resetDashboardHandler.js +5 -1
- package/esm/model/commandHandlers/dashboard/resetDashboardHandler.js.map +1 -1
- package/esm/model/commandHandlers/index.d.ts.map +1 -1
- package/esm/model/commandHandlers/index.js +8 -0
- package/esm/model/commandHandlers/index.js.map +1 -1
- package/esm/model/commandHandlers/widgets/exportRawInsightWidgetHandler.d.ts +6 -0
- package/esm/model/commandHandlers/widgets/exportRawInsightWidgetHandler.d.ts.map +1 -0
- package/esm/model/commandHandlers/widgets/exportRawInsightWidgetHandler.js +31 -0
- package/esm/model/commandHandlers/widgets/exportRawInsightWidgetHandler.js.map +1 -0
- package/esm/model/commands/base.d.ts +1 -1
- package/esm/model/commands/base.d.ts.map +1 -1
- package/esm/model/commands/dashboard.d.ts +51 -0
- package/esm/model/commands/dashboard.d.ts.map +1 -1
- package/esm/model/commands/dashboard.js +49 -1
- package/esm/model/commands/dashboard.js.map +1 -1
- package/esm/model/commands/index.d.ts +7 -7
- package/esm/model/commands/index.d.ts.map +1 -1
- package/esm/model/commands/index.js +3 -3
- package/esm/model/commands/index.js.map +1 -1
- package/esm/model/commands/insight.d.ts +32 -1
- package/esm/model/commands/insight.d.ts.map +1 -1
- package/esm/model/commands/insight.js +20 -1
- package/esm/model/commands/insight.js.map +1 -1
- package/esm/model/events/base.d.ts +1 -1
- package/esm/model/events/base.d.ts.map +1 -1
- package/esm/model/events/base.js.map +1 -1
- package/esm/model/events/dashboard.d.ts +144 -0
- package/esm/model/events/dashboard.d.ts.map +1 -1
- package/esm/model/events/dashboard.js +97 -1
- package/esm/model/events/dashboard.js.map +1 -1
- package/esm/model/events/index.d.ts +4 -4
- package/esm/model/events/index.d.ts.map +1 -1
- package/esm/model/events/index.js +1 -1
- package/esm/model/events/index.js.map +1 -1
- package/esm/model/index.d.ts +1 -1
- package/esm/model/index.d.ts.map +1 -1
- package/esm/model/index.js.map +1 -1
- package/esm/model/react/types.d.ts +2 -2
- package/esm/model/react/types.d.ts.map +1 -1
- package/esm/model/react/useDashboardCommand.d.ts +6 -0
- package/esm/model/react/useDashboardCommand.d.ts.map +1 -1
- package/esm/model/react/useDashboardCommandProcessing.d.ts +24 -0
- package/esm/model/react/useDashboardCommandProcessing.d.ts.map +1 -1
- package/esm/model/store/config/configSelectors.d.ts +12 -0
- package/esm/model/store/config/configSelectors.d.ts.map +1 -1
- package/esm/model/store/config/configSelectors.js +16 -0
- package/esm/model/store/config/configSelectors.js.map +1 -1
- package/esm/model/store/executionResults/executionResultsSelectors.d.ts +8 -0
- package/esm/model/store/executionResults/executionResultsSelectors.d.ts.map +1 -1
- package/esm/model/store/executionResults/executionResultsSelectors.js +19 -1
- package/esm/model/store/executionResults/executionResultsSelectors.js.map +1 -1
- package/esm/model/store/index.d.ts +4 -3
- package/esm/model/store/index.d.ts.map +1 -1
- package/esm/model/store/index.js +4 -3
- package/esm/model/store/index.js.map +1 -1
- package/esm/model/store/meta/index.d.ts +1 -0
- package/esm/model/store/meta/index.d.ts.map +1 -1
- package/esm/model/store/meta/metaReducers.d.ts +2 -1
- package/esm/model/store/meta/metaReducers.d.ts.map +1 -1
- package/esm/model/store/meta/metaReducers.js +4 -3
- package/esm/model/store/meta/metaReducers.js.map +1 -1
- package/esm/model/store/meta/metaSelectors.d.ts +7 -0
- package/esm/model/store/meta/metaSelectors.d.ts.map +1 -1
- package/esm/model/store/meta/metaSelectors.js +10 -1
- package/esm/model/store/meta/metaSelectors.js.map +1 -1
- package/esm/model/store/meta/metaState.d.ts +6 -0
- package/esm/model/store/meta/metaState.d.ts.map +1 -1
- package/esm/model/store/meta/metaState.js +2 -1
- package/esm/model/store/meta/metaState.js.map +1 -1
- package/esm/model/store/topBar/topBarSelectors.d.ts +86 -0
- package/esm/model/store/topBar/topBarSelectors.d.ts.map +1 -0
- package/esm/model/store/topBar/topBarSelectors.js +160 -0
- package/esm/model/store/topBar/topBarSelectors.js.map +1 -0
- package/esm/model/types/commonTypes.d.ts +43 -2
- package/esm/model/types/commonTypes.d.ts.map +1 -1
- package/esm/model/types/commonTypes.js +18 -0
- package/esm/model/types/commonTypes.js.map +1 -1
- package/esm/presentation/dashboard/Dashboard.d.ts +1 -1
- package/esm/presentation/dashboard/Dashboard.d.ts.map +1 -1
- package/esm/presentation/dashboard/Dashboard.js +26 -6
- package/esm/presentation/dashboard/Dashboard.js.map +1 -1
- package/esm/presentation/dashboardContexts/useSlideData.d.ts.map +1 -1
- package/esm/presentation/dashboardContexts/useSlideData.js +1 -0
- package/esm/presentation/dashboardContexts/useSlideData.js.map +1 -1
- package/esm/presentation/export/types.d.ts +31 -1
- package/esm/presentation/export/types.d.ts.map +1 -1
- package/esm/presentation/export/useExportData.d.ts +6 -2
- package/esm/presentation/export/useExportData.d.ts.map +1 -1
- package/esm/presentation/export/useExportData.js +35 -6
- package/esm/presentation/export/useExportData.js.map +1 -1
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutSection.d.ts.map +1 -1
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutSection.js +2 -3
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutSection.js.map +1 -1
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutSectionHeaderDescription.d.ts +2 -2
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutSectionHeaderDescription.d.ts.map +1 -1
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutSectionHeaderDescription.js +4 -1
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutSectionHeaderDescription.js.map +1 -1
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutViewSectionHeaderRenderer.js +1 -1
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutViewSectionHeaderRenderer.js.map +1 -1
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/GridLayoutElement.d.ts.map +1 -1
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/GridLayoutElement.js +1 -1
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/GridLayoutElement.js.map +1 -1
- package/esm/presentation/layout/DefaultDashboardLayoutRenderer/DashboardLayoutSection.js +1 -1
- package/esm/presentation/layout/DefaultDashboardLayoutRenderer/DashboardLayoutSection.js.map +1 -1
- package/esm/presentation/layout/DefaultDashboardLayoutRenderer/DashboardLayoutSectionHeader.js +1 -1
- package/esm/presentation/layout/DefaultDashboardLayoutRenderer/DashboardLayoutSectionHeader.js.map +1 -1
- package/esm/presentation/layout/DefaultDashboardLayoutRenderer/DashboardLayoutSectionHeaderDescription.d.ts +2 -2
- package/esm/presentation/layout/DefaultDashboardLayoutRenderer/DashboardLayoutSectionHeaderDescription.d.ts.map +1 -1
- package/esm/presentation/layout/DefaultDashboardLayoutRenderer/DashboardLayoutSectionHeaderDescription.js +4 -1
- package/esm/presentation/layout/DefaultDashboardLayoutRenderer/DashboardLayoutSectionHeaderDescription.js.map +1 -1
- package/esm/presentation/localization/bundles/en-US.json +36 -1
- package/esm/presentation/topBar/buttonBar/button/editButton/DefaultEditButton.d.ts.map +1 -1
- package/esm/presentation/topBar/buttonBar/button/editButton/DefaultEditButton.js +2 -3
- package/esm/presentation/topBar/buttonBar/button/editButton/DefaultEditButton.js.map +1 -1
- package/esm/presentation/topBar/buttonBar/button/saveAsButton/DefaultSaveAsNewButton.d.ts +0 -5
- package/esm/presentation/topBar/buttonBar/button/saveAsButton/DefaultSaveAsNewButton.d.ts.map +1 -1
- package/esm/presentation/topBar/buttonBar/button/saveAsButton/DefaultSaveAsNewButton.js +2 -27
- package/esm/presentation/topBar/buttonBar/button/saveAsButton/DefaultSaveAsNewButton.js.map +1 -1
- package/esm/presentation/topBar/buttonBar/button/saveAsButton/index.d.ts +1 -1
- package/esm/presentation/topBar/buttonBar/button/saveAsButton/index.d.ts.map +1 -1
- package/esm/presentation/topBar/buttonBar/button/saveAsButton/index.js +2 -2
- package/esm/presentation/topBar/buttonBar/button/saveAsButton/index.js.map +1 -1
- package/esm/presentation/topBar/buttonBar/button/saveButton/DefaultSaveButton.d.ts.map +1 -1
- package/esm/presentation/topBar/buttonBar/button/saveButton/DefaultSaveButton.js +2 -3
- package/esm/presentation/topBar/buttonBar/button/saveButton/DefaultSaveButton.js.map +1 -1
- package/esm/presentation/topBar/buttonBar/button/shareButton/DefaultShareButton.d.ts.map +1 -1
- package/esm/presentation/topBar/buttonBar/button/shareButton/DefaultShareButton.js +2 -3
- package/esm/presentation/topBar/buttonBar/button/shareButton/DefaultShareButton.js.map +1 -1
- package/esm/presentation/topBar/menuButton/DefaultMenuButton.d.ts.map +1 -1
- package/esm/presentation/topBar/menuButton/DefaultMenuButton.js +50 -27
- package/esm/presentation/topBar/menuButton/DefaultMenuButton.js.map +1 -1
- package/esm/presentation/topBar/menuButton/DefaultSubmenuHeader.d.ts +9 -0
- package/esm/presentation/topBar/menuButton/DefaultSubmenuHeader.d.ts.map +1 -0
- package/esm/presentation/topBar/menuButton/DefaultSubmenuHeader.js +15 -0
- package/esm/presentation/topBar/menuButton/DefaultSubmenuHeader.js.map +1 -0
- package/esm/presentation/topBar/menuButton/types.d.ts +18 -1
- package/esm/presentation/topBar/menuButton/types.d.ts.map +1 -1
- package/esm/presentation/topBar/menuButton/useDefaultMenuItems.d.ts.map +1 -1
- package/esm/presentation/topBar/menuButton/useDefaultMenuItems.js +110 -69
- package/esm/presentation/topBar/menuButton/useDefaultMenuItems.js.map +1 -1
- package/esm/presentation/topBar/menuButton/useExportDashboardToExcel.d.ts +5 -0
- package/esm/presentation/topBar/menuButton/useExportDashboardToExcel.d.ts.map +1 -0
- package/esm/presentation/topBar/menuButton/useExportDashboardToExcel.js +44 -0
- package/esm/presentation/topBar/menuButton/useExportDashboardToExcel.js.map +1 -0
- package/esm/presentation/topBar/menuButton/useExportDashboardToPdf.d.ts +5 -0
- package/esm/presentation/topBar/menuButton/useExportDashboardToPdf.d.ts.map +1 -0
- package/esm/presentation/topBar/menuButton/useExportDashboardToPdf.js +44 -0
- package/esm/presentation/topBar/menuButton/useExportDashboardToPdf.js.map +1 -0
- package/esm/presentation/topBar/menuButton/useExportDashboardToPdfPresentation.d.ts +5 -0
- package/esm/presentation/topBar/menuButton/useExportDashboardToPdfPresentation.d.ts.map +1 -0
- package/esm/presentation/topBar/menuButton/useExportDashboardToPdfPresentation.js +44 -0
- package/esm/presentation/topBar/menuButton/useExportDashboardToPdfPresentation.js.map +1 -0
- package/esm/presentation/topBar/menuButton/useExportDashboardToPowerPointPresentation.d.ts +5 -0
- package/esm/presentation/topBar/menuButton/useExportDashboardToPowerPointPresentation.d.ts.map +1 -0
- package/esm/presentation/topBar/menuButton/useExportDashboardToPowerPointPresentation.js +44 -0
- package/esm/presentation/topBar/menuButton/useExportDashboardToPowerPointPresentation.js.map +1 -0
- package/esm/presentation/widget/common/useCustomWidgetExecutionDataView.d.ts +8 -1
- package/esm/presentation/widget/common/useCustomWidgetExecutionDataView.d.ts.map +1 -1
- package/esm/presentation/widget/common/useCustomWidgetExecutionDataView.js +6 -3
- package/esm/presentation/widget/common/useCustomWidgetExecutionDataView.js.map +1 -1
- package/esm/presentation/widget/common/useCustomWidgetInsightDataView.d.ts +8 -1
- package/esm/presentation/widget/common/useCustomWidgetInsightDataView.d.ts.map +1 -1
- package/esm/presentation/widget/common/useCustomWidgetInsightDataView.js +6 -3
- package/esm/presentation/widget/common/useCustomWidgetInsightDataView.js.map +1 -1
- package/esm/presentation/widget/common/useInsightExport.d.ts +2 -0
- package/esm/presentation/widget/common/useInsightExport.d.ts.map +1 -1
- package/esm/presentation/widget/common/useInsightExport.js +14 -2
- package/esm/presentation/widget/common/useInsightExport.js.map +1 -1
- package/esm/presentation/widget/common/useRawExportHandler.d.ts +5 -0
- package/esm/presentation/widget/common/useRawExportHandler.d.ts.map +1 -0
- package/esm/presentation/widget/common/useRawExportHandler.js +35 -0
- package/esm/presentation/widget/common/useRawExportHandler.js.map +1 -0
- package/esm/presentation/widget/description/types.d.ts +2 -2
- package/esm/presentation/widget/description/types.d.ts.map +1 -1
- package/esm/presentation/widget/insight/DefaultDashboardInsight.d.ts +3 -2
- package/esm/presentation/widget/insight/DefaultDashboardInsight.d.ts.map +1 -1
- package/esm/presentation/widget/insight/DefaultDashboardInsight.js +13 -4
- package/esm/presentation/widget/insight/DefaultDashboardInsight.js.map +1 -1
- package/esm/presentation/widget/insight/ViewModeDashboardInsight/Insight/DashboardInsight.d.ts.map +1 -1
- package/esm/presentation/widget/insight/ViewModeDashboardInsight/Insight/DashboardInsight.js +23 -6
- package/esm/presentation/widget/insight/ViewModeDashboardInsight/Insight/DashboardInsight.js.map +1 -1
- package/esm/presentation/widget/insight/ViewModeDashboardInsight/InsightDrillDialog/DrillDialog.d.ts +2 -0
- package/esm/presentation/widget/insight/ViewModeDashboardInsight/InsightDrillDialog/DrillDialog.d.ts.map +1 -1
- package/esm/presentation/widget/insight/ViewModeDashboardInsight/InsightDrillDialog/DrillDialog.js +2 -2
- package/esm/presentation/widget/insight/ViewModeDashboardInsight/InsightDrillDialog/DrillDialog.js.map +1 -1
- package/esm/presentation/widget/insight/ViewModeDashboardInsight/InsightDrillDialog/DrillModalFooter.d.ts +2 -0
- package/esm/presentation/widget/insight/ViewModeDashboardInsight/InsightDrillDialog/DrillModalFooter.d.ts.map +1 -1
- package/esm/presentation/widget/insight/ViewModeDashboardInsight/InsightDrillDialog/DrillModalFooter.js +12 -5
- package/esm/presentation/widget/insight/ViewModeDashboardInsight/InsightDrillDialog/DrillModalFooter.js.map +1 -1
- package/esm/presentation/widget/insight/ViewModeDashboardInsight/InsightDrillDialog/DrillModalRawExportOptions.d.ts +13 -0
- package/esm/presentation/widget/insight/ViewModeDashboardInsight/InsightDrillDialog/DrillModalRawExportOptions.d.ts.map +1 -0
- package/esm/presentation/widget/insight/ViewModeDashboardInsight/InsightDrillDialog/DrillModalRawExportOptions.js +55 -0
- package/esm/presentation/widget/insight/ViewModeDashboardInsight/InsightDrillDialog/DrillModalRawExportOptions.js.map +1 -0
- package/esm/presentation/widget/insight/ViewModeDashboardInsight/InsightDrillDialog/InsightDrillDialog.d.ts.map +1 -1
- package/esm/presentation/widget/insight/ViewModeDashboardInsight/InsightDrillDialog/InsightDrillDialog.js +2 -2
- package/esm/presentation/widget/insight/ViewModeDashboardInsight/InsightDrillDialog/InsightDrillDialog.js.map +1 -1
- package/esm/presentation/widget/insight/configuration/ExportOptions.d.ts +4 -0
- package/esm/presentation/widget/insight/configuration/ExportOptions.d.ts.map +1 -0
- package/esm/presentation/widget/insight/configuration/ExportOptions.js +59 -0
- package/esm/presentation/widget/insight/configuration/ExportOptions.js.map +1 -0
- package/esm/presentation/widget/insight/types.d.ts +4 -0
- package/esm/presentation/widget/insight/types.d.ts.map +1 -1
- package/esm/presentation/widget/insight/types.js.map +1 -1
- package/esm/presentation/widget/insight/useBackendWithInsightWidgetCorrelation.d.ts +6 -0
- package/esm/presentation/widget/insight/useBackendWithInsightWidgetCorrelation.d.ts.map +1 -0
- package/esm/presentation/widget/insight/useBackendWithInsightWidgetCorrelation.js +26 -0
- package/esm/presentation/widget/insight/useBackendWithInsightWidgetCorrelation.js.map +1 -0
- package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/getDefaultInsightMenuItems.d.ts +1 -0
- package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/getDefaultInsightMenuItems.d.ts.map +1 -1
- package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/getDefaultInsightMenuItems.js +12 -3
- package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/getDefaultInsightMenuItems.js.map +1 -1
- package/esm/presentation/widget/richText/ExportModeDashboardRichText.d.ts.map +1 -1
- package/esm/presentation/widget/richText/ExportModeDashboardRichText.js +6 -2
- package/esm/presentation/widget/richText/ExportModeDashboardRichText.js.map +1 -1
- package/esm/presentation/widget/visualizationSwitcher/ViewModeDashboardVisualizationSwitcher.d.ts.map +1 -1
- package/esm/presentation/widget/visualizationSwitcher/ViewModeDashboardVisualizationSwitcher.js +3 -1
- package/esm/presentation/widget/visualizationSwitcher/ViewModeDashboardVisualizationSwitcher.js.map +1 -1
- package/esm/presentation/widget/widget/InsightWidget/DefaultDashboardInsightWidget.js +3 -1
- package/esm/presentation/widget/widget/InsightWidget/DefaultDashboardInsightWidget.js.map +1 -1
- package/esm/presentation/widget/widget/InsightWidget/useInsightMenu.d.ts +2 -0
- package/esm/presentation/widget/widget/InsightWidget/useInsightMenu.d.ts.map +1 -1
- package/esm/presentation/widget/widget/InsightWidget/useInsightMenu.js +3 -1
- package/esm/presentation/widget/widget/InsightWidget/useInsightMenu.js.map +1 -1
- package/esm/sdk-ui-dashboard.d.ts +544 -14
- package/esm/types.d.ts +8 -0
- package/esm/types.d.ts.map +1 -1
- package/esm/types.js.map +1 -1
- package/package.json +15 -15
- package/styles/css/attributeFilterConfig.css +39 -9
- package/styles/css/attributeFilterConfig.css.map +1 -1
- package/styles/css/configurationPanel.css +12 -0
- package/styles/css/configurationPanel.css.map +1 -1
- package/styles/css/dateFilterConfig.css +39 -9
- package/styles/css/dateFilterConfig.css.map +1 -1
- package/styles/css/main.css +51 -9
- package/styles/css/main.css.map +1 -1
- package/styles/css/sharedFilterConfig.css +39 -9
- package/styles/css/sharedFilterConfig.css.map +1 -1
- package/styles/scss/configurationPanel.scss +12 -0
- package/styles/scss/sharedFilterConfig.scss +24 -1
- package/esm/presentation/topBar/buttonBar/button/selectors.d.ts +0 -40
- package/esm/presentation/topBar/buttonBar/button/selectors.d.ts.map +0 -1
- package/esm/presentation/topBar/buttonBar/button/selectors.js +0 -61
- package/esm/presentation/topBar/buttonBar/button/selectors.js.map +0 -1
package/esm/__version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const LIB_VERSION = "10.22.0-alpha.
|
|
1
|
+
export declare const LIB_VERSION = "10.22.0-alpha.20";
|
|
2
2
|
//# sourceMappingURL=__version.d.ts.map
|
package/esm/__version.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"__version.d.ts","sourceRoot":"","sources":["../src/__version.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"__version.d.ts","sourceRoot":"","sources":["../src/__version.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,WAAW,qBAAqB,CAAC"}
|
package/esm/__version.js
CHANGED
package/esm/__version.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"__version.js","sourceRoot":"","sources":["../src/__version.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,6DAA6D;AAC7D,MAAM,CAAC,MAAM,WAAW,GAAG,
|
|
1
|
+
{"version":3,"file":"__version.js","sourceRoot":"","sources":["../src/__version.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,6DAA6D;AAC7D,MAAM,CAAC,MAAM,WAAW,GAAG,kBAAkB,CAAC"}
|
|
@@ -8,8 +8,20 @@
|
|
|
8
8
|
* @internal
|
|
9
9
|
*/
|
|
10
10
|
export declare const isNonExportableError: (x: unknown) => x is import("@gooddata/sdk-ui").BadRequestSdkError | import("@gooddata/sdk-ui").DataTooLargeToComputeSdkError | import("@gooddata/sdk-ui").NoDataSdkError | import("@gooddata/sdk-ui").ProtectedReportSdkError | import("@gooddata/sdk-ui").UnexpectedSdkError | import("@gooddata/sdk-ui-ext").EmptyAfmSdkError;
|
|
11
|
+
/**
|
|
12
|
+
* @internal
|
|
13
|
+
*/
|
|
14
|
+
export declare const isNonExportableErrorExceptTooLarge: (x: unknown) => x is import("@gooddata/sdk-ui").NoDataSdkError | import("@gooddata/sdk-ui").ProtectedReportSdkError | import("@gooddata/sdk-ui").UnexpectedSdkError | import("@gooddata/sdk-ui-ext").EmptyAfmSdkError;
|
|
11
15
|
/**
|
|
12
16
|
* @internal
|
|
13
17
|
*/
|
|
14
18
|
export declare const isDataError: (x: unknown) => x is import("@gooddata/sdk-ui").BadRequestSdkError | import("@gooddata/sdk-ui").DataTooLargeToDisplaySdkError | import("@gooddata/sdk-ui").DataTooLargeToComputeSdkError | import("@gooddata/sdk-ui").NegativeValuesSdkError | import("@gooddata/sdk-ui").NoDataSdkError | import("@gooddata/sdk-ui").ProtectedReportSdkError | import("@gooddata/sdk-ui").UnexpectedSdkError | import("@gooddata/sdk-ui-ext").EmptyAfmSdkError;
|
|
19
|
+
/**
|
|
20
|
+
* @internal
|
|
21
|
+
*/
|
|
22
|
+
export declare const isDataErrorExceptTooLarge: (x: unknown) => x is import("@gooddata/sdk-ui").NegativeValuesSdkError | import("@gooddata/sdk-ui").NoDataSdkError | import("@gooddata/sdk-ui").ProtectedReportSdkError | import("@gooddata/sdk-ui").UnexpectedSdkError | import("@gooddata/sdk-ui-ext").EmptyAfmSdkError;
|
|
23
|
+
/**
|
|
24
|
+
* @internal
|
|
25
|
+
*/
|
|
26
|
+
export declare const isDataErrorTooLarge: (x: unknown) => x is import("@gooddata/sdk-ui").DataTooLargeToDisplaySdkError | import("@gooddata/sdk-ui").DataTooLargeToComputeSdkError;
|
|
15
27
|
//# sourceMappingURL=errorPredicates.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errorPredicates.d.ts","sourceRoot":"","sources":["../../../src/_staging/errors/errorPredicates.ts"],"names":[],"mappings":"AAaA;;;;;;;;GAQG;AACH,eAAO,MAAM,oBAAoB,kUAOhC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,WAAW,ibASvB,CAAC"}
|
|
1
|
+
{"version":3,"file":"errorPredicates.d.ts","sourceRoot":"","sources":["../../../src/_staging/errors/errorPredicates.ts"],"names":[],"mappings":"AAaA;;;;;;;;GAQG;AACH,eAAO,MAAM,oBAAoB,kUAOhC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,kCAAkC,uNAK9C,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,WAAW,ibASvB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,yBAAyB,2QAMrC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,mBAAmB,0IAA6E,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// (C) 2021 GoodData Corporation
|
|
1
|
+
// (C) 2021-2025 GoodData Corporation
|
|
2
2
|
import { isBadRequest, isDataTooLargeToCompute, isDataTooLargeToDisplay, isNegativeValues, isNoDataSdkError, isProtectedReport, isUnknownSdkError, } from "@gooddata/sdk-ui";
|
|
3
3
|
import { isEmptyAfm } from "@gooddata/sdk-ui-ext";
|
|
4
4
|
import { typesUtils } from "@gooddata/util";
|
|
@@ -12,8 +12,20 @@ import { typesUtils } from "@gooddata/util";
|
|
|
12
12
|
* @internal
|
|
13
13
|
*/
|
|
14
14
|
export const isNonExportableError = typesUtils.combineGuards(isUnknownSdkError, isBadRequest, isNoDataSdkError, isProtectedReport, isDataTooLargeToCompute, isEmptyAfm);
|
|
15
|
+
/**
|
|
16
|
+
* @internal
|
|
17
|
+
*/
|
|
18
|
+
export const isNonExportableErrorExceptTooLarge = typesUtils.combineGuards(isUnknownSdkError, isNoDataSdkError, isProtectedReport, isEmptyAfm);
|
|
15
19
|
/**
|
|
16
20
|
* @internal
|
|
17
21
|
*/
|
|
18
22
|
export const isDataError = typesUtils.combineGuards(isUnknownSdkError, isBadRequest, isNoDataSdkError, isDataTooLargeToCompute, isDataTooLargeToDisplay, isProtectedReport, isEmptyAfm, isNegativeValues);
|
|
23
|
+
/**
|
|
24
|
+
* @internal
|
|
25
|
+
*/
|
|
26
|
+
export const isDataErrorExceptTooLarge = typesUtils.combineGuards(isUnknownSdkError, isNoDataSdkError, isProtectedReport, isEmptyAfm, isNegativeValues);
|
|
27
|
+
/**
|
|
28
|
+
* @internal
|
|
29
|
+
*/
|
|
30
|
+
export const isDataErrorTooLarge = typesUtils.combineGuards(isDataTooLargeToCompute, isDataTooLargeToDisplay);
|
|
19
31
|
//# sourceMappingURL=errorPredicates.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errorPredicates.js","sourceRoot":"","sources":["../../../src/_staging/errors/errorPredicates.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"errorPredicates.js","sourceRoot":"","sources":["../../../src/_staging/errors/errorPredicates.ts"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,EACH,YAAY,EACZ,uBAAuB,EACvB,uBAAuB,EACvB,gBAAgB,EAChB,gBAAgB,EAChB,iBAAiB,EACjB,iBAAiB,GACpB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAE5C;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG,UAAU,CAAC,aAAa,CACxD,iBAAiB,EACjB,YAAY,EACZ,gBAAgB,EAChB,iBAAiB,EACjB,uBAAuB,EACvB,UAAU,CACb,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,kCAAkC,GAAG,UAAU,CAAC,aAAa,CACtE,iBAAiB,EACjB,gBAAgB,EAChB,iBAAiB,EACjB,UAAU,CACb,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG,UAAU,CAAC,aAAa,CAC/C,iBAAiB,EACjB,YAAY,EACZ,gBAAgB,EAChB,uBAAuB,EACvB,uBAAuB,EACvB,iBAAiB,EACjB,UAAU,EACV,gBAAgB,CACnB,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,yBAAyB,GAAG,UAAU,CAAC,aAAa,CAC7D,iBAAiB,EACjB,gBAAgB,EAChB,iBAAiB,EACjB,UAAU,EACV,gBAAgB,CACnB,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,UAAU,CAAC,aAAa,CAAC,uBAAuB,EAAE,uBAAuB,CAAC,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { IDashboard, IDashboardLayout, IInsight, IWidget } from "@gooddata/sdk-model";
|
|
2
|
+
import { DashboardContext, DashboardItem } from "../../../types/commonTypes.js";
|
|
3
|
+
export declare const EmptyDashboardLayout: IDashboardLayout<IWidget>;
|
|
4
|
+
export declare function dashboardInitialize(ctx: DashboardContext, items: DashboardItem[]): Promise<{
|
|
5
|
+
dashboard: IDashboard;
|
|
6
|
+
insights: IInsight[];
|
|
7
|
+
}>;
|
|
8
|
+
//# sourceMappingURL=dashboardInitialize.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dashboardInitialize.d.ts","sourceRoot":"","sources":["../../../../../src/model/commandHandlers/dashboard/common/dashboardInitialize.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,gBAAgB,EAAwB,QAAQ,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAE5G,OAAO,EACH,gBAAgB,EAChB,aAAa,EAGhB,MAAM,+BAA+B,CAAC;AAKvC,eAAO,MAAM,oBAAoB,EAAE,gBAAgB,CAAC,OAAO,CAG1D,CAAC;AAEF,wBAAsB,mBAAmB,CACrC,GAAG,EAAE,gBAAgB,EACrB,KAAK,EAAE,aAAa,EAAE,GACvB,OAAO,CAAC;IACP,SAAS,EAAE,UAAU,CAAC;IACtB,QAAQ,EAAE,QAAQ,EAAE,CAAC;CACxB,CAAC,CAwBD"}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { isDashboardItemVisualization, isDashboardItemVisualizationContent, } from "../../../types/commonTypes.js";
|
|
2
|
+
import { loadInsight } from "../../widgets/common/loadInsight.js";
|
|
3
|
+
const size = { xl: { gridHeight: 22, gridWidth: 12 } };
|
|
4
|
+
export const EmptyDashboardLayout = {
|
|
5
|
+
type: "IDashboardLayout",
|
|
6
|
+
sections: [],
|
|
7
|
+
};
|
|
8
|
+
export async function dashboardInitialize(ctx, items) {
|
|
9
|
+
const layoutItems = [];
|
|
10
|
+
const insights = [];
|
|
11
|
+
for (let i = 0; i < items.length; i++) {
|
|
12
|
+
const item = items[i];
|
|
13
|
+
if (isDashboardItemVisualization(item)) {
|
|
14
|
+
const insight = await loadInsight(ctx, item.visualization);
|
|
15
|
+
insights.push(insight);
|
|
16
|
+
layoutItems.push(buildInitialItem(insight, i));
|
|
17
|
+
}
|
|
18
|
+
if (isDashboardItemVisualizationContent(item)) {
|
|
19
|
+
const insight = item.visualizationContent;
|
|
20
|
+
insights.push(insight);
|
|
21
|
+
layoutItems.push(buildInitialItem(insight, i));
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
const dashboard = buildInitialDashboard(layoutItems);
|
|
25
|
+
return {
|
|
26
|
+
dashboard,
|
|
27
|
+
insights,
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
function buildInitialDashboard(items) {
|
|
31
|
+
const ref = {
|
|
32
|
+
type: "analyticalDashboard",
|
|
33
|
+
identifier: "",
|
|
34
|
+
};
|
|
35
|
+
return {
|
|
36
|
+
type: "IDashboard",
|
|
37
|
+
layout: {
|
|
38
|
+
type: "IDashboardLayout",
|
|
39
|
+
sections: [
|
|
40
|
+
{
|
|
41
|
+
header: {},
|
|
42
|
+
type: "IDashboardLayoutSection",
|
|
43
|
+
items,
|
|
44
|
+
},
|
|
45
|
+
],
|
|
46
|
+
},
|
|
47
|
+
shareStatus: "private",
|
|
48
|
+
created: "",
|
|
49
|
+
updated: "",
|
|
50
|
+
title: "",
|
|
51
|
+
description: "",
|
|
52
|
+
ref,
|
|
53
|
+
uri: ref.identifier,
|
|
54
|
+
identifier: ref.identifier,
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
function buildInitialItem(insight, i) {
|
|
58
|
+
return {
|
|
59
|
+
type: "IDashboardLayoutItem",
|
|
60
|
+
size,
|
|
61
|
+
widget: {
|
|
62
|
+
type: "insight",
|
|
63
|
+
title: insight.insight.title,
|
|
64
|
+
description: "",
|
|
65
|
+
localIdentifier: `${insight.insight.identifier}_${i}`,
|
|
66
|
+
insight: insight.insight.ref,
|
|
67
|
+
identifier: insight.insight.identifier,
|
|
68
|
+
uri: insight.insight.uri,
|
|
69
|
+
ref: insight.insight.ref,
|
|
70
|
+
ignoreDashboardFilters: [],
|
|
71
|
+
drills: [],
|
|
72
|
+
},
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
//# sourceMappingURL=dashboardInitialize.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dashboardInitialize.js","sourceRoot":"","sources":["../../../../../src/model/commandHandlers/dashboard/common/dashboardInitialize.ts"],"names":[],"mappings":"AAGA,OAAO,EAGH,4BAA4B,EAC5B,mCAAmC,GACtC,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,WAAW,EAAE,MAAM,qCAAqC,CAAC;AAElE,MAAM,IAAI,GAAG,EAAE,EAAE,EAAE,EAAE,UAAU,EAAE,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,CAAC;AAEvD,MAAM,CAAC,MAAM,oBAAoB,GAA8B;IAC3D,IAAI,EAAE,kBAAkB;IACxB,QAAQ,EAAE,EAAE;CACf,CAAC;AAEF,M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aACJ;SACJ;QACD,WAAW,EAAE,SAAS;QACtB,OAAO,EAAE,EAAE;QACX,OAAO,EAAE,EAAE;QACX,KAAK,EAAE,EAAE;QACT,WAAW,EAAE,EAAE;QACf,GAAG;QACH,GAAG,EAAE,GAAG,CAAC,UAAU;QACnB,UAAU,EAAE,GAAG,CAAC,UAAU;KACf,CAAC;AACpB,CAAC;AAED,SAAS,gBAAgB,CAAC,OAAiB,EAAE,CAAS;IAClD,OAAO;QACH,IAAI,EAAE,sBAAsB;QAC5B,IAAI;QACJ,MAAM,EAAE;YACJ,IAAI,EAAE,SAAS;YACf,KAAK,EAAE,OAAO,CAAC,OAAO,CAAC,KAAK;YAC5B,WAAW,EAAE,EAAE;YACf,eAAe,EAAE,GAAG,OAAO,CAAC,OAAO,CAAC,UAAU,IAAI,CAAC,EAAE;YACrD,OAAO,EAAE,OAAO,CAAC,OAAO,CAAC,GAAG;YAC5B,UAAU,EAAE,OAAO,CAAC,OAAO,CAAC,UAAU;YACtC,GAAG,EAAE,OAAO,CAAC,OAAO,CAAC,GAAG;YACxB,GAAG,EAAE,OAAO,CAAC,OAAO,CAAC,GAAG;YACxB,sBAAsB,EAAE,EAAE;YAC1B,MAAM,EAAE,EAAE;SACb;KACJ,CAAC;AACN,CAAC"}
|
|
@@ -1,16 +1,29 @@
|
|
|
1
1
|
import { SagaIterator } from "redux-saga";
|
|
2
2
|
import { PayloadAction } from "@reduxjs/toolkit";
|
|
3
|
-
import { IInsight, IDateFilterConfig, IAttributeDisplayFormMetadataObject,
|
|
3
|
+
import { IInsight, IDateFilterConfig, IAttributeDisplayFormMetadataObject, IDashboard, ISettings, ICatalogDateDataset, ObjRef, IDataSetMetadataObject } from "@gooddata/sdk-model";
|
|
4
4
|
import { DashboardContext } from "../../../types/commonTypes.js";
|
|
5
5
|
import { ObjRefMap } from "../../../../_staging/metadata/objRefMap.js";
|
|
6
|
-
export declare const EmptyDashboardLayout: IDashboardLayout<IWidget>;
|
|
7
6
|
/**
|
|
8
7
|
* Returns a list of actions which when processed will initialize the essential parts of the dashboard
|
|
9
8
|
* state so that it shows a new, empty dashboard.
|
|
10
9
|
*
|
|
11
|
-
* @param
|
|
10
|
+
* @param ctx - dashboard context in which the initialization is done
|
|
11
|
+
* these insights in the state; it uses the insights to perform sanitization of the dashboard layout
|
|
12
|
+
* @param settings - settings currently in effect; note that this function will not create actions to store
|
|
13
|
+
* the settings in the state; it uses the settings during layout sanitization
|
|
14
|
+
* @param dateFilterConfig - effective date filter config to use; note that this function will not store
|
|
15
|
+
* the date filter config anywhere; it uses the config during filter context sanitization & determining
|
|
16
|
+
* which date option is selected
|
|
17
|
+
* @param dateDataSets - all catalog date datasets used to validate date filters. May not be given when
|
|
18
|
+
* catalog load is being deferred
|
|
19
|
+
* @param displayForms - specify display forms that should be used for in-memory resolution of
|
|
20
|
+
* attribute filter display forms to metadata objects
|
|
12
21
|
*/
|
|
13
|
-
export declare function actionsToInitializeNewDashboard(dateFilterConfig: IDateFilterConfig):
|
|
22
|
+
export declare function actionsToInitializeNewDashboard(ctx: DashboardContext, settings: ISettings, dateFilterConfig: IDateFilterConfig, dateDataSets: ICatalogDateDataset[] | null, displayForms?: ObjRefMap<IAttributeDisplayFormMetadataObject>): SagaIterator<{
|
|
23
|
+
initActions: Array<PayloadAction<any>>;
|
|
24
|
+
dashboard: IDashboard | undefined;
|
|
25
|
+
insights: IInsight[];
|
|
26
|
+
}>;
|
|
14
27
|
export declare function loadDataSets(ctx: DashboardContext, dataSetRefs: ObjRef[]): Promise<IDataSetMetadataObject[]>;
|
|
15
28
|
/**
|
|
16
29
|
* Returns a list of actions which when processed will initialize filter context, layout and meta parts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stateInitializers.d.ts","sourceRoot":"","sources":["../../../../../src/model/commandHandlers/dashboard/common/stateInitializers.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAI1C,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAEH,QAAQ,EACR,iBAAiB,EAGjB,mCAAmC,
|
|
1
|
+
{"version":3,"file":"stateInitializers.d.ts","sourceRoot":"","sources":["../../../../../src/model/commandHandlers/dashboard/common/stateInitializers.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAI1C,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAEH,QAAQ,EACR,iBAAiB,EAGjB,mCAAmC,EAGnC,UAAU,EACV,SAAS,EACT,mBAAmB,EAEnB,MAAM,EAGN,sBAAsB,EAGzB,MAAM,qBAAqB,CAAC;AAc7B,OAAO,EACH,gBAAgB,EAGnB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,SAAS,EAAE,MAAM,4CAA4C,CAAC;AAWvE;;;;;;;;;;;;;;;GAeG;AACH,wBAAiB,+BAA+B,CAC5C,GAAG,EAAE,gBAAgB,EACrB,QAAQ,EAAE,SAAS,EACnB,gBAAgB,EAAE,iBAAiB,EACnC,YAAY,EAAE,mBAAmB,EAAE,GAAG,IAAI,EAC1C,YAAY,CAAC,EAAE,SAAS,CAAC,mCAAmC,CAAC,GAC9D,YAAY,CAAC;IACZ,WAAW,EAAE,KAAK,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,CAAC;IACvC,SAAS,EAAE,UAAU,GAAG,SAAS,CAAC;IAClC,QAAQ,EAAE,QAAQ,EAAE,CAAC;CACxB,CAAC,CAyDD;AA6GD,wBAAgB,YAAY,CACxB,GAAG,EAAE,gBAAgB,EACrB,WAAW,EAAE,MAAM,EAAE,GACtB,OAAO,CAAC,sBAAsB,EAAE,CAAC,CAInC;AA8FD;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAiB,oCAAoC,CACjD,GAAG,EAAE,gBAAgB,EACrB,SAAS,EAAE,UAAU,EACrB,QAAQ,EAAE,QAAQ,EAAE,EACpB,QAAQ,EAAE,SAAS,EACnB,gBAAgB,EAAE,iBAAiB,EACnC,YAAY,EAAE,mBAAmB,EAAE,GAAG,IAAI,EAC1C,YAAY,CAAC,EAAE,SAAS,CAAC,mCAAmC,CAAC,EAC7D,kBAAkB,CAAC,EAAE,UAAU,GAChC,YAAY,CAAC,KAAK,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,CAAC,CAwEzC"}
|
|
@@ -17,27 +17,108 @@ import { attributeFilterConfigsActions } from "../../../store/attributeFilterCon
|
|
|
17
17
|
import { dateFilterConfigActions } from "../../../store/dateFilterConfig/index.js";
|
|
18
18
|
import { dateFilterConfigsActions } from "../../../store/dateFilterConfigs/index.js";
|
|
19
19
|
import { drillActions } from "../../../store/drill/index.js";
|
|
20
|
-
|
|
21
|
-
type: "IDashboardLayout",
|
|
22
|
-
sections: [],
|
|
23
|
-
};
|
|
20
|
+
import { dashboardInitialize, EmptyDashboardLayout } from "./dashboardInitialize.js";
|
|
24
21
|
/**
|
|
25
22
|
* Returns a list of actions which when processed will initialize the essential parts of the dashboard
|
|
26
23
|
* state so that it shows a new, empty dashboard.
|
|
27
24
|
*
|
|
28
|
-
* @param
|
|
25
|
+
* @param ctx - dashboard context in which the initialization is done
|
|
26
|
+
* these insights in the state; it uses the insights to perform sanitization of the dashboard layout
|
|
27
|
+
* @param settings - settings currently in effect; note that this function will not create actions to store
|
|
28
|
+
* the settings in the state; it uses the settings during layout sanitization
|
|
29
|
+
* @param dateFilterConfig - effective date filter config to use; note that this function will not store
|
|
30
|
+
* the date filter config anywhere; it uses the config during filter context sanitization & determining
|
|
31
|
+
* which date option is selected
|
|
32
|
+
* @param dateDataSets - all catalog date datasets used to validate date filters. May not be given when
|
|
33
|
+
* catalog load is being deferred
|
|
34
|
+
* @param displayForms - specify display forms that should be used for in-memory resolution of
|
|
35
|
+
* attribute filter display forms to metadata objects
|
|
29
36
|
*/
|
|
30
|
-
export function actionsToInitializeNewDashboard(dateFilterConfig) {
|
|
31
|
-
|
|
32
|
-
|
|
37
|
+
export function* actionsToInitializeNewDashboard(ctx, settings, dateFilterConfig, dateDataSets, displayForms) {
|
|
38
|
+
const { dashboard, insights, dashboardLayout, modifiedWidgets, filterContextIdentity, attributeFilterDisplayForms, filterContextDefinition, originalFilterContextDefinition, initialContent, } = yield call(actionsToInitializeOrFillNewDashboard, ctx, settings, dateFilterConfig, dateDataSets, displayForms);
|
|
39
|
+
return {
|
|
40
|
+
initActions: [
|
|
41
|
+
filterContextActions.setFilterContext({
|
|
42
|
+
originalFilterContextDefinition,
|
|
43
|
+
filterContextDefinition,
|
|
44
|
+
filterContextIdentity,
|
|
45
|
+
attributeFilterDisplayForms,
|
|
46
|
+
}),
|
|
47
|
+
layoutActions.setLayout(dashboardLayout),
|
|
48
|
+
...(dashboard
|
|
49
|
+
? [
|
|
50
|
+
metaActions.setMeta({
|
|
51
|
+
dashboard,
|
|
52
|
+
initialContent,
|
|
53
|
+
}),
|
|
54
|
+
attributeFilterConfigsActions.setAttributeFilterConfigs({
|
|
55
|
+
attributeFilterConfigs: dashboard.attributeFilterConfigs,
|
|
56
|
+
}),
|
|
57
|
+
dateFilterConfigActions.updateDateFilterConfig(dashboard.dateFilterConfig),
|
|
58
|
+
dateFilterConfigsActions.setDateFilterConfigs({
|
|
59
|
+
dateFilterConfigs: dashboard.dateFilterConfigs,
|
|
60
|
+
}),
|
|
61
|
+
metaActions.setDashboardTitle(dashboard.title),
|
|
62
|
+
uiActions.clearWidgetSelection(),
|
|
63
|
+
uiActions.setWidgetsOverlay(modifiedWidgets),
|
|
64
|
+
insightsActions.setInsights(insights),
|
|
65
|
+
drillActions.resetCrossFiltering(),
|
|
66
|
+
]
|
|
67
|
+
: [
|
|
68
|
+
metaActions.setMeta({}),
|
|
69
|
+
insightsActions.setInsights(insights),
|
|
70
|
+
drillActions.resetCrossFiltering(),
|
|
71
|
+
]),
|
|
72
|
+
],
|
|
73
|
+
dashboard: initialContent ? dashboard : undefined,
|
|
74
|
+
insights: initialContent ? insights : [],
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
function* actionsToInitializeOrFillNewDashboard(ctx, settings, dateFilterConfig, dateDataSets, displayForms) {
|
|
78
|
+
//No initial content
|
|
79
|
+
if (!ctx.config?.initialContent) {
|
|
80
|
+
return {
|
|
81
|
+
initialContent: false,
|
|
82
|
+
dashboardLayout: EmptyDashboardLayout,
|
|
33
83
|
filterContextDefinition: createDefaultFilterContext(dateFilterConfig),
|
|
34
84
|
attributeFilterDisplayForms: [],
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
85
|
+
insights: [],
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
const { dashboard, insights } = yield call(dashboardInitialize, ctx, ctx.config.initialContent);
|
|
89
|
+
const sanitizedFilterContext = yield call(sanitizeFilterContext, ctx, dashboard.filterContext, dateDataSets, dashboard.dataSets, displayForms, settings);
|
|
90
|
+
const sanitizedDashboard = {
|
|
91
|
+
...dashboard,
|
|
92
|
+
layout: dashboard.layout ?? EmptyDashboardLayout,
|
|
93
|
+
filterContext: sanitizedFilterContext,
|
|
94
|
+
};
|
|
95
|
+
const privateCtx = yield call(getPrivateContext);
|
|
96
|
+
const customizedDashboard = privateCtx?.existingDashboardTransformFn?.(sanitizedDashboard) ?? sanitizedDashboard;
|
|
97
|
+
const modifiedWidgets = privateCtx?.widgetsOverlayFn?.(customizedDashboard) ?? {};
|
|
98
|
+
const filterContextDefinition = dashboardFilterContextDefinition(customizedDashboard, dateFilterConfig);
|
|
99
|
+
const filterContextIdentity = dashboardFilterContextIdentity(customizedDashboard);
|
|
100
|
+
const displayAsLabels = getDisplayAsLabels(dashboard);
|
|
101
|
+
// load DFs for both filter refs and displayAsLabels
|
|
102
|
+
const attributeFilterDisplayForms = yield call(resolveFilterDisplayForms, ctx, filterContextDefinition.filters, displayAsLabels, displayForms);
|
|
103
|
+
/*
|
|
104
|
+
* NOTE: cannot do without the cast here. The layout in IDashboard is parameterized with IDashboardWidget
|
|
105
|
+
* which also includes KPI and Insight widget definitions = those without identity. That is however
|
|
106
|
+
* not valid: any widget for a persisted dashboard must have identity.
|
|
107
|
+
*
|
|
108
|
+
* Also note, nested layouts are not yet supported
|
|
109
|
+
*/
|
|
110
|
+
const dashboardLayout = dashboardLayoutSanitize(customizedDashboard.layout ?? EmptyDashboardLayout, insights, settings);
|
|
111
|
+
return {
|
|
112
|
+
dashboard,
|
|
113
|
+
insights,
|
|
114
|
+
modifiedWidgets,
|
|
115
|
+
filterContextIdentity,
|
|
116
|
+
dashboardLayout,
|
|
117
|
+
attributeFilterDisplayForms,
|
|
118
|
+
filterContextDefinition,
|
|
119
|
+
originalFilterContextDefinition: filterContextDefinition,
|
|
120
|
+
initialContent: true,
|
|
121
|
+
};
|
|
41
122
|
}
|
|
42
123
|
const keepOnlyFiltersWithValidRef = (filter, availableDfRefs, validDataSetIds) => {
|
|
43
124
|
if (!isDashboardAttributeFilter(filter)) {
|
|
@@ -169,6 +250,7 @@ export function* actionsToInitializeExistingDashboard(ctx, dashboard, insights,
|
|
|
169
250
|
layoutActions.setLayout(dashboardLayout),
|
|
170
251
|
metaActions.setMeta({
|
|
171
252
|
dashboard: persistedDashboard ?? dashboard,
|
|
253
|
+
initialContent: false,
|
|
172
254
|
}),
|
|
173
255
|
attributeFilterConfigsActions.setAttributeFilterConfigs({
|
|
174
256
|
attributeFilterConfigs: dashboard.attributeFilterConfigs,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stateInitializers.js","sourceRoot":"","sources":["../../../../../src/model/commandHandlers/dashboard/common/stateInitializers.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAC1C,OAAO,MAAM,MAAM,qBAAqB,CAAC;AACzC,OAAO,OAAO,MAAM,mBAAmB,CAAC;AAExC,OAAO,EACH,eAAe,EAIf,0BAA0B,EAO1B,kCAAkC,EAElC,QAAQ,EACR,eAAe,
|
|
1
|
+
{"version":3,"file":"stateInitializers.js","sourceRoot":"","sources":["../../../../../src/model/commandHandlers/dashboard/common/stateInitializers.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAC1C,OAAO,MAAM,MAAM,qBAAqB,CAAC;AACzC,OAAO,OAAO,MAAM,mBAAmB,CAAC;AAExC,OAAO,EACH,eAAe,EAIf,0BAA0B,EAO1B,kCAAkC,EAElC,QAAQ,EACR,eAAe,GAIlB,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,oBAAoB,EAAE,MAAM,uCAAuC,CAAC;AAC7E,OAAO,EAAE,0BAA0B,EAAE,MAAM,wDAAwD,CAAC;AACpG,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAC/D,OAAO,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AACnE,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAC3D,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AACvD,OAAO,EACH,gCAAgC,EAChC,8BAA8B,GACjC,MAAM,0DAA0D,CAAC;AAClE,OAAO,EAAE,uBAAuB,EAAE,MAAM,mDAAmD,CAAC;AAC5F,OAAO,EAAE,yBAAyB,EAAE,MAAM,kCAAkC,CAAC;AAQ7E,OAAO,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AACtE,OAAO,EAAE,4BAA4B,EAAE,MAAM,mCAAmC,CAAC;AACjF,OAAO,EAAE,6BAA6B,EAAE,MAAM,gDAAgD,CAAC;AAC/F,OAAO,EAAE,uBAAuB,EAAE,MAAM,0CAA0C,CAAC;AACnF,OAAO,EAAE,wBAAwB,EAAE,MAAM,2CAA2C,CAAC;AACrF,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAE7D,OAAO,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAErF;;;;;;;;;;;;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CAAC;QACF,uBAAuB,CAAC,sBAAsB,CAAC,SAAS,CAAC,gBAAiB,CAAC;QAC3E,wBAAwB,CAAC,oBAAoB,CAAC;YAC1C,iBAAiB,EAAE,SAAS,CAAC,iBAAiB;SACjD,CAAC;QACF,eAAe,CAAC,WAAW,CAAC,QAAQ,CAAC;QACrC,WAAW,CAAC,iBAAiB,CAAC,SAAS,CAAC,KAAK,CAAC,EAAE,6EAA6E;QAC7H,SAAS,CAAC,oBAAoB,EAAE;QAChC,SAAS,CAAC,iBAAiB,CAAC,eAAe,CAAC;QAC5C,YAAY,CAAC,mBAAmB,EAAE;KACrC,CAAC;AACN,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deleteDashboardHandler.d.ts","sourceRoot":"","sources":["../../../../src/model/commandHandlers/dashboard/deleteDashboardHandler.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAC9D,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAC1C,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"deleteDashboardHandler.d.ts","sourceRoot":"","sources":["../../../../src/model/commandHandlers/dashboard/deleteDashboardHandler.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAC9D,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAC1C,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AA6DzD,wBAAiB,sBAAsB,CACnC,GAAG,EAAE,gBAAgB,EACrB,GAAG,EAAE,eAAe,GACrB,YAAY,CAAC,gBAAgB,CAAC,CAyBhC"}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
// (C) 2021-
|
|
1
|
+
// (C) 2021-2025 GoodData Corporation
|
|
2
2
|
import { call, put, select } from "redux-saga/effects";
|
|
3
3
|
import { invalidArgumentsProvided } from "../../events/general.js";
|
|
4
4
|
import { areObjRefsEqual, idRef, uriRef } from "@gooddata/sdk-model";
|
|
5
5
|
import { batchActions } from "redux-batched-actions";
|
|
6
6
|
import { executionResultsActions } from "../../store/executionResults/index.js";
|
|
7
|
-
import { selectDateFilterConfig } from "../../store/config/configSelectors.js";
|
|
7
|
+
import { selectDateFilterConfig, selectSettings } from "../../store/config/configSelectors.js";
|
|
8
8
|
import { selectPersistedDashboard } from "../../store/meta/metaSelectors.js";
|
|
9
|
+
import { selectAllCatalogDisplayFormsMap, selectCatalogDateDatasets, } from "../../store/catalog/catalogSelectors.js";
|
|
9
10
|
import { dashboardDeleted } from "../../events/dashboard.js";
|
|
10
11
|
import { invariant } from "ts-invariant";
|
|
11
12
|
import { actionsToInitializeNewDashboard } from "./common/stateInitializers.js";
|
|
@@ -20,11 +21,12 @@ function deleteDashboard(ctx, dashboardRef) {
|
|
|
20
21
|
* Note: This will not clear any of the dashboard-agnostic global state such as config and settings.
|
|
21
22
|
*/
|
|
22
23
|
function* resetToNewDashboard(ctx) {
|
|
24
|
+
const settings = yield select(selectSettings);
|
|
23
25
|
const dateFilterConfig = yield select(selectDateFilterConfig);
|
|
24
|
-
yield
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
], "@@GDC.DASH/BATCH.CLEAR"));
|
|
26
|
+
const dateDataSets = yield select(selectCatalogDateDatasets);
|
|
27
|
+
const displayForms = yield select(selectAllCatalogDisplayFormsMap);
|
|
28
|
+
const { initActions } = yield call(actionsToInitializeNewDashboard, ctx, settings, dateFilterConfig, dateDataSets, displayForms);
|
|
29
|
+
yield put(batchActions([...initActions, executionResultsActions.clearAllExecutionResults()], "@@GDC.DASH/BATCH.CLEAR"));
|
|
28
30
|
/*
|
|
29
31
|
* We must do this by mutating the context object, the setContext effect changes the context only
|
|
30
32
|
* for the current saga and its children. See https://github.com/redux-saga/redux-saga/issues/1798#issuecomment-468054586
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deleteDashboardHandler.js","sourceRoot":"","sources":["../../../../src/model/commandHandlers/dashboard/deleteDashboardHandler.ts"],"names":[],"mappings":"AAAA,qCAAqC;AAMrC,OAAO,EAAE,IAAI,EAAE,GAAG,
|
|
1
|
+
{"version":3,"file":"deleteDashboardHandler.js","sourceRoot":"","sources":["../../../../src/model/commandHandlers/dashboard/deleteDashboardHandler.ts"],"names":[],"mappings":"AAAA,qCAAqC;AAMrC,OAAO,EAAE,IAAI,EAAE,GAAG,EAAkB,MAAM,EAAE,MAAM,oBAAoB,CAAC;AACvE,OAAO,EAAE,wBAAwB,EAAE,MAAM,yBAAyB,CAAC;AACnE,OAAO,EAAE,eAAe,EAAE,KAAK,EAAU,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7E,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACrD,OAAO,EAAE,uBAAuB,EAAE,MAAM,uCAAuC,CAAC;AAChF,OAAO,EAAE,sBAAsB,EAAE,cAAc,EAAE,MAAM,uCAAuC,CAAC;AAC/F,OAAO,EAAE,wBAAwB,EAAE,MAAM,mCAAmC,CAAC;AAC7E,OAAO,EACH,+BAA+B,EAC/B,yBAAyB,GAC5B,MAAM,yCAAyC,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAC7D,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,+BAA+B,EAAE,MAAM,+BAA+B,CAAC;AAEhF,SAAS,eAAe,CAAC,GAAqB,EAAE,YAAoB;IAChE,MAAM,EAAE,OAAO,EAAE,SAAS,EAAE,GAAG,GAAG,CAAC;IAEnC,OAAO,OAAO,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC,UAAU,EAAE,CAAC,eAAe,CAAC,YAAY,CAAC,C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AC5B,MAAM,IAAI,CAAC,eAAe,EAAE,GAAG,EAAE,kBAAkB,CAAC,GAAG,CAAC,CAAC;IAEzD,MAAM,IAAI,CAAC,mBAAmB,EAAE,GAAG,CAAC,CAAC;IAErC,OAAO,gBAAgB,CAAC,GAAG,EAAE,kBAAkB,EAAE,GAAG,CAAC,aAAa,CAAC,CAAC;AACxE,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { SagaIterator } from "redux-saga";
|
|
2
|
+
import { DashboardContext } from "../../types/commonTypes.js";
|
|
3
|
+
import { ExportDashboardToPdf } from "../../commands/index.js";
|
|
4
|
+
import { DashboardExportToExcelResolved } from "../../events/dashboard.js";
|
|
5
|
+
export declare function exportDashboardToExcelHandler(ctx: DashboardContext, cmd: ExportDashboardToPdf): SagaIterator<DashboardExportToExcelResolved>;
|
|
6
|
+
//# sourceMappingURL=exportDashboardToExcelHandler.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"exportDashboardToExcelHandler.d.ts","sourceRoot":"","sources":["../../../../src/model/commandHandlers/dashboard/exportDashboardToExcelHandler.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAK1C,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAC9D,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,EACH,8BAA8B,EAGjC,MAAM,2BAA2B,CAAC;AAUnC,wBAAiB,6BAA6B,CAC1C,GAAG,EAAE,gBAAgB,EACrB,GAAG,EAAE,oBAAoB,GAC1B,YAAY,CAAC,8BAA8B,CAAC,CAyB9C"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { call, put, select } from "redux-saga/effects";
|
|
2
|
+
import { dashboardExportToExcelRequested, dashboardExportToExcelResolved, } from "../../events/dashboard.js";
|
|
3
|
+
import { selectDashboardRef } from "../../store/meta/metaSelectors.js";
|
|
4
|
+
import { invalidArgumentsProvided } from "../../events/general.js";
|
|
5
|
+
function exportDashboardToTabular(ctx, dashboardRef) {
|
|
6
|
+
const { backend, workspace } = ctx;
|
|
7
|
+
return backend.workspace(workspace).dashboards().exportDashboardToTabular(dashboardRef);
|
|
8
|
+
}
|
|
9
|
+
export function* exportDashboardToExcelHandler(ctx, cmd) {
|
|
10
|
+
yield put(dashboardExportToExcelRequested(ctx, cmd.correlationId));
|
|
11
|
+
const dashboardRef = yield select(selectDashboardRef);
|
|
12
|
+
if (!dashboardRef) {
|
|
13
|
+
throw invalidArgumentsProvided(ctx, cmd, "Dashboard to export to EXCEL must have an ObjRef.");
|
|
14
|
+
}
|
|
15
|
+
const result = yield call(exportDashboardToTabular, ctx, dashboardRef);
|
|
16
|
+
// prepend hostname if provided so that the results are downloaded from there, not from where the app is hosted
|
|
17
|
+
const fullUri = ctx.backend.config.hostname
|
|
18
|
+
? new URL(result.uri, ctx.backend.config.hostname).href
|
|
19
|
+
: result.uri;
|
|
20
|
+
const sanitizedResult = {
|
|
21
|
+
...result,
|
|
22
|
+
uri: fullUri,
|
|
23
|
+
};
|
|
24
|
+
return dashboardExportToExcelResolved(ctx, sanitizedResult, cmd.correlationId);
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=exportDashboardToExcelHandler.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"exportDashboardToExcelHandler.js","sourceRoot":"","sources":["../../../../src/model/commandHandlers/dashboard/exportDashboardToExcelHandler.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAMvD,OAAO,EAEH,+BAA+B,EAC/B,8BAA8B,GACjC,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AACvE,OAAO,EAAE,wBAAwB,EAAE,MAAM,yBAAyB,CAAC;AAGnE,SAAS,wBAAwB,CAAC,GAAqB,EAAE,YAAoB;IACzE,MAAM,EAAE,OAAO,EAAE,SAAS,EAAE,GAAG,GAAG,CAAC;IACnC,OAAO,OAAO,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC,UAAU,EAAE,CAAC,wBAAwB,CAAC,YAAY,CAAC,CAAC;AAC5F,CAAC;AAED,MAAM,SAAS,CAAC,CAAC,6BAA6B,CAC1C,GAAqB,EACrB,GAAyB;IAEzB,MAAM,GAAG,CAAC,+BAA+B,CAAC,GAAG,EAAE,GAAG,CAAC,aAAa,CAAC,CAAC,CAAC;IAEnE,MAAM,YAAY,GAAG,MAAM,MAAM,CAAC,kBAAkB,CAAC,CAAC;IACtD,IAAI,CAAC,YAAY,EAAE,CAAC;QAChB,MAAM,wBAAwB,CAAC,GAAG,EAAE,GAAG,EAAE,mDAAmD,CAAC,CAAC;IAClG,CAAC;IAED,MAAM,MAAM,GAAyD,MAAM,IAAI,CAC3E,wBAAwB,EACxB,GAAG,EACH,YAAY,CACf,CAAC;IAEF,+GAA+G;IAC/G,MAAM,OAAO,GAAG,GAAG,CAAC,OAAO,CAAC,MAAM,CAAC,QAAQ;QACvC,CAAC,CAAC,IAAI,GAAG,CAAC,MAAM,CAAC,GAAG,EAAE,GAAG,CAAC,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,IAAI;QACvD,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC;IAEjB,MAAM,eAAe,GAAkB;QACnC,GAAG,MAAM;QACT,GAAG,EAAE,OAAO;KACf,CAAC;IAEF,OAAO,8BAA8B,CAAC,GAAG,EAAE,eAAe,EAAE,GAAG,CAAC,aAAa,CAAC,CAAC;AACnF,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { SagaIterator } from "redux-saga";
|
|
2
|
+
import { DashboardContext } from "../../types/commonTypes.js";
|
|
3
|
+
import { ExportDashboardToPdf } from "../../commands/index.js";
|
|
4
|
+
import { DashboardExportToPdfPresentationResolved } from "../../events/dashboard.js";
|
|
5
|
+
export declare function exportDashboardToPdfPresentationHandler(ctx: DashboardContext, cmd: ExportDashboardToPdf): SagaIterator<DashboardExportToPdfPresentationResolved>;
|
|
6
|
+
//# sourceMappingURL=exportDashboardToPdfPresentationHandler.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"exportDashboardToPdfPresentationHandler.d.ts","sourceRoot":"","sources":["../../../../src/model/commandHandlers/dashboard/exportDashboardToPdfPresentationHandler.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAK1C,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAC9D,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,EACH,wCAAwC,EAG3C,MAAM,2BAA2B,CAAC;AAmBnC,wBAAiB,uCAAuC,CACpD,GAAG,EAAE,gBAAgB,EACrB,GAAG,EAAE,oBAAoB,GAC1B,YAAY,CAAC,wCAAwC,CAAC,CAgCxD"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { call, put, select } from "redux-saga/effects";
|
|
2
|
+
import { dashboardExportToPdfPresentationRequested, dashboardExportToPdfPresentationResolved, } from "../../events/dashboard.js";
|
|
3
|
+
import { selectDashboardRef } from "../../store/meta/metaSelectors.js";
|
|
4
|
+
import { invalidArgumentsProvided } from "../../events/general.js";
|
|
5
|
+
import { selectFilterContextFilters } from "../../store/filterContext/filterContextSelectors.js";
|
|
6
|
+
import { ensureAllTimeFilterForExport } from "../../../_staging/exportUtils/filterUtils.js";
|
|
7
|
+
function exportDashboardToPdfPresentation(ctx, dashboardRef, filters) {
|
|
8
|
+
const { backend, workspace } = ctx;
|
|
9
|
+
return backend
|
|
10
|
+
.workspace(workspace)
|
|
11
|
+
.dashboards()
|
|
12
|
+
.exportDashboardToPresentation(dashboardRef, "PDF", filters);
|
|
13
|
+
}
|
|
14
|
+
export function* exportDashboardToPdfPresentationHandler(ctx, cmd) {
|
|
15
|
+
yield put(dashboardExportToPdfPresentationRequested(ctx, cmd.correlationId));
|
|
16
|
+
const dashboardRef = yield select(selectDashboardRef);
|
|
17
|
+
if (!dashboardRef) {
|
|
18
|
+
throw invalidArgumentsProvided(ctx, cmd, "Dashboard to export to EXCEL must have an ObjRef.");
|
|
19
|
+
}
|
|
20
|
+
const filterContextFilters = yield select(selectFilterContextFilters);
|
|
21
|
+
const effectiveFilters = ensureAllTimeFilterForExport(filterContextFilters);
|
|
22
|
+
const result = yield call(exportDashboardToPdfPresentation, ctx, dashboardRef, effectiveFilters);
|
|
23
|
+
// prepend hostname if provided so that the results are downloaded from there, not from where the app is hosted
|
|
24
|
+
const fullUri = ctx.backend.config.hostname
|
|
25
|
+
? new URL(result.uri, ctx.backend.config.hostname).href
|
|
26
|
+
: result.uri;
|
|
27
|
+
const sanitizedResult = {
|
|
28
|
+
...result,
|
|
29
|
+
uri: fullUri,
|
|
30
|
+
};
|
|
31
|
+
return dashboardExportToPdfPresentationResolved(ctx, sanitizedResult, cmd.correlationId);
|
|
32
|
+
}
|
|
33
|
+
//# sourceMappingURL=exportDashboardToPdfPresentationHandler.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"exportDashboardToPdfPresentationHandler.js","sourceRoot":"","sources":["../../../../src/model/commandHandlers/dashboard/exportDashboardToPdfPresentationHandler.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAMvD,OAAO,EAEH,yCAAyC,EACzC,wCAAwC,GAC3C,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AACvE,OAAO,EAAE,wBAAwB,EAAE,MAAM,yBAAyB,CAAC;AACnE,OAAO,EAAE,0BAA0B,EAAE,MAAM,qDAAqD,CAAC;AACjG,OAAO,EAAE,4BAA4B,EAAE,MAAM,8CA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AC,CAAC;AAC7F,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { SagaIterator } from "redux-saga";
|
|
2
|
+
import { DashboardContext } from "../../types/commonTypes.js";
|
|
3
|
+
import { ExportDashboardToPdf } from "../../commands/index.js";
|
|
4
|
+
import { DashboardExportToPptPresentationResolved } from "../../events/dashboard.js";
|
|
5
|
+
export declare function exportDashboardToPptPresentationHandler(ctx: DashboardContext, cmd: ExportDashboardToPdf): SagaIterator<DashboardExportToPptPresentationResolved>;
|
|
6
|
+
//# sourceMappingURL=exportDashboardToPptPresentationHandler.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"exportDashboardToPptPresentationHandler.d.ts","sourceRoot":"","sources":["../../../../src/model/commandHandlers/dashboard/exportDashboardToPptPresentationHandler.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAK1C,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAC9D,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,EACH,wCAAwC,EAG3C,MAAM,2BAA2B,CAAC;AAmBnC,wBAAiB,uCAAuC,CACpD,GAAG,EAAE,gBAAgB,EACrB,GAAG,EAAE,oBAAoB,GAC1B,YAAY,CAAC,wCAAwC,CAAC,CAgCxD"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { call, put, select } from "redux-saga/effects";
|
|
2
|
+
import { dashboardExportToPptPresentationRequested, dashboardExportToPptPresentationResolved, } from "../../events/dashboard.js";
|
|
3
|
+
import { selectDashboardRef } from "../../store/meta/metaSelectors.js";
|
|
4
|
+
import { invalidArgumentsProvided } from "../../events/general.js";
|
|
5
|
+
import { ensureAllTimeFilterForExport } from "../../../_staging/exportUtils/filterUtils.js";
|
|
6
|
+
import { selectFilterContextFilters } from "../../store/filterContext/filterContextSelectors.js";
|
|
7
|
+
function exportDashboardToPptPresentation(ctx, dashboardRef, filters) {
|
|
8
|
+
const { backend, workspace } = ctx;
|
|
9
|
+
return backend
|
|
10
|
+
.workspace(workspace)
|
|
11
|
+
.dashboards()
|
|
12
|
+
.exportDashboardToPresentation(dashboardRef, "PPTX", filters);
|
|
13
|
+
}
|
|
14
|
+
export function* exportDashboardToPptPresentationHandler(ctx, cmd) {
|
|
15
|
+
yield put(dashboardExportToPptPresentationRequested(ctx, cmd.correlationId));
|
|
16
|
+
const dashboardRef = yield select(selectDashboardRef);
|
|
17
|
+
if (!dashboardRef) {
|
|
18
|
+
throw invalidArgumentsProvided(ctx, cmd, "Dashboard to export to PPT must have an ObjRef.");
|
|
19
|
+
}
|
|
20
|
+
const filterContextFilters = yield select(selectFilterContextFilters);
|
|
21
|
+
const effectiveFilters = ensureAllTimeFilterForExport(filterContextFilters);
|
|
22
|
+
const result = yield call(exportDashboardToPptPresentation, ctx, dashboardRef, effectiveFilters);
|
|
23
|
+
// prepend hostname if provided so that the results are downloaded from there, not from where the app is hosted
|
|
24
|
+
const fullUri = ctx.backend.config.hostname
|
|
25
|
+
? new URL(result.uri, ctx.backend.config.hostname).href
|
|
26
|
+
: result.uri;
|
|
27
|
+
const sanitizedResult = {
|
|
28
|
+
...result,
|
|
29
|
+
uri: fullUri,
|
|
30
|
+
};
|
|
31
|
+
return dashboardExportToPptPresentationResolved(ctx, sanitizedResult, cmd.correlationId);
|
|
32
|
+
}
|
|
33
|
+
//# sourceMappingURL=exportDashboardToPptPresentationHandler.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"exportDashboardToPptPresentationHandler.js","sourceRoot":"","sources":["../../../../src/model/commandHandlers/dashboard/exportDashboardToPptPresentationHandler.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAMvD,OAAO,EAEH,yCAAyC,EACzC,wCAAwC,GAC3C,MAAM,2BAA2B,CAAC;AACnC,O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AAI;QACvD,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC;IAEjB,MAAM,eAAe,GAAkB;QACnC,GAAG,MAAM;QACT,GAAG,EAAE,OAAO;KACf,CAAC;IAEF,OAAO,wCAAwC,CAAC,GAAG,EAAE,eAAe,EAAE,GAAG,CAAC,aAAa,CAAC,CAAC;AAC7F,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/model/commandHandlers/dashboard/initializeDashboardHandler/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE1C,OAAO,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAC;AAGrE,OAAO,EAAE,gBAAgB,EAA2B,MAAM,+BAA+B,CAAC;AAC1F,OAAO,EAAwC,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAWpG,OAAO,EAAE,WAAW,EAAgB,MAAM,uBAAuB,CAAC;AAQlE,OAAO,EAEH,UAAU,EAOV,sBAAsB,EACzB,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/model/commandHandlers/dashboard/initializeDashboardHandler/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE1C,OAAO,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAC;AAGrE,OAAO,EAAE,gBAAgB,EAA2B,MAAM,+BAA+B,CAAC;AAC1F,OAAO,EAAwC,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAWpG,OAAO,EAAE,WAAW,EAAgB,MAAM,uBAAuB,CAAC;AAQlE,OAAO,EAEH,UAAU,EAOV,sBAAsB,EACzB,MAAM,qBAAqB,CAAC;AAsX7B,wBAAiB,cAAc,CAAC,GAAG,EAAE,gBAAgB,EAAE,GAAG,EAAE,mBAAmB;;;yDAgB9E;AAED,wBAAiB,2BAA2B,CAAC,GAAG,EAAE,gBAAgB,EAAE,SAAS,EAAE,UAAU;;;0EAKxF;AAED,wBAAiB,qBAAqB,CAAC,GAAG,EAAE,gBAAgB,sNAW3D;AAcD,wBAAiB,0BAA0B,CAAC,GAAG,EAAE,gBAAgB,EAAE,GAAG,EAAE,mBAAmB,GAAG,YAAY,CAgCzG"}
|