@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
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type ComponentType, type KeyboardEvent, type ReactNode, type Ref } from "react";
|
|
2
|
-
import { type FilterContextItem, type IAutomationMetadataObject, type IAutomationMetadataObjectDefinition, type IFilter, type IInsight, type INotificationChannelIdentifier, type INotificationChannelMetadataObject, type IWidget, type IdentifierRef, type ParameterValue } from "@gooddata/sdk-model";
|
|
2
|
+
import { type DashboardAttachmentType, type FilterContextItem, type IAutomationMetadataObject, type IAutomationMetadataObjectDefinition, type IExportDefinitionVisualizationObjectSettings, type IExportTemplate, type IFilter, type IInsight, type INotificationChannelIdentifier, type INotificationChannelMetadataObject, type IWidget, type IdentifierRef, type ParameterValue, type WeekStart, type WidgetAttachmentType } from "@gooddata/sdk-model";
|
|
3
3
|
import { type GoodDataSdkError } from "@gooddata/sdk-ui";
|
|
4
4
|
import { type ISlotProps } from "@gooddata/sdk-ui-kit";
|
|
5
5
|
import { type IAutomationFiltersTab } from "../../../model/store/filtering/types.js";
|
|
@@ -285,6 +285,247 @@ export interface IScheduledEmailDialogRecipientsProps extends IAutomationDialogR
|
|
|
285
285
|
*/
|
|
286
286
|
onKeyDownSubmit: (e: KeyboardEvent) => void;
|
|
287
287
|
}
|
|
288
|
+
/**
|
|
289
|
+
* Props of the scheduled-export dialog's recurrence field.
|
|
290
|
+
*
|
|
291
|
+
* @alpha
|
|
292
|
+
*/
|
|
293
|
+
export interface IScheduledEmailDialogRecurrenceProps {
|
|
294
|
+
/**
|
|
295
|
+
* First-run date the cron editor is anchored to.
|
|
296
|
+
*/
|
|
297
|
+
startDate: Date;
|
|
298
|
+
/**
|
|
299
|
+
* The draft's cron expression.
|
|
300
|
+
*/
|
|
301
|
+
cronExpression: string;
|
|
302
|
+
/**
|
|
303
|
+
* Human-readable description of the cron expression, when the draft carries one.
|
|
304
|
+
*/
|
|
305
|
+
cronDescription?: string;
|
|
306
|
+
/**
|
|
307
|
+
* Display-only timezone label shown in the occurrence description.
|
|
308
|
+
*/
|
|
309
|
+
timezone: string;
|
|
310
|
+
/**
|
|
311
|
+
* Date format used by the first-run date picker.
|
|
312
|
+
*/
|
|
313
|
+
dateFormat: string;
|
|
314
|
+
/**
|
|
315
|
+
* Locale of the recurrence editor.
|
|
316
|
+
*/
|
|
317
|
+
locale: string;
|
|
318
|
+
/**
|
|
319
|
+
* First day of the week in the date picker.
|
|
320
|
+
*/
|
|
321
|
+
weekStart: WeekStart;
|
|
322
|
+
/**
|
|
323
|
+
* Whether the hourly recurrence option is offered.
|
|
324
|
+
*/
|
|
325
|
+
allowHourlyRecurrence: boolean;
|
|
326
|
+
/**
|
|
327
|
+
* Hides GoodData-specific copy when white-labeled.
|
|
328
|
+
*/
|
|
329
|
+
isWhiteLabeled: boolean;
|
|
330
|
+
/**
|
|
331
|
+
* Closes the recurrence dropdowns when the dialog body scrolls.
|
|
332
|
+
*/
|
|
333
|
+
closeDropdownsOnParentScroll: boolean;
|
|
334
|
+
/**
|
|
335
|
+
* Sets the cron expression and first run; `isValid` is the recurrence form's own verdict.
|
|
336
|
+
*/
|
|
337
|
+
onChange: (cronExpression: string, startDate: Date | null, isValid: boolean) => void;
|
|
338
|
+
/**
|
|
339
|
+
* Key-down handler; the dialog submits on Enter through it.
|
|
340
|
+
*/
|
|
341
|
+
onKeyDownSubmit: (event: KeyboardEvent) => void;
|
|
342
|
+
}
|
|
343
|
+
/**
|
|
344
|
+
* Props of the scheduled-export dialog's subject field.
|
|
345
|
+
*
|
|
346
|
+
* @alpha
|
|
347
|
+
*/
|
|
348
|
+
export interface IScheduledEmailDialogSubjectProps {
|
|
349
|
+
/**
|
|
350
|
+
* Dashboard title, used as the subject placeholder (truncated to the title max length).
|
|
351
|
+
*/
|
|
352
|
+
dashboardTitle: string;
|
|
353
|
+
/**
|
|
354
|
+
* The export draft; the field renders `details.subject`.
|
|
355
|
+
*/
|
|
356
|
+
editedAutomation: IAutomationMetadataObjectDefinition;
|
|
357
|
+
/**
|
|
358
|
+
* Disables submit-on-Enter while the dialog is not submittable.
|
|
359
|
+
*/
|
|
360
|
+
isSubmitDisabled?: boolean;
|
|
361
|
+
/**
|
|
362
|
+
* Sets the e-mail subject; `isValid` is the field's own length verdict.
|
|
363
|
+
*/
|
|
364
|
+
onChange: (value: string, isValid: boolean) => void;
|
|
365
|
+
/**
|
|
366
|
+
* Called on Enter when submit is not disabled.
|
|
367
|
+
*/
|
|
368
|
+
onKeyDownSubmit: () => void;
|
|
369
|
+
}
|
|
370
|
+
/**
|
|
371
|
+
* Props of the scheduled-export dialog's message field.
|
|
372
|
+
*
|
|
373
|
+
* @alpha
|
|
374
|
+
*/
|
|
375
|
+
export interface IScheduledEmailDialogMessageProps {
|
|
376
|
+
/**
|
|
377
|
+
* The e-mail message text.
|
|
378
|
+
*/
|
|
379
|
+
value: string;
|
|
380
|
+
/**
|
|
381
|
+
* Sets the e-mail message; `isValid` is the field's own length verdict.
|
|
382
|
+
*/
|
|
383
|
+
onChange: (value: string, isValid: boolean) => void;
|
|
384
|
+
}
|
|
385
|
+
/**
|
|
386
|
+
* Props of the scheduled-export dialog's evaluation-mode checkbox.
|
|
387
|
+
*
|
|
388
|
+
* @alpha
|
|
389
|
+
*/
|
|
390
|
+
export interface IScheduledEmailDialogEvaluationModeProps {
|
|
391
|
+
/**
|
|
392
|
+
* Whether the evaluation mode is SHARED.
|
|
393
|
+
*/
|
|
394
|
+
isShared: boolean;
|
|
395
|
+
/**
|
|
396
|
+
* Switches between a shared and a per-recipient evaluation of the export.
|
|
397
|
+
*/
|
|
398
|
+
onChange: (isShared: boolean) => void;
|
|
399
|
+
}
|
|
400
|
+
/**
|
|
401
|
+
* Props of the scheduled-export dialog's dashboard-attachments field.
|
|
402
|
+
*
|
|
403
|
+
* @alpha
|
|
404
|
+
*/
|
|
405
|
+
export interface IScheduledEmailDialogDashboardAttachmentsProps {
|
|
406
|
+
/**
|
|
407
|
+
* The selected export formats.
|
|
408
|
+
*/
|
|
409
|
+
selectedAttachments: DashboardAttachmentType[];
|
|
410
|
+
/**
|
|
411
|
+
* Dashboard filters the export is scoped to; the control passes them back as the second
|
|
412
|
+
* argument of every {@link IScheduledEmailDialogDashboardAttachmentsProps.onDashboardAttachmentsChange}
|
|
413
|
+
* call.
|
|
414
|
+
*/
|
|
415
|
+
dashboardFilters?: FilterContextItem[];
|
|
416
|
+
/**
|
|
417
|
+
* When true and at least one attachment is selected, the control shows the notice that
|
|
418
|
+
* exports do not reflect cross-filtering.
|
|
419
|
+
*/
|
|
420
|
+
isCrossFiltering: boolean;
|
|
421
|
+
/**
|
|
422
|
+
* Replaces the selected dashboard export formats. Called with the complete new selection and
|
|
423
|
+
* the current {@link IScheduledEmailDialogDashboardAttachmentsProps.dashboardFilters}.
|
|
424
|
+
*/
|
|
425
|
+
onDashboardAttachmentsChange: (formats: DashboardAttachmentType[], filters?: FilterContextItem[]) => void;
|
|
426
|
+
/**
|
|
427
|
+
* XLSX export settings shown in the attachment's settings editor.
|
|
428
|
+
*/
|
|
429
|
+
xlsxSettings: IExportDefinitionVisualizationObjectSettings;
|
|
430
|
+
/**
|
|
431
|
+
* Sets the XLSX export settings.
|
|
432
|
+
*/
|
|
433
|
+
onXlsxSettingsChange: (settings: IExportDefinitionVisualizationObjectSettings) => void;
|
|
434
|
+
/**
|
|
435
|
+
* Whether the slide-based formats (PPTX, PDF slides) are offered; when false they are
|
|
436
|
+
* excluded from the add-attachment options.
|
|
437
|
+
*/
|
|
438
|
+
isSlidesExportEnabled: boolean;
|
|
439
|
+
/**
|
|
440
|
+
* Export templates offered in the template picker of the slide-based formats.
|
|
441
|
+
*/
|
|
442
|
+
exportTemplates?: IExportTemplate[];
|
|
443
|
+
/**
|
|
444
|
+
* The template chosen per slide-based format; undefined where the default template applies.
|
|
445
|
+
*/
|
|
446
|
+
slidesTemplateIds?: {
|
|
447
|
+
PPTX?: string;
|
|
448
|
+
PDF_SLIDES?: string;
|
|
449
|
+
PDF?: string;
|
|
450
|
+
};
|
|
451
|
+
/**
|
|
452
|
+
* Sets the export template of one slide-based format.
|
|
453
|
+
*/
|
|
454
|
+
onSlidesTemplateIdChange?: (templateId: string | undefined, format: "PPTX" | "PDF_SLIDES" | "PDF") => void;
|
|
455
|
+
}
|
|
456
|
+
/**
|
|
457
|
+
* Props of the scheduled-export dialog's widget-attachments field.
|
|
458
|
+
*
|
|
459
|
+
* @alpha
|
|
460
|
+
*/
|
|
461
|
+
export interface IScheduledEmailDialogWidgetAttachmentsProps {
|
|
462
|
+
/**
|
|
463
|
+
* The selected export formats.
|
|
464
|
+
*/
|
|
465
|
+
selectedAttachments: WidgetAttachmentType[];
|
|
466
|
+
/**
|
|
467
|
+
* Replaces the selected widget export formats with the complete new selection.
|
|
468
|
+
*/
|
|
469
|
+
onWidgetAttachmentsChange: (formats: WidgetAttachmentType[]) => void;
|
|
470
|
+
/**
|
|
471
|
+
* XLSX export settings shown in the attachment's settings editor.
|
|
472
|
+
*/
|
|
473
|
+
xlsxSettings: IExportDefinitionVisualizationObjectSettings;
|
|
474
|
+
/**
|
|
475
|
+
* Sets the XLSX export settings.
|
|
476
|
+
*/
|
|
477
|
+
onXlsxSettingsChange: (settings: IExportDefinitionVisualizationObjectSettings) => void;
|
|
478
|
+
/**
|
|
479
|
+
* Tabular-PDF export settings shown in the attachment's settings editor.
|
|
480
|
+
*/
|
|
481
|
+
pdfSettings: IExportDefinitionVisualizationObjectSettings;
|
|
482
|
+
/**
|
|
483
|
+
* Sets the tabular-PDF export settings.
|
|
484
|
+
*/
|
|
485
|
+
onPdfSettingsChange: (settings: IExportDefinitionVisualizationObjectSettings) => void;
|
|
486
|
+
/**
|
|
487
|
+
* CSV export settings shown in the attachment's settings editor.
|
|
488
|
+
*/
|
|
489
|
+
csvSettings: IExportDefinitionVisualizationObjectSettings;
|
|
490
|
+
/**
|
|
491
|
+
* Sets the CSV export settings.
|
|
492
|
+
*/
|
|
493
|
+
onCsvSettingsChange: (settings: IExportDefinitionVisualizationObjectSettings) => void;
|
|
494
|
+
/**
|
|
495
|
+
* Raw-CSV export settings shown in the attachment's settings editor.
|
|
496
|
+
*/
|
|
497
|
+
csvRawSettings: IExportDefinitionVisualizationObjectSettings;
|
|
498
|
+
/**
|
|
499
|
+
* Sets the raw-CSV export settings.
|
|
500
|
+
*/
|
|
501
|
+
onCsvRawSettingsChange: (settings: IExportDefinitionVisualizationObjectSettings) => void;
|
|
502
|
+
/**
|
|
503
|
+
* Whether the slide-based formats (PPTX, PDF) are offered; when false they are excluded
|
|
504
|
+
* from the add-attachment options.
|
|
505
|
+
*/
|
|
506
|
+
isSlidesExportEnabled: boolean;
|
|
507
|
+
/**
|
|
508
|
+
* When true, formats without an accessible rendering (PDF_TABULAR) are excluded from the
|
|
509
|
+
* add-attachment options.
|
|
510
|
+
*/
|
|
511
|
+
isAccessibilityModeEnabled: boolean;
|
|
512
|
+
/**
|
|
513
|
+
* Export templates offered in the template picker of the slide-based formats.
|
|
514
|
+
*/
|
|
515
|
+
exportTemplates?: IExportTemplate[];
|
|
516
|
+
/**
|
|
517
|
+
* The template chosen per slide-based format; undefined where the default template applies.
|
|
518
|
+
*/
|
|
519
|
+
slidesTemplateIds?: {
|
|
520
|
+
PPTX?: string;
|
|
521
|
+
PDF_SLIDES?: string;
|
|
522
|
+
PDF?: string;
|
|
523
|
+
};
|
|
524
|
+
/**
|
|
525
|
+
* Sets the export template of one slide-based format.
|
|
526
|
+
*/
|
|
527
|
+
onSlidesTemplateIdChange?: (templateId: string | undefined, format: "PPTX" | "PDF_SLIDES" | "PDF") => void;
|
|
528
|
+
}
|
|
288
529
|
/**
|
|
289
530
|
* Section-level overrides of the default scheduled email dialog.
|
|
290
531
|
*
|
|
@@ -410,6 +651,63 @@ export interface IDefaultScheduledEmailDialogProps extends IScheduledEmailDialog
|
|
|
410
651
|
*/
|
|
411
652
|
bottomContent?: ReactNode;
|
|
412
653
|
}
|
|
654
|
+
/**
|
|
655
|
+
* Props of {@link ScheduledEmailDialogShell}.
|
|
656
|
+
*
|
|
657
|
+
* @alpha
|
|
658
|
+
*/
|
|
659
|
+
export interface IScheduledEmailDialogShellProps extends Pick<IScheduledEmailDialogProps, "onCancel" | "onBack" | "onDeleteSuccess" | "onDeleteError"> {
|
|
660
|
+
/**
|
|
661
|
+
* The dialog's single save — `handleSaveScheduledEmail` of the caller's
|
|
662
|
+
* {@link useSaveScheduledEmailToBackend} instance. Drives the footer's submit button, the Enter key on
|
|
663
|
+
* it, and the header's Enter-to-submit. (Not the `onSubmit` observer of {@link IScheduledEmailDialogProps};
|
|
664
|
+
* that one goes to the save hook.) The shell does not own the save hook, so the caller's own Enter
|
|
665
|
+
* handlers — {@link useScheduledEmailSubmitOnEnter} — share the same instance. Create the hook instance
|
|
666
|
+
* only once the dialog context reports `isLoading: false`.
|
|
667
|
+
*/
|
|
668
|
+
onSubmit: () => void;
|
|
669
|
+
/**
|
|
670
|
+
* `isSavingScheduledEmail` of the same instance: disables submit and Delete and shows the footer's
|
|
671
|
+
* progress indicator.
|
|
672
|
+
*/
|
|
673
|
+
isSaving: boolean;
|
|
674
|
+
/**
|
|
675
|
+
* `savingErrorMessage` of the same instance; shown as the body's error message, ahead of the form's
|
|
676
|
+
* validation message.
|
|
677
|
+
*/
|
|
678
|
+
savingErrorMessage?: string;
|
|
679
|
+
/**
|
|
680
|
+
* Header, action-bar and Filters-tab overrides — the Level 1 slot contract
|
|
681
|
+
* ({@link IScheduledEmailDialogSlots.Header}, {@link IScheduledEmailDialogSlots.ActionBar},
|
|
682
|
+
* {@link IScheduledEmailDialogSlots.Filters}): each slot receives `{ Default, defaultProps }` with the
|
|
683
|
+
* shell's live values. Slot components need a stable reference identity — see
|
|
684
|
+
* {@link @gooddata/sdk-ui-kit#ISlotProps}. `Filters` is ignored when `filtersTabContent` is passed. The
|
|
685
|
+
* General-tab regions have no slot here: place their blocks ({@link ScheduledEmailDialogDestination} and
|
|
686
|
+
* siblings) as children instead.
|
|
687
|
+
*/
|
|
688
|
+
slots?: Pick<IScheduledEmailDialogSlots, "Header" | "ActionBar" | "Filters">;
|
|
689
|
+
/**
|
|
690
|
+
* Rendered first inside the dialog's scrollable content area, above the selected tab's content.
|
|
691
|
+
*/
|
|
692
|
+
topContent?: ReactNode;
|
|
693
|
+
/**
|
|
694
|
+
* Rendered last inside the scrollable content area, below the selected tab's content.
|
|
695
|
+
*/
|
|
696
|
+
bottomContent?: ReactNode;
|
|
697
|
+
/**
|
|
698
|
+
* The General tab's content: the regions and fields, in the caller's order. Rendered only while the
|
|
699
|
+
* General tab is selected; not mounted while `useScheduledEmailDialogContext().isLoading` is true (the
|
|
700
|
+
* shell shows its loading skeleton — on scheduled email the ordinary path while a widget export's
|
|
701
|
+
* filters load) or while the stale-filters confirmation step is shown.
|
|
702
|
+
*/
|
|
703
|
+
children?: ReactNode;
|
|
704
|
+
/**
|
|
705
|
+
* The Filters tab's content. Defaults to the dialog's filters region ({@link DefaultScheduledEmailDialogFilters}
|
|
706
|
+
* with {@link useScheduledEmailDialogFiltersProps}, or the `Filters` slot). Rendered only while the Filters
|
|
707
|
+
* tab is selected. An explicit `null` counts as provided and renders an empty Filters tab.
|
|
708
|
+
*/
|
|
709
|
+
filtersTabContent?: ReactNode;
|
|
710
|
+
}
|
|
413
711
|
/**
|
|
414
712
|
*
|
|
415
713
|
* @alpha
|
|
@@ -495,6 +793,12 @@ export type CustomScheduledEmailDialogComponent = ComponentType<IScheduledEmailD
|
|
|
495
793
|
* corrupts the draft seed on every such open, not in an edge case. Define the decorator outside
|
|
496
794
|
* render, or the dialog remounts (and reseeds) on every parent render.
|
|
497
795
|
*
|
|
796
|
+
* The contract: change the data, not what it means — every member keeps its documented meaning.
|
|
797
|
+
* The dialog does not check the decorated value; when you override a member, everything that
|
|
798
|
+
* reads it is your responsibility. Spread the value you read (`{ ...ctx, member }`) so the other
|
|
799
|
+
* members pass through. Wrap functions instead of replacing them. Do not touch members marked as
|
|
800
|
+
* internal machinery.
|
|
801
|
+
*
|
|
498
802
|
* @alpha
|
|
499
803
|
*/
|
|
500
804
|
export type CustomScheduledEmailDialogContextDecoratorComponent = ComponentType<{
|
|
@@ -504,4 +808,50 @@ export type CustomScheduledEmailDialogContextDecoratorComponent = ComponentType<
|
|
|
504
808
|
* @alpha
|
|
505
809
|
*/
|
|
506
810
|
export type CustomScheduledEmailManagementDialogComponent = ComponentType<IScheduledEmailManagementDialogProps>;
|
|
811
|
+
/**
|
|
812
|
+
* Decorates the data the scheduled email management dialog reads.
|
|
813
|
+
*
|
|
814
|
+
* The dashboard mounts this component between the connector-provided management dialog context and
|
|
815
|
+
* the resolved management dialog component (default or replacement), so the value it re-provides is
|
|
816
|
+
* what the dialog reads. Read the current value with `useScheduledEmailManagementDialogContext()`,
|
|
817
|
+
* decorate the members to adjust, and re-provide via
|
|
818
|
+
* `ScheduledEmailManagementDialogContextProvider`:
|
|
819
|
+
*
|
|
820
|
+
* @example
|
|
821
|
+
* ```tsx
|
|
822
|
+
* function SchedulesListDecorator({ children }: { children?: ReactNode }) {
|
|
823
|
+
* const ctx = useScheduledEmailManagementDialogContext();
|
|
824
|
+
* const { schedules, loading } = useMySelfFetchedSchedules(ctx.automations);
|
|
825
|
+
* const decorated = useMemo(
|
|
826
|
+
* () => ({ ...ctx, automations: schedules, isLoading: ctx.isLoading || loading }),
|
|
827
|
+
* [ctx, schedules, loading],
|
|
828
|
+
* );
|
|
829
|
+
* return (
|
|
830
|
+
* <ScheduledEmailManagementDialogContextProvider value={decorated}>
|
|
831
|
+
* {children}
|
|
832
|
+
* </ScheduledEmailManagementDialogContextProvider>
|
|
833
|
+
* );
|
|
834
|
+
* }
|
|
835
|
+
* // <Dashboard ScheduledEmailManagementDialogContextDecoratorComponent={SchedulesListDecorator} />
|
|
836
|
+
* ```
|
|
837
|
+
*
|
|
838
|
+
* The management dialog has no state seeding — it renders from the context on every change, so a
|
|
839
|
+
* decorator may replace `automations` or extend `isLoading` (as above). Extend `isLoading` only
|
|
840
|
+
* as `ctx.isLoading || yourOwnLoading`, never force it: forced false shows the list before its
|
|
841
|
+
* data arrives, forced true hides it forever. `isLoading` here may also cover a widget-filters
|
|
842
|
+
* load while a widget-scoped create/edit dialog is open — deliberately broader than the alerting
|
|
843
|
+
* management context's automations-only flag. Define the decorator outside render, or the dialog
|
|
844
|
+
* remounts on every parent render.
|
|
845
|
+
*
|
|
846
|
+
* The contract: change the data, not what it means — every member keeps its documented meaning.
|
|
847
|
+
* The dialog does not check the decorated value; when you override a member, everything that
|
|
848
|
+
* reads it is your responsibility. Spread the value you read (`{ ...ctx, member }`) so the other
|
|
849
|
+
* members pass through. Wrap functions instead of replacing them. Do not touch members marked as
|
|
850
|
+
* internal machinery.
|
|
851
|
+
*
|
|
852
|
+
* @alpha
|
|
853
|
+
*/
|
|
854
|
+
export type CustomScheduledEmailManagementDialogContextDecoratorComponent = ComponentType<{
|
|
855
|
+
children?: ReactNode;
|
|
856
|
+
}>;
|
|
507
857
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/presentation/automations/scheduledEmail/types.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,aAAa,EAAE,KAAK,aAAa,EAAE,KAAK,SAAS,EAAE,KAAK,GAAG,EAAE,MAAM,OAAO,CAAC;AAEzF,OAAO,EACH,KAAK,iBAAiB,EACtB,KAAK,yBAAyB,EAC9B,KAAK,mCAAmC,EACxC,KAAK,OAAO,EACZ,KAAK,QAAQ,EACb,KAAK,8BAA8B,EACnC,KAAK,kCAAkC,EACvC,KAAK,OAAO,EACZ,KAAK,aAAa,EAClB,KAAK,cAAc,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/presentation/automations/scheduledEmail/types.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,aAAa,EAAE,KAAK,aAAa,EAAE,KAAK,SAAS,EAAE,KAAK,GAAG,EAAE,MAAM,OAAO,CAA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AExD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AACH,MAAM,MAAM,6DAA6D,GAAG,aAAa,CAAC;IACtF,QAAQ,CAAC,EAAE,SAAS,CAAC;CACxB,CAAC,CAAC"}
|
|
@@ -32,11 +32,15 @@ export interface IAutomationParameter {
|
|
|
32
32
|
/**
|
|
33
33
|
* Stored {@link IInsightParameterValue} overrides carry only {ref, value}; title, mode and
|
|
34
34
|
* definition are re-derived from the current dashboard and workspace catalog. Rows without a
|
|
35
|
-
* resolvable definition (see {@link resolveParameterDefinition}) are dropped
|
|
35
|
+
* resolvable definition (see {@link resolveParameterDefinition}) are dropped; a value whose kind
|
|
36
|
+
* arrives as an untyped wire string is decoded against the definition (see
|
|
37
|
+
* {@link decodeParameterWireValue}) so the chip still renders. Pass `valuesAreUntypedWire` for
|
|
38
|
+
* alert overrides, whose loaded values are untyped strings; export overrides are decoded by their
|
|
39
|
+
* own type tag before they get here, so their strings are already authoritative.
|
|
36
40
|
*
|
|
37
41
|
* @internal
|
|
38
42
|
*/
|
|
39
|
-
export declare function reconstructAutomationParametersFromValues(stored: IInsightParameterValue[], dashboardParameters: IDashboardParameter[], catalog: IParameterMetadataObject[], isStringParametersEnabled: boolean): IAutomationParameter[];
|
|
43
|
+
export declare function reconstructAutomationParametersFromValues(stored: IInsightParameterValue[], dashboardParameters: IDashboardParameter[], catalog: IParameterMetadataObject[], isStringParametersEnabled: boolean, valuesAreUntypedWire?: boolean): IAutomationParameter[];
|
|
40
44
|
/**
|
|
41
45
|
* Stored export overrides ({@link IDashboardExportParameter}) carry the value as a string; it is
|
|
42
46
|
* decoded back by the row's own type tag (see `exportParametersToValues`). Title, mode and
|
|
@@ -63,8 +67,8 @@ export declare function availableAutomationParameters(catalog: IParameterMetadat
|
|
|
63
67
|
export declare function setAlertExecutionParameters(automation: IAutomationMetadataObjectDefinition, parameters: IInsightParameterValue[]): IAutomationMetadataObjectDefinition;
|
|
64
68
|
/**
|
|
65
69
|
* A param dropped from the *dashboard* is not stale: parameters are workspace-scoped, so only
|
|
66
|
-
* removal from the workspace catalog counts — as does a
|
|
67
|
-
*
|
|
70
|
+
* removal from the workspace catalog counts — as does a stored value that cannot be decoded
|
|
71
|
+
* against the current definition (see {@link decodeParameterWireValue}).
|
|
68
72
|
*
|
|
69
73
|
* @internal
|
|
70
74
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"automationParameters.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/automations/shared/automationFilters/automationParameters.ts"],"names":[],"mappings":"AAEA,OAAO,EACH,KAAK,sBAAsB,EAE3B,KAAK,mCAAmC,EACxC,KAAK,yBAAyB,EAC9B,KAAK,mBAAmB,EACxB,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,KAAK,wBAAwB,EAC7B,KAAK,aAAa,EAClB,KAAK,cAAc,
|
|
1
|
+
{"version":3,"file":"automationParameters.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/automations/shared/automationFilters/automationParameters.ts"],"names":[],"mappings":"AAEA,OAAO,EACH,KAAK,sBAAsB,EAE3B,KAAK,mCAAmC,EACxC,KAAK,yBAAyB,EAC9B,KAAK,mBAAmB,EACxB,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,KAAK,wBAAwB,EAC7B,KAAK,aAAa,EAClB,KAAK,cAAc,EAItB,MAAM,qBAAqB,CAAC;AAQ7B;;;;;;GAMG;AACH,MAAM,WAAW,oBAAoB;IACjC;;OAEG;IACH,GAAG,EAAE,aAAa,CAAC;IAEnB;;;OAGG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,KAAK,EAAE,cAAc,CAAC;IAEtB;;OAEG;IACH,IAAI,EAAE,sBAAsB,CAAC;IAE7B;;OAEG;IACH,UAAU,EAAE,oBAAoB,CAAC;CACpC;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,yCAAyC,CACrD,MAAM,EAAE,sBAAsB,EAAE,EA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GAKG;AACH,wBAAgB,2BAA2B,CAAC,gBAAgB,EAAE,OAAO,EAAE,YAAY,UAAQ,GAAG,OAAO,CAEpG"}
|
|
@@ -1,28 +1,36 @@
|
|
|
1
1
|
// (C) 2026 GoodData Corporation
|
|
2
|
-
import { DashboardParameterModeValues, isIdentifierRef, objRefToString,
|
|
3
|
-
import { exportParametersToValues } from "../../../../_staging/automation/index.js";
|
|
2
|
+
import { DashboardParameterModeValues, isIdentifierRef, objRefToString, sanitizeParameterValue, } from "@gooddata/sdk-model";
|
|
3
|
+
import { decodeParameterWireValue, exportParametersToValues, parseNumberWireValue, } from "../../../../_staging/automation/index.js";
|
|
4
4
|
/**
|
|
5
5
|
* Stored {@link IInsightParameterValue} overrides carry only {ref, value}; title, mode and
|
|
6
6
|
* definition are re-derived from the current dashboard and workspace catalog. Rows without a
|
|
7
|
-
* resolvable definition (see {@link resolveParameterDefinition}) are dropped
|
|
7
|
+
* resolvable definition (see {@link resolveParameterDefinition}) are dropped; a value whose kind
|
|
8
|
+
* arrives as an untyped wire string is decoded against the definition (see
|
|
9
|
+
* {@link decodeParameterWireValue}) so the chip still renders. Pass `valuesAreUntypedWire` for
|
|
10
|
+
* alert overrides, whose loaded values are untyped strings; export overrides are decoded by their
|
|
11
|
+
* own type tag before they get here, so their strings are already authoritative.
|
|
8
12
|
*
|
|
9
13
|
* @internal
|
|
10
14
|
*/
|
|
11
|
-
export function reconstructAutomationParametersFromValues(stored, dashboardParameters, catalog, isStringParametersEnabled) {
|
|
15
|
+
export function reconstructAutomationParametersFromValues(stored, dashboardParameters, catalog, isStringParametersEnabled, valuesAreUntypedWire = false) {
|
|
12
16
|
const dashboardByRef = new Map(dashboardParameters.map((parameter) => [objRefToString(parameter.ref), parameter]));
|
|
13
17
|
const workspaceByRef = new Map(catalog.map((parameter) => [objRefToString(parameter.ref), parameter]));
|
|
14
18
|
return stored.flatMap((row) => {
|
|
15
19
|
const refKey = objRefToString(row.ref);
|
|
16
20
|
const dashboardParameter = dashboardByRef.get(refKey);
|
|
17
21
|
const workspaceParameter = workspaceByRef.get(refKey);
|
|
18
|
-
const definition = resolveParameterDefinition(workspaceParameter, row.value, isStringParametersEnabled);
|
|
22
|
+
const definition = resolveParameterDefinition(workspaceParameter, row.value, isStringParametersEnabled, valuesAreUntypedWire);
|
|
19
23
|
if (!definition) {
|
|
20
24
|
return [];
|
|
21
25
|
}
|
|
26
|
+
const value = decodeParameterWireValue(definition, row.value);
|
|
27
|
+
if (value === undefined) {
|
|
28
|
+
return [];
|
|
29
|
+
}
|
|
22
30
|
return {
|
|
23
31
|
ref: row.ref,
|
|
24
32
|
title: dashboardParameter?.label ?? workspaceParameter?.title ?? row.ref.identifier,
|
|
25
|
-
value
|
|
33
|
+
value,
|
|
26
34
|
mode: dashboardParameter?.mode ?? DashboardParameterModeValues.ACTIVE,
|
|
27
35
|
definition,
|
|
28
36
|
};
|
|
@@ -98,8 +106,8 @@ export function setAlertExecutionParameters(automation, parameters) {
|
|
|
98
106
|
}
|
|
99
107
|
/**
|
|
100
108
|
* A param dropped from the *dashboard* is not stale: parameters are workspace-scoped, so only
|
|
101
|
-
* removal from the workspace catalog counts — as does a
|
|
102
|
-
*
|
|
109
|
+
* removal from the workspace catalog counts — as does a stored value that cannot be decoded
|
|
110
|
+
* against the current definition (see {@link decodeParameterWireValue}).
|
|
103
111
|
*
|
|
104
112
|
* @internal
|
|
105
113
|
*/
|
|
@@ -162,20 +170,21 @@ export function shouldStoreExportParameters(isWidgetSchedule, storeFilters = fal
|
|
|
162
170
|
}
|
|
163
171
|
function alertParameterMatchesCatalog(parameter, catalogById) {
|
|
164
172
|
const workspaceParameter = catalogById.get(parameter.ref.identifier);
|
|
165
|
-
return !!workspaceParameter &&
|
|
173
|
+
return (!!workspaceParameter &&
|
|
174
|
+
decodeParameterWireValue(workspaceParameter.definition, parameter.value) !== undefined);
|
|
166
175
|
}
|
|
167
176
|
/**
|
|
168
177
|
* Every parameter needs a definition — its `type` picks which control renders. The workspace
|
|
169
|
-
* parameter definition is the source of truth;
|
|
170
|
-
*
|
|
178
|
+
* parameter definition is the source of truth; whether the stored value decodes against it is the
|
|
179
|
+
* caller's check ({@link reconstructAutomationParametersFromValues} drops undecodable rows).
|
|
171
180
|
*/
|
|
172
|
-
function resolveParameterDefinition(workspaceParameter, value, isStringParametersEnabled) {
|
|
181
|
+
function resolveParameterDefinition(workspaceParameter, value, isStringParametersEnabled, valueIsUntypedWire) {
|
|
173
182
|
const definition = workspaceParameter?.definition;
|
|
174
183
|
if (definition) {
|
|
175
184
|
if (definition.type === "STRING" && !isStringParametersEnabled) {
|
|
176
185
|
return undefined;
|
|
177
186
|
}
|
|
178
|
-
return
|
|
187
|
+
return definition;
|
|
179
188
|
}
|
|
180
189
|
// Deleted workspace parameter: synthesize a definition from the value so the parameter stays
|
|
181
190
|
// editable (the constraint-less M1 fallback). Its `defaultValue` is a shape-filling
|
|
@@ -184,5 +193,13 @@ function resolveParameterDefinition(workspaceParameter, value, isStringParameter
|
|
|
184
193
|
if (typeof value === "number") {
|
|
185
194
|
return { type: "NUMBER", defaultValue: value };
|
|
186
195
|
}
|
|
196
|
+
// Only an untyped alert wire string warrants a shape-guess — an export string was already
|
|
197
|
+
// decoded by its own type tag, so a numeric-looking one really is a STRING value.
|
|
198
|
+
if (valueIsUntypedWire) {
|
|
199
|
+
const numeric = parseNumberWireValue(value);
|
|
200
|
+
if (numeric !== undefined) {
|
|
201
|
+
return { type: "NUMBER", defaultValue: numeric };
|
|
202
|
+
}
|
|
203
|
+
}
|
|
187
204
|
return isStringParametersEnabled ? { type: "STRING", defaultValue: value } : undefined;
|
|
188
205
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AutomationParameter.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/automations/shared/automationFilters/components/AutomationParameter.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAsB,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAI3D,OAAO,EAEH,KAAK,aAAa,EAClB,KAAK,cAAc,EAEtB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAEH,KAAK,mBAAmB,EAM3B,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EAAE,KAAK,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAEvE;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACtC,SAAS,EAAE,oBAAoB,CAAC;IAChC,QAAQ,CAAC,EAAE,CAAC,GAAG,EAAE,aAAa,EAAE,KAAK,EAAE,cAAc,KAAK,IAAI,CAAC;IAC/D,QAAQ,CAAC,EAAE,CAAC,GAAG,EAAE,aAAa,KAAK,IAAI,CAAC;IACxC,mBAAmB,CAAC,EAAE,mBAAmB,CAAC;IAC1C,UAAU,CAAC,EAAE,OAAO,CAAC;CACxB;AAED;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,EAChC,SAAS,EACT,QAAQ,EACR,QAAQ,EACR,mBAAmB,EACnB,UAAU,EACb,EAAE,yBAAyB,GAAG,SAAS,
|
|
1
|
+
{"version":3,"file":"AutomationParameter.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/automations/shared/automationFilters/components/AutomationParameter.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAsB,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAI3D,OAAO,EAEH,KAAK,aAAa,EAClB,KAAK,cAAc,EAEtB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAEH,KAAK,mBAAmB,EAM3B,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EAAE,KAAK,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAEvE;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACtC,SAAS,EAAE,oBAAoB,CAAC;IAChC,QAAQ,CAAC,EAAE,CAAC,GAAG,EAAE,aAAa,EAAE,KAAK,EAAE,cAAc,KAAK,IAAI,CAAC;IAC/D,QAAQ,CAAC,EAAE,CAAC,GAAG,EAAE,aAAa,KAAK,IAAI,CAAC;IACxC,mBAAmB,CAAC,EAAE,mBAAmB,CAAC;IAC1C,UAAU,CAAC,EAAE,OAAO,CAAC;CACxB;AAED;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,EAChC,SAAS,EACT,QAAQ,EACR,QAAQ,EACR,mBAAmB,EACnB,UAAU,EACb,EAAE,yBAAyB,GAAG,SAAS,CA2FvC"}
|
package/esm/presentation/automations/shared/automationFilters/components/AutomationParameter.js
CHANGED
|
@@ -33,8 +33,5 @@ export function AutomationParameter({ parameter, onChange, onDelete, overlayPosi
|
|
|
33
33
|
if (isActionKey(event)) {
|
|
34
34
|
event.stopPropagation();
|
|
35
35
|
}
|
|
36
|
-
} })), renderBody: ({ closeDropdown, ariaAttributes }) => (_jsx(ParameterControl, { name: title, definition: definition, value: value, inputId: valueInputId, ariaAttributes: ariaAttributes,
|
|
37
|
-
onChange?.(ref, next);
|
|
38
|
-
closeDropdown();
|
|
39
|
-
}, onCancel: closeDropdown })) }));
|
|
36
|
+
} })), renderBody: ({ closeDropdown, ariaAttributes }) => (_jsx(ParameterControl, { name: title, definition: definition, value: value, inputId: valueInputId, ariaAttributes: ariaAttributes, mode: "commit", onCommit: (next) => onChange?.(ref, next), onClose: closeDropdown })) }));
|
|
40
37
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useValidateExistingAutomationFilters.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/automations/shared/automationFilters/hooks/useValidateExistingAutomationFilters.ts"],"names":[],"mappings":"AAIA,OAAO,EACH,KAAK,qCAAqC,EAE1C,KAAK,iBAAiB,EAEtB,KAAK,yBAAyB,EAC9B,KAAK,wBAAwB,EAC7B,KAAK,yBAAyB,EAC9B,KAAK,mBAAmB,EACxB,KAAK,OAAO,EAEZ,KAAK,QAAQ,EACb,KAAK,wBAAwB,EAmBhC,MAAM,qBAAqB,CAAC;AAQ7B,OAAO,EAAE,KAAK,uBAAuB,EAAE,MAAM,2CAA2C,CAAC;AAmEzF,MAAM,WAAW,2BAA2B;IACxC,OAAO,EAAE,OAAO,CAAC;IACjB,mCAAmC,EAAE,OAAO,CAAC;IAC7C,0CAA0C,EAAE,OAAO,CAAC;IACpD,mCAAmC,EAAE,OAAO,CAAC;IAC7C,0CAA0C,EAAE,OAAO,CAAC;IACpD,oCAAoC,EAAE,OAAO,CAAC;IAC9C,oCAAoC,EAAE,OAAO,CAAC;IAC9C,8CAA8C,EAAE,OAAO,CAAC;IACxD,oCAAoC,EAAE,OAAO,CAAC;IAC9C,wBAAwB,EAAE,OAAO,CAAC;IAClC,gDAAgD,EAAE,OAAO,CAAC;IAC1D;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B;;;OAGG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;CAC7B;AAiBD,wBAAgB,oCAAoC,CAAC,EACjD,gBAAgB,EAChB,MAAM,EACN,OAAO,EACV,EAAE;IACC,gBAAgB,CAAC,EAAE,yBAAyB,CAAC;IAC7C,MAAM,CAAC,EAAE,uBAAuB,CAAC;IACjC,OAAO,CAAC,EAAE,QAAQ,CAAC;CACtB,GAAG,2BAA2B,CAyD9B;AAoHD;;;;GAIG;AACH,wBAAgB,oCAAoC,CAAC,EACjD,qBAAqB,EACrB,OAAO,EACP,wBAAwB,EACxB,cAAc,EACd,WAAW,EACd,EAAE;IACC,qBAAqB,EAAE,MAAM,CAAC,MAAM,EAAE,yBAAyB,EAAE,CAAC,GAAG,SAAS,CAAC;IAC/E,OAAO,EAAE,wBAAwB,EAAE,CAAC;IACpC,wBAAwB,EAAE,MAAM,CAAC,MAAM,EAAE,mBAAmB,EAAE,CAAC,CAAC;IAChE,cAAc,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IAC5B;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACxB,GAAG,OAAO,
|
|
1
|
+
{"version":3,"file":"useValidateExistingAutomationFilters.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/automations/shared/automationFilters/hooks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AAC,CAAC;IAChE,kCAAkC,EAAE,MAAM,CAAC,MAAM,EAAE,wBAAwB,EAAE,CAAC,CAAC;IAC/E,sBAAsB,EAAE,4BAA4B,EAAE,CAAC;IACvD,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,qBAAqB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,qCAAqC,GAAG,SAAS,CAAC,CAAC,CAAC;CAC1G,GAAG,2BAA2B,CAoE9B"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
// (C) 2025-2026 GoodData Corporation
|
|
2
2
|
import { differenceBy, omit } from "lodash-es";
|
|
3
|
-
import { DashboardParameterModeValues, dashboardFilterLocalIdentifier, filterLocalIdentifier, isAllDashboardMeasureValueFilter, isAllValuesAttributeFilter, isAllValuesDashboardAttributeFilter, isAttributeFilter, isAttributeFilterWithSelection, isDashboardAttributeFilter, isDashboardCommonDateFilter, isDateFilter, isInsightWidget, isLocalIdRef, isNegativeAttributeFilter,
|
|
4
|
-
import { getAutomationAlertParameters, getAutomationExportParametersByTab, } from "../../../../../_staging/automation/index.js";
|
|
5
|
-
import { filterContextItemsToDashboardFiltersByWidget } from "../../../../../converters/filterConverters.js";
|
|
3
|
+
import { DashboardParameterModeValues, dashboardFilterLocalIdentifier, filterContextItemsToDashboardFiltersByWidget, filterLocalIdentifier, isAllDashboardMeasureValueFilter, isAllValuesAttributeFilter, isAllValuesDashboardAttributeFilter, isAttributeFilter, isAttributeFilterWithSelection, isDashboardAttributeFilter, isDashboardCommonDateFilter, isDateFilter, isInsightWidget, isLocalIdRef, isNegativeAttributeFilter, isPositiveAttributeFilter, isRelativeDateFilter, isSingleSelectionFilter, } from "@gooddata/sdk-model";
|
|
4
|
+
import { decodeParameterWireValue, getAutomationAlertParameters, getAutomationExportParametersByTab, } from "../../../../../_staging/automation/index.js";
|
|
6
5
|
import { isFilterTypeCompatibleWithSelectionType } from "../../../../../model/commandHandlers/dashboard/common/attributeFilterSelectionTypeCompatibility.js";
|
|
7
6
|
import { useAutomationsContext } from "../../../contexts/AutomationsContext.js";
|
|
8
7
|
import { isNoopAllTimeDateFilterFixed } from "../../filters/index.js";
|
|
@@ -183,10 +182,16 @@ export function validateExistingAutomationParameters({ storedParametersByTab, ca
|
|
|
183
182
|
continue;
|
|
184
183
|
}
|
|
185
184
|
const currentValue = dashboardParameter?.value ?? workspaceParameter.definition.defaultValue;
|
|
186
|
-
//
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
185
|
+
// Normalize BOTH sides through the definition: NUMBER rows compare numerically (a
|
|
186
|
+
// non-canonical stored encoding like "1.50" is not drift) and a type-loose persisted
|
|
187
|
+
// dashboard value (e.g. a STRING pin stored as a JSON number) is not drift either.
|
|
188
|
+
// `undefined` means undecodable — either side undecodable is drift, so two malformed
|
|
189
|
+
// values cannot validate as "still matching".
|
|
190
|
+
const decodedStored = decodeParameterWireValue(workspaceParameter.definition, stored.value);
|
|
191
|
+
const decodedCurrent = decodeParameterWireValue(workspaceParameter.definition, currentValue);
|
|
192
|
+
const valueDrifted = decodedStored === undefined ||
|
|
193
|
+
decodedCurrent === undefined ||
|
|
194
|
+
decodedStored !== decodedCurrent;
|
|
190
195
|
if (valueDrifted) {
|
|
191
196
|
return true;
|
|
192
197
|
}
|
package/esm/presentation/automations/shared/automationFilters/useAutomationAlertParameters.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useAutomationAlertParameters.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/automations/shared/automationFilters/useAutomationAlertParameters.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,QAAQ,EAAE,KAAK,cAAc,EAAwB,MAAM,OAAO,CAAC;AAEjF,OAAO,EAEH,KAAK,mCAAmC,EACxC,KAAK,mBAAmB,EACxB,KAAK,sBAAsB,EAC3B,KAAK,aAAa,EAClB,KAAK,cAAc,EAEtB,MAAM,qBAAqB,CAAC;AAK7B,OAAO,EACH,KAAK,oBAAoB,EAM5B,MAAM,2BAA2B,CAAC;AAInC;;GAEG;AACH,MAAM,WAAW,6BAA6B;IAC1C;;OAEG;IACH,oBAAoB,EAAE,oBAAoB,EAAE,CAAC;IAC7C;;;OAGG;IACH,mBAAmB,EAAE,oBAAoB,EAAE,CAAC;IAC5C,cAAc,EAAE,CAAC,GAAG,EAAE,aAAa,KAAK,IAAI,CAAC;IAC7C,iBAAiB,EAAE,CAAC,GAAG,EAAE,aAAa,EAAE,KAAK,EAAE,cAAc,KAAK,IAAI,CAAC;IACvE,iBAAiB,EAAE,CAAC,GAAG,EAAE,aAAa,KAAK,IAAI,CAAC;IAChD;;;OAGG;IACH,mBAAmB,EAAE,MAAM,IAAI,CAAC;CACnC;AAED;;;;;GAKG;AACH,wBAAgB,4BAA4B,CAAC,EACzC,gBAAgB,EAChB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACxB,EAAE;IACC,gBAAgB,EAAE,mCAAmC,GAAG,SAAS,CAAC;IAClE,mBAAmB,EAAE,QAAQ,CAAC,cAAc,CAAC,mCAAmC,GAAG,SAAS,CAAC,CAAC,CAAC;IAC/F;;;OAGG;IACH,mBAAmB,EAAE,mBAAmB,EAAE,CAAC;IAC3C;;;OAGG;IACH,qBAAqB,EAAE,sBAAsB,EAAE,CAAC;CACnD,GAAG,6BAA6B,
|
|
1
|
+
{"version":3,"file":"useAutomationAlertParameters.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/automations/shared/automationFilters/useAutomationAlertParameters.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,QAAQ,EAAE,KAAK,cAAc,EAAwB,MAAM,OAAO,CAAC;AAEjF,OAAO,EAEH,KAAK,mCAAmC,EACxC,KAAK,mBAAmB,EACxB,KAAK,sBAAsB,EAC3B,KAAK,aAAa,EAClB,KAAK,cAAc,EAEtB,MAAM,qBAAqB,CAAC;AAK7B,OAAO,EACH,KAAK,oBAAoB,EAM5B,MAAM,2BAA2B,CAAC;AAInC;;GAEG;AACH,MAAM,WAAW,6BAA6B;IAC1C;;OAEG;IACH,oBAAoB,EAAE,oBAAoB,EAAE,CAAC;IAC7C;;;OAGG;IACH,mBAAmB,EAAE,oBAAoB,EAAE,CAAC;IAC5C,cAAc,EAAE,CAAC,GAAG,EAAE,aAAa,KAAK,IAAI,CAAC;IAC7C,iBAAiB,EAAE,CAAC,GAAG,EAAE,aAAa,EAAE,KAAK,EAAE,cAAc,KAAK,IAAI,CAAC;IACvE,iBAAiB,EAAE,CAAC,GAAG,EAAE,aAAa,KAAK,IAAI,CAAC;IAChD;;;OAGG;IACH,mBAAmB,EAAE,MAAM,IAAI,CAAC;CACnC;AAED;;;;;GAKG;AACH,wBAAgB,4BAA4B,CAAC,EACzC,gBAAgB,EAChB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACxB,EAAE;IACC,gBAAgB,EAAE,mCAAmC,GAAG,SAAS,CAAC;IAClE,mBAAmB,EAAE,QAAQ,CAAC,cAAc,CAAC,mCAAmC,GAAG,SAAS,CAAC,CAAC,CAAC;IAC/F;;;OAGG;IACH,mBAAmB,EAAE,mBAAmB,EAAE,CAAC;IAC3C;;;OAGG;IACH,qBAAqB,EAAE,sBAAsB,EAAE,CAAC;CACnD,GAAG,6BAA6B,CAgHhC"}
|
package/esm/presentation/automations/shared/automationFilters/useAutomationAlertParameters.js
CHANGED
|
@@ -18,7 +18,9 @@ export function useAutomationAlertParameters({ editedAutomation, setEditedAutoma
|
|
|
18
18
|
if (!parametersEnabled || !storedParameters?.length) {
|
|
19
19
|
return EMPTY_PARAMETERS;
|
|
20
20
|
}
|
|
21
|
-
return (
|
|
21
|
+
return (
|
|
22
|
+
// `true`: alert values load as untyped wire strings (unlike tag-typed export values)
|
|
23
|
+
reconstructAutomationParametersFromValues(storedParameters, dashboardParameters, catalog, stringParametersEnabled, true)
|
|
22
24
|
// `hidden` parameters stay in the stored payload but are never rendered or user-editable
|
|
23
25
|
.filter((parameter) => parameter.mode !== DashboardParameterModeValues.HIDDEN));
|
|
24
26
|
}, [parametersEnabled, stringParametersEnabled, storedParameters, dashboardParameters, catalog]);
|