@gooddata/sdk-ui-dashboard 11.71.0-alpha.0 → 11.71.0-alpha.2
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/dashboard/absoluteGranularityDateFilters.d.ts +0 -7
- package/esm/_staging/dashboard/absoluteGranularityDateFilters.d.ts.map +1 -1
- package/esm/_staging/dashboard/absoluteGranularityDateFilters.js +0 -17
- package/esm/_staging/dashboard/dashboardFilterContext.d.ts.map +1 -1
- package/esm/_staging/dashboard/dashboardFilterContext.js +9 -1
- package/esm/_staging/dashboard/dashboardFilterConverter.d.ts.map +1 -1
- package/esm/_staging/dashboard/dashboardFilterConverter.js +13 -5
- package/esm/_staging/dashboard/parameterizedDateFilters.d.ts +1 -6
- package/esm/_staging/dashboard/parameterizedDateFilters.d.ts.map +1 -1
- package/esm/_staging/dashboard/parameterizedDateFilters.js +1 -13
- package/esm/_staging/dateFilterConfig/periodPresets.d.ts +11 -0
- package/esm/_staging/dateFilterConfig/periodPresets.d.ts.map +1 -0
- package/esm/_staging/dateFilterConfig/periodPresets.js +15 -0
- package/esm/_staging/sharedHooks/useDateFiltersTitles.d.ts +2 -2
- package/esm/_staging/sharedHooks/useDateFiltersTitles.d.ts.map +1 -1
- package/esm/_staging/sharedHooks/useDateFiltersTitles.js +7 -5
- package/esm/_staging/sharedHooks/useFiltersNamings.d.ts.map +1 -1
- package/esm/_staging/sharedHooks/useFiltersNamings.js +18 -10
- package/esm/index.d.ts +4 -4
- package/esm/index.d.ts.map +1 -1
- package/esm/index.js +3 -3
- package/esm/kdaDialog/components/KdaSummaryHeadline.d.ts.map +1 -1
- package/esm/kdaDialog/components/KdaSummaryHeadline.js +3 -1
- package/esm/kdaDialog/components/bars/DateBar.js +1 -1
- package/esm/kdaDialog/composition/KeyDriversPanel.d.ts.map +1 -1
- package/esm/kdaDialog/composition/KeyDriversPanel.js +5 -2
- package/esm/kdaDialog/dialog/KdaDialog.d.ts.map +1 -1
- package/esm/kdaDialog/dialog/KdaDialog.js +4 -3
- package/esm/kdaDialog/dialog/KdaDialogActionButtons.d.ts +5 -1
- package/esm/kdaDialog/dialog/KdaDialogActionButtons.d.ts.map +1 -1
- package/esm/kdaDialog/dialog/KdaDialogActionButtons.js +33 -5
- package/esm/kdaDialog/dialog/KdaDialogFloatingStatusBar.d.ts +5 -1
- package/esm/kdaDialog/dialog/KdaDialogFloatingStatusBar.d.ts.map +1 -1
- package/esm/kdaDialog/dialog/KdaDialogFloatingStatusBar.js +2 -2
- package/esm/kdaDialog/dialog/KdaReplaceConfirmationDialog.d.ts.map +1 -1
- package/esm/kdaDialog/dialog/KdaReplaceConfirmationDialog.js +9 -1
- package/esm/kdaDialog/utils.d.ts +6 -1
- package/esm/kdaDialog/utils.d.ts.map +1 -1
- package/esm/kdaDialog/utils.js +7 -2
- package/esm/model/commandHandlers/dashboard/changeDashboardDefinitionHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/dashboard/changeDashboardDefinitionHandler.js +5 -10
- package/esm/model/commandHandlers/dashboard/changeDateFilterTitleHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/dashboard/changeDateFilterTitleHandler.js +8 -6
- package/esm/model/commandHandlers/dashboard/changeDateFilterWithDimensionModeHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/dashboard/changeDateFilterWithDimensionModeHandler.js +10 -6
- package/esm/model/commandHandlers/dashboard/common/filterViews.d.ts.map +1 -1
- package/esm/model/commandHandlers/dashboard/common/filterViews.js +28 -29
- package/esm/model/commandHandlers/dashboard/common/stateInitializers.d.ts.map +1 -1
- package/esm/model/commandHandlers/dashboard/common/stateInitializers.js +7 -8
- package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/index.d.ts.map +1 -1
- package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/index.js +0 -6
- package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/loadDashboardParameters.d.ts +1 -2
- package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/loadDashboardParameters.d.ts.map +1 -1
- package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/loadDashboardParameters.js +1 -2
- package/esm/model/commandHandlers/drill/crossFilteringHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/drill/crossFilteringHandler.js +1 -0
- package/esm/model/commandHandlers/drill/drillToDashboardHandler.js +5 -6
- package/esm/model/commandHandlers/filterContext/changeFilterContextSelectionHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/filterContext/changeFilterContextSelectionHandler.js +81 -64
- package/esm/model/commandHandlers/filterContext/dateFilter/addDateFilterHandler.js +2 -2
- package/esm/model/commandHandlers/filterContext/dateFilter/changeDateFilterSelectionHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/filterContext/dateFilter/changeDateFilterSelectionHandler.js +2 -6
- package/esm/model/commandHandlers/filterContext/dateFilter/moveDateFilterHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/filterContext/dateFilter/moveDateFilterHandler.js +8 -4
- package/esm/model/commandHandlers/filterContext/dateFilter/removeDateFiltersHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/filterContext/dateFilter/removeDateFiltersHandler.js +21 -17
- package/esm/model/commandHandlers/filterContext/dateFilter/validation/uniqueFiltersValidation.d.ts +2 -2
- package/esm/model/commandHandlers/filterContext/dateFilter/validation/uniqueFiltersValidation.d.ts.map +1 -1
- package/esm/model/commandHandlers/filterContext/dateFilter/validation/uniqueFiltersValidation.js +2 -2
- package/esm/model/commandHandlers/filterContext/filterViewHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/filterContext/filterViewHandler.js +1 -11
- package/esm/model/commandHandlers/filterContext/removeRestrictedFiltersHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/filterContext/removeRestrictedFiltersHandler.js +3 -3
- package/esm/model/commandHandlers/filterContext/tabSync/tabSyncRules.d.ts.map +1 -1
- package/esm/model/commandHandlers/filterContext/tabSync/tabSyncRules.js +13 -6
- package/esm/model/commandHandlers/widgets/changeInsightWidgetFilterSettingsHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/widgets/changeInsightWidgetFilterSettingsHandler.js +2 -2
- package/esm/model/commandHandlers/widgets/changeRichTextWidgetFilterSettingsHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/widgets/changeRichTextWidgetFilterSettingsHandler.js +2 -2
- package/esm/model/commandHandlers/widgets/common/filterOperations.d.ts +3 -3
- package/esm/model/commandHandlers/widgets/common/filterOperations.d.ts.map +1 -1
- package/esm/model/commandHandlers/widgets/common/filterOperations.js +14 -14
- package/esm/model/commandHandlers/widgets/common/filterReferences.d.ts +2 -2
- package/esm/model/commandHandlers/widgets/common/filterReferences.d.ts.map +1 -1
- package/esm/model/commandHandlers/widgets/common/filterReferences.js +1 -1
- package/esm/model/commandHandlers/widgets/validation/filterValidation.d.ts +2 -2
- package/esm/model/commandHandlers/widgets/validation/filterValidation.d.ts.map +1 -1
- package/esm/model/commandHandlers/widgets/validation/filterValidation.js +4 -4
- package/esm/model/commands/filters.d.ts +1 -2
- package/esm/model/commands/filters.d.ts.map +1 -1
- package/esm/model/events/base.d.ts +1 -1
- package/esm/model/events/base.d.ts.map +1 -1
- package/esm/model/events/filters.d.ts +107 -0
- package/esm/model/events/filters.d.ts.map +1 -1
- package/esm/model/events/filters.js +54 -0
- package/esm/model/events/index.d.ts +2 -2
- package/esm/model/events/index.d.ts.map +1 -1
- package/esm/model/events/insight.d.ts +12 -2
- package/esm/model/events/insight.d.ts.map +1 -1
- package/esm/model/events/insight.js +2 -1
- package/esm/model/events/richText.d.ts +12 -2
- package/esm/model/events/richText.d.ts.map +1 -1
- package/esm/model/events/richText.js +2 -1
- package/esm/model/react/useWidgetFilters.d.ts.map +1 -1
- package/esm/model/react/useWidgetFilters.js +8 -10
- package/esm/model/store/config/configSelectors.d.ts +6 -0
- package/esm/model/store/config/configSelectors.d.ts.map +1 -1
- package/esm/model/store/config/configSelectors.js +8 -0
- package/esm/model/store/filtering/dashboardFilterSelectors.d.ts.map +1 -1
- package/esm/model/store/filtering/dashboardFilterSelectors.js +20 -39
- package/esm/model/store/insights/insightsSelectors.d.ts.map +1 -1
- package/esm/model/store/insights/insightsSelectors.js +9 -3
- package/esm/model/store/meta/metaSelectors.js +3 -3
- package/esm/model/store/tabs/filterContext/filterContextReducers.d.ts +28 -2
- package/esm/model/store/tabs/filterContext/filterContextReducers.d.ts.map +1 -1
- package/esm/model/store/tabs/filterContext/filterContextReducers.js +36 -25
- package/esm/model/store/tabs/filterContext/filterContextSelectors.d.ts +43 -3
- package/esm/model/store/tabs/filterContext/filterContextSelectors.d.ts.map +1 -1
- package/esm/model/store/tabs/filterContext/filterContextSelectors.js +53 -9
- package/esm/model/store/tabs/filterContext/filterContextUtils.d.ts.map +1 -1
- package/esm/model/store/tabs/filterContext/filterContextUtils.js +18 -20
- package/esm/model/store/tabs/filterContext/filterSync.d.ts +7 -0
- package/esm/model/store/tabs/filterContext/filterSync.d.ts.map +1 -1
- package/esm/model/store/tabs/filterContext/filterSync.js +32 -44
- package/esm/model/utils/widgetFilters.d.ts.map +1 -1
- package/esm/model/utils/widgetFilters.js +4 -3
- package/esm/presentation/automations/connectors/AlertingConnector.d.ts.map +1 -1
- package/esm/presentation/automations/connectors/AlertingConnector.js +6 -0
- package/esm/presentation/automations/connectors/ScheduledEmailConnector.d.ts.map +1 -1
- package/esm/presentation/automations/connectors/ScheduledEmailConnector.js +6 -0
- package/esm/presentation/automations/connectors/hooks/useAutomationManagementEditRouting.d.ts +1 -0
- package/esm/presentation/automations/connectors/hooks/useAutomationManagementEditRouting.d.ts.map +1 -1
- package/esm/presentation/automations/connectors/hooks/useAutomationManagementEditRouting.js +56 -2
- package/esm/presentation/automations/connectors/hooks/useBuildAutomationsContext.d.ts.map +1 -1
- package/esm/presentation/automations/connectors/hooks/useBuildAutomationsContext.js +4 -1
- package/esm/presentation/automations/connectors/hooks/useParameterizedDateFilterBlocksAutomation.d.ts +10 -0
- package/esm/presentation/automations/connectors/hooks/useParameterizedDateFilterBlocksAutomation.d.ts.map +1 -0
- package/esm/presentation/automations/connectors/hooks/useParameterizedDateFilterBlocksAutomation.js +20 -0
- package/esm/presentation/automations/contexts/AutomationsContext.d.ts +2 -0
- package/esm/presentation/automations/contexts/AutomationsContext.d.ts.map +1 -1
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailManagementDialog/DefaultScheduledEmailManagementDialogContent.d.ts.map +1 -1
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailManagementDialog/DefaultScheduledEmailManagementDialogContent.js +5 -3
- package/esm/presentation/automations/shared/automationFilters/components/AutomationFiltersSelect.d.ts.map +1 -1
- package/esm/presentation/automations/shared/automationFilters/components/AutomationFiltersSelect.js +6 -4
- package/esm/presentation/automations/shared/automationFilters/useAutomationFilters.d.ts +2 -1
- package/esm/presentation/automations/shared/automationFilters/useAutomationFilters.d.ts.map +1 -1
- package/esm/presentation/automations/shared/automationFilters/useAutomationFilters.js +43 -7
- package/esm/presentation/automations/shared/components/ParameterizedDateFilterNotSupportedDialog.d.ts +12 -0
- package/esm/presentation/automations/shared/components/ParameterizedDateFilterNotSupportedDialog.d.ts.map +1 -0
- package/esm/presentation/automations/shared/components/ParameterizedDateFilterNotSupportedDialog.js +31 -0
- package/esm/presentation/automations/shared/hooks/useFiltersNamings.d.ts.map +1 -1
- package/esm/presentation/automations/shared/hooks/useFiltersNamings.js +1 -0
- package/esm/presentation/constants/automations.d.ts +1 -0
- package/esm/presentation/constants/automations.d.ts.map +1 -1
- package/esm/presentation/constants/automations.js +19 -0
- package/esm/presentation/dashboard/components/DashboardInner.d.ts.map +1 -1
- package/esm/presentation/dashboard/components/DashboardInner.js +18 -10
- package/esm/presentation/dragAndDrop/draggableDateFilter/DefaultDateFilterDraggingComponent.d.ts.map +1 -1
- package/esm/presentation/dragAndDrop/draggableDateFilter/DefaultDateFilterDraggingComponent.js +3 -2
- package/esm/presentation/dragAndDrop/draggableDateFilter/DraggableDateFilter.d.ts +3 -3
- package/esm/presentation/dragAndDrop/draggableDateFilter/DraggableDateFilter.d.ts.map +1 -1
- package/esm/presentation/dragAndDrop/draggableDateFilter/DraggableDateFilter.js +1 -1
- package/esm/presentation/dragAndDrop/draggableFilterDropZone/DraggableFilterDropZoneHint.d.ts.map +1 -1
- package/esm/presentation/dragAndDrop/draggableFilterDropZone/DraggableFilterDropZoneHint.js +2 -2
- package/esm/presentation/dragAndDrop/types.d.ts +2 -2
- package/esm/presentation/dragAndDrop/types.d.ts.map +1 -1
- package/esm/presentation/dragAndDrop/useFilterDeleteDrop.d.ts.map +1 -1
- package/esm/presentation/dragAndDrop/useFilterDeleteDrop.js +2 -2
- package/esm/presentation/filterBar/attributeFilter/AttributeFilterParentFilteringContext.d.ts.map +1 -1
- package/esm/presentation/filterBar/attributeFilter/AttributeFilterParentFilteringContext.js +3 -3
- package/esm/presentation/filterBar/attributeFilter/dashboardDropdownBody/configuration/hooks/useDependentDateFilterConfigurationState.d.ts +15 -3
- package/esm/presentation/filterBar/attributeFilter/dashboardDropdownBody/configuration/hooks/useDependentDateFilterConfigurationState.d.ts.map +1 -1
- package/esm/presentation/filterBar/attributeFilter/dashboardDropdownBody/configuration/hooks/useDependentDateFilterConfigurationState.js +27 -31
- package/esm/presentation/filterBar/attributeFilter/dashboardDropdownBody/configuration/hooks/useDependentDateFiltersConfiguration.d.ts +3 -3
- package/esm/presentation/filterBar/attributeFilter/dashboardDropdownBody/configuration/hooks/useDependentDateFiltersConfiguration.d.ts.map +1 -1
- package/esm/presentation/filterBar/attributeFilter/dashboardDropdownBody/configuration/hooks/useDependentDateFiltersConfiguration.js +3 -2
- package/esm/presentation/filterBar/attributeFilter/dashboardDropdownBody/configuration/limitValues/LimitValuesConfiguration.d.ts +2 -2
- package/esm/presentation/filterBar/attributeFilter/dashboardDropdownBody/configuration/limitValues/LimitValuesConfiguration.d.ts.map +1 -1
- package/esm/presentation/filterBar/attributeFilter/dashboardDropdownBody/configuration/limitValues/dialog/AddLimitingItemDialog.d.ts +2 -2
- package/esm/presentation/filterBar/attributeFilter/dashboardDropdownBody/configuration/limitValues/dialog/AddLimitingItemDialog.d.ts.map +1 -1
- package/esm/presentation/filterBar/attributeFilter/dashboardDropdownBody/configuration/limitValues/dialog/DateFiltersPage.d.ts +2 -2
- package/esm/presentation/filterBar/attributeFilter/dashboardDropdownBody/configuration/limitValues/dialog/DateFiltersPage.d.ts.map +1 -1
- package/esm/presentation/filterBar/attributeFilter/dashboardDropdownBody/configuration/limitValues/dialog/DateFiltersPage.js +1 -1
- package/esm/presentation/filterBar/attributeFilter/dashboardDropdownBody/configuration/limitValues/dialog/ParentFiltersPage.d.ts +2 -2
- package/esm/presentation/filterBar/attributeFilter/dashboardDropdownBody/configuration/limitValues/dialog/ParentFiltersPage.d.ts.map +1 -1
- package/esm/presentation/filterBar/attributeFilter/dashboardDropdownBody/configuration/limitValues/shared/limitingItemsHook.d.ts +3 -3
- package/esm/presentation/filterBar/attributeFilter/dashboardDropdownBody/configuration/limitValues/shared/limitingItemsHook.d.ts.map +1 -1
- package/esm/presentation/filterBar/attributeFilter/dashboardDropdownBody/configuration/limitValues/shared/limitingItemsHook.js +2 -4
- package/esm/presentation/filterBar/attributeFilter/useDependentDateFilters.d.ts.map +1 -1
- package/esm/presentation/filterBar/attributeFilter/useDependentDateFilters.js +42 -20
- package/esm/presentation/filterBar/dateFilter/DefaultDashboardDateFilter.d.ts.map +1 -1
- package/esm/presentation/filterBar/dateFilter/DefaultDashboardDateFilter.js +10 -7
- package/esm/presentation/filterBar/filterBar/DefaultFilterBar.d.ts.map +1 -1
- package/esm/presentation/filterBar/filterBar/DefaultFilterBar.js +3 -3
- package/esm/presentation/filterBar/filterBar/DefaultFilterBarContainer.d.ts.map +1 -1
- package/esm/presentation/filterBar/filterBar/DefaultFilterBarContainer.js +13 -4
- package/esm/presentation/filterBar/filterBar/DefaultFilterBarItem.d.ts.map +1 -1
- package/esm/presentation/filterBar/filterBar/DefaultFilterBarItem.js +9 -8
- package/esm/presentation/filterBar/filterBar/filterGroupUtils.js +3 -3
- package/esm/presentation/filterBar/filterBar/filterViews/FilterViews.d.ts.map +1 -1
- package/esm/presentation/filterBar/filterBar/filterViews/FilterViews.js +13 -2
- package/esm/presentation/filterBar/filterBar/hooks/useResetFiltersButton.d.ts.map +1 -1
- package/esm/presentation/filterBar/filterBar/hooks/useResetFiltersButton.js +5 -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 +9 -9
- package/esm/presentation/filterBar/utils.d.ts.map +1 -1
- package/esm/presentation/filterBar/utils.js +2 -2
- package/esm/presentation/localization/bundles/de-DE.localization-bundle.d.ts +13 -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 +20 -7
- package/esm/presentation/localization/bundles/en-AU.localization-bundle.d.ts +13 -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 +13 -0
- package/esm/presentation/localization/bundles/en-GB.localization-bundle.d.ts +13 -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 +15 -2
- package/esm/presentation/localization/bundles/en-US.localization-bundle.d.ts +20 -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 +20 -0
- package/esm/presentation/localization/bundles/es-419.localization-bundle.d.ts +13 -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 +14 -1
- package/esm/presentation/localization/bundles/es-ES.localization-bundle.d.ts +13 -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 +15 -2
- package/esm/presentation/localization/bundles/fi-FI.localization-bundle.d.ts +13 -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 +13 -0
- package/esm/presentation/localization/bundles/fr-CA.localization-bundle.d.ts +13 -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 +16 -3
- package/esm/presentation/localization/bundles/fr-FR.localization-bundle.d.ts +13 -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 +16 -3
- package/esm/presentation/localization/bundles/id-ID.localization-bundle.d.ts +13 -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 +13 -0
- package/esm/presentation/localization/bundles/it-IT.localization-bundle.d.ts +13 -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 +17 -4
- package/esm/presentation/localization/bundles/ja-JP.localization-bundle.d.ts +13 -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 +13 -0
- package/esm/presentation/localization/bundles/ko-KR.localization-bundle.d.ts +13 -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 +14 -1
- package/esm/presentation/localization/bundles/nl-NL.localization-bundle.d.ts +13 -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 +17 -4
- package/esm/presentation/localization/bundles/pl-PL.localization-bundle.d.ts +13 -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 +13 -0
- package/esm/presentation/localization/bundles/pt-BR.localization-bundle.d.ts +13 -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 +15 -2
- package/esm/presentation/localization/bundles/pt-PT.localization-bundle.d.ts +13 -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 +20 -7
- package/esm/presentation/localization/bundles/ru-RU.localization-bundle.d.ts +13 -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 +13 -0
- package/esm/presentation/localization/bundles/sl-SI.localization-bundle.d.ts +13 -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 +13 -0
- package/esm/presentation/localization/bundles/th-TH.localization-bundle.d.ts +13 -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 +13 -0
- package/esm/presentation/localization/bundles/tr-TR.localization-bundle.d.ts +13 -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 +13 -0
- package/esm/presentation/localization/bundles/uk-UA.localization-bundle.d.ts +13 -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 +13 -0
- package/esm/presentation/localization/bundles/vi-VN.localization-bundle.d.ts +13 -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 +13 -0
- package/esm/presentation/localization/bundles/zh-HK.localization-bundle.d.ts +13 -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 +22 -9
- package/esm/presentation/localization/bundles/zh-Hans.localization-bundle.d.ts +13 -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 +14 -1
- package/esm/presentation/localization/bundles/zh-Hant.localization-bundle.d.ts +13 -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 +17 -4
- package/esm/presentation/topBar/menuButton/DefaultMenuButton.d.ts.map +1 -1
- package/esm/presentation/topBar/menuButton/DefaultMenuButton.js +33 -6
- package/esm/presentation/widget/common/configuration/DateDatasetFilter.js +2 -2
- package/esm/presentation/widget/common/configuration/FilterConfiguration.d.ts.map +1 -1
- package/esm/presentation/widget/common/configuration/FilterConfiguration.js +5 -4
- package/esm/presentation/widget/insight/ViewModeDashboardInsight/InsightDrillDialog/DrillDialogInsight.d.ts.map +1 -1
- package/esm/presentation/widget/insight/ViewModeDashboardInsight/InsightDrillDialog/DrillDialogInsight.js +9 -2
- package/esm/presentation/widget/insight/ViewModeDashboardInsight/InsightDrillDialog/InsightDrillDialog.d.ts.map +1 -1
- package/esm/presentation/widget/insight/ViewModeDashboardInsight/InsightDrillDialog/InsightDrillDialog.js +3 -21
- package/esm/presentation/widget/insight/ViewModeDashboardInsight/InsightDrillDialog/getDrillDialogInsightDescription.d.ts +6 -0
- package/esm/presentation/widget/insight/ViewModeDashboardInsight/InsightDrillDialog/getDrillDialogInsightDescription.d.ts.map +1 -0
- package/esm/presentation/widget/insight/ViewModeDashboardInsight/InsightDrillDialog/getDrillDialogInsightDescription.js +24 -0
- package/esm/presentation/widget/insight/configuration/DrillFilters/drillFiltersConfigUtils.d.ts.map +1 -1
- package/esm/presentation/widget/insight/configuration/DrillFilters/drillFiltersConfigUtils.js +3 -3
- package/esm/presentation/widget/insight/configuration/DrillFilters/optionMappings/mapDashboardFilterToOption.d.ts.map +1 -1
- package/esm/presentation/widget/insight/configuration/DrillFilters/optionMappings/mapDashboardFilterToOption.js +5 -4
- package/esm/sdk-ui-dashboard.d.ts +231 -14
- package/package.json +23 -23
- package/styles/css/kdaDialog.css +7 -0
- package/styles/css/kdaDialog.css.map +1 -1
- package/styles/css/main.css +17 -0
- package/styles/css/main.css.map +1 -1
- package/styles/scss/kdaDialog.scss +11 -0
|
@@ -9,7 +9,7 @@ import { useDashboardSelector } from "../../../model/react/DashboardStoreProvide
|
|
|
9
9
|
import { useDashboardCommandProcessing } from "../../../model/react/useDashboardCommandProcessing.js";
|
|
10
10
|
import { selectAllCatalogDisplayFormsMap } from "../../../model/store/catalog/catalogSelectors.js";
|
|
11
11
|
import { selectRestrictedDashboardFilterLocalIdentifiers } from "../../../model/store/filtering/dashboardFilterSelectors.js";
|
|
12
|
-
import {
|
|
12
|
+
import { selectFilterContextDateFilterOfAnyType, selectFilterContextDateFiltersWithDimensionOfAnyType, selectOtherContextAttributeFilterItems, } from "../../../model/store/tabs/filterContext/filterContextSelectors.js";
|
|
13
13
|
import { useDependentDateFiltersConfiguration } from "./dashboardDropdownBody/configuration/hooks/useDependentDateFiltersConfiguration.js";
|
|
14
14
|
import { useDisplayFormConfiguration } from "./dashboardDropdownBody/configuration/hooks/useDisplayFormConfiguration.js";
|
|
15
15
|
import { useLimitingItemsConfiguration } from "./dashboardDropdownBody/configuration/hooks/useLimitingItemsConfiguration.js";
|
|
@@ -46,11 +46,11 @@ export function AttributeFilterParentFilteringProvider({ children, filterItem, a
|
|
|
46
46
|
return filterObjRef(attributeFilter);
|
|
47
47
|
}, [attributeFilter]);
|
|
48
48
|
const allNeighborFilters = useDashboardSelector(selectOtherContextAttributeFilterItems(filterRef));
|
|
49
|
-
const allNeighborDateFilters = useDashboardSelector(
|
|
49
|
+
const allNeighborDateFilters = useDashboardSelector(selectFilterContextDateFiltersWithDimensionOfAnyType);
|
|
50
50
|
const restrictedFilterLocalIdentifiers = useDashboardSelector(selectRestrictedDashboardFilterLocalIdentifiers);
|
|
51
51
|
const neighborFilters = useMemo(() => allNeighborFilters.filter((filter) => !restrictedFilterLocalIdentifiers.has(dashboardAttributeFilterItemLocalIdentifier(filter) ?? "")), [allNeighborFilters, restrictedFilterLocalIdentifiers]);
|
|
52
52
|
const neighborDateFilters = useMemo(() => allNeighborDateFilters.filter((filter) => !restrictedFilterLocalIdentifiers.has(dashboardFilterLocalIdentifier(filter) ?? "")), [allNeighborDateFilters, restrictedFilterLocalIdentifiers]);
|
|
53
|
-
const commonDateFilter = useDashboardSelector(
|
|
53
|
+
const commonDateFilter = useDashboardSelector(selectFilterContextDateFilterOfAnyType);
|
|
54
54
|
const catalogDisplayFormsMap = useDashboardSelector(selectAllCatalogDisplayFormsMap);
|
|
55
55
|
const getAttributeFilterDisplayFormFromMap = useAttributeFilterDisplayFormFromMap();
|
|
56
56
|
const filterDisplayForm = getAttributeFilterDisplayFormFromMap(dashboardAttributeFilterItemDisplayForm(currentFilter));
|
|
@@ -1,8 +1,20 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type DashboardDateFilterOfAnyType, type IDashboardAttributeFilterByDate } from "@gooddata/sdk-model";
|
|
2
2
|
import { type IDashboardDependentDateFilter } from "../../../../../../model/types/dateFilterTypes.js";
|
|
3
3
|
/**
|
|
4
4
|
* @internal
|
|
5
5
|
*/
|
|
6
|
-
export declare function useDependentDateFilterConfigurationState(neighborFilters:
|
|
7
|
-
export declare function useDependentCommonDateFilterConfigurationState(commonDateFilter?:
|
|
6
|
+
export declare function useDependentDateFilterConfigurationState(neighborFilters: DashboardDateFilterOfAnyType[], commonDateFilter?: DashboardDateFilterOfAnyType, filterElementsByDate?: IDashboardAttributeFilterByDate[]): IDashboardDependentDateFilter[];
|
|
7
|
+
export declare function useDependentCommonDateFilterConfigurationState(commonDateFilter?: DashboardDateFilterOfAnyType): DashboardDateFilterOfAnyType;
|
|
8
|
+
/**
|
|
9
|
+
* Returns the type and the range of a date filter for the parent filter configuration, All time when there is
|
|
10
|
+
* no filter, for example when the dashboard has no common date filter.
|
|
11
|
+
*
|
|
12
|
+
* @remarks
|
|
13
|
+
* The absolute date filter with granularity is described as an absolute one, its periods are not day dates
|
|
14
|
+
* and its granularity is not a date filter granularity, so they are left out. The parameterized date filter
|
|
15
|
+
* holds no period, it is described the same way.
|
|
16
|
+
*
|
|
17
|
+
* @internal
|
|
18
|
+
*/
|
|
19
|
+
export declare function getDateFilterRange(dateFilter?: DashboardDateFilterOfAnyType): Pick<IDashboardDependentDateFilter, "type" | "granularity" | "from" | "to">;
|
|
8
20
|
//# sourceMappingURL=useDependentDateFilterConfigurationState.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useDependentDateFilterConfigurationState.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/filterBar/attributeFilter/dashboardDropdownBody/configuration/hooks/useDependentDateFilterConfigurationState.ts"],"names":[],"mappings":"AAMA,OAAO,EACH,KAAK,+BAA+B,
|
|
1
|
+
{"version":3,"file":"useDependentDateFilterConfigurationState.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/filterBar/attributeFilter/dashboardDropdownBody/configuration/hooks/useDependentDateFilterConfigurationState.ts"],"names":[],"mappings":"AAMA,OAAO,EACH,KAAK,4BAA4B,EACjC,KAAK,+BAA+B,EAOvC,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,KAAK,6BAA6B,EAAE,MAAM,kDAAkD,CAAC;AAEtG;;GAEG;AACH,wBAAgB,wCAAwC,CACpD,eAAe,EAAE,4BAA4B,EAAE,EAC/C,gBAAgB,CAAC,EAAE,4BAA4B,EAC/C,oBAAoB,CAAC,EAAE,+BAA+B,EAAE,mCAmE3D;AAED,wBAAgB,8CAA8C,CAC1D,gBAAgB,CAAC,EAAE,4BAA4B,GAChD,4BAA4B,CAW9B;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,kBAAkB,CAC9B,UAAU,CAAC,EAAE,4BAA4B,GAC1C,IAAI,CAAC,6BAA6B,EAAE,MAAM,GAAG,aAAa,GAAG,MAAM,GAAG,IAAI,CAAC,CAa7E"}
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
// (C) 2024-2026 GoodData Corporation
|
|
2
2
|
import { useMemo } from "react";
|
|
3
3
|
import { invariant } from "ts-invariant";
|
|
4
|
-
import { isUriRef, } from "@gooddata/sdk-model";
|
|
4
|
+
import { dashboardFilterLocalIdentifier, dashboardFilterObjRef, isDashboardAbsoluteGranularityDateFilter, isDashboardParameterizedDateFilter, isUriRef, } from "@gooddata/sdk-model";
|
|
5
5
|
/**
|
|
6
6
|
* @internal
|
|
7
7
|
*/
|
|
8
8
|
export function useDependentDateFilterConfigurationState(neighborFilters, commonDateFilter, filterElementsByDate) {
|
|
9
9
|
const neighborDateFiltersWithDimensions = useMemo(() => {
|
|
10
10
|
return neighborFilters.map((neighborFilter) => {
|
|
11
|
-
const neighborDataSet = neighborFilter
|
|
11
|
+
const neighborDataSet = dashboardFilterObjRef(neighborFilter);
|
|
12
12
|
invariant(!isUriRef(neighborDataSet));
|
|
13
13
|
// Prefer the filter's own localIdentifier over the dataset identifier so that multiple date
|
|
14
14
|
// filters backed by the same dataset can be told apart. Falls back to the dataset identifier
|
|
15
15
|
// for date filters that don't carry a localIdentifier (e.g. older backend records).
|
|
16
|
-
const filterLocalIdentifier = neighborFilter
|
|
16
|
+
const filterLocalIdentifier = dashboardFilterLocalIdentifier(neighborFilter) ?? neighborDataSet?.identifier;
|
|
17
17
|
const isSelected = filterElementsByDate?.some((by) =>
|
|
18
18
|
// Match against both the new (localIdentifier) and legacy (dataset identifier)
|
|
19
19
|
// formats: dashboards saved before this change store the dataset identifier in
|
|
@@ -23,19 +23,16 @@ export function useDependentDateFilterConfigurationState(neighborFilters, common
|
|
|
23
23
|
!by.isCommonDate) || false;
|
|
24
24
|
invariant(filterLocalIdentifier, "Cannot initialize the attribute filter configuration panel, neighbor date filter has missing 'localIdentifier' property.");
|
|
25
25
|
return {
|
|
26
|
+
...getDateFilterRange(neighborFilter),
|
|
26
27
|
localIdentifier: filterLocalIdentifier,
|
|
27
28
|
isSelected,
|
|
28
|
-
dataSet:
|
|
29
|
-
from: neighborFilter.dateFilter.from,
|
|
30
|
-
to: neighborFilter.dateFilter.to,
|
|
31
|
-
granularity: neighborFilter.dateFilter.granularity,
|
|
32
|
-
type: neighborFilter.dateFilter.type,
|
|
29
|
+
dataSet: neighborDataSet,
|
|
33
30
|
isCommonDate: false,
|
|
34
31
|
};
|
|
35
32
|
});
|
|
36
33
|
}, [neighborFilters, filterElementsByDate]);
|
|
37
34
|
const commonDateFilters = useMemo(() => {
|
|
38
|
-
const
|
|
35
|
+
const commonDateRange = getDateFilterRange(commonDateFilter);
|
|
39
36
|
return (filterElementsByDate ?? [])
|
|
40
37
|
.filter((parent) => parent.isCommonDate)
|
|
41
38
|
.map((parent) => {
|
|
@@ -49,13 +46,10 @@ export function useDependentDateFilterConfigurationState(neighborFilters, common
|
|
|
49
46
|
};
|
|
50
47
|
invariant(!isUriRef(dimension));
|
|
51
48
|
return {
|
|
49
|
+
...commonDateRange,
|
|
52
50
|
localIdentifier: dimension.identifier,
|
|
53
51
|
isSelected: true,
|
|
54
52
|
dataSet: dimension,
|
|
55
|
-
from: commonDate.from,
|
|
56
|
-
to: commonDate.to,
|
|
57
|
-
granularity: commonDate.granularity,
|
|
58
|
-
type: commonDate.type,
|
|
59
53
|
isCommonDate: true,
|
|
60
54
|
};
|
|
61
55
|
});
|
|
@@ -75,23 +69,25 @@ export function useDependentCommonDateFilterConfigurationState(commonDateFilter)
|
|
|
75
69
|
};
|
|
76
70
|
}
|
|
77
71
|
}
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
72
|
+
/**
|
|
73
|
+
* Returns the type and the range of a date filter for the parent filter configuration, All time when there is
|
|
74
|
+
* no filter, for example when the dashboard has no common date filter.
|
|
75
|
+
*
|
|
76
|
+
* @remarks
|
|
77
|
+
* The absolute date filter with granularity is described as an absolute one, its periods are not day dates
|
|
78
|
+
* and its granularity is not a date filter granularity, so they are left out. The parameterized date filter
|
|
79
|
+
* holds no period, it is described the same way.
|
|
80
|
+
*
|
|
81
|
+
* @internal
|
|
82
|
+
*/
|
|
83
|
+
export function getDateFilterRange(dateFilter) {
|
|
84
|
+
if (!dateFilter) {
|
|
85
|
+
return { granularity: "GDC.time.date", type: "relative" };
|
|
88
86
|
}
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
type: "relative",
|
|
93
|
-
localIdentifier: "commonDate",
|
|
94
|
-
isCommonDate: true,
|
|
95
|
-
};
|
|
87
|
+
if (isDashboardAbsoluteGranularityDateFilter(dateFilter) ||
|
|
88
|
+
isDashboardParameterizedDateFilter(dateFilter)) {
|
|
89
|
+
return { type: "absolute" };
|
|
96
90
|
}
|
|
97
|
-
};
|
|
91
|
+
const { from, to, granularity, type } = dateFilter.dateFilter;
|
|
92
|
+
return { from, to, granularity, type };
|
|
93
|
+
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type DashboardDateFilterOfAnyType, type IDashboardAttributeFilter } from "@gooddata/sdk-model";
|
|
2
2
|
import { type IDashboardDependentDateFilter } from "../../../../../../model/types/dateFilterTypes.js";
|
|
3
|
-
export declare function useDependentDateFiltersConfiguration(neighborDateFilters:
|
|
3
|
+
export declare function useDependentDateFiltersConfiguration(neighborDateFilters: DashboardDateFilterOfAnyType[], currentFilter: IDashboardAttributeFilter, commonDateFilter?: DashboardDateFilterOfAnyType): {
|
|
4
4
|
dependentDateFilters: IDashboardDependentDateFilter[];
|
|
5
|
-
dependentCommonDateFilter:
|
|
5
|
+
dependentCommonDateFilter: DashboardDateFilterOfAnyType;
|
|
6
6
|
onDependentDateFiltersSelect: (item: IDashboardDependentDateFilter, isSelected: boolean, isCommonDate: boolean) => void;
|
|
7
7
|
onConfigurationClose: () => void;
|
|
8
8
|
onDependentDateFiltersConfigurationChanged: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useDependentDateFiltersConfiguration.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/filterBar/attributeFilter/dashboardDropdownBody/configuration/hooks/useDependentDateFiltersConfiguration.ts"],"names":[],"mappings":"AAOA,OAAO,EACH,KAAK,
|
|
1
|
+
{"version":3,"file":"useDependentDateFiltersConfiguration.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/filterBar/attributeFilter/dashboardDropdownBody/configuration/hooks/useDependentDateFiltersConfiguration.ts"],"names":[],"mappings":"AAOA,OAAO,EACH,KAAK,4BAA4B,EACjC,KAAK,yBAAyB,EAIjC,MAAM,qBAAqB,CAAC;AAK7B,OAAO,EAAE,KAAK,6BAA6B,EAAE,MAAM,kDAAkD,CAAC;AAOtG,wBAAgB,oCAAoC,CAChD,mBAAmB,EAAE,4BAA4B,EAAE,EACnD,aAAa,EAAE,yBAAyB,EACxC,gBAAgB,CAAC,EAAE,4BAA4B;;;yCA6BrC,6BAA6B,cACvB,OAAO,gBACL,OAAO;;;;EAoG5B"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { useCallback, useMemo, useState } from "react";
|
|
3
3
|
import { invariant } from "ts-invariant";
|
|
4
4
|
import { generateDateFilterLocalIdentifier } from "@gooddata/sdk-backend-base";
|
|
5
|
-
import { isUriRef, } from "@gooddata/sdk-model";
|
|
5
|
+
import { dashboardFilterLocalIdentifier, isUriRef, } from "@gooddata/sdk-model";
|
|
6
6
|
import { _isEqual } from "@gooddata/util";
|
|
7
7
|
import { setAttributeFilterDependentDateFilters } from "../../../../../../model/commands/filters.js";
|
|
8
8
|
import { useDispatchDashboardCommand } from "../../../../../../model/react/useDispatchDashboardCommand.js";
|
|
@@ -51,7 +51,8 @@ export function useDependentDateFiltersConfiguration(neighborDateFilters, curren
|
|
|
51
51
|
// localIdentifier (falling back to the canonical common-date id) and carry the chosen
|
|
52
52
|
// dimension in the separate `dataSet` field. Specific date filters are referenced by their
|
|
53
53
|
// localIdentifier and need no dataSet (it is derived from the referenced filter).
|
|
54
|
-
const commonDateLocalId = commonDateFilter
|
|
54
|
+
const commonDateLocalId = (commonDateFilter && dashboardFilterLocalIdentifier(commonDateFilter)) ??
|
|
55
|
+
generateDateFilterLocalIdentifier(0);
|
|
55
56
|
// the command replaces the whole list, so carry over date filters the panel cannot show
|
|
56
57
|
const shownLocalIds = new Set([
|
|
57
58
|
commonDateLocalId,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type IntlShape } from "react-intl";
|
|
2
|
-
import { type
|
|
2
|
+
import { type DashboardDateFilterOfAnyType, type ICatalogDateDataset, type ObjRef } from "@gooddata/sdk-model";
|
|
3
3
|
import { type IMetricsAndFacts } from "../../../../../../model/queries/metricsAndFacts.js";
|
|
4
4
|
import { type IDashboardAttributeFilterParentItem } from "../../../../../../model/types/attributeFilterTypes.js";
|
|
5
5
|
import { type IDashboardDependentDateFilter } from "../../../../../../model/types/dateFilterTypes.js";
|
|
@@ -11,7 +11,7 @@ interface ILimitValuesConfigurationProps {
|
|
|
11
11
|
metricsAndFacts: IMetricsAndFacts;
|
|
12
12
|
availableDatasets: ICatalogDateDataset[];
|
|
13
13
|
dependentDateFilters: IDashboardDependentDateFilter[];
|
|
14
|
-
dependentCommonDateFilter:
|
|
14
|
+
dependentCommonDateFilter: DashboardDateFilterOfAnyType;
|
|
15
15
|
onLimitingItemUpdate: (items: ObjRef[]) => void;
|
|
16
16
|
onParentFilterUpdate: (localId: string, isSelected: boolean, overAttributes?: ObjRef[]) => void;
|
|
17
17
|
onDependentDateFilterUpdate: (item: IDashboardDependentDateFilter, isSelected: boolean, isCommonDate: boolean) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LimitValuesConfiguration.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/filterBar/attributeFilter/dashboardDropdownBody/configuration/limitValues/LimitValuesConfiguration.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAoB,KAAK,SAAS,EAAW,MAAM,YAAY,CAAC;AAEvE,OAAO,EACH,KAAK,
|
|
1
|
+
{"version":3,"file":"LimitValuesConfiguration.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/filterBar/attributeFilter/dashboardDropdownBody/configuration/limitValues/LimitValuesConfiguration.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAoB,KAAK,SAAS,EAAW,MAAM,YAAY,CAAC;AAEvE,OAAO,EACH,KAAK,4BAA4B,EACjC,KAAK,mBAAmB,EACxB,KAAK,MAAM,EAId,MAAM,qBAAqB,CAAC;AAK7B,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,oDAAoD,CAAC;AAI3F,OAAO,EAAE,KAAK,mCAAmC,EAAE,MAAM,uDAAuD,CAAC;AACjH,OAAO,EACH,KAAK,6BAA6B,EAErC,MAAM,kDAAkD,CAAC;AAW1D,UAAU,8BAA8B;IACpC,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,aAAa,EAAE,mCAAmC,EAAE,CAAC;IACrD,kBAAkB,EAAE,MAAM,EAAE,CAAC;IAC7B,kBAAkB,EAAE,MAAM,EAAE,CAAC;IAC7B,eAAe,EAAE,gBAAgB,CAAC;IAClC,iBAAiB,EAAE,mBAAmB,EAAE,CAAC;IACzC,oBAAoB,EAAE,6BAA6B,EAAE,CAAC;IACtD,yBAAyB,EAAE,4BAA4B,CAAC;IACxD,oBAAoB,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;IAChD,oBAAoB,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,cAAc,CAAC,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;IAChG,2BAA2B,EAAE,CACzB,IAAI,EAAE,6BAA6B,EACnC,UAAU,EAAE,OAAO,EACnB,YAAY,EAAE,OAAO,KACpB,IAAI,CAAC;CACb;AA6GD,MAAM,MAAM,sCAAsC,GAAG,8BAA8B,GAAG;IAAE,IAAI,EAAE,SAAS,CAAA;CAAE,CAAC;AAE1G,wBAAgB,iCAAiC,CAAC,KAAK,EAAE,sCAAsC,kDAU9F"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type DashboardDateFilterOfAnyType, type ICatalogDateDataset, type ObjRef } from "@gooddata/sdk-model";
|
|
2
2
|
import { type IDashboardAttributeFilterParentItem } from "../../../../../../../model/types/attributeFilterTypes.js";
|
|
3
3
|
import { type IDashboardDependentDateFilter } from "../../../../../../../model/types/dateFilterTypes.js";
|
|
4
4
|
import { type ValuesLimitingItem } from "../../../../types.js";
|
|
@@ -9,7 +9,7 @@ export interface IAddLimitingItemDialogProps {
|
|
|
9
9
|
currentlySelectedItems: ObjRef[];
|
|
10
10
|
dependentDateFilters: IDashboardDependentDateFilter[];
|
|
11
11
|
availableDatasets: ICatalogDateDataset[];
|
|
12
|
-
dependentCommonDateFilter:
|
|
12
|
+
dependentCommonDateFilter: DashboardDateFilterOfAnyType;
|
|
13
13
|
commonDateFilterTitle: string;
|
|
14
14
|
onSelect: (item: ValuesLimitingItem) => void;
|
|
15
15
|
onClose: () => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AddLimitingItemDialog.d.ts","sourceRoot":"","sources":["../../../../../../../../src/presentation/filterBar/attributeFilter/dashboardDropdownBody/configuration/limitValues/dialog/AddLimitingItemDialog.tsx"],"names":[],"mappings":"AAIA,OAAO,
|
|
1
|
+
{"version":3,"file":"AddLimitingItemDialog.d.ts","sourceRoot":"","sources":["../../../../../../../../src/presentation/filterBar/attributeFilter/dashboardDropdownBody/configuration/limitValues/dialog/AddLimitingItemDialog.tsx"],"names":[],"mappings":"AAIA,OAAO,EACH,KAAK,4BAA4B,EACjC,KAAK,mBAAmB,EACxB,KAAK,MAAM,EACd,MAAM,qBAAqB,CAAC;AAG7B,OAAO,EAAE,KAAK,mCAAmC,EAAE,MAAM,0DAA0D,CAAC;AACpH,OAAO,EAAE,KAAK,6BAA6B,EAAE,MAAM,qDAAqD,CAAC;AAEzG,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAkB/D,MAAM,WAAW,2BAA2B;IACxC,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,aAAa,EAAE,mCAAmC,EAAE,CAAC;IACrD,kBAAkB,EAAE,MAAM,EAAE,CAAC;IAC7B,sBAAsB,EAAE,MAAM,EAAE,CAAC;IACjC,oBAAoB,EAAE,6BAA6B,EAAE,CAAC;IACtD,iBAAiB,EAAE,mBAAmB,EAAE,CAAC;IACzC,yBAAyB,EAAE,4BAA4B,CAAC;IACxD,qBAAqB,EAAE,MAAM,CAAC;IAC9B,QAAQ,EAAE,CAAC,IAAI,EAAE,kBAAkB,KAAK,IAAI,CAAC;IAC7C,OAAO,EAAE,MAAM,IAAI,CAAC;CACvB;AAID,wBAAgB,qBAAqB,CAAC,EAClC,cAAc,EACd,sBAAsB,EACtB,aAAa,EACb,kBAAkB,EAClB,oBAAoB,EACpB,yBAAyB,EACzB,iBAAiB,EACjB,qBAAqB,EACrB,QAAQ,EACR,OAAO,GACV,EAAE,2BAA2B,2CAoD7B"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type DashboardDateFilterOfAnyType, type ICatalogDateDataset } from "@gooddata/sdk-model";
|
|
2
2
|
import { type IDashboardDependentDateFilter } from "../../../../../../../model/types/dateFilterTypes.js";
|
|
3
3
|
import { type ValuesLimitingItem } from "../../../../types.js";
|
|
4
4
|
import { type IValuesLimitingItemWithTitle } from "../shared/limitingItemsHook.js";
|
|
5
5
|
export interface IDateFiltersPageProps {
|
|
6
6
|
availableDatasets: ICatalogDateDataset[];
|
|
7
|
-
dependentCommonDateFilter:
|
|
7
|
+
dependentCommonDateFilter: DashboardDateFilterOfAnyType;
|
|
8
8
|
dependentDateFilters: IDashboardDependentDateFilter[];
|
|
9
9
|
onSelect: (item: ValuesLimitingItem) => void;
|
|
10
10
|
onGoBack: () => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DateFiltersPage.d.ts","sourceRoot":"","sources":["../../../../../../../../src/presentation/filterBar/attributeFilter/dashboardDropdownBody/configuration/limitValues/dialog/DateFiltersPage.tsx"],"names":[],"mappings":"AAOA,OAAO,
|
|
1
|
+
{"version":3,"file":"DateFiltersPage.d.ts","sourceRoot":"","sources":["../../../../../../../../src/presentation/filterBar/attributeFilter/dashboardDropdownBody/configuration/limitValues/dialog/DateFiltersPage.tsx"],"names":[],"mappings":"AAOA,OAAO,EACH,KAAK,4BAA4B,EACjC,KAAK,mBAAmB,EAE3B,MAAM,qBAAqB,CAAC;AAM7B,OAAO,EACH,KAAK,6BAA6B,EAErC,MAAM,qDAAqD,CAAC;AAC7D,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE/D,OAAO,EACH,KAAK,4BAA4B,EAGpC,MAAM,gCAAgC,CAAC;AAKxC,MAAM,WAAW,qBAAqB;IAClC,iBAAiB,EAAE,mBAAmB,EAAE,CAAC;IACzC,yBAAyB,EAAE,4BAA4B,CAAC;IACxD,oBAAoB,EAAE,6BAA6B,EAAE,CAAC;IACtD,QAAQ,EAAE,CAAC,IAAI,EAAE,kBAAkB,KAAK,IAAI,CAAC;IAC7C,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,OAAO,EAAE,MAAM,IAAI,CAAC;CACvB;AAED,UAAU,uBAAuB;IAC7B,IAAI,EAAE,4BAA4B,CAAC;IACnC,oBAAoB,EAAE,6BAA6B,EAAE,CAAC;IACtD,QAAQ,EAAE,CAAC,IAAI,EAAE,kBAAkB,KAAK,IAAI,CAAC;IAC7C,OAAO,EAAE,MAAM,IAAI,CAAC;CACvB;AAED,wBAAgB,qBAAqB,CAAC,EAClC,IAAI,EAAE,EAAE,IAAI,EAAE,UAAU,EAAE,KAAK,EAAE,EACjC,oBAAoB,EACpB,QAAQ,EACR,OAAO,GACV,EAAE,uBAAuB,2CAsCzB;AAED,wBAAgB,eAAe,CAAC,EAC5B,iBAAiB,EACjB,yBAAyB,EACzB,oBAAoB,EACpB,QAAQ,EACR,QAAQ,EACR,OAAO,GACV,EAAE,qBAAqB,2CAkCvB"}
|
|
@@ -3,7 +3,7 @@ import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-run
|
|
|
3
3
|
import { useMemo } from "react";
|
|
4
4
|
import cx from "classnames";
|
|
5
5
|
import { FormattedMessage, useIntl } from "react-intl";
|
|
6
|
-
import { serializeObjRef } from "@gooddata/sdk-model";
|
|
6
|
+
import { serializeObjRef, } from "@gooddata/sdk-model";
|
|
7
7
|
import { DropdownList, ShortenedText } from "@gooddata/sdk-ui-kit";
|
|
8
8
|
import { simplifyText } from "@gooddata/util";
|
|
9
9
|
import { messages } from "../../../../../../../locales.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type DashboardDateFilterOfAnyType, type ICatalogDateDataset, type ObjRef } from "@gooddata/sdk-model";
|
|
2
2
|
import { type IDashboardAttributeFilterParentItem } from "../../../../../../../model/types/attributeFilterTypes.js";
|
|
3
3
|
import { type IDashboardDependentDateFilter } from "../../../../../../../model/types/dateFilterTypes.js";
|
|
4
4
|
import { type ValuesLimitingItem } from "../../../../types.js";
|
|
@@ -8,7 +8,7 @@ export interface IParentFiltersPageProps {
|
|
|
8
8
|
validParentFilters: ObjRef[];
|
|
9
9
|
dependentDateFilters: IDashboardDependentDateFilter[];
|
|
10
10
|
availableDatasets: ICatalogDateDataset[];
|
|
11
|
-
dependentCommonDateFilter:
|
|
11
|
+
dependentCommonDateFilter: DashboardDateFilterOfAnyType;
|
|
12
12
|
commonDateFilterTitle: string;
|
|
13
13
|
onSelect: (item: ValuesLimitingItem) => void;
|
|
14
14
|
onGoBack: () => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ParentFiltersPage.d.ts","sourceRoot":"","sources":["../../../../../../../../src/presentation/filterBar/attributeFilter/dashboardDropdownBody/configuration/limitValues/dialog/ParentFiltersPage.tsx"],"names":[],"mappings":"AAOA,OAAO,EACH,KAAK,
|
|
1
|
+
{"version":3,"file":"ParentFiltersPage.d.ts","sourceRoot":"","sources":["../../../../../../../../src/presentation/filterBar/attributeFilter/dashboardDropdownBody/configuration/limitValues/dialog/ParentFiltersPage.tsx"],"names":[],"mappings":"AAOA,OAAO,EACH,KAAK,4BAA4B,EACjC,KAAK,mBAAmB,EACxB,KAAK,MAAM,EAEd,MAAM,qBAAqB,CAAC;AAM7B,OAAO,EAAE,KAAK,mCAAmC,EAAE,MAAM,0DAA0D,CAAC;AACpH,OAAO,EACH,KAAK,6BAA6B,EAErC,MAAM,qDAAqD,CAAC;AAC7D,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAO/D,MAAM,WAAW,uBAAuB;IACpC,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,aAAa,EAAE,mCAAmC,EAAE,CAAC;IACrD,kBAAkB,EAAE,MAAM,EAAE,CAAC;IAC7B,oBAAoB,EAAE,6BAA6B,EAAE,CAAC;IACtD,iBAAiB,EAAE,mBAAmB,EAAE,CAAC;IACzC,yBAAyB,EAAE,4BAA4B,CAAC;IACxD,qBAAqB,EAAE,MAAM,CAAC;IAC9B,QAAQ,EAAE,CAAC,IAAI,EAAE,kBAAkB,KAAK,IAAI,CAAC;IAC7C,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,kBAAkB,EAAE,MAAM,IAAI,CAAC;CAClC;AAuGD,wBAAgB,iBAAiB,CAAC,EAC9B,cAAc,EACd,aAAa,EACb,kBAAkB,EAClB,oBAAoB,EACpB,yBAAyB,EACzB,iBAAiB,EACjB,qBAAqB,EACrB,QAAQ,EACR,QAAQ,EACR,OAAO,EACP,kBAAkB,GACrB,EAAE,uBAAuB,2CA0CzB"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type IntlShape } from "react-intl";
|
|
2
|
-
import { type
|
|
2
|
+
import { type DashboardDateFilterOfAnyType, type ICatalogDateDataset, type ObjRef } from "@gooddata/sdk-model";
|
|
3
3
|
import { type IMetricsAndFacts } from "../../../../../../../model/queries/metricsAndFacts.js";
|
|
4
4
|
import { type IDashboardAttributeFilterParentItem } from "../../../../../../../model/types/attributeFilterTypes.js";
|
|
5
5
|
import { type IDashboardDependentDateFilter } from "../../../../../../../model/types/dateFilterTypes.js";
|
|
@@ -14,7 +14,7 @@ export interface IValuesLimitingItemWithTitle {
|
|
|
14
14
|
export declare const sortByTypeAndTitle: (a: IValuesLimitingItemWithTitle, b: IValuesLimitingItemWithTitle) => number;
|
|
15
15
|
export declare const useLimitingItems: (parentFilters: IDashboardAttributeFilterParentItem[], validParentFilters: ObjRef[], validateElementsBy: ObjRef[], metricsAndFacts: IMetricsAndFacts, dependentDateFilters: IDashboardDependentDateFilter[], availableDatasets: ICatalogDateDataset[], isEnabledKDAttributeFilterDatesValidation: boolean, isSelected: boolean, intl: IntlShape) => IValuesLimitingItemWithTitle[];
|
|
16
16
|
export declare const useSearchableLimitingItems: (currentlySelectedItems: ObjRef[]) => IValuesLimitingItemWithTitle[];
|
|
17
|
-
export declare const useFilterItems: (parentFilters: IDashboardAttributeFilterParentItem[], validParentFilters: ObjRef[], dependentDateFilters: IDashboardDependentDateFilter[], availableDatasets: ICatalogDateDataset[], dependentCommonDateFilter:
|
|
18
|
-
export declare const useCommonDateItems: (availableDatasets: ICatalogDateDataset[], dependentCommonDateFilter:
|
|
17
|
+
export declare const useFilterItems: (parentFilters: IDashboardAttributeFilterParentItem[], validParentFilters: ObjRef[], dependentDateFilters: IDashboardDependentDateFilter[], availableDatasets: ICatalogDateDataset[], dependentCommonDateFilter: DashboardDateFilterOfAnyType, isEnabledKDAttributeFilterDatesValidation: boolean, isSelected: boolean, intl: IntlShape) => IValuesLimitingItemWithTitle[];
|
|
18
|
+
export declare const useCommonDateItems: (availableDatasets: ICatalogDateDataset[], dependentCommonDateFilter: DashboardDateFilterOfAnyType, dependentDateFilters?: IDashboardDependentDateFilter[]) => IValuesLimitingItemWithTitle[];
|
|
19
19
|
export declare const useDependentDateFilterTitle: (dataSet: ObjRef | undefined, dependentDateFilters: IDashboardDependentDateFilter[]) => string;
|
|
20
20
|
//# sourceMappingURL=limitingItemsHook.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"limitingItemsHook.d.ts","sourceRoot":"","sources":["../../../../../../../../src/presentation/filterBar/attributeFilter/dashboardDropdownBody/configuration/limitValues/shared/limitingItemsHook.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;AAG5C,OAAO,
|
|
1
|
+
{"version":3,"file":"limitingItemsHook.d.ts","sourceRoot":"","sources":["../../../../../../../../src/presentation/filterBar/attributeFilter/dashboardDropdownBody/configuration/limitValues/shared/limitingItemsHook.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;AAG5C,OAAO,EACH,KAAK,4BAA4B,EAGjC,KAAK,mBAAmB,EAGxB,KAAK,MAAM,EAId,MAAM,qBAAqB,CAAC;AAG7B,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,uDAAuD,CAAC;AAW9F,OAAO,EAAE,KAAK,mCAAmC,EAAE,MAAM,0DAA0D,CAAC;AACpH,OAAO,EAAE,KAAK,6BAA6B,EAAE,MAAM,qDAAqD,CAAC;AACzG,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAG/D,MAAM,WAAW,4BAA4B;IACzC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,kBAAkB,CAAC;IACzB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,2BAA2B,CAAC,EAAE,OAAO,CAAC;CACzC;AAmED,eAAO,MAAM,kBAAkB,MACxB,4BAA4B,KAC5B,4BAA4B,KAChC,MAMF,CAAC;AAsBF,eAAO,MAAM,gBAAgB,kBACV,mCAAmC,EAAE,sBAChC,MAAM,EAAE,sBACR,MAAM,EAAE,mBACX,gBAAgB,wBACX,6BAA6B,EAAE,qBAClC,mBAAmB,EAAE,6CACG,OAAO,cACtC,OAAO,QACb,SAAS,KAChB,4BAA4B,EAoD9B,CAAC;AAEF,eAAO,MAAM,0BAA0B,2BACX,MAAM,EAAE,KACjC,4BAA4B,EAsB9B,CAAC;AAEF,eAAO,MAAM,cAAc,kBACR,mCAAmC,EAAE,sBAChC,MAAM,EAAE,wBACN,6BAA6B,EAAE,qBAClC,mBAAmB,EAAE,6BACb,4BAA4B,6CACZ,OAAO,cACtC,OAAO,QACb,SAAS,KAChB,4BAA4B,EAuD9B,CAAC;AAgEF,eAAO,MAAM,kBAAkB,sBACR,mBAAmB,EAAE,6BACb,4BAA4B,yBAChC,6BAA6B,EAAE,KACvD,4BAA4B,EAyB9B,CAAC;AAiBF,eAAO,MAAM,2BAA2B,YAC3B,MAAM,GAAG,SAAS,wBACL,6BAA6B,EAAE,KACtD,MAYF,CAAC"}
|
|
@@ -6,6 +6,7 @@ import { useDashboardSelector } from "../../../../../../../model/react/Dashboard
|
|
|
6
6
|
import { selectAllCatalogDateDatasetsMap, selectAllCatalogDisplayFormsMap, selectCatalogAttributesWithComputed, selectCatalogFacts, selectCatalogMeasures, } from "../../../../../../../model/store/catalog/catalogSelectors.js";
|
|
7
7
|
import { selectDateFilterConfigOverrides } from "../../../../../../../model/store/tabs/dateFilterConfig/dateFilterConfigSelectors.js";
|
|
8
8
|
import { selectDateFilterConfigsOverrides } from "../../../../../../../model/store/tabs/dateFilterConfigs/dateFilterConfigsSelectors.js";
|
|
9
|
+
import { getDateFilterRange } from "../../hooks/useDependentDateFilterConfigurationState.js";
|
|
9
10
|
const findAttributeByLabel = (labelRef, labels, attributes) => {
|
|
10
11
|
const attributeRef = labels.get(labelRef)?.attribute;
|
|
11
12
|
return attributes.find((attribute) => areObjRefsEqual(attribute.attribute.ref, attributeRef));
|
|
@@ -214,10 +215,7 @@ export const useCommonDateItems = (availableDatasets, dependentCommonDateFilter,
|
|
|
214
215
|
const parseCommonDateFilter = (commonDate, dataSet) => {
|
|
215
216
|
invariant(!isUriRef(dataSet));
|
|
216
217
|
return {
|
|
217
|
-
|
|
218
|
-
to: commonDate.dateFilter.to,
|
|
219
|
-
granularity: commonDate.dateFilter.granularity,
|
|
220
|
-
type: commonDate.dateFilter.type,
|
|
218
|
+
...getDateFilterRange(commonDate),
|
|
221
219
|
localIdentifier: dataSet?.identifier ?? "commonDate",
|
|
222
220
|
isSelected: true,
|
|
223
221
|
dataSet: dataSet,
|
|
@@ -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,EAUpC,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,sBAyEF,CAAC"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
// (C) 2024-2026 GoodData Corporation
|
|
2
2
|
import { useMemo } from "react";
|
|
3
3
|
import { invariant } from "ts-invariant";
|
|
4
|
-
import { dashboardAttributeFilterItemFilterElementsByDate,
|
|
4
|
+
import { dashboardAttributeFilterItemFilterElementsByDate, dashboardFilterLocalIdentifier, dashboardFilterObjRef, isDashboardAbsoluteGranularityDateFilter, isDashboardParameterizedDateFilter, 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
|
-
import {
|
|
7
|
+
import { selectFilterContextDateFilterForTab, selectFilterContextDateFilterOfAnyType, selectFilterContextDateFiltersWithDimensionForTab, selectFilterContextDateFiltersWithDimensionOfAnyType, selectWorkingFilterContextDateFilterForTab, selectWorkingFilterContextDateFilterOfAnyType, selectWorkingFilterContextDateFiltersWithDimensionForTab, selectWorkingFilterContextDateFiltersWithDimensionOfAnyType, } from "../../../model/store/tabs/filterContext/filterContextSelectors.js";
|
|
8
8
|
/**
|
|
9
9
|
* Returns depdent date filtering input props for {@link @gooddata/sdk-ui-filters#AttributeFilter} for particular dashboard attribute filter.
|
|
10
10
|
*
|
|
@@ -18,19 +18,20 @@ export const useDependentDateFilters = (filter, tabId) => {
|
|
|
18
18
|
// Use tab-specific selectors when tabId is provided
|
|
19
19
|
const allAppliedDateFilters = useDashboardSelector(tabId
|
|
20
20
|
? selectFilterContextDateFiltersWithDimensionForTab(tabId)
|
|
21
|
-
:
|
|
21
|
+
: selectFilterContextDateFiltersWithDimensionOfAnyType);
|
|
22
22
|
const allWorkingDateFilters = useDashboardSelector(tabId
|
|
23
23
|
? selectWorkingFilterContextDateFiltersWithDimensionForTab(tabId)
|
|
24
|
-
:
|
|
24
|
+
: selectWorkingFilterContextDateFiltersWithDimensionOfAnyType);
|
|
25
25
|
const allDateFilters = isApplyAllAtOnceEnabledAndSet ? allWorkingDateFilters : allAppliedDateFilters;
|
|
26
26
|
// Use tab-specific selectors for common date filter when tabId is provided
|
|
27
|
-
const commonAppliedDateFilter = useDashboardSelector(tabId ? selectFilterContextDateFilterForTab(tabId) :
|
|
28
|
-
const commonWorkingDateFilter = useDashboardSelector(tabId
|
|
27
|
+
const commonAppliedDateFilter = useDashboardSelector(tabId ? selectFilterContextDateFilterForTab(tabId) : selectFilterContextDateFilterOfAnyType);
|
|
28
|
+
const commonWorkingDateFilter = useDashboardSelector(tabId
|
|
29
|
+
? selectWorkingFilterContextDateFilterForTab(tabId)
|
|
30
|
+
: selectWorkingFilterContextDateFilterOfAnyType);
|
|
29
31
|
const commonDateFilter = isApplyAllAtOnceEnabledAndSet
|
|
30
32
|
? commonWorkingDateFilter
|
|
31
33
|
: commonAppliedDateFilter;
|
|
32
|
-
|
|
33
|
-
const commonDateFilterWithAllTime = getCommonDateFilterWithAllTime(isDashboardDateFilter(commonDateFilter) ? commonDateFilter : undefined);
|
|
34
|
+
const commonDateFilterWithAllTime = getCommonDateFilterWithAllTime(commonDateFilter);
|
|
34
35
|
const filterElementsByDate = dashboardAttributeFilterItemFilterElementsByDate(filter);
|
|
35
36
|
const dependentDateFilters = useMemo(() => {
|
|
36
37
|
return filterElementsByDate?.map((dependentDateFilter) => {
|
|
@@ -43,16 +44,7 @@ export const useDependentDateFilters = (filter, tabId) => {
|
|
|
43
44
|
identifier: dependentDateFilter.filterLocalIdentifier,
|
|
44
45
|
type: "dataSet",
|
|
45
46
|
};
|
|
46
|
-
|
|
47
|
-
dateFilter: {
|
|
48
|
-
type: commonDateFilterWithAllTime?.dateFilter.type,
|
|
49
|
-
granularity: commonDateFilterWithAllTime?.dateFilter.granularity,
|
|
50
|
-
from: commonDateFilterWithAllTime?.dateFilter.from,
|
|
51
|
-
to: commonDateFilterWithAllTime?.dateFilter.to,
|
|
52
|
-
dataSet,
|
|
53
|
-
},
|
|
54
|
-
};
|
|
55
|
-
return commonDashboardDateFilter;
|
|
47
|
+
return applyCommonDateFilterToDataSet(commonDateFilterWithAllTime, dataSet);
|
|
56
48
|
}
|
|
57
49
|
else {
|
|
58
50
|
// Try localIdentifier first (new format), then fall back to dataset identifier
|
|
@@ -60,8 +52,9 @@ export const useDependentDateFilters = (filter, tabId) => {
|
|
|
60
52
|
// NOTE: If a filter's localIdentifier happens to equal another filter's dataset
|
|
61
53
|
// identifier the wrong filter could be matched — this is an accepted theoretical
|
|
62
54
|
// risk given the practical namespace separation between the two.
|
|
63
|
-
const matchingFilter = allDateFilters.find((filter) => filter
|
|
64
|
-
|
|
55
|
+
const matchingFilter = allDateFilters.find((filter) => dashboardFilterLocalIdentifier(filter) ===
|
|
56
|
+
dependentDateFilter.filterLocalIdentifier ||
|
|
57
|
+
objRefToString(dashboardFilterObjRef(filter)) ===
|
|
65
58
|
dependentDateFilter.filterLocalIdentifier);
|
|
66
59
|
invariant(matchingFilter); // if this blows up, the state is inconsistent
|
|
67
60
|
return matchingFilter;
|
|
@@ -72,6 +65,35 @@ export const useDependentDateFilters = (filter, tabId) => {
|
|
|
72
65
|
dependentDateFilters,
|
|
73
66
|
};
|
|
74
67
|
};
|
|
68
|
+
/**
|
|
69
|
+
* Applies the range of the common date filter through the given date dataset.
|
|
70
|
+
*/
|
|
71
|
+
const applyCommonDateFilterToDataSet = (commonDateFilter, dataSet) => {
|
|
72
|
+
if (isDashboardAbsoluteGranularityDateFilter(commonDateFilter)) {
|
|
73
|
+
// granularity and the period range, the range may be open on one side
|
|
74
|
+
const { dataSet: _dataSet, localIdentifier: _localIdentifier, emptyValueHandling: _emptyValueHandling, ...periodRange } = commonDateFilter.dashboardAbsoluteGranularityDateFilter;
|
|
75
|
+
return {
|
|
76
|
+
dashboardAbsoluteGranularityDateFilter: {
|
|
77
|
+
...periodRange,
|
|
78
|
+
dataSet,
|
|
79
|
+
},
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
if (isDashboardParameterizedDateFilter(commonDateFilter)) {
|
|
83
|
+
const { parameter } = commonDateFilter.dashboardParameterizedDateFilter;
|
|
84
|
+
return { dashboardParameterizedDateFilter: { parameter, dataSet } };
|
|
85
|
+
}
|
|
86
|
+
const { type, granularity, from, to } = commonDateFilter.dateFilter;
|
|
87
|
+
return {
|
|
88
|
+
dateFilter: {
|
|
89
|
+
type,
|
|
90
|
+
granularity,
|
|
91
|
+
from,
|
|
92
|
+
to,
|
|
93
|
+
dataSet,
|
|
94
|
+
},
|
|
95
|
+
};
|
|
96
|
+
};
|
|
75
97
|
const getCommonDateFilterWithAllTime = (commonDate) => {
|
|
76
98
|
if (commonDate) {
|
|
77
99
|
return commonDate;
|
|
@@ -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;AA4C1E,OAAO,EAAE,KAAK,gCAAgC,EAAE,MAAM,YAAY,CAAC;AAmBnE;;;;;;GAMG;AACH,wBAAgB,0BAA0B,CAAC,KAAK,EAAE,gCAAgC,GAAG,YAAY,CAoNhG"}
|
|
@@ -6,9 +6,10 @@ import { DashboardDateFilterConfigModeValues, areObjRefsEqual, dashboardFilterLo
|
|
|
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";
|
|
9
|
+
import { periodPresetsForButton } from "../../../_staging/dateFilterConfig/periodPresets.js";
|
|
9
10
|
import { useDashboardSelector } from "../../../model/react/DashboardStoreProvider.js";
|
|
10
11
|
import { selectBackendCapabilities } from "../../../model/store/backendCapabilities/backendCapabilitiesSelectors.js";
|
|
11
|
-
import { selectCatalogDateDatasets } from "../../../model/store/catalog/catalogSelectors.js";
|
|
12
|
+
import { selectCatalogDateDatasets, selectCatalogDateRangeParameters, } from "../../../model/store/catalog/catalogSelectors.js";
|
|
12
13
|
import { selectActiveCalendars, selectIsApplyFiltersAllAtOnceEnabledAndSet, selectLocale, selectSettings, selectWeekStart, } from "../../../model/store/config/configSelectors.js";
|
|
13
14
|
import { selectIsInEditMode } from "../../../model/store/renderMode/renderModeSelectors.js";
|
|
14
15
|
import { useCurrentDateFilterConfig } from "../../dragAndDrop/useCurrentDateFilterConfig.js";
|
|
@@ -62,6 +63,7 @@ export function DefaultDashboardDateFilter(props) {
|
|
|
62
63
|
const enableEmptyDateValues = config.dateFilterOptions.emptyValues?.visible ?? true;
|
|
63
64
|
const isAbsoluteDateFilterGranularityEnabled = !!settings.enableAbsoluteDateFilterGranularity && !!onAnyTypeFilterChanged;
|
|
64
65
|
const allDateDatasets = useDashboardSelector(selectCatalogDateDatasets);
|
|
66
|
+
const dateRangeParameters = useDashboardSelector(selectCatalogDateRangeParameters);
|
|
65
67
|
let defaultDateFilterName;
|
|
66
68
|
if (dataSet) {
|
|
67
69
|
const dateDataSetName = allDateDatasets.find((ds) => areObjRefsEqual(ds.dataSet.ref, dataSet))
|
|
@@ -75,12 +77,13 @@ export function DefaultDashboardDateFilter(props) {
|
|
|
75
77
|
const { title, mode } = useCurrentDateFilterConfig(dataSet, defaultDateFilterName, tabId);
|
|
76
78
|
const [lastSelectedOptionId, setLastSelectedOptionId] = useState("");
|
|
77
79
|
const dateFilterOptions = useMemo(() => {
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
80
|
+
const { emptyValues, ...rest } = config.dateFilterOptions;
|
|
81
|
+
return {
|
|
82
|
+
...rest,
|
|
83
|
+
...(enableEmptyDateValues && emptyValues ? { emptyValues } : {}),
|
|
84
|
+
periodPreset: periodPresetsForButton(dateRangeParameters),
|
|
85
|
+
};
|
|
86
|
+
}, [config.dateFilterOptions, enableEmptyDateValues, dateRangeParameters]);
|
|
84
87
|
const { dateFilterOption, excludeCurrentPeriod } = useMemo(() => matchDateFilterToDateFilterOptionWithPreference(filter, dateFilterOptions, lastSelectedOptionId), [filter, dateFilterOptions, lastSelectedOptionId]);
|
|
85
88
|
const { dateFilterOption: workingFilterOption, excludeCurrentPeriod: workingExcludeCurrentPeriod } = useMemo(() => matchDateFilterToDateFilterOptionWithPreference(workingFilter, dateFilterOptions, lastSelectedOptionId), [workingFilter, dateFilterOptions, lastSelectedOptionId]);
|
|
86
89
|
const onApply = useCallback((option, exclude) => {
|
|
@@ -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;AAsFvD,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,7 +3,7 @@ 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, isDashboardAbsoluteGranularityDateFilter, isDashboardAttributeFilter, isDashboardAttributeFilterItem,
|
|
6
|
+
import { DashboardDateFilterConfigModeValues, DashboardParameterModeValues, areObjRefsEqual, dashboardAttributeFilterItemDisplayForm, dashboardAttributeFilterItemLocalIdentifier, dashboardFilterLocalIdentifier, dashboardFilterObjRef, isAllTimeDashboardDateFilter, isDashboardAbsoluteGranularityDateFilter, isDashboardAttributeFilter, isDashboardAttributeFilterItem, isDashboardDateFilterOfAnyType, 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
9
|
import { changeAttributeFilterSelection, changeDateFilterSelection, changeDateFilterSelectionOfAnyType, changeMeasureValueFilterCondition, changeMigratedAttributeFilterSelection, changeWorkingAttributeFilterSelection, changeWorkingMeasureValueFilterCondition, clearDateFilterSelection, removeRestrictedFilters, replaceAttributeFilterItemSelection, replaceWorkingAttributeFilterItemSelection, setAttributeFilterDisplayForm, } from "../../../model/commands/filters.js";
|
|
@@ -133,8 +133,8 @@ export const useFilterBarProps = () => {
|
|
|
133
133
|
else {
|
|
134
134
|
const { type, granularity, from, to, dataSet, localIdentifier, boundedFilter, emptyValueHandling, } = filter.dateFilter;
|
|
135
135
|
const filterIndex = filters
|
|
136
|
-
.filter(
|
|
137
|
-
.findIndex((filter) => areObjRefsEqual(filter
|
|
136
|
+
.filter(isDashboardDateFilterOfAnyType)
|
|
137
|
+
.findIndex((filter) => areObjRefsEqual(dashboardFilterObjRef(filter), dataSet));
|
|
138
138
|
const sanitizedFilterIndex = filterIndex < 0 ? 0 : filterIndex;
|
|
139
139
|
const newLocalIdentifier = generateDateFilterLocalIdentifier(sanitizedFilterIndex, dataSet);
|
|
140
140
|
dispatch(changeDateFilterSelection(type, granularity, from, to, dateFilterOptionLocalId, undefined, dataSet, isWorkingSelectionChange && isApplyAllAtOnceEnabledAndSet, localIdentifier ?? newLocalIdentifier, boundedFilter, emptyValueHandling));
|
|
@@ -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;AA+ff;;GAEG;AACH,wBAAgB,yBAAyB,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,CAAC,EAAE,SAAS,CAAA;CAAE,2CAQ/E"}
|