@gooddata/sdk-ui-dashboard 11.70.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.d.ts.map +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
package/esm/presentation/dragAndDrop/draggableFilterDropZone/DraggableFilterDropZoneHint.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DraggableFilterDropZoneHint.d.ts","sourceRoot":"","sources":["../../../../src/presentation/dragAndDrop/draggableFilterDropZone/DraggableFilterDropZoneHint.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DraggableFilterDropZoneHint.d.ts","sourceRoot":"","sources":["../../../../src/presentation/dragAndDrop/draggableFilterDropZone/DraggableFilterDropZoneHint.tsx"],"names":[],"mappings":"AA2BA,MAAM,MAAM,gCAAgC,GAAG,QAAQ,GAAG,SAAS,CAAC;AACpE,MAAM,MAAM,mCAAmC,GAAG,MAAM,GAAG,MAAM,CAAC;AAkBlE,MAAM,MAAM,gCAAgC,GAAG;IAC3C,SAAS,CAAC,EAAE,gCAAgC,CAAC;IAC7C,YAAY,EAAE,mCAAmC,CAAC;IAClD,WAAW,EAAE,MAAM,CAAC;IACpB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,yBAAyB,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACvD,CAAC;AAEF,wBAAgB,2BAA2B,CAAC,EACxC,SAAoB,EACpB,YAAY,EACZ,WAAW,EACX,iBAAwB,EACxB,yBAAyB,GAC5B,EAAE,gCAAgC,2CA0ElC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import cx from "classnames";
|
|
3
|
-
import { dashboardAttributeFilterItemLocalIdentifier, dashboardFilterLocalIdentifier, } from "@gooddata/sdk-model";
|
|
3
|
+
import { dashboardAttributeFilterItemLocalIdentifier, dashboardFilterLocalIdentifier, dashboardFilterObjRef, } from "@gooddata/sdk-model";
|
|
4
4
|
import { moveAttributeFilter, moveDateFilter, moveMeasureValueFilter, } from "../../../model/commands/filters.js";
|
|
5
5
|
import { useDashboardDispatch } from "../../../model/react/DashboardStoreProvider.js";
|
|
6
6
|
import { getDropZoneDebugStyle } from "../debug.js";
|
|
@@ -41,7 +41,7 @@ export function DraggableFilterDropZoneHint({ placement = "inside", hintPosition
|
|
|
41
41
|
dispatch(moveAttributeFilter(identifier, index));
|
|
42
42
|
}
|
|
43
43
|
if (isDateFilterDraggableItem(item)) {
|
|
44
|
-
const ref = item.filter
|
|
44
|
+
const ref = dashboardFilterObjRef(item.filter);
|
|
45
45
|
const index = getMoveIndex(item.filterIndex);
|
|
46
46
|
dispatch(moveDateFilter(ref, index));
|
|
47
47
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type ComponentType, type ReactElement } from "react";
|
|
2
|
-
import { type DashboardAttributeFilterItem, type
|
|
2
|
+
import { type DashboardAttributeFilterItem, type DashboardDateFilterOfAnyType, type IDashboardMeasureValueFilter, type IFilter, type IInsight, type IKpi, type ObjRef } from "@gooddata/sdk-model";
|
|
3
3
|
import { type ICustomWidget } from "../../model/types/layoutTypes.js";
|
|
4
4
|
import { type ILayoutItemPath, type ILayoutSectionPath } from "../../types.js";
|
|
5
5
|
/**
|
|
@@ -35,7 +35,7 @@ export declare function isAttributeFilterDraggableItem(item: DraggableContentIte
|
|
|
35
35
|
*/
|
|
36
36
|
export type DateFilterDraggableItem = {
|
|
37
37
|
type: "dateFilter";
|
|
38
|
-
filter:
|
|
38
|
+
filter: DashboardDateFilterOfAnyType;
|
|
39
39
|
filterIndex: number;
|
|
40
40
|
};
|
|
41
41
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/presentation/dragAndDrop/types.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,aAAa,EAAE,KAAK,YAAY,EAAE,MAAM,OAAO,CAAC;AAE9D,OAAO,EACH,KAAK,4BAA4B,EACjC,KAAK,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/presentation/dragAndDrop/types.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,aAAa,EAAE,KAAK,YAAY,EAAE,MAAM,OAAO,CAAC;AAE9D,OAAO,EACH,KAAK,4BAA4B,EACjC,KAAK,4BAA4B,EACjC,KAAK,4BAA4B,EACjC,KAAK,OAAO,EACZ,KAAK,QAAQ,EACb,KAAK,IAAI,EACT,KAAK,MAAM,EACd,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAAO,EAAE,KAAK,eAAe,EAAE,KAAK,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAE/E;;GAEG;AACH,MAAM,MAAM,wBAAwB,GAC9B,iBAAiB,GACjB,YAAY,GACZ,WAAW,GACX,oBAAoB,GACpB,6BAA6B,GAC7B,iBAAiB,GACjB,SAAS,GACT,qBAAqB,GACrB,KAAK,GACL,iBAAiB,GACjB,UAAU,GACV,kBAAkB,GAClB,uBAAuB,GACvB,+BAA+B,GAC/B,iBAAiB,GACjB,yBAAyB,GACzB,QAAQ,CAAC;AAEf;;GAEG;AACH,MAAM,MAAM,yBAAyB,GAAG,wBAAwB,GAAG,yBAAyB,CAAC;AAC7F;;GAEG;AACH,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,IAAI,yBAAyB,CAE3F;AAED;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG,wBAAwB,GAAG,yBAAyB,CAAC;AAErF;;GAEG;AACH,MAAM,MAAM,4BAA4B,GAAG;IACvC,IAAI,EAAE,iBAAiB,CAAC;IACxB,MAAM,EAAE,4BAA4B,CAAC;IACr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,QAAQ,EAAE,YAAY,CAAC;IACvB,QAAQ,EAAE,aAAa,CAAC;IACxB,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,EAAE,OAAO,CAAC;IACjB,WAAW,CAAC,EAAE,CAAC,IAAI,EAAE,aAAa,KAAK,IAAI,CAAC;IAC5C,SAAS,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;CAC1C,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,qCAAqC,GAAG,aAAa,CAAC,iCAAiC,CAAC,CAAC;AAErG;;GAEG;AACH,MAAM,WAAW,iCAAiC;IAC9C,QAAQ,EAAE,YAAY,CAAC;IACvB,OAAO,EAAE,QAAQ,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,CAAC,IAAI,EAAE,aAAa,KAAK,IAAI,CAAC;CAC/C;AAED;;GAEG;AACH,MAAM,MAAM,qCAAqC,GAAG,aAAa,CAAC,iCAAiC,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useFilterDeleteDrop.d.ts","sourceRoot":"","sources":["../../../src/presentation/dragAndDrop/useFilterDeleteDrop.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useFilterDeleteDrop.d.ts","sourceRoot":"","sources":["../../../src/presentation/dragAndDrop/useFilterDeleteDrop.ts"],"names":[],"mappings":"AAyBA;;;;GAIG;AACH,wBAAgB,mBAAmB;;;;;6DAuBlC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// (C) 2026 GoodData Corporation
|
|
2
|
-
import { dashboardAttributeFilterItemLocalIdentifier, dashboardFilterLocalIdentifier, } from "@gooddata/sdk-model";
|
|
2
|
+
import { dashboardAttributeFilterItemLocalIdentifier, dashboardFilterLocalIdentifier, dashboardFilterObjRef, } from "@gooddata/sdk-model";
|
|
3
3
|
import { removeAttributeFilter, removeDateFilter, removeMeasureValueFilter, } from "../../model/commands/filters.js";
|
|
4
4
|
import { removeParameters } from "../../model/commands/parameters.js";
|
|
5
5
|
import { useDashboardDispatch, useDashboardSelector } from "../../model/react/DashboardStoreProvider.js";
|
|
@@ -21,7 +21,7 @@ export function useFilterDeleteDrop() {
|
|
|
21
21
|
dispatch(removeAttributeFilter(identifier));
|
|
22
22
|
}
|
|
23
23
|
else if (isDateFilterDraggableItem(item)) {
|
|
24
|
-
const dataSet = item.filter
|
|
24
|
+
const dataSet = dashboardFilterObjRef(item.filter);
|
|
25
25
|
dispatch(removeDateFilter(dataSet));
|
|
26
26
|
}
|
|
27
27
|
else if (isMeasureValueFilterDraggableItem(item)) {
|
package/esm/presentation/filterBar/attributeFilter/AttributeFilterParentFilteringContext.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AttributeFilterParentFilteringContext.d.ts","sourceRoot":"","sources":["../../../../src/presentation/filterBar/attributeFilter/AttributeFilterParentFilteringContext.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAA2D,MAAM,OAAO,CAAC;AAIhG,OAAO,EAEH,KAAK,4BAA4B,
|
|
1
|
+
{"version":3,"file":"AttributeFilterParentFilteringContext.d.ts","sourceRoot":"","sources":["../../../../src/presentation/filterBar/attributeFilter/AttributeFilterParentFilteringContext.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAA2D,MAAM,OAAO,CAAC;AAIhG,OAAO,EAEH,KAAK,4BAA4B,EAGjC,KAAK,iBAAiB,EACtB,KAAK,wBAAwB,EAC7B,KAAK,mBAAmB,EAExB,KAAK,MAAM,EAUd,MAAM,qBAAqB,CAAC;AAc7B,OAAO,EAAE,oCAAoC,EAAE,MAAM,qFAAqF,CAAC;AAC3I,OAAO,EAAE,2BAA2B,EAAE,MAAM,4EAA4E,CAAC;AACzH,OAAO,EAAE,6BAA6B,EAAE,MAAM,8EAA8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;IACxB,UAAU,CAAC,EAAE,wBAAwB,EAAE,CAAC;IACxC,QAAQ,CAAC,EAAE,SAAS,CAAC;CACxB,CAAC;AAEF;;GAEG;AACH,wBAAgB,sCAAsC,CAAC,EACnD,QAAQ,EACR,UAAU,EACV,UAAU,EACV,cAAc,GACjB,EAAE,4CAA4C,2CAmT9C;AA+CD;;;;;;GAMG;AACH,wBAAgB,0CAA0C,CAAC,EACvD,QAAQ,EACR,WAAW,GACd,EAAE;IACC,QAAQ,EAAE,SAAS,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;CACvB,2CA2DA"}
|
|
@@ -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;
|