@gooddata/sdk-ui-dashboard 10.22.0-alpha.9 → 10.22.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/NOTICE +4516 -4046
- 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/dashboard/dashboardFilterConverter.d.ts +5 -2
- package/esm/_staging/dashboard/dashboardFilterConverter.d.ts.map +1 -1
- package/esm/_staging/dashboard/dashboardFilterConverter.js +12 -7
- package/esm/_staging/dashboard/dashboardFilterConverter.js.map +1 -1
- package/esm/_staging/sharedHooks/useFiltersNamings.d.ts +2 -0
- package/esm/_staging/sharedHooks/useFiltersNamings.d.ts.map +1 -1
- package/esm/_staging/sharedHooks/useFiltersNamings.js +8 -2
- package/esm/_staging/sharedHooks/useFiltersNamings.js.map +1 -1
- package/esm/assets/type-csv-formatted.svg +1 -0
- package/esm/assets/type-csv-raw.svg +1 -0
- package/esm/assets/type-image.svg +1 -0
- package/esm/assets/type-pdf.svg +1 -0
- package/esm/assets/type-sheet.svg +1 -0
- package/esm/assets/type-slides.svg +1 -0
- package/esm/model/commandHandlers/dashboard/common/migratedAttributeFilters.d.ts +18 -0
- package/esm/model/commandHandlers/dashboard/common/migratedAttributeFilters.d.ts.map +1 -0
- package/esm/model/commandHandlers/dashboard/common/migratedAttributeFilters.js +36 -0
- package/esm/model/commandHandlers/dashboard/common/migratedAttributeFilters.js.map +1 -0
- package/esm/model/commandHandlers/dashboard/common/stateInitializers.d.ts +8 -2
- package/esm/model/commandHandlers/dashboard/common/stateInitializers.d.ts.map +1 -1
- package/esm/model/commandHandlers/dashboard/common/stateInitializers.js +20 -7
- package/esm/model/commandHandlers/dashboard/common/stateInitializers.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 +1 -1
- package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/index.js.map +1 -1
- package/esm/model/commandHandlers/dashboard/resetDashboardHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/dashboard/resetDashboardHandler.js +37 -4
- package/esm/model/commandHandlers/dashboard/resetDashboardHandler.js.map +1 -1
- package/esm/model/commandHandlers/dashboard/saveAsDashboardHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/dashboard/saveAsDashboardHandler.js +19 -5
- package/esm/model/commandHandlers/dashboard/saveAsDashboardHandler.js.map +1 -1
- package/esm/model/commandHandlers/filterContext/attributeFilter/changeAttributeDisplayFormHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/filterContext/attributeFilter/changeAttributeDisplayFormHandler.js +14 -7
- package/esm/model/commandHandlers/filterContext/attributeFilter/changeAttributeDisplayFormHandler.js.map +1 -1
- package/esm/model/commandHandlers/filterContext/attributeFilter/changeAttributeFilterSelectionHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/filterContext/attributeFilter/changeAttributeFilterSelectionHandler.js +12 -4
- package/esm/model/commandHandlers/filterContext/attributeFilter/changeAttributeFilterSelectionHandler.js.map +1 -1
- package/esm/model/commandHandlers/filterContext/common.d.ts +4 -0
- package/esm/model/commandHandlers/filterContext/common.d.ts.map +1 -1
- package/esm/model/commandHandlers/filterContext/common.js +8 -1
- package/esm/model/commandHandlers/filterContext/common.js.map +1 -1
- package/esm/model/commandHandlers/filterContext/dateFilter/changeDateFilterSelectionHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/filterContext/dateFilter/changeDateFilterSelectionHandler.js +15 -9
- package/esm/model/commandHandlers/filterContext/dateFilter/changeDateFilterSelectionHandler.js.map +1 -1
- package/esm/model/commandHandlers/filterContext/filterViewHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/filterContext/filterViewHandler.js +9 -2
- package/esm/model/commandHandlers/filterContext/filterViewHandler.js.map +1 -1
- package/esm/model/commandHandlers/index.d.ts.map +1 -1
- package/esm/model/commandHandlers/index.js +10 -0
- package/esm/model/commandHandlers/index.js.map +1 -1
- package/esm/model/commandHandlers/widgets/exportRawInsightWidgetHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/widgets/exportRawInsightWidgetHandler.js +21 -16
- package/esm/model/commandHandlers/widgets/exportRawInsightWidgetHandler.js.map +1 -1
- package/esm/model/commandHandlers/widgets/exportSlidesInsightWidgetHandler.d.ts +6 -0
- package/esm/model/commandHandlers/widgets/exportSlidesInsightWidgetHandler.d.ts.map +1 -0
- package/esm/model/commandHandlers/widgets/exportSlidesInsightWidgetHandler.js +33 -0
- package/esm/model/commandHandlers/widgets/exportSlidesInsightWidgetHandler.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/filters.d.ts +74 -4
- package/esm/model/commands/filters.d.ts.map +1 -1
- package/esm/model/commands/filters.js +71 -4
- package/esm/model/commands/filters.js.map +1 -1
- package/esm/model/commands/index.d.ts +10 -10
- 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 +51 -5
- package/esm/model/commands/insight.d.ts.map +1 -1
- package/esm/model/commands/insight.js +27 -2
- 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/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 +18 -0
- package/esm/model/store/config/configSelectors.d.ts.map +1 -1
- package/esm/model/store/config/configSelectors.js +24 -0
- package/esm/model/store/config/configSelectors.js.map +1 -1
- package/esm/model/store/filterContext/filterContextReducers.d.ts +11 -0
- package/esm/model/store/filterContext/filterContextReducers.d.ts.map +1 -1
- package/esm/model/store/filterContext/filterContextReducers.js +87 -28
- package/esm/model/store/filterContext/filterContextReducers.js.map +1 -1
- package/esm/model/store/filterContext/filterContextSelectors.d.ts +70 -5
- package/esm/model/store/filterContext/filterContextSelectors.d.ts.map +1 -1
- package/esm/model/store/filterContext/filterContextSelectors.js +124 -7
- package/esm/model/store/filterContext/filterContextSelectors.js.map +1 -1
- package/esm/model/store/filterContext/filterContextState.d.ts +44 -2
- package/esm/model/store/filterContext/filterContextState.d.ts.map +1 -1
- package/esm/model/store/filterContext/filterContextState.js +1 -0
- package/esm/model/store/filterContext/filterContextState.js.map +1 -1
- package/esm/model/store/filterContext/filterContextUtils.d.ts +10 -0
- package/esm/model/store/filterContext/filterContextUtils.d.ts.map +1 -0
- package/esm/model/store/filterContext/filterContextUtils.js +70 -0
- package/esm/model/store/filterContext/filterContextUtils.js.map +1 -0
- package/esm/model/store/filterContext/index.d.ts +4 -0
- package/esm/model/store/filterContext/index.d.ts.map +1 -1
- package/esm/model/store/index.d.ts +5 -4
- 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/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/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/dragAndDrop/draggableDateFilter/DraggableDateFilter.d.ts +1 -1
- package/esm/presentation/dragAndDrop/draggableDateFilter/DraggableDateFilter.d.ts.map +1 -1
- package/esm/presentation/dragAndDrop/draggableDateFilter/DraggableDateFilter.js +1 -1
- package/esm/presentation/dragAndDrop/draggableDateFilter/DraggableDateFilter.js.map +1 -1
- package/esm/presentation/export/DefaultDashboardExportVariables.d.ts +13 -0
- package/esm/presentation/export/DefaultDashboardExportVariables.d.ts.map +1 -0
- package/esm/presentation/export/DefaultDashboardExportVariables.js +34 -0
- package/esm/presentation/export/DefaultDashboardExportVariables.js.map +1 -0
- package/esm/presentation/export/hooks/useDashboardRelatedFilters.d.ts +17 -0
- package/esm/presentation/export/hooks/useDashboardRelatedFilters.d.ts.map +1 -0
- package/esm/presentation/export/hooks/useDashboardRelatedFilters.js +13 -0
- package/esm/presentation/export/hooks/useDashboardRelatedFilters.js.map +1 -0
- package/esm/presentation/export/index.d.ts +1 -0
- package/esm/presentation/export/index.d.ts.map +1 -1
- package/esm/presentation/export/index.js +1 -0
- package/esm/presentation/export/index.js.map +1 -1
- package/esm/presentation/export/types.d.ts +42 -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 +57 -3
- package/esm/presentation/export/useExportData.js.map +1 -1
- package/esm/presentation/filterBar/attributeFilter/DefaultDashboardAttributeFilter.d.ts.map +1 -1
- package/esm/presentation/filterBar/attributeFilter/DefaultDashboardAttributeFilter.js +9 -2
- package/esm/presentation/filterBar/attributeFilter/DefaultDashboardAttributeFilter.js.map +1 -1
- package/esm/presentation/filterBar/attributeFilter/types.d.ts +2 -1
- package/esm/presentation/filterBar/attributeFilter/types.d.ts.map +1 -1
- package/esm/presentation/filterBar/attributeFilter/useDependentDateFilters.d.ts.map +1 -1
- package/esm/presentation/filterBar/attributeFilter/useDependentDateFilters.js +14 -4
- package/esm/presentation/filterBar/attributeFilter/useDependentDateFilters.js.map +1 -1
- package/esm/presentation/filterBar/attributeFilter/useParentFilters.d.ts.map +1 -1
- package/esm/presentation/filterBar/attributeFilter/useParentFilters.js +9 -3
- package/esm/presentation/filterBar/attributeFilter/useParentFilters.js.map +1 -1
- package/esm/presentation/filterBar/dateFilter/DefaultDashboardDateFilter.d.ts.map +1 -1
- package/esm/presentation/filterBar/dateFilter/DefaultDashboardDateFilter.js +8 -2
- package/esm/presentation/filterBar/dateFilter/DefaultDashboardDateFilter.js.map +1 -1
- package/esm/presentation/filterBar/dateFilter/types.d.ts +2 -1
- package/esm/presentation/filterBar/dateFilter/types.d.ts.map +1 -1
- package/esm/presentation/filterBar/filterBar/DefaultFilterBar.d.ts.map +1 -1
- package/esm/presentation/filterBar/filterBar/DefaultFilterBar.js +19 -10
- package/esm/presentation/filterBar/filterBar/DefaultFilterBar.js.map +1 -1
- package/esm/presentation/filterBar/filterBar/DefaultFilterBarContainer.d.ts.map +1 -1
- package/esm/presentation/filterBar/filterBar/DefaultFilterBarContainer.js +15 -4
- package/esm/presentation/filterBar/filterBar/DefaultFilterBarContainer.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/DashboardLayoutViewSectionHeaderRenderer.js +1 -1
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutViewSectionHeaderRenderer.js.map +1 -1
- package/esm/presentation/flexibleLayout/DefaultFlexibleDashboardLayout.d.ts.map +1 -1
- package/esm/presentation/flexibleLayout/DefaultFlexibleDashboardLayout.js +2 -0
- package/esm/presentation/flexibleLayout/DefaultFlexibleDashboardLayout.js.map +1 -1
- package/esm/presentation/layout/DefaultDashboardLayout.d.ts.map +1 -1
- package/esm/presentation/layout/DefaultDashboardLayout.js +2 -0
- package/esm/presentation/layout/DefaultDashboardLayout.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/localization/bundles/de-DE.json +14 -1
- package/esm/presentation/localization/bundles/en-AU.json +14 -1
- package/esm/presentation/localization/bundles/en-GB.json +14 -1
- package/esm/presentation/localization/bundles/en-US.json +46 -1
- package/esm/presentation/localization/bundles/es-419.json +14 -1
- package/esm/presentation/localization/bundles/es-ES.json +14 -1
- package/esm/presentation/localization/bundles/fi-FI.json +14 -1
- package/esm/presentation/localization/bundles/fr-CA.json +14 -1
- package/esm/presentation/localization/bundles/fr-FR.json +14 -1
- package/esm/presentation/localization/bundles/it-IT.json +14 -1
- package/esm/presentation/localization/bundles/ja-JP.json +14 -1
- package/esm/presentation/localization/bundles/nl-NL.json +14 -1
- package/esm/presentation/localization/bundles/pt-BR.json +14 -1
- package/esm/presentation/localization/bundles/pt-PT.json +14 -1
- package/esm/presentation/localization/bundles/ru-RU.json +1 -0
- package/esm/presentation/localization/bundles/zh-HK.json +14 -1
- package/esm/presentation/localization/bundles/zh-Hans.json +14 -1
- package/esm/presentation/localization/bundles/zh-Hant.json +14 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/DefaultScheduledEmailDialog.d.ts.map +1 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/DefaultScheduledEmailDialog.js +2 -0
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/DefaultScheduledEmailDialog.js.map +1 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/hooks/useFiltersForDashboardScheduledExportInfo.d.ts +2 -0
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/hooks/useFiltersForDashboardScheduledExportInfo.d.ts.map +1 -1
- package/esm/presentation/topBar/buttonBar/button/editButton/DefaultEditButton.d.ts.map +1 -1
- package/esm/presentation/topBar/buttonBar/button/editButton/DefaultEditButton.js +5 -4
- 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 +3 -4
- 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 +53 -28
- 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 +105 -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/topBar/shareIndicators/shareStatus/ShareStatusIndicator.js +2 -2
- package/esm/presentation/topBar/shareIndicators/shareStatus/ShareStatusIndicator.js.map +1 -1
- 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 +8 -2
- package/esm/presentation/widget/common/useInsightExport.d.ts.map +1 -1
- package/esm/presentation/widget/common/useInsightExport.js +26 -4
- package/esm/presentation/widget/common/useInsightExport.js.map +1 -1
- package/esm/presentation/widget/common/useRawExportHandler.d.ts.map +1 -1
- package/esm/presentation/widget/common/useRawExportHandler.js.map +1 -1
- package/esm/presentation/widget/common/useSlidesExportHandler.d.ts +5 -0
- package/esm/presentation/widget/common/useSlidesExportHandler.d.ts.map +1 -0
- package/esm/presentation/widget/common/useSlidesExportHandler.js +35 -0
- package/esm/presentation/widget/common/useSlidesExportHandler.js.map +1 -0
- package/esm/presentation/widget/description/DescriptionClickTrigger.d.ts.map +1 -1
- package/esm/presentation/widget/description/DescriptionClickTrigger.js +3 -3
- package/esm/presentation/widget/description/DescriptionClickTrigger.js.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 +35 -9
- 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 +3 -3
- package/esm/presentation/widget/insight/ViewModeDashboardInsight/InsightDrillDialog/DrillModalFooter.js.map +1 -1
- package/esm/presentation/widget/insight/ViewModeDashboardInsight/InsightDrillDialog/DrillModalRawExportOptions.d.ts +2 -0
- package/esm/presentation/widget/insight/ViewModeDashboardInsight/InsightDrillDialog/DrillModalRawExportOptions.d.ts.map +1 -1
- package/esm/presentation/widget/insight/ViewModeDashboardInsight/InsightDrillDialog/DrillModalRawExportOptions.js +6 -5
- package/esm/presentation/widget/insight/ViewModeDashboardInsight/InsightDrillDialog/DrillModalRawExportOptions.js.map +1 -1
- package/esm/presentation/widget/insight/ViewModeDashboardInsight/InsightDrillDialog/InsightDrillDialog.d.ts.map +1 -1
- package/esm/presentation/widget/insight/ViewModeDashboardInsight/InsightDrillDialog/InsightDrillDialog.js +7 -3
- package/esm/presentation/widget/insight/ViewModeDashboardInsight/InsightDrillDialog/InsightDrillDialog.js.map +1 -1
- package/esm/presentation/widget/insight/configuration/ExportOptions.d.ts +14 -1
- package/esm/presentation/widget/insight/configuration/ExportOptions.d.ts.map +1 -1
- package/esm/presentation/widget/insight/configuration/ExportOptions.js +30 -31
- package/esm/presentation/widget/insight/configuration/ExportOptions.js.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertComparisonOperatorSelect.d.ts.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertComparisonOperatorSelect.js +6 -3
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertComparisonOperatorSelect.js.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertDestinationSelect.d.ts.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertDestinationSelect.js +4 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertDestinationSelect.js.map +1 -1
- 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/DashboardInsightMenuButton.d.ts.map +1 -1
- package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/DashboardInsightMenuButton.js +4 -3
- package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/DashboardInsightMenuButton.js.map +1 -1
- package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/getDefaultInsightMenuItems.d.ts +6 -0
- package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/getDefaultInsightMenuItems.d.ts.map +1 -1
- package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/getDefaultInsightMenuItems.js +12 -4
- package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/getDefaultInsightMenuItems.js.map +1 -1
- package/esm/presentation/widget/visualizationSwitcher/ViewModeDashboardVisualizationSwitcher.d.ts.map +1 -1
- package/esm/presentation/widget/visualizationSwitcher/ViewModeDashboardVisualizationSwitcher.js +7 -1
- package/esm/presentation/widget/visualizationSwitcher/ViewModeDashboardVisualizationSwitcher.js.map +1 -1
- package/esm/presentation/widget/widget/InsightWidget/DefaultDashboardInsightWidget.js +7 -1
- package/esm/presentation/widget/widget/InsightWidget/DefaultDashboardInsightWidget.js.map +1 -1
- package/esm/presentation/widget/widget/InsightWidget/useInsightMenu.d.ts +5 -0
- package/esm/presentation/widget/widget/InsightWidget/useInsightMenu.d.ts.map +1 -1
- package/esm/presentation/widget/widget/InsightWidget/useInsightMenu.js +23 -2
- package/esm/presentation/widget/widget/InsightWidget/useInsightMenu.js.map +1 -1
- package/esm/sdk-ui-dashboard.d.ts +740 -27
- 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 +4 -1
- package/styles/css/configurationPanel.css.map +1 -1
- package/styles/css/dashboard.css +8 -0
- package/styles/css/dashboard.css.map +1 -1
- package/styles/css/dateFilterConfig.css +39 -9
- package/styles/css/dateFilterConfig.css.map +1 -1
- package/styles/css/export.css +5 -0
- package/styles/css/export.css.map +1 -1
- package/styles/css/icons.css +42 -0
- package/styles/css/icons.css.map +1 -1
- package/styles/css/main.css +150 -18
- 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 +5 -2
- package/styles/scss/dashboard.scss +8 -0
- package/styles/scss/export.scss +5 -0
- package/styles/scss/filterBar.scss +1 -1
- package/styles/scss/icons.scss +55 -1
- 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
@@ -0,0 +1,15 @@
|
|
1
|
+
// (C) 2022-2025 GoodData Corporation
|
2
|
+
import React from "react";
|
3
|
+
import { Button, Typography } from "@gooddata/sdk-ui-kit";
|
4
|
+
import cx from "classnames";
|
5
|
+
export const DefaultSubmenuHeader = ({ title, onGoBack, onClose }) => {
|
6
|
+
const headerClassNames = cx("configuration-panel-header-title", {
|
7
|
+
clickable: !!onGoBack,
|
8
|
+
});
|
9
|
+
return (React.createElement("div", { className: "configuration-panel-header" },
|
10
|
+
React.createElement(Typography, { tagName: "h3", className: headerClassNames, onClick: onGoBack ? onGoBack : undefined },
|
11
|
+
onGoBack ? React.createElement("i", { className: "gd-icon-navigateleft" }) : null,
|
12
|
+
title),
|
13
|
+
React.createElement(Button, { className: "gd-button-link gd-button-icon-only gd-icon-cross configuration-panel-header-close-button s-configuration-panel-header-close-button", onClick: onClose })));
|
14
|
+
};
|
15
|
+
//# sourceMappingURL=DefaultSubmenuHeader.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"DefaultSubmenuHeader.js","sourceRoot":"","sources":["../../../../src/presentation/topBar/menuButton/DefaultSubmenuHeader.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,MAAM,YAAY,CAAC;AAQ5B,MAAM,CAAC,MAAM,oBAAoB,GAAyC,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,EAAE,EAAE;IACvG,MAAM,gBAAgB,GAAG,EAAE,CAAC,kCAAkC,EAAE;QAC5D,SAAS,EAAE,CAAC,CAAC,QAAQ;KACxB,CAAC,CAAC;IACH,OAAO,CACH,6BAAK,SAAS,EAAC,4BAA4B;QACvC,oBAAC,UAAU,IAAC,OAAO,EAAC,IAAI,EAAC,SAAS,EAAE,gBAAgB,EAAE,OAAO,EAAE,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS;YACzF,QAAQ,CAAC,CAAC,CAAC,2BAAG,SAAS,EAAC,sBAAsB,GAAG,CAAC,CAAC,CAAC,IAAI;YACxD,KAAK,CACG;QACb,oBAAC,MAAM,IACH,SAAS,EAAC,oIAAoI,EAC9I,OAAO,EAAE,OAAO,GAClB,CACA,CACT,CAAC;AACN,CAAC,CAAC"}
|
@@ -21,6 +21,23 @@ export interface IMenuButtonItemButton extends IMenuItemCommonProps {
|
|
21
21
|
disabled?: boolean;
|
22
22
|
icon?: string | ReactNode;
|
23
23
|
}
|
24
|
+
/**
|
25
|
+
* @alpha
|
26
|
+
*/
|
27
|
+
export interface IMenuButtonItemMenu extends IMenuItemCommonProps {
|
28
|
+
type: "menu";
|
29
|
+
itemName: string;
|
30
|
+
/**
|
31
|
+
* If specified, the value is shown on hover of the item as a tooltip.
|
32
|
+
*/
|
33
|
+
tooltip?: string | ReactNode;
|
34
|
+
disabled?: boolean;
|
35
|
+
icon?: string | ReactNode;
|
36
|
+
items: [
|
37
|
+
IMenuButtonItemButton | IMenuButtonItemSeparator | IMenuButtonItemHeader,
|
38
|
+
...(IMenuButtonItemButton | IMenuButtonItemSeparator | IMenuButtonItemHeader)[]
|
39
|
+
];
|
40
|
+
}
|
24
41
|
/**
|
25
42
|
* @alpha
|
26
43
|
*/
|
@@ -37,7 +54,7 @@ export interface IMenuButtonItemHeader extends IMenuItemCommonProps {
|
|
37
54
|
/**
|
38
55
|
* @alpha
|
39
56
|
*/
|
40
|
-
export type IMenuButtonItem = IMenuButtonItemButton | IMenuButtonItemSeparator | IMenuButtonItemHeader;
|
57
|
+
export type IMenuButtonItem = IMenuButtonItemButton | IMenuButtonItemSeparator | IMenuButtonItemHeader | IMenuButtonItemMenu;
|
41
58
|
/**
|
42
59
|
* @alpha
|
43
60
|
*/
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/presentation/topBar/menuButton/types.ts"],"names":[],"mappings":"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CAAC,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC,CAAC;CAClE"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"useDefaultMenuItems.d.ts","sourceRoot":"","sources":["../../../../src/presentation/topBar/menuButton/useDefaultMenuItems.tsx"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"useDefaultMenuItems.d.ts","sourceRoot":"","sources":["../../../../src/presentation/topBar/menuButton/useDefaultMenuItems.tsx"],"names":[],"mappings":"AAwBA,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AA0B9C;;GAEG;AACH,wBAAgB,mBAAmB,IAAI,eAAe,EAAE,CA6SvD"}
|
@@ -1,45 +1,12 @@
|
|
1
|
-
// (C) 2022-
|
2
|
-
import React, { useCallback, useMemo
|
1
|
+
// (C) 2022-2025 GoodData Corporation
|
2
|
+
import React, { useCallback, useMemo } from "react";
|
3
3
|
import { useIntl } from "react-intl";
|
4
|
-
import {
|
5
|
-
import {
|
6
|
-
import {
|
7
|
-
import {
|
8
|
-
import {
|
9
|
-
import {
|
10
|
-
const useExportDashboard = () => {
|
11
|
-
const { addSuccess, addError, addProgress, removeMessage } = useToastMessage();
|
12
|
-
const lastExportMessageId = useRef("");
|
13
|
-
const { run: exportDashboard } = useDashboardCommandProcessing({
|
14
|
-
commandCreator: exportDashboardToPdf,
|
15
|
-
successEvent: "GDC.DASH/EVT.EXPORT.PDF.RESOLVED",
|
16
|
-
errorEvent: "GDC.DASH/EVT.COMMAND.FAILED",
|
17
|
-
onBeforeRun: () => {
|
18
|
-
lastExportMessageId.current = addProgress(messages.messagesExportResultStart,
|
19
|
-
// make sure the message stays there until removed by either success or error
|
20
|
-
{ duration: 0 });
|
21
|
-
},
|
22
|
-
onSuccess: (event) => {
|
23
|
-
if (lastExportMessageId.current) {
|
24
|
-
removeMessage(lastExportMessageId.current);
|
25
|
-
}
|
26
|
-
addSuccess(messages.messagesExportResultSuccess);
|
27
|
-
downloadFile(event.payload.result);
|
28
|
-
},
|
29
|
-
onError: (error) => {
|
30
|
-
if (lastExportMessageId.current) {
|
31
|
-
removeMessage(lastExportMessageId.current);
|
32
|
-
}
|
33
|
-
if (isProtectedDataError(error)) {
|
34
|
-
addError(messages.messagesExportResultRestrictedError);
|
35
|
-
}
|
36
|
-
else {
|
37
|
-
addError(messages.messagesExportResultError);
|
38
|
-
}
|
39
|
-
},
|
40
|
-
});
|
41
|
-
return exportDashboard;
|
42
|
-
};
|
4
|
+
import { useMediaQuery } from "@gooddata/sdk-ui-kit";
|
5
|
+
import { uiActions, selectIsReadOnly, selectIsNewDashboard, selectLayoutHasAnalyticalWidgets, selectMenuButtonItemsVisibility, selectEnableDashboardTabularExport, selectEnableOrchestratedTabularExports, useDashboardDispatch, useDashboardScheduledEmails, useDashboardSelector, useDashboardAlerts, selectCanCreateAutomation, selectDeleteVisible, selectFilterViewsVisible, selectPdfExportVisible, selectSaveAsVisible, selectSlideShowExportVisible, } from "../../../model/index.js";
|
6
|
+
import { useExportDashboardToPdf } from "./useExportDashboardToPdf.js";
|
7
|
+
import { useExportDashboardToExcel } from "./useExportDashboardToExcel.js";
|
8
|
+
import { useExportDashboardToPdfPresentation } from "./useExportDashboardToPdfPresentation.js";
|
9
|
+
import { useExportDashboardToPowerPointPresentation } from "./useExportDashboardToPowerPointPresentation.js";
|
43
10
|
// inject separator to each visible section, flat map the sections into a list of menu items
|
44
11
|
const buildMenuItemList = (menuSections) => menuSections
|
45
12
|
.filter((section) => section.some((item) => item.visible))
|
@@ -84,39 +51,51 @@ export function useDefaultMenuItems() {
|
|
84
51
|
}
|
85
52
|
openSaveAsDialog();
|
86
53
|
}, [isNewDashboard, openSaveAsDialog]);
|
87
|
-
const
|
54
|
+
const { exportDashboardToPdf, exportDashboardToPdfStatus } = useExportDashboardToPdf();
|
88
55
|
const defaultOnExportToPdf = useCallback(() => {
|
89
56
|
if (isNewDashboard) {
|
90
57
|
return;
|
91
58
|
}
|
92
|
-
|
93
|
-
}, [
|
59
|
+
exportDashboardToPdf();
|
60
|
+
}, [exportDashboardToPdf, isNewDashboard]);
|
61
|
+
const { exportDashboardToExcel, exportDashboardToExcelStatus } = useExportDashboardToExcel();
|
62
|
+
const defaultOnExportToExcel = useCallback(() => {
|
63
|
+
if (isNewDashboard) {
|
64
|
+
return;
|
65
|
+
}
|
66
|
+
exportDashboardToExcel();
|
67
|
+
}, [exportDashboardToExcel, isNewDashboard]);
|
68
|
+
const { exportDashboardToPdfPresentation, exportDashboardToPdfPresentationStatus } = useExportDashboardToPdfPresentation();
|
69
|
+
const defaultOnExportToPdfPresentation = useCallback(() => {
|
70
|
+
if (isNewDashboard) {
|
71
|
+
return;
|
72
|
+
}
|
73
|
+
exportDashboardToPdfPresentation();
|
74
|
+
}, [exportDashboardToPdfPresentation, isNewDashboard]);
|
75
|
+
const { exportDashboardToPptPresentation, exportDashboardToPptPresentationStatus } = useExportDashboardToPowerPointPresentation();
|
76
|
+
const defaultOnExportToPowerPointPresentation = useCallback(() => {
|
77
|
+
if (isNewDashboard) {
|
78
|
+
return;
|
79
|
+
}
|
80
|
+
exportDashboardToPptPresentation();
|
81
|
+
}, [exportDashboardToPptPresentation, isNewDashboard]);
|
94
82
|
const canCreateAutomation = useDashboardSelector(selectCanCreateAutomation);
|
95
83
|
const isReadOnly = useDashboardSelector(selectIsReadOnly);
|
96
|
-
const
|
97
|
-
const
|
98
|
-
const
|
99
|
-
const
|
100
|
-
const isStandaloneSaveAsNewButtonVisible = useDashboardSelector(selectIsSaveAsNewButtonVisible);
|
101
|
-
const canExport = useDashboardSelector(selectCanExportPdf);
|
102
|
-
const isKPIDashboardExportPDFEnabled = !!useDashboardSelector(selectEnableKPIDashboardExportPDF);
|
103
|
-
const isExportPdfEntitlementPresent = !!useDashboardSelector(selectEntitlementExportPdf);
|
84
|
+
const isEnableDashboardTabularExport = useDashboardSelector(selectEnableDashboardTabularExport);
|
85
|
+
const isEnableOrchestratedTabularExports = useDashboardSelector(selectEnableOrchestratedTabularExports);
|
86
|
+
const isExportVisible = useDashboardSelector(selectSlideShowExportVisible);
|
87
|
+
const isPdfExportVisible = useDashboardSelector(selectPdfExportVisible);
|
104
88
|
const menuButtonItemsVisibility = useDashboardSelector(selectMenuButtonItemsVisibility);
|
105
|
-
const
|
106
|
-
const
|
107
|
-
const
|
108
|
-
const isDeleteVisible = isInEditMode && (menuButtonItemsVisibility.deleteButton ?? true);
|
89
|
+
const isFilterViewsEnabled = useDashboardSelector(selectFilterViewsVisible);
|
90
|
+
const isFilterViewsVisible = isMobile && isFilterViewsEnabled;
|
91
|
+
const isDeleteVisible = useDashboardSelector(selectDeleteVisible);
|
109
92
|
// Do not show save as new button in menu item when it is already shown as a standalone top bar button.
|
110
|
-
const isSaveAsVisible =
|
111
|
-
canCreateDashboard &&
|
112
|
-
!isSaveAsNewHidden &&
|
113
|
-
(menuButtonItemsVisibility.saveAsNewButton ?? true);
|
93
|
+
const isSaveAsVisible = useDashboardSelector(selectSaveAsVisible);
|
114
94
|
const isSaveAsDisabled = isEmptyLayout || isNewDashboard || isReadOnly;
|
115
|
-
const
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
(menuButtonItemsVisibility.pdfExportButton ?? true);
|
95
|
+
const isInProgress = exportDashboardToPdfStatus === "running" ||
|
96
|
+
exportDashboardToExcelStatus === "running" ||
|
97
|
+
exportDashboardToPdfPresentationStatus === "running" ||
|
98
|
+
exportDashboardToPptPresentationStatus === "running";
|
120
99
|
return useMemo(() => {
|
121
100
|
if (isNewDashboard) {
|
122
101
|
return [];
|
@@ -202,10 +181,57 @@ export function useDefaultMenuItems() {
|
|
202
181
|
{
|
203
182
|
type: "button",
|
204
183
|
itemId: "pdf-export-item", // careful, this is also used as a selector in tests, do not change
|
205
|
-
itemName: intl.formatMessage({ id: "options.menu.
|
184
|
+
itemName: intl.formatMessage({ id: "options.menu.export_to_pdf" }),
|
206
185
|
onClick: defaultOnExportToPdf,
|
207
|
-
visible: isPdfExportVisible,
|
186
|
+
visible: isPdfExportVisible && !isExportVisible,
|
187
|
+
icon: "gd-icon-download",
|
188
|
+
},
|
189
|
+
{
|
190
|
+
type: "menu",
|
191
|
+
itemId: "menu-exports-list", // careful, this is also used as a selector in tests, do not change
|
192
|
+
itemName: intl.formatMessage({ id: "options.menu.export" }),
|
193
|
+
visible: isExportVisible,
|
208
194
|
icon: "gd-icon-download",
|
195
|
+
items: [
|
196
|
+
{
|
197
|
+
type: "button",
|
198
|
+
itemId: "pdf-export-item", // careful, this is also used as a selector in tests, do not change
|
199
|
+
itemName: intl.formatMessage({ id: "options.menu.export.PDF" }),
|
200
|
+
onClick: defaultOnExportToPdf,
|
201
|
+
visible: menuButtonItemsVisibility.pdfExportButton ?? true,
|
202
|
+
disabled: isInProgress,
|
203
|
+
icon: "gd-icon-type-pdf",
|
204
|
+
},
|
205
|
+
{
|
206
|
+
type: "button",
|
207
|
+
itemId: "pdf-presentation-export-item", // careful, this is also used as a selector in tests, do not change
|
208
|
+
itemName: intl.formatMessage({ id: "options.menu.export.presentation.PDF" }),
|
209
|
+
onClick: defaultOnExportToPdfPresentation,
|
210
|
+
visible: menuButtonItemsVisibility.pdfExportButton ?? true,
|
211
|
+
disabled: isInProgress,
|
212
|
+
icon: "gd-icon-type-pdf",
|
213
|
+
},
|
214
|
+
{
|
215
|
+
type: "button",
|
216
|
+
itemId: "pptx-presentation-export-item", // careful, this is also used as a selector in tests, do not change
|
217
|
+
itemName: intl.formatMessage({ id: "options.menu.export.presentation.PPTX" }),
|
218
|
+
onClick: defaultOnExportToPowerPointPresentation,
|
219
|
+
visible: menuButtonItemsVisibility.powerPointExportButton ?? true,
|
220
|
+
disabled: isInProgress,
|
221
|
+
icon: "gd-icon-type-slides",
|
222
|
+
},
|
223
|
+
{
|
224
|
+
type: "button",
|
225
|
+
itemId: "excel-export-item", // careful, this is also used as a selector in tests, do not change
|
226
|
+
itemName: intl.formatMessage({ id: "options.menu.export.EXCEL" }),
|
227
|
+
onClick: defaultOnExportToExcel,
|
228
|
+
visible: (menuButtonItemsVisibility.excelExportButton ?? true) &&
|
229
|
+
isEnableDashboardTabularExport &&
|
230
|
+
isEnableOrchestratedTabularExports,
|
231
|
+
disabled: isInProgress,
|
232
|
+
icon: "gd-icon-type-sheet",
|
233
|
+
},
|
234
|
+
],
|
209
235
|
},
|
210
236
|
],
|
211
237
|
// delete section
|
@@ -222,13 +248,20 @@ export function useDefaultMenuItems() {
|
|
222
248
|
],
|
223
249
|
]);
|
224
250
|
}, [
|
251
|
+
isEnableDashboardTabularExport,
|
252
|
+
isEnableOrchestratedTabularExports,
|
225
253
|
defaultOnExportToPdf,
|
226
254
|
defaultOnSaveAs,
|
227
255
|
defaultOnScheduleEmailing,
|
228
256
|
defaultOnScheduleEmailingManagement,
|
257
|
+
defaultOnAlertsManagement,
|
258
|
+
defaultOnExportToExcel,
|
259
|
+
defaultOnExportToPdfPresentation,
|
260
|
+
defaultOnExportToPowerPointPresentation,
|
229
261
|
intl,
|
230
262
|
isDeleteVisible,
|
231
263
|
isFilterViewsVisible,
|
264
|
+
isAlertsManagementVisible,
|
232
265
|
isNewDashboard,
|
233
266
|
isPdfExportVisible,
|
234
267
|
isReadOnly,
|
@@ -240,9 +273,12 @@ export function useDefaultMenuItems() {
|
|
240
273
|
openDeleteDialog,
|
241
274
|
openFilterViewsAddDialog,
|
242
275
|
openFilterViewsListDialog,
|
243
|
-
|
276
|
+
isExportVisible,
|
277
|
+
menuButtonItemsVisibility.pdfExportButton,
|
278
|
+
menuButtonItemsVisibility.excelExportButton,
|
279
|
+
menuButtonItemsVisibility.powerPointExportButton,
|
280
|
+
isInProgress,
|
244
281
|
canCreateAutomation,
|
245
|
-
defaultOnAlertsManagement,
|
246
282
|
]);
|
247
283
|
}
|
248
284
|
//# sourceMappingURL=useDefaultMenuItems.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"useDefaultMenuItems.js","sourceRoot":"","sources":["../../../../src/presentation/topBar/menuButton/useDefaultMenuItems.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,KAAK,EAAE,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,
|
1
|
+
{"version":3,"file":"useDefaultMenuItems.js","sourceRoot":"","sources":["../../../../src/presentation/topBar/menuButton/useDefaultMenuItems.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,KAAK,EAAE,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AACpD,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAErD,OAAO,EACH,SAAS,EACT,gBAAgB,EAChB,oBAAoB,EACpB,gCAAgC,EAChC,+BAA+B,EAC/B,kCAAkC,EAClC,sCAAsC,EACtC,oBAAoB,EACpB,2BAA2B,EAC3B,oBAAoB,EACpB,kBAAkB,EAClB,yBAAyB,EACzB,mBAAmB,EACnB,wBAAwB,EACxB,sBAAsB,EACtB,mBAAmB,EACnB,4BAA4B,GAC/B,MAAM,yBAAyB,CAAC;AAGjC,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AACvE,OAAO,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,mCAAmC,EAAE,MAAM,0CAA0C,CAAC;AAC/F,OAAO,EAAE,0CAA0C,EAAE,MAAM,iDAAiD,CAAC;AAE7G,4FAA4F;AAC5F,MAAM,iBAAiB,GAAG,CAAC,YAAiC,EAAqB,EAAE,CAC/E,YAAY;KACP,MAAM,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;KACzD,GAAG,CAAC,CAAC,cAAc,EAAE,KAAK,EAAE,eAAe,EAAE,EAAE;IAC5C,MAAM,oBAAoB,GAAG,KAAK,KAAK,eAAe,CAAC,MAAM,GAAG,CAAC,CAAC;IAClE,OAA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;KACtB,CAAC,CAAC;AACP,CAAC"}
|
@@ -0,0 +1,5 @@
|
|
1
|
+
export declare const useExportDashboardToExcel: () => {
|
2
|
+
exportDashboardToExcel: (correlationId?: string | undefined) => void;
|
3
|
+
exportDashboardToExcelStatus: import("../../../model/index.js").CommandProcessingStatus | undefined;
|
4
|
+
};
|
5
|
+
//# sourceMappingURL=useExportDashboardToExcel.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"useExportDashboardToExcel.d.ts","sourceRoot":"","sources":["../../../../src/presentation/topBar/menuButton/useExportDashboardToExcel.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,yBAAyB;;;CAsCrC,CAAC"}
|
@@ -0,0 +1,44 @@
|
|
1
|
+
// (C) 2022-2025 GoodData Corporation
|
2
|
+
import { useToastMessage } from "@gooddata/sdk-ui-kit";
|
3
|
+
import { isProtectedDataError } from "@gooddata/sdk-backend-spi";
|
4
|
+
import { useRef } from "react";
|
5
|
+
import { exportDashboardToExcel, useDashboardCommandProcessing } from "../../../model/index.js";
|
6
|
+
import { messages } from "../../../locales.js";
|
7
|
+
import { downloadFile } from "../../../_staging/fileUtils/downloadFile.js";
|
8
|
+
export const useExportDashboardToExcel = () => {
|
9
|
+
const { addSuccess, addError, addProgress, removeMessage } = useToastMessage();
|
10
|
+
const lastExportMessageId = useRef("");
|
11
|
+
const { run: exportDashboard, status } = useDashboardCommandProcessing({
|
12
|
+
commandCreator: exportDashboardToExcel,
|
13
|
+
successEvent: "GDC.DASH/EVT.EXPORT.EXCEL.RESOLVED",
|
14
|
+
errorEvent: "GDC.DASH/EVT.COMMAND.FAILED",
|
15
|
+
onBeforeRun: () => {
|
16
|
+
lastExportMessageId.current = addProgress(messages.messagesExportResultStart,
|
17
|
+
// make sure the message stays there until removed by either success or error
|
18
|
+
{ duration: 0 });
|
19
|
+
},
|
20
|
+
onSuccess: (event) => {
|
21
|
+
if (lastExportMessageId.current) {
|
22
|
+
removeMessage(lastExportMessageId.current);
|
23
|
+
}
|
24
|
+
addSuccess(messages.messagesExportResultSuccess);
|
25
|
+
downloadFile(event.payload.result);
|
26
|
+
},
|
27
|
+
onError: (error) => {
|
28
|
+
if (lastExportMessageId.current) {
|
29
|
+
removeMessage(lastExportMessageId.current);
|
30
|
+
}
|
31
|
+
if (isProtectedDataError(error)) {
|
32
|
+
addError(messages.messagesExportResultRestrictedError);
|
33
|
+
}
|
34
|
+
else {
|
35
|
+
addError(messages.messagesExportResultError);
|
36
|
+
}
|
37
|
+
},
|
38
|
+
});
|
39
|
+
return {
|
40
|
+
exportDashboardToExcel: exportDashboard,
|
41
|
+
exportDashboardToExcelStatus: status,
|
42
|
+
};
|
43
|
+
};
|
44
|
+
//# sourceMappingURL=useExportDashboardToExcel.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"useExportDashboardToExcel.js","sourceRoot":"","sources":["../../../../src/presentation/topBar/menuButton/useExportDashboardToExcel.ts"],"names":[],"mappings":"AAAA,qCAAqC;AAErC,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACjE,OAAO,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,sBAAsB,EAAE,6BAA6B,EAAE,MAAM,yBAAyB,CAAC;AAChG,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAC/C,OAAO,EAAE,YAAY,EAAE,MAAM,6CAA6C,CAAC;AAE3E,MAAM,CAAC,MAAM,yBAAyB,GAAG,GAAG,EAAE;IAC1C,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,WAAW,EAAE,aAAa,EAAE,GAAG,eAAe,EAAE,CAAC;IAC/E,MAAM,mBAAmB,GAAG,MAAM,CAAC,EAAE,CAAC,CAAC;IACvC,MAAM,EAAE,GAAG,EAAE,eAAe,EAAE,MAAM,EAAE,GAAG,6BAA6B,CAAC;QACnE,cAAc,EAAE,sBAAsB;QACtC,YAAY,EAAE,oCAAoC;QAClD,UAAU,EAAE,6BAA6B;QACzC,WAAW,EAAE,GAAG,EAAE;YACd,mBAAmB,CAAC,OAAO,GAAG,WAAW,CACrC,QAAQ,CAAC,yBAAyB;YAClC,6EAA6E;YAC7E,EAAE,QAAQ,EAAE,CAAC,EAAE,CAClB,CAAC;QACN,CAAC;QACD,SAAS,EAAE,CAAC,KAAK,EAAE,EAAE;YACjB,IAAI,mBAAmB,CAAC,OAAO,EAAE,CAAC;gBAC9B,aAAa,CAAC,mBAAmB,CAAC,OAAO,CAAC,CAAC;YAC/C,CAAC;YACD,UAAU,CAAC,QAAQ,CAAC,2BAA2B,CAAC,CAAC;YACjD,YAAY,CAAC,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;QACvC,CAAC;QACD,OAAO,EAAE,CAAC,KAAK,EAAE,EAAE;YACf,IAAI,mBAAmB,CAAC,OAAO,EAAE,CAAC;gBAC9B,aAAa,CAAC,mBAAmB,CAAC,OAAO,CAAC,CAAC;YAC/C,CAAC;YAED,IAAI,oBAAoB,CAAC,KAAK,CAAC,EAAE,CAAC;gBAC9B,QAAQ,CAAC,QAAQ,CAAC,mCAAmC,CAAC,CAAC;YAC3D,CAAC;iBAAM,CAAC;gBACJ,QAAQ,CAAC,QAAQ,CAAC,yBAAyB,CAAC,CAAC;YACjD,CAAC;QACL,CAAC;KACJ,CAAC,CAAC;IAEH,OAAO;QACH,sBAAsB,EAAE,eAAe;QACvC,4BAA4B,EAAE,MAAM;KACvC,CAAC;AACN,CAAC,CAAC"}
|
@@ -0,0 +1,5 @@
|
|
1
|
+
export declare const useExportDashboardToPdf: () => {
|
2
|
+
exportDashboardToPdf: (correlationId?: string | undefined) => void;
|
3
|
+
exportDashboardToPdfStatus: import("../../../model/index.js").CommandProcessingStatus | undefined;
|
4
|
+
};
|
5
|
+
//# sourceMappingURL=useExportDashboardToPdf.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"useExportDashboardToPdf.d.ts","sourceRoot":"","sources":["../../../../src/presentation/topBar/menuButton/useExportDashboardToPdf.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,uBAAuB;;;CAsCnC,CAAC"}
|
@@ -0,0 +1,44 @@
|
|
1
|
+
// (C) 2025 GoodData Corporation
|
2
|
+
import { useToastMessage } from "@gooddata/sdk-ui-kit";
|
3
|
+
import { isProtectedDataError } from "@gooddata/sdk-backend-spi";
|
4
|
+
import { useRef } from "react";
|
5
|
+
import { exportDashboardToPdf, useDashboardCommandProcessing } from "../../../model/index.js";
|
6
|
+
import { messages } from "../../../locales.js";
|
7
|
+
import { downloadFile } from "../../../_staging/fileUtils/downloadFile.js";
|
8
|
+
export const useExportDashboardToPdf = () => {
|
9
|
+
const { addSuccess, addError, addProgress, removeMessage } = useToastMessage();
|
10
|
+
const lastExportMessageId = useRef("");
|
11
|
+
const { run: exportDashboard, status } = useDashboardCommandProcessing({
|
12
|
+
commandCreator: exportDashboardToPdf,
|
13
|
+
successEvent: "GDC.DASH/EVT.EXPORT.PDF.RESOLVED",
|
14
|
+
errorEvent: "GDC.DASH/EVT.COMMAND.FAILED",
|
15
|
+
onBeforeRun: () => {
|
16
|
+
lastExportMessageId.current = addProgress(messages.messagesExportResultStart,
|
17
|
+
// make sure the message stays there until removed by either success or error
|
18
|
+
{ duration: 0 });
|
19
|
+
},
|
20
|
+
onSuccess: (event) => {
|
21
|
+
if (lastExportMessageId.current) {
|
22
|
+
removeMessage(lastExportMessageId.current);
|
23
|
+
}
|
24
|
+
addSuccess(messages.messagesExportResultSuccess);
|
25
|
+
downloadFile(event.payload.result);
|
26
|
+
},
|
27
|
+
onError: (error) => {
|
28
|
+
if (lastExportMessageId.current) {
|
29
|
+
removeMessage(lastExportMessageId.current);
|
30
|
+
}
|
31
|
+
if (isProtectedDataError(error)) {
|
32
|
+
addError(messages.messagesExportResultRestrictedError);
|
33
|
+
}
|
34
|
+
else {
|
35
|
+
addError(messages.messagesExportResultError);
|
36
|
+
}
|
37
|
+
},
|
38
|
+
});
|
39
|
+
return {
|
40
|
+
exportDashboardToPdf: exportDashboard,
|
41
|
+
exportDashboardToPdfStatus: status,
|
42
|
+
};
|
43
|
+
};
|
44
|
+
//# sourceMappingURL=useExportDashboardToPdf.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"useExportDashboardToPdf.js","sourceRoot":"","sources":["../../../../src/presentation/topBar/menuButton/useExportDashboardToPdf.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAEhC,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACjE,OAAO,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,oBAAoB,EAAE,6BAA6B,EAAE,MAAM,yBAAyB,CAAC;AAC9F,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAC/C,OAAO,EAAE,YAAY,EAAE,MAAM,6CAA6C,CAAC;AAE3E,MAAM,CAAC,MAAM,uBAAuB,GAAG,GAAG,EAAE;IACxC,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,WAAW,EAAE,aAAa,EAAE,GAAG,eAAe,EAAE,CAAC;IAC/E,MAAM,mBAAmB,GAAG,MAAM,CAAC,EAAE,CAAC,CAAC;IACvC,MAAM,EAAE,GAAG,EAAE,eAAe,EAAE,MAAM,EAAE,GAAG,6BAA6B,CAAC;QACnE,cAAc,EAAE,oBAAoB;QACpC,YAAY,EAAE,kCAAkC;QAChD,UAAU,EAAE,6BAA6B;QACzC,WAAW,EAAE,GAAG,EAAE;YACd,mBAAmB,CAAC,OAAO,GAAG,WAAW,CACrC,QAAQ,CAAC,yBAAyB;YAClC,6EAA6E;YAC7E,EAAE,QAAQ,EAAE,CAAC,EAAE,CAClB,CAAC;QACN,CAAC;QACD,SAAS,EAAE,CAAC,KAAK,EAAE,EAAE;YACjB,IAAI,mBAAmB,CAAC,OAAO,EAAE,CAAC;gBAC9B,aAAa,CAAC,mBAAmB,CAAC,OAAO,CAAC,CAAC;YAC/C,CAAC;YACD,UAAU,CAAC,QAAQ,CAAC,2BAA2B,CAAC,CAAC;YACjD,YAAY,CAAC,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;QACvC,CAAC;QACD,OAAO,EAAE,CAAC,KAAK,EAAE,EAAE;YACf,IAAI,mBAAmB,CAAC,OAAO,EAAE,CAAC;gBAC9B,aAAa,CAAC,mBAAmB,CAAC,OAAO,CAAC,CAAC;YAC/C,CAAC;YAED,IAAI,oBAAoB,CAAC,KAAK,CAAC,EAAE,CAAC;gBAC9B,QAAQ,CAAC,QAAQ,CAAC,mCAAmC,CAAC,CAAC;YAC3D,CAAC;iBAAM,CAAC;gBACJ,QAAQ,CAAC,QAAQ,CAAC,yBAAyB,CAAC,CAAC;YACjD,CAAC;QACL,CAAC;KACJ,CAAC,CAAC;IAEH,OAAO;QACH,oBAAoB,EAAE,eAAe;QACrC,0BAA0B,EAAE,MAAM;KACrC,CAAC;AACN,CAAC,CAAC"}
|
@@ -0,0 +1,5 @@
|
|
1
|
+
export declare const useExportDashboardToPdfPresentation: () => {
|
2
|
+
exportDashboardToPdfPresentation: (correlationId?: string | undefined) => void;
|
3
|
+
exportDashboardToPdfPresentationStatus: import("../../../model/index.js").CommandProcessingStatus | undefined;
|
4
|
+
};
|
5
|
+
//# sourceMappingURL=useExportDashboardToPdfPresentation.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"useExportDashboardToPdfPresentation.d.ts","sourceRoot":"","sources":["../../../../src/presentation/topBar/menuButton/useExportDashboardToPdfPresentation.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,mCAAmC;;;CAsC/C,CAAC"}
|
@@ -0,0 +1,44 @@
|
|
1
|
+
// (C) 2022-2025 GoodData Corporation
|
2
|
+
import { useToastMessage } from "@gooddata/sdk-ui-kit";
|
3
|
+
import { isProtectedDataError } from "@gooddata/sdk-backend-spi";
|
4
|
+
import { useRef } from "react";
|
5
|
+
import { exportDashboardToPdfPresentation, useDashboardCommandProcessing } from "../../../model/index.js";
|
6
|
+
import { messages } from "../../../locales.js";
|
7
|
+
import { downloadFile } from "../../../_staging/fileUtils/downloadFile.js";
|
8
|
+
export const useExportDashboardToPdfPresentation = () => {
|
9
|
+
const { addSuccess, addError, addProgress, removeMessage } = useToastMessage();
|
10
|
+
const lastExportMessageId = useRef("");
|
11
|
+
const { run: exportDashboard, status } = useDashboardCommandProcessing({
|
12
|
+
commandCreator: exportDashboardToPdfPresentation,
|
13
|
+
successEvent: "GDC.DASH/EVT.EXPORT.PDF_PRESENTATION.RESOLVED",
|
14
|
+
errorEvent: "GDC.DASH/EVT.COMMAND.FAILED",
|
15
|
+
onBeforeRun: () => {
|
16
|
+
lastExportMessageId.current = addProgress(messages.messagesExportResultStart,
|
17
|
+
// make sure the message stays there until removed by either success or error
|
18
|
+
{ duration: 0 });
|
19
|
+
},
|
20
|
+
onSuccess: (event) => {
|
21
|
+
if (lastExportMessageId.current) {
|
22
|
+
removeMessage(lastExportMessageId.current);
|
23
|
+
}
|
24
|
+
addSuccess(messages.messagesExportResultSuccess);
|
25
|
+
downloadFile(event.payload.result);
|
26
|
+
},
|
27
|
+
onError: (error) => {
|
28
|
+
if (lastExportMessageId.current) {
|
29
|
+
removeMessage(lastExportMessageId.current);
|
30
|
+
}
|
31
|
+
if (isProtectedDataError(error)) {
|
32
|
+
addError(messages.messagesExportResultRestrictedError);
|
33
|
+
}
|
34
|
+
else {
|
35
|
+
addError(messages.messagesExportResultError);
|
36
|
+
}
|
37
|
+
},
|
38
|
+
});
|
39
|
+
return {
|
40
|
+
exportDashboardToPdfPresentation: exportDashboard,
|
41
|
+
exportDashboardToPdfPresentationStatus: status,
|
42
|
+
};
|
43
|
+
};
|
44
|
+
//# sourceMappingURL=useExportDashboardToPdfPresentation.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"useExportDashboardToPdfPresentation.js","sourceRoot":"","sources":["../../../../src/presentation/topBar/menuButton/useExportDashboardToPdfPresentation.ts"],"names":[],"mappings":"AAAA,qCAAqC;AAErC,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACjE,OAAO,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,gCAAgC,EAAE,6BAA6B,EAAE,MAAM,yBAAyB,CAAC;AAC1G,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAC/C,OAAO,EAAE,YAAY,EAAE,MAAM,6CAA6C,CAAC;AAE3E,MAAM,CAAC,MAAM,mCAAmC,GAAG,GAAG,EAAE;IACpD,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,WAAW,EAAE,aAAa,EAAE,GAAG,eAAe,EAAE,CAAC;IAC/E,MAAM,mBAAmB,GAAG,MAAM,CAAC,EAAE,CAAC,CAAC;IACvC,MAAM,EAAE,GAAG,EAAE,eAAe,EAAE,MAAM,EAAE,GAAG,6BAA6B,CAAC;QACnE,cAAc,EAAE,gCAAgC;QAChD,YAAY,EAAE,+CAA+C;QAC7D,UAAU,EAAE,6BAA6B;QACzC,WAAW,EAAE,GAAG,EAAE;YACd,mBAAmB,CAAC,OAAO,GAAG,WAAW,CACrC,QAAQ,CAAC,yBAAyB;YAClC,6EAA6E;YAC7E,EAAE,QAAQ,EAAE,CAAC,EAAE,CAClB,CAAC;QACN,CAAC;QACD,SAAS,EAAE,CAAC,KAAK,EAAE,EAAE;YACjB,IAAI,mBAAmB,CAAC,OAAO,EAAE,CAAC;gBAC9B,aAAa,CAAC,mBAAmB,CAAC,OAAO,CAAC,CAAC;YAC/C,CAAC;YACD,UAAU,CAAC,QAAQ,CAAC,2BAA2B,CAAC,CAAC;YACjD,YAAY,CAAC,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;QACvC,CAAC;QACD,OAAO,EAAE,CAAC,KAAK,EAAE,EAAE;YACf,IAAI,mBAAmB,CAAC,OAAO,EAAE,CAAC;gBAC9B,aAAa,CAAC,mBAAmB,CAAC,OAAO,CAAC,CAAC;YAC/C,CAAC;YAED,IAAI,oBAAoB,CAAC,KAAK,CAAC,EAAE,CAAC;gBAC9B,QAAQ,CAAC,QAAQ,CAAC,mCAAmC,CAAC,CAAC;YAC3D,CAAC;iBAAM,CAAC;gBACJ,QAAQ,CAAC,QAAQ,CAAC,yBAAyB,CAAC,CAAC;YACjD,CAAC;QACL,CAAC;KACJ,CAAC,CAAC;IAEH,OAAO;QACH,gCAAgC,EAAE,eAAe;QACjD,sCAAsC,EAAE,MAAM;KACjD,CAAC;AACN,CAAC,CAAC"}
|
@@ -0,0 +1,5 @@
|
|
1
|
+
export declare const useExportDashboardToPowerPointPresentation: () => {
|
2
|
+
exportDashboardToPptPresentation: (correlationId?: string | undefined) => void;
|
3
|
+
exportDashboardToPptPresentationStatus: import("../../../model/index.js").CommandProcessingStatus | undefined;
|
4
|
+
};
|
5
|
+
//# sourceMappingURL=useExportDashboardToPowerPointPresentation.d.ts.map
|
package/esm/presentation/topBar/menuButton/useExportDashboardToPowerPointPresentation.d.ts.map
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"useExportDashboardToPowerPointPresentation.d.ts","sourceRoot":"","sources":["../../../../src/presentation/topBar/menuButton/useExportDashboardToPowerPointPresentation.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,0CAA0C;;;CAsCtD,CAAC"}
|
@@ -0,0 +1,44 @@
|
|
1
|
+
// (C) 2022-2025 GoodData Corporation
|
2
|
+
import { useToastMessage } from "@gooddata/sdk-ui-kit";
|
3
|
+
import { isProtectedDataError } from "@gooddata/sdk-backend-spi";
|
4
|
+
import { useRef } from "react";
|
5
|
+
import { exportDashboardToPptPresentation, useDashboardCommandProcessing } from "../../../model/index.js";
|
6
|
+
import { messages } from "../../../locales.js";
|
7
|
+
import { downloadFile } from "../../../_staging/fileUtils/downloadFile.js";
|
8
|
+
export const useExportDashboardToPowerPointPresentation = () => {
|
9
|
+
const { addSuccess, addError, addProgress, removeMessage } = useToastMessage();
|
10
|
+
const lastExportMessageId = useRef("");
|
11
|
+
const { run: exportDashboard, status } = useDashboardCommandProcessing({
|
12
|
+
commandCreator: exportDashboardToPptPresentation,
|
13
|
+
successEvent: "GDC.DASH/EVT.EXPORT.PPT_PRESENTATION.RESOLVED",
|
14
|
+
errorEvent: "GDC.DASH/EVT.COMMAND.FAILED",
|
15
|
+
onBeforeRun: () => {
|
16
|
+
lastExportMessageId.current = addProgress(messages.messagesExportResultStart,
|
17
|
+
// make sure the message stays there until removed by either success or error
|
18
|
+
{ duration: 0 });
|
19
|
+
},
|
20
|
+
onSuccess: (event) => {
|
21
|
+
if (lastExportMessageId.current) {
|
22
|
+
removeMessage(lastExportMessageId.current);
|
23
|
+
}
|
24
|
+
addSuccess(messages.messagesExportResultSuccess);
|
25
|
+
downloadFile(event.payload.result);
|
26
|
+
},
|
27
|
+
onError: (error) => {
|
28
|
+
if (lastExportMessageId.current) {
|
29
|
+
removeMessage(lastExportMessageId.current);
|
30
|
+
}
|
31
|
+
if (isProtectedDataError(error)) {
|
32
|
+
addError(messages.messagesExportResultRestrictedError);
|
33
|
+
}
|
34
|
+
else {
|
35
|
+
addError(messages.messagesExportResultError);
|
36
|
+
}
|
37
|
+
},
|
38
|
+
});
|
39
|
+
return {
|
40
|
+
exportDashboardToPptPresentation: exportDashboard,
|
41
|
+
exportDashboardToPptPresentationStatus: status,
|
42
|
+
};
|
43
|
+
};
|
44
|
+
//# sourceMappingURL=useExportDashboardToPowerPointPresentation.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"useExportDashboardToPowerPointPresentation.js","sourceRoot":"","sources":["../../../../src/presentation/topBar/menuButton/useExportDashboardToPowerPointPresentation.ts"],"names":[],"mappings":"AAAA,qCAA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AC,mBAAmB,CAAC,OAAO,CAAC,CAAC;YAC/C,CAAC;YAED,IAAI,oBAAoB,CAAC,KAAK,CAAC,EAAE,CAAC;gBAC9B,QAAQ,CAAC,QAAQ,CAAC,mCAAmC,CAAC,CAAC;YAC3D,CAAC;iBAAM,CAAC;gBACJ,QAAQ,CAAC,QAAQ,CAAC,yBAAyB,CAAC,CAAC;YACjD,CAAC;QACL,CAAC;KACJ,CAAC,CAAC;IAEH,OAAO;QACH,gCAAgC,EAAE,eAAe;QACjD,sCAAsC,EAAE,MAAM;KACjD,CAAC;AACN,CAAC,CAAC"}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
// (C) 2021-
|
1
|
+
// (C) 2021-2025 GoodData Corporation
|
2
2
|
import React from "react";
|
3
3
|
import { BubbleHoverTrigger, Bubble } from "@gooddata/sdk-ui-kit";
|
4
4
|
import { FormattedMessage } from "react-intl";
|
@@ -14,7 +14,7 @@ export const ShareStatusIndicator = (props) => {
|
|
14
14
|
return (React.createElement("div", { className: "s-share-status gd-share-status" },
|
15
15
|
React.createElement(BubbleHoverTrigger, null,
|
16
16
|
React.createElement("div", { className: "gd-share-indicator" },
|
17
|
-
React.createElement("i", { className: "gd-share-icon gd-icon-invisible" }),
|
17
|
+
React.createElement("i", { "aria-hidden": "true", className: "gd-share-icon gd-icon-invisible" }),
|
18
18
|
React.createElement(FormattedMessage, { id: "header.shareStatus.private.text" })),
|
19
19
|
React.createElement(Bubble, { alignPoints: [{ align: "bc tl" }], alignTo: `.gd-share-icon` }, tooltip))));
|
20
20
|
};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ShareStatusIndicator.js","sourceRoot":"","sources":["../../../../../src/presentation/topBar/shareIndicators/shareStatus/ShareStatusIndicator.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,kBAAkB,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAClE,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAG9C;;GAEG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,KAAwB,EAAsB,EAAE;IACjF,MAAM,EAAE,WAAW,EAAE,oBAAoB,EAAE,GAAG,KAAK,CAAC;IAEpD,IAAI,WAAW,KAAK,SAAS,EAAE,CAAC;QAC5B,OAAO,IAAI,CAAC;IAChB,CAAC;IAED,MAAM,OAAO,GAAG,oBAAoB,CAAC,CAAC,CAAC,CACnC,oBAAC,gBAAgB,IAAC,EAAE,EAAC,2CAA2C,GAAG,CACtE,CAAC,CAAC,CAAC,CACA,oBAAC,gBAAgB,IAAC,EAAE,EAAC,+CAA+C,GAAG,CAC1E,CAAC;IAEF,OAAO,CACH,6BAAK,SAAS,EAAC,gCAAgC;QAC3C,oBAAC,kBAAkB;YACf,6BAAK,SAAS,EAAC,oBAAoB;gBAC/B,
|
1
|
+
{"version":3,"file":"ShareStatusIndicator.js","sourceRoot":"","sources":["../../../../../src/presentation/topBar/shareIndicators/shareStatus/ShareStatusIndicator.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,kBAAkB,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAClE,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAG9C;;GAEG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,KAAwB,EAAsB,EAAE;IACjF,MAAM,EAAE,WAAW,EAAE,oBAAoB,EAAE,GAAG,KAAK,CAAC;IAEpD,IAAI,WAAW,KAAK,SAAS,EAAE,CAAC;QAC5B,OAAO,IAAI,CAAC;IAChB,CAAC;IAED,MAAM,OAAO,GAAG,oBAAoB,CAAC,CAAC,CAAC,CACnC,oBAAC,gBAAgB,IAAC,EAAE,EAAC,2CAA2C,GAAG,CACtE,CAAC,CAAC,CAAC,CACA,oBAAC,gBAAgB,IAAC,EAAE,EAAC,+CAA+C,GAAG,CAC1E,CAAC;IAEF,OAAO,CACH,6BAAK,SAAS,EAAC,gCAAgC;QAC3C,oBAAC,kBAAkB;YACf,6BAAK,SAAS,EAAC,oBAAoB;gBAC/B,0CAAe,MAAM,EAAC,SAAS,EAAC,iCAAiC,GAAG;gBACpE,oBAAC,gBAAgB,IAAC,EAAE,EAAC,iCAAiC,GAAG,CACvD;YACN,oBAAC,MAAM,IAAC,WAAW,EAAE,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC,EAAE,OAAO,EAAE,gBAAgB,IAC/D,OAAO,CACH,CACQ,CACnB,CACT,CAAC;AACN,CAAC,CAAC"}
|