@gooddata/sdk-ui-dashboard 11.70.0-alpha.3 → 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
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
// (C) 2026 GoodData Corporation
|
|
2
2
|
import { dashboardAttributeFilterItemLocalIdentifier, dashboardFilterLocalIdentifier, } from "@gooddata/sdk-model";
|
|
3
3
|
import { removeAttributeFilter, removeDateFilter, removeMeasureValueFilter, } from "../../model/commands/filters.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { removeParameters } from "../../model/commands/parameters.js";
|
|
5
|
+
import { useDashboardDispatch, useDashboardSelector } from "../../model/react/DashboardStoreProvider.js";
|
|
6
|
+
import { selectActiveOrDefaultTabLocalIdentifier } from "../../model/store/tabs/tabsSelectors.js";
|
|
6
7
|
import { isAttributeFilterDraggableItem, isDateFilterDraggableItem, isMeasureValueFilterDraggableItem, isParameterDraggableItem, } from "./types.js";
|
|
7
8
|
import { useDashboardDrop } from "./useDashboardDrop.js";
|
|
8
9
|
/**
|
|
@@ -12,6 +13,7 @@ import { useDashboardDrop } from "./useDashboardDrop.js";
|
|
|
12
13
|
*/
|
|
13
14
|
export function useFilterDeleteDrop() {
|
|
14
15
|
const dispatch = useDashboardDispatch();
|
|
16
|
+
const tabLocalIdentifier = useDashboardSelector(selectActiveOrDefaultTabLocalIdentifier);
|
|
15
17
|
return useDashboardDrop(["attributeFilter", "dateFilter", "parameter", "measureValueFilter"], {
|
|
16
18
|
drop: (item) => {
|
|
17
19
|
if (isAttributeFilterDraggableItem(item)) {
|
|
@@ -27,8 +29,8 @@ export function useFilterDeleteDrop() {
|
|
|
27
29
|
dispatch(removeMeasureValueFilter(identifier));
|
|
28
30
|
}
|
|
29
31
|
else if (isParameterDraggableItem(item)) {
|
|
30
|
-
dispatch(
|
|
32
|
+
dispatch(removeParameters([item.ref], tabLocalIdentifier));
|
|
31
33
|
}
|
|
32
34
|
},
|
|
33
|
-
}, [dispatch]);
|
|
35
|
+
}, [dispatch, tabLocalIdentifier]);
|
|
34
36
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DrillSelectDropdown.d.ts","sourceRoot":"","sources":["../../../../src/presentation/drill/DrillSelect/DrillSelectDropdown.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,SAAS,EAAW,MAAM,YAAY,CAAC;AAGrD,OAAO,EACH,KAAK,mCAAmC,EACxC,KAAK,QAAQ,EACb,KAAK,gBAAgB,EACrB,KAAK,OAAO,EAgBf,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,KAAK,WAAW,EAAsB,MAAM,kBAAkB,CAAC;AAKxE,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAazE,OAAO,EAAE,KAAK,wBAAwB,EAAyB,MAAM,mBAAmB,CAAC;AAazF,OAAO,EAEH,KAAK,mBAAmB,EACxB,KAAK,gBAAgB,EAExB,MAAM,YAAY,CAAC;AAEpB,MAAM,WAAW,yBAA0B,SAAQ,mBAAmB;IAClE,mBAAmB,EAAE,MAAM,CAAC;IAC5B,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,kBAAkB,EAAE,MAAM,IAAI,CAAC;IAC/B,QAAQ,EAAE,CAAC,IAAI,EAAE,wBAAwB,EAAE,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;CACxE;AAED,wBAAgB,mBAAmB,CAAC,EAChC,MAAM,EACN,mBAAmB,EACnB,OAAO,EACP,kBAAkB,EAClB,QAAQ,EACR,gBAAgB,EAChB,oBAAoB,EACpB,UAAU,GACb,EAAE,yBAAyB,
|
|
1
|
+
{"version":3,"file":"DrillSelectDropdown.d.ts","sourceRoot":"","sources":["../../../../src/presentation/drill/DrillSelect/DrillSelectDropdown.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,SAAS,EAAW,MAAM,YAAY,CAAC;AAGrD,OAAO,EACH,KAAK,mCAAmC,EACxC,KAAK,QAAQ,EACb,KAAK,gBAAgB,EACrB,KAAK,OAAO,EAgBf,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,KAAK,WAAW,EAAsB,MAAM,kBAAkB,CAAC;AAKxE,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAazE,OAAO,EAAE,KAAK,wBAAwB,EAAyB,MAAM,mBAAmB,CAAC;AAazF,OAAO,EAEH,KAAK,mBAAmB,EACxB,KAAK,gBAAgB,EAExB,MAAM,YAAY,CAAC;AAEpB,MAAM,WAAW,yBAA0B,SAAQ,mBAAmB;IAClE,mBAAmB,EAAE,MAAM,CAAC;IAC5B,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,kBAAkB,EAAE,MAAM,IAAI,CAAC;IAC/B,QAAQ,EAAE,CAAC,IAAI,EAAE,wBAAwB,EAAE,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;CACxE;AAED,wBAAgB,mBAAmB,CAAC,EAChC,MAAM,EACN,mBAAmB,EACnB,OAAO,EACP,kBAAkB,EAClB,QAAQ,EACR,gBAAgB,EAChB,oBAAoB,EACpB,UAAU,GACb,EAAE,yBAAyB,kDAyL3B;AAgGD,eAAO,MAAM,sBAAsB,kKAWhC;IACC,iBAAiB,EAAE,CAAC,KAAK,EAAE,wBAAwB,KAAK,OAAO,CAAC;IAChE,gBAAgB,EAAE,wBAAwB,EAAE,CAAC;IAC7C,UAAU,EAAE,WAAW,CAAC;IACxB,QAAQ,EAAE,SAAS,CAAC,QAAQ,CAAC,CAAC;IAC9B,aAAa,EAAE,gBAAgB,EAAE,CAAC;IAClC,cAAc,EAAE,MAAM,CAAC;IACvB,IAAI,EAAE,SAAS,CAAC;IAChB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,qBAAqB,EAAE,MAAM,CAAC,MAAM,EAAE,mCAAmC,CAAC,CAAC;IAC3E,yBAAyB,CAAC,EAAE,OAAO,CAAC;CACvC,KAAG,gBAAgB,EA2JnB,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
// (C) 2020-2026 GoodData Corporation
|
|
3
|
-
import { useCallback, useEffect, useMemo, useRef } from "react";
|
|
3
|
+
import { useCallback, useEffect, useMemo, useRef, useState } from "react";
|
|
4
4
|
import stringify from "json-stable-stringify";
|
|
5
5
|
import { useIntl } from "react-intl";
|
|
6
6
|
import { invariant } from "ts-invariant";
|
|
@@ -130,13 +130,21 @@ export function DrillSelectDropdown({ isOpen, dropDownAnchorClass, onClose, onCl
|
|
|
130
130
|
const alignPoints = useMemo(() => {
|
|
131
131
|
return calculateAlignPoints(dropDownAnchorClass, drillEvent);
|
|
132
132
|
}, [dropDownAnchorClass, drillEvent]);
|
|
133
|
+
// `.focus()` silently no-ops while the overlay is still `visibility: hidden` awaiting
|
|
134
|
+
// alignment, so re-arm autofocus on the first align. A boolean, not a counter — the
|
|
135
|
+
// overlay realigns after every update, so a per-align value would feed a render loop.
|
|
136
|
+
const [overlayAligned, setOverlayAligned] = useState(false);
|
|
137
|
+
if (!isOpen && overlayAligned) {
|
|
138
|
+
setOverlayAligned(false);
|
|
139
|
+
}
|
|
140
|
+
const handleOverlayAlign = useCallback(() => setOverlayAligned(true), []);
|
|
133
141
|
if (!isOpen) {
|
|
134
142
|
return null;
|
|
135
143
|
}
|
|
136
144
|
if (menuItems.length === 0) {
|
|
137
145
|
return null;
|
|
138
146
|
}
|
|
139
|
-
return (_jsx("div", { className: "gd-drill-modal-picker-overlay-mask", children: _jsx(Overlay, { closeOnOutsideClick: true, closeOnEscape: true, alignTo: `.${dropDownAnchorClass}`, alignPoints: alignPoints, onClose: onCloseReturnFocus, children: _jsx(UiFocusManager, { enableFocusTrap: true, enableAutofocus:
|
|
147
|
+
return (_jsx("div", { className: "gd-drill-modal-picker-overlay-mask", children: _jsx(Overlay, { closeOnOutsideClick: true, closeOnEscape: true, alignTo: `.${dropDownAnchorClass}`, alignPoints: alignPoints, onClose: onCloseReturnFocus, onAlign: handleOverlayAlign, children: _jsx(UiFocusManager, { enableFocusTrap: true, enableAutofocus: { refocusKey: overlayAligned }, children: _jsx("div", { onScroll: stopPropagation, className: "gd-drill-modal-picker-dropdown s-drill-item-selector-dropdown", children: _jsx(UiMenu, { items: menuItems, onSelect: (item) => {
|
|
140
148
|
item.data.onSelect();
|
|
141
149
|
}, shouldCloseOnSelect: false, onClose: onCloseReturnFocus, onUnhandledKeyDown: handleKeyDown, maxHeight: 160, containerBottomPadding: "medium", size: "small", ariaAttributes: {
|
|
142
150
|
id: "drill-select-menu",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WithDrillSelect.d.ts","sourceRoot":"","sources":["../../../../src/presentation/drill/DrillSelect/WithDrillSelect.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,YAAY,EAAqD,MAAM,OAAO,CAAC;AAK7F,OAAO,EACH,KAAK,QAAQ,EACb,KAAK,MAAM,EAQd,MAAM,qBAAqB,CAAC;AAiC7B,OAAO,EACH,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,EACvB,KAAK,4BAA4B,EACjC,KAAK,yBAAyB,EAC9B,KAAK,yBAAyB,EAC9B,KAAK,uBAAuB,EAC5B,KAAK,0BAA0B,EAC/B,KAAK,aAAa,EACrB,MAAM,aAAa,CAAC;AAMrB;;GAEG;AACH,MAAM,WAAW,qBAAqB;IAClC,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,QAAQ,CAAC;IAClB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,oBAAoB,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;IACjD,YAAY,CAAC,EAAE,gBAAgB,CAAC;IAChC,kBAAkB,CAAC,EAAE,kBAAkB,CAAC;IACxC,uBAAuB,CAAC,EAAE,uBAAuB,CAAC;IAClD,yBAAyB,CAAC,EAAE,yBAAyB,CAAC;IACtD,4BAA4B,CAAC,EAAE,4BAA4B,CAAC;IAC5D,yBAAyB,CAAC,EAAE,yBAAyB,CAAC;IACtD,0BAA0B,CAAC,EAAE,0BAA0B,CAAC;IACxD,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,IAAI,CAAC;IAC/B,QAAQ,EAAE,CAAC,KAAK,EAAE;QAAE,OAAO,EAAE,aAAa,CAAA;KAAE,KAAK,YAAY,CAAC;CACjE;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,EAC5B,SAAS,EACT,QAAQ,EACR,OAAO,EACP,oBAAoB,EACpB,YAAY,EACZ,kBAAkB,EAClB,uBAAuB,EACvB,yBAAyB,EACzB,4BAA4B,EAC5B,yBAAyB,EACzB,0BAA0B,EAC1B,OAAO,GACV,EAAE,qBAAqB,GAAG,YAAY,
|
|
1
|
+
{"version":3,"file":"WithDrillSelect.d.ts","sourceRoot":"","sources":["../../../../src/presentation/drill/DrillSelect/WithDrillSelect.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,YAAY,EAAqD,MAAM,OAAO,CAAC;AAK7F,OAAO,EACH,KAAK,QAAQ,EACb,KAAK,MAAM,EAQd,MAAM,qBAAqB,CAAC;AAiC7B,OAAO,EACH,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,EACvB,KAAK,4BAA4B,EACjC,KAAK,yBAAyB,EAC9B,KAAK,yBAAyB,EAC9B,KAAK,uBAAuB,EAC5B,KAAK,0BAA0B,EAC/B,KAAK,aAAa,EACrB,MAAM,aAAa,CAAC;AAMrB;;GAEG;AACH,MAAM,WAAW,qBAAqB;IAClC,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,QAAQ,CAAC;IAClB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,oBAAoB,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;IACjD,YAAY,CAAC,EAAE,gBAAgB,CAAC;IAChC,kBAAkB,CAAC,EAAE,kBAAkB,CAAC;IACxC,uBAAuB,CAAC,EAAE,uBAAuB,CAAC;IAClD,yBAAyB,CAAC,EAAE,yBAAyB,CAAC;IACtD,4BAA4B,CAAC,EAAE,4BAA4B,CAAC;IAC5D,yBAAyB,CAAC,EAAE,yBAAyB,CAAC;IACtD,0BAA0B,CAAC,EAAE,0BAA0B,CAAC;IACxD,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,IAAI,CAAC;IAC/B,QAAQ,EAAE,CAAC,KAAK,EAAE;QAAE,OAAO,EAAE,aAAa,CAAA;KAAE,KAAK,YAAY,CAAC;CACjE;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,EAC5B,SAAS,EACT,QAAQ,EACR,OAAO,EACP,oBAAoB,EACpB,YAAY,EACZ,kBAAkB,EAClB,uBAAuB,EACvB,yBAAyB,EACzB,4BAA4B,EAC5B,yBAAyB,EACzB,0BAA0B,EAC1B,OAAO,GACV,EAAE,qBAAqB,GAAG,YAAY,CAyOtC"}
|
|
@@ -117,6 +117,7 @@ export function WithDrillSelect({ widgetRef, children, insight, returnFocusToIns
|
|
|
117
117
|
insight,
|
|
118
118
|
isDrillRestricted,
|
|
119
119
|
handleClose,
|
|
120
|
+
returnFocusToInsight,
|
|
120
121
|
});
|
|
121
122
|
const onSelect = useCallback((drillDefinition, context, drillEvent, correlationId, drillContext) => {
|
|
122
123
|
const { drills, dropdownProps, insight, handleClose, isDrillRestricted } = onSelectDepsRef.current;
|
|
@@ -131,6 +132,16 @@ export function WithDrillSelect({ widgetRef, children, insight, returnFocusToIns
|
|
|
131
132
|
}
|
|
132
133
|
const isNavigatingByKeyboard = document.querySelector(":focus-visible") !== null;
|
|
133
134
|
handleClose();
|
|
135
|
+
// onSelect may be a stale closure (useDrills keeps the first-render success handler),
|
|
136
|
+
// so read the return-focus callback from the ref when the focus is actually returned.
|
|
137
|
+
const returnFocusLater = (force, delay) => {
|
|
138
|
+
window.setTimeout(() => {
|
|
139
|
+
onSelectDepsRef.current.returnFocusToInsight?.(force);
|
|
140
|
+
}, delay);
|
|
141
|
+
};
|
|
142
|
+
// URL drills keep the dashboard in place (the link usually opens in a new tab),
|
|
143
|
+
// so return focus to the drilled data point once the menu is gone.
|
|
144
|
+
const returnFocusAfterMenuClose = (force) => returnFocusLater(force, 0);
|
|
134
145
|
if (isDrillDownDefinition(drillDefinition)) {
|
|
135
146
|
drills.drillDown.run(effectiveInsight, drillDefinition, effectiveDrillEvent, effectiveCorrelationId);
|
|
136
147
|
return;
|
|
@@ -145,27 +156,24 @@ export function WithDrillSelect({ widgetRef, children, insight, returnFocusToIns
|
|
|
145
156
|
}
|
|
146
157
|
if (isDrillToAttributeUrl(drillDefinition)) {
|
|
147
158
|
drills.drillToAttributeUrl.run(drillDefinition, effectiveDrillEvent, effectiveCorrelationId);
|
|
159
|
+
returnFocusAfterMenuClose(isNavigatingByKeyboard);
|
|
148
160
|
return;
|
|
149
161
|
}
|
|
150
162
|
if (isDrillToCustomUrl(drillDefinition)) {
|
|
151
163
|
drills.drillToCustomUrl.run(drillDefinition, effectiveDrillEvent, effectiveCorrelationId);
|
|
164
|
+
returnFocusAfterMenuClose(isNavigatingByKeyboard);
|
|
152
165
|
return;
|
|
153
166
|
}
|
|
154
167
|
if (isCrossFiltering(drillDefinition)) {
|
|
155
168
|
drills.crossFiltering.run(insight, drillDefinition, effectiveDrillEvent, effectiveCorrelationId);
|
|
156
|
-
if (!returnFocusToInsight) {
|
|
157
|
-
return;
|
|
158
|
-
}
|
|
159
169
|
// We need to wait a bit so the chart reloads after the filter changes
|
|
160
|
-
|
|
161
|
-
returnFocusToInsight(isNavigatingByKeyboard);
|
|
162
|
-
}, 150);
|
|
170
|
+
returnFocusLater(isNavigatingByKeyboard, 150);
|
|
163
171
|
return;
|
|
164
172
|
}
|
|
165
173
|
if (isKeyDriveAnalysis(drillDefinition)) {
|
|
166
174
|
drills.keyDriverAnalysis.run(drillDefinition, effectiveDrillEvent, filters, context, effectiveCorrelationId);
|
|
167
175
|
}
|
|
168
|
-
}, [onSelectDepsRef,
|
|
176
|
+
}, [onSelectDepsRef, filters]);
|
|
169
177
|
const dropDownAnchorClass = `s-drill-picker-${drillPickerId}`;
|
|
170
178
|
const overlayController = useMemo(() => {
|
|
171
179
|
return OverlayController.getInstance(DASHBOARD_DRILL_MENU_Z_INDEX);
|
package/esm/presentation/filterBar/attributeFilter/addAttributeFilter/AttributesDropdown.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AttributesDropdown.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/filterBar/attributeFilter/addAttributeFilter/AttributesDropdown.tsx"],"names":[],"mappings":"AAOA,OAAO,EAGH,KAAK,aAAa,
|
|
1
|
+
{"version":3,"file":"AttributesDropdown.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/filterBar/attributeFilter/addAttributeFilter/AttributesDropdown.tsx"],"names":[],"mappings":"AAOA,OAAO,EAGH,KAAK,aAAa,EAKrB,MAAM,qBAAqB,CAAC;AAgB7B,OAAO,EAAE,KAAK,yCAAyC,EAAE,MAAM,aAAa,CAAC;AAS7E,OAAO,EACH,KAAK,iBAAiB,EAIzB,MAAM,gCAAgC,CAAC;AAyFxC;;GAEG;AACH,MAAM,WAAW,wBAAyB,SAAQ,yCAAyC;IACvF,0FAA0F;IAC1F,UAAU,CAAC,EAAE,iBAAiB,EAAE,CAAC;IACjC,iBAAiB,CAAC,EAAE,CAAC,GAAG,EAAE,aAAa,KAAK,IAAI,CAAC;CACpD;AA6BD;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,EAC/B,EAAE,EACF,SAAS,EACT,aAAa,EACb,OAAO,EACP,MAAM,EACN,QAAQ,EACR,UAAU,EACV,YAAY,EACZ,QAAa,EACb,UAAiB,EACjB,uBAAkD,EAClD,sBAAsB,EACtB,YAAY,EACZ,mBAAmB,EACnB,kBAAkB,EAClB,mBAAmB,EACnB,aAAa,EACb,UAAe,EACf,iBAAiB,GACpB,EAAE,wBAAwB,2CA0V1B"}
|
|
@@ -2,8 +2,8 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
// (C) 2007-2026 GoodData Corporation
|
|
3
3
|
import { useCallback, useEffect, useMemo, useState } from "react";
|
|
4
4
|
import cx from "classnames";
|
|
5
|
-
import { useIntl } from "react-intl";
|
|
6
|
-
import { isCatalogAttribute, isCatalogMeasure, } from "@gooddata/sdk-model";
|
|
5
|
+
import { defineMessages, useIntl } from "react-intl";
|
|
6
|
+
import { isCatalogAttribute, isCatalogMeasure, isIdentifierRef, objRefToString, } from "@gooddata/sdk-model";
|
|
7
7
|
import { Dropdown, DropdownList, SingleSelectListItem, UiIcon, useIdPrefixed, } from "@gooddata/sdk-ui-kit";
|
|
8
8
|
import { _debounce } from "@gooddata/util";
|
|
9
9
|
import { useDashboardSelector } from "../../../../model/react/DashboardStoreProvider.js";
|
|
@@ -63,6 +63,37 @@ const dropdownAlignPoints = [
|
|
|
63
63
|
},
|
|
64
64
|
];
|
|
65
65
|
const WIDTH = 253;
|
|
66
|
+
// Accessible names of the icon-only tabs.
|
|
67
|
+
const tabMessages = defineMessages({
|
|
68
|
+
attributes: { id: "attributesDropdown.tab.attributes" },
|
|
69
|
+
dateDatasets: { id: "attributesDropdown.tab.dateDatasets" },
|
|
70
|
+
metrics: { id: "attributesDropdown.tab.metrics" },
|
|
71
|
+
parameters: { id: "attributesDropdown.tab.parameters" },
|
|
72
|
+
});
|
|
73
|
+
/**
|
|
74
|
+
* Unique key of a selectable list item, used for the ids of the listbox options.
|
|
75
|
+
* Only called for lists without static (header and separator) items.
|
|
76
|
+
*/
|
|
77
|
+
function getAddFilterListItemKey(item) {
|
|
78
|
+
if (isParameterDropdownListItem(item)) {
|
|
79
|
+
return `parameter-${objRefToString(item.ref)}`;
|
|
80
|
+
}
|
|
81
|
+
if (isCatalogAttribute(item)) {
|
|
82
|
+
// Computed attributes are listed adapted to catalog attributes (see catalogComputedAttributeAsCatalogAttribute);
|
|
83
|
+
// only their ref keeps the computedAttribute type, and their identifiers may clash with normal attributes.
|
|
84
|
+
if (isIdentifierRef(item.attribute.ref) && item.attribute.ref.type === "computedAttribute") {
|
|
85
|
+
return `computedAttribute-${objRefToString(item.attribute.ref)}`;
|
|
86
|
+
}
|
|
87
|
+
return `attribute-${objRefToString(item.attribute.ref)}`;
|
|
88
|
+
}
|
|
89
|
+
if (isCatalogMeasure(item)) {
|
|
90
|
+
return `measure-${objRefToString(item.measure.ref)}`;
|
|
91
|
+
}
|
|
92
|
+
if (isHeaderListItem(item) || isSeparatorListItem(item)) {
|
|
93
|
+
return item.type;
|
|
94
|
+
}
|
|
95
|
+
return `dateDataset-${objRefToString(item.dataSet.ref)}`;
|
|
96
|
+
}
|
|
66
97
|
function createDefaultSelectedTabId({ hasAttributes, hasDateFilters, hasMeasures, hasParameters, }) {
|
|
67
98
|
if (hasAttributes) {
|
|
68
99
|
return "attributes";
|
|
@@ -157,17 +188,33 @@ export function AttributesDropdown({ id, className, bodyClassName, onClose, onOp
|
|
|
157
188
|
const tabs = useMemo(() => {
|
|
158
189
|
const newTabs = [];
|
|
159
190
|
if (attributes.length) {
|
|
160
|
-
newTabs.push({
|
|
191
|
+
newTabs.push({
|
|
192
|
+
id: "attributes",
|
|
193
|
+
label: tabMessages.attributes,
|
|
194
|
+
iconOnly: true,
|
|
195
|
+
icon: "gd-icon-attribute",
|
|
196
|
+
});
|
|
161
197
|
}
|
|
162
198
|
if (enableMeasureValueFilterKD && metricMeasures.length) {
|
|
163
|
-
newTabs.push({
|
|
199
|
+
newTabs.push({
|
|
200
|
+
id: "metrics",
|
|
201
|
+
label: tabMessages.metrics,
|
|
202
|
+
iconOnly: true,
|
|
203
|
+
icon: "gd-icon-metric",
|
|
204
|
+
});
|
|
164
205
|
}
|
|
165
206
|
if (supportsMultipleDateFilters && dateDatasets.length) {
|
|
166
|
-
newTabs.push({
|
|
207
|
+
newTabs.push({
|
|
208
|
+
id: "dateDatasets",
|
|
209
|
+
label: tabMessages.dateDatasets,
|
|
210
|
+
iconOnly: true,
|
|
211
|
+
icon: "gd-icon-date",
|
|
212
|
+
});
|
|
167
213
|
}
|
|
168
214
|
if (parameters.length) {
|
|
169
215
|
newTabs.push({
|
|
170
216
|
id: "parameters",
|
|
217
|
+
label: tabMessages.parameters,
|
|
171
218
|
iconOnly: true,
|
|
172
219
|
iconNode: _jsx(UiIcon, { type: "parameter", size: 16, layout: "block", color: "currentColor" }),
|
|
173
220
|
});
|
|
@@ -203,6 +250,9 @@ export function AttributesDropdown({ id, className, bodyClassName, onClose, onOp
|
|
|
203
250
|
metricDropdownItems,
|
|
204
251
|
parameterDropdownItems,
|
|
205
252
|
]);
|
|
253
|
+
// Header and separator rows are not selectable, so they cannot be listbox options.
|
|
254
|
+
// Lists without them are exposed as a listbox driven by the search combobox.
|
|
255
|
+
const isListbox = useMemo(() => !items.some((item) => isHeaderListItem(item) || isSeparatorListItem(item)), [items]);
|
|
206
256
|
const showTabs = useMemo(() => {
|
|
207
257
|
return tabs.length > 1;
|
|
208
258
|
}, [tabs.length]);
|
|
@@ -245,7 +295,13 @@ export function AttributesDropdown({ id, className, bodyClassName, onClose, onOp
|
|
|
245
295
|
return getMetricListItemTitle(item, getCustomItemTitle?.(item));
|
|
246
296
|
}
|
|
247
297
|
return getDateAttributeListItemTitle(item, getCustomItemTitle?.(item));
|
|
248
|
-
}, renderNoData: renderNoData,
|
|
298
|
+
}, renderNoData: renderNoData, getItemKey: isListbox ? getAddFilterListItemKey : undefined, accessibilityConfig: isListbox
|
|
299
|
+
? {
|
|
300
|
+
role: "listbox",
|
|
301
|
+
ariaLabel: buttonTitle,
|
|
302
|
+
ariaLabelledBy: accessibilityConfig?.ariaLabelledBy,
|
|
303
|
+
}
|
|
304
|
+
: undefined, renderItem: ({ item }) => {
|
|
249
305
|
if (isHeaderListItem(item)) {
|
|
250
306
|
return _jsx(SingleSelectListItem, { type: item.type, title: item.title });
|
|
251
307
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useDependentDateFilters.d.ts","sourceRoot":"","sources":["../../../../src/presentation/filterBar/attributeFilter/useDependentDateFilters.ts"],"names":[],"mappings":"AAMA,OAAO,EACH,KAAK,4BAA4B,
|
|
1
|
+
{"version":3,"file":"useDependentDateFilters.d.ts","sourceRoot":"","sources":["../../../../src/presentation/filterBar/attributeFilter/useDependentDateFilters.ts"],"names":[],"mappings":"AAMA,OAAO,EACH,KAAK,4BAA4B,EAOpC,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,KAAK,yBAAyB,EAAE,MAAM,0BAA0B,CAAC;AAe1E;;;;GAIG;AACH,MAAM,MAAM,sBAAsB,GAAG,IAAI,CAAC,yBAAyB,EAAE,sBAAsB,CAAC,CAAC;AAE7F;;;;;;;GAOG;AACH,eAAO,MAAM,uBAAuB,WACxB,4BAA4B,UAC5B,MAAM,KACf,sBAiFF,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// (C) 2024-2026 GoodData Corporation
|
|
2
2
|
import { useMemo } from "react";
|
|
3
3
|
import { invariant } from "ts-invariant";
|
|
4
|
-
import { dashboardAttributeFilterItemFilterElementsByDate, objRefToString, } from "@gooddata/sdk-model";
|
|
4
|
+
import { dashboardAttributeFilterItemFilterElementsByDate, isDashboardDateFilter, objRefToString, } from "@gooddata/sdk-model";
|
|
5
5
|
import { useDashboardSelector } from "../../../model/react/DashboardStoreProvider.js";
|
|
6
6
|
import { selectIsApplyFiltersAllAtOnceEnabledAndSet } from "../../../model/store/config/configSelectors.js";
|
|
7
7
|
import { selectFilterContextDateFilter, selectFilterContextDateFilterForTab, selectFilterContextDateFiltersWithDimension, selectFilterContextDateFiltersWithDimensionForTab, selectWorkingFilterContextDateFilter, selectWorkingFilterContextDateFilterForTab, selectWorkingFilterContextDateFiltersWithDimension, selectWorkingFilterContextDateFiltersWithDimensionForTab, } from "../../../model/store/tabs/filterContext/filterContextSelectors.js";
|
|
@@ -29,7 +29,8 @@ export const useDependentDateFilters = (filter, tabId) => {
|
|
|
29
29
|
const commonDateFilter = isApplyAllAtOnceEnabledAndSet
|
|
30
30
|
? commonWorkingDateFilter
|
|
31
31
|
: commonAppliedDateFilter;
|
|
32
|
-
|
|
32
|
+
// Whole periods of the common date filter do not limit the values of a dependent filter yet.
|
|
33
|
+
const commonDateFilterWithAllTime = getCommonDateFilterWithAllTime(isDashboardDateFilter(commonDateFilter) ? commonDateFilter : undefined);
|
|
33
34
|
const filterElementsByDate = dashboardAttributeFilterItemFilterElementsByDate(filter);
|
|
34
35
|
const dependentDateFilters = useMemo(() => {
|
|
35
36
|
return filterElementsByDate?.map((dependentDateFilter) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type ReactElement } from "react";
|
|
2
|
-
import { type
|
|
2
|
+
import { type IDefaultDashboardDateFilterProps } from "./types.js";
|
|
3
3
|
/**
|
|
4
4
|
* Default implementation of the date filter to use on the dashboard's filter bar.
|
|
5
5
|
*
|
|
@@ -7,5 +7,5 @@ import { type IDashboardDateFilterProps } from "./types.js";
|
|
|
7
7
|
*
|
|
8
8
|
* @alpha
|
|
9
9
|
*/
|
|
10
|
-
export declare function DefaultDashboardDateFilter(
|
|
10
|
+
export declare function DefaultDashboardDateFilter(props: IDefaultDashboardDateFilterProps): ReactElement;
|
|
11
11
|
//# sourceMappingURL=DefaultDashboardDateFilter.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DefaultDashboardDateFilter.d.ts","sourceRoot":"","sources":["../../../../src/presentation/filterBar/dateFilter/DefaultDashboardDateFilter.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,YAAY,EAAkC,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"DefaultDashboardDateFilter.d.ts","sourceRoot":"","sources":["../../../../src/presentation/filterBar/dateFilter/DefaultDashboardDateFilter.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,YAAY,EAAkC,MAAM,OAAO,CAAC;AAwC1E,OAAO,EAAE,KAAK,gCAAgC,EAAE,MAAM,YAAY,CAAC;AAmBnE;;;;;;GAMG;AACH,wBAAgB,0BAA0B,CAAC,KAAK,EAAE,gCAAgC,GAAG,YAAY,CAmNhG"}
|
|
@@ -2,7 +2,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
2
2
|
// (C) 2021-2026 GoodData Corporation
|
|
3
3
|
import { useCallback, useMemo, useState } from "react";
|
|
4
4
|
import { useIntl } from "react-intl";
|
|
5
|
-
import { DashboardDateFilterConfigModeValues, areObjRefsEqual, } from "@gooddata/sdk-model";
|
|
5
|
+
import { DashboardDateFilterConfigModeValues, areObjRefsEqual, dashboardFilterLocalIdentifier, dashboardFilterObjRef, isDashboardAbsoluteGranularityDateFilter, isDashboardParameterizedDateFilter, } from "@gooddata/sdk-model";
|
|
6
6
|
import { DateFilter, getLocalizedIcuDateFormatPattern, } from "@gooddata/sdk-ui-filters";
|
|
7
7
|
import { dateFilterOptionToDashboardDateFilter } from "../../../_staging/dashboard/dashboardFilterConverter.js";
|
|
8
8
|
import { matchDateFilterToDateFilterOptionWithPreference } from "../../../_staging/dateFilterConfig/dateFilterOptionMapping.js";
|
|
@@ -32,7 +32,22 @@ function relevantDateDimensionHasSeconds(dateDatasets, dataSetRef) {
|
|
|
32
32
|
*
|
|
33
33
|
* @alpha
|
|
34
34
|
*/
|
|
35
|
-
export function DefaultDashboardDateFilter(
|
|
35
|
+
export function DefaultDashboardDateFilter(props) {
|
|
36
|
+
const { filter, workingFilter, config, readonly, autoOpen, ButtonComponent, overlayPositionType, tabId, customRangeHint, } = props;
|
|
37
|
+
const onAnyTypeFilterChanged = props.isAbsoluteDateFilterGranularityEnabled === true ? props.onFilterChanged : undefined;
|
|
38
|
+
const onOldTypeFilterChanged = props.isAbsoluteDateFilterGranularityEnabled === true ? undefined : props.onFilterChanged;
|
|
39
|
+
const onFilterChanged = useCallback((changedFilter, dateFilterOptionLocalId, isWorkingSelectionChange) => {
|
|
40
|
+
if (onAnyTypeFilterChanged) {
|
|
41
|
+
onAnyTypeFilterChanged(changedFilter, dateFilterOptionLocalId, isWorkingSelectionChange);
|
|
42
|
+
}
|
|
43
|
+
else if (!isDashboardAbsoluteGranularityDateFilter(changedFilter) &&
|
|
44
|
+
!isDashboardParameterizedDateFilter(changedFilter)) {
|
|
45
|
+
// the filter offers no whole periods and no periods in this case
|
|
46
|
+
onOldTypeFilterChanged?.(changedFilter, dateFilterOptionLocalId, isWorkingSelectionChange);
|
|
47
|
+
}
|
|
48
|
+
}, [onAnyTypeFilterChanged, onOldTypeFilterChanged]);
|
|
49
|
+
const dataSet = filter ? dashboardFilterObjRef(filter) : undefined;
|
|
50
|
+
const localIdentifier = filter ? dashboardFilterLocalIdentifier(filter) : undefined;
|
|
36
51
|
const intl = useIntl();
|
|
37
52
|
const settings = useDashboardSelector(selectSettings);
|
|
38
53
|
const capabilities = useDashboardSelector(selectBackendCapabilities);
|
|
@@ -45,18 +60,19 @@ export function DefaultDashboardDateFilter({ filter, workingFilter, onFilterChan
|
|
|
45
60
|
// the date filter config marks the option as visible. Hiding it via the config does not strip an
|
|
46
61
|
// already-set emptyValueHandling - that value is still applied to executions.
|
|
47
62
|
const enableEmptyDateValues = config.dateFilterOptions.emptyValues?.visible ?? true;
|
|
48
|
-
const isAbsoluteDateFilterGranularityEnabled = !!settings.enableAbsoluteDateFilterGranularity;
|
|
63
|
+
const isAbsoluteDateFilterGranularityEnabled = !!settings.enableAbsoluteDateFilterGranularity && !!onAnyTypeFilterChanged;
|
|
49
64
|
const allDateDatasets = useDashboardSelector(selectCatalogDateDatasets);
|
|
50
65
|
let defaultDateFilterName;
|
|
51
|
-
if (
|
|
52
|
-
const dateDataSetName = allDateDatasets.find((ds) => areObjRefsEqual(ds.dataSet.ref,
|
|
66
|
+
if (dataSet) {
|
|
67
|
+
const dateDataSetName = allDateDatasets.find((ds) => areObjRefsEqual(ds.dataSet.ref, dataSet))
|
|
68
|
+
?.dataSet?.title;
|
|
53
69
|
defaultDateFilterName = config.customFilterName ?? dateDataSetName ?? "";
|
|
54
70
|
}
|
|
55
71
|
else {
|
|
56
72
|
defaultDateFilterName =
|
|
57
73
|
config.customFilterName ?? intl.formatMessage({ id: "dateFilterDropdown.title" });
|
|
58
74
|
}
|
|
59
|
-
const { title, mode } = useCurrentDateFilterConfig(
|
|
75
|
+
const { title, mode } = useCurrentDateFilterConfig(dataSet, defaultDateFilterName, tabId);
|
|
60
76
|
const [lastSelectedOptionId, setLastSelectedOptionId] = useState("");
|
|
61
77
|
const dateFilterOptions = useMemo(() => {
|
|
62
78
|
if (enableEmptyDateValues) {
|
|
@@ -69,12 +85,12 @@ export function DefaultDashboardDateFilter({ filter, workingFilter, onFilterChan
|
|
|
69
85
|
const { dateFilterOption: workingFilterOption, excludeCurrentPeriod: workingExcludeCurrentPeriod } = useMemo(() => matchDateFilterToDateFilterOptionWithPreference(workingFilter, dateFilterOptions, lastSelectedOptionId), [workingFilter, dateFilterOptions, lastSelectedOptionId]);
|
|
70
86
|
const onApply = useCallback((option, exclude) => {
|
|
71
87
|
setLastSelectedOptionId(option.localIdentifier);
|
|
72
|
-
onFilterChanged(dateFilterOptionToDashboardDateFilter(option, exclude,
|
|
73
|
-
}, [onFilterChanged,
|
|
88
|
+
onFilterChanged(dateFilterOptionToDashboardDateFilter(option, exclude, dataSet, localIdentifier), option.localIdentifier);
|
|
89
|
+
}, [onFilterChanged, dataSet, localIdentifier]);
|
|
74
90
|
const onSelect = useCallback((option, exclude) => {
|
|
75
91
|
setLastSelectedOptionId(option.localIdentifier);
|
|
76
|
-
onFilterChanged(dateFilterOptionToDashboardDateFilter(option, exclude,
|
|
77
|
-
}, [onFilterChanged,
|
|
92
|
+
onFilterChanged(dateFilterOptionToDashboardDateFilter(option, exclude, dataSet, localIdentifier), option.localIdentifier, true);
|
|
93
|
+
}, [onFilterChanged, dataSet, localIdentifier]);
|
|
78
94
|
const dateFormat = settings.formatLocale
|
|
79
95
|
? getLocalizedIcuDateFormatPattern(settings.formatLocale)
|
|
80
96
|
: settings.responsiveUiDateFormat;
|
|
@@ -99,16 +115,16 @@ export function DefaultDashboardDateFilter({ filter, workingFilter, onFilterChan
|
|
|
99
115
|
// has no second attribute.
|
|
100
116
|
const isSecondsForAbsoluteRangeEnabled = isTimeForAbsoluteRangeEnabled &&
|
|
101
117
|
!!settings.enableSecondGranularities &&
|
|
102
|
-
relevantDateDimensionHasSeconds(allDateDatasets,
|
|
118
|
+
relevantDateDimensionHasSeconds(allDateDatasets, dataSet);
|
|
103
119
|
const isConfigurationEnabled = isInEditMode &&
|
|
104
120
|
(!!capabilities.supportsHiddenAndLockedFiltersOnUI || !!capabilities.supportsMultipleDateFilters);
|
|
105
121
|
const FilterConfigurationComponent = useMemo(() => {
|
|
106
122
|
function ElementsSelect(props) {
|
|
107
|
-
return (_jsx(DateFilterConfigurationBody, { ...props, intl: intl, dateDataSet:
|
|
123
|
+
return (_jsx(DateFilterConfigurationBody, { ...props, intl: intl, dateDataSet: dataSet, defaultDateFilterName: defaultDateFilterName }));
|
|
108
124
|
}
|
|
109
125
|
return ElementsSelect;
|
|
110
|
-
}, [intl,
|
|
126
|
+
}, [intl, dataSet, defaultDateFilterName]);
|
|
111
127
|
return (_jsx(DateFilter, { excludeCurrentPeriod: excludeCurrentPeriod, selectedFilterOption: dateFilterOption, workingExcludeCurrentPeriod: isApplyAllAtOnceEnabledAndSet ? workingExcludeCurrentPeriod : undefined, workingSelectedFilterOption: isApplyAllAtOnceEnabledAndSet ? workingFilterOption : undefined, dateFilterMode: readonly
|
|
112
128
|
? DashboardDateFilterConfigModeValues.READONLY
|
|
113
|
-
: DashboardDateFilterConfigModeValues.ACTIVE, filterOptions: dateFilterOptions, availableGranularities: availableGranularities, customFilterName: title, onApply: onApply, onSelect: isApplyAllAtOnceEnabledAndSet ? onSelect : undefined, dateFormat: dateFormat, locale: locale, isTimeForAbsoluteRangeEnabled: isTimeForAbsoluteRangeEnabled, isSecondsForAbsoluteRangeEnabled: isSecondsForAbsoluteRangeEnabled, isAbsoluteDateFilterGranularityEnabled: isAbsoluteDateFilterGranularityEnabled, isEditMode: isInEditMode, openOnInit: autoOpen, weekStart: weekStart, customIcon: visibilityIcon, showDropDownHeaderMessage: !
|
|
129
|
+
: DashboardDateFilterConfigModeValues.ACTIVE, filterOptions: dateFilterOptions, availableGranularities: availableGranularities, customFilterName: title, onApply: onApply, onSelect: isApplyAllAtOnceEnabledAndSet ? onSelect : undefined, dateFormat: dateFormat, locale: locale, isTimeForAbsoluteRangeEnabled: isTimeForAbsoluteRangeEnabled, isSecondsForAbsoluteRangeEnabled: isSecondsForAbsoluteRangeEnabled, isAbsoluteDateFilterGranularityEnabled: isAbsoluteDateFilterGranularityEnabled, isEditMode: isInEditMode, openOnInit: autoOpen, weekStart: weekStart, customIcon: visibilityIcon, showDropDownHeaderMessage: !dataSet, FilterConfigurationComponent: isConfigurationEnabled ? FilterConfigurationComponent : undefined, withoutApply: isApplyAllAtOnceEnabledAndSet, ButtonComponent: ButtonComponent, overlayPositionType: overlayPositionType, activeCalendars: activeCalendars, enableEmptyDateValues: enableEmptyDateValues, hideDisabledExclude: true, customRangeHint: customRangeHint, shouldOverlayRelativeRangeMenu: true }));
|
|
114
130
|
}
|
package/esm/presentation/filterBar/dateFilter/DefaultDashboardDateFilterComponentSetFactory.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type DateFilterComponentSet } from "../../componentDefinition/types.js";
|
|
2
|
-
import { type
|
|
2
|
+
import { type DateFilterOfAnyTypeComponentProvider } from "../../dashboardContexts/types.js";
|
|
3
3
|
/**
|
|
4
4
|
* @internal
|
|
5
5
|
*/
|
|
6
|
-
export declare function DefaultDashboardDateFilterComponentSetFactory(dateFilterProvider:
|
|
6
|
+
export declare function DefaultDashboardDateFilterComponentSetFactory(dateFilterProvider: DateFilterOfAnyTypeComponentProvider): DateFilterComponentSet;
|
|
7
7
|
//# sourceMappingURL=DefaultDashboardDateFilterComponentSetFactory.d.ts.map
|
package/esm/presentation/filterBar/dateFilter/DefaultDashboardDateFilterComponentSetFactory.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DefaultDashboardDateFilterComponentSetFactory.d.ts","sourceRoot":"","sources":["../../../../src/presentation/filterBar/dateFilter/DefaultDashboardDateFilterComponentSetFactory.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,sBAAsB,EAAE,MAAM,oCAAoC,CAAC;AACjF,OAAO,EAAE,KAAK,
|
|
1
|
+
{"version":3,"file":"DefaultDashboardDateFilterComponentSetFactory.d.ts","sourceRoot":"","sources":["../../../../src/presentation/filterBar/dateFilter/DefaultDashboardDateFilterComponentSetFactory.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,sBAAsB,EAAE,MAAM,oCAAoC,CAAC;AACjF,OAAO,EAAE,KAAK,oCAAoC,EAAE,MAAM,kCAAkC,CAAC;AAK7F;;GAEG;AACH,wBAAgB,6CAA6C,CACzD,kBAAkB,EAAE,oCAAoC,GACzD,sBAAsB,CAcxB"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { type OptionalDateFilterComponentProvider, type OptionalDateFilterOfAnyTypeComponentProvider } from "../../dashboardContexts/types.js";
|
|
2
|
+
/**
|
|
3
|
+
* Converts a provider of components that render the old type only to a provider of any type. The converted
|
|
4
|
+
* provider returns undefined for the other date filter types.
|
|
5
|
+
*/
|
|
6
|
+
export declare function toDateFilterOfAnyTypeProvider(provider: OptionalDateFilterComponentProvider): OptionalDateFilterOfAnyTypeComponentProvider;
|
|
7
|
+
//# sourceMappingURL=dateFilterOfAnyTypeProvider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dateFilterOfAnyTypeProvider.d.ts","sourceRoot":"","sources":["../../../../src/presentation/filterBar/dateFilter/dateFilterOfAnyTypeProvider.tsx"],"names":[],"mappings":"AAOA,OAAO,EACH,KAAK,mCAAmC,EACxC,KAAK,4CAA4C,EACpD,MAAM,kCAAkC,CAAC;AA+C1C;;;GAGG;AACH,wBAAgB,6BAA6B,CACzC,QAAQ,EAAE,mCAAmC,GAC9C,4CAA4C,CAmB9C"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
// (C) 2026 GoodData Corporation
|
|
3
|
+
import { isDashboardAbsoluteGranularityDateFilter, isDashboardParameterizedDateFilter, } from "@gooddata/sdk-model";
|
|
4
|
+
// A new adapter per resolution would remount the component and close its open dropdown.
|
|
5
|
+
const adapters = new WeakMap();
|
|
6
|
+
function createAdapter(Component) {
|
|
7
|
+
function DateFilterOfAnyTypeAdapter({ filter, workingFilter, onFilterChanged, isAbsoluteDateFilterGranularityEnabled: _isAbsoluteDateFilterGranularityEnabled, ...rest }) {
|
|
8
|
+
if (isDashboardAbsoluteGranularityDateFilter(filter) || isDashboardParameterizedDateFilter(filter)) {
|
|
9
|
+
return null;
|
|
10
|
+
}
|
|
11
|
+
return (_jsx(Component, { ...rest, filter: filter, workingFilter: isDashboardAbsoluteGranularityDateFilter(workingFilter) ||
|
|
12
|
+
isDashboardParameterizedDateFilter(workingFilter)
|
|
13
|
+
? undefined
|
|
14
|
+
: workingFilter, onFilterChanged: onFilterChanged }));
|
|
15
|
+
}
|
|
16
|
+
DateFilterOfAnyTypeAdapter.displayName = `DateFilterOfAnyTypeAdapter(${Component.displayName ?? Component.name})`;
|
|
17
|
+
return DateFilterOfAnyTypeAdapter;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Converts a provider of components that render the old type only to a provider of any type. The converted
|
|
21
|
+
* provider returns undefined for the other date filter types.
|
|
22
|
+
*/
|
|
23
|
+
export function toDateFilterOfAnyTypeProvider(provider) {
|
|
24
|
+
return (filter) => {
|
|
25
|
+
// no filter, the common date filter set to All time, stays with the old type
|
|
26
|
+
if (isDashboardAbsoluteGranularityDateFilter(filter) || isDashboardParameterizedDateFilter(filter)) {
|
|
27
|
+
return undefined;
|
|
28
|
+
}
|
|
29
|
+
const Component = provider(filter);
|
|
30
|
+
if (!Component) {
|
|
31
|
+
return undefined;
|
|
32
|
+
}
|
|
33
|
+
let Adapter = adapters.get(Component);
|
|
34
|
+
if (!Adapter) {
|
|
35
|
+
Adapter = createAdapter(Component);
|
|
36
|
+
adapters.set(Component, Adapter);
|
|
37
|
+
}
|
|
38
|
+
return Adapter;
|
|
39
|
+
};
|
|
40
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type ComponentType, type ReactNode } from "react";
|
|
2
|
-
import { type DateFilterGranularity, type IDashboardDateFilter } from "@gooddata/sdk-model";
|
|
2
|
+
import { type DashboardDateFilterOfAnyType, type DateFilterGranularity, type IDashboardDateFilter } from "@gooddata/sdk-model";
|
|
3
3
|
import { type IDateFilterButtonProps, type IDateFilterOptionsByType } from "@gooddata/sdk-ui-filters";
|
|
4
4
|
import { type OverlayPositionType } from "@gooddata/sdk-ui-kit";
|
|
5
5
|
/**
|
|
@@ -94,4 +94,46 @@ export interface IDashboardDateFilterProps {
|
|
|
94
94
|
* @public
|
|
95
95
|
*/
|
|
96
96
|
export type CustomDashboardDateFilterComponent = ComponentType<IDashboardDateFilterProps>;
|
|
97
|
+
/**
|
|
98
|
+
* Props of a date filter component that renders a date filter of any type, including the absolute date filter
|
|
99
|
+
* with granularity.
|
|
100
|
+
*
|
|
101
|
+
* @alpha
|
|
102
|
+
*/
|
|
103
|
+
export interface IDashboardDateFilterOfAnyTypeProps extends Omit<IDashboardDateFilterProps, "filter" | "workingFilter" | "onFilterChanged"> {
|
|
104
|
+
/**
|
|
105
|
+
* Definition of filter to render.
|
|
106
|
+
*/
|
|
107
|
+
filter: DashboardDateFilterOfAnyType | undefined;
|
|
108
|
+
/**
|
|
109
|
+
* Definition of working filter used to render selected options.
|
|
110
|
+
*/
|
|
111
|
+
workingFilter: DashboardDateFilterOfAnyType | undefined;
|
|
112
|
+
/**
|
|
113
|
+
* When the user interacts with the filter and changes its value, it MUST use this callback to propagate the
|
|
114
|
+
* new filter value.
|
|
115
|
+
*
|
|
116
|
+
* @param filter - new date filter value
|
|
117
|
+
* @param dateFilterOptionLocalId - localId of the {@link @gooddata/sdk-backend-spi#IDateFilterOption} selected
|
|
118
|
+
* @param isWorkingSelectionChange - determines if the change is in working filter state (staged for application but not applied yet)
|
|
119
|
+
*/
|
|
120
|
+
onFilterChanged: (filter: DashboardDateFilterOfAnyType | undefined, dateFilterOptionLocalId?: string, isWorkingSelectionChange?: boolean) => void;
|
|
121
|
+
/**
|
|
122
|
+
* Specify whether the filter may offer whole periods and propagate the absolute date filter with granularity.
|
|
123
|
+
* Without it, the filter offers days only.
|
|
124
|
+
*/
|
|
125
|
+
isAbsoluteDateFilterGranularityEnabled?: boolean;
|
|
126
|
+
}
|
|
127
|
+
/**
|
|
128
|
+
* @alpha
|
|
129
|
+
*/
|
|
130
|
+
export type CustomDashboardDateFilterOfAnyTypeComponent = ComponentType<IDashboardDateFilterOfAnyTypeProps>;
|
|
131
|
+
/**
|
|
132
|
+
* Props of {@link DefaultDashboardDateFilter}.
|
|
133
|
+
*
|
|
134
|
+
* @alpha
|
|
135
|
+
*/
|
|
136
|
+
export type IDefaultDashboardDateFilterProps = (IDashboardDateFilterProps & {
|
|
137
|
+
isAbsoluteDateFilterGranularityEnabled?: false;
|
|
138
|
+
}) | IDashboardDateFilterOfAnyTypeProps;
|
|
97
139
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/presentation/filterBar/dateFilter/types.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,aAAa,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAE3D,OAAO,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/presentation/filterBar/dateFilter/types.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,aAAa,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAE3D,OAAO,EACH,KAAK,4BAA4B,EACjC,KAAK,qBAAqB,EAC1B,KAAK,oBAAoB,EAC5B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,KAAK,sBAAsB,EAAE,KAAK,wBAAwB,EAAE,MAAM,0BAA0B,CAAC;AACtG,OAAO,EAAE,KAAK,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAEhE;;;;GAIG;AACH,MAAM,WAAW,0BAA0B;IACvC;;;OAGG;IACH,sBAAsB,EAAE,qBAAqB,EAAE,CAAC;IAEhD;;;OAGG;IACH,iBAAiB,EAAE,wBAAwB,CAAC;IAE5C;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACtC;;OAEG;IACH,MAAM,EAAE,oBAAoB,GAAG,SAAS,CAAC;IAEzC;;OAEG;IACH,aAAa,EAAE,oBAAoB,GAAG,SAAS,CAAC;IAEhD;;;;;;;OAOG;IACH,eAAe,EAAE,CACb,MAAM,EAAE,oBAAoB,GAAG,SAAS,EACxC,uBAAuB,CAAC,EAAE,MAAM,EAChC,wBAAwB,CAAC,EAAE,OAAO,KACjC,IAAI,CAAC;IAEV;;OAEG;IACH,MAAM,EAAE,0BAA0B,CAAC;IAEnC;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;OAEG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IAEtB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;;;OAIG;IACH,eAAe,CAAC,EAAE,aAAa,CAAC,sBAAsB,CAAC,CAAC;IAExD;;OAEG;IACH,mBAAmB,CAAC,EAAE,mBAAmB,CAAC;IAE1C;;;;;;;;;;OAUG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;;;OAKG;IACH,eAAe,CAAC,EAAE,SAAS,CAAC;CAC/B;AAED;;GAEG;AACH,MAAM,MAAM,kCAAkC,GAAG,aAAa,CAAC,yBAAyB,CAAC,CAAC;AAE1F;;;;;GAKG;AACH,MAAM,WAAW,kCAAmC,SAAQ,IAAI,CAC5D,yBAAyB,EACzB,QAAQ,GAAG,eAAe,GAAG,iBAAiB,CACjD;IACG;;OAEG;IACH,MAAM,EAAE,4BAA4B,GAAG,SAAS,CAAC;IAEjD;;OAEG;IACH,aAAa,EAAE,4BAA4B,GAAG,SAAS,CAAC;IAExD;;;;;;;OAOG;IACH,eAAe,EAAE,CACb,MAAM,EAAE,4BAA4B,GAAG,SAAS,EAChD,uBAAuB,CAAC,EAAE,MAAM,EAChC,wBAAwB,CAAC,EAAE,OAAO,KACjC,IAAI,CAAC;IAEV;;;OAGG;IACH,sCAAsC,CAAC,EAAE,OAAO,CAAC;CACpD;AAED;;GAEG;AACH,MAAM,MAAM,2CAA2C,GAAG,aAAa,CAAC,kCAAkC,CAAC,CAAC;AAE5G;;;;GAIG;AACH,MAAM,MAAM,gCAAgC,GACtC,CAAC,yBAAyB,GAAG;IAAE,sCAAsC,CAAC,EAAE,KAAK,CAAA;CAAE,CAAC,GAChF,kCAAkC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DefaultFilterBar.d.ts","sourceRoot":"","sources":["../../../../src/presentation/filterBar/filterBar/DefaultFilterBar.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,YAAY,EAAe,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"DefaultFilterBar.d.ts","sourceRoot":"","sources":["../../../../src/presentation/filterBar/filterBar/DefaultFilterBar.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,YAAY,EAAe,MAAM,OAAO,CAAC;AAqFvD,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,YAAY,CAAC;AAGlD;;GAEG;AACH,eAAO,MAAM,iBAAiB,QAAO,eA+PpC,CAAC;AAEF;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,eAAe,GAAG,YAAY,CA+IrE"}
|
|
@@ -3,10 +3,10 @@ import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-run
|
|
|
3
3
|
import { useCallback } from "react";
|
|
4
4
|
import classNames from "classnames";
|
|
5
5
|
import { generateDateFilterLocalIdentifier } from "@gooddata/sdk-backend-base";
|
|
6
|
-
import { DashboardDateFilterConfigModeValues, DashboardParameterModeValues, areObjRefsEqual, dashboardAttributeFilterItemDisplayForm, dashboardAttributeFilterItemLocalIdentifier, dashboardFilterLocalIdentifier, isAllTimeDashboardDateFilter, isDashboardAttributeFilter, isDashboardAttributeFilterItem, isDashboardDateFilter, isDashboardMeasureValueFilter, objRefToString, } from "@gooddata/sdk-model";
|
|
6
|
+
import { DashboardDateFilterConfigModeValues, DashboardParameterModeValues, areObjRefsEqual, dashboardAttributeFilterItemDisplayForm, dashboardAttributeFilterItemLocalIdentifier, dashboardFilterLocalIdentifier, isAllTimeDashboardDateFilter, isDashboardAbsoluteGranularityDateFilter, isDashboardAttributeFilter, isDashboardAttributeFilterItem, isDashboardDateFilter, isDashboardMeasureValueFilter, isDashboardParameterizedDateFilter, objRefToString, } from "@gooddata/sdk-model";
|
|
7
7
|
import { convertDashboardAttributeFilterElementsValuesToUris } from "../../../_staging/dashboard/legacyFilterConvertors.js";
|
|
8
8
|
import { setDashboardAttributeFilterConfigDisplayAsLabel } from "../../../model/commands/dashboard.js";
|
|
9
|
-
import { changeAttributeFilterSelection, changeDateFilterSelection, changeMeasureValueFilterCondition, changeMigratedAttributeFilterSelection, changeWorkingAttributeFilterSelection, changeWorkingMeasureValueFilterCondition, clearDateFilterSelection, removeRestrictedFilters, replaceAttributeFilterItemSelection, replaceWorkingAttributeFilterItemSelection, setAttributeFilterDisplayForm, } from "../../../model/commands/filters.js";
|
|
9
|
+
import { changeAttributeFilterSelection, changeDateFilterSelection, changeDateFilterSelectionOfAnyType, changeMeasureValueFilterCondition, changeMigratedAttributeFilterSelection, changeWorkingAttributeFilterSelection, changeWorkingMeasureValueFilterCondition, clearDateFilterSelection, removeRestrictedFilters, replaceAttributeFilterItemSelection, replaceWorkingAttributeFilterItemSelection, setAttributeFilterDisplayForm, } from "../../../model/commands/filters.js";
|
|
10
10
|
import { useDashboardDispatch, useDashboardSelector } from "../../../model/react/DashboardStoreProvider.js";
|
|
11
11
|
import { useDispatchDashboardCommand } from "../../../model/react/useDispatchDashboardCommand.js";
|
|
12
12
|
import { selectSupportsElementUris } from "../../../model/store/backendCapabilities/backendCapabilitiesSelectors.js";
|
|
@@ -110,6 +110,14 @@ export const useFilterBarProps = () => {
|
|
|
110
110
|
}
|
|
111
111
|
}, [dispatch, supportElementUris, filters, workingFilters, isApplyAllAtOnceEnabledAndSet]);
|
|
112
112
|
const onDateFilterChanged = useCallback((filter, dateFilterOptionLocalId, isWorkingSelectionChange) => {
|
|
113
|
+
if (isDashboardAbsoluteGranularityDateFilter(filter) ||
|
|
114
|
+
isDashboardParameterizedDateFilter(filter)) {
|
|
115
|
+
dispatch(changeDateFilterSelectionOfAnyType(filter, {
|
|
116
|
+
dateFilterOptionLocalId,
|
|
117
|
+
isWorkingSelectionChange: isWorkingSelectionChange && isApplyAllAtOnceEnabledAndSet,
|
|
118
|
+
}));
|
|
119
|
+
return;
|
|
120
|
+
}
|
|
113
121
|
if (isUnsupportedDateFilterChange(filter)) {
|
|
114
122
|
console.warn("The filter bar ignores a date filter that is not a dashboard date filter.", filter);
|
|
115
123
|
return;
|
|
@@ -164,7 +172,7 @@ export function DefaultFilterBar(props) {
|
|
|
164
172
|
const enableParameters = useDashboardSelector(selectEnableParameters);
|
|
165
173
|
const dashboardParameters = useDashboardSelector(selectDashboardParameters);
|
|
166
174
|
const isExport = useDashboardSelector(selectIsExport);
|
|
167
|
-
const {
|
|
175
|
+
const { DashboardDateFilterOfAnyTypeComponentProvider, RestrictedFiltersPlaceholderComponentProvider } = useDashboardComponentsContext();
|
|
168
176
|
const restrictedFilterCount = useDashboardSelector(selectRestrictedDashboardFilterCount);
|
|
169
177
|
const dispatchRemoveRestrictedFilters = useDispatchDashboardCommand(removeRestrictedFilters);
|
|
170
178
|
const removeRestrictedFiltersFromDashboard = useCallback(() => dispatchRemoveRestrictedFilters(), [dispatchRemoveRestrictedFilters]);
|
|
@@ -184,11 +192,11 @@ export function DefaultFilterBar(props) {
|
|
|
184
192
|
availableGranularities,
|
|
185
193
|
dateFilterOptions,
|
|
186
194
|
};
|
|
187
|
-
const CustomCommonDateFilterComponent =
|
|
195
|
+
const CustomCommonDateFilterComponent = DashboardDateFilterOfAnyTypeComponentProvider(commonDateFilter);
|
|
188
196
|
const CustomRestrictedFiltersPlaceholderComponent = RestrictedFiltersPlaceholderComponentProvider();
|
|
189
197
|
return (_jsxs(DefaultFilterBarContainer, { children: [restrictedFilterCount > 0 ? (_jsx(CustomRestrictedFiltersPlaceholderComponent, { count: restrictedFilterCount, onRemove: isInEditMode ? removeRestrictedFiltersFromDashboard : undefined })) : null, _jsx("div", { className: classNames("dash-filters-date", {
|
|
190
198
|
"dash-filter-is-edit-mode": isInEditMode,
|
|
191
|
-
}), children: commonDateFilterMode === DashboardDateFilterConfigModeValues.HIDDEN ? (_jsx(HiddenDashboardDateFilter, {})) : (_jsxs(_Fragment, { children: [_jsx(CustomCommonDateFilterComponent, { filter: commonDateFilter, workingFilter: isApplyAllAtOnceEnabledAndSet ? commonWorkingDateFilter : undefined, onFilterChanged: onDateFilterChanged, config: commonDateFilterComponentConfig, readonly: commonDateFilterMode === DashboardDateFilterConfigModeValues.READONLY }), _jsx(DraggableFilterDropZoneHint, { placement: "outside", hintPosition: "next", targetIndex: 0, onAddAttributePlaceholder: addDraggableFilterPlaceholder, acceptPlaceholder: canAddMoreFilters })] })) }), groupedFilterItems.map((filterItem) => (_jsx(DefaultFilterBarItem, { ...props, item: filterItem, autoOpenFilter: autoOpenFilter, addDraggableFilterPlaceholder: addDraggableFilterPlaceholder, closeAttributeSelection: closeAttributeSelection, selectDraggableFilter: selectDraggableFilter, onCloseAttributeFilter: onCloseAttributeFilter }, filterItem.filterIndex))), enableParameters
|
|
199
|
+
}), children: commonDateFilterMode === DashboardDateFilterConfigModeValues.HIDDEN ? (_jsx(HiddenDashboardDateFilter, {})) : (_jsxs(_Fragment, { children: [_jsx(CustomCommonDateFilterComponent, { filter: commonDateFilter, workingFilter: isApplyAllAtOnceEnabledAndSet ? commonWorkingDateFilter : undefined, onFilterChanged: onDateFilterChanged, isAbsoluteDateFilterGranularityEnabled: true, config: commonDateFilterComponentConfig, readonly: commonDateFilterMode === DashboardDateFilterConfigModeValues.READONLY }), _jsx(DraggableFilterDropZoneHint, { placement: "outside", hintPosition: "next", targetIndex: 0, onAddAttributePlaceholder: addDraggableFilterPlaceholder, acceptPlaceholder: canAddMoreFilters })] })) }), groupedFilterItems.map((filterItem) => (_jsx(DefaultFilterBarItem, { ...props, item: filterItem, autoOpenFilter: autoOpenFilter, addDraggableFilterPlaceholder: addDraggableFilterPlaceholder, closeAttributeSelection: closeAttributeSelection, selectDraggableFilter: selectDraggableFilter, onCloseAttributeFilter: onCloseAttributeFilter }, filterItem.filterIndex))), enableParameters
|
|
192
200
|
? dashboardParameters.map((parameter) => (_jsx(DashboardParameterFilter, { parameter: parameter }, objRefToString(parameter.ref))))
|
|
193
201
|
: null, canAddMoreFilters ? (_jsx(DraggableFilterDropZone, { targetIndex: draggableFiltersCount, onDrop: addDraggableFilterPlaceholder })) : null, enableParameters && isInEditMode ? _jsx(AddFilterMenu, {}) : null, _jsx(ResetFiltersButton, {}), _jsx("div", { className: "filter-bar-dropzone-container", children: _jsx(DraggableFilterDropZoneHint, { placement: "outside", hintPosition: "prev", acceptPlaceholder: false, targetIndex: draggableFiltersCount }) })] }));
|
|
194
202
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DefaultFilterBarContainer.d.ts","sourceRoot":"","sources":["../../../../src/presentation/filterBar/filterBar/DefaultFilterBarContainer.tsx"],"names":[],"mappings":"AAEA,OAAO,EAGH,KAAK,SAAS,EAOjB,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"DefaultFilterBarContainer.d.ts","sourceRoot":"","sources":["../../../../src/presentation/filterBar/filterBar/DefaultFilterBarContainer.tsx"],"names":[],"mappings":"AAEA,OAAO,EAGH,KAAK,SAAS,EAOjB,MAAM,OAAO,CAAC;AAqff;;GAEG;AACH,wBAAgB,yBAAyB,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,CAAC,EAAE,SAAS,CAAA;CAAE,2CAQ/E"}
|