@gooddata/sdk-ui-dashboard 11.71.0-alpha.0 → 11.71.0-alpha.1
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/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 +7 -7
- package/esm/index.d.ts +2 -2
- package/esm/index.d.ts.map +1 -1
- package/esm/index.js +2 -2
- package/esm/kdaDialog/composition/KeyDriversPanel.d.ts.map +1 -1
- package/esm/kdaDialog/composition/KeyDriversPanel.js +1 -1
- 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/model/commandHandlers/dashboard/changeDashboardDefinitionHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/dashboard/changeDashboardDefinitionHandler.js +5 -5
- 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 +22 -12
- package/esm/model/commandHandlers/dashboard/common/stateInitializers.d.ts.map +1 -1
- package/esm/model/commandHandlers/dashboard/common/stateInitializers.js +6 -6
- package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/index.d.ts.map +1 -1
- package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/index.js +0 -3
- 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 +1 -0
- package/esm/model/commandHandlers/filterContext/changeFilterContextSelectionHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/filterContext/changeFilterContextSelectionHandler.js +28 -54
- 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 -6
- 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 +5 -3
- 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 +6 -5
- 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 +5 -1
- package/esm/model/store/tabs/filterContext/filterContextReducers.d.ts.map +1 -1
- package/esm/model/store/tabs/filterContext/filterContextReducers.js +26 -18
- 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 +21 -19
- 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 +30 -42
- package/esm/model/utils/widgetFilters.d.ts.map +1 -1
- package/esm/model/utils/widgetFilters.js +4 -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/hooks/useFiltersNamings.d.ts.map +1 -1
- package/esm/presentation/automations/shared/hooks/useFiltersNamings.js +1 -0
- 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/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/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/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/sdk-ui-dashboard.d.ts +192 -12
- package/package.json +23 -23
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// (C) 2020-2026 GoodData Corporation
|
|
2
2
|
import { useEffect, useMemo, useState } from "react";
|
|
3
3
|
import stringify from "json-stable-stringify";
|
|
4
|
-
import { areObjRefsEqual, dashboardAttributeFilterItemDisplayForm, dashboardAttributeFilterItemLocalIdentifier, filterObjRef, isAllTimeDashboardDateFilter, isAllValuesDashboardAttributeFilter, isDashboardAbsoluteGranularityDateFilter, isDashboardAttributeFilterItem, isDashboardCommonDateFilterOfAnyType, isDashboardDateFilter,
|
|
4
|
+
import { areObjRefsEqual, dashboardAttributeFilterItemDisplayForm, dashboardAttributeFilterItemLocalIdentifier, dashboardFilterObjRef, filterObjRef, isAllTimeDashboardDateFilter, isAllValuesDashboardAttributeFilter, isDashboardAbsoluteGranularityDateFilter, isDashboardAttributeFilterItem, isDashboardCommonDateFilterOfAnyType, isDashboardDateFilter, isDashboardDateFilterWithDimensionOfAnyType, isDashboardMeasureValueFilter, } from "@gooddata/sdk-model";
|
|
5
5
|
import { usePrevious } from "@gooddata/sdk-ui";
|
|
6
6
|
import { _isEqual } from "@gooddata/util";
|
|
7
7
|
import { safeSerializeObjRef } from "../../_staging/metadata/safeSerializeObjRef.js";
|
|
@@ -165,8 +165,8 @@ function useNonIgnoredFilters(widget) {
|
|
|
165
165
|
if (isDashboardAttributeFilterItem(filter)) {
|
|
166
166
|
return nonIgnoredFilterState.nonIgnoredFilterRefs.some((validRef) => areObjRefsEqual(validRef, dashboardAttributeFilterItemDisplayForm(filter)));
|
|
167
167
|
}
|
|
168
|
-
else if (
|
|
169
|
-
return nonIgnoredFilterState.nonIgnoredFilterRefs.some((validRef) => areObjRefsEqual(validRef, filter
|
|
168
|
+
else if (isDashboardDateFilterWithDimensionOfAnyType(filter)) {
|
|
169
|
+
return nonIgnoredFilterState.nonIgnoredFilterRefs.some((validRef) => areObjRefsEqual(validRef, dashboardFilterObjRef(filter)));
|
|
170
170
|
}
|
|
171
171
|
else if (isDashboardMeasureValueFilter(filter)) {
|
|
172
172
|
return nonIgnoredFilterState.nonIgnoredFilterRefs.some((validRef) => areObjRefsEqual(validRef, filter.dashboardMeasureValueFilter.measure));
|
|
@@ -255,7 +255,7 @@ function filtersDigest(filters, ignoreDateFilter, isInEditMode) {
|
|
|
255
255
|
const isNoop = isAllValuesDashboardAttributeFilter(filter);
|
|
256
256
|
return !isNoop || !isInEditMode;
|
|
257
257
|
}
|
|
258
|
-
else if (
|
|
258
|
+
else if (isDashboardDateFilterWithDimensionOfAnyType(filter)) {
|
|
259
259
|
/**
|
|
260
260
|
* Remove noop date filters in edit mode as they would cause a useless query when a new filter (noop by default) is added.
|
|
261
261
|
* Keep them in view mode so that switching to and from All on an ignored filter does not show loading.
|
|
@@ -263,7 +263,8 @@ function filtersDigest(filters, ignoreDateFilter, isInEditMode) {
|
|
|
263
263
|
* (adding a new filter) loading-free as well. Switching to and from All in edit mode will still show loading, but have no way
|
|
264
264
|
* of telling whether a noop filter is noop because it was just added or because it was set that way by the user.
|
|
265
265
|
*/
|
|
266
|
-
|
|
266
|
+
// whole periods always filter
|
|
267
|
+
const isNoop = isDashboardDateFilter(filter) && isAllTimeDashboardDateFilter(filter.dateFilter);
|
|
267
268
|
return !isNoop || !isInEditMode;
|
|
268
269
|
}
|
|
269
270
|
else if (isDashboardCommonDateFilterOfAnyType(filter)) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dashboardFilterSelectors.d.ts","sourceRoot":"","sources":["../../../../src/model/store/filtering/dashboardFilterSelectors.ts"],"names":[],"mappings":"AAMA,OAAO,
|
|
1
|
+
{"version":3,"file":"dashboardFilterSelectors.d.ts","sourceRoot":"","sources":["../../../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AAE,iBAAiB,CAAC,iBAAiB,EAAE,CAKpG,CAAC;AAEN;;;GAGG;AACH,eAAO,MAAM,8CAA8C,EAAE,iBAAiB,CAAC,iBAAiB,EAAE,CAK7F,CAAC;AAEN;;GAEG;AACH,eAAO,MAAM,4BAA4B,EAAE,iBAAiB,CAAC,iBAAiB,EAAE,CAmB/E,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,4BAA4B,EAAE,iBAAiB,CAAC,iBAAiB,EAAE,CAmB/E,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,yCAAyC,EAAE,iBAAiB,CAAC,iBAAiB,EAAE,CAwBxF,CAAC;AAEN;;GAEG;AACH,eAAO,MAAM,sCAAsC,EAAE,iBAAiB,CAAC,iBAAiB,EAAE,CAIzF,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,kCAAkC,EAAE,iBAAiB,CAAC,MAAM,GAAG,SAAS,CAMpF,CAAC;AA2GF,eAAO,MAAM,yBAAyB,WAC1B,iBAAiB,wBACH;IAClB,sBAAsB,CAAC,EAAE,0BAA0B,CAAC;IACpD,8BAA8B,EAAE,8BAA8B,EAAE,CAAC;IACjE,sBAAsB,EAAE,+BAA+B,EAAE,CAAC;CAC7D,KACF,OAA2E,CAAC;AAE/E,eAAO,MAAM,yBAAyB,WAC1B,iBAAiB,wBACH;IAClB,sBAAsB,CAAC,EAAE,0BAA0B,CAAC;IACpD,8BAA8B,EAAE,8BAA8B,EAAE,CAAC;IACjE,sBAAsB,EAAE,+BAA+B,EAAE,CAAC;CAC7D,KACF,OAA6E,CAAC;AAMjF;;;;;;GAMG;AACH,eAAO,MAAM,4BAA4B,EAAE,iBAAiB,CAAC,qBAAqB,EAAE,CA0FnF,CAAC"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { createSelector } from "@reduxjs/toolkit";
|
|
3
3
|
import { difference, mapValues } from "lodash-es";
|
|
4
4
|
import { generateDateFilterLocalIdentifier } from "@gooddata/sdk-backend-base";
|
|
5
|
-
import { areObjRefsEqual, dashboardAttributeFilterItemLocalIdentifier, dashboardFilterLocalIdentifier, isAllDashboardMeasureValueFilter, isAllValuesDashboardAttributeFilter,
|
|
5
|
+
import { areObjRefsEqual, dashboardAttributeFilterItemLocalIdentifier, dashboardFilterLocalIdentifier, dashboardFilterObjRef, isAllDashboardMeasureValueFilter, isAllValuesDashboardAttributeFilter, isDashboardAttributeFilterItem, isDashboardCommonDateFilter, isDashboardCommonDateFilterOfAnyType, isDashboardDateFilterOfAnyType, isDashboardMeasureValueFilter, newAllTimeDashboardDateFilter, } from "@gooddata/sdk-model";
|
|
6
6
|
import { createMemoizedSelector } from "../_infra/selectors.js";
|
|
7
7
|
import { selectCrossFilteringItems, selectCrossFilteringItemsByTab } from "../drill/drillSelectors.js";
|
|
8
8
|
import { selectAttributeFilterConfigsOverrides, selectAttributeFilterConfigsOverridesByTab, } from "../tabs/attributeFilterConfigs/attributeFilterConfigsSelectors.js";
|
|
@@ -171,50 +171,31 @@ function removeHiddenFilters(filters, filterConfigurations) {
|
|
|
171
171
|
return !isFilterContextItemHidden(filter, filterConfigurations);
|
|
172
172
|
});
|
|
173
173
|
}
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
else if (isDashboardAbsoluteGranularityDateFilter(filter)) {
|
|
182
|
-
// TODO MC-5776: date filters with a dimension are not checked yet, the dashboard rejects them.
|
|
183
|
-
return isDashboardCommonDateFilterOfAnyType(filter) && commonDateFilterConfig?.mode === "hidden";
|
|
184
|
-
}
|
|
185
|
-
else if (isDashboardDateFilter(filter)) {
|
|
186
|
-
if (isDashboardCommonDateFilter(filter)) {
|
|
187
|
-
return commonDateFilterConfig?.mode === "hidden";
|
|
188
|
-
}
|
|
189
|
-
else if (isDashboardDateFilterWithDimension(filter)) {
|
|
190
|
-
const config = dateFilterWithDimensionConfigs.find((date) => areObjRefsEqual(date.dateDataSet, filter.dateFilter.dataSet));
|
|
191
|
-
return config?.config.mode === "hidden";
|
|
192
|
-
}
|
|
174
|
+
/**
|
|
175
|
+
* Mode of the configuration of a date filter of any type: the common date filter configuration for the common
|
|
176
|
+
* date filter, the configuration of its dimension for a date filter with a dimension.
|
|
177
|
+
*/
|
|
178
|
+
function dateFilterOfAnyTypeMode(filter, commonDateFilterConfig, dateFilterWithDimensionConfigs) {
|
|
179
|
+
if (isDashboardCommonDateFilterOfAnyType(filter)) {
|
|
180
|
+
return commonDateFilterConfig?.mode;
|
|
193
181
|
}
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
182
|
+
const dataSet = dashboardFilterObjRef(filter);
|
|
183
|
+
return dateFilterWithDimensionConfigs.find((date) => areObjRefsEqual(date.dateDataSet, dataSet))?.config
|
|
184
|
+
.mode;
|
|
185
|
+
}
|
|
186
|
+
function filterContextItemMode(filter, filterConfigurations) {
|
|
197
187
|
const { dateFilterWithDimensionConfigs, attributeFilterConfigs, commonDateFilterConfig } = filterConfigurations;
|
|
198
188
|
if (isDashboardAttributeFilterItem(filter)) {
|
|
199
189
|
const attributeFilterLocalIdentifier = dashboardAttributeFilterItemLocalIdentifier(filter);
|
|
200
|
-
|
|
201
|
-
return config?.mode === "readonly";
|
|
190
|
+
return attributeFilterConfigs.find((attributeFilterConfig) => attributeFilterConfig.localIdentifier === attributeFilterLocalIdentifier)?.mode;
|
|
202
191
|
}
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
return isDashboardCommonDateFilterOfAnyType(filter) && commonDateFilterConfig?.mode === "readonly";
|
|
192
|
+
if (isDashboardDateFilterOfAnyType(filter)) {
|
|
193
|
+
return dateFilterOfAnyTypeMode(filter, commonDateFilterConfig, dateFilterWithDimensionConfigs);
|
|
206
194
|
}
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
else if (isDashboardDateFilterWithDimension(filter)) {
|
|
212
|
-
const config = dateFilterWithDimensionConfigs.find((date) => areObjRefsEqual(date.dateDataSet, filter.dateFilter.dataSet));
|
|
213
|
-
return config?.config.mode === "readonly";
|
|
214
|
-
}
|
|
215
|
-
}
|
|
216
|
-
return false;
|
|
217
|
-
};
|
|
195
|
+
return undefined;
|
|
196
|
+
}
|
|
197
|
+
export const isFilterContextItemHidden = (filter, filterConfigurations) => filterContextItemMode(filter, filterConfigurations) === "hidden";
|
|
198
|
+
export const isFilterContextItemLocked = (filter, filterConfigurations) => filterContextItemMode(filter, filterConfigurations) === "readonly";
|
|
218
199
|
//
|
|
219
200
|
// Per-tab automation filter selectors
|
|
220
201
|
//
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"insightsSelectors.d.ts","sourceRoot":"","sources":["../../../../src/model/store/insights/insightsSelectors.ts"],"names":[],"mappings":"AAIA,OAAO,EAAiC,KAAK,yBAAyB,EAAE,MAAM,2BAA2B,CAAC;AAC1G,OAAO,EAEH,KAAK,QAAQ,EACb,KAAK,kBAAkB,EAEvB,KAAK,MAAM,EAad,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,KAAK,SAAS,EAAiB,MAAM,yCAAyC,CAAC;
|
|
1
|
+
{"version":3,"file":"insightsSelectors.d.ts","sourceRoot":"","sources":["../../../../src/model/store/insights/insightsSelectors.ts"],"names":[],"mappings":"AAIA,OAAO,EAAiC,KAAK,yBAAyB,EAAE,MAAM,2BAA2B,CAAC;AAC1G,OAAO,EAEH,KAAK,QAAQ,EACb,KAAK,kBAAkB,EAEvB,KAAK,MAAM,EAad,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,KAAK,SAAS,EAAiB,MAAM,yCAAyC,CAAC;AAUxF,OAAO,EAAE,KAAK,iBAAiB,EAAE,KAAK,cAAc,EAAE,MAAM,aAAa,CAAC;AAM1E;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,cAAc,uCAA4B,CAAC;AAExD;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,EAAE,iBAAiB,CAAC,MAAM,EAAE,CAExD,CAAC;AAQH;;;;GAIG;AACH,eAAO,MAAM,0BAA0B,EAAE,iBAAiB,CAAC,MAAM,EAAE,CAgBlE,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,EAAE,iBAAiB,CAAC,SAAS,CAAC,QAAQ,CAAC,CAMpE,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,6BAA6B,EAAE,iBAAiB,CAAC,QAAQ,EAAE,CAoBvE,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,kCAAkC,EAAE,iBAAiB,CAAC,QAAQ,EAAE,CAK5E,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,EAAE,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,KAAK,iBAAiB,CAAC,QAAQ,GAAG,SAAS,CAK9F,CAAC;AAEP;;;;GAIG;AACH,eAAO,MAAM,wBAAwB,EAAE,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,KAAK,iBAAiB,CAAC,QAAQ,GAAG,SAAS,CAMpG,CAAC;AAsTP;;;;;GAKG;AACH,eAAO,MAAM,uCAAuC,EAAE,CAClD,GAAG,EAAE,MAAM,GAAG,SAAS,KACtB,iBAAiB,CAAC,yBAAyB,GAAG,SAAS,CAa3D,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,kCAAkC,EAAE,CAC7C,OAAO,EAAE,kBAAkB,GAAG,SAAS,KACtC,iBAAiB,CAAC,yBAAyB,GAAG,SAAS,CAa3D,CAAC"}
|
|
@@ -4,7 +4,7 @@ import { areObjRefsEqual, attributeAlias, attributeDisplayFormRef, attributeLoca
|
|
|
4
4
|
import { newInsightMap } from "../../../_staging/metadata/objRefMap.js";
|
|
5
5
|
import { createMemoizedSelector } from "../_infra/selectors.js";
|
|
6
6
|
import { selectBackendCapabilities } from "../backendCapabilities/backendCapabilitiesSelectors.js";
|
|
7
|
-
import {
|
|
7
|
+
import { selectCatalogAttributesWithComputed, selectCatalogDateDatasets, selectCatalogMeasures, } from "../catalog/catalogSelectors.js";
|
|
8
8
|
import { selectLocale } from "../config/configSelectors.js";
|
|
9
9
|
import { selectAllTabsInsightWidgetContexts, selectWidgetByRef } from "../tabs/layout/layoutSelectors.js";
|
|
10
10
|
import { insightsAdapter } from "./insightsEntityAdapter.js";
|
|
@@ -199,6 +199,12 @@ const selectRawExportMeasureOverridesForInsight = createMemoizedSelector((insigh
|
|
|
199
199
|
}, {});
|
|
200
200
|
});
|
|
201
201
|
});
|
|
202
|
+
/**
|
|
203
|
+
* Display forms of catalog attributes including computed attributes. Computed attributes are not part of
|
|
204
|
+
* the plain catalog attributes, so without them their titles are missing and raw export headers fall back
|
|
205
|
+
* to local ids.
|
|
206
|
+
*/
|
|
207
|
+
const selectDisplayFormsWithComputed = createSelector(selectCatalogAttributesWithComputed, (attributes) => attributes.flatMap((attribute) => [...attribute.displayForms, ...attribute.geoPinDisplayForms]));
|
|
202
208
|
/**
|
|
203
209
|
* For geo display forms (latitude, longitude, area, pin), resolves the parent attribute's
|
|
204
210
|
* default display form title instead of the geo-specific display form title.
|
|
@@ -227,7 +233,7 @@ function resolveDisplayFormTitle(catalogDisplayFormTitle, catalogDisplayFormType
|
|
|
227
233
|
* @alpha
|
|
228
234
|
*/
|
|
229
235
|
const selectRawExportDisplayFormOverridesForInsight = createMemoizedSelector((insight) => {
|
|
230
|
-
return createSelector(
|
|
236
|
+
return createSelector(selectDisplayFormsWithComputed, selectCatalogDateDatasets, selectCatalogAttributesWithComputed, (catalogAttributeDisplayForms, catalogDateDatasets, catalogAttributes) => {
|
|
231
237
|
if (!insight) {
|
|
232
238
|
return undefined;
|
|
233
239
|
}
|
|
@@ -277,7 +283,7 @@ const selectRawExportDisplayFormOverridesForInsight = createMemoizedSelector((in
|
|
|
277
283
|
* @alpha
|
|
278
284
|
*/
|
|
279
285
|
const selectRawExportDisplayFormOverridesForInsightByRef = createMemoizedSelector((ref) => {
|
|
280
|
-
return createSelector(selectInsightByRef(ref),
|
|
286
|
+
return createSelector(selectInsightByRef(ref), selectDisplayFormsWithComputed, selectCatalogDateDatasets, selectCatalogAttributesWithComputed, (insight, catalogAttributeDisplayForms, catalogDateDatasets, catalogAttributes) => {
|
|
281
287
|
if (!insight) {
|
|
282
288
|
return undefined;
|
|
283
289
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { createSelector } from "@reduxjs/toolkit";
|
|
3
3
|
import { invariant } from "ts-invariant";
|
|
4
4
|
import { isDashboardLayoutEmpty } from "@gooddata/sdk-backend-spi";
|
|
5
|
-
import { idRef, isBrowserDetectedTimezone, isDashboardAttributeFilter, isDashboardCommonDateFilterOfAnyType,
|
|
5
|
+
import { idRef, isBrowserDetectedTimezone, isDashboardAttributeFilter, isDashboardCommonDateFilterOfAnyType, isDashboardDateFilterWithDimensionOfAnyType, isDashboardMeasureValueFilter, isDashboardTextAttributeFilter, isTempFilterContext, normalizeDashboardTimezoneConfig, resolveTimezoneId, uriRef, } from "@gooddata/sdk-model";
|
|
6
6
|
import { _isEqual } from "@gooddata/util";
|
|
7
7
|
import { selectEnableDashboardPersistentFiltersAcrossTabs, selectEnableTimezoneChange, } from "../config/configSelectors.js";
|
|
8
8
|
import { selectIsInEditMode } from "../renderMode/renderModeSelectors.js";
|
|
@@ -189,7 +189,7 @@ const selectWorkingAttributeFiltersByTab = createSelector(selectWorkingFilterCon
|
|
|
189
189
|
});
|
|
190
190
|
const selectPersistedDashboardDraggableFiltersByTab = createSelector(selectPersistedDashboardFilterContextFiltersByTab, (filtersByTab) => {
|
|
191
191
|
return Object.entries(filtersByTab).reduce((acc, [identifier, filters]) => {
|
|
192
|
-
acc[identifier] = filters.filter((filter) =>
|
|
192
|
+
acc[identifier] = filters.filter((filter) => isDashboardDateFilterWithDimensionOfAnyType(filter) ||
|
|
193
193
|
isDashboardAttributeFilter(filter) ||
|
|
194
194
|
isDashboardTextAttributeFilter(filter) ||
|
|
195
195
|
isDashboardMeasureValueFilter(filter));
|
|
@@ -198,7 +198,7 @@ const selectPersistedDashboardDraggableFiltersByTab = createSelector(selectPersi
|
|
|
198
198
|
});
|
|
199
199
|
const selectWorkingDraggableFiltersByTab = createSelector(selectWorkingFilterContextFiltersByTab, (filtersByTab) => {
|
|
200
200
|
return Object.entries(filtersByTab).reduce((acc, [identifier, filters]) => {
|
|
201
|
-
acc[identifier] = filters.filter((filter) =>
|
|
201
|
+
acc[identifier] = filters.filter((filter) => isDashboardDateFilterWithDimensionOfAnyType(filter) ||
|
|
202
202
|
isDashboardAttributeFilter(filter) ||
|
|
203
203
|
isDashboardTextAttributeFilter(filter) ||
|
|
204
204
|
isDashboardMeasureValueFilter(filter));
|
|
@@ -84,13 +84,17 @@ export interface IUpsertDateFilterNonAllTimePayload {
|
|
|
84
84
|
readonly restoreTargetOriginal?: boolean;
|
|
85
85
|
}
|
|
86
86
|
/**
|
|
87
|
-
* Whole periods of the common date filter.
|
|
87
|
+
* Whole periods of the common date filter or of a date filter with a dimension.
|
|
88
88
|
*
|
|
89
89
|
* @internal
|
|
90
90
|
*/
|
|
91
91
|
export interface IUpsertDateFilterAbsoluteGranularityPayload {
|
|
92
92
|
readonly type: "absoluteGranularity";
|
|
93
93
|
readonly granularity: DatePeriodGranularity;
|
|
94
|
+
/**
|
|
95
|
+
* Date dataset of a date filter with a dimension, undefined for the common date filter.
|
|
96
|
+
*/
|
|
97
|
+
readonly dataSet?: ObjRef;
|
|
94
98
|
readonly from?: DatePeriodLiteral;
|
|
95
99
|
readonly to?: DatePeriodLiteral;
|
|
96
100
|
readonly isWorkingSelectionChange?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filterContextReducers.d.ts","sourceRoot":"","sources":["../../../../../src/model/store/tabs/filterContext/filterContextReducers.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,MAAM,EAAE,KAAK,WAAW,EAAsB,MAAM,kBAAkB,CAAC;AAGrF,OAAO,EAAE,KAAK,wBAAwB,EAAE,MAAM,2BAA2B,CAAC;AAC1E,O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Q,CAAC,IAAI,EAAE,qBAAqB,CAAC;IACrC,QAAQ,CAAC,WAAW,EAAE,qBAAqB,CAAC;IAC5C,QAAQ,CAAC,IAAI,CAAC,EAAE,iBAAiB,CAAC;IAClC,QAAQ,CAAC,EAAE,CAAC,EAAE,iBAAiB,CAAC;IAChC,QAAQ,CAAC,wBAAwB,CAAC,EAAE,OAAO,CAAC;IAC5C,QAAQ,CAAC,eAAe,CAAC,EAAE,MAAM,CAAC;IAClC,QAAQ,CAAC,kBAAkB,CAAC,EAAE,WAAW,CAAC;IAC1C;;;OAGG;IACH,QAAQ,CAAC,kBAAkB,CAAC,EAAE,MAAM,CAAC;IACrC;;OAEG;IACH,QAAQ,CAAC,qBAAqB,CAAC,EAAE,OAAO,CAAC;CAC5C;AAED;;GAEG;AACH,MAAM,MAAM,wBAAwB,GAC9B,+BAA+B,GAC/B,kCAAkC,GAClC,2CAA2C,CAAC;AAElD;;;;GAIG;AACH,wBAAgB,8BAA8B,CAAC,OAAO,EAAE,wBAAwB,GAAG,MAAM,GAAG,SAAS,CAEpG;
|
|
1
|
+
{"version":3,"file":"filterContextReducers.d.ts","sourceRoot":"","sources":["../../../../../src/model/store/tabs/filterContext/filterContextReducers.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,MAAM,EAAE,KAAK,WAAW,EAAsB,MAAM,kBAAkB,CAAC;AAGrF,OAAO,EAAE,KAAK,wBAAwB,EAAE,MAAM,2BAA2B,CAAC;AAC1E,OAAO,EACH,KAAK,4BAA4B,EACjC,KAAK,qCAAqC,EAC1C,KAAK,4BAA4B,EACjC,KAAK,qBAAqB,EAC1B,KAAK,cAAc,EACnB,KAAK,qBAAqB,EAC1B,KAAK,iBAAiB,EAEtB,KAAK,UAAU,EACf,KAAK,WAAW,EAChB,KAAK,iBAAiB,EACtB,KAAK,mCAAmC,EACxC,KAAK,kBAAkB,EAGvB,KAAK,+BAA+B,EACpC,KAAK,+BAA+B,EAGpC,KAAK,wBAAwB,EAC7B,K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B,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IACxB;;;OAGG;IACH,QAAQ,CAAC,kBAAkB,CAAC,EAAE,MAAM,CAAC;CACxC;AAED,KAAK,kDAAkD,GAAG;IACtD,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAC;IACjC,QAAQ,CAAC,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;IACnC;;;OAGG;IACH,QAAQ,CAAC,kBAAkB,CAAC,EAAE,MAAM,CAAC;IACrC;;OAEG;IACH,QAAQ,CAAC,qBAAqB,CAAC,EAAE,OAAO,CAAC;CAC5C,CAAC;AAqEF;;;;GAIG;AACH,MAAM,WAAW,kBAAkB;IAC/B;;OAEG;IACH,QAAQ,CAAC,kBAAkB,CAAC,EAAE,MAAM,CAAC;IACrC;;OAEG;IACH,QAAQ,CAAC,cAAc,EAAE,MAAM,EAAE,CAAC;IAClC,QAAQ,CAAC,YAAY,EAAE,MAAM,EAAE,CAAC;IAChC;;OAEG;IACH,QAAQ,CAAC,gBAAgB,EAAE,OAAO,CAAC;CACtC;AAwFD,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkCjC,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// (C) 2021-2026 GoodData Corporation
|
|
2
2
|
import { invariant } from "ts-invariant";
|
|
3
|
-
import { areObjRefsEqual, attributeElementsIsEmpty, dashboardAttributeFilterItemDisplayForm, dashboardAttributeFilterItemLocalIdentifier, dashboardFilterLocalIdentifier, dashboardFilterObjRef, isAttributeElementsByRef, isDashboardAbsoluteGranularityDateFilter, isDashboardArbitraryAttributeFilter, isDashboardAttributeFilter, isDashboardAttributeFilterItem, isDashboardCommonDateFilterOfAnyType, isDashboardDateFilter, isDashboardDateFilterOfAnyType,
|
|
3
|
+
import { areObjRefsEqual, attributeElementsIsEmpty, dashboardAttributeFilterItemDisplayForm, dashboardAttributeFilterItemLocalIdentifier, dashboardFilterLocalIdentifier, dashboardFilterObjRef, isAttributeElementsByRef, isDashboardAbsoluteGranularityDateFilter, isDashboardArbitraryAttributeFilter, isDashboardAttributeFilter, isDashboardAttributeFilterItem, isDashboardCommonDateFilterOfAnyType, isDashboardDateFilter, isDashboardDateFilterOfAnyType, isDashboardDateFilterWithDimensionOfAnyType, isDashboardMatchAttributeFilter, isDashboardMeasureValueFilter, isIdentifierRef, newAllTimeDashboardDateFilter, } from "@gooddata/sdk-model";
|
|
4
4
|
import { _cloneDeep } from "@gooddata/util";
|
|
5
5
|
import { isDisplayFormMetadataReferencedBy } from "../../../utils/attributeFilterMatching.js";
|
|
6
6
|
import { generateFilterLocalIdentifier, generateMeasureValueFilterLocalIdentifier, } from "../../_infra/generators.js";
|
|
@@ -114,13 +114,14 @@ const setPreloadedAttributesWithReferences = (state, action) => {
|
|
|
114
114
|
* @internal
|
|
115
115
|
*/
|
|
116
116
|
export function upsertDateFilterPayloadDataSet(payload) {
|
|
117
|
-
return payload.
|
|
117
|
+
return payload.dataSet;
|
|
118
118
|
}
|
|
119
119
|
function newDashboardAbsoluteGranularityDateFilter(payload, localIdentifier) {
|
|
120
|
-
const { granularity, from, to, emptyValueHandling } = payload;
|
|
120
|
+
const { granularity, from, to, emptyValueHandling, dataSet } = payload;
|
|
121
121
|
return {
|
|
122
122
|
dashboardAbsoluteGranularityDateFilter: {
|
|
123
123
|
granularity,
|
|
124
|
+
...(dataSet ? { dataSet } : {}),
|
|
124
125
|
...(from === undefined
|
|
125
126
|
? { to }
|
|
126
127
|
: to === undefined
|
|
@@ -149,12 +150,13 @@ function upsertDateFilterOnTab(targetTab, payload) {
|
|
|
149
150
|
const dateDataSet = upsertDateFilterPayloadDataSet(payload);
|
|
150
151
|
let existingFilterIndex = -1;
|
|
151
152
|
if (dateDataSet) {
|
|
152
|
-
existingFilterIndex = filterContextDefinition.filters.findIndex((item) =>
|
|
153
|
+
existingFilterIndex = filterContextDefinition.filters.findIndex((item) => isDashboardDateFilterWithDimensionOfAnyType(item) &&
|
|
154
|
+
areObjRefsEqual(dashboardFilterObjRef(item), dateDataSet));
|
|
153
155
|
}
|
|
154
156
|
else {
|
|
155
157
|
existingFilterIndex = filterContextDefinition.filters.findIndex((item) => isDashboardCommonDateFilterOfAnyType(item));
|
|
156
158
|
}
|
|
157
|
-
// A change of the type of
|
|
159
|
+
// A change of the type of a date filter keeps its local identifier.
|
|
158
160
|
const existingFilter = filterContextDefinition.filters[existingFilterIndex];
|
|
159
161
|
const existingLocalIdentifier = isDashboardAbsoluteGranularityDateFilter(existingFilter) || isDashboardDateFilter(existingFilter)
|
|
160
162
|
? dashboardFilterLocalIdentifier(existingFilter)
|
|
@@ -176,7 +178,7 @@ function upsertDateFilterOnTab(targetTab, payload) {
|
|
|
176
178
|
filterContextDefinition.filters[existingFilterIndex] = newAllTimeDashboardDateFilter(dateFilter.dateFilter.dataSet, dateFilter.dateFilter.localIdentifier, payload.emptyValueHandling);
|
|
177
179
|
}
|
|
178
180
|
else if (isDashboardAbsoluteGranularityDateFilter(dateFilter)) {
|
|
179
|
-
filterContextDefinition.filters[existingFilterIndex] = newAllTimeDashboardDateFilter(
|
|
181
|
+
filterContextDefinition.filters[existingFilterIndex] = newAllTimeDashboardDateFilter(dateFilter.dashboardAbsoluteGranularityDateFilter.dataSet, existingLocalIdentifier, payload.emptyValueHandling);
|
|
180
182
|
}
|
|
181
183
|
}
|
|
182
184
|
else {
|
|
@@ -190,6 +192,9 @@ function upsertDateFilterOnTab(targetTab, payload) {
|
|
|
190
192
|
if (isDashboardDateFilter(dateFilter)) {
|
|
191
193
|
filterContextDefinition.filters[existingFilterIndex] = newAllTimeDashboardDateFilter(dateFilter.dateFilter.dataSet, dateFilter.dateFilter.localIdentifier, payload.emptyValueHandling);
|
|
192
194
|
}
|
|
195
|
+
else if (isDashboardAbsoluteGranularityDateFilter(dateFilter)) {
|
|
196
|
+
filterContextDefinition.filters[existingFilterIndex] = newAllTimeDashboardDateFilter(dateFilter.dashboardAbsoluteGranularityDateFilter.dataSet, existingLocalIdentifier, payload.emptyValueHandling);
|
|
197
|
+
}
|
|
193
198
|
}
|
|
194
199
|
else {
|
|
195
200
|
if (payload.emptyValueHandling) {
|
|
@@ -233,12 +238,14 @@ function upsertDateFilterOnTab(targetTab, payload) {
|
|
|
233
238
|
}
|
|
234
239
|
else if (isDashboardAbsoluteGranularityDateFilter(dateFilter)) {
|
|
235
240
|
const filterLocalIdentifier = localIdentifier ?? existingLocalIdentifier;
|
|
241
|
+
const existingDataSet = dateFilter.dashboardAbsoluteGranularityDateFilter.dataSet;
|
|
236
242
|
filterContextDefinition.filters[existingFilterIndex] = {
|
|
237
243
|
dateFilter: {
|
|
238
244
|
granularity,
|
|
239
245
|
type,
|
|
240
246
|
from,
|
|
241
247
|
to,
|
|
248
|
+
...(existingDataSet ? { dataSet: existingDataSet } : {}),
|
|
242
249
|
...(filterLocalIdentifier ? { localIdentifier: filterLocalIdentifier } : {}),
|
|
243
250
|
...(boundedFilter ? { boundedFilter } : {}),
|
|
244
251
|
...(emptyValueHandling ? { emptyValueHandling } : {}),
|
|
@@ -396,11 +403,11 @@ const addAttributeFilter = (state, action) => {
|
|
|
396
403
|
const { displayForm, index, initialIsNegativeSelection, initialSelection, parentFilters, selectionMode, localIdentifier, title, } = action.payload;
|
|
397
404
|
const { definition } = target;
|
|
398
405
|
// Filters are indexed just for attribute filters, if DateFilter is present should be always first item
|
|
399
|
-
const
|
|
406
|
+
const isCommonDateFilterPresent = definition.filters.findIndex(isDashboardCommonDateFilterOfAnyType) >= 0;
|
|
400
407
|
const hasSelection = initialSelection && !attributeElementsIsEmpty(initialSelection);
|
|
401
408
|
const isNegative = selectionMode !== "single" && (initialIsNegativeSelection || !hasSelection);
|
|
402
409
|
// If DateFilter is present we have to move index by 1 because index of filter is calculated just for AttributeFilers array
|
|
403
|
-
const attributeFilterIndex =
|
|
410
|
+
const attributeFilterIndex = isCommonDateFilterPresent ? index + 1 : index;
|
|
404
411
|
const filter = {
|
|
405
412
|
attributeFilter: {
|
|
406
413
|
attributeElements: initialSelection ?? { uris: [] },
|
|
@@ -427,8 +434,8 @@ const addTextAttributeFilter = (state, action) => {
|
|
|
427
434
|
const { filter, index } = action.payload;
|
|
428
435
|
const { definition } = target;
|
|
429
436
|
// Filters are indexed just for attribute filters, if DateFilter is present should be always first item
|
|
430
|
-
const
|
|
431
|
-
const attributeFilterIndex =
|
|
437
|
+
const isCommonDateFilterPresent = definition.filters.findIndex(isDashboardCommonDateFilterOfAnyType) >= 0;
|
|
438
|
+
const attributeFilterIndex = isCommonDateFilterPresent ? index + 1 : index;
|
|
432
439
|
const filterWithLocalIdentifier = withAttributeFilterLocalIdentifier(filter, resolveAttributeFilterLocalIdentifier(definition, dashboardAttributeFilterItemDisplayForm(filter), attributeFilterIndex, dashboardAttributeFilterItemLocalIdentifier(filter)));
|
|
433
440
|
if (!filterWithLocalIdentifier) {
|
|
434
441
|
return;
|
|
@@ -533,13 +540,13 @@ const moveAttributeFilter = (state, action) => {
|
|
|
533
540
|
const filter = filters[currentFilterIndex];
|
|
534
541
|
filters.splice(currentFilterIndex, 1);
|
|
535
542
|
// Filters are indexed just for attribute filters, if DateFilter is present should be always first item
|
|
536
|
-
const
|
|
543
|
+
const isCommonDateFilterPresent = filters.findIndex(isDashboardCommonDateFilterOfAnyType) >= 0;
|
|
537
544
|
if (index === -1) {
|
|
538
545
|
filters.push(filter);
|
|
539
546
|
}
|
|
540
547
|
else {
|
|
541
548
|
// If DateFilter is present we have to move index by 1 because index of filter is calculated just for AttributeFilers array
|
|
542
|
-
const attributeFilterIndex =
|
|
549
|
+
const attributeFilterIndex = isCommonDateFilterPresent ? index + 1 : index;
|
|
543
550
|
filters.splice(attributeFilterIndex, 0, filter);
|
|
544
551
|
}
|
|
545
552
|
};
|
|
@@ -800,13 +807,13 @@ const removeDateFilter = (state, action) => {
|
|
|
800
807
|
}
|
|
801
808
|
const { dataSet } = action.payload;
|
|
802
809
|
const { filterContext, definition } = target;
|
|
803
|
-
const
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
810
|
+
const isRemovedFilter = (item) => isDashboardDateFilterWithDimensionOfAnyType(item) &&
|
|
811
|
+
areObjRefsEqual(dashboardFilterObjRef(item), dataSet);
|
|
812
|
+
const removed = definition.filters.find(isRemovedFilter);
|
|
813
|
+
const removedLocalIdentifier = removed ? dashboardFilterLocalIdentifier(removed) : undefined;
|
|
807
814
|
filterContext.filterContextDefinition = {
|
|
808
815
|
...definition,
|
|
809
|
-
filters: definition.filters.filter((item) => !
|
|
816
|
+
filters: definition.filters.filter((item) => !isRemovedFilter(item)),
|
|
810
817
|
};
|
|
811
818
|
removeDimensionDateFilterDependencies(filterContext.filterContextDefinition, dataSet, removedLocalIdentifier);
|
|
812
819
|
};
|
|
@@ -854,7 +861,8 @@ const moveDateFilter = (state, action) => {
|
|
|
854
861
|
}
|
|
855
862
|
const { dataSet, index } = action.payload;
|
|
856
863
|
const filters = target.definition.filters;
|
|
857
|
-
const currentFilterIndex = filters.findIndex((item) =>
|
|
864
|
+
const currentFilterIndex = filters.findIndex((item) => isDashboardDateFilterWithDimensionOfAnyType(item) &&
|
|
865
|
+
areObjRefsEqual(dashboardFilterObjRef(item), dataSet));
|
|
858
866
|
invariant(currentFilterIndex >= 0, "Attempt to move non-existing filter");
|
|
859
867
|
const filter = filters[currentFilterIndex];
|
|
860
868
|
filters.splice(currentFilterIndex, 1);
|
|
@@ -681,6 +681,17 @@ export declare const selectFilterContextDraggableFilters: DashboardSelector<Arra
|
|
|
681
681
|
* @public
|
|
682
682
|
*/
|
|
683
683
|
export declare const selectFilterContextDraggableFilterItems: DashboardSelector<Array<IDashboardDateFilter | DashboardAttributeFilterItem | IDashboardMeasureValueFilter>>;
|
|
684
|
+
/**
|
|
685
|
+
* This selector returns all dashboard's filter context draggable filters, like
|
|
686
|
+
* {@link selectFilterContextDraggableFilterItems}, with date filters with a dimension of any type.
|
|
687
|
+
*
|
|
688
|
+
* @remarks
|
|
689
|
+
* It is expected that the selector is called only after the filter context state is correctly initialized.
|
|
690
|
+
* Invocations before initialization lead to invariant errors.
|
|
691
|
+
*
|
|
692
|
+
* @alpha
|
|
693
|
+
*/
|
|
694
|
+
export declare const selectFilterContextDraggableFilterItemsOfAnyType: DashboardSelector<Array<DashboardDateFilterOfAnyType | DashboardAttributeFilterItem | IDashboardMeasureValueFilter>>;
|
|
684
695
|
/**
|
|
685
696
|
* This selector returns dashboard's applied filter context measure value filters.
|
|
686
697
|
*
|
|
@@ -729,6 +740,26 @@ export declare const selectFilterContextDateFiltersWithDimension: DashboardSelec
|
|
|
729
740
|
* @public
|
|
730
741
|
*/
|
|
731
742
|
export declare const selectWorkingFilterContextDateFiltersWithDimension: DashboardSelector<IDashboardDateFilter[]>;
|
|
743
|
+
/**
|
|
744
|
+
* This selector returns dashboard's filter context date filters with dimension specified, of any type.
|
|
745
|
+
*
|
|
746
|
+
* @remarks
|
|
747
|
+
* It is expected that the selector is called only after the filter context state is correctly initialized.
|
|
748
|
+
* Invocations before initialization lead to invariant errors.
|
|
749
|
+
*
|
|
750
|
+
* @alpha
|
|
751
|
+
*/
|
|
752
|
+
export declare const selectFilterContextDateFiltersWithDimensionOfAnyType: DashboardSelector<DashboardDateFilterOfAnyType[]>;
|
|
753
|
+
/**
|
|
754
|
+
* This selector returns dashboard's working filter context date filters with dimension specified, of any type.
|
|
755
|
+
*
|
|
756
|
+
* @remarks
|
|
757
|
+
* It is expected that the selector is called only after the filter context state is correctly initialized.
|
|
758
|
+
* Invocations before initialization lead to invariant errors.
|
|
759
|
+
*
|
|
760
|
+
* @alpha
|
|
761
|
+
*/
|
|
762
|
+
export declare const selectWorkingFilterContextDateFiltersWithDimensionOfAnyType: DashboardSelector<DashboardDateFilterOfAnyType[]>;
|
|
732
763
|
/**
|
|
733
764
|
* Creates a selector for selecting date filter by its dataset {@link @gooddata/sdk-model#ObjRef}.
|
|
734
765
|
*
|
|
@@ -738,6 +769,15 @@ export declare const selectWorkingFilterContextDateFiltersWithDimension: Dashboa
|
|
|
738
769
|
* @public
|
|
739
770
|
*/
|
|
740
771
|
export declare const selectFilterContextDateFilterByDataSet: (dataSet: ObjRef) => (state: DashboardState) => IDashboardDateFilter | undefined;
|
|
772
|
+
/**
|
|
773
|
+
* Creates a selector for selecting date filter of any type by its dataset {@link @gooddata/sdk-model#ObjRef}.
|
|
774
|
+
*
|
|
775
|
+
* @remarks
|
|
776
|
+
* Invocations before initialization lead to invariant errors.
|
|
777
|
+
*
|
|
778
|
+
* @alpha
|
|
779
|
+
*/
|
|
780
|
+
export declare const selectFilterContextDateFilterOfAnyTypeByDataSet: (dataSet: ObjRef) => (state: DashboardState) => DashboardDateFilterOfAnyType | undefined;
|
|
741
781
|
/**
|
|
742
782
|
* Creates a selector for selecting date filter's index by its dataset {@link @gooddata/sdk-model#ObjRef}.
|
|
743
783
|
*
|
|
@@ -755,7 +795,7 @@ export declare const selectFilterContextDateFilterIndexByDataSet: (dataSet: ObjR
|
|
|
755
795
|
*
|
|
756
796
|
* @internal
|
|
757
797
|
*/
|
|
758
|
-
export declare const selectFilterContextDateFiltersWithDimensionForTab: (tabLocalIdentifier: string) => DashboardSelector<
|
|
798
|
+
export declare const selectFilterContextDateFiltersWithDimensionForTab: (tabLocalIdentifier: string) => DashboardSelector<DashboardDateFilterOfAnyType[]>;
|
|
759
799
|
/**
|
|
760
800
|
* Returns the common date filter for a specific tab.
|
|
761
801
|
*
|
|
@@ -774,7 +814,7 @@ export declare const selectFilterContextDateFilterForTab: (tabLocalIdentifier: s
|
|
|
774
814
|
*
|
|
775
815
|
* @internal
|
|
776
816
|
*/
|
|
777
|
-
export declare const selectFilterContextDateFilterByDataSetForTab: (dataSet: ObjRef, tabLocalIdentifier: string) => DashboardSelector<
|
|
817
|
+
export declare const selectFilterContextDateFilterByDataSetForTab: (dataSet: ObjRef, tabLocalIdentifier: string) => DashboardSelector<DashboardDateFilterOfAnyType | undefined>;
|
|
778
818
|
/**
|
|
779
819
|
* Creates a selector for selecting draggable filter's index by its ref:
|
|
780
820
|
* dataSet ref for date filters {@link @gooddata/sdk-model#ObjRef}
|
|
@@ -1047,7 +1087,7 @@ export declare const selectWorkingFilterContextAttributeFilterItemsForTab: (tabL
|
|
|
1047
1087
|
*
|
|
1048
1088
|
* @internal
|
|
1049
1089
|
*/
|
|
1050
|
-
export declare const selectWorkingFilterContextDateFiltersWithDimensionForTab: (tabLocalIdentifier: string) => DashboardSelector<
|
|
1090
|
+
export declare const selectWorkingFilterContextDateFiltersWithDimensionForTab: (tabLocalIdentifier: string) => DashboardSelector<DashboardDateFilterOfAnyType[]>;
|
|
1051
1091
|
/**
|
|
1052
1092
|
* Returns the working common date filter for a specific tab.
|
|
1053
1093
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filterContextSelectors.d.ts","sourceRoot":"","sources":["../../../../../src/model/store/tabs/filterContext/filterContextSelectors.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,wBAAwB,EAAE,MAAM,2BAA2B,CAAC;AAC1E,OAAO,EACH,KAAK,4BAA4B,EACjC,KAAK,4BAA4B,EACjC,KAAK,iBAAiB,EACtB,KAAK,mCAAmC,EACxC,KAAK,yBAAyB,EAC9B,KAAK,oBAAoB,EACzB,KAAK,4BAA4B,EACjC,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,EAC7B,KAAK,MAAM,
|
|
1
|
+
{"version":3,"file":"filterContextSelectors.d.ts","sourceRoot":"","sources":["../../../../../src/model/store/tabs/filterContext/filterContextSelectors.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,wBAAwB,EAAE,MAAM,2BAA2B,CAAC;AAC1E,OAAO,EACH,KAAK,4BAA4B,EACjC,KAAK,4BAA4B,EACjC,KAAK,iBAAiB,EACtB,KAAK,mCAAmC,EACxC,K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