@gooddata/sdk-ui-dashboard 11.70.0-alpha.4 → 11.70.0-alpha.5
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 +49 -49
- package/esm/__version.d.ts +1 -1
- package/esm/__version.js +1 -1
- package/esm/_staging/automation/index.d.ts +1 -0
- package/esm/_staging/automation/index.d.ts.map +1 -1
- package/esm/_staging/automation/index.js +16 -5
- package/esm/_staging/dashboard/absoluteGranularityDateFilters.d.ts +9 -3
- package/esm/_staging/dashboard/absoluteGranularityDateFilters.d.ts.map +1 -1
- package/esm/_staging/dashboard/absoluteGranularityDateFilters.js +22 -13
- package/esm/_staging/dashboard/dashboardFilterContext.d.ts.map +1 -1
- package/esm/_staging/dashboard/dashboardFilterContext.js +11 -1
- package/esm/_staging/dashboard/dashboardFilterContextValidation.d.ts.map +1 -1
- package/esm/_staging/dashboard/dashboardFilterContextValidation.js +9 -9
- package/esm/_staging/dashboard/dashboardFilterConverter.d.ts +3 -3
- package/esm/_staging/dashboard/dashboardFilterConverter.d.ts.map +1 -1
- package/esm/_staging/dashboard/dashboardFilterConverter.js +14 -2
- package/esm/_staging/dashboard/parameterizedDateFilters.d.ts +9 -0
- package/esm/_staging/dashboard/parameterizedDateFilters.d.ts.map +1 -1
- package/esm/_staging/dashboard/parameterizedDateFilters.js +27 -0
- package/esm/_staging/exportUtils/filterUtils.d.ts.map +1 -1
- package/esm/_staging/exportUtils/filterUtils.js +5 -3
- package/esm/_staging/sharedHooks/useFiltersNamings.d.ts.map +1 -1
- package/esm/_staging/sharedHooks/useFiltersNamings.js +9 -7
- package/esm/index.d.ts +8 -8
- package/esm/index.d.ts.map +1 -1
- package/esm/index.js +5 -5
- package/esm/kdaDialog/dialog/KdaDialog.d.ts.map +1 -1
- package/esm/kdaDialog/dialog/KdaDialog.js +15 -11
- package/esm/kdaDialog/dialog/KdaDialogFloatingStatusBar.d.ts +17 -0
- package/esm/kdaDialog/dialog/KdaDialogFloatingStatusBar.d.ts.map +1 -1
- package/esm/kdaDialog/dialog/KdaDialogFloatingStatusBar.js +44 -2
- package/esm/model/DashboardTester.d.ts.map +1 -1
- package/esm/model/DashboardTester.js +0 -2
- package/esm/model/commandHandlers/common/validateDrillToCustomUrlParams.d.ts +2 -0
- package/esm/model/commandHandlers/common/validateDrillToCustomUrlParams.d.ts.map +1 -1
- package/esm/model/commandHandlers/common/validateDrillToCustomUrlParams.js +6 -1
- package/esm/model/commandHandlers/dashboard/changeDashboardDefinitionHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/dashboard/changeDashboardDefinitionHandler.js +7 -3
- package/esm/model/commandHandlers/dashboard/changeDateFilterTitleHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/dashboard/changeDateFilterTitleHandler.js +9 -4
- package/esm/model/commandHandlers/dashboard/common/filterViews.d.ts.map +1 -1
- package/esm/model/commandHandlers/dashboard/common/filterViews.js +23 -11
- package/esm/model/commandHandlers/dashboard/common/overrideFiltersAcrossTabs.d.ts.map +1 -1
- package/esm/model/commandHandlers/dashboard/common/overrideFiltersAcrossTabs.js +7 -8
- package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/index.d.ts.map +1 -1
- package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/index.js +6 -3
- package/esm/model/commandHandlers/drill/common/sourceDrillFilters.js +2 -2
- package/esm/model/commandHandlers/drill/drillToDashboardHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/drill/drillToDashboardHandler.js +18 -6
- package/esm/model/commandHandlers/filterContext/attributeFilter/addAttributeFilterHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/filterContext/attributeFilter/addAttributeFilterHandler.js +3 -5
- package/esm/model/commandHandlers/filterContext/attributeFilter/addTextAttributeFilterHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/filterContext/attributeFilter/addTextAttributeFilterHandler.js +3 -5
- package/esm/model/commandHandlers/filterContext/attributeFilter/removeAttributeFiltersHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/filterContext/attributeFilter/removeAttributeFiltersHandler.js +3 -5
- package/esm/model/commandHandlers/filterContext/changeFilterContextSelectionHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/filterContext/changeFilterContextSelectionHandler.js +21 -42
- package/esm/model/commandHandlers/filterContext/common.d.ts +2 -2
- package/esm/model/commandHandlers/filterContext/common.d.ts.map +1 -1
- package/esm/model/commandHandlers/filterContext/common.js +16 -1
- package/esm/model/commandHandlers/filterContext/dateFilter/changeDateFilterSelectionHandler.d.ts +2 -1
- package/esm/model/commandHandlers/filterContext/dateFilter/changeDateFilterSelectionHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/filterContext/dateFilter/changeDateFilterSelectionHandler.js +56 -34
- package/esm/model/commandHandlers/filterContext/filterViewHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/filterContext/filterViewHandler.js +8 -3
- package/esm/model/commandHandlers/filterContext/tabSync/tabSyncRules.d.ts +8 -0
- package/esm/model/commandHandlers/filterContext/tabSync/tabSyncRules.d.ts.map +1 -1
- package/esm/model/commandHandlers/filterContext/tabSync/tabSyncRules.js +42 -9
- package/esm/model/commandHandlers/filterContext/tabSync/writtenTargets.d.ts.map +1 -1
- package/esm/model/commandHandlers/filterContext/tabSync/writtenTargets.js +2 -1
- package/esm/model/commandHandlers/index.d.ts.map +1 -1
- package/esm/model/commandHandlers/index.js +6 -1
- package/esm/model/commandHandlers/layout/undoLayoutChangesHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/layout/undoLayoutChangesHandler.js +3 -1
- package/esm/model/commandHandlers/parameters/addParametersHandler.d.ts +6 -0
- package/esm/model/commandHandlers/parameters/addParametersHandler.d.ts.map +1 -0
- package/esm/model/commandHandlers/parameters/addParametersHandler.js +43 -0
- package/esm/model/commandHandlers/parameters/removeParametersHandler.d.ts +6 -0
- package/esm/model/commandHandlers/parameters/removeParametersHandler.d.ts.map +1 -0
- package/esm/model/commandHandlers/parameters/removeParametersHandler.js +29 -0
- package/esm/model/commandHandlers/scheduledEmail/initializeAutomationsHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/scheduledEmail/initializeAutomationsHandler.js +10 -4
- package/esm/model/commandHandlers/widgets/addVisualizationToSwitcherWidgetHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/widgets/addVisualizationToSwitcherWidgetHandler.js +3 -1
- package/esm/model/commandHandlers/widgets/changeInsightWidgetInsightHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/widgets/changeInsightWidgetInsightHandler.js +2 -0
- package/esm/model/commandHandlers/widgets/refreshInsightWidgetHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/widgets/refreshInsightWidgetHandler.js +2 -0
- package/esm/model/commands/base.d.ts +1 -1
- package/esm/model/commands/base.d.ts.map +1 -1
- package/esm/model/commands/filters.d.ts +88 -4
- package/esm/model/commands/filters.d.ts.map +1 -1
- package/esm/model/commands/filters.js +33 -21
- package/esm/model/commands/index.d.ts +3 -3
- package/esm/model/commands/index.d.ts.map +1 -1
- package/esm/model/commands/parameters.d.ts +78 -1
- package/esm/model/commands/parameters.d.ts.map +1 -1
- package/esm/model/commands/parameters.js +47 -0
- package/esm/model/events/base.d.ts +1 -1
- package/esm/model/events/base.d.ts.map +1 -1
- package/esm/model/events/filters.d.ts +70 -1
- package/esm/model/events/filters.d.ts.map +1 -1
- package/esm/model/events/filters.js +36 -0
- package/esm/model/events/index.d.ts +3 -3
- package/esm/model/events/index.d.ts.map +1 -1
- package/esm/model/events/parameters.d.ts +43 -1
- package/esm/model/events/parameters.d.ts.map +1 -1
- package/esm/model/events/parameters.js +26 -0
- package/esm/model/react/useDasboardScheduledEmails/useDashboardScheduledEmailsCommands.d.ts.map +1 -1
- package/esm/model/react/useDasboardScheduledEmails/useDashboardScheduledEmailsCommands.js +5 -0
- package/esm/model/react/useDashboardAlerting/useDashboardAlertsCommands.d.ts.map +1 -1
- package/esm/model/react/useDashboardAlerting/useDashboardAlertsCommands.js +5 -0
- package/esm/model/react/useInitializeDashboardStore.d.ts.map +1 -1
- package/esm/model/react/useInitializeDashboardStore.js +0 -2
- package/esm/model/react/useWidgetFilters.d.ts.map +1 -1
- package/esm/model/react/useWidgetFilters.js +5 -2
- package/esm/model/store/filtering/dashboardFilterSelectors.d.ts.map +1 -1
- package/esm/model/store/filtering/dashboardFilterSelectors.js +10 -2
- package/esm/model/store/meta/metaSelectors.js +3 -3
- package/esm/model/store/tabs/filterContext/filterContextReducers.d.ts +31 -2
- package/esm/model/store/tabs/filterContext/filterContextReducers.d.ts.map +1 -1
- package/esm/model/store/tabs/filterContext/filterContextReducers.js +66 -12
- package/esm/model/store/tabs/filterContext/filterContextSelectors.d.ts +29 -3
- package/esm/model/store/tabs/filterContext/filterContextSelectors.d.ts.map +1 -1
- package/esm/model/store/tabs/filterContext/filterContextSelectors.js +29 -3
- package/esm/model/store/tabs/filterContext/filterContextState.d.ts +2 -2
- package/esm/model/store/tabs/filterContext/filterContextState.d.ts.map +1 -1
- package/esm/model/store/tabs/filterContext/filterContextUtils.d.ts.map +1 -1
- package/esm/model/store/tabs/filterContext/filterContextUtils.js +80 -24
- package/esm/model/store/tabs/filterContext/filterSync.d.ts +7 -1
- package/esm/model/store/tabs/filterContext/filterSync.d.ts.map +1 -1
- package/esm/model/store/tabs/filterContext/filterSync.js +58 -21
- package/esm/model/store/tabs/layout/layoutSelectors.js +2 -2
- package/esm/model/utils/widgetFilters.js +2 -2
- package/esm/plugins/customizationApis/customizationBuilder.d.ts.map +1 -1
- package/esm/plugins/customizationApis/customizationBuilder.js +3 -1
- package/esm/plugins/customizationApis/dateFiltersCustomizer.d.ts +4 -3
- package/esm/plugins/customizationApis/dateFiltersCustomizer.d.ts.map +1 -1
- package/esm/plugins/customizationApis/dateFiltersCustomizer.js +23 -41
- package/esm/plugins/customizer.d.ts +16 -1
- package/esm/plugins/customizer.d.ts.map +1 -1
- package/esm/presentation/automations/connectors/AlertingConnector.d.ts.map +1 -1
- package/esm/presentation/automations/connectors/AlertingConnector.js +14 -1
- package/esm/presentation/automations/connectors/ScheduledEmailConnector.d.ts.map +1 -1
- package/esm/presentation/automations/connectors/ScheduledEmailConnector.js +14 -1
- package/esm/presentation/automations/connectors/hooks/useAbsoluteGranularityDateFilterBlocksAutomation.d.ts +8 -0
- package/esm/presentation/automations/connectors/hooks/useAbsoluteGranularityDateFilterBlocksAutomation.d.ts.map +1 -0
- package/esm/presentation/automations/connectors/hooks/useAbsoluteGranularityDateFilterBlocksAutomation.js +16 -0
- package/esm/presentation/automations/shared/components/AbsoluteGranularityDateFilterNotSupportedDialog.d.ts +13 -0
- package/esm/presentation/automations/shared/components/AbsoluteGranularityDateFilterNotSupportedDialog.d.ts.map +1 -0
- package/esm/presentation/automations/shared/components/AbsoluteGranularityDateFilterNotSupportedDialog.js +29 -0
- package/esm/presentation/automations/shared/exportUtils/filterUtils.d.ts.map +1 -1
- package/esm/presentation/automations/shared/exportUtils/filterUtils.js +4 -2
- package/esm/presentation/automations/shared/utils/automationUtils.d.ts.map +1 -1
- package/esm/presentation/automations/shared/utils/automationUtils.js +10 -4
- package/esm/presentation/componentDefinition/types.d.ts +3 -3
- package/esm/presentation/componentDefinition/types.d.ts.map +1 -1
- package/esm/presentation/dashboard/DashboardSidebar/DraggableInsightList/DeleteInsightDialog.d.ts.map +1 -1
- package/esm/presentation/dashboard/DashboardSidebar/DraggableInsightList/DeleteInsightDialog.js +56 -20
- package/esm/presentation/dashboard/components/DashboardRenderer.d.ts.map +1 -1
- package/esm/presentation/dashboard/components/DashboardRenderer.js +1 -1
- package/esm/presentation/dashboard/hooks/useDashboard.d.ts +2 -2
- package/esm/presentation/dashboard/hooks/useDashboard.d.ts.map +1 -1
- package/esm/presentation/dashboard/hooks/useDashboard.js +8 -3
- package/esm/presentation/dashboard/types.d.ts +12 -1
- package/esm/presentation/dashboard/types.d.ts.map +1 -1
- package/esm/presentation/dashboardContexts/DashboardComponentsContext.d.ts +2 -2
- package/esm/presentation/dashboardContexts/DashboardComponentsContext.d.ts.map +1 -1
- package/esm/presentation/dashboardContexts/DashboardComponentsContext.js +1 -1
- package/esm/presentation/dashboardContexts/types.d.ts +13 -2
- package/esm/presentation/dashboardContexts/types.d.ts.map +1 -1
- package/esm/presentation/dragAndDrop/draggableDateFilter/DraggableDateFilter.d.ts +4 -4
- package/esm/presentation/dragAndDrop/draggableDateFilter/DraggableDateFilter.d.ts.map +1 -1
- package/esm/presentation/dragAndDrop/useFilterDeleteDrop.d.ts.map +1 -1
- package/esm/presentation/dragAndDrop/useFilterDeleteDrop.js +6 -4
- package/esm/presentation/drill/DrillSelect/DrillSelectDropdown.d.ts.map +1 -1
- package/esm/presentation/drill/DrillSelect/DrillSelectDropdown.js +10 -2
- package/esm/presentation/drill/DrillSelect/WithDrillSelect.d.ts.map +1 -1
- package/esm/presentation/drill/DrillSelect/WithDrillSelect.js +15 -7
- package/esm/presentation/filterBar/attributeFilter/addAttributeFilter/AttributesDropdown.d.ts.map +1 -1
- package/esm/presentation/filterBar/attributeFilter/addAttributeFilter/AttributesDropdown.js +62 -6
- package/esm/presentation/filterBar/attributeFilter/useDependentDateFilters.d.ts.map +1 -1
- package/esm/presentation/filterBar/attributeFilter/useDependentDateFilters.js +3 -2
- package/esm/presentation/filterBar/dateFilter/DefaultDashboardDateFilter.d.ts +2 -2
- package/esm/presentation/filterBar/dateFilter/DefaultDashboardDateFilter.d.ts.map +1 -1
- package/esm/presentation/filterBar/dateFilter/DefaultDashboardDateFilter.js +30 -14
- package/esm/presentation/filterBar/dateFilter/DefaultDashboardDateFilterComponentSetFactory.d.ts +2 -2
- package/esm/presentation/filterBar/dateFilter/DefaultDashboardDateFilterComponentSetFactory.d.ts.map +1 -1
- package/esm/presentation/filterBar/dateFilter/dateFilterOfAnyTypeProvider.d.ts +7 -0
- package/esm/presentation/filterBar/dateFilter/dateFilterOfAnyTypeProvider.d.ts.map +1 -0
- package/esm/presentation/filterBar/dateFilter/dateFilterOfAnyTypeProvider.js +40 -0
- package/esm/presentation/filterBar/dateFilter/types.d.ts +43 -1
- package/esm/presentation/filterBar/dateFilter/types.d.ts.map +1 -1
- package/esm/presentation/filterBar/filterBar/DefaultFilterBar.d.ts.map +1 -1
- package/esm/presentation/filterBar/filterBar/DefaultFilterBar.js +13 -5
- package/esm/presentation/filterBar/filterBar/DefaultFilterBarContainer.d.ts.map +1 -1
- package/esm/presentation/filterBar/filterBar/DefaultFilterBarContainer.js +3 -1
- package/esm/presentation/filterBar/filterBar/DefaultFilterBarItem.js +2 -2
- package/esm/presentation/filterBar/filterBar/ShowAllFiltersButton.d.ts.map +1 -1
- package/esm/presentation/filterBar/filterBar/ShowAllFiltersButton.js +1 -1
- package/esm/presentation/filterBar/filterBar/hooks/useResetFiltersButton.d.ts.map +1 -1
- package/esm/presentation/filterBar/filterBar/hooks/useResetFiltersButton.js +21 -3
- package/esm/presentation/filterBar/filterBar/types.d.ts +3 -3
- package/esm/presentation/filterBar/filterBar/types.d.ts.map +1 -1
- package/esm/presentation/filterBar/filterBar/useFiltersWithAddedPlaceholder.d.ts +3 -3
- package/esm/presentation/filterBar/filterBar/useFiltersWithAddedPlaceholder.d.ts.map +1 -1
- package/esm/presentation/filterBar/filterBar/useFiltersWithAddedPlaceholder.js +3 -3
- package/esm/presentation/filterBar/parameterFilter/DashboardParameterPicker.d.ts.map +1 -1
- package/esm/presentation/filterBar/parameterFilter/DashboardParameterPicker.js +11 -13
- package/esm/presentation/insightEditor/filterContext/dateFilters.d.ts.map +1 -1
- package/esm/presentation/insightEditor/filterContext/dateFilters.js +2 -1
- package/esm/presentation/localization/bundles/de-DE.localization-bundle.d.ts +2 -0
- package/esm/presentation/localization/bundles/de-DE.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/de-DE.localization-bundle.js +2 -0
- package/esm/presentation/localization/bundles/en-AU.localization-bundle.d.ts +2 -0
- package/esm/presentation/localization/bundles/en-AU.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/en-AU.localization-bundle.js +2 -0
- package/esm/presentation/localization/bundles/en-GB.localization-bundle.d.ts +2 -0
- package/esm/presentation/localization/bundles/en-GB.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/en-GB.localization-bundle.js +2 -0
- package/esm/presentation/localization/bundles/en-US.localization-bundle.d.ts +52 -0
- package/esm/presentation/localization/bundles/en-US.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/en-US.localization-bundle.js +52 -0
- package/esm/presentation/localization/bundles/es-419.localization-bundle.d.ts +2 -0
- package/esm/presentation/localization/bundles/es-419.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/es-419.localization-bundle.js +2 -0
- package/esm/presentation/localization/bundles/es-ES.localization-bundle.d.ts +2 -0
- package/esm/presentation/localization/bundles/es-ES.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/es-ES.localization-bundle.js +2 -0
- package/esm/presentation/localization/bundles/fi-FI.localization-bundle.d.ts +2 -0
- package/esm/presentation/localization/bundles/fi-FI.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/fi-FI.localization-bundle.js +2 -0
- package/esm/presentation/localization/bundles/fr-CA.localization-bundle.d.ts +2 -0
- package/esm/presentation/localization/bundles/fr-CA.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/fr-CA.localization-bundle.js +2 -0
- package/esm/presentation/localization/bundles/fr-FR.localization-bundle.d.ts +2 -0
- package/esm/presentation/localization/bundles/fr-FR.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/fr-FR.localization-bundle.js +2 -0
- package/esm/presentation/localization/bundles/id-ID.localization-bundle.d.ts +2 -0
- package/esm/presentation/localization/bundles/id-ID.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/id-ID.localization-bundle.js +2 -0
- package/esm/presentation/localization/bundles/it-IT.localization-bundle.d.ts +2 -0
- package/esm/presentation/localization/bundles/it-IT.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/it-IT.localization-bundle.js +2 -0
- package/esm/presentation/localization/bundles/ja-JP.localization-bundle.d.ts +2 -0
- package/esm/presentation/localization/bundles/ja-JP.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/ja-JP.localization-bundle.js +2 -0
- package/esm/presentation/localization/bundles/ko-KR.localization-bundle.d.ts +2 -0
- package/esm/presentation/localization/bundles/ko-KR.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/ko-KR.localization-bundle.js +2 -0
- package/esm/presentation/localization/bundles/nl-NL.localization-bundle.d.ts +2 -0
- package/esm/presentation/localization/bundles/nl-NL.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/nl-NL.localization-bundle.js +2 -0
- package/esm/presentation/localization/bundles/pl-PL.localization-bundle.d.ts +2 -0
- package/esm/presentation/localization/bundles/pl-PL.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/pl-PL.localization-bundle.js +2 -0
- package/esm/presentation/localization/bundles/pt-BR.localization-bundle.d.ts +2 -0
- package/esm/presentation/localization/bundles/pt-BR.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/pt-BR.localization-bundle.js +2 -0
- package/esm/presentation/localization/bundles/pt-PT.localization-bundle.d.ts +2 -0
- package/esm/presentation/localization/bundles/pt-PT.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/pt-PT.localization-bundle.js +2 -0
- package/esm/presentation/localization/bundles/ru-RU.localization-bundle.d.ts +2 -0
- package/esm/presentation/localization/bundles/ru-RU.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/ru-RU.localization-bundle.js +2 -0
- package/esm/presentation/localization/bundles/sl-SI.localization-bundle.d.ts +2 -0
- package/esm/presentation/localization/bundles/sl-SI.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/sl-SI.localization-bundle.js +2 -0
- package/esm/presentation/localization/bundles/th-TH.localization-bundle.d.ts +2 -0
- package/esm/presentation/localization/bundles/th-TH.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/th-TH.localization-bundle.js +2 -0
- package/esm/presentation/localization/bundles/tr-TR.localization-bundle.d.ts +2 -0
- package/esm/presentation/localization/bundles/tr-TR.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/tr-TR.localization-bundle.js +2 -0
- package/esm/presentation/localization/bundles/uk-UA.localization-bundle.d.ts +2 -0
- package/esm/presentation/localization/bundles/uk-UA.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/uk-UA.localization-bundle.js +2 -0
- package/esm/presentation/localization/bundles/vi-VN.localization-bundle.d.ts +2 -0
- package/esm/presentation/localization/bundles/vi-VN.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/vi-VN.localization-bundle.js +2 -0
- package/esm/presentation/localization/bundles/zh-HK.localization-bundle.d.ts +2 -0
- package/esm/presentation/localization/bundles/zh-HK.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/zh-HK.localization-bundle.js +3 -1
- package/esm/presentation/localization/bundles/zh-Hans.localization-bundle.d.ts +2 -0
- package/esm/presentation/localization/bundles/zh-Hans.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/zh-Hans.localization-bundle.js +2 -0
- package/esm/presentation/localization/bundles/zh-Hant.localization-bundle.d.ts +2 -0
- package/esm/presentation/localization/bundles/zh-Hant.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/zh-Hant.localization-bundle.js +2 -0
- package/esm/presentation/topBar/menuButton/DefaultMenuButton.d.ts.map +1 -1
- package/esm/presentation/topBar/menuButton/DefaultMenuButton.js +33 -6
- package/esm/presentation/topBar/timezoneIndicator/TimezoneIndicator.d.ts.map +1 -1
- package/esm/presentation/topBar/timezoneIndicator/TimezoneIndicator.js +2 -2
- package/esm/presentation/widget/description/DescriptionClickTrigger.d.ts.map +1 -1
- package/esm/presentation/widget/description/DescriptionClickTrigger.js +19 -3
- package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/DashboardInsightMenu/DashboardInsightMenuItemButton.d.ts.map +1 -1
- package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/DashboardInsightMenu/DashboardInsightMenuItemButton.js +19 -1
- package/esm/presentation/widget/widget/VisualizationSwitcherWidget/VisualizationSwitcherNavigationHeader.d.ts.map +1 -1
- package/esm/presentation/widget/widget/VisualizationSwitcherWidget/VisualizationSwitcherNavigationHeader.js +12 -5
- package/esm/sdk-ui-dashboard.d.ts +451 -16
- package/package.json +23 -23
- package/styles/css/filterBar.css +5 -0
- package/styles/css/filterBar.css.map +1 -1
- package/styles/css/main.css +6 -3
- package/styles/css/main.css.map +1 -1
- package/styles/css/timezoneIndicator.css +1 -3
- package/styles/css/timezoneIndicator.css.map +1 -1
- package/styles/scss/filterBar.scss +4 -0
- package/styles/scss/timezoneIndicator.scss +1 -3
- package/esm/assets/timezone.svg +0 -1
- package/esm/model/commandHandlers/parameters/customUrlDrillParametersWorker.d.ts +0 -3
- package/esm/model/commandHandlers/parameters/customUrlDrillParametersWorker.d.ts.map +0 -1
- package/esm/model/commandHandlers/parameters/customUrlDrillParametersWorker.js +0 -26
package/esm/index.js
CHANGED
|
@@ -29,7 +29,7 @@ export { DEFAULT_MAX_AUTOMATIONS } from "./model/react/useDashboardAutomations/c
|
|
|
29
29
|
export { selectAutomationCommonDateFilterId, selectAutomationAvailableDashboardFilters, selectAutomationDefaultSelectedFilters, selectAutomationFiltersByTab, selectExecutableDashboardFiltersWithoutCrossFiltering, selectDashboardHiddenFilters, selectDashboardLockedFilters, selectExecutableDashboardFilters, selectExecutableDashboardFiltersByTab, selectRestrictedDashboardFilterCount, selectRestrictedDashboardFilterLocalIdentifiers, selectRestrictedDashboardFilterLocalIdentifiersForTab, } from "./model/store/filtering/dashboardFilterSelectors.js";
|
|
30
30
|
export { InitialLoadCorrelationId, initializeDashboard, initializeDashboardWithPersistedDashboard, saveDashboardAs, saveDashboard, renameDashboard, resetDashboard, changeDashboardDefinition, exportDashboardToPdf, exportDashboardToExcel, exportDashboardToPdfPresentation, exportDashboardToPptPresentation, deleteDashboard, changeSharing, setDashboardDateFilterConfigMode, setDashboardDateFilterWithDimensionConfigMode, setDashboardAttributeFilterConfigMode, setDashboardAttributeFilterSelectionType, setDashboardMeasureValueFilterConfigMode, setDateFilterConfigTitle, setAttributeFilterLimitingItems, setDashboardAttributeFilterConfigDisplayAsLabel, changeIgnoreExecutionTimestamp, } from "./model/commands/dashboard.js";
|
|
31
31
|
export { triggerEvent } from "./model/commands/events.js";
|
|
32
|
-
export { changeDateFilterSelection, clearDateFilterSelection, addAttributeFilter, addTextAttributeFilter, moveAttributeFilter, removeAttributeFilter, removeAttributeFilters, addDateFilter, addMeasureValueFilter, removeMeasureValueFilter, removeMeasureValueFilters, removeDateFilter, removeRestrictedFilters, moveMeasureValueFilter, moveDateFilter, changeMeasureValueFilterCondition, setMeasureValueFilterDimensionality, resetAttributeFilterSelection, changeAttributeFilterSelection, changeMigratedAttributeFilterSelection, changeWorkingAttributeFilterSelection, changeWorkingMeasureValueFilterCondition, replaceAttributeFilterItemSelection, replaceWorkingAttributeFilterItemSelection, setAttributeFilterParents, changeFilterContextSelection, changeFilterContextSelectionByParams, applyAttributeFilter, applyDateFilter, setAttributeFilterDisplayForm, setAttributeFilterTitle, setMeasureValueFilterTitle, setAttributeFilterSelectionMode, setAttributeFilterDependentDateFilters, saveFilterView, deleteFilterView, applyFilterView, setFilterViewAsDefault, reloadFilterViews, applyFilterContextWorkingSelection, resetFilterContextWorkingSelection, } from "./model/commands/filters.js";
|
|
32
|
+
export { changeDateFilterSelection, changeDateFilterSelectionOfAnyType, clearDateFilterSelection, addAttributeFilter, addTextAttributeFilter, moveAttributeFilter, removeAttributeFilter, removeAttributeFilters, addDateFilter, addMeasureValueFilter, removeMeasureValueFilter, removeMeasureValueFilters, removeDateFilter, removeRestrictedFilters, moveMeasureValueFilter, moveDateFilter, changeMeasureValueFilterCondition, setMeasureValueFilterDimensionality, resetAttributeFilterSelection, changeAttributeFilterSelection, changeMigratedAttributeFilterSelection, changeWorkingAttributeFilterSelection, changeWorkingMeasureValueFilterCondition, replaceAttributeFilterItemSelection, replaceWorkingAttributeFilterItemSelection, setAttributeFilterParents, changeFilterContextSelection, changeFilterContextSelectionByParams, applyAttributeFilter, applyDateFilter, setAttributeFilterDisplayForm, setAttributeFilterTitle, setMeasureValueFilterTitle, setAttributeFilterSelectionMode, setAttributeFilterDependentDateFilters, saveFilterView, deleteFilterView, applyFilterView, setFilterViewAsDefault, reloadFilterViews, applyFilterContextWorkingSelection, resetFilterContextWorkingSelection, } from "./model/commands/filters.js";
|
|
33
33
|
export { addLayoutSection, addNestedLayoutSection, moveLayoutSection, moveNestedLayoutSection, removeLayoutSection, removeNestedLayoutSection, changeLayoutSectionHeader, changeNestedLayoutSectionHeader, addSectionItem, addNestedLayoutSectionItem, replaceSectionItem, replaceNestedLayoutSectionItem, moveSectionItem, moveNestedLayoutSectionItem, moveSectionItemAndRemoveOriginalSectionIfEmpty, moveNestedLayoutSectionItemAndRemoveOriginalSectionIfEmpty, moveSectionItemToNewSection, moveNestedLayoutSectionItemToNewSection, moveSectionItemToNewSectionAndRemoveOriginalSectionIfEmpty, moveNestedLayoutSectionItemToNewSectionAndRemoveOriginalSectionIfEmpty, removeSectionItem, removeNestedLayoutSectionItem, eagerRemoveSectionItem, eagerRemoveNestedLayoutSectionItem, removeSectionItemByWidgetRef, eagerRemoveSectionItemByWidgetRef, undoLayoutChanges, revertLastLayoutChange, resizeHeight, resizeNestedLayoutItemsHeight, resizeWidth, resizeNestedLayoutItemWidth, setScreenSize, toggleLayoutSectionHeaders, toggleLayoutDirection, } from "./model/commands/layout.js";
|
|
34
34
|
export { createAlert, saveAlert, } from "./model/commands/alerts.js";
|
|
35
35
|
export { createScheduledEmail, saveScheduledEmail, refreshAutomations, initializeAutomations, } from "./model/commands/scheduledEmail.js";
|
|
@@ -47,14 +47,14 @@ export { changeDashboardTimezoneOverride, } from "./model/commands/timezone.js";
|
|
|
47
47
|
export { addDrillTargets, } from "./model/commands/drillTargets.js";
|
|
48
48
|
export { setShowWidgetAsTable, } from "./model/commands/showWidgetAsTable.js";
|
|
49
49
|
export { switchDashboardTab, repositionDashboardTab, createDashboardTab, deleteDashboardTab, startRenamingDashboardTab, cancelRenamingDashboardTab, renameDashboardTab, } from "./model/commands/tabs.js";
|
|
50
|
-
export { changeParameterValues, } from "./model/commands/parameters.js";
|
|
50
|
+
export { changeParameterValues, addParameters, removeParameters, } from "./model/commands/parameters.js";
|
|
51
51
|
// Re-export from events
|
|
52
52
|
export { isDashboardEvent, isCustomDashboardEvent, isDashboardEventOrCustomDashboardEvent, } from "./model/events/base.js";
|
|
53
53
|
export { isDashboardSaved, isDashboardCopySaved, isDashboardInitialized, isDashboardDeinitialized, isDashboardRenamed, isDashboardWasReset, isDashboardDefinitionChanged, isDashboardDeleted, isDateFilterValidationFailed, isDashboardExportToPdfRequested, isDashboardExportToPdfResolved, isDashboardSharingChanged, isDashboardExportToExcelRequested, isDashboardExportToExcelResolved, isDashboardExportToPdfPresentationRequested, isDashboardExportToPdfPresentationResolved, isDashboardExportToPptPresentationResolved, isDashboardExportToPptPresentationRequested, isDashboardExportToImageRequested, isDashboardExportToImageResolved, isDashboardIgnoreExecutionTimestampChanged, } from "./model/events/dashboard.js";
|
|
54
54
|
export { dashboardTabSwitched, isDashboardTabSwitched, dashboardTabCreated, isDashboardTabCreated, dashboardTabDeleted, isDashboardTabDeleted, dashboardTabRenamingStarted, isDashboardTabRenamingStarted, dashboardTabRenamingCanceled, isDashboardTabRenamingCanceled, dashboardTabRenamed, isDashboardTabRenamed, } from "./model/events/tabs.js";
|
|
55
|
-
export { parametersSelectionReset, isDashboardParametersSelectionReset, parametersChanged, isDashboardParametersChanged, } from "./model/events/parameters.js";
|
|
55
|
+
export { parametersSelectionReset, isDashboardParametersSelectionReset, parametersChanged, isDashboardParametersChanged, parametersAdded, parametersRemoved, } from "./model/events/parameters.js";
|
|
56
56
|
export { isDashboardCommandStarted, isDashboardCommandFailed, isDashboardQueryFailed, isDashboardCommandRejected, isDashboardQueryCompleted, isDashboardQueryRejected, isDashboardQueryStarted, } from "./model/events/general.js";
|
|
57
|
-
export { isDashboardMeasureValueFilterAdded, isDashboardMeasureValueFilterRemoved, isDashboardMeasureValueFilterMoved, isDashboardMeasureValueFilterTitleChanged, isDashboardMeasureValueFilterConfigModeChanged, isDashboardMeasureValueFilterConditionChanged, isDashboardMeasureValueFilterDimensionalityChanged, isDashboardAttributeFilterAdded, isDashboardAttributeFilterMoved, isDashboardAttributeFilterParentChanged, isDashboardAttributeFilterRemoved, isDashboardAttributeFilterSelectionChanged, isDashboardAttributeFilterItemSelectionReplaced, isDashboardAttributeFilterSelectionModeChanged, isDashboardAttributeFilterTitleChanged, isDashboardDateFilterSelectionChanged, isDashboardFilterContextChanged, isDashboardAttributeFilterConfigModeChanged, isDashboardAttributeFilterConfigLimitingItemsChanged, isDashboardFilterViewCreationSucceeded, isDashboardFilterViewCreationFailed, isDashboardFilterViewDeletionSucceeded, isDashboardFilterViewDeletionFailed, isDashboardFilterViewApplicationSucceeded, isDashboardFilterViewApplicationFailed, isDashboardFilterViewDefaultStatusChangeSucceeded, isDashboardFilterViewDefaultStatusChangeFailed, isDashboardFilterContextSelectionReset, isDashboardFilterContextWorkingSelectionApplied, filterContextSelectionReset, filterContextWorkingSelectionApplied, } from "./model/events/filters.js";
|
|
57
|
+
export { isDashboardMeasureValueFilterAdded, isDashboardMeasureValueFilterRemoved, isDashboardMeasureValueFilterMoved, isDashboardMeasureValueFilterTitleChanged, isDashboardMeasureValueFilterConfigModeChanged, isDashboardMeasureValueFilterConditionChanged, isDashboardMeasureValueFilterDimensionalityChanged, isDashboardAttributeFilterAdded, isDashboardAttributeFilterMoved, isDashboardAttributeFilterParentChanged, isDashboardAttributeFilterRemoved, isDashboardAttributeFilterSelectionChanged, isDashboardAttributeFilterItemSelectionReplaced, isDashboardAttributeFilterSelectionModeChanged, isDashboardAttributeFilterTitleChanged, isDashboardDateFilterSelectionChanged, isDashboardDateFilterOfAnyTypeSelectionChanged, isDashboardDateFilterOfAnyTypeTitleChanged, isDashboardFilterContextChanged, isDashboardAttributeFilterConfigModeChanged, isDashboardAttributeFilterConfigLimitingItemsChanged, isDashboardFilterViewCreationSucceeded, isDashboardFilterViewCreationFailed, isDashboardFilterViewDeletionSucceeded, isDashboardFilterViewDeletionFailed, isDashboardFilterViewApplicationSucceeded, isDashboardFilterViewApplicationFailed, isDashboardFilterViewDefaultStatusChangeSucceeded, isDashboardFilterViewDefaultStatusChangeFailed, isDashboardFilterContextSelectionReset, isDashboardFilterContextWorkingSelectionApplied, filterContextSelectionReset, filterContextWorkingSelectionApplied, } from "./model/events/filters.js";
|
|
58
58
|
export { isDashboardLayoutChanged, isDashboardLayoutSectionAdded, isDashboardLayoutSectionHeaderChanged, isDashboardLayoutSectionItemMoved, isDashboardLayoutSectionItemMovedToNewSection, isDashboardLayoutSectionItemRemoved, isDashboardLayoutSectionItemReplaced, isDashboardLayoutSectionItemsAdded, isDashboardLayoutSectionMoved, isDashboardLayoutSectionRemoved, isScreenSizeChanged, isLayoutSectionHeadersToggled, isLayoutDirectionChanged, } from "./model/events/layout.js";
|
|
59
59
|
export { isDashboardKpiWidgetChanged, isDashboardKpiWidgetComparisonChanged, isDashboardKpiWidgetFilterSettingsChanged, isDashboardKpiWidgetHeaderChanged, isDashboardKpiWidgetDescriptionChanged, isDashboardKpiWidgetConfigurationChanged, isDashboardKpiWidgetMeasureChanged, isDashboardKpiWidgetDrillRemoved, isDashboardKpiWidgetDrillSet, } from "./model/events/kpi.js";
|
|
60
60
|
export { isDashboardInsightWidgetChanged, isDashboardInsightWidgetDrillsModified, isDashboardInsightWidgetDrillsRemoved, isDashboardInsightWidgetFilterSettingsChanged, isDashboardInsightWidgetHeaderChanged, isDashboardInsightWidgetDescriptionChanged, isDashboardInsightWidgetInsightSwitched, isDashboardInsightWidgetVisPropertiesChanged, isDashboardInsightWidgetVisConfigurationChanged, isDashboardInsightWidgetExportRequested, isDashboardInsightWidgetExportResolved, isDashboardInsightWidgetRefreshed, } from "./model/events/insight.js";
|
|
@@ -94,7 +94,7 @@ export { selectConfig, selectLocale, selectSeparators, selectSettings, selectCol
|
|
|
94
94
|
export { selectEntitlementMaxAutomationRecipients, selectEntitlementMaxAutomations, selectEntitlementMinimumRecurrenceMinutes, selectEntitlementUnlimitedAutomations, selectEntitlementUnlimitedAutomationRecipients, selectMaxAutomationRecipients, } from "./model/store/entitlements/entitlementsSelectors.js";
|
|
95
95
|
export { selectPermissions, selectCanListUsersInWorkspace, selectCanManageWorkspace, selectCanExportReport, selectCanExportTabular, selectCanExportPdf, selectCanCreateAnalyticalDashboard, selectCanManageACL, selectCanManageAnalyticalDashboard, selectCanCreateScheduledMail, selectCanInitData, selectCanUploadNonProductionCSV, selectCanExecuteRaw, selectCanCreateVisualization, selectCanManageMetric, selectCanManageDomain, selectCanInviteUserToWorkspace, selectCanRefreshData, selectCanManageScheduledMail, selectCanManageAttributeHierarchy, selectCanCreateFilterView, selectCanCreateAutomation, selectCanUseAiAssistant, } from "./model/store/permissions/permissionsSelectors.js";
|
|
96
96
|
export { selectCanViewDashboardPermission, selectCanShareDashboardPermission, selectCanShareLockedDashboardPermission, selectCanEditDashboardPermission, selectCanEditLockedDashboardPermission, selectDashboardPermissions, } from "./model/store/dashboardPermissions/dashboardPermissionsSelectors.js";
|
|
97
|
-
export { selectFilterContextDefinition, selectFilterContextIdentity, selectFilterContextFilters, selectFiltersByTab, selectFilterContextDateFilter, selectFilterContextDateFiltersWithDimension, selectFilterContextAttributeFilters, selectFilterContextAttributeFilterItems, selectFilterContextMeasureValueFilters, selectWorkingFilterContextDefinition, selectWorkingFilterContextFilters, selectWorkingFilterContextAttributeFilters, selectWorkingFilterContextAttributeFilterItems, selectWorkingFilterContextDateFilter, selectWorkingFilterContextDateFiltersWithDimension, selectIsWorkingFilterContextChanged, selectOtherContextAttributeFilters, selectOtherContextAttributeFilterItems, selectAttributeFilterDisplayFormsMap, selectAttributeFilterDisplayForms, selectFilterContextAttributeFilterByLocalId, selectFilterContextAttributeFilterItemByLocalId, selectFilterContextAttributeFilterByDisplayForm, selectFilterContextAttributeFilterItemByDisplayForm, selectOriginalFilterContextDefinition, selectOriginalFilterContextFilters, selectOriginalFilterContextFiltersByTab, selectFiltersWithInvalidSelection, selectAttributeFilterDescendants, selectAttributeFilterDisplayFormByLocalId, selectAttributeFilterItemDisplayFormByLocalId, selectFilterContextAttributeFilterIndexByLocalId, selectFilterContextAttributeFilterItemIndexByLocalId, selectIsCircularDependency, selectCanAddMoreAttributeFilters, selectCanAddMoreFilters, selectFilterContextDraggableFilters, selectFilterContextDraggableFilterItems, selectIsAttributeFilterDependentByLocalIdentifier, selectIsAttributeFilterDependentByLocalIdentifierForTab, selectFilterContextDateFilterByDataSet, selectPreloadedAttributesWithReferences, selectDefaultFilterOverrides, selectNamesOfFiltersWithInvalidSelection, selectFiltersForTab, selectFilterContextAttributeFiltersForTab, selectFilterContextAttributeFilterItemsForTab, selectFilterContextAttributeFilterByDisplayFormForTab, selectFilterContextAttributeFilterItemByDisplayFormForTab, selectFilterContextAttributeFilterByLocalIdForTab, selectFilterContextAttributeFilterItemByLocalIdForTab, selectFilterContextDateFiltersWithDimensionForTab, selectFilterContextDateFilterForTab, selectFilterContextDateFilterByDataSetForTab, selectWorkingFilterContextAttributeFiltersForTab, selectWorkingFilterContextAttributeFilterItemsForTab, selectWorkingFilterContextDateFiltersWithDimensionForTab, selectWorkingFilterContextDateFilterForTab, } from "./model/store/tabs/filterContext/filterContextSelectors.js";
|
|
97
|
+
export { selectFilterContextDefinition, selectFilterContextIdentity, selectFilterContextFilters, selectFiltersByTab, selectFilterContextDateFilter, selectFilterContextDateFiltersWithDimension, selectFilterContextAttributeFilters, selectFilterContextAttributeFilterItems, selectFilterContextMeasureValueFilters, selectWorkingFilterContextDefinition, selectWorkingFilterContextFilters, selectWorkingFilterContextAttributeFilters, selectWorkingFilterContextAttributeFilterItems, selectWorkingFilterContextDateFilter, selectWorkingFilterContextDateFiltersWithDimension, selectIsWorkingFilterContextChanged, selectOtherContextAttributeFilters, selectOtherContextAttributeFilterItems, selectAttributeFilterDisplayFormsMap, selectAttributeFilterDisplayForms, selectFilterContextAttributeFilterByLocalId, selectFilterContextAttributeFilterItemByLocalId, selectFilterContextAttributeFilterByDisplayForm, selectFilterContextAttributeFilterItemByDisplayForm, selectOriginalFilterContextDefinition, selectOriginalFilterContextFilters, selectOriginalFilterContextFiltersByTab, selectFiltersWithInvalidSelection, selectAttributeFilterDescendants, selectAttributeFilterDisplayFormByLocalId, selectAttributeFilterItemDisplayFormByLocalId, selectFilterContextAttributeFilterIndexByLocalId, selectFilterContextAttributeFilterItemIndexByLocalId, selectIsCircularDependency, selectCanAddMoreAttributeFilters, selectCanAddMoreFilters, selectFilterContextDraggableFilters, selectFilterContextDraggableFilterItems, selectIsAttributeFilterDependentByLocalIdentifier, selectIsAttributeFilterDependentByLocalIdentifierForTab, selectFilterContextDateFilterByDataSet, selectPreloadedAttributesWithReferences, selectDefaultFilterOverrides, selectNamesOfFiltersWithInvalidSelection, selectFiltersForTab, selectFilterContextAttributeFiltersForTab, selectFilterContextAttributeFilterItemsForTab, selectFilterContextAttributeFilterByDisplayFormForTab, selectFilterContextAttributeFilterItemByDisplayFormForTab, selectFilterContextAttributeFilterByLocalIdForTab, selectFilterContextAttributeFilterItemByLocalIdForTab, selectFilterContextDateFiltersWithDimensionForTab, selectFilterContextDateFilterForTab, selectFilterContextDateFilterByDataSetForTab, selectWorkingFilterContextAttributeFiltersForTab, selectWorkingFilterContextAttributeFilterItemsForTab, selectWorkingFilterContextDateFiltersWithDimensionForTab, selectWorkingFilterContextDateFilterForTab, selectFilterContextDateFilterOfAnyType, selectWorkingFilterContextDateFilterOfAnyType, } from "./model/store/tabs/filterContext/filterContextSelectors.js";
|
|
98
98
|
export { getFilterIdentifier } from "./model/store/tabs/filterContext/filterContextUtils.js";
|
|
99
99
|
export { generateMeasureValueFilterLocalIdentifier } from "./model/store/_infra/generators.js";
|
|
100
100
|
export { selectImplicitDrillsDownByWidgetRef, selectConfiguredDrillsByWidgetRef, selectDrillableItemsByWidgetRef, selectConfiguredAndImplicitDrillsByWidgetRef, selectValidConfiguredDrillsByWidgetRef, selectImplicitDrillsByAvailableDrillTargets, selectDrillableItemsByAvailableDrillTargets, selectImplicitDrillsToUrlByWidgetRef, selectDrillsToUrlAttributeByWidgetRef, selectGlobalDrillsDownAttributeHierarchyByWidgetRef, } from "./model/store/widgetDrills/widgetDrillSelectors.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KdaDialog.d.ts","sourceRoot":"","sources":["../../../src/kdaDialog/dialog/KdaDialog.tsx"],"names":[],"mappings":"AAmBA,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"KdaDialog.d.ts","sourceRoot":"","sources":["../../../src/kdaDialog/dialog/KdaDialog.tsx"],"names":[],"mappings":"AAmBA,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,aAAa,CAAC;AAmBnD;;GAEG;AACH,wBAAgB,SAAS,CAAC,EACtB,SAAS,EACT,eAAsB,EACtB,uBAAuB,EACvB,OAAO,EACP,QAAQ,EACR,cAAc,GACjB,EAAE,eAAe,2CAyHjB"}
|
|
@@ -19,7 +19,7 @@ import { useCloseOnEscape } from "./hooks/useCloseOnEscape.js";
|
|
|
19
19
|
import { useKdaDialogAccessibility } from "./hooks/useKdaDialogAccessibility.js";
|
|
20
20
|
import { useValidAttributes } from "./hooks/useValidAttributes.js";
|
|
21
21
|
import { KdaDialogControls } from "./KdaDialogControls.js";
|
|
22
|
-
import { KdaDialogFloatingStatusBar, getFloatingStatus } from "./KdaDialogFloatingStatusBar.js";
|
|
22
|
+
import { KdaDialogFloatingStatusBar, KdaDialogStatusAnnouncer, getFloatingStatus, } from "./KdaDialogFloatingStatusBar.js";
|
|
23
23
|
import { KdaDialogSections } from "./KdaDialogSections.js";
|
|
24
24
|
const overlayController = OverlayController.getInstance(KDA_DIALOG_OVERS_Z_INDEX);
|
|
25
25
|
const KDA_DIALOG_MINIMIZED_DATA_TEST_ID = "kda-dialog-minimized";
|
|
@@ -47,14 +47,18 @@ export function KdaDialog({ className, showCloseButton = true, parentOverlayCont
|
|
|
47
47
|
useChangeAnalysis();
|
|
48
48
|
useValidAttributes();
|
|
49
49
|
const closeOnEscape = useCloseOnEscape();
|
|
50
|
-
return (
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
50
|
+
return (_jsxs(OverlayControllerProvider, { overlayController: effectiveOverlayController, children: [_jsx(KdaDialogStatusAnnouncer, { dialogTitle: accessibilityConfig.title, status: status, isMinimized: isMinimized }), isMinimized ? (_jsx(Dialog, { autofocusOnOpen: true, initialFocus: accessibilityConfig.descriptionElementId, className: cx(dialogBaseClassName, "gd-kda-dialog--minimized", {
|
|
51
|
+
[`gd-kda-dialog--minimized--${status}`]: true,
|
|
52
|
+
}), closeOnEscape: false, isModal: false, alignPoints: minimizedAlignPoints, accessibilityConfig: {
|
|
53
|
+
...accessibilityConfig,
|
|
54
|
+
titleElementId: accessibilityConfig.labelElementId,
|
|
55
|
+
title: undefined,
|
|
56
|
+
}, displayCloseButton: displayCloseButton, onClose: onClose, CloseButton: KdaDialogControls, dataTestId: KDA_DIALOG_MINIMIZED_DATA_TEST_ID, children: _jsx(KdaDialogFloatingStatusBar, { labelElementId: accessibilityConfig.labelElementId, dialogTitle: accessibilityConfig.title, descriptionElementId: accessibilityConfig.descriptionElementId, status: status, onClose: onClose }) })) : (_jsx(Dialog, { className: cx(dialogBaseClassName, "gd-kda-dialog--expanded"), closeOnEscape: closeOnEscape, isModal: true, accessibilityConfig: {
|
|
57
|
+
...accessibilityConfig,
|
|
58
|
+
title: undefined,
|
|
59
|
+
// The visible header title names the expanded dialog. It is not used as
|
|
60
|
+
// a description, so the header controls do not repeat it on every focus.
|
|
61
|
+
titleElementId: accessibilityConfig.descriptionElementId,
|
|
62
|
+
descriptionElementId: undefined,
|
|
63
|
+
}, displayCloseButton: displayCloseButton, onClose: onClose, CloseButton: KdaDialogControls, dataTestId: KDA_DIALOG_EXPANDED_DATA_TEST_ID, children: _jsx(KdaDialogSections, { header: _jsx(KdaHeader, { titleId: accessibilityConfig.descriptionElementId, title: accessibilityConfig.title, bars: _jsxs(_Fragment, { children: [_jsx(MetricsBar, {}), _jsx(FiltersBar, {})] }) }), content: _jsx(KdaContent, { contentError: (err) => (_jsx(KdaErrorComponent, { type: KdaErrorType.Items, error: err })), leftContent: _jsx(KeyDriversPanel, { detailsId: detailsId }), leftLoader: _jsx(KeyDriversPanel, { detailsId: detailsId, loading: true }), rightContent: _jsx(KeyDriversOverview, { detailsId: detailsId }), rightLoader: _jsx(KeyDriversOverview, { loading: true }), rightError: (err) => (_jsx(KdaErrorComponent, { type: KdaErrorType.Details, error: err })) }), footer: _jsx(KdaFooter, { content: _jsx(KeyDriversFooter, {}), onClose: onClose }) }) }))] }));
|
|
60
64
|
}
|
|
@@ -11,6 +11,23 @@ interface IKdaDialogFloatingStatusBarProps {
|
|
|
11
11
|
* @internal
|
|
12
12
|
*/
|
|
13
13
|
export declare function KdaDialogFloatingStatusBar({ onClose, status, labelElementId, dialogTitle, descriptionElementId, }: IKdaDialogFloatingStatusBarProps): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
interface IKdaDialogStatusAnnouncerProps {
|
|
15
|
+
dialogTitle: string;
|
|
16
|
+
status: KdaFloatingStatus;
|
|
17
|
+
isMinimized: boolean;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Live regions announcing when the analysis finishes while the dialog is minimized.
|
|
21
|
+
* Completion is announced politely (`role="status"`), failure assertively (`role="alert"`).
|
|
22
|
+
*
|
|
23
|
+
* They must be rendered outside the dialog overlay, so that they are in the accessibility tree for the whole
|
|
24
|
+
* life of the analysis, independently of the overlay mounting, positioning and minimizing / expanding.
|
|
25
|
+
* Both regions stay mounted all the time. The text is set once per completion and cleared when a new
|
|
26
|
+
* computation starts, so the same text is never re-inserted while nothing changes.
|
|
27
|
+
*
|
|
28
|
+
* @internal
|
|
29
|
+
*/
|
|
30
|
+
export declare function KdaDialogStatusAnnouncer({ dialogTitle, status, isMinimized, }: IKdaDialogStatusAnnouncerProps): import("react/jsx-runtime").JSX.Element;
|
|
14
31
|
export declare function getFloatingStatus(relevantStatus: KdaAsyncStatus, itemsStatus: KdaAsyncStatus, selectedStatus: KdaAsyncStatus): KdaFloatingStatus;
|
|
15
32
|
export {};
|
|
16
33
|
//# sourceMappingURL=KdaDialogFloatingStatusBar.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KdaDialogFloatingStatusBar.d.ts","sourceRoot":"","sources":["../../../src/kdaDialog/dialog/KdaDialogFloatingStatusBar.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"KdaDialogFloatingStatusBar.d.ts","sourceRoot":"","sources":["../../../src/kdaDialog/dialog/KdaDialogFloatingStatusBar.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAI1D,KAAK,iBAAiB,GAAG,QAAQ,GAAG,QAAQ,GAAG,MAAM,GAAG,OAAO,CAAC;AAShE,UAAU,gCAAgC;IACtC,cAAc,EAAE,MAAM,CAAC;IACvB,WAAW,EAAE,MAAM,CAAC;IACpB,oBAAoB,EAAE,MAAM,CAAC;IAC7B,MAAM,EAAE,iBAAiB,CAAC;IAC1B,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACxB;AAED;;GAEG;AACH,wBAAgB,0BAA0B,CAAC,EACvC,OAAO,EACP,MAAM,EACN,cAAc,EACd,WAAW,EACX,oBAAoB,GACvB,EAAE,gCAAgC,2CAyBlC;AAUD,UAAU,8BAA8B;IACpC,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,iBAAiB,CAAC;IAC1B,WAAW,EAAE,OAAO,CAAC;CACxB;AASD;;;;;;;;;;GAUG;AACH,wBAAgB,wBAAwB,CAAC,EACrC,WAAW,EACX,MAAM,EACN,WAAW,GACd,EAAE,8BAA8B,2CAkChC;AAYD,wBAAgB,iBAAiB,CAC7B,cAAc,EAAE,cAAc,EAC9B,WAAW,EAAE,cAAc,EAC3B,cAAc,EAAE,cAAc,GAC/B,iBAAiB,CAgBnB"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
1
|
+
import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
// (C) 2025-2026 GoodData Corporation
|
|
3
|
+
import { useEffect, useRef, useState } from "react";
|
|
3
4
|
import { defineMessages, useIntl } from "react-intl";
|
|
4
5
|
import { LoadingSpinner, UiIcon } from "@gooddata/sdk-ui-kit";
|
|
5
6
|
import { KdaDialogActionButtons } from "./KdaDialogActionButtons.js";
|
|
@@ -15,7 +16,48 @@ const floatingStatusMessages = defineMessages({
|
|
|
15
16
|
export function KdaDialogFloatingStatusBar({ onClose, status, labelElementId, dialogTitle, descriptionElementId, }) {
|
|
16
17
|
const intl = useIntl();
|
|
17
18
|
const statusText = intl.formatMessage(floatingStatusMessages[status]);
|
|
18
|
-
return (_jsxs("div", { className: "gd-kda-floating-status-bar", children: [_jsx("span", { id: labelElementId, className: "sr-only", children: dialogTitle }),
|
|
19
|
+
return (_jsxs("div", { className: "gd-kda-floating-status-bar", children: [_jsx("span", { id: labelElementId, className: "sr-only", children: dialogTitle }), _jsxs("div", { className: "gd-kda-floating-status-bar__content", children: [_jsx(StatusIndicator, { status: status }), _jsx("p", { className: "gd-kda-floating-status-bar__text", id: descriptionElementId, tabIndex: 0, children: statusText })] }), _jsx(KdaDialogActionButtons, { size: "small", status: status, titleElementId: descriptionElementId, toggleAriaDescribedBy: `${labelElementId} ${descriptionElementId}`, onClose: onClose })] }));
|
|
20
|
+
}
|
|
21
|
+
const announcementMessages = defineMessages({
|
|
22
|
+
announcement: { id: "kdaDialog.floatingStatus.announcement" },
|
|
23
|
+
});
|
|
24
|
+
function isFinishedStatus(status) {
|
|
25
|
+
return status === "done" || status === "error";
|
|
26
|
+
}
|
|
27
|
+
const EMPTY_ANNOUNCEMENT = { text: "", isError: false };
|
|
28
|
+
/**
|
|
29
|
+
* Live regions announcing when the analysis finishes while the dialog is minimized.
|
|
30
|
+
* Completion is announced politely (`role="status"`), failure assertively (`role="alert"`).
|
|
31
|
+
*
|
|
32
|
+
* They must be rendered outside the dialog overlay, so that they are in the accessibility tree for the whole
|
|
33
|
+
* life of the analysis, independently of the overlay mounting, positioning and minimizing / expanding.
|
|
34
|
+
* Both regions stay mounted all the time. The text is set once per completion and cleared when a new
|
|
35
|
+
* computation starts, so the same text is never re-inserted while nothing changes.
|
|
36
|
+
*
|
|
37
|
+
* @internal
|
|
38
|
+
*/
|
|
39
|
+
export function KdaDialogStatusAnnouncer({ dialogTitle, status, isMinimized, }) {
|
|
40
|
+
const intl = useIntl();
|
|
41
|
+
const [announcement, setAnnouncement] = useState(EMPTY_ANNOUNCEMENT);
|
|
42
|
+
const previousStatus = useRef(status);
|
|
43
|
+
useEffect(() => {
|
|
44
|
+
const wasFinished = isFinishedStatus(previousStatus.current);
|
|
45
|
+
previousStatus.current = status;
|
|
46
|
+
if (!isFinishedStatus(status)) {
|
|
47
|
+
setAnnouncement(EMPTY_ANNOUNCEMENT);
|
|
48
|
+
return;
|
|
49
|
+
}
|
|
50
|
+
if (!wasFinished && isMinimized) {
|
|
51
|
+
setAnnouncement({
|
|
52
|
+
text: intl.formatMessage(announcementMessages.announcement, {
|
|
53
|
+
title: dialogTitle,
|
|
54
|
+
status: intl.formatMessage(floatingStatusMessages[status]),
|
|
55
|
+
}),
|
|
56
|
+
isError: status === "error",
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
}, [status, isMinimized, dialogTitle, intl]);
|
|
60
|
+
return (_jsxs(_Fragment, { children: [_jsx("div", { className: "sr-only", role: "status", "aria-live": "polite", "aria-atomic": "true", children: announcement.isError ? "" : announcement.text }), _jsx("div", { className: "sr-only", role: "alert", "aria-atomic": "true", children: announcement.isError ? announcement.text : "" })] }));
|
|
19
61
|
}
|
|
20
62
|
function StatusIndicator({ status }) {
|
|
21
63
|
if (status === "error") {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DashboardTester.d.ts","sourceRoot":"","sources":["../../src/model/DashboardTester.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAGtD,OAAO,EACH,KAAK,qBAAqB,EAI7B,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAAE,KAAK,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACtE,OAAO,EAAE,KAAK,UAAU,EAAsB,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"DashboardTester.d.ts","sourceRoot":"","sources":["../../src/model/DashboardTester.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAGtD,OAAO,EACH,KAAK,qBAAqB,EAI7B,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAAE,KAAK,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACtE,OAAO,EAAE,KAAK,UAAU,EAAsB,MAAM,qBAAqB,CAAC;AAI1E,OAAO,EAAE,KAAK,6BAA6B,EAAE,MAAM,mCAAmC,CAAC;AACvF,OAAO,EAAE,KAAK,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAC/D,OAAO,EAAE,KAAK,mBAAmB,EAAuB,MAAM,yBAAyB,CAAC;AACxF,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAM3D,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,EAAE,iBAAiB,EAAiC,MAAM,0CAA0C,CAAC;AAC5G,OAAO,EAAE,KAAK,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AAC7E,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,EACH,KAAK,eAAe,EACpB,KAAK,gBAAgB,EACrB,KAAK,8BAA8B,EACtC,MAAM,wBAAwB,CAAC;AAEhC,KAAK,qBAAqB,GAAG;IACzB,aAAa,CAAC,EAAE,sBAAsB,CAAC,GAAG,EAAE,GAAG,CAAC,EAAE,CAAC;IACnD,qBAAqB,CAAC,EAAE,6BAA6B,CAAC;IACtD,gBAAgB,CAAC,EAAE,8BAA8B,CAAC;CACrD,CAAC;AAEF,qBAAa,eAAgB,SAAQ,iBAAiB;IAClD,SAAgB,GAAG,EAAE,gBAAgB,CAAC;IAEtC,SAAS,aAAa,GAAG,EAAE,gBAAgB,EAAE,MAAM,CAAC,EAAE,qBAAqB,EAY1E;IAED;;;;;OAKG;IACH,OAAc,YAAY,CACtB,UAAU,EAAE,UAAU,EACtB,YAAY,CAAC,EAAE,qBAAqB,EACpC,aAAa,CAAC,EAAE,qBAAqB,EACrC,kBAAkB,CAAC,EAAE,OAAO,CAAC,oBAAoB,CAAC,GACnD,eAAe,CAqBjB;IAED;;;;OAIG;IACH,OAAc,eAAe,CACzB,YAAY,CAAC,EAAE,qBAAqB,EACpC,aAAa,CAAC,EAAE,qBAAqB,EACrC,aAAa,CAAC,EAAE,eAAe,GAChC,eAAe,CAcjB;IAED;;;;;OAKG;IACI,IAAI,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAM1C;IAED;;OAEG;IACI,iBAAiB,IAAI,aAAa,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,CAE5D;IAED;;;;;;;;OAQG;IACI,UAAU,CACb,WAAW,EAAE,aAAa,CAAC,kBAAkB,GAAG,oBAAoB,GAAG,MAAM,CAAC,EAC9E,OAAO,GAAE,MAAa,GACvB,OAAO,CAAC,GAAG,CAAC,CAad;IAED;;;;;OAKG;IACI,aAAa,IAAI,aAAa,CAAC,eAAe,CAAC,CAErD;IAED;;;OAGG;IACI,aAAa,IAAI,IAAI,CAI3B;IAED;;OAEG;IACa,KAAK,IAAI,cAAc,CAEtC;IAED;;;;;OAKG;IACI,mBAAmB,IAAI,aAAa,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,aAAa,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAuBpF;CACJ;AAED,MAAM,WAAW,uBAAuB;IACpC;;;;OAIG;IACH,WAAW,CAAC,EAAE,mBAAmB,CAAC;IAElC;;;;OAIG;IACH,aAAa,CAAC,EAAE,qBAAqB,CAAC;IAEtC;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAC,oBAAoB,CAAC,CAAC;IAEnD;;;;;;OAMG;IACH,aAAa,CAAC,EAAE,sBAAsB,CAAC,GAAG,EAAE,GAAG,CAAC,EAAE,CAAC;IAEnD;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,8BAA8B,CAAC;IAElD;;;;;OAKG;IACH,yBAAyB,CAAC,EAAE,eAAe,CAAC;CAC/C;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,wBAAsB,sBAAsB,CACxC,QAAQ,EAAE,CAAC,MAAM,EAAE,eAAe,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,EAC3D,UAAU,CAAC,EAAE,UAAU,EACvB,OAAO,GAAE,uBAA4B,iBAsCxC"}
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
import { ReferenceRecordings } from "@gooddata/reference-workspace";
|
|
3
3
|
import { defaultRecordedBackendCapabilities, objRefsToStringKey, recordedBackend, } from "@gooddata/sdk-backend-mockingbird";
|
|
4
4
|
import { idRef } from "@gooddata/sdk-model";
|
|
5
|
-
import { newCustomUrlDrillParametersWorker } from "./commandHandlers/parameters/customUrlDrillParametersWorker.js";
|
|
6
5
|
import { newParameterDependenciesWorker } from "./commandHandlers/parameters/parameterDependenciesWorker.js";
|
|
7
6
|
import { newRenderingWorker } from "./commandHandlers/render/renderingWorker.js";
|
|
8
7
|
import { initializeDashboard } from "./commands/dashboard.js";
|
|
@@ -16,7 +15,6 @@ export class DashboardTester extends HeadlessDashboard {
|
|
|
16
15
|
backgroundWorkers: [
|
|
17
16
|
newRenderingWorker(config?.renderingWorkerConfig || {}),
|
|
18
17
|
newParameterDependenciesWorker(),
|
|
19
|
-
newCustomUrlDrillParametersWorker(),
|
|
20
18
|
],
|
|
21
19
|
customizationFns: config?.customizationFns,
|
|
22
20
|
};
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
+
import { type SagaIterator } from "redux-saga";
|
|
1
2
|
import { type IDrillToCustomUrl, type IInsightWidget } from "@gooddata/sdk-model";
|
|
2
3
|
interface IInvalidParamsInfo {
|
|
3
4
|
widget: IInsightWidget;
|
|
4
5
|
invalidDrills: IDrillToCustomUrl[];
|
|
5
6
|
}
|
|
7
|
+
export declare function revalidateDrillToCustomUrlParams(): SagaIterator<void>;
|
|
6
8
|
export declare function validateDrillToCustomUrlParams(widgets: IInsightWidget[]): Generator<import("redux-saga/effects").AllEffect<import("redux-saga/effects").CallEffect<IInvalidParamsInfo>> | import("redux-saga/effects").PutEffect<{
|
|
7
9
|
payload: IInsightWidget[];
|
|
8
10
|
type: "uiSlice/resetInvalidCustomUrlDrillParameterWidget";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validateDrillToCustomUrlParams.d.ts","sourceRoot":"","sources":["../../../../src/model/commandHandlers/common/validateDrillToCustomUrlParams.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"validateDrillToCustomUrlParams.d.ts","sourceRoot":"","sources":["../../../../src/model/commandHandlers/common/validateDrillToCustomUrlParams.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,YAAY,CAAC;AAG/C,OAAO,EAGH,KAAK,iBAAiB,EAEtB,KAAK,cAAc,EAWtB,MAAM,qBAAqB,CAAC;AAyB7B,UAAU,kBAAkB;IACxB,MAAM,EAAE,cAAc,CAAC;IACvB,aAAa,EAAE,iBAAiB,EAAE,CAAC;CACtC;AAED,wBAAiB,gCAAgC,IAAI,YAAY,CAAC,IAAI,CAAC,CAGtE;AAGD,wBAAiB,8BAA8B,CAAC,OAAO,EAAE,cAAc,EAAE;;;;;;;;;gCAqBxE"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// (C) 2022-2026 GoodData Corporation
|
|
2
2
|
import { all, call, put, select } from "redux-saga/effects";
|
|
3
|
-
import { areObjRefsEqual, dashboardAttributeFilterItemToAttributeFilter, filterObjRef, isArbitraryAttributeFilter, isAttributeFilter, isDrillToCustomUrl, isMatchAttributeFilter, isNegativeAttributeFilter, widgetRef, } from "@gooddata/sdk-model";
|
|
3
|
+
import { areObjRefsEqual, dashboardAttributeFilterItemToAttributeFilter, filterObjRef, isArbitraryAttributeFilter, isAttributeFilter, isDrillToCustomUrl, isInsightWidget, isMatchAttributeFilter, isNegativeAttributeFilter, widgetRef, } from "@gooddata/sdk-model";
|
|
4
4
|
import { displayFormPlaceholderRef, getUnknownParameterIdentifiers } from "@gooddata/sdk-model/internal";
|
|
5
5
|
import { queryWidgetFilters } from "../../queries/widgets.js";
|
|
6
6
|
import { query } from "../../store/_infra/queryCall.js";
|
|
@@ -8,11 +8,16 @@ import { selectAllCatalogDisplayFormsMap } from "../../store/catalog/catalogSele
|
|
|
8
8
|
import { selectDrillTargetsByWidgetRef } from "../../store/drillTargets/drillTargetsSelectors.js";
|
|
9
9
|
import { selectAttributeFilterConfigsOverrides } from "../../store/tabs/attributeFilterConfigs/attributeFilterConfigsSelectors.js";
|
|
10
10
|
import { selectFilterContextAttributeFilterItems } from "../../store/tabs/filterContext/filterContextSelectors.js";
|
|
11
|
+
import { selectAllAnalyticalWidgets } from "../../store/tabs/layout/layoutSelectors.js";
|
|
11
12
|
import { selectWidgetParameterValues, } from "../../store/tabs/parameters/parametersSelectors.js";
|
|
12
13
|
import { uiActions } from "../../store/ui/index.js";
|
|
13
14
|
import { selectIsDrillRestricted } from "../../store/widgetDrills/drillRestrictionSelectors.js";
|
|
14
15
|
import { extractDashboardFilterDisplayFormIdentifiers, extractDisplayFormIdentifiers, extractInsightFilterDisplayFormIdentifiers, } from "../widgets/validation/insightDrillDefinitionUtils.js";
|
|
15
16
|
import { isDisplayFormRelevantToDrill } from "./isDisplayFormRelevantToDrill.js";
|
|
17
|
+
export function* revalidateDrillToCustomUrlParams() {
|
|
18
|
+
const widgets = yield select(selectAllAnalyticalWidgets);
|
|
19
|
+
yield call(validateDrillToCustomUrlParams, widgets.filter(isInsightWidget));
|
|
20
|
+
}
|
|
16
21
|
//
|
|
17
22
|
export function* validateDrillToCustomUrlParams(widgets) {
|
|
18
23
|
const possibleInvalidDrills = yield all(widgets.map((widget) => call(validateWidgetDrillToCustomUrlParams, widget)));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"changeDashboardDefinitionHandler.d.ts","sourceRoot":"","sources":["../../../../src/model/commandHandlers/dashboard/changeDashboardDefinitionHandler.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"changeDashboardDefinitionHandler.d.ts","sourceRoot":"","sources":["../../../../src/model/commandHandlers/dashboard/changeDashboardDefinitionHandler.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,YAAY,CAAC;AAsB/C,OAAO,EAAE,KAAK,0BAA0B,EAAE,MAAM,6BAA6B,CAAC;AAC9E,OAAO,EAAE,KAAK,2BAA2B,EAA8B,MAAM,2BAA2B,CAAC;AAgBzG,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAiDnE,wBAAiB,gCAAgC,CAC7C,GAAG,EAAE,gBAAgB,EACrB,GAAG,EAAE,0BAA0B,GAChC,YAAY,CAAC,2BAA2B,CAAC,CA2J3C"}
|
|
@@ -3,7 +3,8 @@ import { uniqWith } from "lodash-es";
|
|
|
3
3
|
import { batchActions } from "redux-batched-actions";
|
|
4
4
|
import { call, put, select } from "redux-saga/effects";
|
|
5
5
|
import { areObjRefsEqual, } from "@gooddata/sdk-model";
|
|
6
|
-
import {
|
|
6
|
+
import { ABSOLUTE_GRANULARITY_DATE_FILTER_WITH_DATA_SET_NOT_SUPPORTED, dashboardContainsAbsoluteGranularityDateFilterWithDataSet, } from "../../../_staging/dashboard/absoluteGranularityDateFilters.js";
|
|
7
|
+
import { PARAMETERIZED_DATE_FILTER_NOT_SUPPORTED, dashboardContainsParameterizedDateFilter, } from "../../../_staging/dashboard/parameterizedDateFilters.js";
|
|
7
8
|
import { deriveAbsoluteFormGranularitiesFromRelativeForm } from "../../../_staging/dateFilterConfig/merge.js";
|
|
8
9
|
import { dashboardDefinitionChanged } from "../../events/dashboard.js";
|
|
9
10
|
import { invalidArgumentsProvided } from "../../events/general.js";
|
|
@@ -43,8 +44,11 @@ export function* changeDashboardDefinitionHandler(ctx, cmd) {
|
|
|
43
44
|
enablePersistentFiltersAcrossTabs: currentDescriptor.enablePersistentFiltersAcrossTabs,
|
|
44
45
|
}
|
|
45
46
|
: cmd.payload.dashboard;
|
|
46
|
-
if (
|
|
47
|
-
throw invalidArgumentsProvided(ctx, cmd,
|
|
47
|
+
if (dashboardContainsAbsoluteGranularityDateFilterWithDataSet(dashboard)) {
|
|
48
|
+
throw invalidArgumentsProvided(ctx, cmd, ABSOLUTE_GRANULARITY_DATE_FILTER_WITH_DATA_SET_NOT_SUPPORTED);
|
|
49
|
+
}
|
|
50
|
+
if (dashboardContainsParameterizedDateFilter(dashboard)) {
|
|
51
|
+
throw invalidArgumentsProvided(ctx, cmd, PARAMETERIZED_DATE_FILTER_NOT_SUPPORTED);
|
|
48
52
|
}
|
|
49
53
|
const effectiveReferences = providedReferences ?? (payloadInsights ? { insights: [...payloadInsights] } : {});
|
|
50
54
|
const providedInsights = effectiveReferences.insights ?? [];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"changeDateFilterTitleHandler.d.ts","sourceRoot":"","sources":["../../../../src/model/commandHandlers/dashboard/changeDateFilterTitleHandler.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"changeDateFilterTitleHandler.d.ts","sourceRoot":"","sources":["../../../../src/model/commandHandlers/dashboard/changeDateFilterTitleHandler.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,YAAY,CAAC;AAM/C,OAAO,EAAE,KAAK,yBAAyB,EAAE,MAAM,6BAA6B,CAAC;AAW7E,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAGnE,wBAAiB,4BAA4B,CACzC,GAAG,EAAE,gBAAgB,EACrB,GAAG,EAAE,yBAAyB,GAC/B,YAAY,CAAC,IAAI,CAAC,CAiEpB"}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
// (C) 2022-2026 GoodData Corporation
|
|
2
2
|
import { call, put, select } from "redux-saga/effects";
|
|
3
3
|
import { invariant } from "ts-invariant";
|
|
4
|
-
import {
|
|
4
|
+
import { isDashboardDateFilter } from "@gooddata/sdk-model";
|
|
5
|
+
import { dateFilterOfAnyTypeTitleChanged, dateFilterTitleChanged } from "../../events/filters.js";
|
|
5
6
|
import { invalidArgumentsProvided } from "../../events/general.js";
|
|
6
7
|
import { dispatchDashboardEvent } from "../../store/_infra/eventDispatcher.js";
|
|
7
8
|
import { selectDateFilterConfigOverrides } from "../../store/tabs/dateFilterConfig/dateFilterConfigSelectors.js";
|
|
8
9
|
import { selectDateFilterConfigsOverrides } from "../../store/tabs/dateFilterConfigs/dateFilterConfigsSelectors.js";
|
|
9
|
-
import {
|
|
10
|
+
import { selectFilterContextDateFilterByDataSet, selectFilterContextDateFilterOfAnyType, } from "../../store/tabs/filterContext/filterContextSelectors.js";
|
|
10
11
|
import { tabsActions } from "../../store/tabs/index.js";
|
|
11
12
|
import { dispatchFilterContextChanged } from "../filterContext/common.js";
|
|
12
13
|
export function* changeDateFilterTitleHandler(ctx, cmd) {
|
|
@@ -24,14 +25,18 @@ export function* changeDateFilterTitleHandler(ctx, cmd) {
|
|
|
24
25
|
invariant(changedFilter, "Inconsistent state in changeDateFilterTitleHandler, cannot update date filter for given data set.");
|
|
25
26
|
invariant(changedFilterConfig, "Inconsistent state in changeDateFilterTitleHandler, cannot update date filter config for given data set.");
|
|
26
27
|
yield dispatchDashboardEvent(dateFilterTitleChanged(ctx, changedFilter, changedFilterConfig.config));
|
|
28
|
+
yield dispatchDashboardEvent(dateFilterOfAnyTypeTitleChanged(ctx, changedFilter, changedFilterConfig.config));
|
|
27
29
|
}
|
|
28
30
|
else {
|
|
29
31
|
yield put(tabsActions.setDateFilterConfigTitle(cmd.payload.title));
|
|
30
|
-
const changedFilter = yield select(
|
|
32
|
+
const changedFilter = yield select(selectFilterContextDateFilterOfAnyType);
|
|
31
33
|
const changedFilterConfig = yield select(selectDateFilterConfigOverrides);
|
|
32
34
|
invariant(changedFilter, "Inconsistent state in changeDateFilterTitleHandler, cannot update common date filter.");
|
|
33
35
|
invariant(changedFilterConfig, "Inconsistent state in changeDateFilterTitleHandler, cannot update common date filter config.");
|
|
34
|
-
|
|
36
|
+
if (isDashboardDateFilter(changedFilter)) {
|
|
37
|
+
yield dispatchDashboardEvent(dateFilterTitleChanged(ctx, changedFilter, changedFilterConfig));
|
|
38
|
+
}
|
|
39
|
+
yield dispatchDashboardEvent(dateFilterOfAnyTypeTitleChanged(ctx, changedFilter, changedFilterConfig));
|
|
35
40
|
}
|
|
36
41
|
yield call(dispatchFilterContextChanged, ctx, cmd);
|
|
37
42
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filterViews.d.ts","sourceRoot":"","sources":["../../../../../src/model/commandHandlers/dashboard/common/filterViews.ts"],"names":[],"mappings":"AAEA,OAAO,EACH,KAAK,wBAAwB,EAC7B,KAAK,8BAA8B,EACtC,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAGH,KAAK,iBAAiB,EACtB,KAAK,UAAU,EAGf,KAAK,+BAA+B,EAEpC,KAAK,oBAAoB,EAGzB,KAAK,cAAc,EACnB,KAAK,MAAM,
|
|
1
|
+
{"version":3,"file":"filterViews.d.ts","sourceRoot":"","sources":["../../../../../src/model/commandHandlers/dashboard/common/filterViews.ts"],"names":[],"mappings":"AAEA,OAAO,EACH,KAAK,wBAAwB,EAC7B,KAAK,8BAA8B,EACtC,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAGH,KAAK,iBAAiB,EACtB,KAAK,UAAU,EAGf,KAAK,+BAA+B,EAEpC,KAAK,oBAAoB,EAGzB,KAAK,cAAc,EACnB,KAAK,MAAM,EAsBd,MAAM,qBAAqB,CAAC;AAW7B,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAgQvD,KAAK,oBAAoB,GAAG;IAAE,cAAc,EAAE,MAAM,GAAG,SAAS,CAAA;CAAE,CAAC;AAkBnE,UAAU,6BAA6B;IACnC,aAAa,EAAE,cAAc,CAAC;IAC9B,aAAa,EAAE,GAAG,CAAC,MAAM,EAAE,oBAAoB,CAAC,CAAC;CACpD;AAED,eAAO,MAAM,4BAA4B,kBACtB,cAAc,qBACV,iBAAiB,EAAE,8BACV,WAAW,CAAC,MAAM,CAAC,2BACtB,+BAA+B,EAAE,KAC3D,6BAqKF,CAAC;AAIF;;GAEG;AACH,MAAM,WAAW,8BAA8B;IAC3C;;;OAGG;IACH,QAAQ,CAAC,wBAAwB,CAAC,EAAE,OAAO,CAAC;IAC5C;;OAEG;IACH,QAAQ,CAAC,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAC3C;;;;OAIG;IACH,QAAQ,CAAC,wBAAwB,CAAC,EAAE,wBAAwB,EAAE,CAAC;CAClE;AAED;;;;;GAKG;AACH,wBAAgB,mCAAmC,CAC/C,SAAS,EAAE,UAAU,EACrB,WAAW,EAAE,oBAAoB,EAAE,EACnC,UAAU,EAAE,UAAU,EACtB,OAAO,EAAE,8BAA8B,GACxC,OAAO,CAUT;AAED;;;;GAIG;AACH,wBAAgB,wBAAwB,CACpC,WAAW,EAAE,oBAAoB,EAAE,EACnC,kBAAkB,EAAE,MAAM,EAC1B,UAAU,EAAE,OAAO,GACpB,oBAAoB,GAAG,SAAS,CAQlC;AAuBD;;;;GAIG;AACH,wBAAgB,mCAAmC,CAC/C,SAAS,EAAE,UAAU,EACrB,WAAW,EAAE,oBAAoB,EAAE,EACnC,QAAQ,EAAE,MAAM,GAAG,SAAS,EAC5B,kBAAkB,EAAE,aAAa,CAAC,8BAA8B,CAAC,EACjE,UAAU,EAAE,UAAU,EACtB,OAAO,CAAC,EAAE,8BAA8B,GACzC,UAAU,CAIZ;AAED,wBAAgB,sBAAsB,CAClC,SAAS,EAAE,UAAU,EACrB,WAAW,EAAE,oBAAoB,EAAE,EACnC,QAAQ,EAAE,MAAM,GAAG,SAAS,EAC5B,kBAAkB,EAAE,aAAa,CAAC,8BAA8B,CAAC,EACjE,OAAO,GAAE,8BAAmC,GAC7C,UAAU,CAuDZ"}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
// (C) 2024-2026 GoodData Corporation
|
|
2
|
-
import { areObjRefsEqual, dashboardAttributeFilterItemDisplayForm, dashboardAttributeFilterItemFilterElementsBy, dashboardAttributeFilterItemFilterElementsByDate, dashboardAttributeFilterItemLocalIdentifier, dashboardAttributeFilterItemTitle, dashboardAttributeFilterItemValidateElementsBy, dashboardFilterLocalIdentifier, dashboardMeasureValueFilterLocalIdentifier, isDashboardArbitraryAttributeFilter, isDashboardAttributeFilter, isDashboardAttributeFilterItem,
|
|
2
|
+
import { areObjRefsEqual, dashboardAttributeFilterItemDisplayForm, dashboardAttributeFilterItemFilterElementsBy, dashboardAttributeFilterItemFilterElementsByDate, dashboardAttributeFilterItemLocalIdentifier, dashboardAttributeFilterItemTitle, dashboardAttributeFilterItemValidateElementsBy, dashboardFilterLocalIdentifier, dashboardMeasureValueFilterLocalIdentifier, isDashboardAbsoluteGranularityDateFilter, isDashboardArbitraryAttributeFilter, isDashboardAttributeFilter, isDashboardAttributeFilterItem, isDashboardCommonDateFilterOfAnyType, isDashboardDateFilter, isDashboardMatchAttributeFilter, isDashboardMeasureValueFilter, isDashboardTextAttributeFilter, isExportOverrideFilterContext, isFilterContext, isSingleSelectionFilter, } from "@gooddata/sdk-model";
|
|
3
3
|
import { _isEqual, _omit } from "@gooddata/util";
|
|
4
|
-
import {
|
|
4
|
+
import { ABSOLUTE_GRANULARITY_DATE_FILTER_WITH_DATA_SET_NOT_SUPPORTED, containsAbsoluteGranularityDateFilterWithDataSet, } from "../../../../_staging/dashboard/absoluteGranularityDateFilters.js";
|
|
5
|
+
import { PARAMETERIZED_DATE_FILTER_NOT_SUPPORTED, containsDashboardParameterizedDateFilter, } from "../../../../_staging/dashboard/parameterizedDateFilters.js";
|
|
5
6
|
import { filterLocalIdentifiers } from "../../../store/filtering/dashboardFilterSelectors.js";
|
|
6
7
|
import { getRestrictedDashboardFilters } from "../../../store/filtering/restrictedFilterUtils.js";
|
|
7
|
-
import { applyMirroredFilterValue, findCounterpartFilter, targetAcceptsAttributeFilterValue, } from "../../../store/tabs/filterContext/filterSync.js";
|
|
8
|
+
import { applyMirroredFilterValue, findCounterpartFilter, targetAcceptsAttributeFilterValue, withCommonDateFilterLocalIdentifier, } from "../../../store/tabs/filterContext/filterSync.js";
|
|
8
9
|
import { isFilterTypeCompatibleWithSelectionType } from "../../../utils/attributeFilterSelectionTypeCompatibility.js";
|
|
9
10
|
const findMatchingAttributeFilterByLocalIdentifier = (filter, viewFilters) => viewFilters.find((item) => isDashboardAttributeFilter(item) &&
|
|
10
11
|
item.attributeFilter.localIdentifier === filter.attributeFilter.localIdentifier);
|
|
@@ -105,7 +106,7 @@ const createResetTextFilter = (filter) => {
|
|
|
105
106
|
},
|
|
106
107
|
};
|
|
107
108
|
};
|
|
108
|
-
const isCommonDateFilter = (filter) =>
|
|
109
|
+
const isCommonDateFilter = (filter) => isDashboardCommonDateFilterOfAnyType(filter);
|
|
109
110
|
const handleCommonDateFilter = (filterContextFilters, filterViewFilters, mergedFilters) => {
|
|
110
111
|
// If common date is set to All, it is not included in filter context filters.
|
|
111
112
|
// Common filter differs from date filters by not having date dataset (it is provided by widget).
|
|
@@ -168,11 +169,20 @@ function applyConfigUpdates(configs, updates) {
|
|
|
168
169
|
export const changeFilterContextSelection = (filterContext, filterViewFilters, restrictedLocalIdentifiers, attributeFilterConfigs) => {
|
|
169
170
|
const configsMap = new Map((attributeFilterConfigs ?? []).map((config) => [config.localIdentifier, config]));
|
|
170
171
|
const configUpdates = new Map();
|
|
172
|
+
const viewCommonDateFilter = filterViewFilters.find(isDashboardCommonDateFilterOfAnyType);
|
|
171
173
|
const mergedFilters = filterContext.filters.map((filter) => {
|
|
172
174
|
// a restricted filter keeps its stored value
|
|
173
175
|
if (restrictedLocalIdentifiers.has(dashboardFilterLocalIdentifier(filter) ?? "")) {
|
|
174
176
|
return filter;
|
|
175
177
|
}
|
|
178
|
+
// whole periods replace the filter as a whole, the common filter without one in the view is removed below
|
|
179
|
+
if (isDashboardCommonDateFilterOfAnyType(filter) &&
|
|
180
|
+
(isDashboardAbsoluteGranularityDateFilter(filter) ||
|
|
181
|
+
isDashboardAbsoluteGranularityDateFilter(viewCommonDateFilter))) {
|
|
182
|
+
return viewCommonDateFilter
|
|
183
|
+
? withCommonDateFilterLocalIdentifier(viewCommonDateFilter, dashboardFilterLocalIdentifier(filter))
|
|
184
|
+
: filter;
|
|
185
|
+
}
|
|
176
186
|
if (isDashboardAttributeFilter(filter)) {
|
|
177
187
|
const filterLocalId = filter.attributeFilter.localIdentifier;
|
|
178
188
|
const filterConfig = filterLocalId ? configsMap.get(filterLocalId) : undefined;
|
|
@@ -329,8 +339,12 @@ export function findTabDefaultFilterView(filterViews, tabLocalIdentifier, isFirs
|
|
|
329
339
|
* A default view the dashboard cannot apply in full is skipped, so the dashboard opens with its own filters.
|
|
330
340
|
*/
|
|
331
341
|
function supportedDefaultFilterView(view) {
|
|
332
|
-
if (view &&
|
|
333
|
-
console.warn(`The default filter view "${view.name}" was not applied. ${
|
|
342
|
+
if (view && containsAbsoluteGranularityDateFilterWithDataSet(view.filterContext.filters)) {
|
|
343
|
+
console.warn(`The default filter view "${view.name}" was not applied. ${ABSOLUTE_GRANULARITY_DATE_FILTER_WITH_DATA_SET_NOT_SUPPORTED}`);
|
|
344
|
+
return undefined;
|
|
345
|
+
}
|
|
346
|
+
if (view && containsDashboardParameterizedDateFilter(view.filterContext.filters)) {
|
|
347
|
+
console.warn(`The default filter view "${view.name}" was not applied. ${PARAMETERIZED_DATE_FILTER_NOT_SUPPORTED}`);
|
|
334
348
|
return undefined;
|
|
335
349
|
}
|
|
336
350
|
return view;
|
|
@@ -447,14 +461,12 @@ function mirrorTabSelection(sourceBefore, sourceAfter, target, filterView, unava
|
|
|
447
461
|
.filter((filter) => !isCommonDateFilter(filter))
|
|
448
462
|
.map((filter) => replacements.get(filter) ?? filter);
|
|
449
463
|
// the common date filter is all time when it is absent, so it is shared even without a counterpart
|
|
450
|
-
const sourceCommonDate = sourceAfter.filterContext.filters.find(
|
|
451
|
-
const targetCommonDate = target.filterContext.filters.find(
|
|
464
|
+
const sourceCommonDate = sourceAfter.filterContext.filters.find(isDashboardCommonDateFilterOfAnyType);
|
|
465
|
+
const targetCommonDate = target.filterContext.filters.find(isDashboardCommonDateFilterOfAnyType);
|
|
452
466
|
const commonDate = sourceCommonDate
|
|
453
467
|
? targetCommonDate
|
|
454
468
|
? applyMirroredFilterValue(sourceCommonDate, targetCommonDate)
|
|
455
|
-
:
|
|
456
|
-
dateFilter: _omit(sourceCommonDate.dateFilter, ["localIdentifier"]),
|
|
457
|
-
}
|
|
469
|
+
: withCommonDateFilterLocalIdentifier(sourceCommonDate, undefined)
|
|
458
470
|
: undefined;
|
|
459
471
|
return {
|
|
460
472
|
...withParameters,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"overrideFiltersAcrossTabs.d.ts","sourceRoot":"","sources":["../../../../../src/model/commandHandlers/dashboard/common/overrideFiltersAcrossTabs.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,wBAAwB,EAAE,MAAM,2BAA2B,CAAC;AAC1E,OAAO,EAEH,KAAK,iBAAiB,EACtB,KAAK,+BAA+B,EACpC,KAAK,0BAA0B,EAC/B,KAAK,8BAA8B,EACnC,KAAK,kCAAkC,EAQ1C,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EACH,KAAK,2BAA2B,EAChC,KAAK,gBAAgB,EAExB,MAAM,oEAAoE,CAAC;
|
|
1
|
+
{"version":3,"file":"overrideFiltersAcrossTabs.d.ts","sourceRoot":"","sources":["../../../../../src/model/commandHandlers/dashboard/common/overrideFiltersAcrossTabs.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,wBAAwB,EAAE,MAAM,2BAA2B,CAAC;AAC1E,OAAO,EAEH,KAAK,iBAAiB,EACtB,KAAK,+BAA+B,EACpC,KAAK,0BAA0B,EAC/B,KAAK,8BAA8B,EACnC,KAAK,kCAAkC,EAQ1C,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EACH,KAAK,2BAA2B,EAChC,KAAK,gBAAgB,EAExB,MAAM,oEAAoE,CAAC;AAS5E;;;;;;GAMG;AACH,UAAU,kBAAkB;IACxB,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAC;IACjC,QAAQ,CAAC,aAAa,CAAC,EAAE;QAAE,QAAQ,CAAC,OAAO,EAAE,SAAS,iBAAiB,EAAE,CAAA;KAAE,CAAC;IAC5E,QAAQ,CAAC,sBAAsB,CAAC,EAAE,+BAA+B,EAAE,CAAC;IACpE,QAAQ,CAAC,gBAAgB,CAAC,EAAE,0BAA0B,CAAC;IACvD,QAAQ,CAAC,iBAAiB,CAAC,EAAE,8BAA8B,EAAE,CAAC;IAC9D,QAAQ,CAAC,yBAAyB,CAAC,EAAE,kCAAkC,EAAE,CAAC;CAC7E;AAED;;;;;;;;GAQG;AACH,wBAAgB,2BAA2B,CACvC,IAAI,EAAE,SAAS,kBAAkB,EAAE,EACnC,eAAe,EAAE,iBAAiB,EAAE,GAAG,SAAS,EAChD,wBAAwB,EAAE,MAAM,GAAG,SAAS,EAC5C,wBAAwB,EAAE,OAAO,EACjC,wBAAwB,CAAC,EAAE,wBAAwB,EAAE,GACtD,MAAM,CAAC,MAAM,EAAE,iBAAiB,EAAE,GAAG,SAAS,CAAC,CA4BjD;AAED;;;;;;;;;GASG;AACH,wBAAgB,6BAA6B,CACzC,eAAe,EAAE,iBAAiB,EAAE,EACpC,eAAe,EAAE,iBAAiB,EAAE,EACpC,MAAM,EAAE,2BAA2B,GACpC;IAAE,aAAa,EAAE,iBAAiB,EAAE,CAAC;IAAC,iBAAiB,EAAE,gBAAgB,EAAE,CAAA;CAAE,CAU/E"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// (C) 2026 GoodData Corporation
|
|
2
|
-
import { DashboardDateFilterConfigModeValues, isDashboardArbitraryAttributeFilter, isDashboardAttributeFilter, isDashboardAttributeFilterItem,
|
|
2
|
+
import { DashboardDateFilterConfigModeValues, isDashboardArbitraryAttributeFilter, isDashboardAttributeFilter, isDashboardAttributeFilterItem, isDashboardCommonDateFilterOfAnyType, isDashboardMatchAttributeFilter, isNoopAllTimeDashboardDateFilter, } from "@gooddata/sdk-model";
|
|
3
3
|
import { mergeFilterContextFilters, } from "../../../../_staging/dashboard/dashboardFilterContextValidation.js";
|
|
4
|
-
import { applyMirroredFilterValue, findCounterpartFilter, targetAcceptsAttributeFilterValue, } from "../../../store/tabs/filterContext/filterSync.js";
|
|
4
|
+
import { applyMirroredFilterValue, findCounterpartFilter, targetAcceptsAttributeFilterValue, withCommonDateFilterLocalIdentifier, } from "../../../store/tabs/filterContext/filterSync.js";
|
|
5
5
|
/**
|
|
6
6
|
* Override filters to merge into each tab.
|
|
7
7
|
*
|
|
@@ -54,11 +54,11 @@ export function mergeDashboardOverrideFilters(originalFilters, overrideFilters,
|
|
|
54
54
|
};
|
|
55
55
|
}
|
|
56
56
|
function applyCommonDateOverride(mergedFilters, overrideFilters, dateFilterConfig) {
|
|
57
|
-
const incoming = overrideFilters.find(
|
|
57
|
+
const incoming = overrideFilters.find(isDashboardCommonDateFilterOfAnyType);
|
|
58
58
|
if (!incoming || isDateFilterLocked(dateFilterConfig)) {
|
|
59
59
|
return mergedFilters;
|
|
60
60
|
}
|
|
61
|
-
const current = mergedFilters.find(
|
|
61
|
+
const current = mergedFilters.find(isDashboardCommonDateFilterOfAnyType);
|
|
62
62
|
if (current) {
|
|
63
63
|
return mergedFilters.map((filter) => filter === current ? applyMirroredFilterValue(incoming, current) : filter);
|
|
64
64
|
}
|
|
@@ -78,8 +78,8 @@ function retargetOverrideFilters(source, target, overrideFilters, attributesWith
|
|
|
78
78
|
const targetState = toTabState(target);
|
|
79
79
|
const targetFilters = filtersOf(target);
|
|
80
80
|
return overrideFilters.flatMap((override) => {
|
|
81
|
-
if (
|
|
82
|
-
const targetDate = targetFilters.find(
|
|
81
|
+
if (isDashboardCommonDateFilterOfAnyType(override)) {
|
|
82
|
+
const targetDate = targetFilters.find(isDashboardCommonDateFilterOfAnyType);
|
|
83
83
|
if (targetDate) {
|
|
84
84
|
return [applyMirroredFilterValue(override, targetDate)];
|
|
85
85
|
}
|
|
@@ -87,8 +87,7 @@ function retargetOverrideFilters(source, target, overrideFilters, attributesWith
|
|
|
87
87
|
return [];
|
|
88
88
|
}
|
|
89
89
|
// The target is all time, so it has no local identifier to keep.
|
|
90
|
-
|
|
91
|
-
return [{ dateFilter }];
|
|
90
|
+
return [withCommonDateFilterLocalIdentifier(override, undefined)];
|
|
92
91
|
}
|
|
93
92
|
const counterpart = findCounterpartFilter(sourceState, override, targetState, attributesWithReferences);
|
|
94
93
|
if (!counterpart ||
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/model/commandHandlers/dashboard/initializeDashboardHandler/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,WAAW,EAAgB,MAAM,uBAAuB,CAAC;AACvE,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,YAAY,CAAC;AAG/C,OAAO,EACH,KAAK,wBAAwB,EAIhC,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACH,KAAK,UAAU,EAKf,KAAK,sBAAsB,EAG3B,KAAK,MAAM,EAOd,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/model/commandHandlers/dashboard/initializeDashboardHandler/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,WAAW,EAAgB,MAAM,uBAAuB,CAAC;AACvE,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,YAAY,CAAC;AAG/C,OAAO,EACH,KAAK,wBAAwB,EAIhC,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACH,KAAK,UAAU,EAKf,KAAK,sBAAsB,EAG3B,KAAK,MAAM,EAOd,MAAM,qBAAqB,CAAC;AAW7B,OAAO,EAAE,KAAK,mBAAmB,EAAE,MAAM,gCAAgC,CAAC;AA0B1E,OAAO,EACH,KAAK,gBAAgB,EAGxB,MAAM,+BAA+B,CAAC;AA+JvC,KAAK,0BAA0B,GAAG;IAC9B,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,wBAAwB,EAAE,wBAAwB,EAAE,CAAC;CACxD,CAAC;AAiZF,wBAAiB,cAAc,CAAC,GAAG,EAAE,gBAAgB,EAAE,GAAG,EAAE,mBAAmB;;;uIAyB9E;AAuCD;;;;GAIG;AACH,wBAAiB,2BAA2B,CACxC,GAAG,EAAE,gBAAgB,EACrB,SAAS,EAAE,UAAU,EACrB,SAAS,CAAC,EAAE,0BAA0B;;;0IAiBzC;AAED,wBAAiB,qBAAqB,CAAC,GAAG,EAAE,gBAAgB,sNAW3D;AAqCD,wBAAiB,0BAA0B,CAAC,GAAG,EAAE,gBAAgB,EAAE,GAAG,EAAE,mBAAmB,GAAG,YAAY,CA0CzG"}
|
|
@@ -5,7 +5,8 @@ import { walkLayout, } from "@gooddata/sdk-backend-spi";
|
|
|
5
5
|
import { areObjRefsEqual, isDrillToInsight, isInsightWidget, isVisualizationSwitcherWidget, objRefToString, serializeObjRef, } from "@gooddata/sdk-model";
|
|
6
6
|
import { _uniqBy } from "@gooddata/util";
|
|
7
7
|
import { createDisplayFormMap, createDisplayFormMapFromCatalog, } from "../../../../_staging/catalog/displayFormMap.js";
|
|
8
|
-
import {
|
|
8
|
+
import { assertNoAbsoluteGranularityDateFilterWithDataSetInDashboards } from "../../../../_staging/dashboard/absoluteGranularityDateFilters.js";
|
|
9
|
+
import { assertNoParameterizedDateFilterInDashboards } from "../../../../_staging/dashboard/parameterizedDateFilters.js";
|
|
9
10
|
import { deriveAbsoluteFormGranularitiesFromRelativeForm } from "../../../../_staging/dateFilterConfig/merge.js";
|
|
10
11
|
import { changeDashboardTimezoneOverride } from "../../../commands/timezone.js";
|
|
11
12
|
import { dashboardInitialized } from "../../../events/dashboard.js";
|
|
@@ -188,7 +189,8 @@ function* loadExistingDashboard(ctx, cmd, dashboardRef) {
|
|
|
188
189
|
];
|
|
189
190
|
const [dashboardWithReferences, { resolvedConfig: config, additionalData: { workspaceAutomationsCount, notificationChannelsCount }, }, permissions, entitlements, user, dashboardPermissions, dateHierarchyTemplates, filterViews, exportTimezone, automationTimezone,] = yield all(calls);
|
|
190
191
|
const { dashboard: loadedDashboard, references: { insights, unavailable }, } = dashboardWithReferences;
|
|
191
|
-
|
|
192
|
+
assertNoAbsoluteGranularityDateFilterWithDataSetInDashboards([loadedDashboard, cmd.payload.persistedDashboard], ctx.config?.overrideDefaultFilters);
|
|
193
|
+
assertNoParameterizedDateFilterInDashboards([loadedDashboard, cmd.payload.persistedDashboard], ctx.config?.overrideDefaultFilters);
|
|
192
194
|
// must be in the store before filter sanitization/resolution so they can keep forbidden refs;
|
|
193
195
|
// FF off => nothing is ever marked unavailable and behavior is unchanged
|
|
194
196
|
const unavailableReferences = yield call(loadUnavailableReferences, ctx, loadedDashboard, unavailable, Boolean(config.settings?.enableDashboardPartialRendering), !!cmd.payload.persistedDashboard);
|
|
@@ -265,7 +267,8 @@ function* loadExistingDashboard(ctx, cmd, dashboardRef) {
|
|
|
265
267
|
}
|
|
266
268
|
function* initializeNewDashboard(ctx, cmd) {
|
|
267
269
|
const { backend } = ctx;
|
|
268
|
-
|
|
270
|
+
assertNoAbsoluteGranularityDateFilterWithDataSetInDashboards([], ctx.config?.overrideDefaultFilters);
|
|
271
|
+
assertNoParameterizedDateFilterInDashboards([], ctx.config?.overrideDefaultFilters);
|
|
269
272
|
const [{ resolvedConfig: config, additionalData: { notificationChannelsCount, workspaceAutomationsCount }, loadedCatalog, }, permissions, entitlements, user, listedDashboards, dateHierarchyTemplates, , exportTimezone,] = yield all([
|
|
270
273
|
// the catalog load rides along with the config resolution because its computed-attributes
|
|
271
274
|
// part is feature-flag dependent - see resolveDashboardConfigAndFeatureFlagDependentCalls
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// (C) 2021-2026 GoodData Corporation
|
|
2
2
|
import { filterMeasureRef, insightFilters, insightMeasures, isAbsoluteGranularityDateFilter, isAttributeFilter, isDateFilterOfAnyType, isMeasureValueFilter, isParameterizedDateFilter, isRankingFilter, } from "@gooddata/sdk-model";
|
|
3
|
-
import {
|
|
3
|
+
import { ABSOLUTE_GRANULARITY_DATE_FILTER_DRILL_TO_DASHBOARD_NOT_SUPPORTED } from "../../../../_staging/dashboard/absoluteGranularityDateFilters.js";
|
|
4
4
|
import { PARAMETERIZED_DATE_FILTER_NOT_SUPPORTED } from "../../../../_staging/dashboard/parameterizedDateFilters.js";
|
|
5
5
|
import { getSourceMeasureFiltersForDrillDefinition, isMatchingSourceInsightFilter, resolveSourceMeasureRef, } from "../../../../_staging/drills/drillingUtils.js";
|
|
6
6
|
export function getIncludedSourceInsightFilters(sourceInsight, includedSourceInsightFiltersObjRefs) {
|
|
@@ -33,7 +33,7 @@ export function getIncludedSourceFiltersForDashboard(sourceInsight, drillDefinit
|
|
|
33
33
|
}
|
|
34
34
|
function isSourceFilterSupportedByDashboard(filter) {
|
|
35
35
|
if (isAbsoluteGranularityDateFilter(filter)) {
|
|
36
|
-
console.warn(
|
|
36
|
+
console.warn(`${ABSOLUTE_GRANULARITY_DATE_FILTER_DRILL_TO_DASHBOARD_NOT_SUPPORTED} Skipping a source insight filter.`, filter);
|
|
37
37
|
return false;
|
|
38
38
|
}
|
|
39
39
|
if (isParameterizedDateFilter(filter)) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"drillToDashboardHandler.d.ts","sourceRoot":"","sources":["../../../../src/model/commandHandlers/drill/drillToDashboardHandler.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"drillToDashboardHandler.d.ts","sourceRoot":"","sources":["../../../../src/model/commandHandlers/drill/drillToDashboardHandler.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,YAAY,CAAC;AAqC/C,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAEjE,OAAO,EACH,KAAK,kCAAkC,EAG1C,MAAM,uBAAuB,CAAC;AAmB/B,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAWnE,wBAAiB,uBAAuB,CACpC,GAAG,EAAE,gBAAgB,EACrB,GAAG,EAAE,iBAAiB,GACvB,YAAY,CAAC,kCAAkC,CAAC,CA0IlD"}
|