@gooddata/sdk-ui-dashboard 11.54.0-alpha.4 → 11.54.0-alpha.6
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 +93513 -17188
- package/esm/__version.d.ts +1 -1
- package/esm/__version.js +1 -1
- package/esm/_staging/automation/index.d.ts +6 -0
- package/esm/_staging/automation/index.d.ts.map +1 -1
- package/esm/_staging/automation/index.js +7 -0
- package/esm/index.d.ts +3 -2
- package/esm/index.d.ts.map +1 -1
- package/esm/model/DashboardTester.d.ts +150 -0
- package/esm/model/DashboardTester.d.ts.map +1 -0
- package/esm/model/DashboardTester.js +208 -0
- package/esm/model/commandHandlers/dashboard/common/parameterHydration.d.ts +7 -0
- package/esm/model/commandHandlers/dashboard/common/parameterHydration.d.ts.map +1 -1
- package/esm/model/commandHandlers/dashboard/common/parameterHydration.js +17 -1
- package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/index.d.ts.map +1 -1
- package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/index.js +27 -1
- package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/loadAutomationTimezone.d.ts +9 -0
- package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/loadAutomationTimezone.d.ts.map +1 -0
- package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/loadAutomationTimezone.js +27 -0
- package/esm/model/commandHandlers/filterContext/filterViewHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/filterContext/filterViewHandler.js +7 -7
- package/esm/model/commandHandlers/timezone/changeDashboardTimezoneOverrideHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/timezone/changeDashboardTimezoneOverrideHandler.js +2 -11
- package/esm/model/commands/timezone.d.ts +10 -2
- package/esm/model/commands/timezone.d.ts.map +1 -1
- package/esm/model/commands/timezone.js +5 -2
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/AlertingDialogDestination.d.ts +6 -0
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/AlertingDialogDestination.d.ts.map +1 -0
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/AlertingDialogDestination.js +13 -0
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/AlertingDialogRecipients.d.ts +7 -0
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/AlertingDialogRecipients.d.ts.map +1 -0
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/AlertingDialogRecipients.js +12 -0
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/DefaultAlertingDialog.d.ts +1 -1
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/DefaultAlertingDialog.d.ts.map +1 -1
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/DefaultAlertingDialog.js +61 -22
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/FormField.d.ts +8 -0
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/FormField.d.ts.map +1 -0
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/FormField.js +8 -0
- package/esm/presentation/automations/alerting/types.d.ts +72 -4
- package/esm/presentation/automations/alerting/types.d.ts.map +1 -1
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/DefaultScheduledEmailDialog.d.ts +1 -1
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/DefaultScheduledEmailDialog.d.ts.map +1 -1
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/DefaultScheduledEmailDialog.js +60 -15
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/Attachments/AttachmentSettings.d.ts.map +1 -1
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/Attachments/AttachmentSettings.js +2 -3
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/RecipientsSelect/RecipientsSelect.d.ts +1 -5
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/RecipientsSelect/RecipientsSelect.d.ts.map +1 -1
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/RecipientsSelect/RecipientsSelect.js +2 -2
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/RecipientsSelect/RecipientsSelectRenderer.d.ts +0 -4
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/RecipientsSelect/RecipientsSelectRenderer.d.ts.map +1 -1
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/ScheduledEmailDialogDestination.d.ts +6 -0
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/ScheduledEmailDialogDestination.d.ts.map +1 -0
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/ScheduledEmailDialogDestination.js +10 -0
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/ScheduledEmailDialogRecipients.d.ts +6 -0
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/ScheduledEmailDialogRecipients.d.ts.map +1 -0
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/ScheduledEmailDialogRecipients.js +8 -0
- package/esm/presentation/automations/scheduledEmail/state/useScheduledEmailExportSettings.d.ts.map +1 -1
- package/esm/presentation/automations/scheduledEmail/state/useScheduledEmailExportSettings.js +10 -8
- package/esm/presentation/automations/scheduledEmail/state/useScheduledExportAttachments.d.ts +2 -2
- package/esm/presentation/automations/scheduledEmail/state/useScheduledExportAttachments.d.ts.map +1 -1
- package/esm/presentation/automations/scheduledEmail/state/useScheduledExportAttachments.js +3 -4
- package/esm/presentation/automations/scheduledEmail/types.d.ts +86 -6
- package/esm/presentation/automations/scheduledEmail/types.d.ts.map +1 -1
- package/esm/presentation/automations/shared/slots/AutomationDialogActionBar.d.ts +25 -0
- package/esm/presentation/automations/shared/slots/AutomationDialogActionBar.d.ts.map +1 -0
- package/esm/presentation/automations/shared/slots/AutomationDialogActionBar.js +22 -0
- package/esm/presentation/automations/shared/slots/types.d.ts +120 -27
- package/esm/presentation/automations/shared/slots/types.d.ts.map +1 -1
- package/esm/presentation/dashboardContexts/ExportCsvDialogContext.d.ts +1 -2
- package/esm/presentation/dashboardContexts/ExportCsvDialogContext.d.ts.map +1 -1
- package/esm/presentation/dialogs/ExportCsvDialog.d.ts +0 -1
- package/esm/presentation/dialogs/ExportCsvDialog.d.ts.map +1 -1
- package/esm/presentation/dialogs/ExportCsvDialog.js +2 -2
- package/esm/presentation/dialogs/ExportCsvDialogProvider.d.ts.map +1 -1
- package/esm/presentation/dialogs/ExportCsvDialogProvider.js +1 -1
- package/esm/presentation/localization/bundles/de-DE.localization-bundle.d.ts +12 -15
- package/esm/presentation/localization/bundles/de-DE.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/de-DE.localization-bundle.js +12 -15
- package/esm/presentation/localization/bundles/en-AU.localization-bundle.d.ts +12 -15
- package/esm/presentation/localization/bundles/en-AU.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/en-AU.localization-bundle.js +14 -17
- package/esm/presentation/localization/bundles/en-GB.localization-bundle.d.ts +12 -15
- package/esm/presentation/localization/bundles/en-GB.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/en-GB.localization-bundle.js +14 -17
- package/esm/presentation/localization/bundles/en-US.localization-bundle.d.ts +0 -60
- package/esm/presentation/localization/bundles/en-US.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/en-US.localization-bundle.js +0 -60
- package/esm/presentation/localization/bundles/es-419.localization-bundle.d.ts +12 -15
- package/esm/presentation/localization/bundles/es-419.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/es-419.localization-bundle.js +14 -17
- package/esm/presentation/localization/bundles/es-ES.localization-bundle.d.ts +10 -15
- package/esm/presentation/localization/bundles/es-ES.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/es-ES.localization-bundle.js +12 -17
- package/esm/presentation/localization/bundles/fi-FI.localization-bundle.d.ts +12 -15
- package/esm/presentation/localization/bundles/fi-FI.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/fi-FI.localization-bundle.js +14 -17
- package/esm/presentation/localization/bundles/fr-CA.localization-bundle.d.ts +12 -15
- package/esm/presentation/localization/bundles/fr-CA.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/fr-CA.localization-bundle.js +14 -17
- package/esm/presentation/localization/bundles/fr-FR.localization-bundle.d.ts +12 -15
- package/esm/presentation/localization/bundles/fr-FR.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/fr-FR.localization-bundle.js +14 -17
- package/esm/presentation/localization/bundles/id-ID.localization-bundle.d.ts +12 -15
- package/esm/presentation/localization/bundles/id-ID.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/id-ID.localization-bundle.js +14 -17
- package/esm/presentation/localization/bundles/it-IT.localization-bundle.d.ts +12 -15
- package/esm/presentation/localization/bundles/it-IT.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/it-IT.localization-bundle.js +14 -17
- package/esm/presentation/localization/bundles/ja-JP.localization-bundle.d.ts +12 -15
- package/esm/presentation/localization/bundles/ja-JP.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/ja-JP.localization-bundle.js +12 -15
- package/esm/presentation/localization/bundles/ko-KR.localization-bundle.d.ts +12 -15
- package/esm/presentation/localization/bundles/ko-KR.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/ko-KR.localization-bundle.js +14 -17
- package/esm/presentation/localization/bundles/nl-NL.localization-bundle.d.ts +12 -15
- package/esm/presentation/localization/bundles/nl-NL.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/nl-NL.localization-bundle.js +14 -17
- package/esm/presentation/localization/bundles/pl-PL.localization-bundle.d.ts +12 -15
- package/esm/presentation/localization/bundles/pl-PL.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/pl-PL.localization-bundle.js +14 -17
- package/esm/presentation/localization/bundles/pt-BR.localization-bundle.d.ts +12 -15
- package/esm/presentation/localization/bundles/pt-BR.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/pt-BR.localization-bundle.js +16 -19
- package/esm/presentation/localization/bundles/pt-PT.localization-bundle.d.ts +12 -15
- package/esm/presentation/localization/bundles/pt-PT.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/pt-PT.localization-bundle.js +16 -19
- package/esm/presentation/localization/bundles/ru-RU.localization-bundle.d.ts +12 -15
- package/esm/presentation/localization/bundles/ru-RU.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/ru-RU.localization-bundle.js +14 -17
- package/esm/presentation/localization/bundles/sl-SI.localization-bundle.d.ts +12 -15
- package/esm/presentation/localization/bundles/sl-SI.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/sl-SI.localization-bundle.js +14 -17
- package/esm/presentation/localization/bundles/th-TH.localization-bundle.d.ts +12 -15
- package/esm/presentation/localization/bundles/th-TH.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/th-TH.localization-bundle.js +14 -17
- package/esm/presentation/localization/bundles/tr-TR.localization-bundle.d.ts +12 -15
- package/esm/presentation/localization/bundles/tr-TR.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/tr-TR.localization-bundle.js +14 -17
- package/esm/presentation/localization/bundles/uk-UA.localization-bundle.d.ts +12 -15
- package/esm/presentation/localization/bundles/uk-UA.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/uk-UA.localization-bundle.js +14 -17
- package/esm/presentation/localization/bundles/vi-VN.localization-bundle.d.ts +12 -15
- package/esm/presentation/localization/bundles/vi-VN.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/vi-VN.localization-bundle.js +14 -17
- package/esm/presentation/localization/bundles/zh-HK.localization-bundle.d.ts +12 -15
- package/esm/presentation/localization/bundles/zh-HK.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/zh-HK.localization-bundle.js +12 -15
- package/esm/presentation/localization/bundles/zh-Hans.localization-bundle.d.ts +12 -15
- package/esm/presentation/localization/bundles/zh-Hans.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/zh-Hans.localization-bundle.js +14 -17
- package/esm/presentation/localization/bundles/zh-Hant.localization-bundle.d.ts +12 -15
- package/esm/presentation/localization/bundles/zh-Hant.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/zh-Hant.localization-bundle.js +14 -17
- package/esm/presentation/widget/common/useInsightExport.d.ts.map +1 -1
- package/esm/presentation/widget/common/useInsightExport.js +2 -4
- package/esm/sdk-ui-dashboard.d.ts +289 -35
- package/package.json +21 -21
- package/styles/css/main.css +369 -0
- package/styles/css/main.css.map +1 -1
- package/esm/_staging/dateFilterConfig/fixtures.d.ts +0 -10
- package/esm/_staging/dateFilterConfig/fixtures.d.ts.map +0 -1
- package/esm/_staging/dateFilterConfig/fixtures.js +0 -60
- package/esm/model/commandHandlers/filterContext/filterViewParameters.d.ts +0 -8
- package/esm/model/commandHandlers/filterContext/filterViewParameters.d.ts.map +0 -1
- package/esm/model/commandHandlers/filterContext/filterViewParameters.js +0 -9
- package/esm/plugins/customizationApis/fixtures/TestingDashboardCustomizationLogger.d.ts +0 -16
- package/esm/plugins/customizationApis/fixtures/TestingDashboardCustomizationLogger.d.ts.map +0 -1
- package/esm/plugins/customizationApis/fixtures/TestingDashboardCustomizationLogger.js +0 -30
- package/esm/presentation/automations/alerting/DefaultAlertingManagementDialog/components/AlertDropdown.d.ts +0 -3
- package/esm/presentation/automations/alerting/DefaultAlertingManagementDialog/components/AlertDropdown.d.ts.map +0 -1
- package/esm/presentation/automations/alerting/DefaultAlertingManagementDialog/components/AlertDropdown.js +0 -46
- package/esm/presentation/automations/alerting/DefaultAlertingManagementDialog/components/PauseAlertRunner.d.ts +0 -11
- package/esm/presentation/automations/alerting/DefaultAlertingManagementDialog/components/PauseAlertRunner.d.ts.map +0 -1
- package/esm/presentation/automations/alerting/DefaultAlertingManagementDialog/components/PauseAlertRunner.js +0 -31
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/hooks/useFiltersForDashboardScheduledExportInfo.d.ts +0 -19
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/hooks/useFiltersForDashboardScheduledExportInfo.d.ts.map +0 -1
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/hooks/useFiltersForDashboardScheduledExportInfo.js +0 -28
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailManagementDialog/components/ScheduledEmail.d.ts +0 -13
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailManagementDialog/components/ScheduledEmail.d.ts.map +0 -1
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailManagementDialog/components/ScheduledEmail.js +0 -56
- package/esm/presentation/dashboard/components/DashboardMainContent.d.ts +0 -3
- package/esm/presentation/dashboard/components/DashboardMainContent.d.ts.map +0 -1
- package/esm/presentation/dashboard/components/DashboardMainContent.js +0 -39
- package/esm/presentation/dragAndDrop/draggableWidget/DraggableKpiCreatePanelItem.d.ts +0 -16
- package/esm/presentation/dragAndDrop/draggableWidget/DraggableKpiCreatePanelItem.d.ts.map +0 -1
- package/esm/presentation/dragAndDrop/draggableWidget/DraggableKpiCreatePanelItem.js +0 -17
- package/esm/presentation/dragAndDrop/draggableWidget/KpiDraggingComponent.d.ts +0 -3
- package/esm/presentation/dragAndDrop/draggableWidget/KpiDraggingComponent.d.ts.map +0 -1
- package/esm/presentation/dragAndDrop/draggableWidget/KpiDraggingComponent.js +0 -9
- package/esm/presentation/filterBar/attributeFilter/dashboardDropdownBody/DeleteButton.d.ts +0 -6
- package/esm/presentation/filterBar/attributeFilter/dashboardDropdownBody/DeleteButton.d.ts.map +0 -1
- package/esm/presentation/filterBar/attributeFilter/dashboardDropdownBody/DeleteButton.js +0 -10
- package/esm/presentation/filterBar/attributeFilter/dashboardDropdownBody/common/DropdownControls.d.ts +0 -8
- package/esm/presentation/filterBar/attributeFilter/dashboardDropdownBody/common/DropdownControls.d.ts.map +0 -1
- package/esm/presentation/filterBar/attributeFilter/dashboardDropdownBody/common/DropdownControls.js +0 -14
- package/esm/presentation/filterBar/attributeFilter/dashboardDropdownBody/configuration/ConfigurationButton.d.ts +0 -6
- package/esm/presentation/filterBar/attributeFilter/dashboardDropdownBody/configuration/ConfigurationButton.d.ts.map +0 -1
- package/esm/presentation/filterBar/attributeFilter/dashboardDropdownBody/configuration/ConfigurationButton.js +0 -8
- package/esm/presentation/filterBar/attributeFilter/dashboardDropdownBody/displayFormDropdown/DisplayFormButton.d.ts +0 -8
- package/esm/presentation/filterBar/attributeFilter/dashboardDropdownBody/displayFormDropdown/DisplayFormButton.d.ts.map +0 -1
- package/esm/presentation/filterBar/attributeFilter/dashboardDropdownBody/displayFormDropdown/DisplayFormButton.js +0 -10
- package/esm/presentation/filterBar/attributeFilter/dashboardDropdownBody/displayFormDropdown/DisplayFormDropdown.d.ts +0 -8
- package/esm/presentation/filterBar/attributeFilter/dashboardDropdownBody/displayFormDropdown/DisplayFormDropdown.d.ts.map +0 -1
- package/esm/presentation/filterBar/attributeFilter/dashboardDropdownBody/displayFormDropdown/DisplayFormDropdown.js +0 -33
- package/esm/presentation/filterBar/attributeFilter/dashboardDropdownBody/displayFormDropdown/DisplayFormItem.d.ts +0 -8
- package/esm/presentation/filterBar/attributeFilter/dashboardDropdownBody/displayFormDropdown/DisplayFormItem.d.ts.map +0 -1
- package/esm/presentation/filterBar/attributeFilter/dashboardDropdownBody/displayFormDropdown/DisplayFormItem.js +0 -33
- package/esm/presentation/widget/common/configuration/AttributeFilterConfiguration.d.ts +0 -7
- package/esm/presentation/widget/common/configuration/AttributeFilterConfiguration.d.ts.map +0 -1
- package/esm/presentation/widget/common/configuration/AttributeFilterConfiguration.js +0 -39
- package/esm/presentation/widget/common/useWidgetBrokenAlertsQuery.d.ts +0 -9
- package/esm/presentation/widget/common/useWidgetBrokenAlertsQuery.d.ts.map +0 -1
- package/esm/presentation/widget/common/useWidgetBrokenAlertsQuery.js +0 -26
- package/esm/presentation/widget/insight/configuration/DrillMeasureSelector/DrillMeasureSelector.d.ts +0 -7
- package/esm/presentation/widget/insight/configuration/DrillMeasureSelector/DrillMeasureSelector.d.ts.map +0 -1
- package/esm/presentation/widget/insight/configuration/DrillMeasureSelector/DrillMeasureSelector.js +0 -37
- package/esm/presentation/widget/insight/configuration/DrillMeasureSelector/DrillMeasureSelectorBody.d.ts +0 -8
- package/esm/presentation/widget/insight/configuration/DrillMeasureSelector/DrillMeasureSelectorBody.d.ts.map +0 -1
- package/esm/presentation/widget/insight/configuration/DrillMeasureSelector/DrillMeasureSelectorBody.js +0 -15
- package/esm/presentation/widget/insight/configuration/DrillMeasureSelector/DrillMeasureSelectorItem.d.ts +0 -7
- package/esm/presentation/widget/insight/configuration/DrillMeasureSelector/DrillMeasureSelectorItem.d.ts.map +0 -1
- package/esm/presentation/widget/insight/configuration/DrillMeasureSelector/DrillMeasureSelectorItem.js +0 -8
- package/esm/presentation/widget/insight/configuration/DrillMeasureSelector/DrillMeasureSelectorList.d.ts +0 -7
- package/esm/presentation/widget/insight/configuration/DrillMeasureSelector/DrillMeasureSelectorList.d.ts.map +0 -1
- package/esm/presentation/widget/insight/configuration/DrillMeasureSelector/DrillMeasureSelectorList.js +0 -5
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertTitle.d.ts +0 -12
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertTitle.d.ts.map +0 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertTitle.js +0 -12
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/CreateAlert.d.ts +0 -25
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/CreateAlert.d.ts.map +0 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/CreateAlert.js +0 -5
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/EditAlert.d.ts +0 -29
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/EditAlert.d.ts.map +0 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/EditAlert.js +0 -137
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/EditAlertConfiguration.d.ts +0 -11
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/EditAlertConfiguration.d.ts.map +0 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/EditAlertConfiguration.js +0 -42
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useEditAlert.d.ts +0 -48
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useEditAlert.d.ts.map +0 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useEditAlert.js +0 -171
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useWidgetAutomationFilters.d.ts +0 -4
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useWidgetAutomationFilters.d.ts.map +0 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useWidgetAutomationFilters.js +0 -46
|
@@ -8,7 +8,7 @@ import { createUser, matchRecipient } from "../../../utils/users.js";
|
|
|
8
8
|
import { isEmail } from "../../../utils/validate.js";
|
|
9
9
|
import { RecipientsSelectRenderer } from "./RecipientsSelectRenderer.js";
|
|
10
10
|
import { useWorkspaceUsersSearch } from "./useWorkspaceUsersSearch.js";
|
|
11
|
-
export function RecipientsSelect({ id, value,
|
|
11
|
+
export function RecipientsSelect({ id, value, onChange, loggedUser, allowEmptySelection, allowExternalRecipients, allowOnlyLoggedUserRecipients, maxRecipients, className, notificationChannels, notificationChannelId, showLabel = true, onKeyDownSubmit, externalRecipientOverride, }) {
|
|
12
12
|
const isServerSearch = !externalRecipientOverride && !allowOnlyLoggedUserRecipients;
|
|
13
13
|
const { search, users, usersError, isLoading, onSearch, onActivate } = useWorkspaceUsersSearch({
|
|
14
14
|
enabled: isServerSearch,
|
|
@@ -39,6 +39,6 @@ export function RecipientsSelect({ id, value, originalValue, onChange, loggedUse
|
|
|
39
39
|
const hasSettledResults = !isLoading && (isServerSearch ? users !== undefined : Boolean(search));
|
|
40
40
|
const announcedResultValues = useMemo(() => options.slice(0, DETAILED_ANNOUNCEMENT_THRESHOLD).map((option) => option.name ?? option.id), [options]);
|
|
41
41
|
return (_jsxs(_Fragment, { children: [
|
|
42
|
-
_jsx(UiSearchResultsAnnouncement, { totalResults: hasSettledResults ? options.length : undefined, resultValues: announcedResultValues }), _jsx(RecipientsSelectRenderer, { id: id, canListUsersInProject: true, isMulti: true, options: options, value: value,
|
|
42
|
+
_jsx(UiSearchResultsAnnouncement, { totalResults: hasSettledResults ? options.length : undefined, resultValues: announcedResultValues }), _jsx(RecipientsSelectRenderer, { id: id, canListUsersInProject: true, isMulti: true, options: options, value: value, onChange: onChange, onSearch: onSearch, onActivate: onActivate, isLoading: isLoading, loggedUser: loggedUser, allowOnlyLoggedUserRecipients: allowOnlyLoggedUserRecipients, allowEmptySelection: allowEmptySelection, allowExternalRecipients: allowExternalRecipients, maxRecipients: maxRecipients, className: className, notificationChannel: notificationChannel, usersError: usersError, showLabel: showLabel, onKeyDownSubmit: onKeyDownSubmit, externalRecipientOverride: externalRecipientOverride })
|
|
43
43
|
] }));
|
|
44
44
|
}
|
|
@@ -6,10 +6,6 @@ export interface IRecipientsSelectRendererProps {
|
|
|
6
6
|
* Currently selected recipients.
|
|
7
7
|
*/
|
|
8
8
|
value: IAutomationRecipient[];
|
|
9
|
-
/**
|
|
10
|
-
* Originally selected recipients of a edited schedule
|
|
11
|
-
*/
|
|
12
|
-
originalValue: IAutomationRecipient[];
|
|
13
9
|
/**
|
|
14
10
|
* Recipients to display in the autocomplete.
|
|
15
11
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RecipientsSelectRenderer.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/RecipientsSelect/RecipientsSelectRenderer.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,aAAa,EAAqE,MAAM,OAAO,CAAC;AAiB9G,OAAO,EACH,KAAK,oBAAoB,EACzB,KAAK,8BAA8B,EACnC,KAAK,kCAAkC,EAE1C,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACH,KAAK,gBAAgB,EAKxB,MAAM,kBAAkB,CAAC;AA8F1B,MAAM,WAAW,8BAA8B;IAC3C;;OAEG;IACH,KAAK,EAAE,oBAAoB,EAAE,CAAC;IAE9B;;OAEG;IACH,
|
|
1
|
+
{"version":3,"file":"RecipientsSelectRenderer.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/RecipientsSelect/RecipientsSelectRenderer.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,aAAa,EAAqE,MAAM,OAAO,CAAC;AAiB9G,OAAO,EACH,KAAK,oBAAoB,EACzB,KAAK,8BAA8B,EACnC,KAAK,kCAAkC,EAE1C,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACH,KAAK,gBAAgB,EAKxB,MAAM,kBAAkB,CAAC;AA8F1B,MAAM,WAAW,8BAA8B;IAC3C;;OAEG;IACH,KAAK,EAAE,oBAAoB,EAAE,CAAC;IAE9B;;OAEG;IACH,OAAO,EAAE,oBAAoB,EAAE,CAAC;IAEhC;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAC,aAAa,EAAE,oBAAoB,EAAE,KAAK,IAAI,CAAC;IAE3D;;OAEG;IACH,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IAEnC;;OAEG;IACH,UAAU,EAAE,MAAM,IAAI,CAAC;IAEvB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB;;OAEG;IACH,UAAU,CAAC,EAAE,gBAAgB,CAAC;IAE9B;;OAEG;IACH,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAEhC;;OAEG;IACH,UAAU,CAAC,EAAE,oBAAoB,CAAC;IAElC;;OAEG;IACH,6BAA6B,CAAC,EAAE,OAAO,CAAC;IAExC;;OAEG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAE9B;;OAEG;IACH,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAElC;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,mBAAmB,CAAC,EAAE,8BAA8B,GAAG,kCAAkC,CAAC;IAE1F;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,eAAe,CAAC,EAAE,CAAC,CAAC,EAAE,aAAa,KAAK,IAAI,CAAC;IAE7C;;OAEG;IACH,yBAAyB,CAAC,EAAE,MAAM,CAAC;CACtC;AAQD,eAAO,MAAM,wBAAwB,sEA+vBnC,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { type IAutomationDialogDestinationProps } from "../../../shared/slots/types.js";
|
|
2
|
+
/**
|
|
3
|
+
* Default implementation of the scheduled email dialog's destination region.
|
|
4
|
+
*/
|
|
5
|
+
export declare function ScheduledEmailDialogDestination({ notificationChannels, selectedNotificationChannelId, onChange }: IAutomationDialogDestinationProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
//# sourceMappingURL=ScheduledEmailDialogDestination.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ScheduledEmailDialogDestination.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/ScheduledEmailDialogDestination.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,iCAAiC,EAAE,MAAM,gCAAgC,CAAC;AAOxF;;GAEG;AACH,wBAAgB,+BAA+B,CAAC,EAC5C,oBAAoB,EACpB,6BAA6B,EAC7B,QAAQ,EACX,EAAE,iCAAiC,2CAUnC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { DestinationSelect } from "./DestinationSelect/DestinationSelect.js";
|
|
3
|
+
const OVERLAY_POSITION_TYPE = "sameAsTarget";
|
|
4
|
+
const CLOSE_ON_PARENT_SCROLL = true;
|
|
5
|
+
/**
|
|
6
|
+
* Default implementation of the scheduled email dialog's destination region.
|
|
7
|
+
*/
|
|
8
|
+
export function ScheduledEmailDialogDestination({ notificationChannels, selectedNotificationChannelId, onChange, }) {
|
|
9
|
+
return (_jsx(DestinationSelect, { notificationChannels: notificationChannels, selectedItemId: selectedNotificationChannelId, onChange: onChange, closeOnParentScroll: CLOSE_ON_PARENT_SCROLL, overlayPositionType: OVERLAY_POSITION_TYPE }));
|
|
10
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { type IScheduledEmailDialogRecipientsProps } from "../../types.js";
|
|
2
|
+
/**
|
|
3
|
+
* Default implementation of the scheduled email dialog's recipients region.
|
|
4
|
+
*/
|
|
5
|
+
export declare function ScheduledEmailDialogRecipients(props: IScheduledEmailDialogRecipientsProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
//# sourceMappingURL=ScheduledEmailDialogRecipients.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ScheduledEmailDialogRecipients.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/ScheduledEmailDialogRecipients.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,oCAAoC,EAAE,MAAM,gBAAgB,CAAC;AAI3E;;GAEG;AACH,wBAAgB,8BAA8B,CAAC,KAAK,EAAE,oCAAoC,2CAEzF"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { RecipientsSelect } from "./RecipientsSelect/RecipientsSelect.js";
|
|
3
|
+
/**
|
|
4
|
+
* Default implementation of the scheduled email dialog's recipients region.
|
|
5
|
+
*/
|
|
6
|
+
export function ScheduledEmailDialogRecipients(props) {
|
|
7
|
+
return _jsx(RecipientsSelect, { id: "schedule.email.recipients", ...props });
|
|
8
|
+
}
|
package/esm/presentation/automations/scheduledEmail/state/useScheduledEmailExportSettings.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useScheduledEmailExportSettings.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/automations/scheduledEmail/state/useScheduledEmailExportSettings.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,QAAQ,EAAE,KAAK,cAAc,EAAuB,MAAM,OAAO,CAAC;AAIhF,OAAO,EACH,KAAK,uBAAuB,EAC5B,KAAK,iBAAiB,EACtB,KAAK,mCAAmC,EACxC,KAAK,yBAAyB,EAC9B,KAAK,4CAA4C,EACjD,KAAK,OAAO,EACZ,KAAK,QAAQ,EACb,KAAK,OAAO,EACZ,KAAK,oBAAoB,EAG5B,MAAM,qBAAqB,CAAC;AAe7B,MAAM,WAAW,qCAAqC;IAClD,gBAAgB,EAAE,mCAAmC,CAAC;IACtD,mBAAmB,EAAE,QAAQ,CAAC,cAAc,CAAC,mCAAmC,CAAC,CAAC,CAAC;IACnF,OAAO,CAAC,EAAE,QAAQ,CAAC;IACnB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,yBAAyB,EAAE,iBAAiB,EAAE,GAAG,SAAS,CAAC;IAC3D,8BAA8B,EAAE,MAAM,CAAC,MAAM,EAAE,iBAAiB,EAAE,CAAC,GAAG,SAAS,CAAC;IAChF,sBAAsB,EAAE,OAAO,EAAE,CAAC;IAClC,iCAAiC,EAAE,OAAO,EAAE,CAAC;IAC7C,kBAAkB,CAAC,EAAE,4CAA4C,CAAC,UAAU,CAAC,CAAC;IAC9E;;;OAGG;IACH,gBAAgB,CAAC,EAAE;QAAE,MAAM,EAAE,OAAO,CAAC;QAAC,UAAU,EAAE,MAAM,GAAG,SAAS,CAAA;KAAE,CAAC;CAC1E;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,+BAA+B,CAAC,EAC5C,gBAAgB,EAChB,mBAAmB,EACnB,OAAO,EACP,MAAM,EACN,YAAY,EACZ,yBAAyB,EACzB,8BAA8B,EAC9B,sBAAsB,EACtB,iCAAiC,EACjC,kBAAkB,EAClB,gBAAgB,EACnB,EAAE,qCAAqC;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"useScheduledEmailExportSettings.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/automations/scheduledEmail/state/useScheduledEmailExportSettings.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,QAAQ,EAAE,KAAK,cAAc,EAAuB,MAAM,OAAO,CAAC;AAIhF,OAAO,EACH,KAAK,uBAAuB,EAC5B,KAAK,iBAAiB,EACtB,KAAK,mCAAmC,EACxC,KAAK,yBAAyB,EAC9B,KAAK,4CAA4C,EACjD,KAAK,OAAO,EACZ,KAAK,QAAQ,EACb,KAAK,OAAO,EACZ,KAAK,oBAAoB,EAG5B,MAAM,qBAAqB,CAAC;AAe7B,MAAM,WAAW,qCAAqC;IAClD,gBAAgB,EAAE,mCAAmC,CAAC;IACtD,mBAAmB,EAAE,QAAQ,CAAC,cAAc,CAAC,mCAAmC,CAAC,CAAC,CAAC;IACnF,OAAO,CAAC,EAAE,QAAQ,CAAC;IACnB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,yBAAyB,EAAE,iBAAiB,EAAE,GAAG,SAAS,CAAC;IAC3D,8BAA8B,EAAE,MAAM,CAAC,MAAM,EAAE,iBAAiB,EAAE,CAAC,GAAG,SAAS,CAAC;IAChF,sBAAsB,EAAE,OAAO,EAAE,CAAC;IAClC,iCAAiC,EAAE,OAAO,EAAE,CAAC;IAC7C,kBAAkB,CAAC,EAAE,4CAA4C,CAAC,UAAU,CAAC,CAAC;IAC9E;;;OAGG;IACH,gBAAgB,CAAC,EAAE;QAAE,MAAM,EAAE,OAAO,CAAC;QAAC,UAAU,EAAE,MAAM,GAAG,SAAS,CAAA;KAAE,CAAC;CAC1E;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,+BAA+B,CAAC,EAC5C,gBAAgB,EAChB,mBAAmB,EACnB,OAAO,EACP,MAAM,EACN,YAAY,EACZ,yBAAyB,EACzB,8BAA8B,EAC9B,sBAAsB,EACtB,iCAAiC,EACjC,kBAAkB,EAClB,gBAAgB,EACnB,EAAE,qCAAqC;;;;;;;;;EAwSvC"}
|
package/esm/presentation/automations/scheduledEmail/state/useScheduledEmailExportSettings.js
CHANGED
|
@@ -153,14 +153,15 @@ export function useScheduledEmailExportSettings({ editedAutomation, setEditedAut
|
|
|
153
153
|
if (exportDefinition.requestPayload.format !== "CSV") {
|
|
154
154
|
return exportDefinition;
|
|
155
155
|
}
|
|
156
|
+
const { delimiter: _delimiter, ...restSettings } = exportDefinition.requestPayload.settings ?? {};
|
|
157
|
+
const nextSettings = settings.delimiter === undefined
|
|
158
|
+
? restSettings
|
|
159
|
+
: { ...restSettings, delimiter: settings.delimiter };
|
|
156
160
|
return {
|
|
157
161
|
...exportDefinition,
|
|
158
162
|
requestPayload: {
|
|
159
163
|
...exportDefinition.requestPayload,
|
|
160
|
-
settings:
|
|
161
|
-
...exportDefinition.requestPayload.settings,
|
|
162
|
-
delimiter: settings.delimiter,
|
|
163
|
-
},
|
|
164
|
+
settings: nextSettings,
|
|
164
165
|
},
|
|
165
166
|
};
|
|
166
167
|
}),
|
|
@@ -173,14 +174,15 @@ export function useScheduledEmailExportSettings({ editedAutomation, setEditedAut
|
|
|
173
174
|
if (exportDefinition.requestPayload.format !== "CSV_RAW") {
|
|
174
175
|
return exportDefinition;
|
|
175
176
|
}
|
|
177
|
+
const { delimiter: _delimiter, ...restSettings } = exportDefinition.requestPayload.settings ?? {};
|
|
178
|
+
const nextSettings = settings.delimiter === undefined
|
|
179
|
+
? restSettings
|
|
180
|
+
: { ...restSettings, delimiter: settings.delimiter };
|
|
176
181
|
return {
|
|
177
182
|
...exportDefinition,
|
|
178
183
|
requestPayload: {
|
|
179
184
|
...exportDefinition.requestPayload,
|
|
180
|
-
settings:
|
|
181
|
-
...exportDefinition.requestPayload.settings,
|
|
182
|
-
delimiter: settings.delimiter,
|
|
183
|
-
},
|
|
185
|
+
settings: nextSettings,
|
|
184
186
|
},
|
|
185
187
|
};
|
|
186
188
|
}),
|
package/esm/presentation/automations/scheduledEmail/state/useScheduledExportAttachments.d.ts
CHANGED
|
@@ -25,10 +25,10 @@ export declare function useScheduledExportAttachments(): {
|
|
|
25
25
|
exportInfo: boolean;
|
|
26
26
|
};
|
|
27
27
|
csvSettings: {
|
|
28
|
-
delimiter: string;
|
|
28
|
+
delimiter: string | undefined;
|
|
29
29
|
};
|
|
30
30
|
csvRawSettings: {
|
|
31
|
-
delimiter: string;
|
|
31
|
+
delimiter: string | undefined;
|
|
32
32
|
};
|
|
33
33
|
slidesTemplateIds: {
|
|
34
34
|
PPTX: string | undefined;
|
package/esm/presentation/automations/scheduledEmail/state/useScheduledExportAttachments.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useScheduledExportAttachments.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/automations/scheduledEmail/state/useScheduledExportAttachments.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useScheduledExportAttachments.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/automations/scheduledEmail/state/useScheduledExportAttachments.ts"],"names":[],"mappings":"AAeA;;;;;;;;;;;GAWG;AACH,wBAAgB,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;EAuH5C"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// (C) 2019-2026 GoodData Corporation
|
|
2
2
|
import { useMemo } from "react";
|
|
3
|
-
import {
|
|
3
|
+
import { isExportDefinitionDashboardRequestPayload, isExportDefinitionVisualizationObjectRequestPayload, } from "@gooddata/sdk-model";
|
|
4
4
|
import { useAutomationsContext } from "../../contexts/AutomationsContext.js";
|
|
5
5
|
import { useScheduledEmailDialogContext } from "../../contexts/ScheduledEmailDialogContext.js";
|
|
6
6
|
import { getDefaultPdfPageSize } from "../utils/pdfPageSize.js";
|
|
@@ -21,7 +21,6 @@ export function useScheduledExportAttachments() {
|
|
|
21
21
|
const { settings } = useAutomationsContext();
|
|
22
22
|
const { widget, insight } = useScheduledEmailDialogContext();
|
|
23
23
|
const { editedAutomation } = useScheduledExportDraft();
|
|
24
|
-
const resolvedDefaultCsvDelimiter = settings?.exportCsvCustomDelimiter ?? DEFAULT_CSV_DELIMITER;
|
|
25
24
|
const defaultPdfPageSize = getDefaultPdfPageSize(settings?.formatLocale);
|
|
26
25
|
const isWidget = !!widget && !!insight;
|
|
27
26
|
const selectedAttachments = useMemo(() => {
|
|
@@ -64,7 +63,7 @@ export function useScheduledExportAttachments() {
|
|
|
64
63
|
? csvExportDefinition.requestPayload.settings
|
|
65
64
|
: undefined;
|
|
66
65
|
const csvSettings = {
|
|
67
|
-
delimiter: csvExportSettings?.delimiter
|
|
66
|
+
delimiter: csvExportSettings?.delimiter,
|
|
68
67
|
};
|
|
69
68
|
const csvRawExportDefinition = editedAutomation.exportDefinitions?.find((exportDefinition) => isExportDefinitionVisualizationObjectRequestPayload(exportDefinition.requestPayload) &&
|
|
70
69
|
exportDefinition.requestPayload.format === "CSV_RAW");
|
|
@@ -73,7 +72,7 @@ export function useScheduledExportAttachments() {
|
|
|
73
72
|
? csvRawExportDefinition.requestPayload.settings
|
|
74
73
|
: undefined;
|
|
75
74
|
const csvRawSettings = {
|
|
76
|
-
delimiter: csvRawExportSettings?.delimiter
|
|
75
|
+
delimiter: csvRawExportSettings?.delimiter,
|
|
77
76
|
};
|
|
78
77
|
// Extract templateId per slides format, scoped to the current dialog mode
|
|
79
78
|
const getTemplateIdForFormat = (format) => {
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { type ComponentType, type KeyboardEvent, type ReactNode, type Ref } from "react";
|
|
2
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";
|
|
3
3
|
import { type GoodDataSdkError } from "@gooddata/sdk-ui";
|
|
4
|
+
import { type ISlotProps } from "@gooddata/sdk-ui-kit";
|
|
4
5
|
import { type IAutomationFiltersTab } from "../../../model/store/filtering/types.js";
|
|
5
6
|
import { type IAutomationParameter } from "../shared/automationFilters/automationParameters.js";
|
|
6
|
-
import { type IAutomationDialogFiltersProps, type IAutomationDialogHeaderProps, type
|
|
7
|
+
import { type IAutomationDialogActionBarProps, type IAutomationDialogDestinationProps, type IAutomationDialogFiltersProps, type IAutomationDialogHeaderProps, type IAutomationDialogRecipientsProps } from "../shared/slots/types.js";
|
|
7
8
|
/**
|
|
8
9
|
* @alpha
|
|
9
10
|
*/
|
|
@@ -273,6 +274,17 @@ export interface IScheduledEmailDialogTimezoneProps {
|
|
|
273
274
|
* @alpha
|
|
274
275
|
*/
|
|
275
276
|
export type ScheduledEmailDialogTimezoneDefaultProps = IScheduledEmailDialogTimezoneProps;
|
|
277
|
+
/**
|
|
278
|
+
* Props of the default scheduled email dialog's recipients region.
|
|
279
|
+
*
|
|
280
|
+
* @alpha
|
|
281
|
+
*/
|
|
282
|
+
export interface IScheduledEmailDialogRecipientsProps extends IAutomationDialogRecipientsProps {
|
|
283
|
+
/**
|
|
284
|
+
* Submits the dialog from the recipients input. The default dialog always supplies it.
|
|
285
|
+
*/
|
|
286
|
+
onKeyDownSubmit: (e: KeyboardEvent) => void;
|
|
287
|
+
}
|
|
276
288
|
/**
|
|
277
289
|
* Section-level overrides of the default scheduled email dialog.
|
|
278
290
|
*
|
|
@@ -281,12 +293,12 @@ export type ScheduledEmailDialogTimezoneDefaultProps = IScheduledEmailDialogTime
|
|
|
281
293
|
export interface IScheduledEmailDialogSlots {
|
|
282
294
|
/**
|
|
283
295
|
* Wraps or replaces the dialog header (the title input row). Must have a stable reference
|
|
284
|
-
* identity — see {@link ISlotProps}.
|
|
296
|
+
* identity — see {@link @gooddata/sdk-ui-kit#ISlotProps}.
|
|
285
297
|
*/
|
|
286
298
|
Header?: ComponentType<ISlotProps<ScheduledEmailDialogHeaderDefaultProps>>;
|
|
287
299
|
/**
|
|
288
300
|
* Wraps or replaces the Filters tab content (the filter and parameter chips). Must have a
|
|
289
|
-
* stable reference identity — see {@link ISlotProps}.
|
|
301
|
+
* stable reference identity — see {@link @gooddata/sdk-ui-kit#ISlotProps}.
|
|
290
302
|
*
|
|
291
303
|
* Renders only in the fully rendered dialog **and only while the Filters tab is selected**:
|
|
292
304
|
* not while the dialog context reports loading, not while the stale-filters confirmation
|
|
@@ -301,13 +313,48 @@ export interface IScheduledEmailDialogSlots {
|
|
|
301
313
|
Filters?: ComponentType<ISlotProps<IScheduledEmailDialogFiltersProps>>;
|
|
302
314
|
/**
|
|
303
315
|
* Wraps or replaces the "Time zone" section on the General tab. Must have a stable reference
|
|
304
|
-
* identity — see {@link ISlotProps}.
|
|
316
|
+
* identity — see {@link @gooddata/sdk-ui-kit#ISlotProps}.
|
|
305
317
|
*
|
|
306
318
|
* Renders only when the dialog shows the section at all: the dashboard-timezone feature is
|
|
307
319
|
* enabled and the dashboard allows the view-mode timezone override. When the section is
|
|
308
320
|
* hidden, the slot is not rendered either.
|
|
309
321
|
*/
|
|
310
322
|
Timezone?: ComponentType<ISlotProps<ScheduledEmailDialogTimezoneDefaultProps>>;
|
|
323
|
+
/**
|
|
324
|
+
* Wraps or replaces the dialog's destination region (the notification-channel select on the
|
|
325
|
+
* General tab). Must have a stable reference identity — see {@link @gooddata/sdk-ui-kit#ISlotProps}.
|
|
326
|
+
*
|
|
327
|
+
* Renders only in the fully rendered dialog **and only while the General tab is selected**:
|
|
328
|
+
* not while the dialog context reports loading, and not while the stale-filters confirmation
|
|
329
|
+
* step is shown. It unmounts — losing any local state — on every switch to the Filters tab.
|
|
330
|
+
*/
|
|
331
|
+
Destination?: ComponentType<ISlotProps<IAutomationDialogDestinationProps>>;
|
|
332
|
+
/**
|
|
333
|
+
* Wraps or replaces the dialog's recipients region on the General tab. Must have a stable
|
|
334
|
+
* reference identity — see {@link @gooddata/sdk-ui-kit#ISlotProps}.
|
|
335
|
+
*
|
|
336
|
+
* Renders only in the fully rendered dialog **and only while the General tab is selected**:
|
|
337
|
+
* not while the dialog context reports loading, and not while the stale-filters confirmation
|
|
338
|
+
* step is shown. It unmounts — losing any local state — on every switch to the Filters tab.
|
|
339
|
+
*/
|
|
340
|
+
Recipients?: ComponentType<ISlotProps<IScheduledEmailDialogRecipientsProps>>;
|
|
341
|
+
/**
|
|
342
|
+
* Wraps or replaces the dialog's action bar (the footer row: documentation link, Delete in
|
|
343
|
+
* edit mode, Cancel and the submit button). Must have a stable reference identity — see
|
|
344
|
+
* {@link @gooddata/sdk-ui-kit#ISlotProps}.
|
|
345
|
+
*
|
|
346
|
+
* Renders only in the fully rendered dialog: not while the dialog context reports loading
|
|
347
|
+
* (the loading dialog keeps its own footer), and not while the stale-filters confirmation
|
|
348
|
+
* step is shown. Unlike the Filters and Destination slots it renders on **both** tabs — the
|
|
349
|
+
* footer is tab-independent.
|
|
350
|
+
*
|
|
351
|
+
* A replacement that does not render `Default` loses the submit button's Enter-key detection
|
|
352
|
+
* id (Enter no longer submits), the validation aria wiring, and the default row's ordering.
|
|
353
|
+
* Wraps that render `<Default {...defaultProps} />` keep everything; note the Enter-key path
|
|
354
|
+
* invokes the dialog's own submit handler and disabled state, so `defaultProps` overrides
|
|
355
|
+
* affect the buttons only.
|
|
356
|
+
*/
|
|
357
|
+
ActionBar?: ComponentType<ISlotProps<IAutomationDialogActionBarProps>>;
|
|
311
358
|
}
|
|
312
359
|
/**
|
|
313
360
|
* Props of {@link DefaultScheduledEmailDialog}.
|
|
@@ -316,8 +363,8 @@ export interface IScheduledEmailDialogSlots {
|
|
|
316
363
|
* Extends the shared {@link IScheduledEmailDialogProps} with customization only the default implementation
|
|
317
364
|
* supports. Slots render only in the fully rendered dialog: not while the dialog context reports
|
|
318
365
|
* loading, and not while the stale-filters confirmation step is shown. The Filters slot
|
|
319
|
-
* additionally renders only while the Filters tab is selected
|
|
320
|
-
* {@link IScheduledEmailDialogSlots
|
|
366
|
+
* additionally renders only while the Filters tab is selected; the Destination and Recipients
|
|
367
|
+
* slots only while the General tab is — see {@link IScheduledEmailDialogSlots}.
|
|
321
368
|
*
|
|
322
369
|
* @alpha
|
|
323
370
|
*/
|
|
@@ -325,8 +372,41 @@ export interface IDefaultScheduledEmailDialogProps extends IScheduledEmailDialog
|
|
|
325
372
|
/**
|
|
326
373
|
* Section-level overrides. Each slot receives `{ Default, defaultProps }` and may render its own
|
|
327
374
|
* content (replace) or `<Default {...defaultProps} />` inside its own markup (wrap).
|
|
375
|
+
*
|
|
376
|
+
* @example
|
|
377
|
+
* The dialog is reached through the `Dashboard` component override; define slot components at
|
|
378
|
+
* module scope (see {@link @gooddata/sdk-ui-kit#ISlotProps}):
|
|
379
|
+
* ```tsx
|
|
380
|
+
* function RecipientsWithNote({ Default, defaultProps }: ISlotProps<IScheduledEmailDialogRecipientsProps>) {
|
|
381
|
+
* return (
|
|
382
|
+
* <>
|
|
383
|
+
* <Default {...defaultProps} />
|
|
384
|
+
* <Note>External recipients receive a public link.</Note>
|
|
385
|
+
* </>
|
|
386
|
+
* );
|
|
387
|
+
* }
|
|
388
|
+
*
|
|
389
|
+
* <Dashboard
|
|
390
|
+
* ScheduledEmailDialogComponent={(props) => (
|
|
391
|
+
* <DefaultScheduledEmailDialog {...props} slots={{ Recipients: RecipientsWithNote }} />
|
|
392
|
+
* )}
|
|
393
|
+
* />;
|
|
394
|
+
* ```
|
|
328
395
|
*/
|
|
329
396
|
slots?: IScheduledEmailDialogSlots;
|
|
397
|
+
/**
|
|
398
|
+
* Content rendered as the first child of the dialog's scrollable content area, above the
|
|
399
|
+
* form. Rendered only in the fully rendered dialog: not while the dialog context reports
|
|
400
|
+
* loading, and not while the stale-filters confirmation step is shown. Rendered on both
|
|
401
|
+
* tabs — it is a content-area child, not a tab child.
|
|
402
|
+
*/
|
|
403
|
+
topContent?: ReactNode;
|
|
404
|
+
/**
|
|
405
|
+
* Content rendered as the last child of the dialog's scrollable content area, below the
|
|
406
|
+
* form. Same rendering conditions as {@link IDefaultScheduledEmailDialogProps.topContent}.
|
|
407
|
+
* Rendered on both tabs — it is a content-area child, not a tab child.
|
|
408
|
+
*/
|
|
409
|
+
bottomContent?: ReactNode;
|
|
330
410
|
}
|
|
331
411
|
/**
|
|
332
412
|
*
|
|
@@ -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,EACtB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/presentation/automations/scheduledEmail/types.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,aAAa,EAA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AC7B;AAED;;;GAGG;AACH,MAAM,WAAW,oCAAoC;IACjD;;;;;OAKG;IACH,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAEhC;;;;OAIG;IACH,iBAAiB,CAAC,EAAE,gBAAgB,CAAC;IAErC;;;;OAIG;IACH,oBAAoB,CAAC,EAAE,8BAA8B,EAAE,GAAG,kCAAkC,EAAE,CAAC;IAE/F;;;;;OAKG;IACH,WAAW,CAAC,EAAE,yBAAyB,EAAE,CAAC;IAE1C;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,IAAI,CAAC;IAEnB;;OAEG;IACH,MAAM,CAAC,EAAE,CAAC,aAAa,EAAE,yBAAyB,KAAK,IAAI,CAAC;IAE5D;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IAErB;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,IAAI,CAAC;IAE7B;;OAEG;IACH,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,gBAAgB,KAAK,IAAI,CAAC;CACrD;AAMD;;GAEG;AACH,MAAM,MAAM,mCAAmC,GAAG,aAAa,CAAC,0BAA0B,CAAC,CAAC;AAE5F;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,MAAM,MAAM,mDAAmD,GAAG,aAAa,CAAC;IAC5E,QAAQ,CAAC,EAAE,SAAS,CAAC;CACxB,CAAC,CAAC;AAEH;;GAEG;AACH,MAAM,MAAM,6CAA6C,GACrD,aAAa,CAAC,oCAAoC,CAAC,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { type IAutomationDialogActionBarProps } from "./types.js";
|
|
2
|
+
interface IAutomationDialogFooterLeftProps {
|
|
3
|
+
helpLinkText?: string;
|
|
4
|
+
helpLinkHref?: string;
|
|
5
|
+
deleteButtonText?: string;
|
|
6
|
+
onDelete?: () => void;
|
|
7
|
+
isDeleteDisabled?: boolean;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* The footer-left area of both automation dialogs: the documentation link and, in edit mode,
|
|
11
|
+
* the delete button.
|
|
12
|
+
*
|
|
13
|
+
* @internal
|
|
14
|
+
*/
|
|
15
|
+
export declare function AutomationDialogFooterLeft({ helpLinkText, helpLinkHref, deleteButtonText, onDelete, isDeleteDisabled }: IAutomationDialogFooterLeftProps): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
/**
|
|
17
|
+
* Default implementation of both automation dialogs' ActionBar slot. Fully props-driven: every
|
|
18
|
+
* value it renders arrives through {@link IAutomationDialogActionBarProps}, so a wrapping slot
|
|
19
|
+
* can override any of them before spreading onto it.
|
|
20
|
+
*
|
|
21
|
+
* @internal
|
|
22
|
+
*/
|
|
23
|
+
export declare function AutomationDialogActionBar({ cancelButtonText, submitButtonText, onCancel, onSubmit, isSubmitDisabled, isSaving, submitButtonTooltipText, helpLinkText, helpLinkHref, onDelete, deleteButtonText }: IAutomationDialogActionBarProps): import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
export {};
|
|
25
|
+
//# sourceMappingURL=AutomationDialogActionBar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AutomationDialogActionBar.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/automations/shared/slots/AutomationDialogActionBar.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,+BAA+B,EAAE,MAAM,YAAY,CAAC;AAElE,UAAU,gCAAgC;IACtC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC9B;AAED;;;;;GAKG;AACH,wBAAgB,0BAA0B,CAAC,EACvC,YAAY,EACZ,YAAY,EACZ,gBAAgB,EAChB,QAAQ,EACR,gBAAgB,EACnB,EAAE,gCAAgC,2CAgBlC;AAED;;;;;;GAMG;AACH,wBAAgB,yBAAyB,CAAC,EACtC,gBAAgB,EAChB,gBAAgB,EAChB,QAAQ,EACR,QAAQ,EACR,gBAAgB,EAChB,QAAQ,EACR,uBAAuB,EACvB,YAAY,EACZ,YAAY,EACZ,QAAQ,EACR,gBAAgB,EACnB,EAAE,+BAA+B,2CAsBjC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
// (C) 2026 GoodData Corporation
|
|
3
|
+
import { Button, ConfirmDialogFooter, Hyperlink } from "@gooddata/sdk-ui-kit";
|
|
4
|
+
/**
|
|
5
|
+
* The footer-left area of both automation dialogs: the documentation link and, in edit mode,
|
|
6
|
+
* the delete button.
|
|
7
|
+
*
|
|
8
|
+
* @internal
|
|
9
|
+
*/
|
|
10
|
+
export function AutomationDialogFooterLeft({ helpLinkText, helpLinkHref, deleteButtonText, onDelete, isDeleteDisabled, }) {
|
|
11
|
+
return (_jsxs("div", { className: "gd-notifications-channels-dialog-footer-link", children: [helpLinkText && helpLinkHref ? (_jsx(Hyperlink, { text: helpLinkText, href: helpLinkHref, iconClass: "gd-icon-circle-question" })) : null, onDelete ? (_jsx(Button, { className: "gd-button-link-dimmed", value: deleteButtonText, onClick: onDelete, disabled: isDeleteDisabled })) : null] }));
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Default implementation of both automation dialogs' ActionBar slot. Fully props-driven: every
|
|
15
|
+
* value it renders arrives through {@link IAutomationDialogActionBarProps}, so a wrapping slot
|
|
16
|
+
* can override any of them before spreading onto it.
|
|
17
|
+
*
|
|
18
|
+
* @internal
|
|
19
|
+
*/
|
|
20
|
+
export function AutomationDialogActionBar({ cancelButtonText, submitButtonText, onCancel, onSubmit, isSubmitDisabled, isSaving, submitButtonTooltipText, helpLinkText, helpLinkHref, onDelete, deleteButtonText, }) {
|
|
21
|
+
return (_jsx(ConfirmDialogFooter, { footerLeft: _jsx(AutomationDialogFooterLeft, { helpLinkText: helpLinkText, helpLinkHref: helpLinkHref, deleteButtonText: deleteButtonText, onDelete: onDelete, isDeleteDisabled: isSaving }), showProgressIndicator: isSaving, cancelButtonText: cancelButtonText, onCancel: onCancel, submitButtonText: submitButtonText, onSubmit: onSubmit, isSubmitDisabled: isSubmitDisabled, submitButtonTooltipText: submitButtonTooltipText, isPositive: true }));
|
|
22
|
+
}
|
|
@@ -1,31 +1,6 @@
|
|
|
1
|
-
import { type
|
|
2
|
-
import { type FilterContextItem, type IdentifierRef, type ParameterValue } from "@gooddata/sdk-model";
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
|
+
import { type FilterContextItem, type IAutomationRecipient, type INotificationChannelIdentifier, type INotificationChannelMetadataObject, type IdentifierRef, type ParameterValue } from "@gooddata/sdk-model";
|
|
3
3
|
import { type IAutomationParameter } from "../automationFilters/automationParameters.js";
|
|
4
|
-
/**
|
|
5
|
-
* Contract of a section-level slot: the default implementation and the exact props the default
|
|
6
|
-
* dialog would render it with.
|
|
7
|
-
*
|
|
8
|
-
* The component a customer assigns to a slot is rendered as an element type, so its reference
|
|
9
|
-
* identity is load-bearing: define it at module scope (or memoize it), never inline in a render
|
|
10
|
-
* function — an inline definition gets a fresh identity on every render of the declaring
|
|
11
|
-
* component, which unmounts and remounts the region, losing focus and transient DOM state.
|
|
12
|
-
*
|
|
13
|
-
* Render `<Default {...defaultProps} />` inside your own markup to wrap the region rather than
|
|
14
|
-
* replace it; a slot that does not spread `defaultProps` onto `Default` loses the default
|
|
15
|
-
* behavior wired through them (including the dialog's initial-focus ref).
|
|
16
|
-
*
|
|
17
|
-
* @alpha
|
|
18
|
-
*/
|
|
19
|
-
export interface ISlotProps<TProps> {
|
|
20
|
-
/**
|
|
21
|
-
* The default implementation of the region.
|
|
22
|
-
*/
|
|
23
|
-
Default: ComponentType<TProps>;
|
|
24
|
-
/**
|
|
25
|
-
* The exact props the default dialog would render {@link ISlotProps.Default} with.
|
|
26
|
-
*/
|
|
27
|
-
defaultProps: TProps;
|
|
28
|
-
}
|
|
29
4
|
/**
|
|
30
5
|
* Members shared by both automation dialogs' header regions.
|
|
31
6
|
*
|
|
@@ -97,4 +72,122 @@ export interface IAutomationDialogFiltersProps {
|
|
|
97
72
|
*/
|
|
98
73
|
onParameterDelete: (ref: IdentifierRef) => void;
|
|
99
74
|
}
|
|
75
|
+
/**
|
|
76
|
+
* Members shared by both automation dialogs' destination regions.
|
|
77
|
+
*
|
|
78
|
+
* @alpha
|
|
79
|
+
*/
|
|
80
|
+
export interface IAutomationDialogDestinationProps {
|
|
81
|
+
/**
|
|
82
|
+
* Notification channels the automation can target.
|
|
83
|
+
*/
|
|
84
|
+
notificationChannels: INotificationChannelIdentifier[] | INotificationChannelMetadataObject[];
|
|
85
|
+
/**
|
|
86
|
+
* Id of the automation's currently selected notification channel.
|
|
87
|
+
*/
|
|
88
|
+
selectedNotificationChannelId: string | undefined;
|
|
89
|
+
/**
|
|
90
|
+
* Called with the id of the newly selected notification channel.
|
|
91
|
+
*/
|
|
92
|
+
onChange: (notificationChannelId: string) => void;
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* Members shared by both automation dialogs' recipients regions.
|
|
96
|
+
*
|
|
97
|
+
* @alpha
|
|
98
|
+
*/
|
|
99
|
+
export interface IAutomationDialogRecipientsProps {
|
|
100
|
+
/**
|
|
101
|
+
* Currently selected recipients.
|
|
102
|
+
*/
|
|
103
|
+
value: IAutomationRecipient[];
|
|
104
|
+
/**
|
|
105
|
+
* Replaces the selection with the complete updated array.
|
|
106
|
+
*/
|
|
107
|
+
onChange: (recipients: IAutomationRecipient[]) => void;
|
|
108
|
+
/**
|
|
109
|
+
* The logged-in user as a recipient candidate.
|
|
110
|
+
*/
|
|
111
|
+
loggedUser?: IAutomationRecipient;
|
|
112
|
+
/**
|
|
113
|
+
* Restricts the selection to the logged-in user.
|
|
114
|
+
*/
|
|
115
|
+
allowOnlyLoggedUserRecipients?: boolean;
|
|
116
|
+
/**
|
|
117
|
+
* Allows removing the last recipient.
|
|
118
|
+
*/
|
|
119
|
+
allowEmptySelection?: boolean;
|
|
120
|
+
/**
|
|
121
|
+
* Allows recipients that are not workspace users.
|
|
122
|
+
*/
|
|
123
|
+
allowExternalRecipients?: boolean;
|
|
124
|
+
/**
|
|
125
|
+
* Maximum number of recipients.
|
|
126
|
+
*/
|
|
127
|
+
maxRecipients?: number;
|
|
128
|
+
/**
|
|
129
|
+
* Notification channels, used to derive channel-specific recipient constraints.
|
|
130
|
+
*/
|
|
131
|
+
notificationChannels?: INotificationChannelIdentifier[] | INotificationChannelMetadataObject[];
|
|
132
|
+
/**
|
|
133
|
+
* Id of the automation's currently selected notification channel.
|
|
134
|
+
*/
|
|
135
|
+
notificationChannelId?: string;
|
|
136
|
+
/**
|
|
137
|
+
* When set, the only addable recipient is this external address.
|
|
138
|
+
*/
|
|
139
|
+
externalRecipientOverride?: string;
|
|
140
|
+
}
|
|
141
|
+
/**
|
|
142
|
+
* Members shared by both automation dialogs' action-bar regions (the footer row).
|
|
143
|
+
*
|
|
144
|
+
* @alpha
|
|
145
|
+
*/
|
|
146
|
+
export interface IAutomationDialogActionBarProps {
|
|
147
|
+
/**
|
|
148
|
+
* Label of the cancel button.
|
|
149
|
+
*/
|
|
150
|
+
cancelButtonText: string;
|
|
151
|
+
/**
|
|
152
|
+
* Label of the submit button ("Create" / "Save" per mode).
|
|
153
|
+
*/
|
|
154
|
+
submitButtonText: string;
|
|
155
|
+
/**
|
|
156
|
+
* Closes the dialog without saving.
|
|
157
|
+
*/
|
|
158
|
+
onCancel: () => void;
|
|
159
|
+
/**
|
|
160
|
+
* Submits the automation.
|
|
161
|
+
*/
|
|
162
|
+
onSubmit: () => void;
|
|
163
|
+
/**
|
|
164
|
+
* Whether submitting is currently disabled (validation, saving, execution-timestamp mode).
|
|
165
|
+
*/
|
|
166
|
+
isSubmitDisabled: boolean;
|
|
167
|
+
/**
|
|
168
|
+
* Whether a save is in flight; drives the progress spinner and disables Delete.
|
|
169
|
+
*/
|
|
170
|
+
isSaving: boolean;
|
|
171
|
+
/**
|
|
172
|
+
* Tooltip shown on the disabled submit button, when there is one.
|
|
173
|
+
*/
|
|
174
|
+
submitButtonTooltipText?: string;
|
|
175
|
+
/**
|
|
176
|
+
* Text of the documentation link. Absent (with {@link IAutomationDialogActionBarProps.helpLinkHref})
|
|
177
|
+
* when the workspace is white-labeled.
|
|
178
|
+
*/
|
|
179
|
+
helpLinkText?: string;
|
|
180
|
+
/**
|
|
181
|
+
* Target of the documentation link. Absent when the workspace is white-labeled.
|
|
182
|
+
*/
|
|
183
|
+
helpLinkHref?: string;
|
|
184
|
+
/**
|
|
185
|
+
* Opens the delete confirmation. Absent when creating a new automation.
|
|
186
|
+
*/
|
|
187
|
+
onDelete?: () => void;
|
|
188
|
+
/**
|
|
189
|
+
* Label of the delete button. Present with {@link IAutomationDialogActionBarProps.onDelete}.
|
|
190
|
+
*/
|
|
191
|
+
deleteButtonText?: string;
|
|
192
|
+
}
|
|
100
193
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/automations/shared/slots/types.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/automations/shared/slots/types.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,EACH,KAAK,iBAAiB,EACtB,KAAK,oBAAoB,EACzB,KAAK,8BAA8B,EACnC,KAAK,kCAAkC,EACvC,KAAK,aAAa,EAClB,KAAK,cAAc,EACtB,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,KAAK,oBAAoB,EAAE,MAAM,8CAA8C,CAAC;AAEzF;;;;GAIG;AACH,MAAM,WAAW,4BAA4B;IACzC;;OAEG;IACH,KAAK,EAAE,MAAM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"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAA6D,MAAM,OAAO,CAAC;AAElG,MAAM,WAAW,oBAAoB;IACjC,SAAS,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"ExportCsvDialogContext.d.ts","sourceRoot":"","sources":["../../../src/presentation/dashboardContexts/ExportCsvDialogContext.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAA6D,MAAM,OAAO,CAAC;AAElG,MAAM,WAAW,oBAAoB;IACjC,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,sBAAsB;IACnC,QAAQ,EAAE,CAAC,IAAI,EAAE,oBAAoB,KAAK,IAAI,CAAC;CAClD;AAED;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACpC,MAAM,EAAE,OAAO,CAAC;IAChB,YAAY,CAAC,EAAE,sBAAsB,CAAC;IACtC,UAAU,EAAE,CAAC,MAAM,EAAE,sBAAsB,KAAK,IAAI,CAAC;IACrD,WAAW,EAAE,MAAM,IAAI,CAAC;CAC3B;AASD;;GAEG;AACH,eAAO,MAAM,yBAAyB,+BAErC,CAAC;AAEF;;GAEG;AACH,wBAAgB,8BAA8B,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,CAAC,EAAE,SAAS,CAAA;CAAE,2CAmBpF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExportCsvDialog.d.ts","sourceRoot":"","sources":["../../../src/presentation/dialogs/ExportCsvDialog.tsx"],"names":[],"mappings":"AAcA,OAAO,EAAE,KAAK,oBAAoB,EAAE,MAAM,gDAAgD,CAAC;AAW3F,MAAM,WAAW,qBAAqB;IAClC,
|
|
1
|
+
{"version":3,"file":"ExportCsvDialog.d.ts","sourceRoot":"","sources":["../../../src/presentation/dialogs/ExportCsvDialog.tsx"],"names":[],"mappings":"AAcA,OAAO,EAAE,KAAK,oBAAoB,EAAE,MAAM,gDAAgD,CAAC;AAW3F,MAAM,WAAW,qBAAqB;IAClC,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,QAAQ,EAAE,CAAC,IAAI,EAAE,oBAAoB,KAAK,IAAI,CAAC;CAClD;AAED,eAAO,MAAM,eAAe,6DA2C1B,CAAC"}
|