@gooddata/sdk-ui-dashboard 11.71.0-alpha.1 → 11.71.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/NOTICE +47 -47
- 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 +9 -1
- package/esm/_staging/dashboard/dashboardFilterConverter.d.ts.map +1 -1
- package/esm/_staging/dashboard/dashboardFilterConverter.js +13 -5
- package/esm/_staging/dashboard/parameterizedDateFilters.d.ts +1 -6
- package/esm/_staging/dashboard/parameterizedDateFilters.d.ts.map +1 -1
- package/esm/_staging/dashboard/parameterizedDateFilters.js +1 -13
- package/esm/_staging/dateFilterConfig/periodPresets.d.ts +11 -0
- package/esm/_staging/dateFilterConfig/periodPresets.d.ts.map +1 -0
- package/esm/_staging/dateFilterConfig/periodPresets.js +15 -0
- package/esm/_staging/sharedHooks/useFiltersNamings.d.ts.map +1 -1
- package/esm/_staging/sharedHooks/useFiltersNamings.js +11 -3
- package/esm/index.d.ts +2 -2
- package/esm/index.d.ts.map +1 -1
- package/esm/index.js +1 -1
- package/esm/kdaDialog/components/KdaSummaryHeadline.d.ts.map +1 -1
- package/esm/kdaDialog/components/KdaSummaryHeadline.js +3 -1
- package/esm/kdaDialog/components/bars/DateBar.js +1 -1
- package/esm/kdaDialog/composition/KeyDriversPanel.d.ts.map +1 -1
- package/esm/kdaDialog/composition/KeyDriversPanel.js +4 -1
- package/esm/kdaDialog/utils.d.ts +6 -1
- package/esm/kdaDialog/utils.d.ts.map +1 -1
- package/esm/kdaDialog/utils.js +7 -2
- package/esm/model/commandHandlers/dashboard/changeDashboardDefinitionHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/dashboard/changeDashboardDefinitionHandler.js +0 -5
- package/esm/model/commandHandlers/dashboard/common/filterViews.d.ts.map +1 -1
- package/esm/model/commandHandlers/dashboard/common/filterViews.js +10 -21
- package/esm/model/commandHandlers/dashboard/common/stateInitializers.d.ts.map +1 -1
- package/esm/model/commandHandlers/dashboard/common/stateInitializers.js +6 -7
- 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/dashboard/initializeDashboardHandler/loadDashboardParameters.d.ts +1 -2
- package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/loadDashboardParameters.d.ts.map +1 -1
- package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/loadDashboardParameters.js +1 -2
- package/esm/model/commandHandlers/drill/drillToDashboardHandler.js +4 -6
- package/esm/model/commandHandlers/filterContext/changeFilterContextSelectionHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/filterContext/changeFilterContextSelectionHandler.js +62 -19
- 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/tabSync/tabSyncRules.d.ts.map +1 -1
- package/esm/model/commandHandlers/filterContext/tabSync/tabSyncRules.js +8 -3
- package/esm/model/react/useWidgetFilters.js +3 -6
- package/esm/model/store/config/configSelectors.d.ts +6 -0
- package/esm/model/store/config/configSelectors.d.ts.map +1 -1
- package/esm/model/store/config/configSelectors.js +8 -0
- package/esm/model/store/tabs/filterContext/filterContextReducers.d.ts +23 -1
- package/esm/model/store/tabs/filterContext/filterContextReducers.d.ts.map +1 -1
- package/esm/model/store/tabs/filterContext/filterContextReducers.js +17 -14
- package/esm/model/store/tabs/filterContext/filterContextUtils.d.ts.map +1 -1
- package/esm/model/store/tabs/filterContext/filterContextUtils.js +1 -5
- package/esm/model/store/tabs/filterContext/filterSync.d.ts.map +1 -1
- package/esm/model/store/tabs/filterContext/filterSync.js +3 -3
- package/esm/presentation/automations/connectors/AlertingConnector.d.ts.map +1 -1
- package/esm/presentation/automations/connectors/AlertingConnector.js +6 -0
- package/esm/presentation/automations/connectors/ScheduledEmailConnector.d.ts.map +1 -1
- package/esm/presentation/automations/connectors/ScheduledEmailConnector.js +6 -0
- package/esm/presentation/automations/connectors/hooks/useAutomationManagementEditRouting.d.ts +1 -0
- package/esm/presentation/automations/connectors/hooks/useAutomationManagementEditRouting.d.ts.map +1 -1
- package/esm/presentation/automations/connectors/hooks/useAutomationManagementEditRouting.js +56 -2
- package/esm/presentation/automations/connectors/hooks/useBuildAutomationsContext.d.ts.map +1 -1
- package/esm/presentation/automations/connectors/hooks/useBuildAutomationsContext.js +4 -1
- package/esm/presentation/automations/connectors/hooks/useParameterizedDateFilterBlocksAutomation.d.ts +10 -0
- package/esm/presentation/automations/connectors/hooks/useParameterizedDateFilterBlocksAutomation.d.ts.map +1 -0
- package/esm/presentation/automations/connectors/hooks/useParameterizedDateFilterBlocksAutomation.js +20 -0
- package/esm/presentation/automations/contexts/AutomationsContext.d.ts +2 -0
- package/esm/presentation/automations/contexts/AutomationsContext.d.ts.map +1 -1
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailManagementDialog/DefaultScheduledEmailManagementDialogContent.d.ts.map +1 -1
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailManagementDialog/DefaultScheduledEmailManagementDialogContent.js +5 -3
- package/esm/presentation/automations/shared/components/ParameterizedDateFilterNotSupportedDialog.d.ts +12 -0
- package/esm/presentation/automations/shared/components/ParameterizedDateFilterNotSupportedDialog.d.ts.map +1 -0
- package/esm/presentation/automations/shared/components/ParameterizedDateFilterNotSupportedDialog.js +31 -0
- package/esm/presentation/constants/automations.d.ts +1 -0
- package/esm/presentation/constants/automations.d.ts.map +1 -1
- package/esm/presentation/constants/automations.js +19 -0
- package/esm/presentation/dashboard/components/DashboardInner.d.ts.map +1 -1
- package/esm/presentation/dashboard/components/DashboardInner.js +18 -10
- package/esm/presentation/filterBar/dateFilter/DefaultDashboardDateFilter.d.ts.map +1 -1
- package/esm/presentation/filterBar/dateFilter/DefaultDashboardDateFilter.js +10 -7
- package/esm/presentation/filterBar/filterBar/hooks/useResetFiltersButton.d.ts.map +1 -1
- package/esm/presentation/filterBar/filterBar/hooks/useResetFiltersButton.js +5 -1
- package/esm/presentation/localization/bundles/de-DE.localization-bundle.d.ts +13 -0
- package/esm/presentation/localization/bundles/de-DE.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/de-DE.localization-bundle.js +20 -7
- package/esm/presentation/localization/bundles/en-AU.localization-bundle.d.ts +13 -0
- package/esm/presentation/localization/bundles/en-AU.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/en-AU.localization-bundle.js +13 -0
- package/esm/presentation/localization/bundles/en-GB.localization-bundle.d.ts +13 -0
- package/esm/presentation/localization/bundles/en-GB.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/en-GB.localization-bundle.js +15 -2
- package/esm/presentation/localization/bundles/en-US.localization-bundle.d.ts +20 -0
- package/esm/presentation/localization/bundles/en-US.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/en-US.localization-bundle.js +20 -0
- package/esm/presentation/localization/bundles/es-419.localization-bundle.d.ts +13 -0
- package/esm/presentation/localization/bundles/es-419.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/es-419.localization-bundle.js +14 -1
- package/esm/presentation/localization/bundles/es-ES.localization-bundle.d.ts +13 -0
- package/esm/presentation/localization/bundles/es-ES.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/es-ES.localization-bundle.js +15 -2
- package/esm/presentation/localization/bundles/fi-FI.localization-bundle.d.ts +13 -0
- package/esm/presentation/localization/bundles/fi-FI.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/fi-FI.localization-bundle.js +13 -0
- package/esm/presentation/localization/bundles/fr-CA.localization-bundle.d.ts +13 -0
- package/esm/presentation/localization/bundles/fr-CA.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/fr-CA.localization-bundle.js +16 -3
- package/esm/presentation/localization/bundles/fr-FR.localization-bundle.d.ts +13 -0
- package/esm/presentation/localization/bundles/fr-FR.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/fr-FR.localization-bundle.js +16 -3
- package/esm/presentation/localization/bundles/id-ID.localization-bundle.d.ts +13 -0
- package/esm/presentation/localization/bundles/id-ID.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/id-ID.localization-bundle.js +13 -0
- package/esm/presentation/localization/bundles/it-IT.localization-bundle.d.ts +13 -0
- package/esm/presentation/localization/bundles/it-IT.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/it-IT.localization-bundle.js +17 -4
- package/esm/presentation/localization/bundles/ja-JP.localization-bundle.d.ts +13 -0
- package/esm/presentation/localization/bundles/ja-JP.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/ja-JP.localization-bundle.js +13 -0
- package/esm/presentation/localization/bundles/ko-KR.localization-bundle.d.ts +13 -0
- package/esm/presentation/localization/bundles/ko-KR.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/ko-KR.localization-bundle.js +14 -1
- package/esm/presentation/localization/bundles/nl-NL.localization-bundle.d.ts +13 -0
- package/esm/presentation/localization/bundles/nl-NL.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/nl-NL.localization-bundle.js +17 -4
- package/esm/presentation/localization/bundles/pl-PL.localization-bundle.d.ts +13 -0
- package/esm/presentation/localization/bundles/pl-PL.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/pl-PL.localization-bundle.js +13 -0
- package/esm/presentation/localization/bundles/pt-BR.localization-bundle.d.ts +13 -0
- package/esm/presentation/localization/bundles/pt-BR.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/pt-BR.localization-bundle.js +15 -2
- package/esm/presentation/localization/bundles/pt-PT.localization-bundle.d.ts +13 -0
- package/esm/presentation/localization/bundles/pt-PT.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/pt-PT.localization-bundle.js +20 -7
- package/esm/presentation/localization/bundles/ru-RU.localization-bundle.d.ts +13 -0
- package/esm/presentation/localization/bundles/ru-RU.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/ru-RU.localization-bundle.js +13 -0
- package/esm/presentation/localization/bundles/sl-SI.localization-bundle.d.ts +13 -0
- package/esm/presentation/localization/bundles/sl-SI.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/sl-SI.localization-bundle.js +13 -0
- package/esm/presentation/localization/bundles/th-TH.localization-bundle.d.ts +13 -0
- package/esm/presentation/localization/bundles/th-TH.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/th-TH.localization-bundle.js +13 -0
- package/esm/presentation/localization/bundles/tr-TR.localization-bundle.d.ts +13 -0
- package/esm/presentation/localization/bundles/tr-TR.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/tr-TR.localization-bundle.js +13 -0
- package/esm/presentation/localization/bundles/uk-UA.localization-bundle.d.ts +13 -0
- package/esm/presentation/localization/bundles/uk-UA.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/uk-UA.localization-bundle.js +13 -0
- package/esm/presentation/localization/bundles/vi-VN.localization-bundle.d.ts +13 -0
- package/esm/presentation/localization/bundles/vi-VN.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/vi-VN.localization-bundle.js +13 -0
- package/esm/presentation/localization/bundles/zh-HK.localization-bundle.d.ts +13 -0
- package/esm/presentation/localization/bundles/zh-HK.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/zh-HK.localization-bundle.js +22 -9
- package/esm/presentation/localization/bundles/zh-Hans.localization-bundle.d.ts +13 -0
- package/esm/presentation/localization/bundles/zh-Hans.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/zh-Hans.localization-bundle.js +14 -1
- package/esm/presentation/localization/bundles/zh-Hant.localization-bundle.d.ts +13 -0
- package/esm/presentation/localization/bundles/zh-Hant.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/zh-Hant.localization-bundle.js +17 -4
- package/esm/presentation/widget/insight/configuration/DrillFilters/drillFiltersConfigUtils.d.ts.map +1 -1
- package/esm/presentation/widget/insight/configuration/DrillFilters/drillFiltersConfigUtils.js +3 -3
- package/esm/presentation/widget/insight/configuration/DrillFilters/optionMappings/mapDashboardFilterToOption.d.ts.map +1 -1
- package/esm/presentation/widget/insight/configuration/DrillFilters/optionMappings/mapDashboardFilterToOption.js +5 -4
- package/esm/sdk-ui-dashboard.d.ts +39 -2
- package/package.json +23 -23
- package/styles/css/kdaDialog.css +7 -0
- package/styles/css/kdaDialog.css.map +1 -1
- package/styles/css/main.css +17 -0
- package/styles/css/main.css.map +1 -1
- package/styles/scss/kdaDialog.scss +11 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AlertingConnector.d.ts","sourceRoot":"","sources":["../../../../src/presentation/automations/connectors/AlertingConnector.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"AlertingConnector.d.ts","sourceRoot":"","sources":["../../../../src/presentation/automations/connectors/AlertingConnector.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AA+B1D;;;;;;GAMG;AACH,wBAAgB,2BAA2B,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,SAAS,CAAA;CAAE,GAAG,YAAY,CAQ/F;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,iBAAiB,IAAI,YAAY,GAAG,IAAI,CAMvD"}
|
|
@@ -8,11 +8,13 @@ import { AlertingDialogContextProvider } from "../contexts/AlertingDialogContext
|
|
|
8
8
|
import { AlertingManagementDialogContextProvider } from "../contexts/AlertingManagementDialogContext.js";
|
|
9
9
|
import { AutomationsContextProvider } from "../contexts/AutomationsContext.js";
|
|
10
10
|
import { AbsoluteGranularityDateFilterNotSupportedDialog } from "../shared/components/AbsoluteGranularityDateFilterNotSupportedDialog.js";
|
|
11
|
+
import { ParameterizedDateFilterNotSupportedDialog } from "../shared/components/ParameterizedDateFilterNotSupportedDialog.js";
|
|
11
12
|
import { useAbsoluteGranularityDateFilterBlocksAutomation } from "./hooks/useAbsoluteGranularityDateFilterBlocksAutomation.js";
|
|
12
13
|
import { useAutomationManagementEditRouting } from "./hooks/useAutomationManagementEditRouting.js";
|
|
13
14
|
import { useBuildAlertingDialogContext } from "./hooks/useBuildAlertingDialogContext.js";
|
|
14
15
|
import { useBuildAlertingManagementDialogContext } from "./hooks/useBuildAlertingManagementDialogContext.js";
|
|
15
16
|
import { useBuildAutomationsContext } from "./hooks/useBuildAutomationsContext.js";
|
|
17
|
+
import { useParameterizedDateFilterBlocksAutomation } from "./hooks/useParameterizedDateFilterBlocksAutomation.js";
|
|
16
18
|
/**
|
|
17
19
|
* Provides AutomationsContext to its children, built from dashboard Redux state, with the
|
|
18
20
|
* resolved context decorator mounted directly inside — so everything in the alerting dialog
|
|
@@ -75,9 +77,13 @@ function AlertingConnectorWithData({ alerts }) {
|
|
|
75
77
|
*/
|
|
76
78
|
function AlertingCreateEditConnector(props) {
|
|
77
79
|
const isBlocked = useAbsoluteGranularityDateFilterBlocksAutomation(false);
|
|
80
|
+
const isBlockedByPeriod = useParameterizedDateFilterBlocksAutomation(false, props.widget);
|
|
78
81
|
if (isBlocked) {
|
|
79
82
|
return (_jsx(AbsoluteGranularityDateFilterNotSupportedDialog, { automationType: "alert", onCancel: props.onCancel }));
|
|
80
83
|
}
|
|
84
|
+
if (isBlockedByPeriod) {
|
|
85
|
+
return _jsx(ParameterizedDateFilterNotSupportedDialog, { automationType: "alert", onCancel: props.onCancel });
|
|
86
|
+
}
|
|
81
87
|
return _jsx(AlertingCreateEditDialogConnector, { ...props });
|
|
82
88
|
}
|
|
83
89
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScheduledEmailConnector.d.ts","sourceRoot":"","sources":["../../../../src/presentation/automations/connectors/ScheduledEmailConnector.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,SAAS,EAAW,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"ScheduledEmailConnector.d.ts","sourceRoot":"","sources":["../../../../src/presentation/automations/connectors/ScheduledEmailConnector.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,SAAS,EAAW,MAAM,OAAO,CAAC;AA2CnE;;;;;;GAMG;AACH,wBAAgB,iCAAiC,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,SAAS,CAAA;CAAE,GAAG,YAAY,CAQrG;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,uBAAuB,IAAI,YAAY,GAAG,IAAI,CAM7D"}
|
|
@@ -13,12 +13,14 @@ import { ScheduledEmailManagementDialogContextProvider } from "../contexts/Sched
|
|
|
13
13
|
import { ScheduledEmailDialog } from "../scheduledEmail/ScheduledEmailDialog.js";
|
|
14
14
|
import { ScheduledEmailManagementDialog } from "../scheduledEmail/ScheduledEmailManagementDialog.js";
|
|
15
15
|
import { AbsoluteGranularityDateFilterNotSupportedDialog } from "../shared/components/AbsoluteGranularityDateFilterNotSupportedDialog.js";
|
|
16
|
+
import { ParameterizedDateFilterNotSupportedDialog } from "../shared/components/ParameterizedDateFilterNotSupportedDialog.js";
|
|
16
17
|
import { getAppliedDashboardFilters } from "../shared/filters/index.js";
|
|
17
18
|
import { useAbsoluteGranularityDateFilterBlocksAutomation } from "./hooks/useAbsoluteGranularityDateFilterBlocksAutomation.js";
|
|
18
19
|
import { useAutomationManagementEditRouting } from "./hooks/useAutomationManagementEditRouting.js";
|
|
19
20
|
import { useBuildAutomationsContext } from "./hooks/useBuildAutomationsContext.js";
|
|
20
21
|
import { useBuildScheduledEmailDialogContext } from "./hooks/useBuildScheduledEmailDialogContext.js";
|
|
21
22
|
import { useBuildScheduledEmailManagementDialogContext } from "./hooks/useBuildScheduledEmailManagementDialogContext.js";
|
|
23
|
+
import { useParameterizedDateFilterBlocksAutomation } from "./hooks/useParameterizedDateFilterBlocksAutomation.js";
|
|
22
24
|
import { useWidgetAutomationFilters } from "./hooks/useWidgetAutomationFilters.js";
|
|
23
25
|
/**
|
|
24
26
|
* Provides AutomationsContext to its children, built from dashboard Redux state, with the
|
|
@@ -93,9 +95,13 @@ function ScheduledEmailConnectorWithData({ se }) {
|
|
|
93
95
|
*/
|
|
94
96
|
function ScheduledEmailCreateEditConnector(props) {
|
|
95
97
|
const isBlocked = useAbsoluteGranularityDateFilterBlocksAutomation(!props.widget);
|
|
98
|
+
const isBlockedByPeriod = useParameterizedDateFilterBlocksAutomation(!props.widget, props.widget);
|
|
96
99
|
if (isBlocked) {
|
|
97
100
|
return (_jsx(AbsoluteGranularityDateFilterNotSupportedDialog, { automationType: "scheduledExport", onCancel: props.onCancel }));
|
|
98
101
|
}
|
|
102
|
+
if (isBlockedByPeriod) {
|
|
103
|
+
return (_jsx(ParameterizedDateFilterNotSupportedDialog, { automationType: "scheduledExport", onCancel: props.onCancel }));
|
|
104
|
+
}
|
|
99
105
|
return _jsx(ScheduledEmailCreateEditDialogConnector, { ...props });
|
|
100
106
|
}
|
|
101
107
|
/**
|
package/esm/presentation/automations/connectors/hooks/useAutomationManagementEditRouting.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ import { type IAutomationMetadataObject } from "@gooddata/sdk-model";
|
|
|
3
3
|
* Handles cross-dashboard edit routing for automation management dialogs.
|
|
4
4
|
*
|
|
5
5
|
* When the automation belongs to a different dashboard, navigates there directly.
|
|
6
|
+
* In embedded mode, embed params of the current route (e.g. hideControl) are carried over to the target URL.
|
|
6
7
|
* Otherwise falls back to `onLocalEdit`.
|
|
7
8
|
*
|
|
8
9
|
* @internal
|
package/esm/presentation/automations/connectors/hooks/useAutomationManagementEditRouting.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useAutomationManagementEditRouting.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/automations/connectors/hooks/useAutomationManagementEditRouting.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,yBAAyB,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"useAutomationManagementEditRouting.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/automations/connectors/hooks/useAutomationManagementEditRouting.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,yBAAyB,EAAE,MAAM,qBAAqB,CAAC;AA2DrE;;;;;;;;GAQG;AACH,wBAAgB,kCAAkC,CAC9C,WAAW,EAAE,CAAC,UAAU,EAAE,yBAAyB,KAAK,IAAI,GAC7D,CAAC,UAAU,EAAE,yBAAyB,KAAK,IAAI,CA4BjD"}
|
|
@@ -4,10 +4,62 @@ import { buildAutomationUrl, navigate, useWorkspaceStrict } from "@gooddata/sdk-
|
|
|
4
4
|
import { useDashboardSelector } from "../../../../model/react/DashboardStoreProvider.js";
|
|
5
5
|
import { selectExternalRecipient, selectIsEmbedded } from "../../../../model/store/config/configSelectors.js";
|
|
6
6
|
import { selectDashboardId } from "../../../../model/store/meta/metaSelectors.js";
|
|
7
|
+
/**
|
|
8
|
+
* Mirrors QUERY_PARAM_WHITELIST of gdc-dashboards-runtime without aiBuilder and conversationId.
|
|
9
|
+
* The runtime reads these from the route, so they must survive cross-dashboard navigation.
|
|
10
|
+
*/
|
|
11
|
+
const EMBED_QUERY_PARAMS = new Set([
|
|
12
|
+
"initialcontent",
|
|
13
|
+
"hidecontrol",
|
|
14
|
+
"redirect-drill-url-to-message",
|
|
15
|
+
"shownavigation",
|
|
16
|
+
"sidebarcollapsed",
|
|
17
|
+
"sidebarwidth",
|
|
18
|
+
"exportid",
|
|
19
|
+
"includeobjectswithtags",
|
|
20
|
+
"excludeobjectswithtags",
|
|
21
|
+
"preventdefault",
|
|
22
|
+
"disableadexploremode",
|
|
23
|
+
"disableadeditmode",
|
|
24
|
+
"hidefilters",
|
|
25
|
+
"showembedbutton",
|
|
26
|
+
"crossfiltering",
|
|
27
|
+
"filtersreset",
|
|
28
|
+
"filterssave",
|
|
29
|
+
"showassistant",
|
|
30
|
+
"hideassistanttrigger",
|
|
31
|
+
"apitokenauthentication",
|
|
32
|
+
"externalproviderid",
|
|
33
|
+
]);
|
|
34
|
+
function getEmbedQueryString(hash) {
|
|
35
|
+
const queryStart = hash.indexOf("?");
|
|
36
|
+
if (queryStart < 0) {
|
|
37
|
+
return "";
|
|
38
|
+
}
|
|
39
|
+
return hash
|
|
40
|
+
.slice(queryStart + 1)
|
|
41
|
+
.split("&")
|
|
42
|
+
.filter((part) => {
|
|
43
|
+
if (!part) {
|
|
44
|
+
return false;
|
|
45
|
+
}
|
|
46
|
+
const rawKey = part.split("=")[0];
|
|
47
|
+
let key = rawKey;
|
|
48
|
+
try {
|
|
49
|
+
key = decodeURIComponent(rawKey);
|
|
50
|
+
}
|
|
51
|
+
catch {
|
|
52
|
+
// keep the raw key
|
|
53
|
+
}
|
|
54
|
+
return EMBED_QUERY_PARAMS.has(key.toLowerCase());
|
|
55
|
+
})
|
|
56
|
+
.join("&");
|
|
57
|
+
}
|
|
7
58
|
/**
|
|
8
59
|
* Handles cross-dashboard edit routing for automation management dialogs.
|
|
9
60
|
*
|
|
10
61
|
* When the automation belongs to a different dashboard, navigates there directly.
|
|
62
|
+
* In embedded mode, embed params of the current route (e.g. hideControl) are carried over to the target URL.
|
|
11
63
|
* Otherwise falls back to `onLocalEdit`.
|
|
12
64
|
*
|
|
13
65
|
* @internal
|
|
@@ -20,7 +72,7 @@ export function useAutomationManagementEditRouting(onLocalEdit) {
|
|
|
20
72
|
return useCallback((automation) => {
|
|
21
73
|
const targetDashboardId = automation.dashboard?.id;
|
|
22
74
|
if (targetDashboardId && targetDashboardId !== dashboardId) {
|
|
23
|
-
|
|
75
|
+
const url = buildAutomationUrl({
|
|
24
76
|
workspaceId: workspace,
|
|
25
77
|
dashboardId: targetDashboardId,
|
|
26
78
|
automationId: automation.id,
|
|
@@ -28,7 +80,9 @@ export function useAutomationManagementEditRouting(onLocalEdit) {
|
|
|
28
80
|
queryParams: externalRecipientOverride
|
|
29
81
|
? { recipient: externalRecipientOverride }
|
|
30
82
|
: undefined,
|
|
31
|
-
})
|
|
83
|
+
});
|
|
84
|
+
const embedQuery = isEmbedded ? getEmbedQueryString(window.location.hash) : "";
|
|
85
|
+
navigate(url && embedQuery ? url + (url.includes("?") ? "&" : "?") + embedQuery : url);
|
|
32
86
|
return;
|
|
33
87
|
}
|
|
34
88
|
onLocalEdit(automation);
|
|
@@ -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":"AA+FA,OAAO,KAAK,EACR,wBAAwB,EAG3B,MAAM,sCAAsC,CAAC;AAI9C,wBAAgB,0BAA0B,IAAI,wBAAwB,CAwRrE"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { useCallback, useMemo } from "react";
|
|
3
3
|
import { useDashboardSelector } from "../../../../model/react/DashboardStoreProvider.js";
|
|
4
4
|
import { selectAllCatalogAttributesMap, selectAllCatalogDisplayFormsMap, selectCatalogAttributesWithComputed, selectCatalogDateDatasets, selectCatalogMeasures, selectCatalogParameters, selectCatalogParametersIsLoaded, } from "../../../../model/store/catalog/catalogSelectors.js";
|
|
5
|
-
import { selectEnableAlertOncePerInterval, selectEnableAnomalyDetectionAlert, selectEnableAutomationEvaluationMode, selectEnableParameters, selectEnableSlideshowExports, selectEnableStringParameters, selectEnableTimezoneChange, selectExternalRecipient, selectIsApplyFiltersAllAtOnceEnabledAndSet, selectIsWhiteLabeled, selectLocale, selectSeparators, selectSettings, selectTimezone, selectWeekStart, } from "../../../../model/store/config/configSelectors.js";
|
|
5
|
+
import { selectEnableAlertOncePerInterval, selectEnableAnomalyDetectionAlert, selectEnableAutomationEvaluationMode, selectEnableParameters, selectEnableScheduledExportMultipleAttachments, selectEnableSlideshowExports, selectEnableStringParameters, selectEnableTimezoneChange, selectExternalRecipient, selectIsApplyFiltersAllAtOnceEnabledAndSet, selectIsWhiteLabeled, selectLocale, selectSeparators, selectSettings, selectTimezone, selectWeekStart, } from "../../../../model/store/config/configSelectors.js";
|
|
6
6
|
import { selectEntitlementMinimumRecurrenceMinutes, selectMaxAutomationRecipients, } from "../../../../model/store/entitlements/entitlementsSelectors.js";
|
|
7
7
|
import { selectAllDashboardFiltersWithoutCrossFiltering, selectAutomationAvailableDashboardFilters, selectAutomationCommonDateFilterId, selectAutomationDefaultSelectedFilters, selectAutomationFiltersByTab, selectDashboardHiddenFilters, selectDashboardLockedFilters, selectRestrictedDashboardFilterLocalIdentifiers, selectRestrictedDashboardFilterLocalIdentifiersByTab, } from "../../../../model/store/filtering/dashboardFilterSelectors.js";
|
|
8
8
|
import { isDashboardFilterCopyRestricted } from "../../../../model/store/filtering/restrictedFilterUtils.js";
|
|
@@ -83,6 +83,7 @@ export function useBuildAutomationsContext() {
|
|
|
83
83
|
const canManageWorkspace = useDashboardSelector(selectCanManageWorkspace);
|
|
84
84
|
const enableSlideshowExports = useDashboardSelector(selectEnableSlideshowExports);
|
|
85
85
|
const enableAutomationEvaluationMode = useDashboardSelector(selectEnableAutomationEvaluationMode);
|
|
86
|
+
const enableScheduledExportMultipleAttachments = useDashboardSelector(selectEnableScheduledExportMultipleAttachments);
|
|
86
87
|
const maxAutomationsRecipients = useDashboardSelector(selectMaxAutomationRecipients);
|
|
87
88
|
const minimumRecurrenceMinutesEntitlement = useDashboardSelector(selectEntitlementMinimumRecurrenceMinutes);
|
|
88
89
|
const allowHourlyRecurrence = parseInt(minimumRecurrenceMinutesEntitlement?.value ?? DEFAULT_MIN_RECURRENCE_MINUTES, 10) === 60;
|
|
@@ -136,6 +137,7 @@ export function useBuildAutomationsContext() {
|
|
|
136
137
|
canManageWorkspace,
|
|
137
138
|
enableSlideshowExports,
|
|
138
139
|
enableAutomationEvaluationMode,
|
|
140
|
+
enableScheduledExportMultipleAttachments,
|
|
139
141
|
}), [
|
|
140
142
|
canCreateAutomation,
|
|
141
143
|
enableAlertOncePerInterval,
|
|
@@ -144,6 +146,7 @@ export function useBuildAutomationsContext() {
|
|
|
144
146
|
canManageWorkspace,
|
|
145
147
|
enableSlideshowExports,
|
|
146
148
|
enableAutomationEvaluationMode,
|
|
149
|
+
enableScheduledExportMultipleAttachments,
|
|
147
150
|
]);
|
|
148
151
|
return useMemo(() => ({
|
|
149
152
|
locale,
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { type ExtendedDashboardWidget } from "../../../../model/types/layoutTypes.js";
|
|
2
|
+
/**
|
|
3
|
+
* Whether the filters the automation dialog would use contain a date filter set to a period, which
|
|
4
|
+
* automations do not support yet. A widget automation uses the active tab without the filters its widget
|
|
5
|
+
* ignores, a dashboard export any tab.
|
|
6
|
+
*
|
|
7
|
+
* @internal
|
|
8
|
+
*/
|
|
9
|
+
export declare function useParameterizedDateFilterBlocksAutomation(isDashboardExport: boolean, widget?: ExtendedDashboardWidget): boolean;
|
|
10
|
+
//# sourceMappingURL=useParameterizedDateFilterBlocksAutomation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useParameterizedDateFilterBlocksAutomation.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/automations/connectors/hooks/useParameterizedDateFilterBlocksAutomation.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,KAAK,uBAAuB,EAAE,MAAM,wCAAwC,CAAC;AAGtF;;;;;;GAMG;AACH,wBAAgB,0CAA0C,CACtD,iBAAiB,EAAE,OAAO,EAC1B,MAAM,CAAC,EAAE,uBAAuB,GACjC,OAAO,CAQT"}
|
package/esm/presentation/automations/connectors/hooks/useParameterizedDateFilterBlocksAutomation.js
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
// (C) 2026 GoodData Corporation
|
|
2
|
+
import { isDashboardParameterizedDateFilter } from "@gooddata/sdk-model";
|
|
3
|
+
import { useDashboardSelector } from "../../../../model/react/DashboardStoreProvider.js";
|
|
4
|
+
import { selectFilterContextFilters, selectFiltersByTab, } from "../../../../model/store/tabs/filterContext/filterContextSelectors.js";
|
|
5
|
+
import { removeIgnoredWidgetFilters } from "../../../../model/utils/widgetFilters.js";
|
|
6
|
+
/**
|
|
7
|
+
* Whether the filters the automation dialog would use contain a date filter set to a period, which
|
|
8
|
+
* automations do not support yet. A widget automation uses the active tab without the filters its widget
|
|
9
|
+
* ignores, a dashboard export any tab.
|
|
10
|
+
*
|
|
11
|
+
* @internal
|
|
12
|
+
*/
|
|
13
|
+
export function useParameterizedDateFilterBlocksAutomation(isDashboardExport, widget) {
|
|
14
|
+
const activeTabFilters = useDashboardSelector(selectFilterContextFilters);
|
|
15
|
+
const filtersByTab = useDashboardSelector(selectFiltersByTab);
|
|
16
|
+
const filters = isDashboardExport
|
|
17
|
+
? Object.values(filtersByTab).flat()
|
|
18
|
+
: removeIgnoredWidgetFilters(activeTabFilters, widget);
|
|
19
|
+
return filters.some(isDashboardParameterizedDateFilter);
|
|
20
|
+
}
|
|
@@ -198,6 +198,8 @@ export interface IAutomationsContextValue {
|
|
|
198
198
|
enableSlideshowExports: boolean;
|
|
199
199
|
/** Whether the automation evaluation-mode setting is enabled; from selectEnableAutomationEvaluationMode. */
|
|
200
200
|
enableAutomationEvaluationMode: boolean;
|
|
201
|
+
/** Whether a scheduled export may send several attachments; from selectEnableScheduledExportMultipleAttachments. */
|
|
202
|
+
enableScheduledExportMultipleAttachments: boolean;
|
|
201
203
|
};
|
|
202
204
|
/** Workspace parameter catalog and effective dashboard parameter values for automations; see {@link IAutomationsParameters}. */
|
|
203
205
|
parameters: IAutomationsParameters;
|
|
@@ -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,8BAA8B,EAC9B,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,q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AS,CAAC;QACtC;;;WAGG;QACH,uBAAuB,EAAE,MAAM,GAAG,SAAS,CAAC;KAC/C,CAAC;IACF,kHAAkH;IAClH,cAAc,EAAE,OAAO,CAAC;IACxB;;;;OAIG;IACH,oCAAoC,EAAE,OAAO,CAAC;IAC9C,0HAA0H;IAC1H,uBAAuB,EAAE,OAAO,CAAC;IACjC,wIAAwI;IACxI,iBAAiB,EAAE,MAAM,GAAG,SAAS,CAAC;IACtC,uEAAuE;IACvE,QAAQ,EAAE;QACN,wIAAwI;QACxI,mBAAmB,EAAE,OAAO,CAAC;QAC7B,8GAA8G;QAC9G,0BAA0B,EAAE,OAAO,CAAC;QACpC,sGAAsG;QACtG,2BAA2B,EAAE,OAAO,CAAC;QACrC,6KAA6K;QAC7K,iBAAiB,EAAE,OAAO,CAAC;QAC3B,wFAAwF;QACxF,kBAAkB,EAAE,OAAO,CAAC;QAC5B,uGAAuG;QACvG,sBAAsB,EAAE,OAAO,CAAC;QAChC,4GAA4G;QAC5G,8BAA8B,EAAE,OAAO,CAAC;
|
|
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,8BAA8B,EAC9B,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;A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C;;;;OAIG;IACH,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,sFAAsF;IACtF,uBAAuB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAChD,2JAA2J;IAC3J,wBAAwB,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,iBAAiB,GAAG,qBAAqB,GAAG,SAAS,CAAC;IACjG;;;;OAIG;IACH,6BAA6B,EAAE,CAAC,WAAW,EAAE,MAAM,KAAK,mCAAmC,GAAG,SAAS,CAAC;IACxG;;;;OAIG;IACH,gCAAgC,CAAC,EAAE,MAAM,CAAC;IAC1C;;;;OAIG;IACH,iBAAiB,EAAE,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,KAAK,OAAO,CAAC;CAC3D;AAID;;;;;;;;;GASG;AACH,eAAO,MAAM,0BAA0B,gEAA8B,CAAC;AAEtE;;;;;;;;GAQG;AACH,wBAAgB,qBAAqB,IAAI,wBAAwB,CAWhE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DefaultScheduledEmailManagementDialogContent.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/automations/scheduledEmail/DefaultScheduledEmailManagementDialog/DefaultScheduledEmailManagementDialogContent.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,KAAK,yBAAyB,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"DefaultScheduledEmailManagementDialogContent.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/automations/scheduledEmail/DefaultScheduledEmailManagementDialog/DefaultScheduledEmailManagementDialogContent.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,KAAK,yBAAyB,EAAE,MAAM,qBAAqB,CAAC;AAyBrE,OAAO,EAAE,KAAK,6BAA6B,EAAE,MAAM,uBAAuB,CAAC;AAO3E,UAAU,kDAAkD;IACxD,KAAK,CAAC,EAAE,MAAM,IAAI,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,MAAM,EAAE,CAAC,cAAc,EAAE,yBAAyB,KAAK,IAAI,CAAC;IAC5D,mBAAmB,CAAC,EAAE,6BAA6B,CAAC;CACvD;AAED,wBAAgB,4CAA4C,CAAC,EACzD,KAAK,EACL,OAAO,EACP,MAAM,EACN,mBAAmB,EAAE,yBAAyB,GACjD,EAAE,kDAAkD,2CA0LpD"}
|
|
@@ -7,7 +7,7 @@ import { buildDashboardUrl, useBackend, useWorkspace } from "@gooddata/sdk-ui";
|
|
|
7
7
|
import { Automations } from "@gooddata/sdk-ui-ext";
|
|
8
8
|
import { Button, ContentDivider, Dialog, Hyperlink, OverlayController, OverlayControllerProvider, Typography, UiTooltip, useId, } from "@gooddata/sdk-ui-kit";
|
|
9
9
|
import { messages } from "../../../../locales.js";
|
|
10
|
-
import { AUTOMATIONS_COLUMN_CONFIG, AUTOMATIONS_MAX_HEIGHT } from "../../../constants/automations.js";
|
|
10
|
+
import { AUTOMATIONS_COLUMN_CONFIG, AUTOMATIONS_MAX_HEIGHT, SCHEDULED_EXPORTS_COLUMN_CONFIG, } from "../../../constants/automations.js";
|
|
11
11
|
import { DASHBOARD_DIALOG_OVERS_Z_INDEX } from "../../../constants/zIndex.js";
|
|
12
12
|
import { useAutomationsContext } from "../../contexts/AutomationsContext.js";
|
|
13
13
|
import { useScheduledEmailManagementDialogContext } from "../../contexts/ScheduledEmailManagementDialogContext.js";
|
|
@@ -20,7 +20,7 @@ export function DefaultScheduledEmailManagementDialogContent({ onAdd, onClose, o
|
|
|
20
20
|
const isMobile = isMobileView();
|
|
21
21
|
const workspace = useWorkspace();
|
|
22
22
|
const backend = useBackend();
|
|
23
|
-
const { timezone, locale, isWhiteLabeled, isExecutionTimestampMode, externalRecipient: externalRecipientOverride, features: { canCreateAutomation }, } = useAutomationsContext();
|
|
23
|
+
const { timezone, locale, isWhiteLabeled, isExecutionTimestampMode, externalRecipient: externalRecipientOverride, features: { canCreateAutomation, enableScheduledExportMultipleAttachments }, } = useAutomationsContext();
|
|
24
24
|
const { dashboardId, dashboardTitle, enableAccessibilityMode, isScheduleEmailDialogOpen: isEditDialogOpen, automationsInvalidationId, isEmbedded, maxAutomations, unlimitedAutomations, automations, isLoading: isLoadingScheduleData, } = useScheduledEmailManagementDialogContext();
|
|
25
25
|
const enableBulkActions = !enableAccessibilityMode;
|
|
26
26
|
const { returnFocusTo } = useScheduleEmailDialogAccessibility();
|
|
@@ -80,7 +80,9 @@ export function DefaultScheduledEmailManagementDialogContent({ onAdd, onClose, o
|
|
|
80
80
|
: undefined, isTooltipDisabled: !maxAutomationsReached && !isExecutionTimestampMode, accessibilityConfig: {
|
|
81
81
|
ariaHaspopup: "dialog",
|
|
82
82
|
ariaControls: SCHEDULED_EMAIL_DIALOG_ID,
|
|
83
|
-
} })) : null, selectedColumnDefinitions:
|
|
83
|
+
} })) : null, selectedColumnDefinitions: enableScheduledExportMultipleAttachments
|
|
84
|
+
? SCHEDULED_EXPORTS_COLUMN_CONFIG
|
|
85
|
+
: AUTOMATIONS_COLUMN_CONFIG, dashboardUrlBuilder: dashboardUrlBuilder }) }), _jsx(ContentDivider, { className: "gd-content-divider--no-spacing" }), _jsxs("div", { className: `gd-buttons${isWhiteLabeled ? " gd-buttons--end" : ""}`, children: [isWhiteLabeled ? null : (_jsx(Hyperlink, { text: intl.formatMessage({ id: helpTextId }), href: "https://www.gooddata.com/docs/cloud/create-dashboards/automation/scheduled-exports/#ScheduleExportsinDashboards-ScheduleExport", iconClass: "gd-icon-circle-question" })), _jsx("div", { className: "gd-buttons-inner", children: _jsx(Button, { onClick: onClose, className: "gd-button-secondary s-close-button", value: intl.formatMessage({ id: "close" }) }) })] })] }) }));
|
|
84
86
|
}
|
|
85
87
|
function CreateButton({ id, onClick, isDisabled, label, tooltipContent, isTooltipDisabled, accessibilityConfig, }) {
|
|
86
88
|
const disabledReasonId = useId();
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
interface IParameterizedDateFilterNotSupportedDialogProps {
|
|
2
|
+
automationType: "alert" | "scheduledExport";
|
|
3
|
+
onCancel?: () => void;
|
|
4
|
+
}
|
|
5
|
+
/**
|
|
6
|
+
* Shown in place of the automation dialog while automations do not support a date filter set to a period.
|
|
7
|
+
*
|
|
8
|
+
* @internal
|
|
9
|
+
*/
|
|
10
|
+
export declare function ParameterizedDateFilterNotSupportedDialog({ automationType, onCancel, }: IParameterizedDateFilterNotSupportedDialogProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export {};
|
|
12
|
+
//# sourceMappingURL=ParameterizedDateFilterNotSupportedDialog.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ParameterizedDateFilterNotSupportedDialog.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/automations/shared/components/ParameterizedDateFilterNotSupportedDialog.tsx"],"names":[],"mappings":"AA+BA,UAAU,+CAA+C;IACrD,cAAc,EAAE,OAAO,GAAG,iBAAiB,CAAC;IAC5C,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;CACzB;AAED;;;;GAIG;AACH,wBAAgB,yCAAyC,CAAC,EACtD,cAAc,EACd,QAAQ,GACX,EAAE,+CAA+C,2CA0BjD"}
|
package/esm/presentation/automations/shared/components/ParameterizedDateFilterNotSupportedDialog.js
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
// (C) 2026 GoodData Corporation
|
|
3
|
+
import { defineMessages, useIntl } from "react-intl";
|
|
4
|
+
import { ConfirmDialogBase, Overlay, OverlayController, OverlayControllerProvider, useId, } from "@gooddata/sdk-ui-kit";
|
|
5
|
+
import { DASHBOARD_DIALOG_OVERS_Z_INDEX } from "../../../constants/zIndex.js";
|
|
6
|
+
const overlayController = OverlayController.getInstance(DASHBOARD_DIALOG_OVERS_Z_INDEX);
|
|
7
|
+
const messages = {
|
|
8
|
+
alert: defineMessages({
|
|
9
|
+
title: { id: "dialogs.automation.parameterizedDateFilter.alert.title" },
|
|
10
|
+
description: { id: "dialogs.automation.parameterizedDateFilter.alert.description" },
|
|
11
|
+
}),
|
|
12
|
+
scheduledExport: defineMessages({
|
|
13
|
+
title: { id: "dialogs.automation.parameterizedDateFilter.scheduledExport.title" },
|
|
14
|
+
description: { id: "dialogs.automation.parameterizedDateFilter.scheduledExport.description" },
|
|
15
|
+
}),
|
|
16
|
+
};
|
|
17
|
+
const commonMessages = defineMessages({
|
|
18
|
+
close: { id: "close" },
|
|
19
|
+
});
|
|
20
|
+
/**
|
|
21
|
+
* Shown in place of the automation dialog while automations do not support a date filter set to a period.
|
|
22
|
+
*
|
|
23
|
+
* @internal
|
|
24
|
+
*/
|
|
25
|
+
export function ParameterizedDateFilterNotSupportedDialog({ automationType, onCancel, }) {
|
|
26
|
+
const intl = useIntl();
|
|
27
|
+
const titleElementId = useId();
|
|
28
|
+
const descriptionElementId = useId();
|
|
29
|
+
const { title, description } = messages[automationType];
|
|
30
|
+
return (_jsx(Overlay, { className: "gd-notifications-channels-dialog-overlay", isModal: true, positionType: "fixed", children: _jsx(OverlayControllerProvider, { overlayController: overlayController, children: _jsx(ConfirmDialogBase, { className: "gd-notifications-channels-dialog s-parameterized-date-filter-not-supported-dialog", headline: intl.formatMessage(title), cancelButtonText: intl.formatMessage(commonMessages.close), onCancel: onCancel, accessibilityConfig: { titleElementId, descriptionElementId }, children: _jsx("div", { id: descriptionElementId, className: "gd-notifications-channel-dialog-content-wrapper", children: intl.formatMessage(description) }) }) }) }));
|
|
31
|
+
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { type AutomationColumnDefinition } from "@gooddata/sdk-ui-ext";
|
|
2
2
|
export declare const AUTOMATIONS_COLUMN_CONFIG: Array<AutomationColumnDefinition>;
|
|
3
|
+
export declare const SCHEDULED_EXPORTS_COLUMN_CONFIG: Array<AutomationColumnDefinition>;
|
|
3
4
|
export declare const AUTOMATIONS_MAX_HEIGHT = 380;
|
|
4
5
|
export declare const AUTOMATION_FILTERS_GROUP_LABEL_ID = "automation-filters-group-label";
|
|
5
6
|
export declare const AUTOMATION_FILTERS_DIALOG_TITLE_ID = "automation-filters-dialog-title";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"automations.d.ts","sourceRoot":"","sources":["../../../src/presentation/constants/automations.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,0BAA0B,EAAE,MAAM,sBAAsB,CAAC;AAGvE,eAAO,MAAM,yBAAyB,EAAE,KAAK,CAAC,0BAA0B,CAkBvE,CAAC;AAEF,eAAO,MAAM,sBAAsB,MAAM,CAAC;AAG1C,eAAO,MAAM,iCAAiC,mCAAmC,CAAC;AAElF,eAAO,MAAM,kCAAkC,oCAAoC,CAAC;AAEpF,eAAO,MAAM,4BAA4B,8BAA8B,CAAC;AAExE,eAAO,MAAM,sCAAsC,wCAAwC,CAAC;AAE5F,eAAO,MAAM,8CAA8C,gDAAgD,CAAC;AAE5G,eAAO,MAAM,qCAAqC,uCAAuC,CAAC"}
|
|
1
|
+
{"version":3,"file":"automations.d.ts","sourceRoot":"","sources":["../../../src/presentation/constants/automations.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,0BAA0B,EAAE,MAAM,sBAAsB,CAAC;AAGvE,eAAO,MAAM,yBAAyB,EAAE,KAAK,CAAC,0BAA0B,CAkBvE,CAAC;AAEF,eAAO,MAAM,+BAA+B,EAAE,KAAK,CAAC,0BAA0B,CAkB7E,CAAC;AAEF,eAAO,MAAM,sBAAsB,MAAM,CAAC;AAG1C,eAAO,MAAM,iCAAiC,mCAAmC,CAAC;AAElF,eAAO,MAAM,kCAAkC,oCAAoC,CAAC;AAEpF,eAAO,MAAM,4BAA4B,8BAA8B,CAAC;AAExE,eAAO,MAAM,sCAAsC,wCAAwC,CAAC;AAE5F,eAAO,MAAM,8CAA8C,gDAAgD,CAAC;AAE5G,eAAO,MAAM,qCAAqC,uCAAuC,CAAC"}
|
|
@@ -19,6 +19,25 @@ export const AUTOMATIONS_COLUMN_CONFIG = [
|
|
|
19
19
|
name: "menu",
|
|
20
20
|
},
|
|
21
21
|
];
|
|
22
|
+
export const SCHEDULED_EXPORTS_COLUMN_CONFIG = [
|
|
23
|
+
{
|
|
24
|
+
name: "title",
|
|
25
|
+
width: 285,
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
name: "attachments",
|
|
29
|
+
width: 187,
|
|
30
|
+
minWidth: 187,
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
name: "lastRun",
|
|
34
|
+
width: 187,
|
|
35
|
+
minWidth: 187,
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
name: "menu",
|
|
39
|
+
},
|
|
40
|
+
];
|
|
22
41
|
export const AUTOMATIONS_MAX_HEIGHT = 380;
|
|
23
42
|
//create dialog
|
|
24
43
|
export const AUTOMATION_FILTERS_GROUP_LABEL_ID = "automation-filters-group-label";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DashboardInner.d.ts","sourceRoot":"","sources":["../../../../src/presentation/dashboard/components/DashboardInner.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DashboardInner.d.ts","sourceRoot":"","sources":["../../../../src/presentation/dashboard/components/DashboardInner.tsx"],"names":[],"mappings":"AAyCA,OAAO,EAAE,KAAK,eAAe,EAAsC,MAAM,aAAa,CAAC;AA2CvF,wBAAgB,cAAc,CAAC,KAAK,EAAE,eAAe,2CAoJpD"}
|
|
@@ -2,6 +2,7 @@ import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-run
|
|
|
2
2
|
// (C) 2022-2026 GoodData Corporation
|
|
3
3
|
import { useCallback, useEffect, useRef, useState } from "react";
|
|
4
4
|
import cx from "classnames";
|
|
5
|
+
import { defineMessages, useIntl } from "react-intl";
|
|
5
6
|
import { OverlayController, OverlayControllerProvider, ToastsCenter, ToastsCenterContextProvider, UiResizableSidebarProvider, } from "@gooddata/sdk-ui-kit";
|
|
6
7
|
import { useDashboardSelector } from "../../../model/react/DashboardStoreProvider.js";
|
|
7
8
|
import { useDashboardAutomations } from "../../../model/react/useDashboardAutomations/useDashboardAutomations.js";
|
|
@@ -31,6 +32,22 @@ import { DashboardInteractionLock } from "./DashboardInteractionLock.js";
|
|
|
31
32
|
import { DashboardScreenSizeProvider } from "./DashboardScreenSizeContext.js";
|
|
32
33
|
const overlayController = OverlayController.getInstance(DASHBOARD_HEADER_OVERLAYS_Z_INDEX);
|
|
33
34
|
const toastsOverlayController = OverlayController.getInstance(DASHBOARD_TOASTS_OVERLAY_Z_INDEX);
|
|
35
|
+
const messages = defineMessages({
|
|
36
|
+
contentRegionLabel: { id: "dashboard.content.region" },
|
|
37
|
+
});
|
|
38
|
+
/**
|
|
39
|
+
* The dashboard is embedded in host applications that may already provide the page's `main` landmark,
|
|
40
|
+
* so the content area is exposed as a named region (a labelled `section`) to avoid nested `main` landmarks.
|
|
41
|
+
* It is always labelled, so it stays a landmark even when the embedder does not configure keyboard navigation.
|
|
42
|
+
*/
|
|
43
|
+
function DashboardContentRegion({ className, navigationConfig, children }) {
|
|
44
|
+
const intl = useIntl();
|
|
45
|
+
// A blank label would leave the section unnamed, and an unnamed section is not a region landmark.
|
|
46
|
+
const ariaLabel = navigationConfig?.ariaLabel?.trim()
|
|
47
|
+
? navigationConfig.ariaLabel
|
|
48
|
+
: intl.formatMessage(messages.contentRegionLabel);
|
|
49
|
+
return (_jsx("section", { className: className, id: navigationConfig?.targetElementId, tabIndex: navigationConfig?.tabIndex, "aria-label": ariaLabel, children: children }));
|
|
50
|
+
}
|
|
34
51
|
export function DashboardInner(props) {
|
|
35
52
|
const locale = useDashboardSelector(selectLocale);
|
|
36
53
|
const isEditMode = useDashboardSelector(selectIsInEditMode);
|
|
@@ -62,15 +79,6 @@ export function DashboardInner(props) {
|
|
|
62
79
|
initializeAutomations();
|
|
63
80
|
}, [initializeAutomations]);
|
|
64
81
|
const DragLayerComponent = FlexibleDragLayerComponent;
|
|
65
|
-
const mainContentNavigationConfig = props.keyboardNavigation?.mainContent;
|
|
66
|
-
const mainContentNavigationProps = mainContentNavigationConfig
|
|
67
|
-
? {
|
|
68
|
-
tabIndex: mainContentNavigationConfig.tabIndex,
|
|
69
|
-
id: mainContentNavigationConfig.targetElementId,
|
|
70
|
-
role: "main",
|
|
71
|
-
["aria-label"]: mainContentNavigationConfig.ariaLabel,
|
|
72
|
-
}
|
|
73
|
-
: {};
|
|
74
82
|
const dashboardContentClassNames = cx("gd-dash-content", {
|
|
75
83
|
"gd-dash-content--density-standard": density === "comfortable",
|
|
76
84
|
"gd-dash-content--density-compact": density === "compact",
|
|
@@ -95,5 +103,5 @@ export function DashboardInner(props) {
|
|
|
95
103
|
}), children: [_jsx(DragLayerComponent, { contentRef: layoutRef, resizeLayer: resizeLayer, enableCanvasScroll: enableCanvasScroll }), _jsxs("div", { className: cx("gd-dashboards-root gd-flex-container", {
|
|
96
104
|
"gd-dashboards-root--floating-toolbar": enableEnhancedInsightPicker,
|
|
97
105
|
"gd-dashboards-root--canvas-scroll": enableCanvasScroll,
|
|
98
|
-
}), style: dashboardsRootStyle, children: [_jsx(DashboardSidebar, { DefaultSidebar: RenderModeAwareDashboardSidebar, DeleteDropZoneComponent: DeleteDropZone, WrapCreatePanelItemWithDragComponent: WrapCreatePanelItemWithDrag, WrapInsightListItemWithDragComponent: WrapInsightListItemWithDrag }), _jsxs(
|
|
106
|
+
}), style: dashboardsRootStyle, children: [_jsx(DashboardSidebar, { DefaultSidebar: RenderModeAwareDashboardSidebar, DeleteDropZoneComponent: DeleteDropZone, WrapCreatePanelItemWithDragComponent: WrapCreatePanelItemWithDrag, WrapInsightListItemWithDragComponent: WrapInsightListItemWithDrag }), _jsxs(DashboardContentRegion, { className: dashboardContentClassNames, navigationConfig: props.keyboardNavigation?.mainContent, children: [_jsx("div", { className: "gd-dash-header-wrapper gd-dash-header-wrapper-sdk-8-12", ref: headerRef, children: _jsx(OverlayControllerProvider, { overlayController: overlayController, children: _jsx(DashboardHeader, {}) }) }), enableCanvasScroll ? (_jsxs(_Fragment, { children: [_jsx(DashboardContentScrollContainer, { contentRef: layoutRef, isEditMode: isEditMode, onScrollGeometryChange: onContentScrollGeometryChange, children: dashboardContent }), _jsx("div", { className: "gd-dash-content-resize-layer", ref: setResizeLayer }), bottomPosition] })) : (dashboardContent)] })] }), _jsx(Toolbar, {})] }) }) })] }) }));
|
|
99
107
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DefaultDashboardDateFilter.d.ts","sourceRoot":"","sources":["../../../../src/presentation/filterBar/dateFilter/DefaultDashboardDateFilter.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,YAAY,EAAkC,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"DefaultDashboardDateFilter.d.ts","sourceRoot":"","sources":["../../../../src/presentation/filterBar/dateFilter/DefaultDashboardDateFilter.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,YAAY,EAAkC,MAAM,OAAO,CAAC;AA4C1E,OAAO,EAAE,KAAK,gCAAgC,EAAE,MAAM,YAAY,CAAC;AAmBnE;;;;;;GAMG;AACH,wBAAgB,0BAA0B,CAAC,KAAK,EAAE,gCAAgC,GAAG,YAAY,CAoNhG"}
|
|
@@ -6,9 +6,10 @@ import { DashboardDateFilterConfigModeValues, areObjRefsEqual, dashboardFilterLo
|
|
|
6
6
|
import { DateFilter, getLocalizedIcuDateFormatPattern, } from "@gooddata/sdk-ui-filters";
|
|
7
7
|
import { dateFilterOptionToDashboardDateFilter } from "../../../_staging/dashboard/dashboardFilterConverter.js";
|
|
8
8
|
import { matchDateFilterToDateFilterOptionWithPreference } from "../../../_staging/dateFilterConfig/dateFilterOptionMapping.js";
|
|
9
|
+
import { periodPresetsForButton } from "../../../_staging/dateFilterConfig/periodPresets.js";
|
|
9
10
|
import { useDashboardSelector } from "../../../model/react/DashboardStoreProvider.js";
|
|
10
11
|
import { selectBackendCapabilities } from "../../../model/store/backendCapabilities/backendCapabilitiesSelectors.js";
|
|
11
|
-
import { selectCatalogDateDatasets } from "../../../model/store/catalog/catalogSelectors.js";
|
|
12
|
+
import { selectCatalogDateDatasets, selectCatalogDateRangeParameters, } from "../../../model/store/catalog/catalogSelectors.js";
|
|
12
13
|
import { selectActiveCalendars, selectIsApplyFiltersAllAtOnceEnabledAndSet, selectLocale, selectSettings, selectWeekStart, } from "../../../model/store/config/configSelectors.js";
|
|
13
14
|
import { selectIsInEditMode } from "../../../model/store/renderMode/renderModeSelectors.js";
|
|
14
15
|
import { useCurrentDateFilterConfig } from "../../dragAndDrop/useCurrentDateFilterConfig.js";
|
|
@@ -62,6 +63,7 @@ export function DefaultDashboardDateFilter(props) {
|
|
|
62
63
|
const enableEmptyDateValues = config.dateFilterOptions.emptyValues?.visible ?? true;
|
|
63
64
|
const isAbsoluteDateFilterGranularityEnabled = !!settings.enableAbsoluteDateFilterGranularity && !!onAnyTypeFilterChanged;
|
|
64
65
|
const allDateDatasets = useDashboardSelector(selectCatalogDateDatasets);
|
|
66
|
+
const dateRangeParameters = useDashboardSelector(selectCatalogDateRangeParameters);
|
|
65
67
|
let defaultDateFilterName;
|
|
66
68
|
if (dataSet) {
|
|
67
69
|
const dateDataSetName = allDateDatasets.find((ds) => areObjRefsEqual(ds.dataSet.ref, dataSet))
|
|
@@ -75,12 +77,13 @@ export function DefaultDashboardDateFilter(props) {
|
|
|
75
77
|
const { title, mode } = useCurrentDateFilterConfig(dataSet, defaultDateFilterName, tabId);
|
|
76
78
|
const [lastSelectedOptionId, setLastSelectedOptionId] = useState("");
|
|
77
79
|
const dateFilterOptions = useMemo(() => {
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
80
|
+
const { emptyValues, ...rest } = config.dateFilterOptions;
|
|
81
|
+
return {
|
|
82
|
+
...rest,
|
|
83
|
+
...(enableEmptyDateValues && emptyValues ? { emptyValues } : {}),
|
|
84
|
+
periodPreset: periodPresetsForButton(dateRangeParameters),
|
|
85
|
+
};
|
|
86
|
+
}, [config.dateFilterOptions, enableEmptyDateValues, dateRangeParameters]);
|
|
84
87
|
const { dateFilterOption, excludeCurrentPeriod } = useMemo(() => matchDateFilterToDateFilterOptionWithPreference(filter, dateFilterOptions, lastSelectedOptionId), [filter, dateFilterOptions, lastSelectedOptionId]);
|
|
85
88
|
const { dateFilterOption: workingFilterOption, excludeCurrentPeriod: workingExcludeCurrentPeriod } = useMemo(() => matchDateFilterToDateFilterOptionWithPreference(workingFilter, dateFilterOptions, lastSelectedOptionId), [workingFilter, dateFilterOptions, lastSelectedOptionId]);
|
|
86
89
|
const onApply = useCallback((option, exclude) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useResetFiltersButton.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/filterBar/filterBar/hooks/useResetFiltersButton.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useResetFiltersButton.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/filterBar/filterBar/hooks/useResetFiltersButton.ts"],"names":[],"mappings":"AAuNA;;;;;;GAMG;AACH,eAAO,MAAM,qBAAqB,QAAO;IACrC,QAAQ,EAAE,OAAO,CAAC;IAClB,SAAS,EAAE,KAAK,GAAG,aAAa,CAAC;IACjC,YAAY,EAAE,MAAM,IAAI,CAAC;CAoK5B,CAAC"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { useCallback, useMemo } from "react";
|
|
3
3
|
import { difference } from "lodash-es";
|
|
4
4
|
import { generateDateFilterLocalIdentifier } from "@gooddata/sdk-backend-base";
|
|
5
|
-
import { dashboardAttributeFilterItemLocalIdentifier, dashboardFilterLocalIdentifier, isDashboardAbsoluteGranularityDateFilter, isDashboardAttributeFilterItem, isDashboardCommonDateFilter, isDashboardCommonDateFilterOfAnyType, isDashboardDateFilter, isDashboardDateFilterOfAnyType, isDashboardMeasureValueFilter, isNoopAllTimeDashboardDateFilter, newAllTimeDashboardDateFilter, } from "@gooddata/sdk-model";
|
|
5
|
+
import { dashboardAttributeFilterItemLocalIdentifier, dashboardFilterLocalIdentifier, isDashboardAbsoluteGranularityDateFilter, isDashboardAttributeFilterItem, isDashboardCommonDateFilter, isDashboardCommonDateFilterOfAnyType, isDashboardDateFilter, isDashboardDateFilterOfAnyType, isDashboardMeasureValueFilter, isDashboardParameterizedDateFilter, isNoopAllTimeDashboardDateFilter, newAllTimeDashboardDateFilter, } from "@gooddata/sdk-model";
|
|
6
6
|
import { useToastMessage } from "@gooddata/sdk-ui-kit";
|
|
7
7
|
import { _isEqual, _partition } from "@gooddata/util";
|
|
8
8
|
import { messages } from "../../../../locales.js";
|
|
@@ -81,6 +81,10 @@ const removeDateFilterLocalIdentifier = (filter) => {
|
|
|
81
81
|
const { localIdentifier: _localIdentifier, ...rest } = filter.dashboardAbsoluteGranularityDateFilter;
|
|
82
82
|
return { dashboardAbsoluteGranularityDateFilter: rest };
|
|
83
83
|
}
|
|
84
|
+
if (isDashboardParameterizedDateFilter(filter)) {
|
|
85
|
+
const { localIdentifier: _localIdentifier, ...rest } = filter.dashboardParameterizedDateFilter;
|
|
86
|
+
return { dashboardParameterizedDateFilter: rest };
|
|
87
|
+
}
|
|
84
88
|
if (isDashboardDateFilter(filter)) {
|
|
85
89
|
// oxlint-disable-next-line @typescript-eslint/no-unused-vars
|
|
86
90
|
const { localIdentifier, ...rest } = filter.dateFilter;
|
|
@@ -282,6 +282,10 @@ export declare const de_DE: {
|
|
|
282
282
|
"dialogs.automation.applyCurrentFilters.schedule.filtersAndTimezone.confirm": string;
|
|
283
283
|
"dialogs.automation.filters.schedule.ariaLabel": string;
|
|
284
284
|
"dialogs.schedule.management.title": string;
|
|
285
|
+
"dialogs.automation.absoluteGranularityDateFilter.alert.title": string;
|
|
286
|
+
"dialogs.automation.absoluteGranularityDateFilter.alert.description": string;
|
|
287
|
+
"dialogs.automation.absoluteGranularityDateFilter.scheduledExport.title": string;
|
|
288
|
+
"dialogs.automation.absoluteGranularityDateFilter.scheduledExport.description": string;
|
|
285
289
|
"dialogs.schedule.management.delete.dialog": string;
|
|
286
290
|
"dialogs.schedule.management.delete.dialog.confirm": string;
|
|
287
291
|
"dialogs.schedule.management.list.title": string;
|
|
@@ -419,6 +423,10 @@ export declare const de_DE: {
|
|
|
419
423
|
"attributesDropdown.placeholder": string;
|
|
420
424
|
"attributesDropdown.parameters.section.from_dashboard": string;
|
|
421
425
|
"attributesDropdown.parameters.section.ungrouped": string;
|
|
426
|
+
"attributesDropdown.tab.attributes": string;
|
|
427
|
+
"attributesDropdown.tab.dateDatasets": string;
|
|
428
|
+
"attributesDropdown.tab.metrics": string;
|
|
429
|
+
"attributesDropdown.tab.parameters": string;
|
|
422
430
|
"attributesDropdown.configuration": string;
|
|
423
431
|
"attributesDropdown.save": string;
|
|
424
432
|
"attributesDropdown.filterBy": string;
|
|
@@ -484,6 +492,8 @@ export declare const de_DE: {
|
|
|
484
492
|
"deleteInsightDialog.usage.showLess": string;
|
|
485
493
|
"deleteInsightDialog.inaccessibleDashboards": string;
|
|
486
494
|
"deleteInsightDialog.inaccessibleDashboardsOnly": string;
|
|
495
|
+
"deleteInsightDialog.inaccessibleDocuments": string;
|
|
496
|
+
"deleteInsightDialog.inaccessibleDocumentsOnly": string;
|
|
487
497
|
"deleteInsightDialog.usedOnThisDashboard": string;
|
|
488
498
|
"deleteInsightDialog.success": string;
|
|
489
499
|
"deleteInsightDialog.error": string;
|
|
@@ -691,6 +701,8 @@ export declare const de_DE: {
|
|
|
691
701
|
"richText.emptyContent": string;
|
|
692
702
|
"drill_modal_picker.restricted": string;
|
|
693
703
|
"visualizationSwitcher.restrictedEntry": string;
|
|
704
|
+
"visualizationSwitcher.button.ariaLabel": string;
|
|
705
|
+
"visualizationSwitcher.list.ariaLabel": string;
|
|
694
706
|
"visualizationSwitcher.emptyContent": string;
|
|
695
707
|
"visualizationSwitcherToolbar.visualizationsList.header": string;
|
|
696
708
|
"visualizationSwitcherToolbar.visualizationsList.tooltip": string;
|
|
@@ -895,6 +907,7 @@ export declare const de_DE: {
|
|
|
895
907
|
"kdaDialog.floatingStatus.done.opener": string;
|
|
896
908
|
"kdaDialog.floatingStatus.error": string;
|
|
897
909
|
"kdaDialog.floatingStatus.error.opener": string;
|
|
910
|
+
"kdaDialog.floatingStatus.announcement": string;
|
|
898
911
|
"kdaDialog.floatingStatus.expand": string;
|
|
899
912
|
"kdaDialog.floatingStatus.minimize": string;
|
|
900
913
|
"kdaDialog.replaceConfirmation.headline": string;
|