@gooddata/sdk-ui-dashboard 10.22.0-alpha.9 → 10.23.0-alpha.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.js +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
package/esm/__version.d.ts
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
export declare const LIB_VERSION = "10.
|
1
|
+
export declare const LIB_VERSION = "10.23.0-alpha.0";
|
2
2
|
//# sourceMappingURL=__version.d.ts.map
|
package/esm/__version.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { IAttributeFilter, IDashboardAttributeFilter, IDashboardDateFilter, ObjRef } from "@gooddata/sdk-model";
|
1
|
+
import { IAttributeFilter, IDashboardAttributeFilter, IDashboardDateFilter, ObjRef, IAttributeElement, DashboardAttributeFilterSelectionMode } from "@gooddata/sdk-model";
|
2
2
|
import { DateFilterOption } from "@gooddata/sdk-ui-filters";
|
3
3
|
/**
|
4
4
|
* Converts {@link IDashboardAttributeFilter} to {@link IAttributeFilter}.
|
@@ -14,9 +14,12 @@ export declare function dashboardAttributeFilterToAttributeFilter(dashboardFilte
|
|
14
14
|
* @internal
|
15
15
|
* @param filter - filter to convert
|
16
16
|
* @param localIdentifier - localIdentifier of the filter
|
17
|
+
* @param attributeElements - currently selected elements. Default is taken from the filter param.
|
18
|
+
* @param isInverted - whether filter has negative selection (NOT_IN operator). Default is taken from the filter param.
|
19
|
+
* @param selectionMode - selection mode of the filter (single / multi). Default is undefined.
|
17
20
|
* @returns converted filter
|
18
21
|
*/
|
19
|
-
export declare function attributeFilterToDashboardAttributeFilter(filter: IAttributeFilter, localIdentifier: string | undefined, title: string | undefined): IDashboardAttributeFilter;
|
22
|
+
export declare function attributeFilterToDashboardAttributeFilter(filter: IAttributeFilter, localIdentifier: string | undefined, title: string | undefined, attributeElements?: IAttributeElement[], isInverted?: boolean, selectionMode?: DashboardAttributeFilterSelectionMode): IDashboardAttributeFilter;
|
20
23
|
/**
|
21
24
|
* Converts {@link DateFilterOption} to {@link IDashboardDateFilter}.
|
22
25
|
*
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"dashboardFilterConverter.d.ts","sourceRoot":"","sources":["../../../src/_staging/dashboard/dashboardFilterConverter.ts"],"names":[],"mappings":"AAEA,OAAO,EAIH,gBAAgB,EAQhB,yBAAyB,EACzB,oBAAoB,EACpB,MAAM,
|
1
|
+
{"version":3,"file":"dashboardFilterConverter.d.ts","sourceRoot":"","sources":["../../../src/_staging/dashboard/dashboardFilterConverter.ts"],"names":[],"mappings":"AAEA,OAAO,EAIH,gBAAgB,EAQhB,yBAAyB,EACzB,oBAAoB,EACpB,MAAM,EACN,iBAAiB,EAEjB,qCAAqC,EACxC,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAqB,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAE/E;;;;;;GAMG;AACH,wBAAgB,yCAAyC,CACrD,eAAe,EAAE,yBAAyB,GAC3C,gBAAgB,CAOlB;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,yCAAyC,CACrD,MAAM,EAAE,gBAAgB,EACxB,eAAe,EAAE,MAAM,GAAG,SAAS,EACnC,KAAK,EAAE,MAAM,GAAG,SAAS,EACzB,iBAAiB,CAAC,EAAE,iBAAiB,EAAE,EACvC,UAAU,CAAC,EAAE,OAAO,EACpB,aAAa,CAAC,EAAE,qCAAqC,GACtD,yBAAyB,CAe3B;AAED;;;;;;GAMG;AACH,wBAAgB,qCAAqC,CACjD,gBAAgB,EAAE,gBAAgB,EAClC,oBAAoB,EAAE,OAAO,EAC7B,OAAO,CAAC,EAAE,MAAM,GACjB,oBAAoB,GAAG,SAAS,CA0ClC"}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
// (C) 2021-
|
1
|
+
// (C) 2021-2025 GoodData Corporation
|
2
2
|
import { absoluteDateFilterValues, filterAttributeElements, filterObjRef, idRef, isNegativeAttributeFilter, isRelativeDateFilter, newNegativeAttributeFilter, newPositiveAttributeFilter, relativeDateFilterValues, } from "@gooddata/sdk-model";
|
3
3
|
import { DateFilterHelpers } from "@gooddata/sdk-ui-filters";
|
4
4
|
/**
|
@@ -23,18 +23,23 @@ export function dashboardAttributeFilterToAttributeFilter(dashboardFilter) {
|
|
23
23
|
* @internal
|
24
24
|
* @param filter - filter to convert
|
25
25
|
* @param localIdentifier - localIdentifier of the filter
|
26
|
+
* @param attributeElements - currently selected elements. Default is taken from the filter param.
|
27
|
+
* @param isInverted - whether filter has negative selection (NOT_IN operator). Default is taken from the filter param.
|
28
|
+
* @param selectionMode - selection mode of the filter (single / multi). Default is undefined.
|
26
29
|
* @returns converted filter
|
27
30
|
*/
|
28
|
-
export function attributeFilterToDashboardAttributeFilter(filter, localIdentifier, title) {
|
29
|
-
const
|
30
|
-
|
31
|
+
export function attributeFilterToDashboardAttributeFilter(filter, localIdentifier, title, attributeElements, isInverted, selectionMode) {
|
32
|
+
const attributeElementsObj = attributeElements && {
|
33
|
+
uris: attributeElements.map((element) => element.uri),
|
34
|
+
};
|
31
35
|
return {
|
32
36
|
attributeFilter: {
|
33
|
-
attributeElements,
|
34
|
-
displayForm,
|
35
|
-
negativeSelection: isNegativeAttributeFilter(filter),
|
37
|
+
attributeElements: attributeElementsObj ?? filterAttributeElements(filter),
|
38
|
+
displayForm: filterObjRef(filter),
|
39
|
+
negativeSelection: isInverted ?? isNegativeAttributeFilter(filter),
|
36
40
|
localIdentifier,
|
37
41
|
title,
|
42
|
+
selectionMode,
|
38
43
|
// TODO filterElementsBy?
|
39
44
|
},
|
40
45
|
};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"dashboardFilterConverter.js","sourceRoot":"","sources":["../../../src/_staging/dashboard/dashboardFilterConverter.ts"],"names":[],"mappings":"AAAA,qCAAqC;AAErC,OAAO,EACH,wBAAwB,EACxB,uBAAuB,EACvB,YAAY,EAEZ,KAAK,EACL,yBAAyB,EACzB,oBAAoB,EACpB,0BAA0B,EAC1B,0BAA0B,EAC1B,wBAAwB,
|
1
|
+
{"version":3,"file":"dashboardFilterConverter.js","sourceRoot":"","sources":["../../../src/_staging/dashboard/dashboardFilterConverter.ts"],"names":[],"mappings":"AAAA,qCAAqC;AAErC,OAAO,EACH,wBAAwB,EACxB,uBAAuB,EACvB,YAAY,EAEZ,KAAK,EACL,yBAAyB,EACzB,oBAAoB,EACpB,0B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AChB,iBAAiB,EACjB,oBAAoB,CACvB,CAAC;IAEF,IAAI,CAAC,SAAS,EAAE,CAAC;QACb,iCAAiC;QACjC,OAAO;YACH,UAAU,EAAE;gBACR,IAAI,EAAE,UAAU;gBAChB,WAAW,EAAE,eAAe;gBAC5B,OAAO;aACV;SACJ,CAAC;IACN,CAAC;IAED,IAAI,oBAAoB,CAAC,SAAS,CAAC,EAAE,CAAC;QAClC,MAAM,EAAE,IAAI,EAAE,EAAE,EAAE,WAAW,EAAE,GAAG,wBAAwB,CAAC,SAAS,CAAC,CAAC;QACtE,OAAO;YACH,UAAU,EAAE;gBACR,IAAI,EAAE,UAAU;gBAChB,WAAW,EAAE,WAAoC;gBACjD,IAAI;gBACJ,EAAE;gBACF,OAAO;aACV;SACJ,CAAC;IACN,CAAC;SAAM,CAAC;QACJ,MAAM,EAAE,IAAI,EAAE,EAAE,EAAE,GAAG,wBAAwB,CAAC,SAAS,CAAC,CAAC;QACzD,OAAO;YACH,UAAU,EAAE;gBACR,IAAI,EAAE,UAAU;gBAChB,WAAW,EAAE,eAAe;gBAC5B,IAAI;gBACJ,EAAE;gBACF,OAAO;aACV;SACJ,CAAC;IACN,CAAC;AACL,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"useFiltersNamings.d.ts","sourceRoot":"","sources":["../../../src/_staging/sharedHooks/useFiltersNamings.ts"],"names":[],"mappings":"AAEA,OAAO,EACH,iBAAiB,
|
1
|
+
{"version":3,"file":"useFiltersNamings.d.ts","sourceRoot":"","sources":["../../../src/_staging/sharedHooks/useFiltersNamings.ts"],"names":[],"mappings":"AAEA,OAAO,EACH,iBAAiB,EAQpB,MAAM,qBAAqB,CAAC;AAsB7B,wBAAgB,iBAAiB,CAAC,gBAAgB,EAAE,iBAAiB,EAAE;;;;;;iBAoFtE"}
|
@@ -1,5 +1,5 @@
|
|
1
|
-
// (C) 2024 GoodData Corporation
|
2
|
-
import { getAttributeElementsItems, isDashboardAttributeFilter, isDashboardDateFilterWithDimension, serializeObjRef, } from "@gooddata/sdk-model";
|
1
|
+
// (C) 2024-2025 GoodData Corporation
|
2
|
+
import { getAttributeElementsItems, isAllTimeDashboardDateFilter, isAllValuesDashboardAttributeFilter, isDashboardAttributeFilter, isDashboardDateFilterWithDimension, serializeObjRef, } from "@gooddata/sdk-model";
|
3
3
|
import { DateFilterHelpers, getAttributeFilterSubtitle, getLocalizedIcuDateFormatPattern, } from "@gooddata/sdk-ui-filters";
|
4
4
|
import { v4 as uuidv4 } from "uuid";
|
5
5
|
import { useIntl } from "react-intl";
|
@@ -39,6 +39,8 @@ export function useFiltersNamings(filtersToDisplay) {
|
|
39
39
|
}));
|
40
40
|
const subtitle = getAttributeFilterSubtitle(filter.attributeFilter.negativeSelection, valuesAsAttributeElements, intl);
|
41
41
|
return {
|
42
|
+
type: "attributeFilter",
|
43
|
+
all: isAllValuesDashboardAttributeFilter(filter),
|
42
44
|
id: filter.attributeFilter.localIdentifier,
|
43
45
|
title: filter.attributeFilter.title ?? attribute.attribute.title,
|
44
46
|
subtitle,
|
@@ -55,6 +57,8 @@ export function useFiltersNamings(filtersToDisplay) {
|
|
55
57
|
if (isDashboardDateFilterWithDimension(filter)) {
|
56
58
|
const key = serializeObjRef(filter.dateFilter.dataSet);
|
57
59
|
return {
|
60
|
+
type: "dateFilter",
|
61
|
+
all: isAllTimeDashboardDateFilter(filter),
|
58
62
|
id: uuidv4(), // used just for React keys
|
59
63
|
title: allDateFiltersTitlesObj[key],
|
60
64
|
subtitle,
|
@@ -62,6 +66,8 @@ export function useFiltersNamings(filtersToDisplay) {
|
|
62
66
|
}
|
63
67
|
else {
|
64
68
|
return {
|
69
|
+
type: "dateFilter",
|
70
|
+
all: isAllTimeDashboardDateFilter(filter),
|
65
71
|
id: uuidv4(), // used just for React keys
|
66
72
|
title: commonDateFilterTitle || intl.formatMessage({ id: "dateFilterDropdown.title" }),
|
67
73
|
subtitle,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"useFiltersNamings.js","sourceRoot":"","sources":["../../../src/_staging/sharedHooks/useFiltersNamings.ts"],"names":[],"mappings":"AAAA,
|
1
|
+
{"version":3,"file":"useFiltersNamings.js","sourceRoot":"","sources":["../../../src/_staging/sharedHooks/useFiltersNamings.ts"],"names":[],"mappings":"AAAA,qCAAqC;AAErC,OAAO,EAEH,yBAAyB,EAEzB,4BAA4B,EAC5B,mCAAmC,EACnC,0BAA0B,EAC1B,kCAAkC,EAClC,eAAe,GAClB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACH,iBAAiB,EACjB,0BAA0B,EAC1B,gCAAgC,GACnC,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,EAAE,IAAI,MAAM,EAAE,MAAM,MAAM,CAAC;AACpC,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAErC,OAAO,EAAE,+CAA+C,EAAE,MAAM,gDAAgD,CAAC;AACjH,OAAO,EAAE,uBAAuB,EAAE,MAAM,sCAAsC,CAAC;AAC/E,OAAO,EAAE,4BAA4B,EAAE,MAAM,+BAA+B,CAAC;AAC7E,OAAO,EACH,6BAA6B,EAC7B,oCAAoC,EACpC,YAAY,EACZ,cAAc,EACd,oBAAoB,GACvB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AACzE,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAEjE,MAAM,UAAU,iBAAiB,CAAC,gBAAqC;IACnE,MAAM,IAAI,GAAG,OAAO,EAAE,CAAC;IACvB,MAAM,MAAM,GAAG,oBAAoB,CAAC,YAAY,CAAC,CAAC;IAClD,MAAM,QAAQ,GAAG,oBAAoB,CAAC,cAAc,CAAC,CAAC;IAEtD,MAAM,UAAU,GAAG,QAAQ,CAAC,YAAY;QACpC,CAAC,CAAC,gCAAgC,CAAC,QAAQ,CAAC,YAAY,CAAC;QACzD,CAAC,CAAC,QAAQ,CAAC,sBAAsB,CAAC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org/2000/svg"><path d="M13.277 4.621a.39.39 0 0 1 .086.133.358.358 0 0 1 .032.148v10c0 .329-.118.61-.352.844a1.15 1.15 0 0 1-.844.352H1.793a1.15 1.15 0 0 1-.844-.352 1.15 1.15 0 0 1-.351-.844V2.098c0-.328.117-.61.351-.844a1.15 1.15 0 0 1 .844-.352h7.602c.052 0 .101.01.148.032a.39.39 0 0 1 .133.086l3.601 3.601Zm-.843.281-3.04-3.039v2.64c0 .11.04.204.118.282a.384.384 0 0 0 .281.117h2.64Zm-.235 10.399c.11 0 .203-.04.281-.117a.384.384 0 0 0 .118-.282V5.7H9.793a1.15 1.15 0 0 1-.844-.351 1.15 1.15 0 0 1-.351-.844V1.699H1.793c-.11 0-.203.04-.281.117a.384.384 0 0 0-.117.282v12.804c0 .11.039.204.117.282a.384.384 0 0 0 .281.117h10.406Zm-1.601-7.203a.38.38 0 0 1 .28.117.393.393 0 0 1 .118.289V13.3c0 .11-.039.203-.117.281a.383.383 0 0 1-.281.117H3.395a.383.383 0 0 1-.282-.117.383.383 0 0 1-.117-.281V8.504a.4.4 0 0 1 .117-.29.384.384 0 0 1 .282-.116h7.203Zm-.399 2.406V8.902H8.598v1.602h1.601Zm-4 0h1.594V8.902H6.199v1.602Zm1.594.797H6.199v1.601h1.594v-1.601ZM5.395 8.902H3.793v1.602h1.602V8.902Zm-1.602 2.399v1.601h1.602v-1.601H3.793Zm4.805 1.601h1.601v-1.601H8.598v1.601Z" fill="#6D7680"/></svg>
|
@@ -0,0 +1 @@
|
|
1
|
+
<svg width="14" height="17" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M13.277 4.621a.39.39 0 0 1 .086.133.358.358 0 0 1 .032.148v10c0 .329-.118.61-.352.844a1.15 1.15 0 0 1-.844.352H1.793a1.15 1.15 0 0 1-.844-.352 1.15 1.15 0 0 1-.351-.844V2.098c0-.328.117-.61.351-.844a1.15 1.15 0 0 1 .844-.352h7.602c.052 0 .101.01.148.032a.39.39 0 0 1 .133.086l3.601 3.601Zm-.843.281-3.04-3.039v2.64c0 .11.04.204.118.282a.384.384 0 0 0 .281.117h2.64Zm-.235 10.399c.11 0 .203-.04.281-.117a.384.384 0 0 0 .118-.282V5.7H9.793a1.15 1.15 0 0 1-.844-.351 1.15 1.15 0 0 1-.351-.844V1.699H1.793c-.11 0-.203.04-.281.117a.384.384 0 0 0-.117.282v12.804c0 .11.039.204.117.282a.384.384 0 0 0 .281.117h10.406Z" fill="#6D7680"/><path d="M9.496 8.102h-6a.192.192 0 0 1-.14-.059.192.192 0 0 1-.06-.14c0-.058.02-.106.06-.145a.192.192 0 0 1 .14-.059h6c.055 0 .102.02.14.059.04.039.06.087.06.144a.19.19 0 0 1-.06.141.192.192 0 0 1-.14.059Zm0 2h-6a.192.192 0 0 1-.14-.059.192.192 0 0 1-.06-.14c0-.058.02-.106.06-.145a.192.192 0 0 1 .14-.059h6c.055 0 .102.02.14.059.04.039.06.087.06.144a.19.19 0 0 1-.06.141.192.192 0 0 1-.14.059Zm0 2h-6a.192.192 0 0 1-.14-.059.192.192 0 0 1-.06-.14c0-.058.02-.106.06-.145a.192.192 0 0 1 .14-.059h6c.055 0 .102.02.14.059.04.039.06.087.06.144a.19.19 0 0 1-.06.141.192.192 0 0 1-.14.059Z" fill="#6D7680" stroke="#6D7680" stroke-width=".5"/></svg>
|
@@ -0,0 +1 @@
|
|
1
|
+
<svg width="14" height="17" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M9.393 8.303a1.974 1.974 0 0 0 1.414-.586 1.974 1.974 0 0 0 .586-1.414 2.007 2.007 0 0 0-1.219-1.844 1.974 1.974 0 0 0-.781-.156 1.974 1.974 0 0 0-1.414.586c-.178.182-.32.396-.43.64-.104.24-.156.498-.156.774s.052.537.156.781c.11.24.252.45.43.633a1.974 1.974 0 0 0 1.414.586Zm0-3.203c.333 0 .617.117.851.352.235.234.352.518.352.851 0 .333-.117.617-.352.852a1.16 1.16 0 0 1-.851.351 1.15 1.15 0 0 1-.844-.351 1.16 1.16 0 0 1-.352-.852c0-.333.117-.617.352-.851a1.15 1.15 0 0 1 .844-.352Zm2.8-4.2c.333 0 .617.117.851.352.234.234.352.518.352.851v12.802c0 .328-.118.61-.352.843a1.16 1.16 0 0 1-.851.352H1.799a1.16 1.16 0 0 1-.852-.352 1.15 1.15 0 0 1-.351-.843V2.103c0-.333.117-.617.351-.851A1.16 1.16 0 0 1 1.8.9h10.394Zm-10.8 14.005c0 .11.039.203.117.28a.392.392 0 0 0 .289.118h9.062L5.26 9.358a.317.317 0 0 0-.125-.078.293.293 0 0 0-.266 0 .451.451 0 0 0-.117.086l-3.36 3.695v1.844Zm11.206 0V2.103a.383.383 0 0 0-.117-.281.393.393 0 0 0-.29-.117H1.8a.396.396 0 0 0-.29.117.384.384 0 0 0-.116.281v9.763l2.765-3.04a1.186 1.186 0 0 1 .836-.383c.162 0 .313.032.453.094.146.063.276.152.39.266l6.126 6.5h.23c.114 0 .21-.039.289-.117a.383.383 0 0 0 .117-.281Z" fill="#F18600"/></svg>
|
@@ -0,0 +1 @@
|
|
1
|
+
<svg width="14" height="17" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M7.186 5.882c.143.191.22.449.245.744h.003c.06.812-.092 1.492-.317 2.11.084.107.177.219.28.343.107.13.225.272.357.438.238.3.458.565.664.796a9.74 9.74 0 0 1 .202-.002c.627 0 1.302.064 1.817.287.27.117.492.287.61.518a.741.741 0 0 1-.022.74c-.256.418-.828.539-1.369.394h-.001c-.391-.106-.783-.37-1.183-.736a8.025 8.025 0 0 1-.392-.387c-.398.023-.776.067-1.08.114a8.81 8.81 0 0 0-1.187.265c-.06.11-.122.22-.185.33-.347.6-.755 1.226-1.132 1.58-.218.209-.459.35-.704.397-.248.049-.52 0-.716-.198-.195-.198-.24-.471-.192-.722.047-.249.187-.5.4-.735.555-.623 1.205-1.031 1.975-1.31.204-.385.378-.744.494-1.001l.176-.381c.1-.213.195-.419.282-.623a3.51 3.51 0 0 1-.065-.105c-.274-.462-.435-.977-.467-1.732v-.003c-.012-.343.05-.647.169-.888.115-.233.308-.447.577-.52.303-.08.585.05.761.287Zm-.547.9h.004a3.84 3.84 0 0 1-.065.933 3.568 3.568 0 0 1-.1-.74 1.077 1.077 0 0 1 .087-.505.517.517 0 0 1 .018-.034c.025.068.05.178.056.347Zm.012 3.03.113-.242.06.073c.1.12.202.243.303.371.1.127.199.249.295.365-.197.021-.381.046-.545.071h-.002c-.196.032-.387.067-.571.106.068-.14.128-.268.178-.379.055-.121.112-.243.17-.365Zm3.212 1.665c-.157-.042-.353-.146-.596-.337.334.033.628.095.852.192.116.05.173.098.2.126a.293.293 0 0 1-.082.034.733.733 0 0 1-.374-.015ZM3.88 12.691c.193-.216.401-.403.629-.566-.202.303-.396.553-.562.708l-.004.004a.763.763 0 0 1-.267.181.868.868 0 0 1 .203-.325l.001-.002Z" fill="#EE2227"/><path fill-rule="evenodd" clip-rule="evenodd" d="M13.365 4.754a.389.389 0 0 0-.086-.133L9.678 1.02a.39.39 0 0 0-.133-.086.361.361 0 0 0-.149-.032H1.795c-.328 0-.61.118-.844.352a1.15 1.15 0 0 0-.351.844v12.804c0 .329.117.61.351.844.235.234.516.352.844.352H12.2c.328 0 .61-.117.844-.352a1.15 1.15 0 0 0 .351-.844v-10a.36.36 0 0 0-.03-.148Zm-3.969-2.89 3.04 3.038H9.794a.384.384 0 0 1-.281-.117.384.384 0 0 1-.118-.281v-2.64Zm3.086 13.32a.384.384 0 0 1-.28.117H1.794a.384.384 0 0 1-.281-.117.384.384 0 0 1-.118-.282V2.098c0-.11.04-.203.118-.282a.384.384 0 0 1 .28-.117H8.6v2.805c0 .328.117.61.351.844.235.234.516.351.844.351H12.6v9.203c0 .11-.04.204-.118.282Z" fill="#EE2227"/></svg>
|
@@ -0,0 +1 @@
|
|
1
|
+
<svg width="14" height="17" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M13.277 4.621a.39.39 0 0 1 .086.133.358.358 0 0 1 .032.148v10c0 .329-.118.61-.352.844a1.15 1.15 0 0 1-.844.352H1.793a1.15 1.15 0 0 1-.844-.352 1.15 1.15 0 0 1-.351-.844V2.098c0-.328.117-.61.351-.844a1.15 1.15 0 0 1 .844-.352h7.602c.052 0 .101.01.148.032a.39.39 0 0 1 .133.086l3.601 3.601Zm-.843.281-3.04-3.039v2.64c0 .11.04.204.118.282a.384.384 0 0 0 .281.117h2.64Zm-.235 10.399c.11 0 .203-.04.281-.117a.384.384 0 0 0 .118-.282V5.7H9.793a1.15 1.15 0 0 1-.844-.351 1.15 1.15 0 0 1-.351-.844V1.699H1.793c-.11 0-.203.04-.281.117a.384.384 0 0 0-.117.282v12.804c0 .11.039.204.117.282a.384.384 0 0 0 .281.117h10.406Zm-1.601-7.203a.38.38 0 0 1 .28.117.393.393 0 0 1 .118.289V13.3c0 .11-.039.203-.117.281a.383.383 0 0 1-.281.117H3.395a.383.383 0 0 1-.282-.117.383.383 0 0 1-.117-.281V8.504a.4.4 0 0 1 .117-.29.384.384 0 0 1 .282-.116h7.203Zm-.399 2.406V8.902H8.598v1.602h1.601Zm-4 0h1.594V8.902H6.199v1.602Zm1.594.797H6.199v1.601h1.594v-1.601ZM5.395 8.902H3.793v1.602h1.602V8.902Zm-1.602 2.399v1.601h1.602v-1.601H3.793Zm4.805 1.601h1.601v-1.601H8.598v1.601Z" fill="#158149"/></svg>
|
@@ -0,0 +1 @@
|
|
1
|
+
<svg width="14" height="17" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M13.277 4.621a.39.39 0 0 1 .086.133.358.358 0 0 1 .032.148v10c0 .329-.118.61-.352.844a1.15 1.15 0 0 1-.844.352H1.793a1.15 1.15 0 0 1-.844-.352 1.15 1.15 0 0 1-.351-.844V2.098c0-.328.117-.61.351-.844a1.15 1.15 0 0 1 .844-.352h7.602c.052 0 .101.01.148.032a.39.39 0 0 1 .133.086l3.601 3.601Zm-.843.281-3.04-3.039v2.64c0 .11.04.204.118.282a.384.384 0 0 0 .281.117h2.64Zm-.235 10.399c.11 0 .203-.04.281-.117a.384.384 0 0 0 .118-.282V5.7H9.793a1.15 1.15 0 0 1-.844-.351 1.15 1.15 0 0 1-.351-.844V1.699H1.793c-.11 0-.203.04-.281.117a.384.384 0 0 0-.117.282v12.804c0 .11.039.204.117.282a.384.384 0 0 0 .281.117h10.406Z" fill="#F04B24"/><path d="M6.613 12.62a2.688 2.688 0 0 1-1.04-.207 2.698 2.698 0 0 1-.466-.247 2.826 2.826 0 0 1-.416-.343 2.697 2.697 0 0 1-.343-.413 2.982 2.982 0 0 1-.25-.469 2.787 2.787 0 0 1-.153-.506 2.85 2.85 0 0 1 0-1.069c.035-.175.086-.343.153-.506a2.777 2.777 0 0 1 .593-.881c.13-.13.268-.243.416-.34.148-.1.303-.184.466-.25a2.688 2.688 0 0 1 1.04-.206.154.154 0 0 1 .116.046.153.153 0 0 1 .047.112.153.153 0 0 1-.047.113.157.157 0 0 1-.116.047c-.329 0-.64.063-.931.19a2.446 2.446 0 0 0-.766.513c-.216.217-.388.47-.515.762a2.347 2.347 0 0 0-.188.935c0 .331.063.643.188.934.127.292.299.546.515.763.22.216.474.388.766.515.292.125.602.188.931.188.332 0 .643-.063.935-.188a2.47 2.47 0 0 0 .762-.515A2.383 2.383 0 0 0 9.013 9.9c0-.044.016-.081.047-.113a.157.157 0 0 1 .116-.047c.044 0 .081.016.112.047a.153.153 0 0 1 .047.113 2.688 2.688 0 0 1-.206 1.04 2.673 2.673 0 0 1-.59.882 2.652 2.652 0 0 1-.884.59 2.49 2.49 0 0 1-.507.153 2.658 2.658 0 0 1-.535.053Zm3.2-3.2h-2.56a.153.153 0 0 1-.112-.047.153.153 0 0 1-.046-.113V6.7c0-.043.015-.08.046-.112a.153.153 0 0 1 .113-.047 2.687 2.687 0 0 1 1.04.207 2.676 2.676 0 0 1 1.222 1.006c.1.148.184.303.25.466a2.64 2.64 0 0 1 .21 1.04.153.153 0 0 1-.047.113.157.157 0 0 1-.116.047Zm-2.4-.32h2.238a2.386 2.386 0 0 0-.7-1.534 2.43 2.43 0 0 0-.694-.484 2.273 2.273 0 0 0-.844-.216v2.235Z" fill="#F04B24" stroke="#F04B24" stroke-width=".5"/></svg>
|
@@ -0,0 +1,18 @@
|
|
1
|
+
import { IDashboardAttributeFilter, IFilterContextDefinition } from "@gooddata/sdk-model";
|
2
|
+
/**
|
3
|
+
* Returns attribute filters that were ad-hoc migrated (non-primary label information was moved from
|
4
|
+
* filter's displayForm to dashboard's attribute filter config).
|
5
|
+
*
|
6
|
+
* @param persistedAttributeFilters - attribute filters that are persisted in metadata
|
7
|
+
* @param currentAttributeFilters - attribute filters that are in the current state
|
8
|
+
* @param crossFilteringFiltersLocalIdentifiers - current filters that have cross filtering applied
|
9
|
+
*/
|
10
|
+
export declare function getMigratedAttributeFilters(persistedAttributeFilters?: IDashboardAttributeFilter[], currentAttributeFilters?: IDashboardAttributeFilter[], crossFilteringFiltersLocalIdentifiers?: string[]): IDashboardAttributeFilter[];
|
11
|
+
/**
|
12
|
+
* Returns provided filter context with provided filters merged into (the filters are matched by
|
13
|
+
* local identifier).
|
14
|
+
* @param filterContext - the filter context that will get the provided filters merged into
|
15
|
+
* @param migratedAttributeFilters - filters that should be merged into the provided filter context
|
16
|
+
*/
|
17
|
+
export declare const mergedMigratedAttributeFilters: (filterContext: IFilterContextDefinition, migratedAttributeFilters: IDashboardAttributeFilter[]) => IFilterContextDefinition;
|
18
|
+
//# sourceMappingURL=migratedAttributeFilters.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"migratedAttributeFilters.d.ts","sourceRoot":"","sources":["../../../../../src/model/commandHandlers/dashboard/common/migratedAttributeFilters.ts"],"names":[],"mappings":"AAEA,OAAO,EACH,yBAAyB,EAEzB,wBAAwB,EAE3B,MAAM,qBAAqB,CAAC;AAE7B;;;;;;;GAOG;AACH,wBAAgB,2BAA2B,CACvC,yBAAyB,GAAE,yBAAyB,EAAO,EAC3D,uBAAuB,GAAE,yBAAyB,EAAO,EACzD,qCAAqC,GAAE,MAAM,EAAO,GACrD,yBAAyB,EAAE,CAmB7B;AAED;;;;;GAKG;AACH,eAAO,MAAM,8BAA8B,kBACxB,wBAAwB,4BACb,yBAAyB,EAAE,KACtD,wBAYD,CAAC"}
|
@@ -0,0 +1,36 @@
|
|
1
|
+
// (C) 2025 GoodData Corporation
|
2
|
+
import { areObjRefsEqual, isDashboardAttributeFilter, } from "@gooddata/sdk-model";
|
3
|
+
/**
|
4
|
+
* Returns attribute filters that were ad-hoc migrated (non-primary label information was moved from
|
5
|
+
* filter's displayForm to dashboard's attribute filter config).
|
6
|
+
*
|
7
|
+
* @param persistedAttributeFilters - attribute filters that are persisted in metadata
|
8
|
+
* @param currentAttributeFilters - attribute filters that are in the current state
|
9
|
+
* @param crossFilteringFiltersLocalIdentifiers - current filters that have cross filtering applied
|
10
|
+
*/
|
11
|
+
export function getMigratedAttributeFilters(persistedAttributeFilters = [], currentAttributeFilters = [], crossFilteringFiltersLocalIdentifiers = []) {
|
12
|
+
return currentAttributeFilters
|
13
|
+
.filter((currentFilter) => !crossFilteringFiltersLocalIdentifiers.includes(currentFilter.attributeFilter.localIdentifier))
|
14
|
+
.filter((currentFilter) => {
|
15
|
+
const persistedFilter = persistedAttributeFilters.find((persistedFilter) => persistedFilter.attributeFilter.localIdentifier ===
|
16
|
+
currentFilter.attributeFilter.localIdentifier);
|
17
|
+
return !areObjRefsEqual(persistedFilter?.attributeFilter.displayForm, currentFilter.attributeFilter.displayForm);
|
18
|
+
});
|
19
|
+
}
|
20
|
+
/**
|
21
|
+
* Returns provided filter context with provided filters merged into (the filters are matched by
|
22
|
+
* local identifier).
|
23
|
+
* @param filterContext - the filter context that will get the provided filters merged into
|
24
|
+
* @param migratedAttributeFilters - filters that should be merged into the provided filter context
|
25
|
+
*/
|
26
|
+
export const mergedMigratedAttributeFilters = (filterContext, migratedAttributeFilters) => ({
|
27
|
+
...filterContext,
|
28
|
+
filters: filterContext.filters.map((filter) => {
|
29
|
+
if (isDashboardAttributeFilter(filter)) {
|
30
|
+
const migratedFilter = migratedAttributeFilters.find((migratedFilter) => migratedFilter.attributeFilter.localIdentifier === filter.attributeFilter.localIdentifier);
|
31
|
+
return migratedFilter ?? filter;
|
32
|
+
}
|
33
|
+
return filter;
|
34
|
+
}),
|
35
|
+
});
|
36
|
+
//# sourceMappingURL=migratedAttributeFilters.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"migratedAttributeFilters.js","sourceRoot":"","sources":["../../../../../src/model/commandHandlers/dashboard/common/migratedAttributeFilters.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAEhC,OAAO,EAEH,eAAe,EAEf,0BAA0B,GAC7B,MAAM,qBAAqB,CAAC;AAE7B;;;;;;;GAOG;AACH,MAAM,UAAU,2BAA2B,CACvC,4BAAyD,EAAE,EAC3D,0BAAuD,EAAE,EACzD,wCAAkD,EAAE;IAEpD,OAAO,uBAAuB;SACzB,MAAM,CACH,CAAC,aAAa,EAAE,EAAE,CACd,CAAC,qCAAqC,CAAC,QAAQ,CAC3C,aAAa,CAAC,eAAe,CAAC,eAAgB,CACjD,CACR;SACA,MAAM,CAAC,CAAC,aAAa,EAAE,EAAE;QACtB,MAAM,eAAe,GAAG,yBAAyB,CAAC,IAAI,CAClD,CAAC,eAAe,EAAE,EAAE,CAChB,eAAe,CAAC,eAAe,CAAC,eAAe;YAC/C,aAAa,CAAC,eAAe,CAAC,eAAe,CACpD,CAAC;QACF,OAAO,CAAC,eAAe,CACnB,eAAe,EAAE,eAAe,CAAC,WAAW,EAC5C,aAAa,CAAC,eAAe,CAAC,WAAW,CAC5C,CAAC;IACN,CAAC,CAAC,CAAC;AACX,CAAC;AAED;;;;;GAKG;AACH,MAAM,CAAC,MAAM,8BAA8B,GAAG,CAC1C,aAAuC,EACvC,wBAAqD,EAC7B,EAAE,CAAC,CAAC;IAC5B,GAAG,aAAa;IAChB,OAAO,EAAE,aAAa,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE;QAC1C,IAAI,0BAA0B,CAAC,MAAM,CAAC,EAAE,CAAC;YACrC,MAAM,cAAc,GAAG,wBAAwB,CAAC,IAAI,CAChD,CAAC,cAAc,EAAE,EAAE,CACf,cAAc,CAAC,eAAe,CAAC,eAAe,KAAK,MAAM,CAAC,eAAe,CAAC,eAAe,CAChG,CAAC;YACF,OAAO,cAAc,IAAI,MAAM,CAAC;QACpC,CAAC;QACD,OAAO,MAAM,CAAC;IAClB,CAAC,CAAC;CACL,CAAC,CAAC"}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { SagaIterator } from "redux-saga";
|
2
2
|
import { PayloadAction } from "@reduxjs/toolkit";
|
3
|
-
import { IInsight, IDateFilterConfig, IAttributeDisplayFormMetadataObject, IDashboard, ISettings, ICatalogDateDataset, ObjRef, IDataSetMetadataObject } from "@gooddata/sdk-model";
|
3
|
+
import { IInsight, IDateFilterConfig, IAttributeDisplayFormMetadataObject, IDashboard, ISettings, ICatalogDateDataset, ObjRef, IDataSetMetadataObject, IDashboardAttributeFilterConfig, IDashboardAttributeFilter } from "@gooddata/sdk-model";
|
4
4
|
import { DashboardContext } from "../../../types/commonTypes.js";
|
5
5
|
import { ObjRefMap } from "../../../../_staging/metadata/objRefMap.js";
|
6
6
|
/**
|
@@ -41,6 +41,12 @@ export declare function loadDataSets(ctx: DashboardContext, dataSetRefs: ObjRef[
|
|
41
41
|
* these insights in the state; it uses the insights to perform sanitization of the dashboard layout
|
42
42
|
* @param settings - settings currently in effect; note that this function will not create actions to store
|
43
43
|
* the settings in the state; it uses the settings during layout sanitization
|
44
|
+
* @param isImmediateAttributeFilterMigrationEnabled - enables transfer of changes made to the dashboard and
|
45
|
+
* its filter context in view mode to the edit mode.
|
46
|
+
* @param migratedAttributeFilters - ad-hoc migrated attribute filters in view mode that must be applied to
|
47
|
+
* the dashboard so user can save these changes (persisted dashboard state remains as is).
|
48
|
+
* @param migratedAttributeFilterConfigs - ad-hoc migrated attribute filter configs in view mode that must be
|
49
|
+
* applied to the dashboard so user can save these changes (persisted dashboard state remains as is).
|
44
50
|
* @param dateFilterConfig - effective date filter config to use; note that this function will not store
|
45
51
|
* the date filter config anywhere; it uses the config during filter context sanitization & determining
|
46
52
|
* which date option is selected
|
@@ -50,5 +56,5 @@ export declare function loadDataSets(ctx: DashboardContext, dataSetRefs: ObjRef[
|
|
50
56
|
* attribute filter display forms to metadata objects
|
51
57
|
* @param persistedDashboard - dashboard to use for the persisted dashboard state slice in case it needs to be different from the dashboard param
|
52
58
|
*/
|
53
|
-
export declare function actionsToInitializeExistingDashboard(ctx: DashboardContext, dashboard: IDashboard, insights: IInsight[], settings: ISettings, dateFilterConfig: IDateFilterConfig, dateDataSets: ICatalogDateDataset[] | null, displayForms?: ObjRefMap<IAttributeDisplayFormMetadataObject>, persistedDashboard?: IDashboard): SagaIterator<Array<PayloadAction<any>>>;
|
59
|
+
export declare function actionsToInitializeExistingDashboard(ctx: DashboardContext, dashboard: IDashboard, insights: IInsight[], settings: ISettings, isImmediateAttributeFilterMigrationEnabled: boolean, migratedAttributeFilters: IDashboardAttributeFilter[], migratedAttributeFilterConfigs: IDashboardAttributeFilterConfig[] | undefined, dateFilterConfig: IDateFilterConfig, dateDataSets: ICatalogDateDataset[] | null, displayForms?: ObjRefMap<IAttributeDisplayFormMetadataObject>, persistedDashboard?: IDashboard): SagaIterator<Array<PayloadAction<any>>>;
|
54
60
|
//# sourceMappingURL=stateInitializers.d.ts.map
|
@@ -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,EAGnC,UAAU,EACV,SAAS,EACT,mBAAmB,EAEnB,MAAM,EAGN,sBAAsB,
|
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,EAGtB,+BAA+B,EAC/B,yBAAyB,EAC5B,MAAM,qBAAqB,CAAC;AAc7B,OAAO,EACH,gBAAgB,EAGnB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,SAAS,EAAE,MAAM,4CAA4C,CAAC;AAYvE;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,wBAAiB,oCAAoC,CACjD,GAAG,EAAE,gBAAgB,EACrB,SAAS,EAAE,UAAU,EACrB,QAAQ,EAAE,QAAQ,EAAE,EACpB,QAAQ,EAAE,SAAS,EACnB,0CAA0C,EAAE,OAAO,EACnD,wBAAwB,EAAE,yBAAyB,EAAE,EACrD,8BAA8B,+CAAwC,EACtE,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,CAkFzC"}
|
@@ -18,6 +18,7 @@ import { dateFilterConfigActions } from "../../../store/dateFilterConfig/index.j
|
|
18
18
|
import { dateFilterConfigsActions } from "../../../store/dateFilterConfigs/index.js";
|
19
19
|
import { drillActions } from "../../../store/drill/index.js";
|
20
20
|
import { dashboardInitialize, EmptyDashboardLayout } from "./dashboardInitialize.js";
|
21
|
+
import { mergedMigratedAttributeFilters } from "./migratedAttributeFilters.js";
|
21
22
|
/**
|
22
23
|
* Returns a list of actions which when processed will initialize the essential parts of the dashboard
|
23
24
|
* state so that it shows a new, empty dashboard.
|
@@ -184,8 +185,8 @@ function* sanitizeFilterContext(ctx, filterContext, catalogDateDataSets, dataSet
|
|
184
185
|
return keepOnlyFiltersWithValidRef(filter, availableRefs, dataSetIds);
|
185
186
|
}), filterContext);
|
186
187
|
}
|
187
|
-
function getDisplayAsLabels(
|
188
|
-
return (
|
188
|
+
function getDisplayAsLabels(attributeFilterConfigs) {
|
189
|
+
return (attributeFilterConfigs?.reduce((labels, config) => {
|
189
190
|
if (typeof config.displayAsLabel !== "undefined") {
|
190
191
|
labels.push(config.displayAsLabel);
|
191
192
|
}
|
@@ -208,6 +209,12 @@ function getDisplayAsLabels(dashboard) {
|
|
208
209
|
* these insights in the state; it uses the insights to perform sanitization of the dashboard layout
|
209
210
|
* @param settings - settings currently in effect; note that this function will not create actions to store
|
210
211
|
* the settings in the state; it uses the settings during layout sanitization
|
212
|
+
* @param isImmediateAttributeFilterMigrationEnabled - enables transfer of changes made to the dashboard and
|
213
|
+
* its filter context in view mode to the edit mode.
|
214
|
+
* @param migratedAttributeFilters - ad-hoc migrated attribute filters in view mode that must be applied to
|
215
|
+
* the dashboard so user can save these changes (persisted dashboard state remains as is).
|
216
|
+
* @param migratedAttributeFilterConfigs - ad-hoc migrated attribute filter configs in view mode that must be
|
217
|
+
* applied to the dashboard so user can save these changes (persisted dashboard state remains as is).
|
211
218
|
* @param dateFilterConfig - effective date filter config to use; note that this function will not store
|
212
219
|
* the date filter config anywhere; it uses the config during filter context sanitization & determining
|
213
220
|
* which date option is selected
|
@@ -217,7 +224,7 @@ function getDisplayAsLabels(dashboard) {
|
|
217
224
|
* attribute filter display forms to metadata objects
|
218
225
|
* @param persistedDashboard - dashboard to use for the persisted dashboard state slice in case it needs to be different from the dashboard param
|
219
226
|
*/
|
220
|
-
export function* actionsToInitializeExistingDashboard(ctx, dashboard, insights, settings, dateFilterConfig, dateDataSets, displayForms, persistedDashboard) {
|
227
|
+
export function* actionsToInitializeExistingDashboard(ctx, dashboard, insights, settings, isImmediateAttributeFilterMigrationEnabled, migratedAttributeFilters, migratedAttributeFilterConfigs = [], dateFilterConfig, dateDataSets, displayForms, persistedDashboard) {
|
221
228
|
const sanitizedFilterContext = yield call(sanitizeFilterContext, ctx, dashboard.filterContext, dateDataSets, dashboard.dataSets, displayForms, settings);
|
222
229
|
const sanitizedDashboard = {
|
223
230
|
...dashboard,
|
@@ -229,9 +236,15 @@ export function* actionsToInitializeExistingDashboard(ctx, dashboard, insights,
|
|
229
236
|
const modifiedWidgets = privateCtx?.widgetsOverlayFn?.(customizedDashboard) ?? {};
|
230
237
|
const filterContextDefinition = dashboardFilterContextDefinition(customizedDashboard, dateFilterConfig);
|
231
238
|
const filterContextIdentity = dashboardFilterContextIdentity(customizedDashboard);
|
232
|
-
const
|
239
|
+
const migratedFilterContext = isImmediateAttributeFilterMigrationEnabled
|
240
|
+
? mergedMigratedAttributeFilters(filterContextDefinition, migratedAttributeFilters)
|
241
|
+
: filterContextDefinition;
|
242
|
+
const effectiveAttributeFilterConfigs = isImmediateAttributeFilterMigrationEnabled
|
243
|
+
? migratedAttributeFilterConfigs
|
244
|
+
: dashboard.attributeFilterConfigs;
|
245
|
+
const displayAsLabels = getDisplayAsLabels(effectiveAttributeFilterConfigs);
|
233
246
|
// load DFs for both filter refs and displayAsLabels
|
234
|
-
const attributeFilterDisplayForms = yield call(resolveFilterDisplayForms, ctx,
|
247
|
+
const attributeFilterDisplayForms = yield call(resolveFilterDisplayForms, ctx, migratedFilterContext.filters, displayAsLabels, displayForms);
|
235
248
|
/*
|
236
249
|
* NOTE: cannot do without the cast here. The layout in IDashboard is parameterized with IDashboardWidget
|
237
250
|
* which also includes KPI and Insight widget definitions = those without identity. That is however
|
@@ -243,7 +256,7 @@ export function* actionsToInitializeExistingDashboard(ctx, dashboard, insights,
|
|
243
256
|
return [
|
244
257
|
filterContextActions.setFilterContext({
|
245
258
|
originalFilterContextDefinition: filterContextDefinition,
|
246
|
-
filterContextDefinition,
|
259
|
+
filterContextDefinition: migratedFilterContext,
|
247
260
|
filterContextIdentity,
|
248
261
|
attributeFilterDisplayForms,
|
249
262
|
}),
|
@@ -253,7 +266,7 @@ export function* actionsToInitializeExistingDashboard(ctx, dashboard, insights,
|
|
253
266
|
initialContent: false,
|
254
267
|
}),
|
255
268
|
attributeFilterConfigsActions.setAttributeFilterConfigs({
|
256
|
-
attributeFilterConfigs:
|
269
|
+
attributeFilterConfigs: effectiveAttributeFilterConfigs,
|
257
270
|
}),
|
258
271
|
dateFilterConfigActions.updateDateFilterConfig(dashboard.dateFilterConfig),
|
259
272
|
dateFilterConfigsActions.setDateFilterConfigs({
|
@@ -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,GAMlB,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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;;OAMG;IACH,MAAM,eAAe,GAAG,uBAAuB,CAC3C,mBAAmB,CAAC,MAAM,IAAI,oBAAoB,EAClD,QAAQ,EACR,QAAQ,CACX,CAAC;IAEF,OAAO;QACH,oBAAoB,CAAC,gBAAgB,CAAC;YAClC,+BAA+B,EAAE,uBAAuB;YACxD,uBAAuB,EAAE,qBAAqB;YAC9C,qBAAqB;YACrB,2BAA2B;SAC9B,CAAC;QACF,aAAa,CAAC,SAAS,CAAC,eAAe,CAAC;QACxC,WAAW,CAAC,OAAO,CAAC;YAChB,SAAS,EAAE,kBAAkB,IAAI,SAAS;YAC1C,cAAc,EAAE,KAAK;SACxB,CAAC;QACF,6BAA6B,CAAC,yBAAyB,CAAC;YACpD,sBAAsB,EAAE,+BAA+B;SAC1D,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"}
|
@@ -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,8CAA8C,CAAC;AAG5F,SAAS,gCAAgC,CACrC,GAAqB,EACrB,YAAoB,EACpB,OAAwC;IAExC,MAAM,EAAE,OAAO,EAAE,SAAS,EAAE,GAAG,GAAG,CAAC;IACnC,OAAO,OAAO;SACT,SAAS,CAAC,SAAS,CAAC;SACpB,UAAU,EAAE;SACZ,6BAA6B,CAAC,YAAY,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC;AACrE,CAAC;AAED,MAAM,SAAS,CAAC,CAAC,uCAAuC,CACpD,GAAqB,EACrB,GAAyB;IAEzB,MAAM,GAAG,CAAC,yCAAyC,CAAC,GAAG,EAAE,GAAG,CAAC,aAAa,CAAC,CAAC,CAAC;IAE7E,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,oBAAoB,GAAkD,MAAM,MAAM,CACpF,0BAA0B,CAC7B,CAAC;IAEF,MAAM,gBAAgB,GAAG,4BAA4B,CAAC,oBAAoB,CAAC,CAAC;IAE5E,MAAM,MAAM,GAAiE,MAAM,IAAI,CACnF,gCAAgC,EAChC,GAAG,EACH,YAAY,EACZ,gBAAgB,CACnB,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,wCAAwC,CAAC,GAAG,EAAE,eAAe,EAAE,GAAG,CAAC,aAAa,CAAC,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,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AACvE,OAAO,EAAE,wBAAwB,EAAE,MAAM,yBAAyB,CAAC;AAEnE,OAAO,EAAE,4BAA4B,EAAE,MAAM,8CAA8C,CAAC;AAC5F,OAAO,EAAE,0BAA0B,EAAE,MAAM,qDAAqD,CAAC;AAEjG,SAAS,gCAAgC,CACrC,GAAqB,EACrB,YAAoB,EACpB,OAAwC;IAExC,MAAM,EAAE,OAAO,EAAE,SAAS,EAAE,GAAG,GAAG,CAAC;IACnC,OAAO,OAAO;SACT,SAAS,CAAC,SAAS,CAAC;SACpB,UAAU,EAAE;SACZ,6BAA6B,CAAC,YAAY,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC;AACtE,CAAC;AAED,MAAM,SAAS,CAAC,CAAC,uCAAuC,CACpD,GAAqB,EACrB,GAAyB;IAEzB,MAAM,GAAG,CAAC,yCAAyC,CAAC,GAAG,EAAE,GAAG,CAAC,aAAa,CAAC,CAAC,CAAC;IAE7E,MAAM,YAAY,GAAG,MAAM,MAAM,CAAC,kBAAkB,CAAC,CAAC;IACtD,IAAI,CAAC,YAAY,EAAE,CAAC;QAChB,MAAM,wBAAwB,CAAC,GAAG,EAAE,GAAG,EAAE,iDAAiD,CAAC,CAAC;IAChG,CAAC;IAED,MAAM,oBAAoB,GAAkD,MAAM,MAAM,CACpF,0BAA0B,CAC7B,CAAC;IAEF,MAAM,gBAAgB,GAAG,4BAA4B,CAAC,oBAAoB,CAAC,CAAC;IAE5E,MAAM,MAAM,GAAiE,MAAM,IAAI,CACnF,gCAAgC,EAChC,GAAG,EACH,YAAY,EACZ,gBAAgB,CACnB,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,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;AAyX7B,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"}
|
@@ -147,7 +147,7 @@ function* loadExistingDashboard(ctx, cmd, dashboardRef) {
|
|
147
147
|
const { dashboard: loadedDashboard, references: { insights }, } = dashboardWithReferences;
|
148
148
|
const dashboard = applyDefaultFilterView(loadedDashboard, filterViews, config.settings);
|
149
149
|
const effectiveDateFilterConfig = yield call(mergeDateFilterConfigWithOverrides, ctx, cmd, config.dateFilterConfig, dashboard.dateFilterConfig);
|
150
|
-
const initActions = yield call(actionsToInitializeExistingDashboard, ctx, dashboard, insights, config.settings, effectiveDateFilterConfig.config, catalog ? catalog.dateDatasets() : [], catalog ? createDisplayFormMapFromCatalog(catalog) : createDisplayFormMap([], []), cmd.payload.persistedDashboard);
|
150
|
+
const initActions = yield call(actionsToInitializeExistingDashboard, ctx, dashboard, insights, config.settings, config.settings.enableImmediateAttributeFilterDisplayAsLabelMigration ?? false, [], dashboard.attributeFilterConfigs, effectiveDateFilterConfig.config, catalog ? catalog.dateDatasets() : [], catalog ? createDisplayFormMapFromCatalog(catalog) : createDisplayFormMap([], []), cmd.payload.persistedDashboard);
|
151
151
|
const catalogPayload = {
|
152
152
|
dateHierarchyTemplates,
|
153
153
|
...(catalog
|