@gooddata/sdk-ui-dashboard 10.20.0-alpha.9 → 10.20.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 +3 -3
- 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/layout/sizing.d.ts +1 -1
- package/esm/_staging/layout/sizing.d.ts.map +1 -1
- package/esm/_staging/layout/sizing.js +4 -1
- package/esm/_staging/layout/sizing.js.map +1 -1
- package/esm/_staging/sharedHooks/useAttributes.d.ts.map +1 -1
- package/esm/_staging/sharedHooks/useAttributes.js +10 -4
- package/esm/_staging/sharedHooks/useAttributes.js.map +1 -1
- package/esm/_staging/slideshow/breakupSlideTransformer.d.ts +10 -0
- package/esm/_staging/slideshow/breakupSlideTransformer.d.ts.map +1 -0
- package/esm/_staging/slideshow/breakupSlideTransformer.js +20 -0
- package/esm/_staging/slideshow/breakupSlideTransformer.js.map +1 -0
- package/esm/_staging/slideshow/containerSlideTransformer.d.ts +11 -0
- package/esm/_staging/slideshow/containerSlideTransformer.d.ts.map +1 -0
- package/esm/_staging/slideshow/containerSlideTransformer.js +49 -0
- package/esm/_staging/slideshow/containerSlideTransformer.js.map +1 -0
- package/esm/_staging/slideshow/containerSwitcherSlideTransformer.d.ts +8 -0
- package/esm/_staging/slideshow/containerSwitcherSlideTransformer.d.ts.map +1 -0
- package/esm/_staging/slideshow/containerSwitcherSlideTransformer.js +115 -0
- package/esm/_staging/slideshow/containerSwitcherSlideTransformer.js.map +1 -0
- package/esm/_staging/slideshow/index.d.ts +10 -0
- package/esm/_staging/slideshow/index.d.ts.map +1 -0
- package/esm/_staging/slideshow/index.js +11 -0
- package/esm/_staging/slideshow/index.js.map +1 -0
- package/esm/_staging/slideshow/itemsSlideTransformer.d.ts +9 -0
- package/esm/_staging/slideshow/itemsSlideTransformer.d.ts.map +1 -0
- package/esm/_staging/slideshow/itemsSlideTransformer.js +13 -0
- package/esm/_staging/slideshow/itemsSlideTransformer.js.map +1 -0
- package/esm/_staging/slideshow/layoutTransformer.d.ts +9 -0
- package/esm/_staging/slideshow/layoutTransformer.d.ts.map +1 -0
- package/esm/_staging/slideshow/layoutTransformer.js +24 -0
- package/esm/_staging/slideshow/layoutTransformer.js.map +1 -0
- package/esm/_staging/slideshow/sectionSlideTransformer.d.ts +4 -0
- package/esm/_staging/slideshow/sectionSlideTransformer.d.ts.map +1 -0
- package/esm/_staging/slideshow/sectionSlideTransformer.js +19 -0
- package/esm/_staging/slideshow/sectionSlideTransformer.js.map +1 -0
- package/esm/_staging/slideshow/singleWidgetTransformer.d.ts +6 -0
- package/esm/_staging/slideshow/singleWidgetTransformer.d.ts.map +1 -0
- package/esm/_staging/slideshow/singleWidgetTransformer.js +21 -0
- package/esm/_staging/slideshow/singleWidgetTransformer.js.map +1 -0
- package/esm/_staging/slideshow/switcherSlideTransformer.d.ts +9 -0
- package/esm/_staging/slideshow/switcherSlideTransformer.d.ts.map +1 -0
- package/esm/_staging/slideshow/switcherSlideTransformer.js +37 -0
- package/esm/_staging/slideshow/switcherSlideTransformer.js.map +1 -0
- package/esm/_staging/slideshow/utils/index.d.ts +16 -0
- package/esm/_staging/slideshow/utils/index.d.ts.map +1 -0
- package/esm/_staging/slideshow/utils/index.js +57 -0
- package/esm/_staging/slideshow/utils/index.js.map +1 -0
- package/esm/_staging/slideshow/widgetSlideTransformer.d.ts +3 -0
- package/esm/_staging/slideshow/widgetSlideTransformer.d.ts.map +1 -0
- package/esm/_staging/slideshow/widgetSlideTransformer.js +24 -0
- package/esm/_staging/slideshow/widgetSlideTransformer.js.map +1 -0
- package/esm/model/commandHandlers/common/validateDrills.d.ts +2 -2
- package/esm/model/commandHandlers/dashboard/common/loadAutomationsData.d.ts +7 -0
- package/esm/model/commandHandlers/dashboard/common/loadAutomationsData.d.ts.map +1 -0
- package/esm/model/commandHandlers/dashboard/common/loadAutomationsData.js +13 -0
- package/esm/model/commandHandlers/dashboard/common/loadAutomationsData.js.map +1 -0
- package/esm/model/commandHandlers/dashboard/common/stateInitializers.d.ts.map +1 -1
- package/esm/model/commandHandlers/dashboard/common/stateInitializers.js +3 -3
- package/esm/model/commandHandlers/dashboard/common/stateInitializers.js.map +1 -1
- package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/index.d.ts +7 -3
- package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/index.d.ts.map +1 -1
- package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/index.js +30 -28
- package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/index.js.map +1 -1
- package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/loadUser.js +1 -1
- package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/loadUser.js.map +1 -1
- package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/preloadAttributeFiltersData.d.ts +5 -0
- package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/preloadAttributeFiltersData.d.ts.map +1 -0
- package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/preloadAttributeFiltersData.js +16 -0
- package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/preloadAttributeFiltersData.js.map +1 -0
- package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/resolveDashboardConfig.d.ts +10 -0
- package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/resolveDashboardConfig.d.ts.map +1 -1
- package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/resolveDashboardConfig.js +17 -1
- package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/resolveDashboardConfig.js.map +1 -1
- package/esm/model/commandHandlers/filterContext/attributeFilter/changeAttributeFilterSelectionHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/filterContext/attributeFilter/changeAttributeFilterSelectionHandler.js +8 -2
- 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 +10 -2
- 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 +6 -1
- 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 +3 -8
- package/esm/model/commandHandlers/filterContext/filterViewHandler.js.map +1 -1
- package/esm/model/index.d.ts +1 -1
- package/esm/model/index.d.ts.map +1 -1
- package/esm/model/index.js.map +1 -1
- package/esm/model/queryServices/queryAttributeByDisplayForm.d.ts.map +1 -1
- package/esm/model/queryServices/queryAttributeByDisplayForm.js +16 -9
- package/esm/model/queryServices/queryAttributeByDisplayForm.js.map +1 -1
- package/esm/model/queryServices/queryAttributeDataset.d.ts +1 -1
- package/esm/model/queryServices/queryAttributeDataset.d.ts.map +1 -1
- package/esm/model/queryServices/queryAttributeDataset.js +14 -6
- package/esm/model/queryServices/queryAttributeDataset.js.map +1 -1
- package/esm/model/queryServices/queryWidgetFilters.d.ts +1 -1
- package/esm/model/queryServices/queryWidgetFilters.d.ts.map +1 -1
- package/esm/model/queryServices/queryWidgetFilters.js +12 -13
- package/esm/model/queryServices/queryWidgetFilters.js.map +1 -1
- package/esm/model/store/config/configSelectors.d.ts +4 -0
- package/esm/model/store/config/configSelectors.d.ts.map +1 -1
- package/esm/model/store/config/configSelectors.js +6 -0
- package/esm/model/store/config/configSelectors.js.map +1 -1
- package/esm/model/store/dashboardStore.d.ts.map +1 -1
- package/esm/model/store/dashboardStore.js +3 -2
- package/esm/model/store/dashboardStore.js.map +1 -1
- package/esm/model/store/executionResults/executionResultsSelectors.d.ts +4 -0
- package/esm/model/store/executionResults/executionResultsSelectors.d.ts.map +1 -1
- package/esm/model/store/executionResults/executionResultsSelectors.js +8 -1
- package/esm/model/store/executionResults/executionResultsSelectors.js.map +1 -1
- package/esm/model/store/filterContext/filterContextReducers.d.ts +5 -0
- package/esm/model/store/filterContext/filterContextReducers.d.ts.map +1 -1
- package/esm/model/store/filterContext/filterContextReducers.js +8 -1
- package/esm/model/store/filterContext/filterContextReducers.js.map +1 -1
- package/esm/model/store/filterContext/filterContextSelectors.d.ts +7 -0
- package/esm/model/store/filterContext/filterContextSelectors.d.ts.map +1 -1
- package/esm/model/store/filterContext/filterContextSelectors.js +9 -1
- package/esm/model/store/filterContext/filterContextSelectors.js.map +1 -1
- package/esm/model/store/filterContext/filterContextState.d.ts +6 -0
- package/esm/model/store/filterContext/filterContextState.d.ts.map +1 -1
- package/esm/model/store/filterContext/filterContextState.js +2 -1
- package/esm/model/store/filterContext/filterContextState.js.map +1 -1
- 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 +4 -4
- package/esm/model/store/index.d.ts.map +1 -1
- package/esm/model/store/index.js +4 -4
- package/esm/model/store/index.js.map +1 -1
- package/esm/model/store/renderMode/index.d.ts +1 -0
- package/esm/model/store/renderMode/index.d.ts.map +1 -1
- package/esm/model/store/renderMode/renderModeReducers.d.ts +1 -0
- package/esm/model/store/renderMode/renderModeReducers.d.ts.map +1 -1
- package/esm/model/store/renderMode/renderModeReducers.js +4 -0
- package/esm/model/store/renderMode/renderModeReducers.js.map +1 -1
- package/esm/model/store/renderMode/renderModeSelectors.d.ts +6 -0
- package/esm/model/store/renderMode/renderModeSelectors.d.ts.map +1 -1
- package/esm/model/store/renderMode/renderModeSelectors.js +7 -1
- package/esm/model/store/renderMode/renderModeSelectors.js.map +1 -1
- package/esm/model/types/commonTypes.d.ts +48 -3
- package/esm/model/types/commonTypes.d.ts.map +1 -1
- package/esm/model/types/commonTypes.js.map +1 -1
- package/esm/plugins/customizationApis/customizationBuilder.d.ts.map +1 -1
- package/esm/plugins/customizationApis/customizationBuilder.js +1 -0
- package/esm/plugins/customizationApis/customizationBuilder.js.map +1 -1
- package/esm/plugins/customizationApis/exportLayoutCustomizer.d.ts +13 -0
- package/esm/plugins/customizationApis/exportLayoutCustomizer.d.ts.map +1 -0
- package/esm/plugins/customizationApis/exportLayoutCustomizer.js +47 -0
- package/esm/plugins/customizationApis/exportLayoutCustomizer.js.map +1 -0
- package/esm/plugins/customizationApis/filterBarCustomizer.d.ts.map +1 -1
- package/esm/plugins/customizationApis/filterBarCustomizer.js +2 -2
- package/esm/plugins/customizationApis/filterBarCustomizer.js.map +1 -1
- package/esm/plugins/customizationApis/layoutCustomizer.d.ts +5 -1
- package/esm/plugins/customizationApis/layoutCustomizer.d.ts.map +1 -1
- package/esm/plugins/customizationApis/layoutCustomizer.js +57 -0
- package/esm/plugins/customizationApis/layoutCustomizer.js.map +1 -1
- package/esm/plugins/customizationApis/titleCustomizer.d.ts.map +1 -1
- package/esm/plugins/customizationApis/titleCustomizer.js +2 -2
- package/esm/plugins/customizationApis/titleCustomizer.js.map +1 -1
- package/esm/plugins/customizationApis/topBarCustomizer.d.ts.map +1 -1
- package/esm/plugins/customizationApis/topBarCustomizer.js +2 -2
- package/esm/plugins/customizationApis/topBarCustomizer.js.map +1 -1
- package/esm/plugins/customizationApis/types.d.ts +2 -1
- package/esm/plugins/customizationApis/types.d.ts.map +1 -1
- package/esm/plugins/customizationApis/types.js +1 -0
- package/esm/plugins/customizationApis/types.js.map +1 -1
- package/esm/plugins/customizer.d.ts +113 -0
- package/esm/plugins/customizer.d.ts.map +1 -1
- package/esm/plugins/index.d.ts +1 -1
- package/esm/plugins/index.d.ts.map +1 -1
- package/esm/presentation/alerting/DefaultAlertingDialog/DefaultAlertingDialog.js +3 -3
- package/esm/presentation/alerting/DefaultAlertingDialog/DefaultAlertingDialog.js.map +1 -1
- package/esm/presentation/componentDefinition/renderModeAware.d.ts.map +1 -1
- package/esm/presentation/componentDefinition/renderModeAware.js +5 -3
- package/esm/presentation/componentDefinition/renderModeAware.js.map +1 -1
- package/esm/presentation/dashboard/components/DashboardInner.d.ts.map +1 -1
- package/esm/presentation/dashboard/components/DashboardInner.js +11 -2
- package/esm/presentation/dashboard/components/DashboardInner.js.map +1 -1
- package/esm/presentation/dashboard/components/DashboardRenderer.d.ts.map +1 -1
- package/esm/presentation/dashboard/components/DashboardRenderer.js +6 -6
- package/esm/presentation/dashboard/components/DashboardRenderer.js.map +1 -1
- package/esm/presentation/dashboard/types.d.ts +42 -0
- package/esm/presentation/dashboard/types.d.ts.map +1 -1
- package/esm/presentation/dashboard/types.js +9 -1
- package/esm/presentation/dashboard/types.js.map +1 -1
- package/esm/presentation/dashboardContexts/DashboardCustomizationsContext.d.ts +3 -0
- package/esm/presentation/dashboardContexts/DashboardCustomizationsContext.d.ts.map +1 -1
- package/esm/presentation/dashboardContexts/DashboardCustomizationsContext.js +1 -1
- package/esm/presentation/dashboardContexts/DashboardCustomizationsContext.js.map +1 -1
- package/esm/presentation/dashboardContexts/index.d.ts +1 -0
- package/esm/presentation/dashboardContexts/index.d.ts.map +1 -1
- package/esm/presentation/dashboardContexts/index.js +2 -1
- package/esm/presentation/dashboardContexts/index.js.map +1 -1
- package/esm/presentation/dashboardContexts/useSlideData.d.ts +19 -0
- package/esm/presentation/dashboardContexts/useSlideData.d.ts.map +1 -0
- package/esm/presentation/dashboardContexts/useSlideData.js +39 -0
- package/esm/presentation/dashboardContexts/useSlideData.js.map +1 -0
- package/esm/presentation/export/index.d.ts +3 -0
- package/esm/presentation/export/index.d.ts.map +1 -0
- package/esm/presentation/export/index.js +4 -0
- package/esm/presentation/export/index.js.map +1 -0
- package/esm/presentation/export/types.d.ts +67 -0
- package/esm/presentation/export/types.d.ts.map +1 -0
- package/esm/presentation/export/types.js +3 -0
- package/esm/presentation/export/types.js.map +1 -0
- package/esm/presentation/export/useExportData.d.ts +15 -0
- package/esm/presentation/export/useExportData.d.ts.map +1 -0
- package/esm/presentation/export/useExportData.js +54 -0
- package/esm/presentation/export/useExportData.js.map +1 -0
- package/esm/presentation/filterBar/attributeFilter/DefaultDashboardAttributeFilter.d.ts +1 -1
- package/esm/presentation/filterBar/attributeFilter/DefaultDashboardAttributeFilter.d.ts.map +1 -1
- package/esm/presentation/filterBar/attributeFilter/DefaultDashboardAttributeFilter.js +8 -5
- package/esm/presentation/filterBar/attributeFilter/DefaultDashboardAttributeFilter.js.map +1 -1
- package/esm/presentation/filterBar/attributeFilter/dashboardDropdownBody/configuration/hooks/useAttributeDataSet.d.ts.map +1 -1
- package/esm/presentation/filterBar/attributeFilter/dashboardDropdownBody/configuration/hooks/useAttributeDataSet.js +8 -4
- package/esm/presentation/filterBar/attributeFilter/dashboardDropdownBody/configuration/hooks/useAttributeDataSet.js.map +1 -1
- package/esm/presentation/filterBar/filterBar/RenderModeAwareFilterBar.d.ts +6 -0
- package/esm/presentation/filterBar/filterBar/RenderModeAwareFilterBar.d.ts.map +1 -0
- package/esm/presentation/filterBar/filterBar/RenderModeAwareFilterBar.js +12 -0
- package/esm/presentation/filterBar/filterBar/RenderModeAwareFilterBar.js.map +1 -0
- package/esm/presentation/filterBar/filterBar/index.d.ts +1 -0
- package/esm/presentation/filterBar/filterBar/index.d.ts.map +1 -1
- package/esm/presentation/filterBar/filterBar/index.js +2 -1
- package/esm/presentation/filterBar/filterBar/index.js.map +1 -1
- package/esm/presentation/flexibleLayout/DashboardLayoutWidget.d.ts.map +1 -1
- package/esm/presentation/flexibleLayout/DashboardLayoutWidget.js +6 -3
- package/esm/presentation/flexibleLayout/DashboardLayoutWidget.js.map +1 -1
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayout.d.ts.map +1 -1
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayout.js +24 -11
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayout.js.map +1 -1
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutExportSectionHeaderRenderer.d.ts +4 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutExportSectionHeaderRenderer.d.ts.map +1 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutExportSectionHeaderRenderer.js +25 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutExportSectionHeaderRenderer.js.map +1 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutGridRow.d.ts.map +1 -1
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutGridRow.js +1 -1
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutGridRow.js.map +1 -1
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutGridRowEdit.d.ts.map +1 -1
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutGridRowEdit.js +1 -1
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutGridRowEdit.js.map +1 -1
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutItem.d.ts +2 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutItem.d.ts.map +1 -1
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutItem.js.map +1 -1
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutSection.d.ts.map +1 -1
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutSection.js +16 -2
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutSection.js.map +1 -1
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutSectionHeaderDescription.d.ts +2 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutSectionHeaderDescription.d.ts.map +1 -1
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutSectionHeaderDescription.js +3 -3
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutSectionHeaderDescription.js.map +1 -1
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutSectionRenderer.d.ts.map +1 -1
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutSectionRenderer.js +3 -3
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutSectionRenderer.js.map +1 -1
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutViewSectionHeaderRenderer.d.ts +2 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutViewSectionHeaderRenderer.d.ts.map +1 -1
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutViewSectionHeaderRenderer.js +3 -3
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutViewSectionHeaderRenderer.js.map +1 -1
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/ExportableDashboardLayoutSectionRenderer.d.ts +3 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/ExportableDashboardLayoutSectionRenderer.d.ts.map +1 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/ExportableDashboardLayoutSectionRenderer.js +13 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/ExportableDashboardLayoutSectionRenderer.js.map +1 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/GridLayoutElement.d.ts +9 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/GridLayoutElement.d.ts.map +1 -1
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/GridLayoutElement.js +7 -2
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/GridLayoutElement.js.map +1 -1
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/RenderModeAwareDashboardLayoutSectionHeaderRenderer.d.ts.map +1 -1
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/RenderModeAwareDashboardLayoutSectionHeaderRenderer.js +3 -1
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/RenderModeAwareDashboardLayoutSectionHeaderRenderer.js.map +1 -1
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/RenderModeAwareDashboardLayoutSectionRenderer.d.ts.map +1 -1
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/RenderModeAwareDashboardLayoutSectionRenderer.js +3 -1
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/RenderModeAwareDashboardLayoutSectionRenderer.js.map +1 -1
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/interfaces.d.ts +27 -1
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/interfaces.d.ts.map +1 -1
- package/esm/presentation/flexibleLayout/DefaultFlexibleDashboardLayout.d.ts.map +1 -1
- package/esm/presentation/flexibleLayout/DefaultFlexibleDashboardLayout.js +5 -2
- package/esm/presentation/flexibleLayout/DefaultFlexibleDashboardLayout.js.map +1 -1
- package/esm/presentation/flexibleLayout/dragAndDrop/draggableWidget/RowEndHotspot.d.ts.map +1 -1
- package/esm/presentation/flexibleLayout/dragAndDrop/draggableWidget/RowEndHotspot.js +0 -1
- package/esm/presentation/flexibleLayout/dragAndDrop/draggableWidget/RowEndHotspot.js.map +1 -1
- package/esm/presentation/index.d.ts +1 -0
- package/esm/presentation/index.d.ts.map +1 -1
- package/esm/presentation/index.js +2 -1
- package/esm/presentation/index.js.map +1 -1
- package/esm/presentation/layout/DashboardLayoutWidget.d.ts.map +1 -1
- package/esm/presentation/layout/DashboardLayoutWidget.js +6 -3
- package/esm/presentation/layout/DashboardLayoutWidget.js.map +1 -1
- package/esm/presentation/layout/DefaultDashboardLayout.d.ts.map +1 -1
- package/esm/presentation/layout/DefaultDashboardLayout.js +6 -3
- package/esm/presentation/layout/DefaultDashboardLayout.js.map +1 -1
- package/esm/presentation/layout/DefaultDashboardLayoutRenderer/DashboardLayout.d.ts.map +1 -1
- package/esm/presentation/layout/DefaultDashboardLayoutRenderer/DashboardLayout.js +16 -6
- package/esm/presentation/layout/DefaultDashboardLayoutRenderer/DashboardLayout.js.map +1 -1
- package/esm/presentation/layout/DefaultDashboardLayoutRenderer/DashboardLayoutExportSectionHeaderRenderer.d.ts +4 -0
- package/esm/presentation/layout/DefaultDashboardLayoutRenderer/DashboardLayoutExportSectionHeaderRenderer.d.ts.map +1 -0
- package/esm/presentation/layout/DefaultDashboardLayoutRenderer/DashboardLayoutExportSectionHeaderRenderer.js +12 -0
- package/esm/presentation/layout/DefaultDashboardLayoutRenderer/DashboardLayoutExportSectionHeaderRenderer.js.map +1 -0
- package/esm/presentation/layout/DefaultDashboardLayoutRenderer/DashboardLayoutSection.d.ts.map +1 -1
- package/esm/presentation/layout/DefaultDashboardLayoutRenderer/DashboardLayoutSection.js +4 -1
- package/esm/presentation/layout/DefaultDashboardLayoutRenderer/DashboardLayoutSection.js.map +1 -1
- package/esm/presentation/layout/DefaultDashboardLayoutRenderer/DashboardLayoutSectionHeader.d.ts +2 -0
- package/esm/presentation/layout/DefaultDashboardLayoutRenderer/DashboardLayoutSectionHeader.d.ts.map +1 -1
- package/esm/presentation/layout/DefaultDashboardLayoutRenderer/DashboardLayoutSectionHeader.js +4 -4
- package/esm/presentation/layout/DefaultDashboardLayoutRenderer/DashboardLayoutSectionHeader.js.map +1 -1
- package/esm/presentation/layout/DefaultDashboardLayoutRenderer/DashboardLayoutSectionHeaderDescription.d.ts +2 -0
- package/esm/presentation/layout/DefaultDashboardLayoutRenderer/DashboardLayoutSectionHeaderDescription.d.ts.map +1 -1
- package/esm/presentation/layout/DefaultDashboardLayoutRenderer/DashboardLayoutSectionHeaderDescription.js +3 -3
- package/esm/presentation/layout/DefaultDashboardLayoutRenderer/DashboardLayoutSectionHeaderDescription.js.map +1 -1
- package/esm/presentation/layout/DefaultDashboardLayoutRenderer/ExportableDashboardLayoutSectionRenderer.d.ts +3 -0
- package/esm/presentation/layout/DefaultDashboardLayoutRenderer/ExportableDashboardLayoutSectionRenderer.d.ts.map +1 -0
- package/esm/presentation/layout/DefaultDashboardLayoutRenderer/ExportableDashboardLayoutSectionRenderer.js +18 -0
- package/esm/presentation/layout/DefaultDashboardLayoutRenderer/ExportableDashboardLayoutSectionRenderer.js.map +1 -0
- package/esm/presentation/layout/DefaultDashboardLayoutRenderer/RenderModeAwareDashboardLayoutSectionHeaderRenderer.d.ts.map +1 -1
- package/esm/presentation/layout/DefaultDashboardLayoutRenderer/RenderModeAwareDashboardLayoutSectionHeaderRenderer.js +3 -1
- package/esm/presentation/layout/DefaultDashboardLayoutRenderer/RenderModeAwareDashboardLayoutSectionHeaderRenderer.js.map +1 -1
- package/esm/presentation/layout/DefaultDashboardLayoutRenderer/RenderModeAwareDashboardLayoutSectionRenderer.d.ts.map +1 -1
- package/esm/presentation/layout/DefaultDashboardLayoutRenderer/RenderModeAwareDashboardLayoutSectionRenderer.js +3 -1
- package/esm/presentation/layout/DefaultDashboardLayoutRenderer/RenderModeAwareDashboardLayoutSectionRenderer.js.map +1 -1
- package/esm/presentation/layout/DefaultDashboardLayoutRenderer/interfaces.d.ts +18 -0
- package/esm/presentation/layout/DefaultDashboardLayoutRenderer/interfaces.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/en-US.json +16 -1
- package/esm/presentation/presentationComponents/DashboardItems/DashboardItem.d.ts +3 -0
- package/esm/presentation/presentationComponents/DashboardItems/DashboardItem.d.ts.map +1 -1
- package/esm/presentation/presentationComponents/DashboardItems/DashboardItem.js +2 -2
- package/esm/presentation/presentationComponents/DashboardItems/DashboardItem.js.map +1 -1
- package/esm/presentation/presentationComponents/DashboardItems/DashboardItemBase.d.ts +4 -0
- package/esm/presentation/presentationComponents/DashboardItems/DashboardItemBase.d.ts.map +1 -1
- package/esm/presentation/presentationComponents/DashboardItems/DashboardItemBase.js +3 -3
- package/esm/presentation/presentationComponents/DashboardItems/DashboardItemBase.js.map +1 -1
- package/esm/presentation/presentationComponents/DashboardItems/DashboardItemContent.d.ts +1 -0
- package/esm/presentation/presentationComponents/DashboardItems/DashboardItemContent.d.ts.map +1 -1
- package/esm/presentation/presentationComponents/DashboardItems/DashboardItemContent.js +3 -2
- package/esm/presentation/presentationComponents/DashboardItems/DashboardItemContent.js.map +1 -1
- package/esm/presentation/presentationComponents/DashboardItems/DashboardItemHeadline.d.ts +2 -0
- package/esm/presentation/presentationComponents/DashboardItems/DashboardItemHeadline.d.ts.map +1 -1
- package/esm/presentation/presentationComponents/DashboardItems/DashboardItemHeadline.js +2 -2
- package/esm/presentation/presentationComponents/DashboardItems/DashboardItemHeadline.js.map +1 -1
- package/esm/presentation/presentationComponents/DashboardItems/DashboardItemHeadlineContainer.d.ts +2 -0
- package/esm/presentation/presentationComponents/DashboardItems/DashboardItemHeadlineContainer.d.ts.map +1 -1
- package/esm/presentation/presentationComponents/DashboardItems/DashboardItemHeadlineContainer.js +5 -5
- package/esm/presentation/presentationComponents/DashboardItems/DashboardItemHeadlineContainer.js.map +1 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/DefaultScheduledEmailDialog.d.ts.map +1 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/DefaultScheduledEmailDialog.js +2 -2
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/DefaultScheduledEmailDialog.js.map +1 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/Attachments/AttachmentItems.d.ts +2 -0
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/Attachments/AttachmentItems.d.ts.map +1 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/Attachments/AttachmentItems.js +8 -8
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/Attachments/AttachmentItems.js.map +1 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/Attachments/DashboardAttachments.d.ts.map +1 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/Attachments/DashboardAttachments.js +4 -3
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/Attachments/DashboardAttachments.js.map +1 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/Attachments/WidgetAttachments.d.ts.map +1 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/Attachments/WidgetAttachments.js +4 -3
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/Attachments/WidgetAttachments.js.map +1 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/DestinationSelect/DestinationSelect.d.ts.map +1 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/DestinationSelect/DestinationSelect.js +4 -3
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/DestinationSelect/DestinationSelect.js.map +1 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/Input.d.ts +1 -0
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/Input.d.ts.map +1 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/Input.js +4 -4
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/Input.js.map +1 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/RecipientsSelect/RecipientsSelectRenderer.d.ts.map +1 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/RecipientsSelect/RecipientsSelectRenderer.js +6 -2
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/RecipientsSelect/RecipientsSelectRenderer.js.map +1 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/Textarea.d.ts +1 -0
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/Textarea.d.ts.map +1 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/Textarea.js +4 -4
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/Textarea.js.map +1 -1
- package/esm/presentation/topBar/title/RenderModeAwareTitle.d.ts +2 -2
- package/esm/presentation/topBar/title/RenderModeAwareTitle.d.ts.map +1 -1
- package/esm/presentation/topBar/title/RenderModeAwareTitle.js +3 -1
- package/esm/presentation/topBar/title/RenderModeAwareTitle.js.map +1 -1
- package/esm/presentation/topBar/topBar/RenderModeAwareTopBar.d.ts +6 -0
- package/esm/presentation/topBar/topBar/RenderModeAwareTopBar.d.ts.map +1 -0
- package/esm/presentation/topBar/topBar/RenderModeAwareTopBar.js +12 -0
- package/esm/presentation/topBar/topBar/RenderModeAwareTopBar.js.map +1 -0
- package/esm/presentation/topBar/topBar/index.d.ts +1 -0
- package/esm/presentation/topBar/topBar/index.d.ts.map +1 -1
- package/esm/presentation/topBar/topBar/index.js +2 -1
- package/esm/presentation/topBar/topBar/index.js.map +1 -1
- package/esm/presentation/widget/common/useWidgetHighlighting.d.ts.map +1 -1
- package/esm/presentation/widget/common/useWidgetHighlighting.js +5 -2
- package/esm/presentation/widget/common/useWidgetHighlighting.js.map +1 -1
- package/esm/presentation/widget/description/ExportModeInsightWidgetDescription.d.ts +9 -0
- package/esm/presentation/widget/description/ExportModeInsightWidgetDescription.d.ts.map +1 -0
- package/esm/presentation/widget/description/ExportModeInsightWidgetDescription.js +19 -0
- package/esm/presentation/widget/description/ExportModeInsightWidgetDescription.js.map +1 -0
- package/esm/presentation/widget/description/InsightWidgetDescriptionComponentProvider.d.ts +12 -0
- package/esm/presentation/widget/description/InsightWidgetDescriptionComponentProvider.d.ts.map +1 -0
- package/esm/presentation/widget/description/InsightWidgetDescriptionComponentProvider.js +15 -0
- package/esm/presentation/widget/description/InsightWidgetDescriptionComponentProvider.js.map +1 -0
- package/esm/presentation/widget/description/InsightWidgetDescriptionTrigger.d.ts.map +1 -1
- package/esm/presentation/widget/description/InsightWidgetDescriptionTrigger.js +8 -12
- package/esm/presentation/widget/description/InsightWidgetDescriptionTrigger.js.map +1 -1
- package/esm/presentation/widget/description/types.d.ts +2 -0
- package/esm/presentation/widget/description/types.d.ts.map +1 -1
- package/esm/presentation/widget/description/useInsightWidgetDescription.d.ts +7 -0
- package/esm/presentation/widget/description/useInsightWidgetDescription.d.ts.map +1 -0
- package/esm/presentation/widget/description/useInsightWidgetDescription.js +21 -0
- package/esm/presentation/widget/description/useInsightWidgetDescription.js.map +1 -0
- package/esm/presentation/widget/insight/DefaultDashboardInsight.d.ts.map +1 -1
- package/esm/presentation/widget/insight/DefaultDashboardInsight.js +3 -1
- package/esm/presentation/widget/insight/DefaultDashboardInsight.js.map +1 -1
- package/esm/presentation/widget/insight/ExportModeDashboardInsight/ExportModeDashboardInsight.d.ts +4 -0
- package/esm/presentation/widget/insight/ExportModeDashboardInsight/ExportModeDashboardInsight.d.ts.map +1 -0
- package/esm/presentation/widget/insight/ExportModeDashboardInsight/ExportModeDashboardInsight.js +7 -0
- package/esm/presentation/widget/insight/ExportModeDashboardInsight/ExportModeDashboardInsight.js.map +1 -0
- package/esm/presentation/widget/insight/ExportModeDashboardInsight/index.d.ts +2 -0
- package/esm/presentation/widget/insight/ExportModeDashboardInsight/index.d.ts.map +1 -0
- package/esm/presentation/widget/insight/ExportModeDashboardInsight/index.js +3 -0
- package/esm/presentation/widget/insight/ExportModeDashboardInsight/index.js.map +1 -0
- package/esm/presentation/widget/insight/ViewModeDashboardInsight/Insight/DashboardInsight.d.ts.map +1 -1
- package/esm/presentation/widget/insight/ViewModeDashboardInsight/Insight/DashboardInsight.js +35 -16
- package/esm/presentation/widget/insight/ViewModeDashboardInsight/Insight/DashboardInsight.js.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertAttributeSelect.d.ts.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertAttributeSelect.js +3 -2
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertAttributeSelect.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 +4 -2
- 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 -2
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertDestinationSelect.js.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertMeasureSelect.d.ts +2 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertMeasureSelect.d.ts.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertMeasureSelect.js +3 -3
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertMeasureSelect.js.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertTriggerModeSelect.d.ts +2 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertTriggerModeSelect.d.ts.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertTriggerModeSelect.js +3 -3
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertTriggerModeSelect.js.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/CreateAlert.d.ts +3 -2
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/CreateAlert.d.ts.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/CreateAlert.js +3 -3
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/CreateAlert.js.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/EditAlert.d.ts +3 -2
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/EditAlert.d.ts.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/EditAlert.js +6 -5
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/EditAlert.js.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/EditAlertConfiguration.d.ts.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/EditAlertConfiguration.js +4 -4
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/EditAlertConfiguration.js.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useEditAlert.d.ts +4 -3
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useEditAlert.d.ts.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useEditAlert.js +7 -7
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useEditAlert.js.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useInsightAlerting.d.ts +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useInsightAlerting.d.ts.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useInsightAlerting.js +8 -17
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useInsightAlerting.js.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/utils/convertors.d.ts +3 -2
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/utils/convertors.d.ts.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/utils/convertors.js +2 -2
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/utils/convertors.js.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/utils/getters.d.ts +12 -2
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/utils/getters.d.ts.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/utils/getters.js +26 -7
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/utils/getters.js.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/utils/transformation.d.ts +6 -5
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/utils/transformation.d.ts.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/utils/transformation.js +43 -18
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/utils/transformation.js.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlerts.js +4 -4
- package/esm/presentation/widget/insight/configuration/InsightAlerts.js.map +1 -1
- package/esm/presentation/widget/insight/types.d.ts +5 -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/insightMenu/DefaultDashboardInsightMenu/DashboardInsightMenu/DashboardInsightMenuItemButton.js +2 -2
- package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/DashboardInsightMenu/DashboardInsightMenuItemButton.js.map +1 -1
- package/esm/presentation/widget/richText/DefaultDashboardRichText.d.ts.map +1 -1
- package/esm/presentation/widget/richText/DefaultDashboardRichText.js +3 -1
- package/esm/presentation/widget/richText/DefaultDashboardRichText.js.map +1 -1
- package/esm/presentation/widget/richText/ExportModeDashboardRichText.d.ts +4 -0
- package/esm/presentation/widget/richText/ExportModeDashboardRichText.d.ts.map +1 -0
- package/esm/presentation/widget/richText/ExportModeDashboardRichText.js +10 -0
- package/esm/presentation/widget/richText/ExportModeDashboardRichText.js.map +1 -0
- package/esm/presentation/widget/richText/types.d.ts +7 -0
- package/esm/presentation/widget/richText/types.d.ts.map +1 -1
- package/esm/presentation/widget/visualizationSwitcher/AllVisualizationsDashInsights.d.ts +2 -0
- package/esm/presentation/widget/visualizationSwitcher/AllVisualizationsDashInsights.d.ts.map +1 -1
- package/esm/presentation/widget/visualizationSwitcher/AllVisualizationsDashInsights.js +3 -3
- package/esm/presentation/widget/visualizationSwitcher/AllVisualizationsDashInsights.js.map +1 -1
- package/esm/presentation/widget/visualizationSwitcher/DefaultDashboardVisualizationSwitcher.d.ts.map +1 -1
- package/esm/presentation/widget/visualizationSwitcher/DefaultDashboardVisualizationSwitcher.js +3 -1
- package/esm/presentation/widget/visualizationSwitcher/DefaultDashboardVisualizationSwitcher.js.map +1 -1
- package/esm/presentation/widget/visualizationSwitcher/ExportModeDashboardVisualizationSwitcher.d.ts +7 -0
- package/esm/presentation/widget/visualizationSwitcher/ExportModeDashboardVisualizationSwitcher.d.ts.map +1 -0
- package/esm/presentation/widget/visualizationSwitcher/ExportModeDashboardVisualizationSwitcher.js +10 -0
- package/esm/presentation/widget/visualizationSwitcher/ExportModeDashboardVisualizationSwitcher.js.map +1 -0
- package/esm/presentation/widget/visualizationSwitcher/ViewModeDashboardVisualizationSwitcher.d.ts.map +1 -1
- package/esm/presentation/widget/visualizationSwitcher/ViewModeDashboardVisualizationSwitcher.js +12 -7
- package/esm/presentation/widget/visualizationSwitcher/ViewModeDashboardVisualizationSwitcher.js.map +1 -1
- package/esm/presentation/widget/visualizationSwitcher/types.d.ts +7 -0
- package/esm/presentation/widget/visualizationSwitcher/types.d.ts.map +1 -1
- package/esm/presentation/widget/visualizationSwitcher/types.js +1 -1
- package/esm/presentation/widget/visualizationSwitcher/types.js.map +1 -1
- package/esm/presentation/widget/widget/DefaultDashboardWidget.d.ts.map +1 -1
- package/esm/presentation/widget/widget/DefaultDashboardWidget.js +6 -6
- package/esm/presentation/widget/widget/DefaultDashboardWidget.js.map +1 -1
- package/esm/presentation/widget/widget/InsightWidget/DefaultDashboardInsightWidget.d.ts.map +1 -1
- package/esm/presentation/widget/widget/InsightWidget/DefaultDashboardInsightWidget.js +12 -6
- package/esm/presentation/widget/widget/InsightWidget/DefaultDashboardInsightWidget.js.map +1 -1
- package/esm/presentation/widget/widget/InsightWidget/ExportableDashboardInsightWidget.d.ts +10 -0
- package/esm/presentation/widget/widget/InsightWidget/ExportableDashboardInsightWidget.d.ts.map +1 -0
- package/esm/presentation/widget/widget/InsightWidget/ExportableDashboardInsightWidget.js +16 -0
- package/esm/presentation/widget/widget/InsightWidget/ExportableDashboardInsightWidget.js.map +1 -0
- package/esm/presentation/widget/widget/InsightWidget/RenderModeAwareDashboardInsightWidget.d.ts.map +1 -1
- package/esm/presentation/widget/widget/InsightWidget/RenderModeAwareDashboardInsightWidget.js +3 -1
- package/esm/presentation/widget/widget/InsightWidget/RenderModeAwareDashboardInsightWidget.js.map +1 -1
- package/esm/presentation/widget/widget/InsightWidget/types.d.ts +2 -0
- package/esm/presentation/widget/widget/InsightWidget/types.d.ts.map +1 -1
- package/esm/presentation/widget/widget/RichTextWidget/ExportableDashboardRichTextWidget.d.ts +7 -0
- package/esm/presentation/widget/widget/RichTextWidget/ExportableDashboardRichTextWidget.d.ts.map +1 -0
- package/esm/presentation/widget/widget/RichTextWidget/ExportableDashboardRichTextWidget.js +13 -0
- package/esm/presentation/widget/widget/RichTextWidget/ExportableDashboardRichTextWidget.js.map +1 -0
- package/esm/presentation/widget/widget/RichTextWidget/RenderModeAwareDashboardRichTextWidget.d.ts.map +1 -1
- package/esm/presentation/widget/widget/RichTextWidget/RenderModeAwareDashboardRichTextWidget.js +3 -1
- package/esm/presentation/widget/widget/RichTextWidget/RenderModeAwareDashboardRichTextWidget.js.map +1 -1
- package/esm/presentation/widget/widget/RichTextWidget/types.d.ts +2 -0
- package/esm/presentation/widget/widget/RichTextWidget/types.d.ts.map +1 -1
- package/esm/presentation/widget/widget/VisualizationSwitcherWidget/ExportableDashboardVisualizationSwitcherWidget.d.ts +7 -0
- package/esm/presentation/widget/widget/VisualizationSwitcherWidget/ExportableDashboardVisualizationSwitcherWidget.d.ts.map +1 -0
- package/esm/presentation/widget/widget/VisualizationSwitcherWidget/ExportableDashboardVisualizationSwitcherWidget.js +13 -0
- package/esm/presentation/widget/widget/VisualizationSwitcherWidget/ExportableDashboardVisualizationSwitcherWidget.js.map +1 -0
- package/esm/presentation/widget/widget/VisualizationSwitcherWidget/RenderModeAwareDashboardVisualizationSwitcherWidget.d.ts.map +1 -1
- package/esm/presentation/widget/widget/VisualizationSwitcherWidget/RenderModeAwareDashboardVisualizationSwitcherWidget.js +3 -1
- package/esm/presentation/widget/widget/VisualizationSwitcherWidget/RenderModeAwareDashboardVisualizationSwitcherWidget.js.map +1 -1
- package/esm/presentation/widget/widget/VisualizationSwitcherWidget/VisualizationSwitcherNavigationHeader.d.ts +2 -0
- package/esm/presentation/widget/widget/VisualizationSwitcherWidget/VisualizationSwitcherNavigationHeader.d.ts.map +1 -1
- package/esm/presentation/widget/widget/VisualizationSwitcherWidget/VisualizationSwitcherNavigationHeader.js +5 -5
- package/esm/presentation/widget/widget/VisualizationSwitcherWidget/VisualizationSwitcherNavigationHeader.js.map +1 -1
- package/esm/presentation/widget/widget/VisualizationSwitcherWidget/types.d.ts +2 -0
- package/esm/presentation/widget/widget/VisualizationSwitcherWidget/types.d.ts.map +1 -1
- package/esm/presentation/widget/widget/VisualizationSwitcherWidget/types.js +1 -1
- package/esm/presentation/widget/widget/VisualizationSwitcherWidget/types.js.map +1 -1
- package/esm/presentation/widget/widget/types.d.ts +7 -0
- package/esm/presentation/widget/widget/types.d.ts.map +1 -1
- package/esm/sdk-ui-dashboard.d.ts +386 -6
- package/esm/types.d.ts +1 -1
- package/esm/types.d.ts.map +1 -1
- package/esm/types.js +1 -1
- package/package.json +15 -15
- package/styles/css/dashboard.css +5 -2
- package/styles/css/dashboard.css.map +1 -1
- package/styles/css/kpi_alert_dialog.css.map +1 -1
- package/styles/css/layout.css +1 -1
- package/styles/css/layout.css.map +1 -1
- package/styles/css/main.css +21 -3
- package/styles/css/main.css.map +1 -1
- package/styles/css/remove.css +8 -0
- package/styles/css/remove.css.map +1 -0
- package/styles/css/resizing.css.map +1 -1
- package/styles/css/topBar.css.map +1 -1
- package/styles/scss/_zIndexes.scss +2 -2
- package/styles/scss/dashboard.scss +5 -1
- package/styles/scss/main.scss +2 -1
- package/styles/scss/remove.scss +9 -0
package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/resolveDashboardConfig.d.ts
CHANGED
|
@@ -7,4 +7,14 @@ import { DashboardContext, ResolvedDashboardConfig } from "../../../types/common
|
|
|
7
7
|
* backend queries and post-processing is done.
|
|
8
8
|
*/
|
|
9
9
|
export declare function resolveDashboardConfig(ctx: DashboardContext, cmd: InitializeDashboard): SagaIterator<ResolvedDashboardConfig>;
|
|
10
|
+
/**
|
|
11
|
+
* Resolves dashboard config
|
|
12
|
+
*/
|
|
13
|
+
export declare function resolveDashboardConfigAndFeatureFlagDependentCalls(ctx: DashboardContext, cmd: InitializeDashboard): SagaIterator<{
|
|
14
|
+
resolvedConfig: ResolvedDashboardConfig;
|
|
15
|
+
additionalData: {
|
|
16
|
+
notificationChannelsCount: number;
|
|
17
|
+
workspaceAutomationsCount: number;
|
|
18
|
+
};
|
|
19
|
+
}>;
|
|
10
20
|
//# sourceMappingURL=resolveDashboardConfig.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resolveDashboardConfig.d.ts","sourceRoot":"","sources":["../../../../../src/model/commandHandlers/dashboard/initializeDashboardHandler/resolveDashboardConfig.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAc1C,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAEjE,OAAO,EAEH,gBAAgB,EAEhB,uBAAuB,EAC1B,MAAM,+BAA+B,CAAC;
|
|
1
|
+
{"version":3,"file":"resolveDashboardConfig.d.ts","sourceRoot":"","sources":["../../../../../src/model/commandHandlers/dashboard/initializeDashboardHandler/resolveDashboardConfig.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAc1C,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAEjE,OAAO,EAEH,gBAAgB,EAEhB,uBAAuB,EAC1B,MAAM,+BAA+B,CAAC;AA0HvC;;;;GAIG;AACH,wBAAiB,sBAAsB,CACnC,GAAG,EAAE,gBAAgB,EACrB,GAAG,EAAE,mBAAmB,GACzB,YAAY,CAAC,uBAAuB,CAAC,CA4DvC;AAwBD;;GAEG;AACH,wBAAiB,kDAAkD,CAC/D,GAAG,EAAE,gBAAgB,EACrB,GAAG,EAAE,mBAAmB,GACzB,YAAY,CAAC;IACZ,cAAc,EAAE,uBAAuB,CAAC;IACxC,cAAc,EAAE;QACZ,yBAAyB,EAAE,MAAM,CAAC;QAClC,yBAAyB,EAAE,MAAM,CAAC;KACrC,CAAC;CACL,CAAC,CAQD"}
|
package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/resolveDashboardConfig.js
CHANGED
|
@@ -8,6 +8,7 @@ import { dateFilterConfigActions } from "../../../store/dateFilterConfig/index.j
|
|
|
8
8
|
import { isResolvedConfig, } from "../../../types/commonTypes.js";
|
|
9
9
|
import { sanitizeUnfinishedFeatureSettings } from "./sanitizeUnfinishedFeatureSettings.js";
|
|
10
10
|
import { onDateFilterConfigValidationError } from "./onDateFilterConfigValidationError.js";
|
|
11
|
+
import { loadAutomationsData } from "../common/loadAutomationsData.js";
|
|
11
12
|
function loadDateFilterConfig(ctx) {
|
|
12
13
|
const { backend, workspace } = ctx;
|
|
13
14
|
return backend
|
|
@@ -25,6 +26,7 @@ function loadSettingsForCurrentUser(ctx) {
|
|
|
25
26
|
const { backend, workspace } = ctx;
|
|
26
27
|
return backend.workspace(workspace).settings().getSettingsForCurrentUser();
|
|
27
28
|
}
|
|
29
|
+
///
|
|
28
30
|
async function loadCustomDateFilterConfig(ctx) {
|
|
29
31
|
const { backend, workspace } = ctx;
|
|
30
32
|
const customDateFilterConfig = await backend
|
|
@@ -44,9 +46,12 @@ function loadColorPalette(ctx) {
|
|
|
44
46
|
return backend.workspace(workspace).styling().getColorPalette();
|
|
45
47
|
}
|
|
46
48
|
function* resolveDateFilterConfig(ctx, config, cmd) {
|
|
47
|
-
if (config.dateFilterConfig
|
|
49
|
+
if (config.dateFilterConfig) {
|
|
48
50
|
return config.dateFilterConfig;
|
|
49
51
|
}
|
|
52
|
+
else if (config?.settings?.dateFilterConfig) {
|
|
53
|
+
return config.settings.dateFilterConfig;
|
|
54
|
+
}
|
|
50
55
|
const customDateFilterConfig = yield call(loadCustomDateFilterConfig, ctx);
|
|
51
56
|
if (customDateFilterConfig) {
|
|
52
57
|
return customDateFilterConfig;
|
|
@@ -153,4 +158,15 @@ function applyConfigDefaults(config) {
|
|
|
153
158
|
widgetsOverlay: config.widgetsOverlay ?? {},
|
|
154
159
|
};
|
|
155
160
|
}
|
|
161
|
+
/**
|
|
162
|
+
* Resolves dashboard config
|
|
163
|
+
*/
|
|
164
|
+
export function* resolveDashboardConfigAndFeatureFlagDependentCalls(ctx, cmd) {
|
|
165
|
+
const resolvedConfig = yield call(resolveDashboardConfig, ctx, cmd);
|
|
166
|
+
const additionalData = yield call(loadAutomationsData, ctx, resolvedConfig.settings);
|
|
167
|
+
return {
|
|
168
|
+
resolvedConfig,
|
|
169
|
+
additionalData,
|
|
170
|
+
};
|
|
171
|
+
}
|
|
156
172
|
//# sourceMappingURL=resolveDashboardConfig.js.map
|
package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/resolveDashboardConfig.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resolveDashboardConfig.js","sourceRoot":"","sources":["../../../../../src/model/commandHandlers/dashboard/initializeDashboardHandler/resolveDashboardConfig.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,QAAQ,MAAM,oBAAoB,CAAC;AAE1C,OAAO,EAAW,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAG1D,OAAO,EAAE,uBAAuB,EAAE,MAAM,wDAAwD,CAAC;AACjG,OAAO,EACH,iBAAiB,EACjB,wBAAwB,EACxB,wBAAwB,GAC3B,MAAM,qDAAqD,CAAC;AAC7D,OAAO,EAAE,0BAA0B,EAAE,MAAM,6CAA6C,CAAC;AAEzF,OAAO,EAAE,uBAAuB,EAAE,MAAM,0CAA0C,CAAC;AACnF,OAAO,EAGH,gBAAgB,GAEnB,MAAM,+BAA+B,CAAC;AAEvC,OAAO,EAAE,iCAAiC,EAAE,MAAM,wCAAwC,CAAC;AAC3F,OAAO,EAAE,iCAAiC,EAAE,MAAM,wCAAwC,CAAC;
|
|
1
|
+
{"version":3,"file":"resolveDashboardConfig.js","sourceRoot":"","sources":["../../../../../src/model/commandHandlers/dashboard/initializeDashboardHandler/resolveDashboardConfig.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,QAAQ,MAAM,oBAAoB,CAAC;AAE1C,OAAO,EAAW,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAG1D,OAAO,EAAE,uBAAuB,EAAE,MAAM,wDAAwD,CAAC;AACjG,OAAO,EACH,iBAAiB,EACjB,wBAAwB,EACxB,wBAAwB,GAC3B,MAAM,qDAAqD,CAAC;AAC7D,OAAO,EAAE,0BAA0B,EAAE,MAAM,6CAA6C,CAAC;AAEzF,OAAO,EAAE,uBAAuB,EAAE,MAAM,0CAA0C,CAAC;AACnF,OAAO,EAGH,gBAAgB,GAEnB,MAAM,+BAA+B,CAAC;AAEvC,OAAO,EAAE,iCAAiC,EAAE,MAAM,wCAAwC,CAAC;AAC3F,OAAO,EAAE,iCAAiC,EAAE,MAAM,wCAAwC,CAAC;AAC3F,OAAO,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAC;AAEvE,SAAS,oBAAoB,CAAC,GAAqB;IAC/C,MAAM,EAAE,OAAO,EAAE,SAAS,EAAE,GAAG,GAAG,CAAC;IAEnC,OAAO,OAAO;SACT,SAAS,CAAC,SAAS,CAAC;SACpB,iBA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MAAM,CAAC,QAAQ,IAAI,KAAK;QAClC,cAAc,EAAE,MAAM,CAAC,cAAc,IAAI,KAAK;QAC9C,oBAAoB,EAAE,MAAM,CAAC,oBAAoB,IAAI,KAAK;QAC1D,yCAAyC,EAAE,MAAM,CAAC,yCAAyC,IAAI,KAAK;QACpG,yBAAyB,EAAE,MAAM,CAAC,yBAAyB,IAAI,EAAE;QACjE,uBAAuB,EAAE,MAAM,CAAC,uBAAuB,IAAI,KAAK;QAChE,yBAAyB,EAAE,MAAM,CAAC,yBAAyB,IAAI,KAAK;QACpE,iBAAiB,EAAE,MAAM,CAAC,iBAAiB,IAAI,MAAM;QACrD,mBAAmB,EAAE,MAAM,CAAC,mBAAmB,IAAI,KAAK;QACxD,eAAe,EAAE,MAAM,CAAC,eAAe,IAAI,KAAK;QAChD,qBAAqB,EAAE,MAAM,CAAC,qBAAqB,IAAI,KAAK;QAC5D,sBAAsB,EAAE,MAAM,CAAC,sBAAsB,IAAI,KAAK;QAC9D,cAAc,EAAE,MAAM,CAAC,cAAc,IAAI,EAAE;KAC9C,CAAC;AACN,CAAC;AAED;;GAEG;AACH,MAAM,SAAS,CAAC,CAAC,kDAAkD,CAC/D,GAAqB,EACrB,GAAwB;IAQxB,MAAM,cAAc,GAAG,MAAM,IAAI,CAAC,sBAAsB,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC;IACpE,MAAM,cAAc,GAAG,MAAM,IAAI,CAAC,mBAAmB,EAAE,GAAG,EAAE,cAAc,CAAC,QAAQ,CAAC,CAAC;IAErF,OAAO;QACH,cAAc;QACd,cAAc;KACjB,CAAC;AACN,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"changeAttributeFilterSelectionHandler.d.ts","sourceRoot":"","sources":["../../../../../src/model/commandHandlers/filterContext/attributeFilter/changeAttributeFilterSelectionHandler.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAK1C,OAAO,EAAE,8BAA8B,EAAE,MAAM,8BAA8B,CAAC;AAE9E,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;
|
|
1
|
+
{"version":3,"file":"changeAttributeFilterSelectionHandler.d.ts","sourceRoot":"","sources":["../../../../../src/model/commandHandlers/filterContext/attributeFilter/changeAttributeFilterSelectionHandler.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAK1C,OAAO,EAAE,8BAA8B,EAAE,MAAM,8BAA8B,CAAC;AAE9E,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAYjE,wBAAiB,qCAAqC,CAClD,GAAG,EAAE,gBAAgB,EACrB,GAAG,EAAE,8BAA8B,GACpC,YAAY,CAAC,IAAI,CAAC,CAsDpB"}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
// (C) 2021 GoodData Corporation
|
|
1
|
+
// (C) 2021-2025 GoodData Corporation
|
|
2
2
|
import { all, call, put, select } from "redux-saga/effects";
|
|
3
3
|
import { invariant } from "ts-invariant";
|
|
4
4
|
import { invalidArgumentsProvided } from "../../../events/general.js";
|
|
5
5
|
import { attributeFilterSelectionChanged } from "../../../events/filters.js";
|
|
6
6
|
import { filterContextActions } from "../../../store/filterContext/index.js";
|
|
7
|
-
import { dispatchFilterContextChanged } from "../common.js";
|
|
7
|
+
import { dispatchFilterContextChanged, resetCrossFiltering } from "../common.js";
|
|
8
8
|
import { selectAttributeFilterDescendants, selectFilterContextAttributeFilterByLocalId, } from "../../../store/filterContext/filterContextSelectors.js";
|
|
9
9
|
import { dispatchDashboardEvent } from "../../../store/_infra/eventDispatcher.js";
|
|
10
|
+
import { selectIsCrossFiltering, selectIsFilterFromCrossFilteringByLocalIdentifier, } from "../../../store/drill/drillSelectors.js";
|
|
10
11
|
export function* changeAttributeFilterSelectionHandler(ctx, cmd) {
|
|
11
12
|
const { elements, filterLocalId, selectionType } = cmd.payload;
|
|
12
13
|
// validate filterLocalId
|
|
@@ -31,6 +32,11 @@ export function* changeAttributeFilterSelectionHandler(ctx, cmd) {
|
|
|
31
32
|
negativeSelection: true,
|
|
32
33
|
}))));
|
|
33
34
|
}
|
|
35
|
+
const isCrossFiltering = yield select(selectIsCrossFiltering);
|
|
36
|
+
const isCurrentFilterCrossFiltering = yield select(selectIsFilterFromCrossFilteringByLocalIdentifier(filterLocalId));
|
|
37
|
+
if (isCrossFiltering && !isCurrentFilterCrossFiltering) {
|
|
38
|
+
yield call(resetCrossFiltering, cmd);
|
|
39
|
+
}
|
|
34
40
|
yield dispatchDashboardEvent(attributeFilterSelectionChanged(ctx, changedFilter, cmd.correlationId));
|
|
35
41
|
yield call(dispatchFilterContextChanged, ctx, cmd);
|
|
36
42
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"changeAttributeFilterSelectionHandler.js","sourceRoot":"","sources":["../../../../../src/model/commandHandlers/filterContext/attributeFilter/changeAttributeFilterSelectionHandler.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"changeAttributeFilterSelectionHandler.js","sourceRoot":"","sources":["../../../../../src/model/commandHandlers/filterContext/attributeFilter/changeAttributeFilterSelectionHandler.ts"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAE5D,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AACtE,OAAO,EAAE,+BAA+B,EAAE,MAAM,4BAA4B,CAAC;AAE7E,OAAO,EAAE,oBAAoB,EAAE,MAAM,uCAAuC,CAAC;AAE7E,OAAO,EAAE,4BAA4B,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AACjF,OAAO,EACH,gCAAgC,EAChC,2CAA2C,GAC9C,MAAM,wDAAwD,CAAC;AAChE,OAAO,EAAE,sB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N,CAAC;IAED,MAAM,gBAAgB,GAAG,MAAM,MAAM,CAAC,sBAAsB,CAAC,CAAC;IAC9D,MAAM,6BAA6B,GAAG,MAAM,MAAM,CAC9C,iDAAiD,CAAC,aAAa,CAAC,CACnE,CAAC;IACF,IAAI,gBAAgB,IAAI,CAAC,6BAA6B,EAAE,CAAC;QACrD,MAAM,IAAI,CAAC,mBAAmB,EAAE,GAAG,CAAC,CAAC;IACzC,CAAC;IAED,MAAM,sBAAsB,CAAC,+BAA+B,CAAC,GAAG,EAAE,aAAa,EAAE,GAAG,CAAC,aAAa,CAAC,CAAC,CAAC;IACrG,MAAM,IAAI,CAAC,4BAA4B,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC;AACvD,CAAC"}
|
|
@@ -4,4 +4,8 @@ import { IDashboardCommand } from "../../commands/base.js";
|
|
|
4
4
|
import { DashboardContext } from "../../types/commonTypes.js";
|
|
5
5
|
export declare function dispatchFilterContextChanged(ctx: DashboardContext, cmd: IDashboardCommand): SagaIterator<void>;
|
|
6
6
|
export declare function canApplyDateFilter(dateFilter: IDashboardDateFilter): SagaIterator<boolean>;
|
|
7
|
+
export declare function resetCrossFiltering(cmd: IDashboardCommand): Generator<import("redux-saga/effects").SelectEffect | import("redux-saga/effects").PutEffect<import("../../commands/filters.js").RemoveAttributeFilters> | import("redux-saga/effects").PutEffect<{
|
|
8
|
+
payload: undefined;
|
|
9
|
+
type: "drill/resetCrossFiltering";
|
|
10
|
+
}>, void, string[]>;
|
|
7
11
|
//# sourceMappingURL=common.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../../src/model/commandHandlers/filterContext/common.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE1C,OAAO,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAE3D,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAG3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../../src/model/commandHandlers/filterContext/common.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE1C,OAAO,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAE3D,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAG3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAS9D,wBAAiB,4BAA4B,CACzC,GAAG,EAAE,gBAAgB,EACrB,GAAG,EAAE,iBAAiB,GACvB,YAAY,CAAC,IAAI,CAAC,CAWpB;AAED,wBAAiB,kBAAkB,CAAC,UAAU,EAAE,oBAAoB,GAAG,YAAY,CAAC,OAAO,CAAC,CAuB3F;AAED,wBAAiB,mBAAmB,CAAC,GAAG,EAAE,iBAAiB;;;oBAM1D"}
|
|
@@ -1,11 +1,14 @@
|
|
|
1
|
-
// (C) 2021-
|
|
2
|
-
import { select } from "redux-saga/effects";
|
|
1
|
+
// (C) 2021-2025 GoodData Corporation
|
|
2
|
+
import { put, select } from "redux-saga/effects";
|
|
3
3
|
import { filterContextChanged } from "../../events/filters.js";
|
|
4
4
|
import { selectFilterContextDefinition } from "../../store/filterContext/filterContextSelectors.js";
|
|
5
5
|
import { dispatchDashboardEvent } from "../../store/_infra/eventDispatcher.js";
|
|
6
6
|
import { selectEffectiveDateFilterOptions } from "../../store/dateFilterConfig/dateFilterConfigSelectors.js";
|
|
7
7
|
import { findDateFilterOptionByValue } from "../../../_staging/dateFilterConfig/dateFilterOptionMapping.js";
|
|
8
8
|
import { selectAttributeFilterConfigsOverrides } from "../../store/attributeFilterConfigs/attributeFilterConfigsSelectors.js";
|
|
9
|
+
import { removeAttributeFilters } from "../../commands/filters.js";
|
|
10
|
+
import { selectCrossFilteringFiltersLocalIdentifiers } from "../../store/drill/drillSelectors.js";
|
|
11
|
+
import { drillActions } from "../../store/drill/index.js";
|
|
9
12
|
export function* dispatchFilterContextChanged(ctx, cmd) {
|
|
10
13
|
const filterContext = yield select(selectFilterContextDefinition);
|
|
11
14
|
const attributeFilterConfigs = yield select(selectAttributeFilterConfigsOverrides);
|
|
@@ -29,4 +32,9 @@ export function* canApplyDateFilter(dateFilter) {
|
|
|
29
32
|
}
|
|
30
33
|
return !!targetOption;
|
|
31
34
|
}
|
|
35
|
+
export function* resetCrossFiltering(cmd) {
|
|
36
|
+
const virtualFilters = yield select(selectCrossFilteringFiltersLocalIdentifiers);
|
|
37
|
+
yield put(removeAttributeFilters(virtualFilters, cmd.correlationId));
|
|
38
|
+
yield put(drillActions.resetCrossFiltering());
|
|
39
|
+
}
|
|
32
40
|
//# sourceMappingURL=common.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"common.js","sourceRoot":"","sources":["../../../../src/model/commandHandlers/filterContext/common.ts"],"names":[],"mappings":"AAAA,qCAAqC;AAGrC,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"common.js","sourceRoot":"","sources":["../../../../src/model/commandHandlers/filterContext/common.ts"],"names":[],"mappings":"AAAA,qCAAqC;AAGrC,OAAO,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAIjD,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,EAAE,6BAA6B,EAAE,MAAM,qDAAqD,CAAC;AAEpG,OAAO,EAAE,sBAAsB,EAAE,MAAM,uCAAuC,CAAC;AAC/E,OAAO,EAAE,gCAAgC,EAAE,MAAM,2DAA2D,CAAC;AAC7G,OAAO,EAAE,2BAA2B,EAAE,MAAM,+DAA+D,CAAC;AAC5G,OAAO,EAAE,qCAAqC,EAAE,MAAM,uEAAuE,CAAC;AAC9H,OAAO,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC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C;AAED,MAAM,SAAS,CAAC,CAAC,mBAAmB,CAAC,GAAsB;IACvD,MAAM,cAAc,GAAmE,MAAM,MAAM,CAC/F,2CAA2C,CAC9C,CAAC;IACF,MAAM,GAAG,CAAC,sBAAsB,CAAC,cAAc,EAAE,GAAG,CAAC,aAAa,CAAC,CAAC,CAAC;IACrE,MAAM,GAAG,CAAC,YAAY,CAAC,mBAAmB,EAAE,CAAC,CAAC;AAClD,CAAC"}
|
package/esm/model/commandHandlers/filterContext/dateFilter/changeDateFilterSelectionHandler.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"changeDateFilterSelectionHandler.d.ts","sourceRoot":"","sources":["../../../../../src/model/commandHandlers/filterContext/dateFilter/changeDateFilterSelectionHandler.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAS1C,OAAO,EAAE,yBAAyB,EAAuB,MAAM,8BAA8B,CAAC;AAO9F,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;
|
|
1
|
+
{"version":3,"file":"changeDateFilterSelectionHandler.d.ts","sourceRoot":"","sources":["../../../../../src/model/commandHandlers/filterContext/dateFilter/changeDateFilterSelectionHandler.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAS1C,OAAO,EAAE,yBAAyB,EAAuB,MAAM,8BAA8B,CAAC;AAO9F,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAMjE,wBAAiB,gCAAgC,CAC7C,GAAG,EAAE,gBAAgB,EACrB,GAAG,EAAE,yBAAyB,GAC/B,YAAY,CAAC,IAAI,CAAC,CA+CpB"}
|
package/esm/model/commandHandlers/filterContext/dateFilter/changeDateFilterSelectionHandler.js
CHANGED
|
@@ -4,9 +4,10 @@ import toNumber from "lodash/toNumber.js";
|
|
|
4
4
|
import { dateFilterChanged } from "../../../events/filters.js";
|
|
5
5
|
import { filterContextActions } from "../../../store/filterContext/index.js";
|
|
6
6
|
import { selectFilterContextDateFilter, selectFilterContextDateFilterByDataSet, } from "../../../store/filterContext/filterContextSelectors.js";
|
|
7
|
-
import { canApplyDateFilter, dispatchFilterContextChanged } from "../common.js";
|
|
7
|
+
import { canApplyDateFilter, dispatchFilterContextChanged, resetCrossFiltering } from "../common.js";
|
|
8
8
|
import { dispatchDashboardEvent } from "../../../store/_infra/eventDispatcher.js";
|
|
9
9
|
import { invalidArgumentsProvided } from "../../../events/general.js";
|
|
10
|
+
import { selectIsCrossFiltering } from "../../../store/drill/drillSelectors.js";
|
|
10
11
|
export function* changeDateFilterSelectionHandler(ctx, cmd) {
|
|
11
12
|
const isAllTime = cmd.payload.type === "relative" &&
|
|
12
13
|
cmd.payload.granularity === "GDC.time.date" &&
|
|
@@ -28,6 +29,10 @@ export function* changeDateFilterSelectionHandler(ctx, cmd) {
|
|
|
28
29
|
const affectedFilter = cmd.payload.dataSet
|
|
29
30
|
? yield select(selectFilterContextDateFilterByDataSet(cmd.payload.dataSet))
|
|
30
31
|
: yield select(selectFilterContextDateFilter);
|
|
32
|
+
const isCrossFiltering = yield select(selectIsCrossFiltering);
|
|
33
|
+
if (isCrossFiltering) {
|
|
34
|
+
yield call(resetCrossFiltering, cmd);
|
|
35
|
+
}
|
|
31
36
|
yield dispatchDashboardEvent(dateFilterChanged(ctx, affectedFilter, cmd.payload.dateFilterOptionLocalId, cmd.correlationId));
|
|
32
37
|
yield call(dispatchFilterContextChanged, ctx, cmd);
|
|
33
38
|
}
|
package/esm/model/commandHandlers/filterContext/dateFilter/changeDateFilterSelectionHandler.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"changeDateFilterSelectionHandler.js","sourceRoot":"","sources":["../../../../../src/model/commandHandlers/filterContext/dateFilter/changeDateFilterSelectionHandler.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,IAAI,EAAE,GAAG,EAAkB,MAAM,EAAE,MAAM,oBAAoB,CAAC;AACvE,OAAO,EAEH,8BAA8B,EAC9B,6BAA6B,EAC7B,8BAA8B,GACjC,MAAM,qBAAqB,CAAC;AAC7B,OAAO,QAAQ,MAAM,oBAAoB,CAAC;AAE1C,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,EAAE,oBAAoB,EAAE,MAAM,uCAAuC,CAAC;AAC7E,OAAO,EACH,6BAA6B,EAC7B,sCAAsC,GACzC,MAAM,wDAAwD,CAAC;AAEhE,OAAO,EAAE,kBAAkB,EAAE,4BAA4B,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"changeDateFilterSelectionHandler.js","sourceRoot":"","sources":["../../../../../src/model/commandHandlers/filterContext/dateFilter/changeDateFilterSelectionHandler.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,IAAI,EAAE,GAAG,EAAkB,MAAM,EAAE,MAAM,oBAAoB,CAAC;AACvE,OAAO,EAEH,8BAA8B,EAC9B,6BAA6B,EAC7B,8BAA8B,GACjC,MAAM,qBAAqB,CAAC;AAC7B,OAAO,QAAQ,MAAM,oBAAoB,CAAC;AAE1C,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,EAAE,oBAAoB,EAAE,MAAM,uCAAuC,CAAC;AAC7E,OAAO,EACH,6BAA6B,EAC7B,sCAAsC,GACzC,MAAM,wDAAwD,CAAC;AAEhE,OAAO,EAAE,kBAAkB,EAAE,4BAA4B,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AACrG,OAAO,EAAE,sBAAsB,EAAE,MAAM,0CAA0C,CAAC;AAClF,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AACtE,OAAO,EAAE,sBAAsB,EAAE,MAAM,wCAAwC,CAAC;AAEhF,MAAM,SAAS,CAAC,CAAC,gCAAgC,CAC7C,GAAqB,EACrB,GAA8B;IAE9B,MAAM,SAAS,GACX,GAAG,CAAC,OAAO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,CACxB,iBAAiB,CAAC,GAAG,EAAE,cAAc,EAAE,GAAG,CAAC,OAAO,CAAC,uBAAuB,EAAE,GAAG,CAAC,aAAa,CAAC,CACjG,CAAC;IAEF,MAAM,IAAI,CAAC,4BAA4B,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC;AACvD,CAAC;AAED,SAAS,+BAA+B,CAAC,mBAAwC;IAC7E,IAAI,mBAAmB,CAAC,IAAI,KAAK,UAAU,IAAI,mBAAmB,CAAC,IAAI,IAAI,mBAAmB,CAAC,EAAE,EAAE,CAAC;QAChG,OAAO,8BAA8B,CACjC,mBAAmB,CAAC,IAAI,CAAC,QAAQ,EAAE,EACnC,mBAAmB,CAAC,EAAE,CAAC,QAAQ,EAAE,CACpC,CAAC;IACN,CAAC;SAAM,IACH,mBAAmB,CAAC,IAAI,KAAK,UAAU;QACvC,mBAAmB,CAAC,WAAW,KAAK,eAAe;QACnD,mBAAmB,CAAC,IAAI,KAAK,SAAS;QACtC,mBAAmB,CAAC,EAAE,KAAK,SAAS,EACtC,CAAC;QACC,OAAO,6BAA6B,EAAE,CAAC;IAC3C,CAAC;SAAM,CAAC;QACJ,OAAO,8BAA8B,CACjC,mBAAmB,CAAC,WAAW,EAC/B,QAAQ,CAAC,mBAAmB,CAAC,IAAI,CAAC,EAClC,QAAQ,CAAC,mBAAmB,CAAC,EAAE,CAAC,CACnC,CAAC;IACN,CAAC;AACL,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filterViewHandler.d.ts","sourceRoot":"","sources":["../../../../src/model/commandHandlers/filterContext/filterViewHandler.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAY1C,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAC9D,OAAO,EACH,cAAc,EACd,gBAAgB,EAChB,eAAe,EACf,sBAAsB,
|
|
1
|
+
{"version":3,"file":"filterViewHandler.d.ts","sourceRoot":"","sources":["../../../../src/model/commandHandlers/filterContext/filterViewHandler.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAY1C,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAC9D,OAAO,EACH,cAAc,EACd,gBAAgB,EAChB,eAAe,EACf,sBAAsB,EAGzB,MAAM,yBAAyB,CAAC;AAyBjC,wBAAiB,qBAAqB,CAAC,GAAG,EAAE,gBAAgB,EAAE,GAAG,EAAE,cAAc,GAAG,YAAY,CAAC,IAAI,CAAC,CA6CrG;AAMD,wBAAiB,uBAAuB,CAAC,GAAG,EAAE,gBAAgB,EAAE,GAAG,EAAE,gBAAgB,GAAG,YAAY,CAAC,IAAI,CAAC,CAgBzG;AAOD,wBAAiB,sBAAsB,CAAC,GAAG,EAAE,gBAAgB,EAAE,GAAG,EAAE,eAAe,GAAG,YAAY,CAAC,IAAI,CAAC,CAavG;AAMD,wBAAiB,6BAA6B,CAC1C,GAAG,EAAE,gBAAgB,EACrB,GAAG,EAAE,sBAAsB,GAC5B,YAAY,CAAC,IAAI,CAAC,CAgBpB;AAED,wBAAiB,wBAAwB,CAAC,GAAG,EAAE,gBAAgB,GAAG,YAAY,CAAC,IAAI,CAAC,CAcnF"}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
// (C) 2024 GoodData Corporation
|
|
1
|
+
// (C) 2024-2025 GoodData Corporation
|
|
2
2
|
import { call, select, put } from "redux-saga/effects";
|
|
3
3
|
import { areObjRefsEqual, isDashboardAttributeFilter, } from "@gooddata/sdk-model";
|
|
4
4
|
import { defaultErrorHandler } from "@gooddata/sdk-ui";
|
|
5
|
-
import { reloadFilterViews, changeFilterContextSelection,
|
|
5
|
+
import { reloadFilterViews, changeFilterContextSelection, } from "../../commands/index.js";
|
|
6
6
|
import { selectFilterContextDefinition } from "../../store/filterContext/filterContextSelectors.js";
|
|
7
7
|
import { selectCrossFilteringFiltersLocalIdentifiers } from "../../store/drill/drillSelectors.js";
|
|
8
8
|
import { selectFilterViews, filterViewsActions } from "../../store/filterViews/index.js";
|
|
9
|
-
import { drillActions } from "../../store/drill/index.js";
|
|
10
9
|
import { filterViewCreationSucceeded, filterViewCreationFailed, filterViewDeletionFailed, filterViewApplicationFailed, filterViewDefaultStatusChangeFailed, filterViewDeletionSucceeded, filterViewApplicationSucceeded, filterViewDefaultStatusChangeSucceeded, } from "../../events/filters.js";
|
|
11
10
|
import { loadFilterViews } from "../dashboard/initializeDashboardHandler/loadFilterViews.js";
|
|
11
|
+
import { resetCrossFiltering } from "./common.js";
|
|
12
12
|
function createFilterView(ctx, filterView) {
|
|
13
13
|
return ctx.backend.workspace(ctx.workspace).dashboards().createFilterView(filterView);
|
|
14
14
|
}
|
|
@@ -64,11 +64,6 @@ function* findFilterView(ref) {
|
|
|
64
64
|
const filterViews = yield select(selectFilterViews);
|
|
65
65
|
return filterViews.find((filterView) => areObjRefsEqual(filterView.ref, ref));
|
|
66
66
|
}
|
|
67
|
-
function* resetCrossFiltering(cmd) {
|
|
68
|
-
const virtualFilters = yield select(selectCrossFilteringFiltersLocalIdentifiers);
|
|
69
|
-
yield put(removeAttributeFilters(virtualFilters, cmd.correlationId));
|
|
70
|
-
yield put(drillActions.resetCrossFiltering());
|
|
71
|
-
}
|
|
72
67
|
export function* applyFilterViewHandler(ctx, cmd) {
|
|
73
68
|
const filterView = yield call(findFilterView, cmd.payload.ref);
|
|
74
69
|
if (filterView) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filterViewHandler.js","sourceRoot":"","sources":["../../../../src/model/commandHandlers/filterContext/filterViewHandler.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"filterViewHandler.js","sourceRoot":"","sources":["../../../../src/model/commandHandlers/filterContext/filterViewHandler.ts"],"names":[],"mappings":"AAAA,qCAAqC;AAGrC,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,oBAAoB,CAAC;A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B,CAAC,CAAC,CAAC;QACvE,MAAM,GAAG,CAAC,kBAAkB,CAAC,gBAAgB,CAAC,KAAK,CAAC,CAAC,CAAC;IAC1D,CAAC;AACL,CAAC;AAED,MAAM,SAAS,CAAC,CAAC,wBAAwB,CAAC,GAAqB;IAC3D,MAAM,GAAG,CAAC,kBAAkB,CAAC,gBAAgB,CAAC,IAAI,CAAC,CAAC,CAAC;IACrD,IAAI,CAAC;QACD,MAAM,WAAW,GAAgD,MAAM,IAAI,CAAC,eAAe,EAAE,GAAG,CAAC,CAAC;QAClG,MAAM,GAAG,CACL,kBAAkB,CAAC,cAAc,CAAC;YAC9B,SAAS,EAAE,GAAG,CAAC,YAAa,EAAE,4BAA4B;YAC1D,WAAW;SACd,CAAC,CACL,CAAC;IACN,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACb,mBAAmB,CAAC,KAAK,CAAC,CAAC;QAC3B,MAAM,GAAG,CAAC,kBAAkB,CAAC,gBAAgB,CAAC,KAAK,CAAC,CAAC,CAAC;IAC1D,CAAC;AACL,CAAC"}
|
package/esm/model/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type { DashboardContext, ObjectAvailabilityConfig, DashboardConfig, DashboardFocusObject, DashboardModelCustomizationFns, DashboardTransformFn, FiltersInfo, ResolvedDashboardConfig, ResolvedEntitlements, ResolvableFilter, ResolvedDateFilterValues, IResolvedAttributeFilterValues, IResolvedDateFilterValue, IResolvedFilterValues, WidgetsOverlayFn, IDashboardWidgetOverlay, } from "./types/commonTypes.js";
|
|
1
|
+
export type { DashboardContext, ObjectAvailabilityConfig, DashboardConfig, DashboardExportSlideConfig, DashboardFocusObject, DashboardModelCustomizationFns, DashboardTransformFn, FiltersInfo, ResolvedDashboardConfig, ResolvedEntitlements, ResolvableFilter, ResolvedDateFilterValues, IResolvedAttributeFilterValues, IResolvedDateFilterValue, IResolvedFilterValues, WidgetsOverlayFn, IDashboardWidgetOverlay, PrivateDashboardContext, DashboardLayoutExportTransformFn, } from "./types/commonTypes.js";
|
|
2
2
|
export type { ICustomWidget, ICustomWidgetDefinition, ICustomWidgetBase, ExtendedDashboardItem, ExtendedDashboardWidget, DashboardItemDefinition, StashedDashboardItemsId, ExtendedDashboardLayoutSection, RelativeIndex, ExtendedDashboardItemType, ExtendedDashboardItemTypes, ExtendedDashboardLayoutWidget, FilterableDashboardWidget, } from "./types/layoutTypes.js";
|
|
3
3
|
export { newCustomWidget, newDashboardItem, newDashboardSection, isCustomWidgetDefinition, isCustomWidgetBase, isCustomWidget, extendedWidgetDebugStr, isExtendedDashboardLayoutWidget, } from "./types/layoutTypes.js";
|
|
4
4
|
export type { FilterOp, FilterOpReplaceAll, FilterOpUnignoreAttributeFilter, FilterOpIgnoreAttributeFilter, FilterOpReplaceAttributeIgnores, FilterOpDisableDateFilter, FilterOpEnableDateFilter, FilterOpUnignoreDateFilter, FilterOpIgnoreDateFilter, FilterOperations, WidgetFilterOperation, WidgetHeader, WidgetDescription, } from "./types/widgetTypes.js";
|
package/esm/model/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/model/index.ts"],"names":[],"mappings":"AAcA,YAAY,EACR,gBAAgB,EAChB,wBAAwB,EACxB,eAAe,EACf,oBAAoB,EACpB,8BAA8B,EAC9B,oBAAoB,EACpB,WAAW,EACX,uBAAuB,EACvB,oBAAoB,EACpB,gBAAgB,EAChB,wBAAwB,EACxB,8BAA8B,EAC9B,wBAAwB,EACxB,qBAAqB,EACrB,gBAAgB,EAChB,uBAAuB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/model/index.ts"],"names":[],"mappings":"AAcA,YAAY,EACR,gBAAgB,EAChB,wBAAwB,EACxB,eAAe,EACf,0BAA0B,EAC1B,oBAAoB,EACpB,8BAA8B,EAC9B,oBAAoB,EACpB,WAAW,EACX,uBAAuB,EACvB,oBAAoB,EACpB,gBAAg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E,MAAM,uBAAuB,CAAC;AACjE,YAAY,EACR,gCAAgC,EAChC,sBAAsB,GACzB,MAAM,uCAAuC,CAAC;AAE/C,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AAEjC,OAAO,EAAE,4BAA4B,EAAE,MAAM,6CAA6C,CAAC;AAC3F,OAAO,EAAE,2BAA2B,EAAE,MAAM,+CAA+C,CAAC;AAC5F,OAAO,EAAE,4BAA4B,EAAE,MAAM,6CAA6C,CAAC;AAE3F,YAAY,EACR,qBAAqB,EACrB,uBAAuB,EACvB,oBAAoB,GACvB,MAAM,iCAAiC,CAAC;AACzC,OAAO,EACH,eAAe,EACf,wBAAwB,EACxB,sBAAsB,EACtB,0BAA0B,EAC1B,yBAAyB,GAC5B,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,8BAA8B,EAAE,MAAM,uDAAuD,CAAC;AACvG,cAAc,8BAA8B,CAAC;AAE7C,OAAO,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AACpE,OAAO,EAAE,gCAAgC,EAAE,MAAM,oCAAoC,CAAC;AACtF,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC"}
|
package/esm/model/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/model/index.ts"],"names":[],"mappings":"AAAA,qCAAqC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/model/index.ts"],"names":[],"mappings":"AAAA,qCAAqC;AAkDrC,OAAO,EACH,eAAe,EACf,gBAAgB,EAChB,mBAAmB,EACnB,wBAAwB,EACxB,kBAAkB,EAClB,cAAc,EACd,sBAAsB,EACtB,+BAA+B,GAClC,MAAM,wBAAwB,CAAC;AAuBhC,OAAO,EAAE,2BAA2B,EAAE,gCAAgC,EAAE,MAAM,uBAAuB,CAAC;AAatG,OAAO,EAAE,8BAA8B,EAAE,MAAM,4BAA4B,CAAC;AAE5E,OAAO,EAAE,wBAAwB,EAAE,MAAM,uBAAuB,CAAC;AAMjE,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AAEjC,OAAO,EAAE,4BAA4B,EAAE,MAAM,6CAA6C,CAAC;AAC3F,OAAO,EAAE,2BAA2B,EAAE,MAAM,+CAA+C,CAAC;AAC5F,OAAO,EAAE,4BAA4B,EAAE,MAAM,6CAA6C,CAAC;AAO3F,OAAO,EACH,eAAe,EACf,wBAAwB,EACxB,sBAAsB,EACtB,0BAA0B,EAC1B,yBAAyB,GAC5B,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,8BAA8B,EAAE,MAAM,uDAAuD,CAAC;AACvG,cAAc,8BAA8B,CAAC;AAE7C,OAAO,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AACpE,OAAO,EAAE,gCAAgC,EAAE,MAAM,oCAAoC,CAAC;AACtF,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"queryAttributeByDisplayForm.d.ts","sourceRoot":"","sources":["../../../src/model/queryServices/queryAttributeByDisplayForm.ts"],"names":[],"mappings":"AAEA,OAAO,EAEH,wBAAwB,EAI3B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,2BAA2B,EAAE,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"queryAttributeByDisplayForm.d.ts","sourceRoot":"","sources":["../../../src/model/queryServices/queryAttributeByDisplayForm.ts"],"names":[],"mappings":"AAEA,OAAO,EAEH,wBAAwB,EAI3B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,2BAA2B,EAAE,MAAM,0BAA0B,CAAC;AASvE,eAAO,MAAM,kCAAkC,uHAU9C,CAAC"}
|
|
@@ -1,33 +1,40 @@
|
|
|
1
|
-
// (C) 2022 GoodData Corporation
|
|
1
|
+
// (C) 2022-2025 GoodData Corporation
|
|
2
2
|
import { areObjRefsEqual, serializeObjRef, } from "@gooddata/sdk-model";
|
|
3
3
|
import { createCachedQueryService } from "../store/_infra/queryService.js";
|
|
4
4
|
import { call, select } from "redux-saga/effects";
|
|
5
5
|
import { invalidQueryArguments } from "../events/general.js";
|
|
6
|
-
import { selectCatalogAttributes } from "../store/index.js";
|
|
6
|
+
import { selectCatalogAttributes, selectPreloadedAttributesWithReferences } from "../store/index.js";
|
|
7
7
|
export const QueryAttributeByDisplayFormService = createCachedQueryService("GDC.DASH/QUERY.DISPLAY.FORM.ATTRIBUTE", queryService, (query) => {
|
|
8
8
|
const { payload: { displayForms }, } = query;
|
|
9
9
|
return displayForms.map((df) => serializeObjRef(df)).join();
|
|
10
10
|
});
|
|
11
11
|
/**
|
|
12
12
|
* Loads the attribute metadata for given display form. Primarily the metadata are loaded
|
|
13
|
-
* from the catalog attributes. If the required attribute is not listed in the catalog
|
|
13
|
+
* from the preloaded filter attributes or catalog attributes. If the required attribute is not listed in the preloaded attributes or catalog
|
|
14
14
|
* (e.g. deprecated attributes), the attribute metadata are fetched from the backend.
|
|
15
15
|
*/
|
|
16
|
-
async function loadAttributeByDisplayForm(ctx, catalogAttributes, displayFormRef) {
|
|
16
|
+
async function loadAttributeByDisplayForm(ctx, catalogAttributes, displayFormRef, preloadedAttributesWithReferences) {
|
|
17
17
|
const { backend, workspace } = ctx;
|
|
18
|
-
|
|
18
|
+
// First try to get the attribute from preloaded filters
|
|
19
|
+
let attribute = preloadedAttributesWithReferences?.find((attr) => attr.attribute.displayForms.some((df) => areObjRefsEqual(df.ref, displayFormRef)))?.attribute;
|
|
20
|
+
if (!attribute) {
|
|
21
|
+
// If the attribute is not in preloaded filters, try to get it from catalog attributes
|
|
22
|
+
attribute = catalogAttributes.find((catalogAttribute) => catalogAttribute.displayForms.some((df) => areObjRefsEqual(df.ref, displayFormRef)))?.attribute;
|
|
23
|
+
}
|
|
19
24
|
if (attribute) {
|
|
20
|
-
return attribute
|
|
25
|
+
return attribute;
|
|
21
26
|
}
|
|
27
|
+
// If attribute is not in preloaded filters or catalog attributes, fetch it from backend
|
|
22
28
|
return backend.workspace(workspace).attributes().getAttributeByDisplayForm(displayFormRef);
|
|
23
29
|
}
|
|
24
|
-
async function loadAttributes(ctx, catalogAttributes, displayForms) {
|
|
25
|
-
return Promise.all(displayForms.map((df) => loadAttributeByDisplayForm(ctx, catalogAttributes, df)));
|
|
30
|
+
async function loadAttributes(ctx, catalogAttributes, displayForms, preloadedAttributesWithReferences) {
|
|
31
|
+
return Promise.all(displayForms.map((df) => loadAttributeByDisplayForm(ctx, catalogAttributes, df, preloadedAttributesWithReferences)));
|
|
26
32
|
}
|
|
27
33
|
function* queryService(ctx, query) {
|
|
28
34
|
const { payload: { displayForms }, correlationId, } = query;
|
|
35
|
+
const preloadedAttributesWithReferences = yield select(selectPreloadedAttributesWithReferences);
|
|
29
36
|
const catalogAttributes = yield select(selectCatalogAttributes);
|
|
30
|
-
const attributes = yield call(loadAttributes, ctx, catalogAttributes, displayForms);
|
|
37
|
+
const attributes = yield call(loadAttributes, ctx, catalogAttributes, displayForms, preloadedAttributesWithReferences);
|
|
31
38
|
if (!attributes) {
|
|
32
39
|
throw invalidQueryArguments(ctx, `Cannot find attribute for given displayForm`, correlationId);
|
|
33
40
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"queryAttributeByDisplayForm.js","sourceRoot":"","sources":["../../../src/model/queryServices/queryAttributeByDisplayForm.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"queryAttributeByDisplayForm.js","sourceRoot":"","sources":["../../../src/model/queryServices/queryAttributeByDisplayForm.ts"],"names":[],"mappings":"AAAA,qCAAqC;AAErC,OAAO,EACH,eAAe,EAIf,e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AE,cAAc,CAAC,CAAC,CACtF,EAAE,SAAS,CAAC;IACjB,CAAC;IAED,IAAI,SAAS,EAAE,CAAC;QACZ,OAAO,SAAS,CAAC;IACrB,CAAC;IAED,wFAAwF;IACxF,OAAO,OAAO,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC,UAAU,EAAE,CAAC,yBAAyB,CAAC,cAAc,CAAC,CAAC;AAC/F,CAAC;AAED,KAAK,UAAU,cAAc,CACzB,GAAqB,EACrB,iBAAsC,EACtC,YAAsB,EACtB,iCAA8D;IAE9D,OAAO,OAAO,CAAC,GAAG,CACd,YAAY,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,CACpB,0BAA0B,CAAC,GAAG,EAAE,iBAAiB,EAAE,EAAE,EAAE,iCAAiC,CAAC,CAC5F,CACJ,CAAC;AACN,CAAC;AAED,QAAQ,CAAC,CAAC,YAAY,CAClB,GAAqB,EACrB,KAAkC;IAElC,MAAM,EACF,OAAO,EAAE,EAAE,YAAY,EAAE,EACzB,aAAa,GAChB,GAAG,KAAK,CAAC;IACV,MAAM,iCAAiC,GACnC,MAAM,MAAM,CAAC,uCAAuC,CAAC,CAAC;IAC1D,MAAM,iBAAiB,GAA+C,MAAM,MAAM,CAC9E,uBAAuB,CAC1B,CAAC;IAEF,MAAM,UAAU,GAA0C,MAAM,IAAI,CAChE,cAAc,EACd,GAAG,EACH,iBAAiB,EACjB,YAAY,EACZ,iCAAiC,CACpC,CAAC;IAEF,IAAI,CAAC,UAAU,EAAE,CAAC;QACd,MAAM,qBAAqB,CAAC,GAAG,EAAE,6CAA6C,EAAE,aAAa,CAAC,CAAC;IACnG,CAAC;IAED,OAAO,UAAU,CAAC;AACtB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { IMetadataObject } from "@gooddata/sdk-model";
|
|
2
2
|
import { QueryAttributeDataSet } from "../queries/attributeDataSet.js";
|
|
3
|
-
export declare const QueryAttributeDataSetService: Required<import("../store/
|
|
3
|
+
export declare const QueryAttributeDataSetService: Required<import("../store/index.js").IDashboardQueryService<QueryAttributeDataSet, IMetadataObject>>;
|
|
4
4
|
//# sourceMappingURL=queryAttributeDataset.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"queryAttributeDataset.d.ts","sourceRoot":"","sources":["../../../src/model/queryServices/queryAttributeDataset.ts"],"names":[],"mappings":"AAEA,OAAO,
|
|
1
|
+
{"version":3,"file":"queryAttributeDataset.d.ts","sourceRoot":"","sources":["../../../src/model/queryServices/queryAttributeDataset.ts"],"names":[],"mappings":"AAEA,OAAO,EAAmB,eAAe,EAA2B,MAAM,qBAAqB,CAAC;AAMhG,OAAO,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AAIvE,eAAO,MAAM,4BAA4B,sGAUxC,CAAC"}
|
|
@@ -1,19 +1,27 @@
|
|
|
1
|
-
// (C) 2022-
|
|
2
|
-
import { serializeObjRef } from "@gooddata/sdk-model";
|
|
1
|
+
// (C) 2022-2025 GoodData Corporation
|
|
2
|
+
import { areObjRefsEqual, serializeObjRef } from "@gooddata/sdk-model";
|
|
3
3
|
import { createCachedQueryService } from "../store/_infra/queryService.js";
|
|
4
|
-
import { call } from "redux-saga/effects";
|
|
4
|
+
import { call, select } from "redux-saga/effects";
|
|
5
5
|
import { invalidQueryArguments } from "../events/general.js";
|
|
6
|
+
import { selectPreloadedAttributesWithReferences } from "../store/index.js";
|
|
6
7
|
export const QueryAttributeDataSetService = createCachedQueryService("GDC.DASH/QUERY.DATA.SET.ATTRIBUTE", queryService, (query) => {
|
|
7
8
|
const { payload: { displayForm }, } = query;
|
|
8
9
|
return serializeObjRef(displayForm);
|
|
9
10
|
});
|
|
10
|
-
async function loadAttributeDataSetMeta(ctx,
|
|
11
|
+
async function loadAttributeDataSetMeta(ctx, attributeRef, preloadedAttributesWithReferences) {
|
|
11
12
|
const { backend, workspace } = ctx;
|
|
12
|
-
|
|
13
|
+
// First try to get the dataSet from preloaded filters
|
|
14
|
+
const dataSet = preloadedAttributesWithReferences?.find((attr) => areObjRefsEqual(attr.attribute.ref, attributeRef))?.dataSet;
|
|
15
|
+
if (dataSet) {
|
|
16
|
+
return dataSet;
|
|
17
|
+
}
|
|
18
|
+
// If dataSet is not in preloaded filters, fetch it from backend
|
|
19
|
+
return backend.workspace(workspace).attributes().getAttributeDatasetMeta(attributeRef);
|
|
13
20
|
}
|
|
14
21
|
function* queryService(ctx, query) {
|
|
15
22
|
const { payload: { displayForm }, correlationId, } = query;
|
|
16
|
-
const
|
|
23
|
+
const preloadedAttributesWithReferences = yield select(selectPreloadedAttributesWithReferences);
|
|
24
|
+
const attributeDataSet = yield call(loadAttributeDataSetMeta, ctx, displayForm, preloadedAttributesWithReferences);
|
|
17
25
|
if (!attributeDataSet) {
|
|
18
26
|
throw invalidQueryArguments(ctx, `Cannot find attribute data set for given displayForm`, correlationId);
|
|
19
27
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"queryAttributeDataset.js","sourceRoot":"","sources":["../../../src/model/queryServices/queryAttributeDataset.ts"],"names":[],"mappings":"AAAA,qCAAqC;AAErC,OAAO,EAA2B,eAAe,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"queryAttributeDataset.js","sourceRoot":"","sources":["../../../src/model/queryServices/queryAttributeDataset.ts"],"names":[],"mappings":"AAAA,qCAAqC;AAErC,OAAO,EAAE,eAAe,EAA2B,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAChG,OAAO,EAAE,wBAAwB,EAAE,MAAM,iCAAiC,CAAC;AAG3E,OAAO,EAAE,IAAI,EAAkB,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAClE,OAAO,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAE7D,OAAO,EAAE,uCAAuC,EAAE,MAAM,mBAAmB,CAAC;AAG5E,MAAM,CAAC,MAAM,4BAA4B,GAAG,wBAAwB,CAChE,mCAAmC,EACnC,YAAY,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etFilters } from "../queries/widgets.js";
|
|
3
|
-
export declare const QueryWidgetFiltersService: import("../store/
|
|
3
|
+
export declare const QueryWidgetFiltersService: import("../store/index.js").IDashboardQueryService<QueryWidgetFilters, IFilter[]>;
|
|
4
4
|
//# sourceMappingURL=queryWidgetFilters.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"queryWidgetFilters.d.ts","sourceRoot":"","sources":["../../../src/model/queryServices/queryWidgetFilters.ts"],"names":[],"mappings":"AAKA,OAAO,EAMH,OAAO,EAuBV,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"queryWidgetFilters.d.ts","sourceRoot":"","sources":["../../../src/model/queryServices/queryWidgetFilters.ts"],"names":[],"mappings":"AAKA,OAAO,EAMH,OAAO,EAuBV,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAkB3D,eAAO,MAAM,yBAAyB,mFAAoE,CAAC"}
|
|
@@ -11,6 +11,7 @@ import { invariant } from "ts-invariant";
|
|
|
11
11
|
import isEmpty from "lodash/isEmpty.js";
|
|
12
12
|
import { selectSupportsMultipleDateFilters } from "../store/backendCapabilities/backendCapabilitiesSelectors.js";
|
|
13
13
|
import { selectAttributeFilterConfigsDisplayAsLabelMap } from "../store/attributeFilterConfigs/attributeFilterConfigsSelectors.js";
|
|
14
|
+
import { selectEnableCriticalContentPerformanceOptimizations } from "../store/index.js";
|
|
14
15
|
export const QueryWidgetFiltersService = createQueryService("GDC.DASH/QUERY.WIDGET.FILTERS", queryService);
|
|
15
16
|
function refMatchesMdObject(ref, mdObject, type) {
|
|
16
17
|
return (areObjRefsEqual(ref, mdObject.ref) ||
|
|
@@ -76,18 +77,16 @@ function selectResolveWidgetDateFilterIgnore(state, widget, dashboardCommonDateF
|
|
|
76
77
|
function resolveWidgetDateFilterIgnore(widget, commonDateFilterDateDatasetPairs, widgetDateFilterDateDatasetPairs, avoidCatalogForFilterLookup) {
|
|
77
78
|
const nonIgnoredCommonDateFilterDateDatasetPairs = commonDateFilterDateDatasetPairs.filter(({ dateDataset, dateDatasetLink }) => {
|
|
78
79
|
return (!!widget.dateDataSet &&
|
|
79
|
-
dateDataset &&
|
|
80
80
|
(avoidCatalogForFilterLookup
|
|
81
|
-
? areObjRefsEqual(widget.dateDataSet, dateDatasetLink)
|
|
82
|
-
: refMatchesMdObject(widget.dateDataSet, dateDataset.dataSet, "dataSet")));
|
|
81
|
+
? dateDatasetLink && areObjRefsEqual(widget.dateDataSet, dateDatasetLink)
|
|
82
|
+
: dateDataset && refMatchesMdObject(widget.dateDataSet, dateDataset.dataSet, "dataSet")));
|
|
83
83
|
});
|
|
84
84
|
const nonIgnoredWidgetDateFilterDateDatasetPairs = widgetDateFilterDateDatasetPairs.filter(({ dateDataset, dateDatasetLink }) => {
|
|
85
|
-
const matches =
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
: refMatchesMdObject(ignored.dataSet, dateDataset.dataSet, "dataSet"));
|
|
85
|
+
const matches = widget.ignoreDashboardFilters
|
|
86
|
+
?.filter(isDashboardDateFilterReference)
|
|
87
|
+
.some((ignored) => avoidCatalogForFilterLookup
|
|
88
|
+
? dateDatasetLink && areObjRefsEqual(ignored.dataSet, dateDatasetLink)
|
|
89
|
+
: dateDataset && refMatchesMdObject(ignored.dataSet, dateDataset.dataSet, "dataSet"));
|
|
91
90
|
return !matches;
|
|
92
91
|
});
|
|
93
92
|
return [...nonIgnoredCommonDateFilterDateDatasetPairs, ...nonIgnoredWidgetDateFilterDateDatasetPairs];
|
|
@@ -100,10 +99,10 @@ function resolveDateFilters(insightDateFilterDateDatasetPairs, dashboardDateFilt
|
|
|
100
99
|
// prioritize dashboard filters over insight ones
|
|
101
100
|
// and strip useless all time filters at the end
|
|
102
101
|
const init = dashboardDateFilterDateDatasetPairs
|
|
103
|
-
.filter((item) => !!item.dateDataset)
|
|
102
|
+
.filter((item) => (avoidCatalogForFilterLookup ? !!item.dateDatasetLink : !!item.dateDataset))
|
|
104
103
|
.map((item) => item.filter);
|
|
105
104
|
return insightDateFilterDateDatasetPairs
|
|
106
|
-
.filter((item) => !!item.dateDataset)
|
|
105
|
+
.filter((item) => (avoidCatalogForFilterLookup ? !!item.dateDatasetLink : !!item.dateDataset))
|
|
107
106
|
.reduceRight((acc, curr) => {
|
|
108
107
|
const alreadyPresent = avoidCatalogForFilterLookup
|
|
109
108
|
? acc.some((item) => areObjRefsEqual(filterObjRef(item), curr.dateDatasetLink))
|
|
@@ -133,7 +132,7 @@ function* queryWithInsight(ctx, widget, insight) {
|
|
|
133
132
|
widgetAwareDashboardCommonDateFilters.push(newAllTimeFilter(widget.dateDataSet));
|
|
134
133
|
}
|
|
135
134
|
const effectiveInsightFilters = insightFilters(insight);
|
|
136
|
-
const avoidCatalogForFilterLookup =
|
|
135
|
+
const avoidCatalogForFilterLookup = yield select(selectEnableCriticalContentPerformanceOptimizations);
|
|
137
136
|
const [dateFilters, attributeFilters] = yield all([
|
|
138
137
|
select(selectResolvedInsightDateFilters, widget, widgetAwareDashboardCommonDateFilters.filter(isDateFilter), widgetAwareDashboardOtherFilters.filter(isDateFilter), effectiveInsightFilters.filter(isDateFilter), supportsMultipleDateFilters, avoidCatalogForFilterLookup),
|
|
139
138
|
call(getResolvedInsightAttributeFilters, ctx, widget, widgetAwareDashboardOtherFilters.filter(isAttributeFilter), effectiveInsightFilters.filter(isAttributeFilter)),
|
|
@@ -159,7 +158,7 @@ function* queryWithoutInsight(ctx, widget) {
|
|
|
159
158
|
const widgetAwareDashboardFiltersSelector = selectAllFiltersForWidgetByRef(widget.ref);
|
|
160
159
|
const [widgetAwareDashboardCommonDateFilters, widgetAwareDashboardOtherFilters] = yield select(widgetAwareDashboardFiltersSelector);
|
|
161
160
|
const supportsMultipleDateFilters = yield select(selectSupportsMultipleDateFilters);
|
|
162
|
-
const avoidCatalogForFilterLookup =
|
|
161
|
+
const avoidCatalogForFilterLookup = yield select(selectEnableCriticalContentPerformanceOptimizations);
|
|
163
162
|
const [dateFilters, attributeFilters] = yield all([
|
|
164
163
|
select(selectResolvedDateFilters, widget, widgetAwareDashboardCommonDateFilters.filter(isDateFilter), widgetAwareDashboardOtherFilters.filter(isDateFilter), supportsMultipleDateFilters, avoidCatalogForFilterLookup),
|
|
165
164
|
call(getResolvedAttributeFilters, ctx, widget, widgetAwareDashboardOtherFilters.filter(isAttributeFilter)),
|