@gooddata/sdk-ui-dashboard 11.55.0-alpha.2 → 11.55.0-alpha.4
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 +9 -9
- package/esm/__version.d.ts +1 -1
- package/esm/__version.js +1 -1
- package/esm/_staging/automation/index.d.ts +19 -1
- package/esm/_staging/automation/index.d.ts.map +1 -1
- package/esm/_staging/automation/index.js +44 -8
- package/esm/_staging/dashboard/dashboardFilterConverter.d.ts +1 -18
- package/esm/_staging/dashboard/dashboardFilterConverter.d.ts.map +1 -1
- package/esm/_staging/dashboard/dashboardFilterConverter.js +1 -62
- package/esm/_staging/insight/insightWidgetProperties.d.ts +6 -0
- package/esm/_staging/insight/insightWidgetProperties.d.ts.map +1 -0
- package/esm/_staging/insight/insightWidgetProperties.js +32 -0
- package/esm/_staging/sharedHooks/useRichTextFilters.d.ts.map +1 -1
- package/esm/_staging/sharedHooks/useRichTextFilters.js +1 -2
- package/esm/index.d.ts +25 -7
- package/esm/index.d.ts.map +1 -1
- package/esm/index.js +22 -4
- package/esm/internal.d.ts +3 -3
- package/esm/internal.d.ts.map +1 -1
- package/esm/internal.js +3 -3
- package/esm/kdaDialog/dialog/hooks/useChangeAnalysis.d.ts.map +1 -1
- package/esm/kdaDialog/dialog/hooks/useChangeAnalysis.js +1 -2
- package/esm/model/commandHandlers/common/validateDrillToCustomUrlParams.d.ts.map +1 -1
- package/esm/model/commandHandlers/common/validateDrillToCustomUrlParams.js +1 -2
- package/esm/model/commandHandlers/drill/drillToDashboardHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/drill/drillToDashboardHandler.js +1 -2
- package/esm/model/commandHandlers/scheduledEmail/automationParametersRestore.d.ts +11 -5
- package/esm/model/commandHandlers/scheduledEmail/automationParametersRestore.d.ts.map +1 -1
- package/esm/model/commandHandlers/scheduledEmail/automationParametersRestore.js +24 -7
- package/esm/model/commandHandlers/scheduledEmail/csvRawExecutionDefinition.d.ts.map +1 -1
- package/esm/model/commandHandlers/scheduledEmail/csvRawExecutionDefinition.js +1 -2
- package/esm/model/commandHandlers/scheduledEmail/initializeAutomationsHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/scheduledEmail/initializeAutomationsHandler.js +5 -0
- package/esm/model/commandHandlers/widgets/exportInsightWidgetHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/widgets/exportInsightWidgetHandler.js +21 -3
- package/esm/model/commandHandlers/widgets/exportRawInsightWidgetHandler.js +1 -2
- package/esm/model/commands/filters.d.ts +1 -1
- package/esm/model/commands/filters.js +1 -1
- package/esm/model/events/filters.d.ts +6 -6
- package/esm/model/store/tabs/layout/layoutSelectors.d.ts.map +1 -1
- package/esm/model/store/tabs/layout/layoutSelectors.js +1 -2
- package/esm/model/store/tabs/parameters/parametersHelpers.d.ts +10 -22
- package/esm/model/store/tabs/parameters/parametersHelpers.d.ts.map +1 -1
- package/esm/model/store/tabs/parameters/parametersHelpers.js +13 -42
- package/esm/model/store/tabs/parameters/parametersSelectors.d.ts +8 -10
- package/esm/model/store/tabs/parameters/parametersSelectors.d.ts.map +1 -1
- package/esm/model/store/tabs/parameters/parametersSelectors.js +22 -32
- package/esm/presentation/automations/alerting/AlertingManagementDialog.d.ts +4 -0
- package/esm/presentation/automations/alerting/AlertingManagementDialog.d.ts.map +1 -1
- package/esm/presentation/automations/alerting/AlertingManagementDialog.js +6 -2
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/DefaultAlertingDialog.d.ts +16 -16
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/DefaultAlertingDialog.d.ts.map +1 -1
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/DefaultAlertingDialog.js +34 -109
- package/esm/presentation/automations/alerting/blocks/AlertingDialogFormFieldGroup.d.ts +10 -0
- package/esm/presentation/automations/alerting/blocks/AlertingDialogFormFieldGroup.d.ts.map +1 -0
- package/esm/presentation/automations/alerting/blocks/AlertingDialogFormFieldGroup.js +12 -0
- package/esm/presentation/automations/alerting/blocks/AlertingDialogShell.d.ts +49 -0
- package/esm/presentation/automations/alerting/blocks/AlertingDialogShell.d.ts.map +1 -0
- package/esm/presentation/automations/alerting/blocks/AlertingDialogShell.js +128 -0
- package/esm/presentation/automations/alerting/blocks/DefaultLoadingAlertingDialog.d.ts.map +1 -0
- package/esm/presentation/automations/alerting/types.d.ts +109 -0
- package/esm/presentation/automations/alerting/types.d.ts.map +1 -1
- package/esm/presentation/automations/connectors/AlertingConnector.d.ts +3 -3
- package/esm/presentation/automations/connectors/AlertingConnector.d.ts.map +1 -1
- package/esm/presentation/automations/connectors/AlertingConnector.js +6 -4
- package/esm/presentation/automations/connectors/ScheduledEmailConnector.d.ts +3 -3
- package/esm/presentation/automations/connectors/ScheduledEmailConnector.d.ts.map +1 -1
- package/esm/presentation/automations/connectors/ScheduledEmailConnector.js +6 -4
- package/esm/presentation/automations/connectors/hooks/useBuildAlertingManagementDialogContext.d.ts.map +1 -1
- package/esm/presentation/automations/connectors/hooks/useBuildAlertingManagementDialogContext.js +7 -0
- package/esm/presentation/automations/contexts/AlertingManagementDialogContext.d.ts +22 -0
- package/esm/presentation/automations/contexts/AlertingManagementDialogContext.d.ts.map +1 -1
- package/esm/presentation/automations/contexts/AlertingManagementDialogContext.js +10 -0
- package/esm/presentation/automations/contexts/AutomationsContext.d.ts +10 -0
- package/esm/presentation/automations/contexts/AutomationsContext.d.ts.map +1 -1
- package/esm/presentation/automations/contexts/AutomationsContext.js +10 -0
- package/esm/presentation/automations/contexts/ScheduledEmailManagementDialogContext.d.ts +10 -0
- package/esm/presentation/automations/contexts/ScheduledEmailManagementDialogContext.d.ts.map +1 -1
- package/esm/presentation/automations/contexts/ScheduledEmailManagementDialogContext.js +10 -0
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/DefaultScheduledEmailDialog.d.ts +15 -10
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/DefaultScheduledEmailDialog.d.ts.map +1 -1
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/DefaultScheduledEmailDialog.js +45 -198
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/Attachments/DashboardAttachments.d.ts +2 -18
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/Attachments/DashboardAttachments.d.ts.map +1 -1
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/Attachments/WidgetAttachments.d.ts +2 -23
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/Attachments/WidgetAttachments.d.ts.map +1 -1
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/DefaultScheduledEmailDialogDashboardAttachments.d.ts +11 -0
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/DefaultScheduledEmailDialogDashboardAttachments.d.ts.map +1 -0
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/DefaultScheduledEmailDialogDashboardAttachments.js +12 -0
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/DefaultScheduledEmailDialogEvaluationMode.d.ts +11 -0
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/DefaultScheduledEmailDialogEvaluationMode.d.ts.map +1 -0
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/DefaultScheduledEmailDialogEvaluationMode.js +12 -0
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/DefaultScheduledEmailDialogMessage.d.ts +11 -0
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/DefaultScheduledEmailDialogMessage.d.ts.map +1 -0
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/DefaultScheduledEmailDialogMessage.js +12 -0
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/DefaultScheduledEmailDialogRecurrence.d.ts +11 -0
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/DefaultScheduledEmailDialogRecurrence.d.ts.map +1 -0
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/DefaultScheduledEmailDialogRecurrence.js +12 -0
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/DefaultScheduledEmailDialogSubject.d.ts +11 -0
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/DefaultScheduledEmailDialogSubject.d.ts.map +1 -0
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/DefaultScheduledEmailDialogSubject.js +12 -0
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/DefaultScheduledEmailDialogWidgetAttachments.d.ts +11 -0
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/DefaultScheduledEmailDialogWidgetAttachments.d.ts.map +1 -0
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/DefaultScheduledEmailDialogWidgetAttachments.js +12 -0
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/EvaluationModeCheckbox/EvaluationModeCheckbox.d.ts +2 -17
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/EvaluationModeCheckbox/EvaluationModeCheckbox.d.ts.map +1 -1
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/EvaluationModeCheckbox/EvaluationModeCheckbox.js +0 -3
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/MessageForm/MessageForm.d.ts +2 -6
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/MessageForm/MessageForm.d.ts.map +1 -1
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/RecipientsSelect/RecipientsSelect.js +1 -1
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/SubjectForm/SubjectForm.d.ts +2 -10
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/SubjectForm/SubjectForm.d.ts.map +1 -1
- package/esm/presentation/automations/scheduledEmail/ScheduledEmailManagementDialog.d.ts +4 -0
- package/esm/presentation/automations/scheduledEmail/ScheduledEmailManagementDialog.d.ts.map +1 -1
- package/esm/presentation/automations/scheduledEmail/ScheduledEmailManagementDialog.js +6 -2
- package/esm/presentation/automations/scheduledEmail/blocks/DefaultLoadingScheduledEmailDialog.d.ts.map +1 -0
- package/esm/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogDashboardAttachments.d.ts +16 -0
- package/esm/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogDashboardAttachments.d.ts.map +1 -0
- package/esm/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogDashboardAttachments.js +28 -0
- package/esm/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogEvaluationMode.d.ts +16 -0
- package/esm/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogEvaluationMode.d.ts.map +1 -0
- package/esm/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogEvaluationMode.js +28 -0
- package/esm/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogMessage.d.ts +15 -0
- package/esm/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogMessage.d.ts.map +1 -0
- package/esm/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogMessage.js +27 -0
- package/esm/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogRecurrence.d.ts +16 -0
- package/esm/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogRecurrence.d.ts.map +1 -0
- package/esm/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogRecurrence.js +24 -0
- package/esm/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogShell.d.ts +59 -0
- package/esm/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogShell.d.ts.map +1 -0
- package/esm/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogShell.js +195 -0
- package/esm/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogSubject.d.ts +16 -0
- package/esm/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogSubject.d.ts.map +1 -0
- package/esm/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogSubject.js +29 -0
- package/esm/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogWidgetAttachments.d.ts +16 -0
- package/esm/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogWidgetAttachments.d.ts.map +1 -0
- package/esm/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogWidgetAttachments.js +28 -0
- package/esm/presentation/automations/scheduledEmail/state/useIsInPlatformChannel.d.ts +6 -0
- package/esm/presentation/automations/scheduledEmail/state/useIsInPlatformChannel.d.ts.map +1 -0
- package/esm/presentation/automations/scheduledEmail/state/useIsInPlatformChannel.js +13 -0
- package/esm/presentation/automations/scheduledEmail/state/useScheduledEmailDialogFieldProps.d.ts +73 -0
- package/esm/presentation/automations/scheduledEmail/state/useScheduledEmailDialogFieldProps.d.ts.map +1 -0
- package/esm/presentation/automations/scheduledEmail/state/useScheduledEmailDialogFieldProps.js +168 -0
- package/esm/presentation/automations/scheduledEmail/state/useScheduledEmailSubmitOnEnter.d.ts +30 -0
- package/esm/presentation/automations/scheduledEmail/state/useScheduledEmailSubmitOnEnter.d.ts.map +1 -0
- package/esm/presentation/automations/scheduledEmail/state/useScheduledEmailSubmitOnEnter.js +26 -0
- package/esm/presentation/automations/scheduledEmail/types.d.ts +351 -1
- package/esm/presentation/automations/scheduledEmail/types.d.ts.map +1 -1
- package/esm/presentation/automations/shared/automationFilters/automationParameters.d.ts +8 -4
- package/esm/presentation/automations/shared/automationFilters/automationParameters.d.ts.map +1 -1
- package/esm/presentation/automations/shared/automationFilters/automationParameters.js +30 -13
- package/esm/presentation/automations/shared/automationFilters/components/AutomationParameter.d.ts.map +1 -1
- package/esm/presentation/automations/shared/automationFilters/components/AutomationParameter.js +1 -4
- package/esm/presentation/automations/shared/automationFilters/hooks/useValidateExistingAutomationFilters.d.ts.map +1 -1
- package/esm/presentation/automations/shared/automationFilters/hooks/useValidateExistingAutomationFilters.js +12 -7
- package/esm/presentation/automations/shared/automationFilters/useAutomationAlertParameters.d.ts.map +1 -1
- package/esm/presentation/automations/shared/automationFilters/useAutomationAlertParameters.js +3 -1
- package/esm/presentation/automations/shared/filters/conversions.d.ts.map +1 -1
- package/esm/presentation/automations/shared/filters/conversions.js +1 -2
- package/esm/presentation/automations/shared/hooks/useWorkspaceUsersSearch.d.ts +51 -0
- package/esm/presentation/automations/shared/hooks/useWorkspaceUsersSearch.d.ts.map +1 -0
- package/esm/presentation/automations/{scheduledEmail/DefaultScheduledEmailDialog/components/RecipientsSelect → shared/hooks}/useWorkspaceUsersSearch.js +13 -0
- package/esm/presentation/dashboard/components/DashboardRenderer.d.ts.map +1 -1
- package/esm/presentation/dashboard/components/DashboardRenderer.js +4 -1
- package/esm/presentation/dashboard/components/DashboardScreenSizeContext.js +1 -1
- package/esm/presentation/dashboard/types.d.ts +32 -2
- package/esm/presentation/dashboard/types.d.ts.map +1 -1
- package/esm/presentation/dashboardContexts/DashboardComponentsContext.d.ts +6 -2
- package/esm/presentation/dashboardContexts/DashboardComponentsContext.d.ts.map +1 -1
- package/esm/presentation/dashboardContexts/DashboardComponentsContext.js +3 -0
- package/esm/presentation/drill/DrillConfigPanel/DrillToUrl/CustomUrlEditor.d.ts.map +1 -1
- package/esm/presentation/drill/DrillConfigPanel/DrillToUrl/CustomUrlEditor.js +1 -2
- package/esm/presentation/filterBar/attributeFilter/AttributeFilterParentFilteringContext.d.ts.map +1 -1
- package/esm/presentation/filterBar/attributeFilter/AttributeFilterParentFilteringContext.js +1 -2
- package/esm/presentation/filterBar/attributeFilter/DefaultDashboardAttributeFilter.js +1 -3
- package/esm/presentation/filterBar/attributeFilter/useParentFilters.d.ts.map +1 -1
- package/esm/presentation/filterBar/attributeFilter/useParentFilters.js +1 -2
- package/esm/presentation/filterBar/parameterFilter/DashboardParameterFilter.d.ts.map +1 -1
- package/esm/presentation/filterBar/parameterFilter/DashboardParameterFilter.js +12 -8
- package/esm/presentation/localization/bundles/zh-HK.localization-bundle.js +91 -91
- package/esm/presentation/widget/insight/ViewModeDashboardInsight/useResolveDashboardInsightProperties.d.ts.map +1 -1
- package/esm/presentation/widget/insight/ViewModeDashboardInsight/useResolveDashboardInsightProperties.js +3 -35
- package/esm/presentation/widget/insightMenu/types.js +1 -1
- package/esm/presentation/widget/richTextMenu/types.d.ts.map +1 -1
- package/esm/presentation/widget/richTextMenu/types.js +2 -1
- package/esm/presentation/widget/widget/DefaultDashboardWidget.d.ts +2 -1
- package/esm/presentation/widget/widget/DefaultDashboardWidget.d.ts.map +1 -1
- package/esm/sdk-ui-dashboard.d.ts +1118 -161
- package/esm/types.d.ts +59 -3
- package/esm/types.d.ts.map +1 -1
- package/esm/types.js +2 -4
- package/package.json +23 -24
- package/styles/scss/dashboard.scss +4 -4
- package/esm/converters/filterConverters.d.ts +0 -93
- package/esm/converters/filterConverters.d.ts.map +0 -1
- package/esm/converters/filterConverters.js +0 -199
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/DefaultLoadingAlertingDialog.d.ts.map +0 -1
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/DefaultLoadingScheduledEmailDialog.d.ts.map +0 -1
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/RecipientsSelect/useWorkspaceUsersSearch.d.ts +0 -13
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/RecipientsSelect/useWorkspaceUsersSearch.d.ts.map +0 -1
- /package/esm/presentation/automations/alerting/{DefaultAlertingDialog → blocks}/DefaultLoadingAlertingDialog.d.ts +0 -0
- /package/esm/presentation/automations/alerting/{DefaultAlertingDialog → blocks}/DefaultLoadingAlertingDialog.js +0 -0
- /package/esm/presentation/automations/scheduledEmail/{DefaultScheduledEmailDialog → blocks}/DefaultLoadingScheduledEmailDialog.d.ts +0 -0
- /package/esm/presentation/automations/scheduledEmail/{DefaultScheduledEmailDialog → blocks}/DefaultLoadingScheduledEmailDialog.js +0 -0
package/esm/presentation/automations/alerting/DefaultAlertingDialog/DefaultAlertingDialog.js
CHANGED
|
@@ -1,110 +1,26 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
import { FormattedMessage, useIntl } from "react-intl";
|
|
5
|
-
import { ValidationContextStore, createInvalidDatapoint, createInvalidNode, useValidationContextValue, } from "@gooddata/sdk-ui";
|
|
6
|
-
import { ConfirmDialogBase, ContentDivider, Message, Overlay, OverlayController, OverlayControllerProvider, ScrollablePanel, useId, } from "@gooddata/sdk-ui-kit";
|
|
7
|
-
import { DASHBOARD_DIALOG_OVERS_Z_INDEX } from "../../../constants/zIndex.js";
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { FormattedMessage } from "react-intl";
|
|
3
|
+
import { ContentDivider } from "@gooddata/sdk-ui-kit";
|
|
8
4
|
import { IntlWrapper } from "../../../localization/IntlWrapper.js";
|
|
9
5
|
import { useAlertingDialogContext } from "../../contexts/AlertingDialogContext.js";
|
|
10
6
|
import { useAutomationsContext } from "../../contexts/AutomationsContext.js";
|
|
11
|
-
import { ApplyCurrentFiltersConfirmDialog } from "../../shared/automationFilters/components/ApplyLatestFiltersConfirmDialog.js";
|
|
12
|
-
import { AutomationDialogFooterLeft, DefaultAutomationDialogActionBar, } from "../../shared/slots/DefaultAutomationDialogActionBar.js";
|
|
13
7
|
import { AlertingDialogAttribute } from "../blocks/AlertingDialogAttribute.js";
|
|
14
8
|
import { AlertingDialogComparisonOperator } from "../blocks/AlertingDialogComparisonOperator.js";
|
|
15
9
|
import { AlertingDialogComparisonPeriod } from "../blocks/AlertingDialogComparisonPeriod.js";
|
|
10
|
+
import { AlertingDialogFormFieldGroup } from "../blocks/AlertingDialogFormFieldGroup.js";
|
|
16
11
|
import { AlertingDialogGranularity } from "../blocks/AlertingDialogGranularity.js";
|
|
17
12
|
import { AlertingDialogMeasure } from "../blocks/AlertingDialogMeasure.js";
|
|
18
13
|
import { AlertingDialogSensitivity } from "../blocks/AlertingDialogSensitivity.js";
|
|
14
|
+
import { AlertingDialogShell } from "../blocks/AlertingDialogShell.js";
|
|
19
15
|
import { AlertingDialogThreshold } from "../blocks/AlertingDialogThreshold.js";
|
|
20
16
|
import { AlertingDialogTriggerInterval } from "../blocks/AlertingDialogTriggerInterval.js";
|
|
21
17
|
import { AlertingDialogTriggerMode } from "../blocks/AlertingDialogTriggerMode.js";
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import { useAlertFilters } from "../state/AlertFiltersContext.js";
|
|
25
|
-
import { useAlertDialogValidity } from "../state/useAlertDialogValidity.js";
|
|
26
|
-
import { useAlertingDialogActionBarProps, useAlertingDialogDestinationProps, useAlertingDialogFiltersProps, useAlertingDialogHeaderProps, useAlertingDialogRecipientsProps, } from "../state/useAlertingDialogRegionProps.js";
|
|
18
|
+
import { DefaultLoadingAlertingDialog } from "../blocks/DefaultLoadingAlertingDialog.js";
|
|
19
|
+
import { useAlertingDialogDestinationProps, useAlertingDialogFiltersProps, useAlertingDialogRecipientsProps, } from "../state/useAlertingDialogRegionProps.js";
|
|
27
20
|
import { useAlertSubmit } from "../state/useAlertSubmit.js";
|
|
28
|
-
import { ALERTING_DIALOG_ID } from "./constants.js";
|
|
29
21
|
import { DefaultAlertingDialogDestination } from "./DefaultAlertingDialogDestination.js";
|
|
30
22
|
import { DefaultAlertingDialogFilters } from "./DefaultAlertingDialogFilters.js";
|
|
31
|
-
import { DefaultAlertingDialogHeader } from "./DefaultAlertingDialogHeader.js";
|
|
32
23
|
import { DefaultAlertingDialogRecipients } from "./DefaultAlertingDialogRecipients.js";
|
|
33
|
-
import { DefaultLoadingAlertingDialog } from "./DefaultLoadingAlertingDialog.js";
|
|
34
|
-
const overlayController = OverlayController.getInstance(DASHBOARD_DIALOG_OVERS_Z_INDEX);
|
|
35
|
-
export function AlertingDialogRenderer({ onCancel, onDeleteSuccess, onDeleteError, onError, onSuccess, onSaveError, onSaveSuccess, slots, topContent, bottomContent, }) {
|
|
36
|
-
const HeaderSlot = slots?.Header;
|
|
37
|
-
const FiltersSlot = slots?.Filters;
|
|
38
|
-
const DestinationSlot = slots?.Destination;
|
|
39
|
-
const RecipientsSlot = slots?.Recipients;
|
|
40
|
-
const ActionBarSlot = slots?.ActionBar;
|
|
41
|
-
const intl = useIntl();
|
|
42
|
-
const dialogTitleRef = useRef(null);
|
|
43
|
-
const { alertToEdit, notificationChannels } = useAlertingDialogContext();
|
|
44
|
-
const [alertToDelete, setAlertToDelete] = useState(null);
|
|
45
|
-
const handleAlertDeleteSuccess = (alert) => {
|
|
46
|
-
onDeleteSuccess?.(alert);
|
|
47
|
-
setAlertToDelete(null);
|
|
48
|
-
};
|
|
49
|
-
const { warningMessage } = useAlertDraft();
|
|
50
|
-
const { onApplyCurrentFilters, automationIsValid, filtersAreStale, dropStaleParameters } = useAlertFilters();
|
|
51
|
-
const { validationErrorMessage, isInvalidConnectionToInsight } = useAlertDialogValidity();
|
|
52
|
-
const [isApplyCurrentFiltersDialogOpen, setIsApplyCurrentFiltersDialogOpen] = useState(!automationIsValid);
|
|
53
|
-
const { isSaving, submit } = useAlertSubmit({ onSuccess, onError, onSaveSuccess, onSaveError });
|
|
54
|
-
const headerDefaultProps = useAlertingDialogHeaderProps({ onCancel, ref: dialogTitleRef });
|
|
55
|
-
const filtersDefaultProps = useAlertingDialogFiltersProps();
|
|
56
|
-
const destinationDefaultProps = useAlertingDialogDestinationProps();
|
|
57
|
-
const recipientsDefaultProps = useAlertingDialogRecipientsProps();
|
|
58
|
-
const actionBarDefaultProps = useAlertingDialogActionBarProps({
|
|
59
|
-
onCancel,
|
|
60
|
-
onSubmit: () => void submit(),
|
|
61
|
-
isSaving,
|
|
62
|
-
onDelete: () => setAlertToDelete(alertToEdit),
|
|
63
|
-
});
|
|
64
|
-
const validationContextValue = useValidationContextValue(createInvalidNode({ id: "AlertingDialog" }));
|
|
65
|
-
const { setInvalidDatapoints, getInvalidDatapoints } = validationContextValue;
|
|
66
|
-
const invalidDatapoints = getInvalidDatapoints();
|
|
67
|
-
useEffect(() => {
|
|
68
|
-
setInvalidDatapoints(() => [
|
|
69
|
-
!!validationErrorMessage &&
|
|
70
|
-
createInvalidDatapoint({
|
|
71
|
-
message: validationErrorMessage,
|
|
72
|
-
severity: isInvalidConnectionToInsight ? "error" : "warning",
|
|
73
|
-
}),
|
|
74
|
-
]);
|
|
75
|
-
}, [validationErrorMessage, isInvalidConnectionToInsight, setInvalidDatapoints]);
|
|
76
|
-
const titleElementId = useId();
|
|
77
|
-
if (isApplyCurrentFiltersDialogOpen) {
|
|
78
|
-
return (_jsx(ApplyCurrentFiltersConfirmDialog, { automationType: "alert", onCancel: () => onCancel?.(), onEdit: () => {
|
|
79
|
-
// Repair only what is actually stale: replace filters when they are invalid, and
|
|
80
|
-
// drop catalog-absent parameters. A valid saved filter set survives a param-only fix.
|
|
81
|
-
if (filtersAreStale) {
|
|
82
|
-
onApplyCurrentFilters();
|
|
83
|
-
}
|
|
84
|
-
dropStaleParameters();
|
|
85
|
-
setIsApplyCurrentFiltersDialogOpen(false);
|
|
86
|
-
} }));
|
|
87
|
-
}
|
|
88
|
-
return (_jsxs(_Fragment, { children: [
|
|
89
|
-
_jsx(Overlay, { className: "gd-notifications-channels-dialog-overlay", isModal: true, positionType: "fixed", ensureVisibility: true, children: _jsx(OverlayControllerProvider, { overlayController: overlayController, children: _jsx(ValidationContextStore, { value: validationContextValue, children: _jsxs(ConfirmDialogBase, { className: "gd-notifications-channels-dialog s-gd-notifications-channels-dialog gd-dialog--wide gd-notifications-channels-dialog--wide", isPositive: true, cancelButtonText: actionBarDefaultProps.cancelButtonText, submitButtonText: actionBarDefaultProps.submitButtonText, accessibilityConfig: {
|
|
90
|
-
closeButton: {
|
|
91
|
-
ariaLabel: intl.formatMessage({ id: "dialogs.alert.closeLabel" }),
|
|
92
|
-
},
|
|
93
|
-
titleElementId,
|
|
94
|
-
dialogId: ALERTING_DIALOG_ID,
|
|
95
|
-
}, showProgressIndicator: actionBarDefaultProps.isSaving, returnFocusAfterClose: false, footerLeftRenderer: ActionBarSlot
|
|
96
|
-
? undefined
|
|
97
|
-
: () => (_jsx(AutomationDialogFooterLeft, { helpLinkText: actionBarDefaultProps.helpLinkText, helpLinkHref: actionBarDefaultProps.helpLinkHref, deleteButtonText: actionBarDefaultProps.deleteButtonText, onDelete: actionBarDefaultProps.onDelete, isDeleteDisabled: actionBarDefaultProps.isSaving })), footerRenderer: ActionBarSlot
|
|
98
|
-
? () => (_jsx(ActionBarSlot, { Default: DefaultAutomationDialogActionBar, defaultProps: actionBarDefaultProps }))
|
|
99
|
-
: undefined, isSubmitDisabled: actionBarDefaultProps.isSubmitDisabled, submitButtonTooltipText: actionBarDefaultProps.submitButtonTooltipText, initialFocus: dialogTitleRef, submitOnEnterKey: false, onCancel: onCancel, onSubmit: actionBarDefaultProps.onSubmit, headline: undefined, headerLeftButtonRenderer: () => {
|
|
100
|
-
return HeaderSlot ? (_jsx(HeaderSlot, { Default: DefaultAlertingDialogHeader, defaultProps: headerDefaultProps })) : (_jsx(DefaultAlertingDialogHeader, { ...headerDefaultProps }));
|
|
101
|
-
}, children: [
|
|
102
|
-
_jsx("h2", { className: "sr-only", id: titleElementId, children: intl.formatMessage({ id: "dialogs.alert.accessibility.label.title" }) }), _jsxs(ScrollablePanel, { className: "gd-notifications-channel-dialog-content-wrapper gd-notification-channel-dialog-with-automation-filters", children: [topContent, _jsx("div", { className: "gd-divider-with-margin" }), _jsxs(_Fragment, { children: [FiltersSlot ? (_jsx(FiltersSlot, { Default: DefaultAlertingDialogFilters, defaultProps: filtersDefaultProps })) : (_jsx(DefaultAlertingDialogFilters, { ...filtersDefaultProps })), _jsx(ContentDivider, { className: "gd-divider-with-margin" })
|
|
103
|
-
] }), _jsxs(FormFieldGroup, { label: _jsx(FormattedMessage, { id: "insightAlert.config.when" }), children: [
|
|
104
|
-
_jsx(AlertingDialogMeasure, {}), _jsx(AlertingDialogAttribute, {}), _jsx(AlertingDialogComparisonOperator, {}), _jsx(AlertingDialogThreshold, {}), _jsx(AlertingDialogComparisonPeriod, {}), _jsx(AlertingDialogSensitivity, {}), _jsx(AlertingDialogGranularity, {})
|
|
105
|
-
] }), _jsx(ContentDivider, { className: "gd-divider-with-margin" }), _jsxs(FormFieldGroup, { label: _jsx(FormattedMessage, { id: "insightAlert.config.do" }), children: [notificationChannels.length > 1 ? (DestinationSlot ? (_jsx(DestinationSlot, { Default: DefaultAlertingDialogDestination, defaultProps: destinationDefaultProps })) : (_jsx(DefaultAlertingDialogDestination, { ...destinationDefaultProps }))) : null, _jsx(AlertingDialogTriggerMode, {}), _jsx(AlertingDialogTriggerInterval, {}), RecipientsSlot ? (_jsx(RecipientsSlot, { Default: DefaultAlertingDialogRecipients, defaultProps: recipientsDefaultProps })) : (_jsx(DefaultAlertingDialogRecipients, { ...recipientsDefaultProps }))] }), warningMessage ? (_jsx(Message, { type: "warning", className: "gd-notifications-channels-dialog-error", children: warningMessage })) : null, invalidDatapoints.map((datapoint) => (_jsx(Message, { id: datapoint.id, type: datapoint.severity === "info" ? "progress" : datapoint.severity, className: "gd-notifications-channels-dialog-error gd-notifications-channels-dialog-error-scrollable", children: datapoint.message }, datapoint.id))), bottomContent] })
|
|
106
|
-
] }) }) }) }), alertToDelete ? (_jsx(DeleteAlertConfirmDialog, { alert: alertToDelete, onCancel: () => setAlertToDelete(null), onSuccess: handleAlertDeleteSuccess, onError: onDeleteError })) : null] }));
|
|
107
|
-
}
|
|
108
24
|
/**
|
|
109
25
|
* Default implementation of the alerting create/edit dialog.
|
|
110
26
|
*
|
|
@@ -122,20 +38,20 @@ export function AlertingDialogRenderer({ onCancel, onDeleteSuccess, onDeleteErro
|
|
|
122
38
|
* that is what lets a wholesale replacement receive the same contexts. Rendering this component
|
|
123
39
|
* outside those providers throws at runtime.
|
|
124
40
|
*
|
|
125
|
-
* The dialog is
|
|
126
|
-
*
|
|
127
|
-
* {@link
|
|
128
|
-
*
|
|
129
|
-
* connected field blocks — {@link AlertingDialogMeasure},
|
|
130
|
-
* {@link AlertingDialogComparisonOperator}, {@link AlertingDialogThreshold},
|
|
131
|
-
* {@link AlertingDialogComparisonPeriod}, {@link AlertingDialogSensitivity},
|
|
132
|
-
* {@link
|
|
133
|
-
* {@link
|
|
134
|
-
* conditional ones
|
|
135
|
-
*
|
|
136
|
-
*
|
|
137
|
-
*
|
|
138
|
-
*
|
|
41
|
+
* The dialog is {@link AlertingDialogShell} — the chrome: overlay, frame, header row, action bar, the
|
|
42
|
+
* dialog's messages, the stale-filters and delete confirmation steps, the loading skeleton — around the
|
|
43
|
+
* exported region renders ({@link DefaultAlertingDialogFilters}, {@link DefaultAlertingDialogDestination},
|
|
44
|
+
* {@link DefaultAlertingDialogRecipients}, fed by {@link useAlertingDialogFiltersProps} and siblings; the
|
|
45
|
+
* header and action bar are the shell's) and the connected field blocks — {@link AlertingDialogMeasure},
|
|
46
|
+
* {@link AlertingDialogAttribute}, {@link AlertingDialogComparisonOperator}, {@link AlertingDialogThreshold},
|
|
47
|
+
* {@link AlertingDialogComparisonPeriod}, {@link AlertingDialogSensitivity}, {@link AlertingDialogGranularity},
|
|
48
|
+
* {@link AlertingDialogTriggerMode}, {@link AlertingDialogTriggerInterval} — grouped under the "When" and
|
|
49
|
+
* "Do" headings by {@link AlertingDialogFormFieldGroup}; each field is a labelled
|
|
50
|
+
* {@link AutomationDialogFormField} row and the conditional ones gate themselves on the draft. A custom
|
|
51
|
+
* `AlertingDialogComponent` that keeps this chrome but owns the arrangement renders
|
|
52
|
+
* {@link AlertingDialogShell} around the blocks it wants (see its example); one that owns the chrome too
|
|
53
|
+
* places the blocks in its own markup and reads or writes the same draft through {@link useAlertDraft} and
|
|
54
|
+
* {@link useAlertActions}.
|
|
139
55
|
*
|
|
140
56
|
* Slots render only in the fully rendered dialog: not while the dialog context reports loading,
|
|
141
57
|
* and not while the stale-filters confirmation step is shown.
|
|
@@ -149,10 +65,19 @@ export function DefaultAlertingDialog(props) {
|
|
|
149
65
|
if (isLoading) {
|
|
150
66
|
return _jsx(DefaultLoadingAlertingDialog, { onCancel: onCancel, alertToEdit: alertToEdit });
|
|
151
67
|
}
|
|
152
|
-
return (_jsx(IntlWrapper, { locale: locale, children: _jsx(
|
|
68
|
+
return (_jsx(IntlWrapper, { locale: locale, children: _jsx(DefaultAlertingDialogBody, { ...props }) }));
|
|
153
69
|
}
|
|
154
|
-
function
|
|
155
|
-
|
|
156
|
-
|
|
70
|
+
function DefaultAlertingDialogBody({ onCancel, onDeleteSuccess, onDeleteError, onError, onSuccess, onSaveError, onSaveSuccess, slots, topContent, bottomContent, }) {
|
|
71
|
+
const FiltersSlot = slots?.Filters;
|
|
72
|
+
const DestinationSlot = slots?.Destination;
|
|
73
|
+
const RecipientsSlot = slots?.Recipients;
|
|
74
|
+
const { notificationChannels } = useAlertingDialogContext();
|
|
75
|
+
const { isSaving, submit } = useAlertSubmit({ onSuccess, onError, onSaveSuccess, onSaveError });
|
|
76
|
+
const filtersDefaultProps = useAlertingDialogFiltersProps();
|
|
77
|
+
const destinationDefaultProps = useAlertingDialogDestinationProps();
|
|
78
|
+
const recipientsDefaultProps = useAlertingDialogRecipientsProps();
|
|
79
|
+
return (_jsxs(AlertingDialogShell, { onCancel: onCancel, onDeleteSuccess: onDeleteSuccess, onDeleteError: onDeleteError, onSubmit: () => void submit(), isSaving: isSaving, slots: slots, topContent: topContent, bottomContent: bottomContent, children: [FiltersSlot ? (_jsx(FiltersSlot, { Default: DefaultAlertingDialogFilters, defaultProps: filtersDefaultProps })) : (_jsx(DefaultAlertingDialogFilters, { ...filtersDefaultProps })), _jsx(ContentDivider, { className: "gd-divider-with-margin" }), _jsxs(AlertingDialogFormFieldGroup, { label: _jsx(FormattedMessage, { id: "insightAlert.config.when" }), children: [
|
|
80
|
+
_jsx(AlertingDialogMeasure, {}), _jsx(AlertingDialogAttribute, {}), _jsx(AlertingDialogComparisonOperator, {}), _jsx(AlertingDialogThreshold, {}), _jsx(AlertingDialogComparisonPeriod, {}), _jsx(AlertingDialogSensitivity, {}), _jsx(AlertingDialogGranularity, {})
|
|
81
|
+
] }), _jsx(ContentDivider, { className: "gd-divider-with-margin" }), _jsxs(AlertingDialogFormFieldGroup, { label: _jsx(FormattedMessage, { id: "insightAlert.config.do" }), children: [notificationChannels.length > 1 ? (DestinationSlot ? (_jsx(DestinationSlot, { Default: DefaultAlertingDialogDestination, defaultProps: destinationDefaultProps })) : (_jsx(DefaultAlertingDialogDestination, { ...destinationDefaultProps }))) : null, _jsx(AlertingDialogTriggerMode, {}), _jsx(AlertingDialogTriggerInterval, {}), RecipientsSlot ? (_jsx(RecipientsSlot, { Default: DefaultAlertingDialogRecipients, defaultProps: recipientsDefaultProps })) : (_jsx(DefaultAlertingDialogRecipients, { ...recipientsDefaultProps }))] })
|
|
157
82
|
] }));
|
|
158
83
|
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { type ReactElement } from "react";
|
|
2
|
+
import { type IAlertingDialogFormFieldGroupProps } from "../types.js";
|
|
3
|
+
/**
|
|
4
|
+
* A heading with a column of field rows under it — the default alerting dialog's "When" (the condition
|
|
5
|
+
* fields) and "Do" (the action fields) groups. Layout only; reads no dialog context.
|
|
6
|
+
*
|
|
7
|
+
* @alpha
|
|
8
|
+
*/
|
|
9
|
+
export declare function AlertingDialogFormFieldGroup({ label, children }: IAlertingDialogFormFieldGroupProps): ReactElement;
|
|
10
|
+
//# sourceMappingURL=AlertingDialogFormFieldGroup.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AlertingDialogFormFieldGroup.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/automations/alerting/blocks/AlertingDialogFormFieldGroup.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,OAAO,CAAC;AAE1C,OAAO,EAAE,KAAK,kCAAkC,EAAE,MAAM,aAAa,CAAC;AAEtE;;;;;GAKG;AACH,wBAAgB,4BAA4B,CAAC,EACzC,KAAK,EACL,QAAQ,EACX,EAAE,kCAAkC,GAAG,YAAY,CAWnD"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
/**
|
|
3
|
+
* A heading with a column of field rows under it — the default alerting dialog's "When" (the condition
|
|
4
|
+
* fields) and "Do" (the action fields) groups. Layout only; reads no dialog context.
|
|
5
|
+
*
|
|
6
|
+
* @alpha
|
|
7
|
+
*/
|
|
8
|
+
export function AlertingDialogFormFieldGroup({ label, children, }) {
|
|
9
|
+
return (_jsxs("div", { className: "gd-input-component gd-input-component--no-last-child-margin gd-dashboard-alerting-dialog-form-field-group", children: [
|
|
10
|
+
_jsx("div", { className: "gd-dashboard-alerting-dialog-form-field-group__label-container", children: _jsx("label", { className: "gd-label gd-dashboard-alerting-dialog-form-field-group__label", children: label }) }), _jsx("div", { className: "gd-dashboard-alerting-dialog-form-field-group__content-container", children: children })
|
|
11
|
+
] }));
|
|
12
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { type ReactElement } from "react";
|
|
2
|
+
import { type IAlertingDialogShellProps } from "../types.js";
|
|
3
|
+
/**
|
|
4
|
+
* The alerting dialog's chrome, connected to the dialog's state: the modal overlay, the dialog frame
|
|
5
|
+
* with the header row (the title input) and the action bar, the scrollable content area around
|
|
6
|
+
* `children`, the dialog's warning and validation messages, the stale-filters confirmation step shown
|
|
7
|
+
* before the dialog when the saved filters no longer match the dashboard, and the delete confirmation
|
|
8
|
+
* reached from the action bar in edit mode. While `useAlertingDialogContext().isLoading` is true it
|
|
9
|
+
* renders the loading skeleton and none of its children.
|
|
10
|
+
*
|
|
11
|
+
* The default dialog is `<AlertingDialogShell>` around the region and field blocks; a custom
|
|
12
|
+
* `AlertingDialogComponent` that keeps this chrome and arranges the blocks differently renders the shell
|
|
13
|
+
* itself. The shell does not own the submit: call {@link useAlertSubmit} and pass its `submit` and
|
|
14
|
+
* `isSaving`, so the footer button and any Enter handler in the body share one instance. Call that hook
|
|
15
|
+
* only once `useAlertingDialogContext().isLoading` is false — the state hooks throw while the dialog
|
|
16
|
+
* loads — and render the shell alone (any `onSubmit`, `isSaving: false`) until then, as the example does.
|
|
17
|
+
*
|
|
18
|
+
* Needs an ambient `IntlProvider`; inside a `Dashboard` the dashboard's provider covers it.
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* ```tsx
|
|
22
|
+
* function MyAlertingDialog(props: IAlertingDialogProps) {
|
|
23
|
+
* const { isLoading } = useAlertingDialogContext();
|
|
24
|
+
* // the state hooks throw while the dialog loads; the shell renders the loading skeleton
|
|
25
|
+
* if (isLoading) {
|
|
26
|
+
* return <AlertingDialogShell {...props} onSubmit={() => {}} isSaving={false} />;
|
|
27
|
+
* }
|
|
28
|
+
* return <MyAlertingDialogBody {...props} />;
|
|
29
|
+
* }
|
|
30
|
+
*
|
|
31
|
+
* function MyAlertingDialogBody(props: IAlertingDialogProps) {
|
|
32
|
+
* const { isSaving, submit } = useAlertSubmit(props);
|
|
33
|
+
* return (
|
|
34
|
+
* <AlertingDialogShell {...props} onSubmit={() => void submit()} isSaving={isSaving}>
|
|
35
|
+
* <AlertingDialogFormFieldGroup label="When">
|
|
36
|
+
* <AlertingDialogMeasure />
|
|
37
|
+
* <AlertingDialogComparisonOperator />
|
|
38
|
+
* <AlertingDialogThreshold />
|
|
39
|
+
* </AlertingDialogFormFieldGroup>
|
|
40
|
+
* <AlertingDialogRecipients />
|
|
41
|
+
* </AlertingDialogShell>
|
|
42
|
+
* );
|
|
43
|
+
* }
|
|
44
|
+
* ```
|
|
45
|
+
*
|
|
46
|
+
* @alpha
|
|
47
|
+
*/
|
|
48
|
+
export declare function AlertingDialogShell(props: IAlertingDialogShellProps): ReactElement;
|
|
49
|
+
//# sourceMappingURL=AlertingDialogShell.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AlertingDialogShell.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/automations/alerting/blocks/AlertingDialogShell.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,YAAY,EAA+B,MAAM,OAAO,CAAC;AAmCvE,OAAO,EAAE,KAAK,yBAAyB,EAAE,MAAM,aAAa,CAAC;AAM7D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4CG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,yBAAyB,GAAG,YAAY,CAMlF"}
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
// (C) 2026 GoodData Corporation
|
|
3
|
+
import { useEffect, useRef, useState } from "react";
|
|
4
|
+
import { useIntl } from "react-intl";
|
|
5
|
+
import { ValidationContextStore, createInvalidDatapoint, createInvalidNode, useValidationContextValue, } from "@gooddata/sdk-ui";
|
|
6
|
+
import { ConfirmDialogBase, Message, Overlay, OverlayController, OverlayControllerProvider, ScrollablePanel, useId, } from "@gooddata/sdk-ui-kit";
|
|
7
|
+
import { DASHBOARD_DIALOG_OVERS_Z_INDEX } from "../../../constants/zIndex.js";
|
|
8
|
+
import { useAlertingDialogContext } from "../../contexts/AlertingDialogContext.js";
|
|
9
|
+
import { ApplyCurrentFiltersConfirmDialog } from "../../shared/automationFilters/components/ApplyLatestFiltersConfirmDialog.js";
|
|
10
|
+
import { DefaultAutomationDialogActionBar } from "../../shared/slots/DefaultAutomationDialogActionBar.js";
|
|
11
|
+
import { ALERTING_DIALOG_ID } from "../DefaultAlertingDialog/constants.js";
|
|
12
|
+
import { DefaultAlertingDialogHeader } from "../DefaultAlertingDialog/DefaultAlertingDialogHeader.js";
|
|
13
|
+
import { DeleteAlertConfirmDialog } from "../DefaultAlertingManagementDialog/components/DeleteAlertConfirmDialog.js";
|
|
14
|
+
import { useAlertDraft } from "../state/AlertDraftContext.js";
|
|
15
|
+
import { useAlertFilters } from "../state/AlertFiltersContext.js";
|
|
16
|
+
import { useAlertDialogValidity } from "../state/useAlertDialogValidity.js";
|
|
17
|
+
import { useAlertingDialogActionBarProps, useAlertingDialogHeaderProps, } from "../state/useAlertingDialogRegionProps.js";
|
|
18
|
+
import { DefaultLoadingAlertingDialog } from "./DefaultLoadingAlertingDialog.js";
|
|
19
|
+
const overlayController = OverlayController.getInstance(DASHBOARD_DIALOG_OVERS_Z_INDEX);
|
|
20
|
+
/**
|
|
21
|
+
* The alerting dialog's chrome, connected to the dialog's state: the modal overlay, the dialog frame
|
|
22
|
+
* with the header row (the title input) and the action bar, the scrollable content area around
|
|
23
|
+
* `children`, the dialog's warning and validation messages, the stale-filters confirmation step shown
|
|
24
|
+
* before the dialog when the saved filters no longer match the dashboard, and the delete confirmation
|
|
25
|
+
* reached from the action bar in edit mode. While `useAlertingDialogContext().isLoading` is true it
|
|
26
|
+
* renders the loading skeleton and none of its children.
|
|
27
|
+
*
|
|
28
|
+
* The default dialog is `<AlertingDialogShell>` around the region and field blocks; a custom
|
|
29
|
+
* `AlertingDialogComponent` that keeps this chrome and arranges the blocks differently renders the shell
|
|
30
|
+
* itself. The shell does not own the submit: call {@link useAlertSubmit} and pass its `submit` and
|
|
31
|
+
* `isSaving`, so the footer button and any Enter handler in the body share one instance. Call that hook
|
|
32
|
+
* only once `useAlertingDialogContext().isLoading` is false — the state hooks throw while the dialog
|
|
33
|
+
* loads — and render the shell alone (any `onSubmit`, `isSaving: false`) until then, as the example does.
|
|
34
|
+
*
|
|
35
|
+
* Needs an ambient `IntlProvider`; inside a `Dashboard` the dashboard's provider covers it.
|
|
36
|
+
*
|
|
37
|
+
* @example
|
|
38
|
+
* ```tsx
|
|
39
|
+
* function MyAlertingDialog(props: IAlertingDialogProps) {
|
|
40
|
+
* const { isLoading } = useAlertingDialogContext();
|
|
41
|
+
* // the state hooks throw while the dialog loads; the shell renders the loading skeleton
|
|
42
|
+
* if (isLoading) {
|
|
43
|
+
* return <AlertingDialogShell {...props} onSubmit={() => {}} isSaving={false} />;
|
|
44
|
+
* }
|
|
45
|
+
* return <MyAlertingDialogBody {...props} />;
|
|
46
|
+
* }
|
|
47
|
+
*
|
|
48
|
+
* function MyAlertingDialogBody(props: IAlertingDialogProps) {
|
|
49
|
+
* const { isSaving, submit } = useAlertSubmit(props);
|
|
50
|
+
* return (
|
|
51
|
+
* <AlertingDialogShell {...props} onSubmit={() => void submit()} isSaving={isSaving}>
|
|
52
|
+
* <AlertingDialogFormFieldGroup label="When">
|
|
53
|
+
* <AlertingDialogMeasure />
|
|
54
|
+
* <AlertingDialogComparisonOperator />
|
|
55
|
+
* <AlertingDialogThreshold />
|
|
56
|
+
* </AlertingDialogFormFieldGroup>
|
|
57
|
+
* <AlertingDialogRecipients />
|
|
58
|
+
* </AlertingDialogShell>
|
|
59
|
+
* );
|
|
60
|
+
* }
|
|
61
|
+
* ```
|
|
62
|
+
*
|
|
63
|
+
* @alpha
|
|
64
|
+
*/
|
|
65
|
+
export function AlertingDialogShell(props) {
|
|
66
|
+
const { isLoading, alertToEdit } = useAlertingDialogContext();
|
|
67
|
+
if (isLoading) {
|
|
68
|
+
return _jsx(DefaultLoadingAlertingDialog, { onCancel: props.onCancel, alertToEdit: alertToEdit });
|
|
69
|
+
}
|
|
70
|
+
return _jsx(LoadedAlertingDialogShell, { ...props });
|
|
71
|
+
}
|
|
72
|
+
function LoadedAlertingDialogShell({ onCancel, onDeleteSuccess, onDeleteError, onSubmit, isSaving, slots, topContent, bottomContent, children, }) {
|
|
73
|
+
const HeaderSlot = slots?.Header;
|
|
74
|
+
const ActionBarSlot = slots?.ActionBar;
|
|
75
|
+
const intl = useIntl();
|
|
76
|
+
const dialogTitleRef = useRef(null);
|
|
77
|
+
const { alertToEdit } = useAlertingDialogContext();
|
|
78
|
+
const [alertToDelete, setAlertToDelete] = useState(null);
|
|
79
|
+
const handleAlertDeleteSuccess = (alert) => {
|
|
80
|
+
onDeleteSuccess?.(alert);
|
|
81
|
+
setAlertToDelete(null);
|
|
82
|
+
};
|
|
83
|
+
const { warningMessage } = useAlertDraft();
|
|
84
|
+
const { onApplyCurrentFilters, automationIsValid, filtersAreStale, dropStaleParameters } = useAlertFilters();
|
|
85
|
+
const { validationErrorMessage, isInvalidConnectionToInsight } = useAlertDialogValidity();
|
|
86
|
+
const [isApplyCurrentFiltersDialogOpen, setIsApplyCurrentFiltersDialogOpen] = useState(!automationIsValid);
|
|
87
|
+
const headerDefaultProps = useAlertingDialogHeaderProps({ onCancel, ref: dialogTitleRef });
|
|
88
|
+
const actionBarDefaultProps = useAlertingDialogActionBarProps({
|
|
89
|
+
onCancel,
|
|
90
|
+
onSubmit,
|
|
91
|
+
isSaving,
|
|
92
|
+
onDelete: () => setAlertToDelete(alertToEdit),
|
|
93
|
+
});
|
|
94
|
+
const validationContextValue = useValidationContextValue(createInvalidNode({ id: "AlertingDialog" }));
|
|
95
|
+
const { setInvalidDatapoints, getInvalidDatapoints } = validationContextValue;
|
|
96
|
+
const invalidDatapoints = getInvalidDatapoints();
|
|
97
|
+
useEffect(() => {
|
|
98
|
+
setInvalidDatapoints(() => [
|
|
99
|
+
!!validationErrorMessage &&
|
|
100
|
+
createInvalidDatapoint({
|
|
101
|
+
message: validationErrorMessage,
|
|
102
|
+
severity: isInvalidConnectionToInsight ? "error" : "warning",
|
|
103
|
+
}),
|
|
104
|
+
]);
|
|
105
|
+
}, [validationErrorMessage, isInvalidConnectionToInsight, setInvalidDatapoints]);
|
|
106
|
+
const titleElementId = useId();
|
|
107
|
+
if (isApplyCurrentFiltersDialogOpen) {
|
|
108
|
+
return (_jsx(ApplyCurrentFiltersConfirmDialog, { automationType: "alert", onCancel: () => onCancel?.(), onEdit: () => {
|
|
109
|
+
// Repair only what is actually stale: replace filters when they are invalid, and
|
|
110
|
+
// drop catalog-absent parameters. A valid saved filter set survives a param-only fix.
|
|
111
|
+
if (filtersAreStale) {
|
|
112
|
+
onApplyCurrentFilters();
|
|
113
|
+
}
|
|
114
|
+
dropStaleParameters();
|
|
115
|
+
setIsApplyCurrentFiltersDialogOpen(false);
|
|
116
|
+
} }));
|
|
117
|
+
}
|
|
118
|
+
return (_jsxs(_Fragment, { children: [
|
|
119
|
+
_jsx(Overlay, { className: "gd-notifications-channels-dialog-overlay", isModal: true, positionType: "fixed", ensureVisibility: true, children: _jsx(OverlayControllerProvider, { overlayController: overlayController, children: _jsx(ValidationContextStore, { value: validationContextValue, children: _jsxs(ConfirmDialogBase, { className: "gd-notifications-channels-dialog s-gd-notifications-channels-dialog gd-dialog--wide gd-notifications-channels-dialog--wide", accessibilityConfig: {
|
|
120
|
+
closeButton: {
|
|
121
|
+
ariaLabel: intl.formatMessage({ id: "dialogs.alert.closeLabel" }),
|
|
122
|
+
},
|
|
123
|
+
titleElementId,
|
|
124
|
+
dialogId: ALERTING_DIALOG_ID,
|
|
125
|
+
}, returnFocusAfterClose: false, footerRenderer: () => ActionBarSlot ? (_jsx(ActionBarSlot, { Default: DefaultAutomationDialogActionBar, defaultProps: actionBarDefaultProps })) : (_jsx(DefaultAutomationDialogActionBar, { ...actionBarDefaultProps })), isSubmitDisabled: actionBarDefaultProps.isSubmitDisabled, initialFocus: dialogTitleRef, submitOnEnterKey: false, onCancel: onCancel, onSubmit: actionBarDefaultProps.onSubmit, headline: undefined, headerLeftButtonRenderer: () => HeaderSlot ? (_jsx(HeaderSlot, { Default: DefaultAlertingDialogHeader, defaultProps: headerDefaultProps })) : (_jsx(DefaultAlertingDialogHeader, { ...headerDefaultProps })), children: [
|
|
126
|
+
_jsx("h2", { className: "sr-only", id: titleElementId, children: intl.formatMessage({ id: "dialogs.alert.accessibility.label.title" }) }), _jsxs(ScrollablePanel, { className: "gd-notifications-channel-dialog-content-wrapper gd-notification-channel-dialog-with-automation-filters", children: [topContent, _jsx("div", { className: "gd-divider-with-margin" }), children, warningMessage ? (_jsx(Message, { type: "warning", className: "gd-notifications-channels-dialog-error", children: warningMessage })) : null, invalidDatapoints.map((datapoint) => (_jsx(Message, { id: datapoint.id, type: datapoint.severity === "info" ? "progress" : datapoint.severity, className: "gd-notifications-channels-dialog-error gd-notifications-channels-dialog-error-scrollable", children: datapoint.message }, datapoint.id))), bottomContent] })
|
|
127
|
+
] }) }) }) }), alertToDelete ? (_jsx(DeleteAlertConfirmDialog, { alert: alertToDelete, onCancel: () => setAlertToDelete(null), onSuccess: handleAlertDeleteSuccess, onError: onDeleteError })) : null] }));
|
|
128
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DefaultLoadingAlertingDialog.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/automations/alerting/blocks/DefaultLoadingAlertingDialog.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,yBAAyB,EAAE,MAAM,qBAAqB,CAAC;AAarE,UAAU,kCAAkC;IACxC,WAAW,CAAC,EAAE,yBAAyB,CAAC;IACxC,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;CACzB;AAED,wBAAgB,4BAA4B,CAAC,EAAE,WAAW,EAAE,QAAQ,EAAE,EAAE,kCAAkC,2CAkDzG"}
|
|
@@ -559,6 +559,21 @@ export interface IDefaultAlertingDialogProps extends IAlertingDialogProps {
|
|
|
559
559
|
*/
|
|
560
560
|
bottomContent?: ReactNode;
|
|
561
561
|
}
|
|
562
|
+
/**
|
|
563
|
+
* Props of {@link AlertingDialogFormFieldGroup}.
|
|
564
|
+
*
|
|
565
|
+
* @alpha
|
|
566
|
+
*/
|
|
567
|
+
export interface IAlertingDialogFormFieldGroupProps {
|
|
568
|
+
/**
|
|
569
|
+
* The group heading in the label column — "When" (the condition) and "Do" (the action) in the default dialog.
|
|
570
|
+
*/
|
|
571
|
+
label: ReactNode;
|
|
572
|
+
/**
|
|
573
|
+
* The field rows of the group — {@link AlertingDialogMeasure} and its siblings.
|
|
574
|
+
*/
|
|
575
|
+
children: ReactNode;
|
|
576
|
+
}
|
|
562
577
|
/**
|
|
563
578
|
* @alpha
|
|
564
579
|
*/
|
|
@@ -651,6 +666,12 @@ export type CustomAlertingDialogComponent = ComponentType<IAlertingDialogProps>;
|
|
|
651
666
|
* false, and a decorator that overrides it corrupts the draft seed. Define the decorator
|
|
652
667
|
* outside render, or the dialog remounts (and reseeds) on every parent render.
|
|
653
668
|
*
|
|
669
|
+
* The contract: change the data, not what it means — every member keeps its documented meaning.
|
|
670
|
+
* The dialog does not check the decorated value; when you override a member, everything that
|
|
671
|
+
* reads it is your responsibility. Spread the value you read (`{ ...ctx, member }`) so the other
|
|
672
|
+
* members pass through. Wrap functions instead of replacing them. Do not touch members marked as
|
|
673
|
+
* internal machinery.
|
|
674
|
+
*
|
|
654
675
|
* @alpha
|
|
655
676
|
*/
|
|
656
677
|
export type CustomAlertingDialogContextDecoratorComponent = ComponentType<{
|
|
@@ -660,6 +681,50 @@ export type CustomAlertingDialogContextDecoratorComponent = ComponentType<{
|
|
|
660
681
|
* @alpha
|
|
661
682
|
*/
|
|
662
683
|
export type CustomAlertingManagementDialogComponent = ComponentType<IAlertingManagementDialogProps>;
|
|
684
|
+
/**
|
|
685
|
+
* Decorates the data the alerting management dialog reads.
|
|
686
|
+
*
|
|
687
|
+
* The dashboard mounts this component between the connector-provided management dialog context and
|
|
688
|
+
* the resolved management dialog component (default or replacement), so the value it re-provides is
|
|
689
|
+
* what the dialog reads. Read the current value with `useAlertingManagementDialogContext()`,
|
|
690
|
+
* decorate the members to adjust, and re-provide via `AlertingManagementDialogContextProvider`:
|
|
691
|
+
*
|
|
692
|
+
* @example
|
|
693
|
+
* ```tsx
|
|
694
|
+
* function AlertsListDecorator({ children }: { children?: ReactNode }) {
|
|
695
|
+
* const ctx = useAlertingManagementDialogContext();
|
|
696
|
+
* const { alerts, loading } = useMySelfFetchedAlerts(ctx.automations);
|
|
697
|
+
* const decorated = useMemo(
|
|
698
|
+
* () => ({ ...ctx, automations: alerts, isLoading: ctx.isLoading || loading }),
|
|
699
|
+
* [ctx, alerts, loading],
|
|
700
|
+
* );
|
|
701
|
+
* return (
|
|
702
|
+
* <AlertingManagementDialogContextProvider value={decorated}>
|
|
703
|
+
* {children}
|
|
704
|
+
* </AlertingManagementDialogContextProvider>
|
|
705
|
+
* );
|
|
706
|
+
* }
|
|
707
|
+
* // <Dashboard AlertingManagementDialogContextDecoratorComponent={AlertsListDecorator} />
|
|
708
|
+
* ```
|
|
709
|
+
*
|
|
710
|
+
* The management dialog has no state seeding — it renders from the context on every change, so a
|
|
711
|
+
* decorator may replace `automations` or extend `isLoading` (as above). Extend `isLoading` only
|
|
712
|
+
* as `ctx.isLoading || yourOwnLoading`, never force it: forced false shows the list before its
|
|
713
|
+
* data arrives, forced true hides it forever. `isLoading` here covers the automations load only —
|
|
714
|
+
* deliberately narrower than the scheduled-email management context's flag. Define the decorator
|
|
715
|
+
* outside render, or the dialog remounts on every parent render.
|
|
716
|
+
*
|
|
717
|
+
* The contract: change the data, not what it means — every member keeps its documented meaning.
|
|
718
|
+
* The dialog does not check the decorated value; when you override a member, everything that
|
|
719
|
+
* reads it is your responsibility. Spread the value you read (`{ ...ctx, member }`) so the other
|
|
720
|
+
* members pass through. Wrap functions instead of replacing them. Do not touch members marked as
|
|
721
|
+
* internal machinery.
|
|
722
|
+
*
|
|
723
|
+
* @alpha
|
|
724
|
+
*/
|
|
725
|
+
export type CustomAlertingManagementDialogContextDecoratorComponent = ComponentType<{
|
|
726
|
+
children?: ReactNode;
|
|
727
|
+
}>;
|
|
663
728
|
/**
|
|
664
729
|
* @alpha
|
|
665
730
|
*/
|
|
@@ -751,4 +816,48 @@ export type AlertAttribute = {
|
|
|
751
816
|
* @alpha
|
|
752
817
|
*/
|
|
753
818
|
export type AlertAiOperator = `${typeof AI_OPERATOR}.${typeof AI_OPERATORS.ANOMALY_DETECTION}`;
|
|
819
|
+
/**
|
|
820
|
+
* Props of {@link AlertingDialogShell}.
|
|
821
|
+
*
|
|
822
|
+
* @alpha
|
|
823
|
+
*/
|
|
824
|
+
export interface IAlertingDialogShellProps extends Pick<IAlertingDialogProps, "onCancel" | "onDeleteSuccess" | "onDeleteError"> {
|
|
825
|
+
/**
|
|
826
|
+
* The dialog's single submit — `submit` of the caller's {@link useAlertSubmit} instance. Drives the
|
|
827
|
+
* footer's submit button and the Enter key on it. The shell does not own the submit hook, so a
|
|
828
|
+
* caller's own Enter handler or button can share the same instance. Create the hook instance only
|
|
829
|
+
* once the dialog context reports `isLoading: false`.
|
|
830
|
+
*/
|
|
831
|
+
onSubmit: () => void;
|
|
832
|
+
/**
|
|
833
|
+
* `isSaving` of the same {@link useAlertSubmit} instance: disables submit and Delete and shows the
|
|
834
|
+
* footer's progress indicator.
|
|
835
|
+
*/
|
|
836
|
+
isSaving: boolean;
|
|
837
|
+
/**
|
|
838
|
+
* Header and action-bar overrides — the Level 1 slot contract ({@link IAlertingDialogSlots.Header},
|
|
839
|
+
* {@link IAlertingDialogSlots.ActionBar}): each slot receives `{ Default, defaultProps }`, where
|
|
840
|
+
* `defaultProps` are the shell's live values (the header's `onCancel` and initial-focus `ref`; the
|
|
841
|
+
* action bar's `onSubmit`, `isSaving`, `onDelete`). Slot components need a stable reference identity —
|
|
842
|
+
* see {@link @gooddata/sdk-ui-kit#ISlotProps}. The body regions have no slot here: place their blocks
|
|
843
|
+
* ({@link AlertingDialogFilters} and siblings) as children instead.
|
|
844
|
+
*/
|
|
845
|
+
slots?: Pick<IAlertingDialogSlots, "Header" | "ActionBar">;
|
|
846
|
+
/**
|
|
847
|
+
* Rendered first inside the dialog's scrollable content area, above `children`.
|
|
848
|
+
*/
|
|
849
|
+
topContent?: ReactNode;
|
|
850
|
+
/**
|
|
851
|
+
* Rendered last inside the scrollable content area, below `children` and the dialog's warning and
|
|
852
|
+
* validation messages.
|
|
853
|
+
*/
|
|
854
|
+
bottomContent?: ReactNode;
|
|
855
|
+
/**
|
|
856
|
+
* The body: the regions and fields, in the caller's order — {@link AlertingDialogFilters},
|
|
857
|
+
* {@link AlertingDialogFormFieldGroup} with the condition and action blocks, and so on. Not mounted
|
|
858
|
+
* while `useAlertingDialogContext().isLoading` is true (the shell shows its loading skeleton) or while
|
|
859
|
+
* the stale-filters confirmation step is shown.
|
|
860
|
+
*/
|
|
861
|
+
children?: ReactNode;
|
|
862
|
+
}
|
|
754
863
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/presentation/automations/alerting/types.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,aAAa,EAAE,KAAK,UAAU,EAAE,KAAK,SAAS,EAAE,KAAK,GAAG,EAAE,MAAM,OAAO,CAAC;AAEtF,OAAO,EACH,KAAK,wBAAwB,EAC7B,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,wBAAwB,EAC7B,KAAK,yBAAyB,EAC9B,KAAK,mCAAmC,EACxC,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,EACxB,KAAK,sBAAsB,EAC3B,KAAK,QAAQ,EACb,KAAK,QAAQ,EACb,KAAK,8BAA8B,EACnC,KAAK,kCAAkC,EACvC,KAAK,OAAO,EACf,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AACzD,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACtE,OAAO,EAAE,KAAK,UAAU,EAAE,KAAK,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAEjF,OAAO,EACH,KAAK,+BAA+B,EACpC,KAAK,iCAAiC,EACtC,KAAK,6BAA6B,EAClC,KAAK,4BAA4B,EACjC,KAAK,gCAAgC,EACxC,MAAM,0BAA0B,CAAC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WAAW,CAAC;CACvC,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,eAAe,GAAG,GAAG,OAAO,WAAW,IAAI,OAAO,YAAY,CAAC,iBAAiB,EAAE,CAAC;AAE/F;;;;GAIG;AACH,MAAM,WAAW,yBAA0B,SAAQ,IAAI,CACnD,oBAAoB,EACpB,UAAU,GAAG,iBAAiB,GAAG,eAAe,CACnD;IACG;;;;;OAKG;IACH,QAAQ,EAAE,MAAM,IAAI,CAAC;IAErB;;;OAGG;IACH,QAAQ,EAAE,OAAO,CAAC;IAElB;;;;;;;OAOG;IACH,KAAK,CAAC,EAAE,IAAI,CAAC,oBAAoB,EAAE,QAAQ,GAAG,WAAW,CAAC,CAAC;IAE3D;;OAEG;IACH,UAAU,CAAC,EAAE,SAAS,CAAC;IAEvB;;;OAGG;IACH,aAAa,CAAC,EAAE,SAAS,CAAC;IAE1B;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;CACxB"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { type ReactElement, type ReactNode } from "react";
|
|
2
2
|
/**
|
|
3
|
-
* Provides AutomationsContext to its children, built from dashboard Redux state
|
|
4
|
-
*
|
|
5
|
-
*
|
|
3
|
+
* Provides AutomationsContext to its children, built from dashboard Redux state, with the
|
|
4
|
+
* resolved context decorator mounted directly inside — so everything in the alerting dialog
|
|
5
|
+
* subtree (both the create/edit and management dialogs) reads the decorated value.
|
|
6
6
|
*
|
|
7
7
|
* @internal
|
|
8
8
|
*/
|
|
@@ -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;AA2B1D;;;;;;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"}
|