@gooddata/sdk-ui-dashboard 11.62.0-alpha.1 → 11.62.0-alpha.3
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 +40 -618
- package/esm/__version.d.ts +1 -1
- package/esm/__version.js +1 -1
- package/esm/_staging/dashboard/dashboardFilterContext.d.ts.map +1 -1
- package/esm/_staging/dashboard/dashboardFilterContext.js +4 -2
- package/esm/_staging/dashboard/dashboardFilterContextValidation.js +1 -1
- package/esm/index.d.ts +5 -3
- package/esm/index.d.ts.map +1 -1
- package/esm/index.js +1 -1
- package/esm/kdaDialog/composition/KdaAttributesDropdown.d.ts +2 -1
- package/esm/kdaDialog/composition/KdaAttributesDropdown.d.ts.map +1 -1
- package/esm/kdaDialog/composition/KdaAttributesDropdown.js +4 -5
- package/esm/kdaDialog/composition/KeyDriversFooter.d.ts.map +1 -1
- package/esm/kdaDialog/composition/KeyDriversFooter.js +12 -4
- package/esm/model/commandHandlers/dashboard/common/filterViews.d.ts +3 -2
- package/esm/model/commandHandlers/dashboard/common/filterViews.d.ts.map +1 -1
- package/esm/model/commandHandlers/dashboard/common/filterViews.js +12 -6
- package/esm/model/commandHandlers/dashboard/common/stateInitializers.d.ts.map +1 -1
- package/esm/model/commandHandlers/dashboard/common/stateInitializers.js +5 -6
- package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/index.d.ts.map +1 -1
- package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/index.js +1 -1
- package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/loadUnavailableReferences.d.ts.map +1 -1
- package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/loadUnavailableReferences.js +2 -0
- package/esm/model/commandHandlers/dashboard/resetDashboardHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/dashboard/resetDashboardHandler.js +3 -1
- package/esm/model/commandHandlers/dashboard/saveDashboardHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/dashboard/saveDashboardHandler.js +27 -10
- package/esm/model/commandHandlers/drill/drillToDashboardHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/drill/drillToDashboardHandler.js +4 -1
- package/esm/model/commandHandlers/drill/keyDriverAnalysisHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/drill/keyDriverAnalysisHandler.js +5 -3
- package/esm/model/commandHandlers/drill/resolveDrillToCustomUrl.d.ts +21 -1
- package/esm/model/commandHandlers/drill/resolveDrillToCustomUrl.d.ts.map +1 -1
- package/esm/model/commandHandlers/drill/resolveDrillToCustomUrl.js +56 -54
- package/esm/model/commandHandlers/filterContext/attributeFilter/changeAttributeFilterSelectionHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/filterContext/attributeFilter/changeAttributeFilterSelectionHandler.js +17 -4
- package/esm/model/commandHandlers/filterContext/attributeFilter/replaceAttributeFilterItemSelectionHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/filterContext/attributeFilter/replaceAttributeFilterItemSelectionHandler.js +6 -1
- package/esm/model/commandHandlers/filterContext/changeFilterContextSelectionHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/filterContext/changeFilterContextSelectionHandler.js +188 -70
- package/esm/model/commandHandlers/filterContext/common.d.ts +14 -2
- package/esm/model/commandHandlers/filterContext/common.d.ts.map +1 -1
- package/esm/model/commandHandlers/filterContext/common.js +43 -6
- package/esm/model/commandHandlers/filterContext/dateFilter/changeDateFilterSelectionHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/filterContext/dateFilter/changeDateFilterSelectionHandler.js +13 -3
- package/esm/model/commandHandlers/filterContext/measureValueFilter/changeMeasureValueFilterConditionHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/filterContext/measureValueFilter/changeMeasureValueFilterConditionHandler.js +11 -2
- package/esm/model/commandHandlers/filterContext/measureValueFilter/changeMeasureValueFilterDimensionalityHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/filterContext/measureValueFilter/changeMeasureValueFilterDimensionalityHandler.js +3 -0
- package/esm/model/commandHandlers/parameters/changeParameterValuesHandler.d.ts +10 -2
- package/esm/model/commandHandlers/parameters/changeParameterValuesHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/parameters/changeParameterValuesHandler.js +20 -3
- package/esm/model/commandHandlers/scheduledEmail/initializeAutomationsHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/scheduledEmail/initializeAutomationsHandler.js +21 -4
- package/esm/model/commandHandlers/tabs/createDashboardTabHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/tabs/createDashboardTabHandler.js +27 -3
- package/esm/model/commands/filters.d.ts +16 -1
- package/esm/model/commands/filters.d.ts.map +1 -1
- package/esm/model/commands/filters.js +4 -3
- package/esm/model/commands/parameters.d.ts +4 -3
- package/esm/model/commands/parameters.d.ts.map +1 -1
- package/esm/model/commands/parameters.js +3 -2
- package/esm/model/events/dashboard.d.ts +17 -1
- package/esm/model/events/dashboard.d.ts.map +1 -1
- package/esm/model/events/dashboard.js +2 -1
- package/esm/model/store/drill/drillSelectors.d.ts +6 -0
- package/esm/model/store/drill/drillSelectors.d.ts.map +1 -1
- package/esm/model/store/drill/drillSelectors.js +9 -0
- package/esm/model/store/filtering/dashboardFilterSelectors.d.ts +6 -1
- package/esm/model/store/filtering/dashboardFilterSelectors.d.ts.map +1 -1
- package/esm/model/store/filtering/dashboardFilterSelectors.js +21 -19
- package/esm/model/store/filtering/restrictedFilterUtils.d.ts +26 -1
- package/esm/model/store/filtering/restrictedFilterUtils.d.ts.map +1 -1
- package/esm/model/store/filtering/restrictedFilterUtils.js +74 -6
- package/esm/model/store/meta/metaSelectors.d.ts +6 -0
- package/esm/model/store/meta/metaSelectors.d.ts.map +1 -1
- package/esm/model/store/meta/metaSelectors.js +13 -3
- package/esm/model/store/tabs/filterContext/filterContextReducers.d.ts +48 -0
- package/esm/model/store/tabs/filterContext/filterContextReducers.d.ts.map +1 -1
- package/esm/model/store/tabs/filterContext/filterContextReducers.js +362 -102
- package/esm/model/store/tabs/filterContext/filterContextSelectors.d.ts +74 -1
- package/esm/model/store/tabs/filterContext/filterContextSelectors.d.ts.map +1 -1
- package/esm/model/store/tabs/filterContext/filterContextSelectors.js +27 -21
- package/esm/model/store/tabs/filterContext/filterSync.d.ts +101 -0
- package/esm/model/store/tabs/filterContext/filterSync.d.ts.map +1 -0
- package/esm/model/store/tabs/filterContext/filterSync.js +361 -0
- package/esm/model/store/tabs/index.d.ts +2 -0
- package/esm/model/store/tabs/index.d.ts.map +1 -1
- package/esm/model/store/tabs/parameters/parametersReducers.d.ts +5 -0
- package/esm/model/store/tabs/parameters/parametersReducers.d.ts.map +1 -1
- package/esm/model/store/tabs/parameters/parametersReducers.js +9 -5
- package/esm/model/store/tabs/tabsReducers.d.ts +6 -0
- package/esm/model/store/tabs/tabsReducers.d.ts.map +1 -1
- package/esm/model/store/tabs/tabsReducers.js +14 -6
- package/esm/model/store/tabs/tabsState.d.ts +10 -0
- package/esm/model/store/tabs/tabsState.d.ts.map +1 -1
- package/esm/model/store/tabs/tabsState.js +20 -0
- package/esm/model/store/unavailableObjects/copyBlockingReferences.d.ts +5 -3
- package/esm/model/store/unavailableObjects/copyBlockingReferences.d.ts.map +1 -1
- package/esm/model/store/unavailableObjects/copyBlockingReferences.js +9 -16
- package/esm/model/store/unavailableObjects/unavailableObjectsSelectors.d.ts +0 -16
- package/esm/model/store/unavailableObjects/unavailableObjectsSelectors.d.ts.map +1 -1
- package/esm/model/store/unavailableObjects/unavailableObjectsSelectors.js +0 -18
- package/esm/model/utils/attributeFilterMatching.d.ts +38 -0
- package/esm/model/utils/attributeFilterMatching.d.ts.map +1 -0
- package/esm/model/utils/attributeFilterMatching.js +110 -0
- package/esm/model/utils/attributeFilterSelectionTypeCompatibility.d.ts.map +1 -0
- package/esm/presentation/automations/alerting/state/types.d.ts +2 -2
- package/esm/presentation/automations/alerting/state/types.d.ts.map +1 -1
- package/esm/presentation/automations/connectors/hooks/useBuildAutomationsContext.d.ts.map +1 -1
- package/esm/presentation/automations/connectors/hooks/useBuildAutomationsContext.js +7 -3
- package/esm/presentation/automations/contexts/AutomationsContext.d.ts +6 -2
- package/esm/presentation/automations/contexts/AutomationsContext.d.ts.map +1 -1
- package/esm/presentation/automations/scheduledEmail/state/types.d.ts +2 -2
- package/esm/presentation/automations/scheduledEmail/state/types.d.ts.map +1 -1
- package/esm/presentation/automations/scheduledEmail/types.d.ts +2 -2
- package/esm/presentation/automations/scheduledEmail/types.d.ts.map +1 -1
- package/esm/presentation/automations/shared/automationFilters/automationParameters.d.ts +11 -1
- package/esm/presentation/automations/shared/automationFilters/automationParameters.d.ts.map +1 -1
- package/esm/presentation/automations/shared/automationFilters/automationParameters.js +2 -0
- package/esm/presentation/automations/shared/automationFilters/components/AutomationFiltersSelect.d.ts +3 -3
- package/esm/presentation/automations/shared/automationFilters/components/AutomationFiltersSelect.d.ts.map +1 -1
- package/esm/presentation/automations/shared/automationFilters/components/AutomationFiltersSelect.js +3 -13
- package/esm/presentation/automations/shared/automationFilters/hooks/useDefaultSelectedFiltersForExistingAutomation.d.ts +1 -1
- package/esm/presentation/automations/shared/automationFilters/hooks/useDefaultSelectedFiltersForExistingAutomation.d.ts.map +1 -1
- package/esm/presentation/automations/shared/automationFilters/hooks/useDefaultSelectedFiltersForExistingAutomation.js +1 -1
- package/esm/presentation/automations/shared/automationFilters/hooks/useValidateExistingAutomationFilters.d.ts.map +1 -1
- package/esm/presentation/automations/shared/automationFilters/hooks/useValidateExistingAutomationFilters.js +1 -1
- package/esm/presentation/automations/shared/automationFilters/useAutomationAlertParameters.d.ts +2 -2
- package/esm/presentation/automations/shared/automationFilters/useAutomationAlertParameters.d.ts.map +1 -1
- package/esm/presentation/automations/shared/automationFilters/useAutomationExportParameters.d.ts +6 -2
- package/esm/presentation/automations/shared/automationFilters/useAutomationExportParameters.d.ts.map +1 -1
- package/esm/presentation/automations/shared/automationFilters/useAutomationFilters.d.ts.map +1 -1
- package/esm/presentation/automations/shared/automationFilters/useAutomationFilters.js +2 -2
- package/esm/presentation/automations/shared/automationFilters/utils.d.ts.map +1 -1
- package/esm/presentation/automations/shared/automationFilters/utils.js +8 -0
- package/esm/presentation/automations/shared/filters/conversions.d.ts +1 -1
- package/esm/presentation/automations/shared/filters/conversions.d.ts.map +1 -1
- package/esm/presentation/automations/shared/filters/conversions.js +5 -3
- package/esm/presentation/automations/shared/slots/types.d.ts +2 -2
- package/esm/presentation/automations/shared/slots/types.d.ts.map +1 -1
- package/esm/presentation/dashboardSettingsDialog/useDialogData.js +1 -1
- package/esm/presentation/filterBar/attributeFilter/DefaultDashboardAttributeFilter.d.ts.map +1 -1
- package/esm/presentation/filterBar/attributeFilter/DefaultDashboardAttributeFilter.js +1 -4
- package/esm/presentation/filterBar/attributeFilter/addAttributeFilter/AttributesDropdown.d.ts +2 -11
- package/esm/presentation/filterBar/attributeFilter/addAttributeFilter/AttributesDropdown.d.ts.map +1 -1
- package/esm/presentation/filterBar/attributeFilter/addAttributeFilter/AttributesDropdown.js +17 -16
- package/esm/presentation/filterBar/attributeFilter/addAttributeFilter/staticListItems.d.ts +11 -0
- package/esm/presentation/filterBar/attributeFilter/addAttributeFilter/staticListItems.d.ts.map +1 -0
- package/esm/presentation/filterBar/attributeFilter/addAttributeFilter/staticListItems.js +7 -0
- package/esm/presentation/filterBar/attributeFilter/addAttributeFilter/useMetricDropdownItems.d.ts +2 -11
- package/esm/presentation/filterBar/attributeFilter/addAttributeFilter/useMetricDropdownItems.d.ts.map +1 -1
- package/esm/presentation/filterBar/attributeFilter/addAttributeFilter/useMetricDropdownItems.js +0 -6
- package/esm/presentation/filterBar/attributeFilter/addAttributeFilter/useParameterDropdownItems.d.ts +34 -0
- package/esm/presentation/filterBar/attributeFilter/addAttributeFilter/useParameterDropdownItems.d.ts.map +1 -0
- package/esm/presentation/filterBar/attributeFilter/addAttributeFilter/useParameterDropdownItems.js +41 -0
- package/esm/presentation/filterBar/attributeFilter/dashboardDropdownBody/configuration/hooks/useLimitingItemsConfiguration.d.ts.map +1 -1
- package/esm/presentation/filterBar/attributeFilter/dashboardDropdownBody/configuration/hooks/useLimitingItemsConfiguration.js +4 -17
- package/esm/presentation/filterBar/attributeFilter/useDependentDateFilters.d.ts.map +1 -1
- package/esm/presentation/filterBar/attributeFilter/useDependentDateFilters.js +4 -13
- package/esm/presentation/filterBar/attributeFilter/useParentFilters.d.ts.map +1 -1
- package/esm/presentation/filterBar/attributeFilter/useParentFilters.js +3 -10
- package/esm/presentation/filterBar/filterBar/DefaultDashboardFilterGroup.d.ts.map +1 -1
- package/esm/presentation/filterBar/filterBar/DefaultDashboardFilterGroup.js +0 -9
- package/esm/presentation/filterBar/filterBar/DefaultFilterBarItem.d.ts.map +1 -1
- package/esm/presentation/filterBar/filterBar/DefaultFilterBarItem.js +15 -3
- package/esm/presentation/filterBar/filterBar/hooks/useResetFiltersButton.d.ts.map +1 -1
- package/esm/presentation/filterBar/filterBar/hooks/useResetFiltersButton.js +4 -0
- package/esm/presentation/localization/bundles/en-US.localization-bundle.d.ts +8 -0
- package/esm/presentation/localization/bundles/en-US.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/en-US.localization-bundle.js +8 -0
- package/esm/presentation/widget/insight/ViewModeDashboardInsight/InsightDrillDialog/DrillDialogExportDropdown.d.ts.map +1 -1
- package/esm/presentation/widget/insight/ViewModeDashboardInsight/InsightDrillDialog/DrillDialogExportDropdown.js +1 -1
- package/esm/presentation/widget/insight/configuration/DrillFilters/drillFiltersConfigUtils.d.ts +2 -3
- package/esm/presentation/widget/insight/configuration/DrillFilters/drillFiltersConfigUtils.d.ts.map +1 -1
- package/esm/presentation/widget/insight/configuration/DrillFilters/drillFiltersConfigUtils.js +29 -133
- package/esm/presentation/widget/insight/configuration/DrillFilters/optionMappings/mapDashboardFilterToOption.d.ts.map +1 -1
- package/esm/presentation/widget/insight/configuration/DrillFilters/optionMappings/mapDashboardFilterToOption.js +1 -1
- package/esm/presentation/widget/insight/configuration/DrillFilters/optionMappings/mapSourceInsightFilterToOption.d.ts.map +1 -1
- package/esm/presentation/widget/insight/configuration/DrillFilters/optionMappings/mapSourceInsightFilterToOption.js +1 -1
- package/esm/presentation/widget/insight/configuration/DrillFilters/optionMappings/mapSourceMeasureFilterToOption.d.ts.map +1 -1
- package/esm/presentation/widget/insight/configuration/DrillFilters/optionMappings/mapSourceMeasureFilterToOption.js +1 -1
- package/esm/sdk-ui-dashboard.d.ts +151 -13
- package/package.json +23 -23
- package/styles/css/drillDialog.css +4 -0
- package/styles/css/drillDialog.css.map +1 -1
- package/styles/css/main.css +8 -0
- package/styles/css/main.css.map +1 -1
- package/styles/scss/drillDialog.scss +5 -0
- package/esm/model/commandHandlers/dashboard/common/attributeFilterSelectionTypeCompatibility.d.ts.map +0 -1
- /package/esm/model/{commandHandlers/dashboard/common → utils}/attributeFilterSelectionTypeCompatibility.d.ts +0 -0
- /package/esm/model/{commandHandlers/dashboard/common → utils}/attributeFilterSelectionTypeCompatibility.js +0 -0
|
@@ -23,22 +23,6 @@ export declare const selectUnavailableObjectsMapByType: (type: ObjectType) => Da
|
|
|
23
23
|
* @alpha
|
|
24
24
|
*/
|
|
25
25
|
export declare const selectRestrictedInsightsMap: DashboardSelector<ObjRefMap<IUnavailableDashboardReference>>;
|
|
26
|
-
/**
|
|
27
|
-
* Maps the metrics and facts the current user is not allowed to read: the items limiting an attribute
|
|
28
|
-
* filter's values ("Filter values by") that drop out of its values request and of its configuration
|
|
29
|
-
* panel. Merely deleted ones are not included. Lookups match the type too, as a metric and a fact may
|
|
30
|
-
* share an identifier.
|
|
31
|
-
*
|
|
32
|
-
* @internal
|
|
33
|
-
*/
|
|
34
|
-
export declare function newRestrictedLimitingItemsMap(objects: ReadonlyArray<IUnavailableDashboardReference>): ObjRefMap<IUnavailableDashboardReference>;
|
|
35
|
-
/**
|
|
36
|
-
* Selects the metrics and facts limiting attribute filter values that the current user is not allowed to
|
|
37
|
-
* read, see {@link newRestrictedLimitingItemsMap}.
|
|
38
|
-
*
|
|
39
|
-
* @internal
|
|
40
|
-
*/
|
|
41
|
-
export declare const selectRestrictedLimitingItemsMap: DashboardSelector<ObjRefMap<IUnavailableDashboardReference>>;
|
|
42
26
|
/**
|
|
43
27
|
* Selects the refs a rich text widget references but the current user is not allowed to read. A
|
|
44
28
|
* reference that is merely deleted is not included — that keeps rendering today's error value,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"unavailableObjectsSelectors.d.ts","sourceRoot":"","sources":["../../../../src/model/store/unavailableObjects/unavailableObjectsSelectors.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,2BAA2B,CAAC;AAChF,OAAO,KAAK,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAE9D,OAAO,EAAE,KAAK,SAAS,EAA0B,MAAM,yCAAyC,CAAC;AAEjG,OAAO,EAAE,KAAK,iBAAiB,EAAuB,MAAM,aAAa,CAAC;AAW1E;;;;GAIG;AACH,eAAO,MAAM,wBAAwB,EAAE,iBAAiB,CAAC,8BAA8B,EAAE,CAC3D,CAAC;AAE/B;;;;;GAKG;AACH,eAAO,MAAM,iCAAiC,EAAE,CAC5C,IAAI,EAAE,UAAU,KACf,iBAAiB,CAAC,SAAS,CAAC,8BAA8B,CAAC,CAQ/D,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,2BAA2B,EAAE,iBAAiB,CAAC,SAAS,CAAC,8BAA8B,CAAC,CAMhG,CAAC;
|
|
1
|
+
{"version":3,"file":"unavailableObjectsSelectors.d.ts","sourceRoot":"","sources":["../../../../src/model/store/unavailableObjects/unavailableObjectsSelectors.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,2BAA2B,CAAC;AAChF,OAAO,KAAK,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAE9D,OAAO,EAAE,KAAK,SAAS,EAA0B,MAAM,yCAAyC,CAAC;AAEjG,OAAO,EAAE,KAAK,iBAAiB,EAAuB,MAAM,aAAa,CAAC;AAW1E;;;;GAIG;AACH,eAAO,MAAM,wBAAwB,EAAE,iBAAiB,CAAC,8BAA8B,EAAE,CAC3D,CAAC;AAE/B;;;;;GAKG;AACH,eAAO,MAAM,iCAAiC,EAAE,CAC5C,IAAI,EAAE,UAAU,KACf,iBAAiB,CAAC,SAAS,CAAC,8BAA8B,CAAC,CAQ/D,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,2BAA2B,EAAE,iBAAiB,CAAC,SAAS,CAAC,8BAA8B,CAAC,CAMhG,CAAC;AAQN;;;;;;GAMG;AACH,eAAO,MAAM,kCAAkC,EAAE,iBAAiB,CAAC,MAAM,EAAE,CAQ1E,CAAC"}
|
|
@@ -26,24 +26,6 @@ export const selectUnavailableObjectsMapByType = createMemoizedSelector((type) =
|
|
|
26
26
|
* @alpha
|
|
27
27
|
*/
|
|
28
28
|
export const selectRestrictedInsightsMap = createSelector(selectUnavailableObjects, (objects) => newMapForObjectWithRef(objects.filter((object) => object.type === "insight" && object.reason === "forbidden"), "insight"));
|
|
29
|
-
/**
|
|
30
|
-
* Maps the metrics and facts the current user is not allowed to read: the items limiting an attribute
|
|
31
|
-
* filter's values ("Filter values by") that drop out of its values request and of its configuration
|
|
32
|
-
* panel. Merely deleted ones are not included. Lookups match the type too, as a metric and a fact may
|
|
33
|
-
* share an identifier.
|
|
34
|
-
*
|
|
35
|
-
* @internal
|
|
36
|
-
*/
|
|
37
|
-
export function newRestrictedLimitingItemsMap(objects) {
|
|
38
|
-
return newMapForObjectWithRef(objects.filter((object) => object.reason === "forbidden" && (object.type === "measure" || object.type === "fact")), undefined, true);
|
|
39
|
-
}
|
|
40
|
-
/**
|
|
41
|
-
* Selects the metrics and facts limiting attribute filter values that the current user is not allowed to
|
|
42
|
-
* read, see {@link newRestrictedLimitingItemsMap}.
|
|
43
|
-
*
|
|
44
|
-
* @internal
|
|
45
|
-
*/
|
|
46
|
-
export const selectRestrictedLimitingItemsMap = createSelector(selectUnavailableObjects, newRestrictedLimitingItemsMap);
|
|
47
29
|
/**
|
|
48
30
|
* Object types a rich text widget can reference: `{metric/id}`, `{label/id}` and
|
|
49
31
|
* `{computed_attribute/id}`.
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { type IAttributeWithReferences } from "@gooddata/sdk-backend-spi";
|
|
2
|
+
import { type DashboardAttributeFilterItem, type IAttributeDisplayFormMetadataObject, type IDashboardAttributeFilterConfig, type ObjRef } from "@gooddata/sdk-model";
|
|
3
|
+
export type AttributeFilterType = "list" | "text";
|
|
4
|
+
export interface IAttributeFilterMatchSource {
|
|
5
|
+
readonly displayForm: ObjRef;
|
|
6
|
+
readonly localIdentifier?: string;
|
|
7
|
+
readonly type: AttributeFilterType;
|
|
8
|
+
}
|
|
9
|
+
export interface IFindAttributeFilterCounterpartOptions {
|
|
10
|
+
readonly sourceFilterConfigs?: IDashboardAttributeFilterConfig[];
|
|
11
|
+
readonly targetFilterConfigs?: IDashboardAttributeFilterConfig[];
|
|
12
|
+
readonly displayForms?: IAttributeDisplayFormMetadataObject[];
|
|
13
|
+
readonly attributesWithReferences?: IAttributeWithReferences[];
|
|
14
|
+
readonly allowListToText?: boolean;
|
|
15
|
+
readonly allowTextToList?: boolean;
|
|
16
|
+
}
|
|
17
|
+
export type AttributeFilterCounterpartResult = {
|
|
18
|
+
readonly status: "matched";
|
|
19
|
+
readonly counterpart: DashboardAttributeFilterItem;
|
|
20
|
+
} | {
|
|
21
|
+
readonly status: "notCompatible";
|
|
22
|
+
readonly counterpart: DashboardAttributeFilterItem;
|
|
23
|
+
} | {
|
|
24
|
+
readonly status: "notFound";
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* Finds the target dashboard attribute filter representing the same logical attribute.
|
|
28
|
+
*
|
|
29
|
+
* Matching is shared by drill-filter transfer validation and cross-tab filter synchronization.
|
|
30
|
+
* Same-type targets take precedence over list/text migrations. Display forms are compared directly
|
|
31
|
+
* and through display-as-label configuration. List filters also match through their owning attribute
|
|
32
|
+
* when metadata is available. Text filters match only the same display form: their values are label
|
|
33
|
+
* values, so another label of the same attribute is a different filter.
|
|
34
|
+
*
|
|
35
|
+
* @internal
|
|
36
|
+
*/
|
|
37
|
+
export declare function findAttributeFilterCounterpart(source: DashboardAttributeFilterItem | IAttributeFilterMatchSource, targets: DashboardAttributeFilterItem[], options?: IFindAttributeFilterCounterpartOptions): AttributeFilterCounterpartResult;
|
|
38
|
+
//# sourceMappingURL=attributeFilterMatching.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"attributeFilterMatching.d.ts","sourceRoot":"","sources":["../../../src/model/utils/attributeFilterMatching.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,wBAAwB,EAAE,MAAM,2BAA2B,CAAC;AAC1E,OAAO,EACH,KAAK,4BAA4B,EACjC,KAAK,mCAAmC,EACxC,KAAK,+BAA+B,EACpC,KAAK,MAAM,EAOd,MAAM,qBAAqB,CAAC;AAI7B,MAAM,MAAM,mBAAmB,GAAG,MAAM,GAAG,MAAM,CAAC;AAElD,MAAM,WAAW,2BAA2B;IACxC,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,eAAe,CAAC,EAAE,MAAM,CAAC;IAClC,QAAQ,CAAC,IAAI,EAAE,mBAAmB,CAAC;CACtC;AAED,MAAM,WAAW,sCAAsC;IACnD,QAAQ,CAAC,mBAAmB,CAAC,EAAE,+BAA+B,EAAE,CAAC;IACjE,QAAQ,CAAC,mBAAmB,CAAC,EAAE,+BAA+B,EAAE,CAAC;IACjE,QAAQ,CAAC,YAAY,CAAC,EAAE,mCAAmC,EAAE,CAAC;IAC9D,QAAQ,CAAC,wBAAwB,CAAC,EAAE,wBAAwB,EAAE,CAAC;IAC/D,QAAQ,CAAC,eAAe,CAAC,EAAE,OAAO,CAAC;IACnC,QAAQ,CAAC,eAAe,CAAC,EAAE,OAAO,CAAC;CACtC;AAED,MAAM,MAAM,gCAAgC,GACtC;IACI,QAAQ,CAAC,MAAM,EAAE,SAAS,CAAC;IAC3B,QAAQ,CAAC,WAAW,EAAE,4BAA4B,CAAC;CACtD,GACD;IACI,QAAQ,CAAC,MAAM,EAAE,eAAe,CAAC;IACjC,QAAQ,CAAC,WAAW,EAAE,4BAA4B,CAAC;CACtD,GACD;IACI,QAAQ,CAAC,MAAM,EAAE,UAAU,CAAC;CAC/B,CAAC;AAER;;;;;;;;;;GAUG;AACH,wBAAgB,8BAA8B,CAC1C,MAAM,EAAE,4BAA4B,GAAG,2BAA2B,EAClE,OAAO,EAAE,4BAA4B,EAAE,EACvC,OAAO,GAAE,sCAA2C,GACrD,gCAAgC,CAmDlC"}
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
// (C) 2026 GoodData Corporation
|
|
2
|
+
import { areObjRefsEqual, dashboardAttributeFilterItemDisplayForm, dashboardAttributeFilterItemLocalIdentifier, idRef, isDashboardAttributeFilter, uriRef, } from "@gooddata/sdk-model";
|
|
3
|
+
import { canApplyFilterTypeToTarget } from "./attributeFilterSelectionTypeCompatibility.js";
|
|
4
|
+
/**
|
|
5
|
+
* Finds the target dashboard attribute filter representing the same logical attribute.
|
|
6
|
+
*
|
|
7
|
+
* Matching is shared by drill-filter transfer validation and cross-tab filter synchronization.
|
|
8
|
+
* Same-type targets take precedence over list/text migrations. Display forms are compared directly
|
|
9
|
+
* and through display-as-label configuration. List filters also match through their owning attribute
|
|
10
|
+
* when metadata is available. Text filters match only the same display form: their values are label
|
|
11
|
+
* values, so another label of the same attribute is a different filter.
|
|
12
|
+
*
|
|
13
|
+
* @internal
|
|
14
|
+
*/
|
|
15
|
+
export function findAttributeFilterCounterpart(source, targets, options = {}) {
|
|
16
|
+
const sourceIdentity = sourceIdentityOf(source);
|
|
17
|
+
const sourceConfigs = options.sourceFilterConfigs ?? [];
|
|
18
|
+
const targetConfigs = options.targetFilterConfigs ?? [];
|
|
19
|
+
const displayForms = options.displayForms ?? [];
|
|
20
|
+
const sameType = targets.filter((target) => filterTypeOf(target) === sourceIdentity.type);
|
|
21
|
+
const sameTypeMatch = findIdentityMatch(sourceIdentity, sourceConfigs, sameType, targetConfigs, displayForms, options.attributesWithReferences,
|
|
22
|
+
// Text values are specific to one label. Attribute-level matching applies to list filters.
|
|
23
|
+
sourceIdentity.type === "list");
|
|
24
|
+
if (sameTypeMatch) {
|
|
25
|
+
return { status: "matched", counterpart: sameTypeMatch };
|
|
26
|
+
}
|
|
27
|
+
const allowsMigration = sourceIdentity.type === "list"
|
|
28
|
+
? (options.allowListToText ?? true)
|
|
29
|
+
: (options.allowTextToList ?? true);
|
|
30
|
+
if (!allowsMigration) {
|
|
31
|
+
return { status: "notFound" };
|
|
32
|
+
}
|
|
33
|
+
const crossType = targets.filter((target) => filterTypeOf(target) !== sourceIdentity.type);
|
|
34
|
+
const crossTypeMatch = findIdentityMatch(sourceIdentity, sourceConfigs, crossType, targetConfigs, displayForms, options.attributesWithReferences, true);
|
|
35
|
+
if (!crossTypeMatch) {
|
|
36
|
+
return { status: "notFound" };
|
|
37
|
+
}
|
|
38
|
+
const targetLocalIdentifier = dashboardAttributeFilterItemLocalIdentifier(crossTypeMatch);
|
|
39
|
+
if (!targetLocalIdentifier) {
|
|
40
|
+
return { status: "notFound" };
|
|
41
|
+
}
|
|
42
|
+
const targetSelectionType = targetFilterConfigsFor(targetConfigs, targetLocalIdentifier)?.selectionType;
|
|
43
|
+
return canApplyFilterTypeToTarget(sourceIdentity.type, targetSelectionType, crossTypeMatch)
|
|
44
|
+
? { status: "matched", counterpart: crossTypeMatch }
|
|
45
|
+
: { status: "notCompatible", counterpart: crossTypeMatch };
|
|
46
|
+
}
|
|
47
|
+
function sourceIdentityOf(source) {
|
|
48
|
+
if ("type" in source) {
|
|
49
|
+
return source;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
displayForm: dashboardAttributeFilterItemDisplayForm(source),
|
|
53
|
+
localIdentifier: dashboardAttributeFilterItemLocalIdentifier(source),
|
|
54
|
+
type: filterTypeOf(source),
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
function filterTypeOf(filter) {
|
|
58
|
+
return isDashboardAttributeFilter(filter) ? "list" : "text";
|
|
59
|
+
}
|
|
60
|
+
function findIdentityMatch(source, sourceConfigs, targets, targetConfigs, displayForms, attributesWithReferences, matchByOwningAttribute) {
|
|
61
|
+
const sourceRefs = filterDisplayForms(source.displayForm, source.localIdentifier, sourceConfigs);
|
|
62
|
+
return targets.find((target) => {
|
|
63
|
+
const targetRefs = filterDisplayForms(dashboardAttributeFilterItemDisplayForm(target), dashboardAttributeFilterItemLocalIdentifier(target), targetConfigs);
|
|
64
|
+
return sourceRefs.some((sourceRef) => targetRefs.some((targetRef) => sharesAttributeIdentity(sourceRef, targetRef, displayForms, attributesWithReferences, matchByOwningAttribute)));
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
function filterDisplayForms(displayForm, localIdentifier, configs) {
|
|
68
|
+
const displayAsLabel = targetFilterConfigsFor(configs, localIdentifier)?.displayAsLabel;
|
|
69
|
+
return displayAsLabel ? [displayForm, displayAsLabel] : [displayForm];
|
|
70
|
+
}
|
|
71
|
+
function targetFilterConfigsFor(configs, localIdentifier) {
|
|
72
|
+
return localIdentifier ? configs.find((config) => config.localIdentifier === localIdentifier) : undefined;
|
|
73
|
+
}
|
|
74
|
+
function sharesAttributeIdentity(left, right, displayForms, attributesWithReferences, matchByOwningAttribute) {
|
|
75
|
+
if (displayFormsEquivalent(left, right, displayForms)) {
|
|
76
|
+
return true;
|
|
77
|
+
}
|
|
78
|
+
if (!matchByOwningAttribute) {
|
|
79
|
+
return false;
|
|
80
|
+
}
|
|
81
|
+
const leftAttribute = attributeRefForDisplayForm(left, displayForms, attributesWithReferences);
|
|
82
|
+
const rightAttribute = attributeRefForDisplayForm(right, displayForms, attributesWithReferences);
|
|
83
|
+
return !!leftAttribute && !!rightAttribute && areObjRefsEqual(leftAttribute, rightAttribute);
|
|
84
|
+
}
|
|
85
|
+
function displayFormsEquivalent(left, right, displayForms) {
|
|
86
|
+
if (areObjRefsEqual(left, right)) {
|
|
87
|
+
return true;
|
|
88
|
+
}
|
|
89
|
+
const leftMetadata = findDisplayFormMetadata(left, displayForms);
|
|
90
|
+
const rightMetadata = findDisplayFormMetadata(right, displayForms);
|
|
91
|
+
return !!leftMetadata && !!rightMetadata && leftMetadata.id === rightMetadata.id;
|
|
92
|
+
}
|
|
93
|
+
function findDisplayFormMetadata(ref, displayForms) {
|
|
94
|
+
return displayForms.find((displayForm) => areObjRefsEqual(displayForm.ref, ref) ||
|
|
95
|
+
areObjRefsEqual(idRef(displayForm.id, "displayForm"), ref) ||
|
|
96
|
+
areObjRefsEqual(uriRef(displayForm.uri), ref));
|
|
97
|
+
}
|
|
98
|
+
function attributeRefForDisplayForm(displayForm, displayForms, attributesWithReferences) {
|
|
99
|
+
const metadata = findDisplayFormMetadata(displayForm, displayForms);
|
|
100
|
+
if (metadata?.attribute) {
|
|
101
|
+
return metadata.attribute;
|
|
102
|
+
}
|
|
103
|
+
for (const entry of attributesWithReferences ?? []) {
|
|
104
|
+
const ownsDisplayForm = entry.attribute.displayForms?.some((candidate) => displayFormsEquivalent(candidate.ref, displayForm, displayForms));
|
|
105
|
+
if (ownsDisplayForm) {
|
|
106
|
+
return entry.attribute.ref;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
return undefined;
|
|
110
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"attributeFilterSelectionTypeCompatibility.d.ts","sourceRoot":"","sources":["../../../src/model/utils/attributeFilterSelectionTypeCompatibility.ts"],"names":[],"mappings":"AAEA,OAAO,EACH,KAAK,4BAA4B,EACjC,KAAK,qCAAqC,EAG7C,MAAM,qBAAqB,CAAC;AAE7B;;;;;;;;GAQG;AACH,wBAAgB,uCAAuC,CACnD,UAAU,EAAE,MAAM,GAAG,MAAM,EAC3B,mBAAmB,EAAE,qCAAqC,GAAG,SAAS,EACtE,oBAAoB,GAAE,MAAM,GAAG,MAAM,GAAG,YAA2B,GACpE,OAAO,CAMT;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,0BAA0B,CACtC,kBAAkB,EAAE,MAAM,GAAG,MAAM,EACnC,mBAAmB,EAAE,qCAAqC,GAAG,SAAS,EACtE,YAAY,EAAE,4BAA4B,GAC3C,OAAO,CAMT"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type Dispatch, type SetStateAction } from "react";
|
|
2
2
|
import { type DateAttributeGranularity, type FilterContextItem, type IAlertAnomalyDetectionGranularity, type IAlertAnomalyDetectionSensitivity, type IAlertComparisonOperator, type IAlertRelativeArithmeticOperator, type IAlertRelativeOperator, type IAlertTriggerInterval, type IAlertTriggerMode, type IAttribute, type IAutomationMetadataObjectDefinition, type IAutomationRecipient, type IMeasure, type INotificationChannelIdentifier, type INotificationChannelMetadataObject, type IdentifierRef, type ParameterValue } from "@gooddata/sdk-model";
|
|
3
|
-
import { type IAutomationParameter } from "../../shared/automationFilters/automationParameters.js";
|
|
3
|
+
import { type IAutomationParameter, type IAvailableAutomationParameter } from "../../shared/automationFilters/automationParameters.js";
|
|
4
4
|
import { type AttributeValue } from "../hooks/useAttributeValuesFromExecResults.js";
|
|
5
5
|
import { type AlertAiOperator, type AlertAttribute, type AlertMetric, type AlertMetricComparator, type AlertMetricComparatorType, type IAlertingDialogProps } from "../types.js";
|
|
6
6
|
import { type IMeasureFormatMap } from "../utils/getters.js";
|
|
@@ -181,7 +181,7 @@ export interface IAlertFiltersContextValue {
|
|
|
181
181
|
/**
|
|
182
182
|
* Workspace parameters addable via the "+" menu. Empty when the feature is off.
|
|
183
183
|
*/
|
|
184
|
-
availableParameters:
|
|
184
|
+
availableParameters: IAvailableAutomationParameter[];
|
|
185
185
|
/**
|
|
186
186
|
* Sets a parameter's value.
|
|
187
187
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/automations/alerting/state/types.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,QAAQ,EAAE,KAAK,cAAc,EAAE,MAAM,OAAO,CAAC;AAE3D,OAAO,EACH,KAAK,wBAAwB,EAC7B,KAAK,iBAAiB,EACtB,KAAK,iCAAiC,EACtC,KAAK,iCAAiC,EACtC,KAAK,wBAAwB,EAC7B,KAAK,gCAAgC,EACrC,KAAK,sBAAsB,EAC3B,KAAK,qBAAqB,EAC1B,KAAK,iBAAiB,EACtB,KAAK,UAAU,EACf,KAAK,mCAAmC,EACxC,KAAK,oBAAoB,EACzB,KAAK,QAAQ,EACb,KAAK,8BAA8B,EACnC,KAAK,kCAAkC,EACvC,KAAK,aAAa,EAClB,KAAK,cAAc,EACtB,MAAM,qBAAqB,CAAC;AAE7B,OAAO,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/automations/alerting/state/types.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,QAAQ,EAAE,KAAK,cAAc,EAAE,MAAM,OAAO,CAAC;AAE3D,OAAO,EACH,KAAK,wBAAwB,EAC7B,KAAK,iBAAiB,EACtB,KAAK,iCAAiC,EACtC,KAAK,iCAAiC,EACtC,KAAK,wBAAwB,EAC7B,KAAK,gCAAgC,EACrC,KAAK,sBAAsB,EAC3B,KAAK,qBAAqB,EAC1B,KAAK,iBAAiB,EACtB,KAAK,UAAU,EACf,KAAK,mCAAmC,EACxC,KAAK,oBAAoB,EACzB,KAAK,QAAQ,EACb,KAAK,8BAA8B,EACnC,KAAK,kCAAkC,EACvC,KAAK,aAAa,EAClB,KAAK,cAAc,EACtB,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EACH,KAAK,oBAAoB,EACzB,KAAK,6BAA6B,EACrC,MAAM,wDAAwD,CAAC;AAChE,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,+CAA+C,CAAC;AACpF,O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OAAO,CAAC;CACzC;AAED;;;;;GAKG;AACH,MAAM,MAAM,wBAAwB,GAAG,IAAI,CACvC,oBAAoB,EACpB,iBAAiB,GAAG,eAAe,GAAG,iBAAiB,GAAG,eAAe,CAC5E,CAAC;AAEF;;;;GAIG;AACH,MAAM,WAAW,iBAAiB;IAC9B;;OAEG;IACH,QAAQ,EAAE,OAAO,CAAC;IAClB;;;OAGG;IACH,MAAM,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;CAC/B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useBuildAutomationsContext.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/automations/connectors/hooks/useBuildAutomationsContext.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useBuildAutomationsContext.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/automations/connectors/hooks/useBuildAutomationsContext.ts"],"names":[],"mappings":"AA6FA,OAAO,KAAK,EACR,wBAAwB,EAG3B,MAAM,sCAAsC,CAAC;AAI9C,wBAAgB,0BAA0B,IAAI,wBAAwB,CA8QrE"}
|
|
@@ -4,8 +4,8 @@ import { useDashboardSelector } from "../../../../model/react/DashboardStoreProv
|
|
|
4
4
|
import { selectAllCatalogAttributesMap, selectAllCatalogDisplayFormsMap, selectCatalogAttributesWithComputed, selectCatalogDateDatasets, selectCatalogMeasures, selectCatalogParameters, selectCatalogParametersIsLoaded, } from "../../../../model/store/catalog/catalogSelectors.js";
|
|
5
5
|
import { selectEnableAlertOncePerInterval, selectEnableAnomalyDetectionAlert, selectEnableAutomationEvaluationMode, selectEnableParameters, selectEnableSlideshowExports, selectEnableStringParameters, selectEnableTimezoneChange, selectExternalRecipient, selectIsWhiteLabeled, selectLocale, selectSeparators, selectSettings, selectTimezone, selectWeekStart, } from "../../../../model/store/config/configSelectors.js";
|
|
6
6
|
import { selectEntitlementMinimumRecurrenceMinutes, selectMaxAutomationRecipients, } from "../../../../model/store/entitlements/entitlementsSelectors.js";
|
|
7
|
-
import { selectAllDashboardFiltersWithoutCrossFiltering, selectAutomationAvailableDashboardFilters, selectAutomationCommonDateFilterId, selectAutomationDefaultSelectedFilters, selectAutomationFiltersByTab, selectDashboardHiddenFilters, selectDashboardLockedFilters, } from "../../../../model/store/filtering/dashboardFilterSelectors.js";
|
|
8
|
-
import {
|
|
7
|
+
import { selectAllDashboardFiltersWithoutCrossFiltering, selectAutomationAvailableDashboardFilters, selectAutomationCommonDateFilterId, selectAutomationDefaultSelectedFilters, selectAutomationFiltersByTab, selectDashboardHiddenFilters, selectDashboardLockedFilters, selectRestrictedDashboardFilterLocalIdentifiers, selectRestrictedDashboardFilterLocalIdentifiersByTab, } from "../../../../model/store/filtering/dashboardFilterSelectors.js";
|
|
8
|
+
import { isDashboardFilterCopyRestricted } from "../../../../model/store/filtering/restrictedFilterUtils.js";
|
|
9
9
|
import { selectDashboardTimezoneConfig, selectEffectiveDashboardTimezone, selectPersistedDashboardFilterContextDateFilterConfig, selectScheduledExportTimezone, } from "../../../../model/store/meta/metaSelectors.js";
|
|
10
10
|
import { selectCanCreateAutomation, selectCanManageWorkspace, selectCanUseAiAssistant, } from "../../../../model/store/permissions/permissionsSelectors.js";
|
|
11
11
|
import { selectAttributeFilterConfigsOverrides, selectAttributeFilterConfigsOverridesByTab, selectAttributeFilterConfigsSelectionTypeMap, selectAttributeFilterConfigsSelectionTypeMapByTab, } from "../../../../model/store/tabs/attributeFilterConfigs/attributeFilterConfigsSelectors.js";
|
|
@@ -98,7 +98,11 @@ export function useBuildAutomationsContext() {
|
|
|
98
98
|
const widgetLocalIdToTabIdMap = useDashboardSelector(selectWidgetLocalIdToTabIdMap);
|
|
99
99
|
const getCatalogAttributeByRef = useCallback((ref) => allCatalogAttributesMap.get(ref), [allCatalogAttributesMap]);
|
|
100
100
|
const getAttributeFilterDisplayForm = useCallback((displayForm) => attrFilterDisplayFormsMap.get(displayForm) ?? catalogDisplayFormsMap.get(displayForm), [attrFilterDisplayFormsMap, catalogDisplayFormsMap]);
|
|
101
|
-
const
|
|
101
|
+
const restrictedFilterLocalIdentifiers = useDashboardSelector(selectRestrictedDashboardFilterLocalIdentifiers);
|
|
102
|
+
const restrictedFilterLocalIdentifiersByTab = useDashboardSelector(selectRestrictedDashboardFilterLocalIdentifiersByTab);
|
|
103
|
+
const isFilterRestricted = useCallback((filter, tabId) => isDashboardFilterCopyRestricted(filter, tabId === undefined
|
|
104
|
+
? restrictedFilterLocalIdentifiers
|
|
105
|
+
: (restrictedFilterLocalIdentifiersByTab[tabId] ?? new Set()), unavailableObjects), [restrictedFilterLocalIdentifiers, restrictedFilterLocalIdentifiersByTab, unavailableObjects]);
|
|
102
106
|
const widgetExistsByRef = useCallback((ref) => !!ref && widgetsMap.get(ref) !== undefined, [widgetsMap]);
|
|
103
107
|
const dateFilterConfig = useMemo(() => ({
|
|
104
108
|
availableGranularities,
|
|
@@ -101,8 +101,12 @@ export interface IAutomationsContextValue {
|
|
|
101
101
|
hiddenFilters: FilterContextItem[];
|
|
102
102
|
/** Dashboard's applied filters with cross-filtering filters removed; from selectAllDashboardFiltersWithoutCrossFiltering. */
|
|
103
103
|
availableFilters: FilterContextItem[];
|
|
104
|
-
/**
|
|
105
|
-
|
|
104
|
+
/**
|
|
105
|
+
* Whether a filter of the given tab (the active one when omitted) is restricted: it uses an object the
|
|
106
|
+
* user may not read, or its parent filter is restricted. Such a filter is kept in the automation, but
|
|
107
|
+
* the filter bar reports it as a count instead of rendering it.
|
|
108
|
+
*/
|
|
109
|
+
isFilterRestricted: (filter: FilterContextItem, tabId?: string) => boolean;
|
|
106
110
|
/** Automation-available filters structured per dashboard tab, for whole-dashboard automations on a tabbed dashboard; from selectAutomationFiltersByTab. */
|
|
107
111
|
automationFiltersByTab: IAutomationFiltersTab[];
|
|
108
112
|
/** Automation-available filters with empty (all-values) filters removed, except restricted ones; preselects filters for a new automation. From selectAutomationDefaultSelectedFilters. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AutomationsContext.d.ts","sourceRoot":"","sources":["../../../../src/presentation/automations/contexts/AutomationsContext.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EACR,qCAAqC,EACrC,qBAAqB,EACrB,iBAAiB,EACjB,mCAAmC,EACnC,iBAAiB,EACjB,qBAAqB,EACrB,mBAAmB,EACnB,eAAe,EACf,+BAA+B,EAC/B,0BAA0B,EAC1B,8BAA8B,EAC9B,kCAAkC,EAClC,mBAAmB,EACnB,wBAAwB,EACxB,WAAW,EACX,SAAS,EACT,KAAK,EACL,MAAM,EACN,SAAS,EACZ,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,0BAA0B,CAAC;AAEzE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,yCAAyC,CAAC;AAErF;;;;;GAKG;AACH,MAAM,WAAW,4BAA4B;IACzC,6IAA6I;IAC7I,sBAAsB,EAAE,qBAAqB,EAAE,CAAC;IAChD,6JAA6J;IAC7J,iBAAiB,EAAE,wBAAwB,CAAC;IAC5C;;;;;OAKG;IACH,sBAAsB,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,qBAAqB,EAAE,CAAC;IACnE;;;;;OAKG;IACH,gBAAgB,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,wBAAwB,GAAG,SAAS,CAAC;CAC7E;AAED;;;;;GAKG;AACH,MAAM,WAAW,sBAAsB;IACnC,8EAA8E;IAC9E,OAAO,EAAE,OAAO,CAAC;IACjB,sFAAsF;IACtF,uBAAuB,EAAE,OAAO,CAAC;IACjC,qEAAqE;IACrE,OAAO,EAAE,wBAAwB,EAAE,CAAC;IACpC;;;OAGG;IACH,eAAe,EAAE,OAAO,CAAC;IACzB,kGAAkG;IAClG,wBAAwB,EAAE,MAAM,CAAC,MAAM,EAAE,mBAAmB,EAAE,CAAC,CAAC;CACnE;AAED;;;;;GAKG;AACH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CAAC;IACvC,6FAA6F;IAC7F,aAAa,EAAE,iBAAiB,EAAE,CAAC;IACnC,iFAAiF;IACjF,aAAa,EAAE,iBAAiB,EAAE,CAAC;IACnC,6HAA6H;IAC7H,gBAAgB,EAAE,iBAAiB,EAAE,CAAC;IACtC
|
|
1
|
+
{"version":3,"file":"AutomationsContext.d.ts","sourceRoot":"","sources":["../../../../src/presentation/automations/contexts/AutomationsContext.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EACR,qCAAqC,EACrC,qBAAqB,EACrB,iBAAiB,EACjB,mCAAmC,EACnC,iBAAiB,EACjB,qBAAqB,EACrB,mBAAmB,EACnB,eAAe,EACf,+BAA+B,EAC/B,0BAA0B,EAC1B,8BAA8B,EAC9B,kCAAkC,EAClC,mBAAmB,EACnB,wBAAwB,EACxB,WAAW,EACX,SAAS,EACT,KAAK,EACL,MAAM,EACN,SAAS,EACZ,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,0BAA0B,CAAC;AAEzE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,yCAAyC,CAAC;AAErF;;;;;GAKG;AACH,MAAM,WAAW,4BAA4B;IACzC,6IAA6I;IAC7I,sBAAsB,EAAE,qBAAqB,EAAE,CAAC;IAChD,6JAA6J;IAC7J,iBAAiB,EAAE,wBAAwB,CAAC;IAC5C;;;;;OAKG;IACH,sBAAsB,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,qBAAqB,EAAE,CAAC;IACnE;;;;;OAKG;IACH,gBAAgB,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,wBAAwB,GAAG,SAAS,CAAC;CAC7E;AAED;;;;;GAKG;AACH,MAAM,WAAW,sBAAsB;IACnC,8EAA8E;IAC9E,OAAO,EAAE,OAAO,CAAC;IACjB,sFAAsF;IACtF,uBAAuB,EAAE,OAAO,CAAC;IACjC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AAqB,IAAI,wBAAwB,CAWhE"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type Dispatch, type SetStateAction } from "react";
|
|
2
2
|
import { type DashboardAttachmentType, type FilterContextItem, type IAutomationMetadataObjectDefinition, type IAutomationRecipient, type IDashboardExportParameter, type IExportDefinitionVisualizationObjectSettings, type IdentifierRef, type ParameterValue, type WidgetAttachmentType } from "@gooddata/sdk-model";
|
|
3
3
|
import { type IAutomationFiltersTab } from "../../../../model/store/filtering/types.js";
|
|
4
|
-
import { type IAutomationParameter } from "../../shared/automationFilters/automationParameters.js";
|
|
4
|
+
import { type IAutomationParameter, type IAvailableAutomationParameter } from "../../shared/automationFilters/automationParameters.js";
|
|
5
5
|
import { type IScheduleTimezoneSelection, type IScheduledEmailDialogProps } from "../types.js";
|
|
6
6
|
/**
|
|
7
7
|
* The scheduled-export dialog's edit draft: the automation being edited, its baseline, the derived
|
|
@@ -226,7 +226,7 @@ export interface IScheduledExportFiltersContextValue {
|
|
|
226
226
|
/**
|
|
227
227
|
* Per-tab workspace parameters addable via the "+" menu.
|
|
228
228
|
*/
|
|
229
|
-
availableParametersByTab: Record<string,
|
|
229
|
+
availableParametersByTab: Record<string, IAvailableAutomationParameter[]>;
|
|
230
230
|
/**
|
|
231
231
|
* The tab the flat (non-tabbed) UI edits; undefined for multi-tab dashboards or when no
|
|
232
232
|
* parameter context applies.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/automations/scheduledEmail/state/types.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,QAAQ,EAAE,KAAK,cAAc,EAAE,MAAM,OAAO,CAAC;AAE3D,OAAO,EACH,KAAK,uBAAuB,EAC5B,KAAK,iBAAiB,EACtB,KAAK,mCAAmC,EACxC,KAAK,oBAAoB,EACzB,KAAK,yBAAyB,EAC9B,KAAK,4CAA4C,EACjD,KAAK,aAAa,EAClB,KAAK,cAAc,EACnB,KAAK,oBAAoB,EAC5B,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,KAAK,qBAAqB,EAAE,MAAM,4CAA4C,CAAC;AACxF,OAAO,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/automations/scheduledEmail/state/types.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,QAAQ,EAAE,KAAK,cAAc,EAAE,MAAM,OAAO,CAAC;AAE3D,OAAO,EACH,KAAK,uBAAuB,EAC5B,KAAK,iBAAiB,EACtB,KAAK,mCAAmC,EACxC,KAAK,oBAAoB,EACzB,KAAK,yBAAyB,EAC9B,KAAK,4CAA4C,EACjD,KAAK,aAAa,EAClB,KAAK,cAAc,EACnB,KAAK,oBAAoB,EAC5B,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,KAAK,qBAAqB,EAAE,MAAM,4CAA4C,CAAC;AACxF,OAAO,EACH,KAAK,oBAAoB,EACzB,KAAK,6BAA6B,EACrC,MAAM,wDAAwD,CAAC;AAChE,OAAO,EAAE,KAAK,0BAA0B,EAAE,KAAK,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAE/F;;;;;;;GAOG;AACH,MAAM,WAAW,iCAAiC;IAC9C;;OAEG;IACH,gBAAgB,EAAE,mCAAmC,CAAC;IACtD;;OAEG;IACH,kBAAkB,EAAE,mCAAmC,CAAC;IACxD;;OAEG;IACH,SAAS,EAAE,IAAI,CAAC;IAChB;;OAEG;IACH,WAAW,EAAE,OAAO,CAAC;IACrB;;OAEG;IACH,YAAY,EAAE,OAAO,CAAC;IACtB;;OAEG;IACH,cAAc,EAAE,OAAO,CAAC;IACxB;;OAEG;IACH,gBAAgB,EAAE,OAAO,CAAC;IAC1B;;OAEG;IACH,wBAAwB,EAAE,OAAO,CAAC;IAClC;;OAEG;IACH,yBAAyB,EAAE,OAAO,CAAC;IACnC;;OAEG;IACH,yBAAyB,EAAE,0BAA0B,CAAC;IACtD;;OAEG;IACH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G;IACH,6BAA6B,EAAE,OAAO,CAAC;CAC1C;AAED;;;;;GAKG;AACH,MAAM,WAAW,2BAA2B;IACxC;;OAEG;IACH,mBAAmB,EAAE,KAAK,CAAC,uBAAuB,GAAG,oBAAoB,CAAC,CAAC;IAC3E;;OAEG;IACH,yBAAyB,EAAE,OAAO,CAAC;IACnC;;OAEG;IACH,mBAAmB,EAAE,OAAO,CAAC;IAC7B;;OAEG;IACH,oBAAoB,EAAE,OAAO,CAAC;IAC9B;;OAEG;IACH,YAAY,EAAE,4CAA4C,CAAC;IAC3D;;;OAGG;IACH,WAAW,EAAE,4CAA4C,CAAC;IAC1D;;OAEG;IACH,WAAW,EAAE,4CAA4C,CAAC;IAC1D;;OAEG;IACH,cAAc,EAAE,4CAA4C,CAAC;IAC7D;;OAEG;IACH,iBAAiB,EAAE;QAAE,IAAI,EAAE,MAAM,GAAG,SAAS,CAAC;QAAC,UAAU,EAAE,MAAM,GAAG,SAAS,CAAC;QAAC,GAAG,EAAE,MAAM,GAAG,SAAS,CAAA;KAAE,CAAC;CAC5G;AAED;;;;;GAKG;AACH,MAAM,MAAM,+BAA+B,GAAG,IAAI,CAC9C,0BAA0B,EAC1B,iBAAiB,GAAG,eAAe,GAAG,iBAAiB,GAAG,eAAe,CAC5E,CAAC;AAEF;;;;GAIG;AACH,MAAM,WAAW,wBAAwB;IACrC;;OAEG;IACH,wBAAwB,EAAE,MAAM,IAAI,CAAC;IACrC;;OAEG;IACH,sBAAsB,EAAE,OAAO,CAAC;IAChC;;OAEG;IACH,kBAAkB,EAAE,MAAM,GAAG,SAAS,CAAC;CAC1C"}
|
|
@@ -2,7 +2,7 @@ import { type ComponentType, type KeyboardEvent, type ReactNode, type Ref } from
|
|
|
2
2
|
import { type DashboardAttachmentType, type FilterContextItem, type IAutomationMetadataObjectDefinition, type IExportDefinitionVisualizationObjectSettings, type IExportTemplate, type IdentifierRef, type ParameterValue, type WeekStart, type WidgetAttachmentType } from "@gooddata/sdk-model";
|
|
3
3
|
import { type ISlotProps } from "@gooddata/sdk-ui-kit";
|
|
4
4
|
import { type IAutomationFiltersTab } from "../../../model/store/filtering/types.js";
|
|
5
|
-
import { type IAutomationParameter } from "../shared/automationFilters/automationParameters.js";
|
|
5
|
+
import { type IAutomationParameter, type IAvailableAutomationParameter } from "../shared/automationFilters/automationParameters.js";
|
|
6
6
|
import { type IAutomationDialogActionBarProps, type IAutomationDialogDestinationProps, type IAutomationDialogFiltersProps, type IAutomationDialogHeaderProps, type IAutomationDialogRecipientsProps } from "../shared/slots/types.js";
|
|
7
7
|
import { type IAutomationDialogCallbacks, type IAutomationManagementDialogCallbacks } from "../shared/types.js";
|
|
8
8
|
/**
|
|
@@ -92,7 +92,7 @@ export interface IScheduledEmailDialogFiltersProps extends IAutomationDialogFilt
|
|
|
92
92
|
/**
|
|
93
93
|
* Addable workspace parameters per tab (by-tab mode).
|
|
94
94
|
*/
|
|
95
|
-
availableParametersByTab?: Record<string,
|
|
95
|
+
availableParametersByTab?: Record<string, IAvailableAutomationParameter[]>;
|
|
96
96
|
/**
|
|
97
97
|
* Called when a parameter is added in a tab section (by-tab mode).
|
|
98
98
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/presentation/automations/scheduledEmail/types.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,aAAa,EAAE,KAAK,aAAa,EAAE,KAAK,SAAS,EAAE,KAAK,GAAG,EAAE,MAAM,OAAO,CAAC;AAEzF,OAAO,EACH,KAAK,uBAAuB,EAC5B,KAAK,iBAAiB,EACtB,KAAK,mCAAmC,EACxC,KAAK,4CAA4C,EACjD,KAAK,eAAe,EACpB,KAAK,aAAa,EAClB,KAAK,cAAc,EACnB,KAAK,SAAS,EACd,KAAK,oBAAoB,EAC5B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAEvD,OAAO,EAAE,KAAK,qBAAqB,EAAE,MAAM,yCAAyC,CAAC;AACrF,OAAO,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/presentation/automations/scheduledEmail/types.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,aAAa,EAAE,KAAK,aAAa,EAAE,KAAK,SAAS,EAAE,KAAK,GAAG,EAAE,MAAM,OAAO,CAAC;AAEzF,OAAO,EACH,KAAK,uBAAuB,EAC5B,KAAK,iBAAiB,EACtB,KAAK,mCAAmC,EACxC,KAAK,4CAA4C,EACjD,KAAK,eAAe,EACpB,KAAK,aAAa,EAClB,KAAK,cAAc,EACnB,KAAK,SAAS,EACd,KAAK,oBAAoB,EAC5B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAEvD,OAAO,EAAE,KAAK,qBAAqB,EAAE,MAAM,yCAAyC,CAAC;AACrF,OAAO,EACH,KAAK,oBAAoB,EACzB,KAAK,6BAA6B,EACrC,MAAM,qDAAqD,CAAC;AAC7D,OAAO,EACH,KAAK,+BAA+B,EACpC,KAAK,iCAAiC,EACtC,KAAK,6BAA6B,EAClC,KAAK,4BAA4B,EACjC,KAAK,gCAAgC,EACxC,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACH,KAAK,0BAA0B,EAC/B,KAAK,oCAAoC,EAC5C,MAAM,oBAAoB,CAAC;AAM5B;;;;;;;GAOG;AACH,MAAM,WAAW,0BAA2B,SAAQ,0BAA0B;IAC1E;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;CACvB;AAED;;;;GAIG;AACH,MAAM,WAAW,gCAAiC,SAAQ,4BAA4B;IAClF;;OAEG;IACH,cAAc,EAAE,CAAC,KAAK,EAAE,aAAa,KAAK,IAAI,CAAC;IAE/C;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;CACvB;AAED;;;;;GAKG;AACH,MAAM,MAAM,sCA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
|
52
52
|
export declare function reconstructAutomationParametersFromExportParameters(stored: IDashboardExportParameter[], dashboardParameters: IDashboardParameter[], catalog: IParameterMetadataObject[], isStringParametersEnabled: boolean): IAutomationParameter[];
|
|
53
|
+
/**
|
|
54
|
+
* A workspace parameter the "+" menu offers; `isFromDashboard` marks the ones with a control on
|
|
55
|
+
* the dashboard tab so the menu can list them first, `tags` drive the menu's tag groups.
|
|
56
|
+
*
|
|
57
|
+
* @internal
|
|
58
|
+
*/
|
|
59
|
+
export interface IAvailableAutomationParameter extends IAutomationParameter {
|
|
60
|
+
isFromDashboard: boolean;
|
|
61
|
+
tags: string[];
|
|
62
|
+
}
|
|
53
63
|
/**
|
|
54
64
|
* Dashboard-`hidden` and `readonly` parameters are dropped — once added they would derive back to
|
|
55
65
|
* an invisible or locked (undeletable) parameter. Catalog STRING parameters are dropped too while
|
|
@@ -57,7 +67,7 @@ export declare function reconstructAutomationParametersFromExportParameters(stor
|
|
|
57
67
|
*
|
|
58
68
|
* @internal
|
|
59
69
|
*/
|
|
60
|
-
export declare function availableAutomationParameters(catalog: IParameterMetadataObject[], selected: IAutomationParameter[], dashboardParameters: IDashboardParameter[] | undefined, widgetParameterValues: IInsightParameterValue[] | undefined, isStringParametersEnabled: boolean):
|
|
70
|
+
export declare function availableAutomationParameters(catalog: IParameterMetadataObject[], selected: IAutomationParameter[], dashboardParameters: IDashboardParameter[] | undefined, widgetParameterValues: IInsightParameterValue[] | undefined, isStringParametersEnabled: boolean): IAvailableAutomationParameter[];
|
|
61
71
|
/**
|
|
62
72
|
* Returns a copy of the automation with `alert.execution.parameters` replaced. No-op when the
|
|
63
73
|
* automation carries no alert.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"automationParameters.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/automations/shared/automationFilters/automationParameters.ts"],"names":[],"mappings":"AAEA,OAAO,EACH,KAAK,sBAAsB,EAE3B,KAAK,mCAAmC,EACxC,KAAK,yBAAyB,EAC9B,KAAK,mBAAmB,EACxB,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,KAAK,wBAAwB,EAC7B,KAAK,aAAa,EAClB,KAAK,cAAc,EAItB,MAAM,qBAAqB,CAAC;AAQ7B;;;;;;GAMG;AACH,MAAM,WAAW,oBAAoB;IACjC;;OAEG;IACH,GAAG,EAAE,aAAa,CAAC;IAEnB;;;OAGG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,KAAK,EAAE,cAAc,CAAC;IAEtB;;OAEG;IACH,IAAI,EAAE,sBAAsB,CAAC;IAE7B;;OAEG;IACH,UAAU,EAAE,oBAAoB,CAAC;CACpC;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,yCAAyC,CACrD,MAAM,EAAE,sBAAsB,EAAE,EAChC,mBAAmB,EAAE,mBAAmB,EAAE,EAC1C,OAAO,EAAE,wBAAwB,EAAE,EACnC,yBAAyB,EAAE,OAAO,EAClC,oBAAoB,UAAQ,GAC7B,oBAAoB,EAAE,CA8BxB;AAED;;;;;;;GAOG;AACH,wBAAgB,mDAAmD,CAC/D,MAAM,EAAE,yBAAyB,EAAE,EACnC,mBAAmB,EAAE,mBAAmB,EAAE,EAC1C,OAAO,EAAE,wBAAwB,EAAE,EACnC,yBAAyB,EAAE,OAAO,GACnC,oBAAoB,EAAE,CAOxB;AAED;;;;;;GAMG;AACH,wBAAgB,6BAA6B,CACzC,OAAO,EAAE,wBAAwB,EAAE,EACnC,QAAQ,EAAE,oBAAoB,EAAE,EAChC,mBAAmB,EAAE,mBAAmB,EAAE,YAAK,EAC/C,qBAAqB,EAAE,sBAAsB,EAAE,YAAK,EACpD,yBAAyB,EAAE,OAAO,GACnC,
|
|
1
|
+
{"version":3,"file":"automationParameters.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/automations/shared/automationFilters/automationParameters.ts"],"names":[],"mappings":"AAEA,OAAO,EACH,KAAK,sBAAsB,EAE3B,KAAK,mCAAmC,EACxC,KAAK,yBAAy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,wBAAgB,2BAA2B,CACvC,UAAU,EAAE,mCAAmC,EAC/C,UAAU,EAAE,sBAAsB,EAAE,GACrC,mCAAmC,CAcrC;AAED;;;;;;GAMG;AACH,wBAAgB,uBAAuB,CACnC,MAAM,EAAE,sBAAsB,EAAE,GAAG,SAAS,EAC5C,OAAO,EAAE,wBAAwB,EAAE,GACpC,OAAO,CAMT;AAED;;;;GAIG;AACH,wBAAgB,wBAAwB,CACpC,MAAM,EAAE,sBAAsB,EAAE,EAChC,OAAO,EAAE,wBAAwB,EAAE,GACpC,sBAAsB,EAAE,CAG1B;AAED;;;;;;GAMG;AACH,wBAAgB,sCAAsC,CAClD,UAAU,EAAE,oBAAoB,EAAE,GACnC,yBAAyB,EAAE,CAO7B;AAED;;;;;;GAMG;AACH,wBAAgB,0BAA0B,CACtC,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,oBAAoB,EAAE,CAAC,EACvD,WAAW,EAAE,OAAO,GACrB,MAAM,CAAC,MAAM,EAAE,yBAAyB,EAAE,CAAC,GAAG,SAAS,CASzD;AAED;;;;;GAKG;AACH,wBAAgB,2BAA2B,CAAC,gBAAgB,EAAE,OAAO,EAAE,YAAY,UAAQ,GAAG,OAAO,CAEpG"}
|
|
@@ -79,6 +79,8 @@ export function availableAutomationParameters(catalog, selected, dashboardParame
|
|
|
79
79
|
value: sanitizeParameterValue(definition, effectiveValue),
|
|
80
80
|
mode: DashboardParameterModeValues.ACTIVE,
|
|
81
81
|
definition,
|
|
82
|
+
isFromDashboard: dashboardParameter !== undefined,
|
|
83
|
+
tags: workspaceParameter.tags ?? [],
|
|
82
84
|
});
|
|
83
85
|
}
|
|
84
86
|
return result;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type FilterContextItem, type ICatalogAttribute, type ICatalogDateDataset, type IDashboardAttributeFilterConfig, type IDashboardDateFilterConfigItem, type IdentifierRef, type ObjRef, type ParameterValue } from "@gooddata/sdk-model";
|
|
2
2
|
import { type OverlayPositionType } from "@gooddata/sdk-ui-kit";
|
|
3
3
|
import type { IAutomationFiltersTab } from "../../../../../model/store/filtering/types.js";
|
|
4
|
-
import { type IAutomationParameter } from "../automationParameters.js";
|
|
4
|
+
import { type IAutomationParameter, type IAvailableAutomationParameter } from "../automationParameters.js";
|
|
5
5
|
export interface IAutomationFiltersProps {
|
|
6
6
|
id?: string;
|
|
7
7
|
filters: FilterContextItem[] | undefined;
|
|
@@ -52,7 +52,7 @@ export interface IAutomationFiltersSelectProps {
|
|
|
52
52
|
/**
|
|
53
53
|
* Workspace parameters addable via the "+" menu (catalog minus the selected set).
|
|
54
54
|
*/
|
|
55
|
-
availableParameters?:
|
|
55
|
+
availableParameters?: IAvailableAutomationParameter[];
|
|
56
56
|
/**
|
|
57
57
|
* Called when a parameter is added from the "+" menu.
|
|
58
58
|
*/
|
|
@@ -72,7 +72,7 @@ export interface IAutomationFiltersSelectProps {
|
|
|
72
72
|
/**
|
|
73
73
|
* Addable workspace parameters per tab. Used in tab-rendering mode.
|
|
74
74
|
*/
|
|
75
|
-
availableParametersByTab?: Record<string,
|
|
75
|
+
availableParametersByTab?: Record<string, IAvailableAutomationParameter[]>;
|
|
76
76
|
/**
|
|
77
77
|
* Called when a parameter is added from a tab section's "+" menu.
|
|
78
78
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AutomationFiltersSelect.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/automations/shared/automationFilters/components/AutomationFiltersSelect.tsx"],"names":[],"mappings":"AAMA,OAAO,EACH,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,EAGxB,KAAK,+BAA+B,EACpC,KAAK,8BAA8B,EAEnC,KAAK,aAAa,EAClB,KAAK,MAAM,EACX,KAAK,cAAc,EAYtB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAGH,KAAK,mBAAmB,EAO3B,MAAM,sBAAsB,CAAC;AAE9B,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,+CAA+C,CAAC;
|
|
1
|
+
{"version":3,"file":"AutomationFiltersSelect.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/automations/shared/automationFilters/components/AutomationFiltersSelect.tsx"],"names":[],"mappings":"AAMA,OAAO,EACH,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,EAGxB,KAAK,+BAA+B,EACpC,KAAK,8BAA8B,EAEnC,KAAK,aAAa,EAClB,KAAK,MAAM,EACX,KAAK,cAAc,EAYtB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAGH,KAAK,mBAAmB,EAO3B,MAAM,sBAAsB,CAAC;AAE9B,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,+CAA+C,CAAC;AAO3F,OAAO,EAAE,KAAK,oBAAoB,EAAE,KAAK,6BAA6B,EAAE,MAAM,4BAA4B,CAAC;AAY3G,MAAM,WAAW,uBAAuB;IACpC,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,OAAO,EAAE,iBAAiB,EAAE,GAAG,SAAS,CAAC;IACzC,gBAAgB,EAAE,+BAA+B,EAAE,CAAC;IACpD,WAAW,EAAE,8BAA8B,EAAE,CAAC;IAC9C,UAAU,EAAE,iBAAiB,EAAE,CAAC;IAChC,YAAY,EAAE,mBAAmB,EAAE,CAAC;IACpC,kBAAkB,EAAE,CAAC,MAAM,EAAE,iBAAiB,GAAG,SAAS,KAAK,IAAI,CAAC;IACpE,kBAAkB,EAAE,CAAC,MAAM,EAAE,iBAAiB,KAAK,IAAI,CAAC;IACxD,eAAe,EAAE,CACb,WAAW,EAAE,MAAM,EACnB,UAAU,EAAE,iBAAiB,EAAE,EAC/B,YAAY,EAAE,mBAAmB,EAAE,KAClC,IAAI,CAAC;IACV,YAAY,EAAE,OAAO,CAAC;IACtB,wBAAwB,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IACnD,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,iBAAiB,CAA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;OAEG;IACH,iBAAiB,CAAC,EAAE,CAAC,GAAG,EAAE,aAAa,KAAK,IAAI,CAAC;IACjD;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,oBAAoB,EAAE,CAAC,CAAC;IACzD;;OAEG;IACH,wBAAwB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,6BAA6B,EAAE,CAAC,CAAC;IAC3E;;OAEG;IACH,mBAAmB,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,aAAa,KAAK,IAAI,CAAC;IAClE;;OAEG;IACH,sBAAsB,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,aAAa,EAAE,KAAK,EAAE,cAAc,KAAK,IAAI,CAAC;IAC5F;;OAEG;IACH,sBAAsB,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,aAAa,KAAK,IAAI,CAAC;IACrE;;OAEG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC/B;AA2ED,wBAAgB,uBAAuB,CAAC,EACpC,gBAAqB,EACrB,eAAoB,EACpB,eAAe,EACf,qBAAqB,EACrB,YAAY,EACZ,oBAAoB,EACpB,iBAAiB,EACjB,mBAAmB,EACnB,SAAiB,EACjB,cAAsB,EACtB,kBAA0B,EAC1B,YAAY,EACZ,kBAAkB,EAClB,oBAAoB,EACpB,UAAe,EACf,mBAAwB,EACxB,cAAc,EACd,iBAAiB,EACjB,iBAAiB,EACjB,eAAe,EACf,wBAAwB,EACxB,mBAAmB,EACnB,sBAAsB,EACtB,sBAAsB,EACtB,iBAAiB,GACpB,EAAE,6BAA6B,2CA6d/B"}
|
package/esm/presentation/automations/shared/automationFilters/components/AutomationFiltersSelect.js
CHANGED
|
@@ -5,7 +5,7 @@ import { FormattedMessage, useIntl } from "react-intl";
|
|
|
5
5
|
import { areObjRefsEqual, dashboardFilterLocalIdentifier, dashboardFilterObjRef, isCatalogAttribute, isCatalogDateDataset, isCatalogMeasure, isDashboardAttributeFilter, isDashboardAttributeFilterItem, isDashboardCommonDateFilter, isDashboardDateFilter, isDashboardMeasureValueFilter, } from "@gooddata/sdk-model";
|
|
6
6
|
import { Bubble, BubbleHoverTrigger, Typography, UiButton, UiIconButton, UiTooltip, isActionKey, useIdPrefixed, } from "@gooddata/sdk-ui-kit";
|
|
7
7
|
import { AUTOMATION_FILTERS_DIALOG_ID, AUTOMATION_FILTERS_DIALOG_TITLE_ID, AUTOMATION_FILTERS_GROUP_LABEL_ID, } from "../../../../constants/automations.js";
|
|
8
|
-
import { AttributesDropdown
|
|
8
|
+
import { AttributesDropdown } from "../../../../filterBar/attributeFilter/addAttributeFilter/AttributesDropdown.js";
|
|
9
9
|
import { useAutomationFilters, useAutomationFiltersByTab } from "../useAutomationFilters.js";
|
|
10
10
|
import { useParameterAnnouncements } from "../useParameterAnnouncements.js";
|
|
11
11
|
import { AutomationAttributeFilter } from "./AutomationAttributeFilter.js";
|
|
@@ -80,11 +80,6 @@ export function AutomationFiltersSelect({ availableFilters = [], selectedFilters
|
|
|
80
80
|
}
|
|
81
81
|
};
|
|
82
82
|
const automationFilterSelectTooltipId = useIdPrefixed("automation-filter-select-tooltip");
|
|
83
|
-
const parameterDropdownItems = availableParameters.map((parameter) => ({
|
|
84
|
-
type: "parameter",
|
|
85
|
-
ref: parameter.ref,
|
|
86
|
-
title: parameter.title,
|
|
87
|
-
}));
|
|
88
83
|
// Counting availableFilters would overcount: it keeps the restricted filters, which the dropdown
|
|
89
84
|
// never offers, so the button would stay enabled over an empty dropdown.
|
|
90
85
|
const isAddButtonDisabled = !flatFiltersData.hasFiltersToAdd && availableParameters.length === 0;
|
|
@@ -110,11 +105,6 @@ export function AutomationFiltersSelect({ availableFilters = [], selectedFilters
|
|
|
110
105
|
} }), _jsx(Bubble, { className: "bubble-primary", alignPoints: [{ align: "bc tc" }], children: isExpanded ? (_jsx(FormattedMessage, { id: "dialogs.automation.filters.showLess" })) : (_jsx(FormattedMessage, { id: "dialogs.automation.filters.showAll" })) })] })) : (_jsx(FormattedMessage, { id: "dialogs.schedule.email.filters", values: { count: chipCount } })) })), _jsxs("div", { className: "gd-automation-filters", children: [showAllFilters ? (_jsxs(_Fragment, { children: [_jsx(AutomationCheckboxOrNote, { isDashboardAutomation: isDashboardAutomation, storeFilters: storeFilters, handleStoreFiltersChange: handleStoreFiltersChange, handleKeyDown: handleKeyDown, automationFilterSelectTooltipId: automationFilterSelectTooltipId, parametersEnabled: parametersEnabled }), _jsx(Divider, {})] })) : null, _jsxs("div", { className: `gd-automation-filters__wrapper${storeFilters || !isDashboardAutomation ? "" : " gd-automation-filters__wrapper--disabled"}`, children: [disableFilters ? _jsx("div", { className: "gd-automation-filters__overlay" }) : null, shouldRenderByTab && tabFiltersData.processedFiltersByTab ? (_jsx("div", { className: "gd-automation-filters__list gd-automation-filters__list--tabbed", role: "group", "aria-labelledby": AUTOMATION_FILTERS_GROUP_LABEL_ID, ref: filterGroupRef, onBlur: makeFilterGroupUnfocusable, children: tabFiltersData.processedFiltersByTab.map((tab, index) => {
|
|
111
106
|
const tabParameters = parametersByTab?.[tab.tabId] ?? [];
|
|
112
107
|
const tabAvailableParameters = availableParametersByTab?.[tab.tabId] ?? [];
|
|
113
|
-
const tabParameterDropdownItems = tabAvailableParameters.map((parameter) => ({
|
|
114
|
-
type: "parameter",
|
|
115
|
-
ref: parameter.ref,
|
|
116
|
-
title: parameter.title,
|
|
117
|
-
}));
|
|
118
108
|
const isTabAddButtonDisabled = !tab.hasFiltersToAdd && tabAvailableParameters.length === 0;
|
|
119
109
|
const tabTooltipText = isTabAddButtonDisabled
|
|
120
110
|
? tooltipTextValues.addDisabled
|
|
@@ -129,7 +119,7 @@ export function AutomationFiltersSelect({ availableFilters = [], selectedFilters
|
|
|
129
119
|
// Add button for each tab section
|
|
130
120
|
addFilterButton: _jsx(AttributesDropdown, { id: `${AUTOMATION_FILTERS_DIALOG_ID}-${tab.tabId}`, onClose: () => { }, onSelect: (value) => {
|
|
131
121
|
tabFiltersData.handleTabFilterAdd(tab.tabId, value, tab.attributes, tab.dateDatasets);
|
|
132
|
-
}, parameters:
|
|
122
|
+
}, parameters: tabAvailableParameters, onParameterSelect: (ref) => {
|
|
133
123
|
announceParameterAdded(tabAvailableParameters, ref);
|
|
134
124
|
onParameterAddByTab?.(tab.tabId, ref);
|
|
135
125
|
}, attributes: tab.attributes, dateDatasets: tab.dateDatasets, measures: tab.measures, openOnInit: false, overlayPositionType: overlayPositionType, className: "gd-automation-filters__dropdown s-automation-filters-add-filter-dropdown", getCustomItemTitle: (item) => getCatalogItemCustomTitle(item, availableFilters, tab.dateConfigs), accessibilityConfig: {
|
|
@@ -169,7 +159,7 @@ export function AutomationFiltersSelect({ availableFilters = [], selectedFilters
|
|
|
169
159
|
].slice(0, showAllFilters || isExpanded ? undefined : COLLAPSED_FILTERS_COUNT), isExpanded || !isExpandable ? (_jsx(AttributesDropdown, { id: AUTOMATION_FILTERS_DIALOG_ID, onClose: () => { }, onSelect: (value) => {
|
|
170
160
|
handleAddFilter(value, attributes, dateDatasets);
|
|
171
161
|
setIsExpanded(true);
|
|
172
|
-
}, parameters:
|
|
162
|
+
}, parameters: availableParameters, onParameterSelect: (ref) => {
|
|
173
163
|
announceParameterAdded(availableParameters, ref);
|
|
174
164
|
onParameterAdd?.(ref);
|
|
175
165
|
setIsExpanded(true);
|
|
@@ -7,5 +7,5 @@ export declare function useDefaultSelectedFiltersForExistingAutomation(automatio
|
|
|
7
7
|
*
|
|
8
8
|
* @internal
|
|
9
9
|
*/
|
|
10
|
-
export declare function getDefaultSelectedFiltersByTabForExistingAutomation(automationToEdit: IAutomationMetadataObject | undefined, availableDashboardFiltersByTab?: Record<string, FilterContextItem[]>, commonDateFilterId?: string, isFilterRestricted?: (filter: FilterContextItem) => boolean): Record<string, FilterContextItem[]> | undefined;
|
|
10
|
+
export declare function getDefaultSelectedFiltersByTabForExistingAutomation(automationToEdit: IAutomationMetadataObject | undefined, availableDashboardFiltersByTab?: Record<string, FilterContextItem[]>, commonDateFilterId?: string, isFilterRestricted?: (filter: FilterContextItem, tabId: string) => boolean): Record<string, FilterContextItem[]> | undefined;
|
|
11
11
|
//# sourceMappingURL=useDefaultSelectedFiltersForExistingAutomation.d.ts.map
|