@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.
Files changed (243) hide show
  1. package/NOTICE +93513 -17188
  2. package/esm/__version.d.ts +1 -1
  3. package/esm/__version.js +1 -1
  4. package/esm/_staging/automation/index.d.ts +6 -0
  5. package/esm/_staging/automation/index.d.ts.map +1 -1
  6. package/esm/_staging/automation/index.js +7 -0
  7. package/esm/index.d.ts +3 -2
  8. package/esm/index.d.ts.map +1 -1
  9. package/esm/model/DashboardTester.d.ts +150 -0
  10. package/esm/model/DashboardTester.d.ts.map +1 -0
  11. package/esm/model/DashboardTester.js +208 -0
  12. package/esm/model/commandHandlers/dashboard/common/parameterHydration.d.ts +7 -0
  13. package/esm/model/commandHandlers/dashboard/common/parameterHydration.d.ts.map +1 -1
  14. package/esm/model/commandHandlers/dashboard/common/parameterHydration.js +17 -1
  15. package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/index.d.ts.map +1 -1
  16. package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/index.js +27 -1
  17. package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/loadAutomationTimezone.d.ts +9 -0
  18. package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/loadAutomationTimezone.d.ts.map +1 -0
  19. package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/loadAutomationTimezone.js +27 -0
  20. package/esm/model/commandHandlers/filterContext/filterViewHandler.d.ts.map +1 -1
  21. package/esm/model/commandHandlers/filterContext/filterViewHandler.js +7 -7
  22. package/esm/model/commandHandlers/timezone/changeDashboardTimezoneOverrideHandler.d.ts.map +1 -1
  23. package/esm/model/commandHandlers/timezone/changeDashboardTimezoneOverrideHandler.js +2 -11
  24. package/esm/model/commands/timezone.d.ts +10 -2
  25. package/esm/model/commands/timezone.d.ts.map +1 -1
  26. package/esm/model/commands/timezone.js +5 -2
  27. package/esm/presentation/automations/alerting/DefaultAlertingDialog/AlertingDialogDestination.d.ts +6 -0
  28. package/esm/presentation/automations/alerting/DefaultAlertingDialog/AlertingDialogDestination.d.ts.map +1 -0
  29. package/esm/presentation/automations/alerting/DefaultAlertingDialog/AlertingDialogDestination.js +13 -0
  30. package/esm/presentation/automations/alerting/DefaultAlertingDialog/AlertingDialogRecipients.d.ts +7 -0
  31. package/esm/presentation/automations/alerting/DefaultAlertingDialog/AlertingDialogRecipients.d.ts.map +1 -0
  32. package/esm/presentation/automations/alerting/DefaultAlertingDialog/AlertingDialogRecipients.js +12 -0
  33. package/esm/presentation/automations/alerting/DefaultAlertingDialog/DefaultAlertingDialog.d.ts +1 -1
  34. package/esm/presentation/automations/alerting/DefaultAlertingDialog/DefaultAlertingDialog.d.ts.map +1 -1
  35. package/esm/presentation/automations/alerting/DefaultAlertingDialog/DefaultAlertingDialog.js +61 -22
  36. package/esm/presentation/automations/alerting/DefaultAlertingDialog/FormField.d.ts +8 -0
  37. package/esm/presentation/automations/alerting/DefaultAlertingDialog/FormField.d.ts.map +1 -0
  38. package/esm/presentation/automations/alerting/DefaultAlertingDialog/FormField.js +8 -0
  39. package/esm/presentation/automations/alerting/types.d.ts +72 -4
  40. package/esm/presentation/automations/alerting/types.d.ts.map +1 -1
  41. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/DefaultScheduledEmailDialog.d.ts +1 -1
  42. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/DefaultScheduledEmailDialog.d.ts.map +1 -1
  43. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/DefaultScheduledEmailDialog.js +60 -15
  44. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/Attachments/AttachmentSettings.d.ts.map +1 -1
  45. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/Attachments/AttachmentSettings.js +2 -3
  46. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/RecipientsSelect/RecipientsSelect.d.ts +1 -5
  47. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/RecipientsSelect/RecipientsSelect.d.ts.map +1 -1
  48. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/RecipientsSelect/RecipientsSelect.js +2 -2
  49. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/RecipientsSelect/RecipientsSelectRenderer.d.ts +0 -4
  50. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/RecipientsSelect/RecipientsSelectRenderer.d.ts.map +1 -1
  51. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/ScheduledEmailDialogDestination.d.ts +6 -0
  52. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/ScheduledEmailDialogDestination.d.ts.map +1 -0
  53. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/ScheduledEmailDialogDestination.js +10 -0
  54. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/ScheduledEmailDialogRecipients.d.ts +6 -0
  55. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/ScheduledEmailDialogRecipients.d.ts.map +1 -0
  56. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/ScheduledEmailDialogRecipients.js +8 -0
  57. package/esm/presentation/automations/scheduledEmail/state/useScheduledEmailExportSettings.d.ts.map +1 -1
  58. package/esm/presentation/automations/scheduledEmail/state/useScheduledEmailExportSettings.js +10 -8
  59. package/esm/presentation/automations/scheduledEmail/state/useScheduledExportAttachments.d.ts +2 -2
  60. package/esm/presentation/automations/scheduledEmail/state/useScheduledExportAttachments.d.ts.map +1 -1
  61. package/esm/presentation/automations/scheduledEmail/state/useScheduledExportAttachments.js +3 -4
  62. package/esm/presentation/automations/scheduledEmail/types.d.ts +86 -6
  63. package/esm/presentation/automations/scheduledEmail/types.d.ts.map +1 -1
  64. package/esm/presentation/automations/shared/slots/AutomationDialogActionBar.d.ts +25 -0
  65. package/esm/presentation/automations/shared/slots/AutomationDialogActionBar.d.ts.map +1 -0
  66. package/esm/presentation/automations/shared/slots/AutomationDialogActionBar.js +22 -0
  67. package/esm/presentation/automations/shared/slots/types.d.ts +120 -27
  68. package/esm/presentation/automations/shared/slots/types.d.ts.map +1 -1
  69. package/esm/presentation/dashboardContexts/ExportCsvDialogContext.d.ts +1 -2
  70. package/esm/presentation/dashboardContexts/ExportCsvDialogContext.d.ts.map +1 -1
  71. package/esm/presentation/dialogs/ExportCsvDialog.d.ts +0 -1
  72. package/esm/presentation/dialogs/ExportCsvDialog.d.ts.map +1 -1
  73. package/esm/presentation/dialogs/ExportCsvDialog.js +2 -2
  74. package/esm/presentation/dialogs/ExportCsvDialogProvider.d.ts.map +1 -1
  75. package/esm/presentation/dialogs/ExportCsvDialogProvider.js +1 -1
  76. package/esm/presentation/localization/bundles/de-DE.localization-bundle.d.ts +12 -15
  77. package/esm/presentation/localization/bundles/de-DE.localization-bundle.d.ts.map +1 -1
  78. package/esm/presentation/localization/bundles/de-DE.localization-bundle.js +12 -15
  79. package/esm/presentation/localization/bundles/en-AU.localization-bundle.d.ts +12 -15
  80. package/esm/presentation/localization/bundles/en-AU.localization-bundle.d.ts.map +1 -1
  81. package/esm/presentation/localization/bundles/en-AU.localization-bundle.js +14 -17
  82. package/esm/presentation/localization/bundles/en-GB.localization-bundle.d.ts +12 -15
  83. package/esm/presentation/localization/bundles/en-GB.localization-bundle.d.ts.map +1 -1
  84. package/esm/presentation/localization/bundles/en-GB.localization-bundle.js +14 -17
  85. package/esm/presentation/localization/bundles/en-US.localization-bundle.d.ts +0 -60
  86. package/esm/presentation/localization/bundles/en-US.localization-bundle.d.ts.map +1 -1
  87. package/esm/presentation/localization/bundles/en-US.localization-bundle.js +0 -60
  88. package/esm/presentation/localization/bundles/es-419.localization-bundle.d.ts +12 -15
  89. package/esm/presentation/localization/bundles/es-419.localization-bundle.d.ts.map +1 -1
  90. package/esm/presentation/localization/bundles/es-419.localization-bundle.js +14 -17
  91. package/esm/presentation/localization/bundles/es-ES.localization-bundle.d.ts +10 -15
  92. package/esm/presentation/localization/bundles/es-ES.localization-bundle.d.ts.map +1 -1
  93. package/esm/presentation/localization/bundles/es-ES.localization-bundle.js +12 -17
  94. package/esm/presentation/localization/bundles/fi-FI.localization-bundle.d.ts +12 -15
  95. package/esm/presentation/localization/bundles/fi-FI.localization-bundle.d.ts.map +1 -1
  96. package/esm/presentation/localization/bundles/fi-FI.localization-bundle.js +14 -17
  97. package/esm/presentation/localization/bundles/fr-CA.localization-bundle.d.ts +12 -15
  98. package/esm/presentation/localization/bundles/fr-CA.localization-bundle.d.ts.map +1 -1
  99. package/esm/presentation/localization/bundles/fr-CA.localization-bundle.js +14 -17
  100. package/esm/presentation/localization/bundles/fr-FR.localization-bundle.d.ts +12 -15
  101. package/esm/presentation/localization/bundles/fr-FR.localization-bundle.d.ts.map +1 -1
  102. package/esm/presentation/localization/bundles/fr-FR.localization-bundle.js +14 -17
  103. package/esm/presentation/localization/bundles/id-ID.localization-bundle.d.ts +12 -15
  104. package/esm/presentation/localization/bundles/id-ID.localization-bundle.d.ts.map +1 -1
  105. package/esm/presentation/localization/bundles/id-ID.localization-bundle.js +14 -17
  106. package/esm/presentation/localization/bundles/it-IT.localization-bundle.d.ts +12 -15
  107. package/esm/presentation/localization/bundles/it-IT.localization-bundle.d.ts.map +1 -1
  108. package/esm/presentation/localization/bundles/it-IT.localization-bundle.js +14 -17
  109. package/esm/presentation/localization/bundles/ja-JP.localization-bundle.d.ts +12 -15
  110. package/esm/presentation/localization/bundles/ja-JP.localization-bundle.d.ts.map +1 -1
  111. package/esm/presentation/localization/bundles/ja-JP.localization-bundle.js +12 -15
  112. package/esm/presentation/localization/bundles/ko-KR.localization-bundle.d.ts +12 -15
  113. package/esm/presentation/localization/bundles/ko-KR.localization-bundle.d.ts.map +1 -1
  114. package/esm/presentation/localization/bundles/ko-KR.localization-bundle.js +14 -17
  115. package/esm/presentation/localization/bundles/nl-NL.localization-bundle.d.ts +12 -15
  116. package/esm/presentation/localization/bundles/nl-NL.localization-bundle.d.ts.map +1 -1
  117. package/esm/presentation/localization/bundles/nl-NL.localization-bundle.js +14 -17
  118. package/esm/presentation/localization/bundles/pl-PL.localization-bundle.d.ts +12 -15
  119. package/esm/presentation/localization/bundles/pl-PL.localization-bundle.d.ts.map +1 -1
  120. package/esm/presentation/localization/bundles/pl-PL.localization-bundle.js +14 -17
  121. package/esm/presentation/localization/bundles/pt-BR.localization-bundle.d.ts +12 -15
  122. package/esm/presentation/localization/bundles/pt-BR.localization-bundle.d.ts.map +1 -1
  123. package/esm/presentation/localization/bundles/pt-BR.localization-bundle.js +16 -19
  124. package/esm/presentation/localization/bundles/pt-PT.localization-bundle.d.ts +12 -15
  125. package/esm/presentation/localization/bundles/pt-PT.localization-bundle.d.ts.map +1 -1
  126. package/esm/presentation/localization/bundles/pt-PT.localization-bundle.js +16 -19
  127. package/esm/presentation/localization/bundles/ru-RU.localization-bundle.d.ts +12 -15
  128. package/esm/presentation/localization/bundles/ru-RU.localization-bundle.d.ts.map +1 -1
  129. package/esm/presentation/localization/bundles/ru-RU.localization-bundle.js +14 -17
  130. package/esm/presentation/localization/bundles/sl-SI.localization-bundle.d.ts +12 -15
  131. package/esm/presentation/localization/bundles/sl-SI.localization-bundle.d.ts.map +1 -1
  132. package/esm/presentation/localization/bundles/sl-SI.localization-bundle.js +14 -17
  133. package/esm/presentation/localization/bundles/th-TH.localization-bundle.d.ts +12 -15
  134. package/esm/presentation/localization/bundles/th-TH.localization-bundle.d.ts.map +1 -1
  135. package/esm/presentation/localization/bundles/th-TH.localization-bundle.js +14 -17
  136. package/esm/presentation/localization/bundles/tr-TR.localization-bundle.d.ts +12 -15
  137. package/esm/presentation/localization/bundles/tr-TR.localization-bundle.d.ts.map +1 -1
  138. package/esm/presentation/localization/bundles/tr-TR.localization-bundle.js +14 -17
  139. package/esm/presentation/localization/bundles/uk-UA.localization-bundle.d.ts +12 -15
  140. package/esm/presentation/localization/bundles/uk-UA.localization-bundle.d.ts.map +1 -1
  141. package/esm/presentation/localization/bundles/uk-UA.localization-bundle.js +14 -17
  142. package/esm/presentation/localization/bundles/vi-VN.localization-bundle.d.ts +12 -15
  143. package/esm/presentation/localization/bundles/vi-VN.localization-bundle.d.ts.map +1 -1
  144. package/esm/presentation/localization/bundles/vi-VN.localization-bundle.js +14 -17
  145. package/esm/presentation/localization/bundles/zh-HK.localization-bundle.d.ts +12 -15
  146. package/esm/presentation/localization/bundles/zh-HK.localization-bundle.d.ts.map +1 -1
  147. package/esm/presentation/localization/bundles/zh-HK.localization-bundle.js +12 -15
  148. package/esm/presentation/localization/bundles/zh-Hans.localization-bundle.d.ts +12 -15
  149. package/esm/presentation/localization/bundles/zh-Hans.localization-bundle.d.ts.map +1 -1
  150. package/esm/presentation/localization/bundles/zh-Hans.localization-bundle.js +14 -17
  151. package/esm/presentation/localization/bundles/zh-Hant.localization-bundle.d.ts +12 -15
  152. package/esm/presentation/localization/bundles/zh-Hant.localization-bundle.d.ts.map +1 -1
  153. package/esm/presentation/localization/bundles/zh-Hant.localization-bundle.js +14 -17
  154. package/esm/presentation/widget/common/useInsightExport.d.ts.map +1 -1
  155. package/esm/presentation/widget/common/useInsightExport.js +2 -4
  156. package/esm/sdk-ui-dashboard.d.ts +289 -35
  157. package/package.json +21 -21
  158. package/styles/css/main.css +369 -0
  159. package/styles/css/main.css.map +1 -1
  160. package/esm/_staging/dateFilterConfig/fixtures.d.ts +0 -10
  161. package/esm/_staging/dateFilterConfig/fixtures.d.ts.map +0 -1
  162. package/esm/_staging/dateFilterConfig/fixtures.js +0 -60
  163. package/esm/model/commandHandlers/filterContext/filterViewParameters.d.ts +0 -8
  164. package/esm/model/commandHandlers/filterContext/filterViewParameters.d.ts.map +0 -1
  165. package/esm/model/commandHandlers/filterContext/filterViewParameters.js +0 -9
  166. package/esm/plugins/customizationApis/fixtures/TestingDashboardCustomizationLogger.d.ts +0 -16
  167. package/esm/plugins/customizationApis/fixtures/TestingDashboardCustomizationLogger.d.ts.map +0 -1
  168. package/esm/plugins/customizationApis/fixtures/TestingDashboardCustomizationLogger.js +0 -30
  169. package/esm/presentation/automations/alerting/DefaultAlertingManagementDialog/components/AlertDropdown.d.ts +0 -3
  170. package/esm/presentation/automations/alerting/DefaultAlertingManagementDialog/components/AlertDropdown.d.ts.map +0 -1
  171. package/esm/presentation/automations/alerting/DefaultAlertingManagementDialog/components/AlertDropdown.js +0 -46
  172. package/esm/presentation/automations/alerting/DefaultAlertingManagementDialog/components/PauseAlertRunner.d.ts +0 -11
  173. package/esm/presentation/automations/alerting/DefaultAlertingManagementDialog/components/PauseAlertRunner.d.ts.map +0 -1
  174. package/esm/presentation/automations/alerting/DefaultAlertingManagementDialog/components/PauseAlertRunner.js +0 -31
  175. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/hooks/useFiltersForDashboardScheduledExportInfo.d.ts +0 -19
  176. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/hooks/useFiltersForDashboardScheduledExportInfo.d.ts.map +0 -1
  177. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/hooks/useFiltersForDashboardScheduledExportInfo.js +0 -28
  178. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailManagementDialog/components/ScheduledEmail.d.ts +0 -13
  179. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailManagementDialog/components/ScheduledEmail.d.ts.map +0 -1
  180. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailManagementDialog/components/ScheduledEmail.js +0 -56
  181. package/esm/presentation/dashboard/components/DashboardMainContent.d.ts +0 -3
  182. package/esm/presentation/dashboard/components/DashboardMainContent.d.ts.map +0 -1
  183. package/esm/presentation/dashboard/components/DashboardMainContent.js +0 -39
  184. package/esm/presentation/dragAndDrop/draggableWidget/DraggableKpiCreatePanelItem.d.ts +0 -16
  185. package/esm/presentation/dragAndDrop/draggableWidget/DraggableKpiCreatePanelItem.d.ts.map +0 -1
  186. package/esm/presentation/dragAndDrop/draggableWidget/DraggableKpiCreatePanelItem.js +0 -17
  187. package/esm/presentation/dragAndDrop/draggableWidget/KpiDraggingComponent.d.ts +0 -3
  188. package/esm/presentation/dragAndDrop/draggableWidget/KpiDraggingComponent.d.ts.map +0 -1
  189. package/esm/presentation/dragAndDrop/draggableWidget/KpiDraggingComponent.js +0 -9
  190. package/esm/presentation/filterBar/attributeFilter/dashboardDropdownBody/DeleteButton.d.ts +0 -6
  191. package/esm/presentation/filterBar/attributeFilter/dashboardDropdownBody/DeleteButton.d.ts.map +0 -1
  192. package/esm/presentation/filterBar/attributeFilter/dashboardDropdownBody/DeleteButton.js +0 -10
  193. package/esm/presentation/filterBar/attributeFilter/dashboardDropdownBody/common/DropdownControls.d.ts +0 -8
  194. package/esm/presentation/filterBar/attributeFilter/dashboardDropdownBody/common/DropdownControls.d.ts.map +0 -1
  195. package/esm/presentation/filterBar/attributeFilter/dashboardDropdownBody/common/DropdownControls.js +0 -14
  196. package/esm/presentation/filterBar/attributeFilter/dashboardDropdownBody/configuration/ConfigurationButton.d.ts +0 -6
  197. package/esm/presentation/filterBar/attributeFilter/dashboardDropdownBody/configuration/ConfigurationButton.d.ts.map +0 -1
  198. package/esm/presentation/filterBar/attributeFilter/dashboardDropdownBody/configuration/ConfigurationButton.js +0 -8
  199. package/esm/presentation/filterBar/attributeFilter/dashboardDropdownBody/displayFormDropdown/DisplayFormButton.d.ts +0 -8
  200. package/esm/presentation/filterBar/attributeFilter/dashboardDropdownBody/displayFormDropdown/DisplayFormButton.d.ts.map +0 -1
  201. package/esm/presentation/filterBar/attributeFilter/dashboardDropdownBody/displayFormDropdown/DisplayFormButton.js +0 -10
  202. package/esm/presentation/filterBar/attributeFilter/dashboardDropdownBody/displayFormDropdown/DisplayFormDropdown.d.ts +0 -8
  203. package/esm/presentation/filterBar/attributeFilter/dashboardDropdownBody/displayFormDropdown/DisplayFormDropdown.d.ts.map +0 -1
  204. package/esm/presentation/filterBar/attributeFilter/dashboardDropdownBody/displayFormDropdown/DisplayFormDropdown.js +0 -33
  205. package/esm/presentation/filterBar/attributeFilter/dashboardDropdownBody/displayFormDropdown/DisplayFormItem.d.ts +0 -8
  206. package/esm/presentation/filterBar/attributeFilter/dashboardDropdownBody/displayFormDropdown/DisplayFormItem.d.ts.map +0 -1
  207. package/esm/presentation/filterBar/attributeFilter/dashboardDropdownBody/displayFormDropdown/DisplayFormItem.js +0 -33
  208. package/esm/presentation/widget/common/configuration/AttributeFilterConfiguration.d.ts +0 -7
  209. package/esm/presentation/widget/common/configuration/AttributeFilterConfiguration.d.ts.map +0 -1
  210. package/esm/presentation/widget/common/configuration/AttributeFilterConfiguration.js +0 -39
  211. package/esm/presentation/widget/common/useWidgetBrokenAlertsQuery.d.ts +0 -9
  212. package/esm/presentation/widget/common/useWidgetBrokenAlertsQuery.d.ts.map +0 -1
  213. package/esm/presentation/widget/common/useWidgetBrokenAlertsQuery.js +0 -26
  214. package/esm/presentation/widget/insight/configuration/DrillMeasureSelector/DrillMeasureSelector.d.ts +0 -7
  215. package/esm/presentation/widget/insight/configuration/DrillMeasureSelector/DrillMeasureSelector.d.ts.map +0 -1
  216. package/esm/presentation/widget/insight/configuration/DrillMeasureSelector/DrillMeasureSelector.js +0 -37
  217. package/esm/presentation/widget/insight/configuration/DrillMeasureSelector/DrillMeasureSelectorBody.d.ts +0 -8
  218. package/esm/presentation/widget/insight/configuration/DrillMeasureSelector/DrillMeasureSelectorBody.d.ts.map +0 -1
  219. package/esm/presentation/widget/insight/configuration/DrillMeasureSelector/DrillMeasureSelectorBody.js +0 -15
  220. package/esm/presentation/widget/insight/configuration/DrillMeasureSelector/DrillMeasureSelectorItem.d.ts +0 -7
  221. package/esm/presentation/widget/insight/configuration/DrillMeasureSelector/DrillMeasureSelectorItem.d.ts.map +0 -1
  222. package/esm/presentation/widget/insight/configuration/DrillMeasureSelector/DrillMeasureSelectorItem.js +0 -8
  223. package/esm/presentation/widget/insight/configuration/DrillMeasureSelector/DrillMeasureSelectorList.d.ts +0 -7
  224. package/esm/presentation/widget/insight/configuration/DrillMeasureSelector/DrillMeasureSelectorList.d.ts.map +0 -1
  225. package/esm/presentation/widget/insight/configuration/DrillMeasureSelector/DrillMeasureSelectorList.js +0 -5
  226. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertTitle.d.ts +0 -12
  227. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertTitle.d.ts.map +0 -1
  228. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertTitle.js +0 -12
  229. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/CreateAlert.d.ts +0 -25
  230. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/CreateAlert.d.ts.map +0 -1
  231. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/CreateAlert.js +0 -5
  232. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/EditAlert.d.ts +0 -29
  233. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/EditAlert.d.ts.map +0 -1
  234. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/EditAlert.js +0 -137
  235. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/EditAlertConfiguration.d.ts +0 -11
  236. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/EditAlertConfiguration.d.ts.map +0 -1
  237. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/EditAlertConfiguration.js +0 -42
  238. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useEditAlert.d.ts +0 -48
  239. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useEditAlert.d.ts.map +0 -1
  240. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useEditAlert.js +0 -171
  241. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useWidgetAutomationFilters.d.ts +0 -4
  242. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useWidgetAutomationFilters.d.ts.map +0 -1
  243. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useWidgetAutomationFilters.js +0 -46
@@ -3,13 +3,13 @@ import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-run
3
3
  import { useEffect, useMemo, useRef, useState } from "react";
4
4
  import { FormattedMessage, defineMessage, useIntl } from "react-intl";
5
5
  import { ValidationContextStore, createInvalidDatapoint, createInvalidNode, useValidationContextValue, } from "@gooddata/sdk-ui";
6
- import { Button, ConfirmDialogBase, ContentDivider, Hyperlink, Message, Overlay, OverlayController, OverlayControllerProvider, ScrollablePanel, UiIcon, UiIconButton, UiTooltip, useId, } from "@gooddata/sdk-ui-kit";
6
+ import { ConfirmDialogBase, ContentDivider, Message, Overlay, OverlayController, OverlayControllerProvider, ScrollablePanel, UiIcon, UiIconButton, UiTooltip, useId, } from "@gooddata/sdk-ui-kit";
7
7
  import { DASHBOARD_DIALOG_OVERS_Z_INDEX } from "../../../constants/zIndex.js";
8
8
  import { IntlWrapper } from "../../../localization/IntlWrapper.js";
9
9
  import { useAlertingDialogContext } from "../../contexts/AlertingDialogContext.js";
10
10
  import { useAutomationsContext } from "../../contexts/AutomationsContext.js";
11
- import { RecipientsSelect } from "../../scheduledEmail/DefaultScheduledEmailDialog/components/RecipientsSelect/RecipientsSelect.js";
12
11
  import { ApplyCurrentFiltersConfirmDialog } from "../../shared/automationFilters/components/ApplyLatestFiltersConfirmDialog.js";
12
+ import { AutomationDialogActionBar, AutomationDialogFooterLeft, } from "../../shared/slots/AutomationDialogActionBar.js";
13
13
  import { DeleteAlertConfirmDialog } from "../DefaultAlertingManagementDialog/components/DeleteAlertConfirmDialog.js";
14
14
  import { useAlertActions } from "../state/AlertActionsContext.js";
15
15
  import { useAlertData } from "../state/AlertDataContext.js";
@@ -17,14 +17,15 @@ import { useAlertDraft } from "../state/AlertDraftContext.js";
17
17
  import { useAlertFilters } from "../state/AlertFiltersContext.js";
18
18
  import { useAlertDialogValidity } from "../state/useAlertDialogValidity.js";
19
19
  import { useAlertSelectedValues } from "../state/useAlertSelectedValues.js";
20
+ import { AlertingDialogDestination } from "./AlertingDialogDestination.js";
20
21
  import { AlertingDialogFilters } from "./AlertingDialogFilters.js";
21
22
  import { AlertingDialogHeader } from "./AlertingDialogHeader.js";
23
+ import { AlertingDialogRecipients } from "./AlertingDialogRecipients.js";
22
24
  import { AlertAttributeSelect } from "./components/AlertAttributeSelect.js";
23
25
  import { AlertComparisonOperatorSelect } from "./components/AlertComparisonOperatorSelect.js";
24
26
  //
25
27
  //
26
28
  import { AlertComparisonPeriodSelect } from "./components/AlertComparisonPeriodSelect.js";
27
- import { AlertDestinationSelect } from "./components/AlertDestinationSelect.js";
28
29
  import { AlertGranularitySelect } from "./components/AlertGranularitySelect.js";
29
30
  import { AlertMeasureSelect } from "./components/AlertMeasureSelect.js";
30
31
  import { AlertSensitivitySelect } from "./components/AlertSensitivitySelect.js";
@@ -33,6 +34,7 @@ import { AlertTriggerIntervalSelect } from "./components/AlertTriggerIntervalSel
33
34
  import { AlertTriggerModeSelect } from "./components/AlertTriggerModeSelect.js";
34
35
  import { ALERTING_DIALOG_ID } from "./constants.js";
35
36
  import { DefaultLoadingAlertingDialog } from "./DefaultLoadingAlertingDialog.js";
37
+ import { FormField } from "./FormField.js";
36
38
  import { useAlertSubmit } from "./hooks/useAlertSubmit.js";
37
39
  import { useAlertThreshold } from "./hooks/useAlertThreshold.js";
38
40
  import { getValueSuffix } from "./utils/getters.js";
@@ -41,9 +43,12 @@ import { isMobileView } from "./utils/responsive.js";
41
43
  const OVERLAY_POSITION_TYPE = "sameAsTarget";
42
44
  const CLOSE_ON_PARENT_SCROLL = true;
43
45
  const overlayController = OverlayController.getInstance(DASHBOARD_DIALOG_OVERS_Z_INDEX);
44
- export function AlertingDialogRenderer({ onCancel, onDeleteSuccess, onDeleteError, onError, onSuccess, onSaveError, onSaveSuccess, slots, }) {
46
+ export function AlertingDialogRenderer({ onCancel, onDeleteSuccess, onDeleteError, onError, onSuccess, onSaveError, onSaveSuccess, slots, topContent, bottomContent, }) {
45
47
  const HeaderSlot = slots?.Header;
46
48
  const FiltersSlot = slots?.Filters;
49
+ const DestinationSlot = slots?.Destination;
50
+ const RecipientsSlot = slots?.Recipients;
51
+ const ActionBarSlot = slots?.ActionBar;
47
52
  const intl = useIntl();
48
53
  const dialogTitleRef = useRef(null);
49
54
  const { isWhiteLabeled, isSecondaryTitleVisible, externalRecipient: externalRecipientOverride, maxAutomationsRecipients, isExecutionTimestampMode, features: { enableAlertOncePerInterval, enableAnomalyDetectionAlert, canUseAiAssistant: enableAiAssistant, }, catalogAttributes, catalogDateDatasets, separators, allowHourlyRecurrence, } = useAutomationsContext();
@@ -53,7 +58,7 @@ export function AlertingDialogRenderer({ onCancel, onDeleteSuccess, onDeleteErro
53
58
  onDeleteSuccess?.(alert);
54
59
  setAlertToDelete(null);
55
60
  };
56
- const { editedAutomation, originalAutomation, warningMessage } = useAlertDraft();
61
+ const { editedAutomation, warningMessage } = useAlertDraft();
57
62
  const { onTitleChange, onRecipientsChange, onMeasureChange, onAttributeChange, onComparisonOperatorChange, onRelativeOperatorChange, onAnomalyDetectionChange, onComparisonTypeChange, onDestinationChange, onTriggerModeChange, onTriggerIntervalChange, onSensitivityChange, onGranularityChange, setEditedAutomation, } = useAlertActions();
58
63
  const { supportedMeasures, supportedAttributes, isResultLoading, getAttributeValues, defaultUser, getMetricValue, } = useAlertData();
59
64
  const { selectedFilters, availableFilters, onFiltersChange, onApplyCurrentFilters, automationIsValid, filtersAreStale, automationParameters, availableParameters, onParameterChange, onParameterDelete, onParameterAdd, dropStaleParameters, } = useAlertFilters();
@@ -128,6 +133,49 @@ export function AlertingDialogRenderer({ onCancel, onDeleteSuccess, onDeleteErro
128
133
  onParameterChange,
129
134
  onParameterDelete,
130
135
  };
136
+ const destinationDefaultProps = {
137
+ notificationChannels,
138
+ selectedNotificationChannelId: editedAutomation?.notificationChannel,
139
+ onChange: onDestinationChange,
140
+ };
141
+ const recipientsDefaultProps = {
142
+ loggedUser: defaultUser,
143
+ value: editedAutomation?.recipients ?? [],
144
+ onChange: onRecipientsChange,
145
+ allowEmptySelection: true,
146
+ allowOnlyLoggedUserRecipients,
147
+ allowExternalRecipients,
148
+ maxRecipients: maxAutomationsRecipients,
149
+ notificationChannels,
150
+ notificationChannelId: editedAutomation?.notificationChannel,
151
+ externalRecipientOverride,
152
+ };
153
+ const submitDisabled = isSubmitDisabled || isSaving || isExecutionTimestampMode;
154
+ const actionBarDefaultProps = {
155
+ cancelButtonText: intl.formatMessage({ id: "cancel" }),
156
+ submitButtonText: alertToEdit
157
+ ? intl.formatMessage({ id: "save" })
158
+ : intl.formatMessage({ id: "create" }),
159
+ onCancel: () => onCancel?.(),
160
+ onSubmit: () => void submit(),
161
+ isSubmitDisabled: submitDisabled,
162
+ isSaving,
163
+ submitButtonTooltipText: isExecutionTimestampMode
164
+ ? intl.formatMessage({ id: "dialogs.alert.save.executionTimestampMode" })
165
+ : undefined,
166
+ ...(isWhiteLabeled
167
+ ? {}
168
+ : {
169
+ helpLinkText: intl.formatMessage({ id: helpTextId }),
170
+ helpLinkHref: "https://www.gooddata.com/docs/cloud/create-dashboards/automation/alerts/",
171
+ }),
172
+ ...(alertToEdit
173
+ ? {
174
+ deleteButtonText: intl.formatMessage({ id: "delete" }),
175
+ onDelete: () => setAlertToDelete(alertToEdit),
176
+ }
177
+ : {}),
178
+ };
131
179
  return (_jsxs(_Fragment, { children: [
132
180
  _jsx(Overlay, { className: "gd-notifications-channels-dialog-overlay", isModal: true, positionType: "fixed", ensureVisibility: true, children: _jsx(OverlayControllerProvider, { overlayController: overlayController, children: _jsx(ValidationContextStore, { value: validationContextValue, children: _jsxs(ConfirmDialogBase, { className: "gd-notifications-channels-dialog s-gd-notifications-channels-dialog gd-dialog--wide gd-notifications-channels-dialog--wide", isPositive: true, cancelButtonText: intl.formatMessage({ id: "cancel" }), submitButtonText: alertToEdit
133
181
  ? intl.formatMessage({ id: `save` })
@@ -137,7 +185,11 @@ export function AlertingDialogRenderer({ onCancel, onDeleteSuccess, onDeleteErro
137
185
  },
138
186
  titleElementId,
139
187
  dialogId: ALERTING_DIALOG_ID,
140
- }, showProgressIndicator: isSaving, returnFocusAfterClose: false, footerLeftRenderer: () => (_jsx(AlertingDialogFooter, { isWhiteLabeled: isWhiteLabeled, helpTextId: helpTextId, alertToEdit: alertToEdit, isSavingAlert: isSaving, onDeleteClick: () => setAlertToDelete(alertToEdit) })), isSubmitDisabled: isSubmitDisabled || isSaving || isExecutionTimestampMode, submitButtonTooltipText: isExecutionTimestampMode
188
+ }, showProgressIndicator: isSaving, returnFocusAfterClose: false, footerLeftRenderer: ActionBarSlot
189
+ ? undefined
190
+ : () => (_jsx(AutomationDialogFooterLeft, { helpLinkText: actionBarDefaultProps.helpLinkText, helpLinkHref: actionBarDefaultProps.helpLinkHref, deleteButtonText: actionBarDefaultProps.deleteButtonText, onDelete: actionBarDefaultProps.onDelete, isDeleteDisabled: isSaving })), footerRenderer: ActionBarSlot
191
+ ? () => (_jsx(ActionBarSlot, { Default: AutomationDialogActionBar, defaultProps: actionBarDefaultProps }))
192
+ : undefined, isSubmitDisabled: submitDisabled, submitButtonTooltipText: isExecutionTimestampMode
141
193
  ? intl.formatMessage({
142
194
  id: "dialogs.alert.save.executionTimestampMode",
143
195
  })
@@ -158,8 +210,7 @@ export function AlertingDialogRenderer({ onCancel, onDeleteSuccess, onDeleteErro
158
210
  };
159
211
  return HeaderSlot ? (_jsx(HeaderSlot, { Default: AlertingDialogHeader, defaultProps: headerDefaultProps })) : (_jsx(AlertingDialogHeader, { ...headerDefaultProps }));
160
212
  }, children: [
161
- _jsx("h2", { className: "sr-only", id: titleElementId, children: intl.formatMessage({ id: "dialogs.alert.accessibility.label.title" }) }), _jsxs(ScrollablePanel, { className: "gd-notifications-channel-dialog-content-wrapper gd-notification-channel-dialog-with-automation-filters", children: [
162
- _jsx("div", { className: "gd-divider-with-margin" }), _jsxs(_Fragment, { children: [FiltersSlot ? (_jsx(FiltersSlot, { Default: AlertingDialogFilters, defaultProps: filtersDefaultProps })) : (_jsx(AlertingDialogFilters, { ...filtersDefaultProps })), _jsx(ContentDivider, { className: "gd-divider-with-margin" })
213
+ _jsx("h2", { className: "sr-only", id: titleElementId, children: intl.formatMessage({ id: "dialogs.alert.accessibility.label.title" }) }), _jsxs(ScrollablePanel, { className: "gd-notifications-channel-dialog-content-wrapper gd-notification-channel-dialog-with-automation-filters", children: [topContent, _jsx("div", { className: "gd-divider-with-margin" }), _jsxs(_Fragment, { children: [FiltersSlot ? (_jsx(FiltersSlot, { Default: AlertingDialogFilters, defaultProps: filtersDefaultProps })) : (_jsx(AlertingDialogFilters, { ...filtersDefaultProps })), _jsx(ContentDivider, { className: "gd-divider-with-margin" })
163
214
  ] }), _jsxs(FormFieldGroup, { label: _jsx(FormattedMessage, { id: "insightAlert.config.when" }), children: [
164
215
  _jsx(FormField, { label: intl.formatMessage({ id: "insightAlert.config.metric" }), htmlFor: "alert.measure", children: _jsx(AlertMeasureSelect, { selectedMeasure: selectedMeasure, onMeasureChange: onMeasureChange, measures: supportedMeasures, disabled: !canChangeMeasure, overlayPositionType: OVERLAY_POSITION_TYPE, id: "alert.measure", closeOnParentScroll: CLOSE_ON_PARENT_SCROLL }) }), supportedAttributes.filter((a) => a.type === "attribute").length > 0 && (_jsx(FormField, { label: _jsx(FormattedMessage, { id: "insightAlert.config.for" }), htmlFor: "alert.attribute", children: _jsx(AlertAttributeSelect, { id: "alert.attribute", disabled: !canChangeMeasure, selectedAttribute: selectedAttribute, selectedValue: selectedValue, onAttributeChange: onAttributeChange, attributes: supportedAttributes, catalogAttributes: catalogAttributes, catalogDateDatasets: catalogDateDatasets, getAttributeValues: getAttributeValues, isResultLoading: isResultLoading, showLabel: false, closeOnParentScroll: CLOSE_ON_PARENT_SCROLL }) })), _jsx(FormField, { label: _jsx(FormattedMessage, { id: "insightAlert.config.condition" }), htmlFor: "alert.condition", children: _jsx(AlertComparisonOperatorSelect, { id: "alert.condition", measure: selectedMeasure, enableAnomalyDetectionAlert: enableAnomalyDetectionAlert ? enableAiAssistant : false, selectedComparisonOperator: selectedComparisonOperator, selectedRelativeOperator: selectedRelativeOperator, selectedAiOperator: selectedAiOperator, onAnomalyDetectionChange: onAnomalyDetectionChange, onComparisonOperatorChange: onComparisonOperatorChange, onRelativeOperatorChange: onRelativeOperatorChange, overlayPositionType: OVERLAY_POSITION_TYPE, closeOnParentScroll: CLOSE_ON_PARENT_SCROLL }) }), !isAnomalyDetection(editedAutomation?.alert) && (_jsx(FormField, { label: _jsx(FormattedMessage, { id: "insightAlert.config.threshold" }), htmlFor: "alert.value", children: _jsx(AlertThresholdInput, { id: "alert.value", value: value, onChange: onChange, onBlur: onBlur, suffix: getValueSuffix(editedAutomation?.alert), errorMessage: thresholdErrorMessage }) })), isChangeOrDifferenceOperator(editedAutomation?.alert) && (_jsx(FormField, { label: _jsx(FormattedMessage, { id: "insightAlert.config.comparison" }), htmlFor: "alert.comparison", children: _jsx(AlertComparisonPeriodSelect, { id: "alert.comparison", measure: selectedMeasure, alert: editedAutomation, selectedComparison: selectedComparator?.comparator, selectedGranularity: selectedComparator?.granularity, onComparisonChange: (comparisonType, granularity) => {
165
216
  onComparisonTypeChange(selectedMeasure, selectedRelativeOperator, comparisonType, granularity);
@@ -173,14 +224,13 @@ export function AlertingDialogRenderer({ onCancel, onDeleteSuccess, onDeleteErro
173
224
  ] }), htmlFor: "alert.granularity", children: _jsx(AlertGranularitySelect, { id: "alert.granularity", allowHourlyRecurrence: allowHourlyRecurrence, selectedGranularity: selectedGranularity, onGranularityChange: (granularity) => {
174
225
  onGranularityChange(selectedMeasure, granularity);
175
226
  }, overlayPositionType: OVERLAY_POSITION_TYPE, closeOnParentScroll: CLOSE_ON_PARENT_SCROLL }) })
176
- ] }))] }), _jsx(ContentDivider, { className: "gd-divider-with-margin" }), _jsxs(FormFieldGroup, { label: _jsx(FormattedMessage, { id: "insightAlert.config.do" }), children: [notificationChannels.length > 1 && (_jsx(FormField, { label: _jsx(FormattedMessage, { id: "insightAlert.config.action" }), htmlFor: "alert.destination", children: _jsx(AlertDestinationSelect, { id: "alert.destination", selectedDestination: editedAutomation?.notificationChannel, onDestinationChange: onDestinationChange, destinations: notificationChannels, overlayPositionType: OVERLAY_POSITION_TYPE, closeOnParentScroll: CLOSE_ON_PARENT_SCROLL }) })), _jsx(FormField, { label: _jsx(FormattedMessage, { id: "insightAlert.config.trigger" }), htmlFor: "alert.trigger", children: _jsx(AlertTriggerModeSelect, { id: "alert.trigger", selectedTriggerMode: editedAutomation?.alert?.trigger.mode ?? "ALWAYS", onTriggerModeChange: onTriggerModeChange, overlayPositionType: OVERLAY_POSITION_TYPE, closeOnParentScroll: CLOSE_ON_PARENT_SCROLL, enableAlertOncePerInterval: enableAlertOncePerInterval }) }), editedAutomation?.alert?.trigger.mode === "ONCE_PER_INTERVAL" ? (_jsx(FormField, { label: _jsxs("div", { className: "gd-dashboard-alerting-dialog-form-field__content-container-tooltip", children: [
227
+ ] }))] }), _jsx(ContentDivider, { className: "gd-divider-with-margin" }), _jsxs(FormFieldGroup, { label: _jsx(FormattedMessage, { id: "insightAlert.config.do" }), children: [notificationChannels.length > 1 ? (DestinationSlot ? (_jsx(DestinationSlot, { Default: AlertingDialogDestination, defaultProps: destinationDefaultProps })) : (_jsx(AlertingDialogDestination, { ...destinationDefaultProps }))) : null, _jsx(FormField, { label: _jsx(FormattedMessage, { id: "insightAlert.config.trigger" }), htmlFor: "alert.trigger", children: _jsx(AlertTriggerModeSelect, { id: "alert.trigger", selectedTriggerMode: editedAutomation?.alert?.trigger.mode ?? "ALWAYS", onTriggerModeChange: onTriggerModeChange, overlayPositionType: OVERLAY_POSITION_TYPE, closeOnParentScroll: CLOSE_ON_PARENT_SCROLL, enableAlertOncePerInterval: enableAlertOncePerInterval }) }), editedAutomation?.alert?.trigger.mode === "ONCE_PER_INTERVAL" ? (_jsx(FormField, { label: _jsxs("div", { className: "gd-dashboard-alerting-dialog-form-field__content-container-tooltip", children: [
177
228
  _jsx(FormattedMessage, { id: "insightAlert.config.interval" }), _jsx(UiTooltip, { anchor: _jsx(UiIconButton, { icon: "question", variant: "tertiary", size: "xsmall", accessibilityConfig: {
178
229
  ariaLabel: intl.formatMessage({
179
230
  id: "insightAlert.config.interval",
180
231
  }),
181
232
  } }), content: _jsx(FormattedMessage, { id: "insightAlert.config.interval.tooltip" }), arrowPlacement: "left", optimalPlacement: true, offset: 10, width: 280, triggerBy: ["hover", "click"] })
182
- ] }), htmlFor: "alert.interval", children: _jsx(AlertTriggerIntervalSelect, { id: "alert.interval", selectedTriggerInterval: editedAutomation?.alert?.trigger.interval ?? "DAY", onTriggerIntervalChange: onTriggerIntervalChange, overlayPositionType: OVERLAY_POSITION_TYPE, closeOnParentScroll: CLOSE_ON_PARENT_SCROLL }) })) : null, _jsx(FormField, { label: _jsx(FormattedMessage, { id: "insightAlert.config.recipients" }), htmlFor: "alert.recipients", fullWidth: true, children: _jsx(RecipientsSelect, { id: "alert.recipients", loggedUser: defaultUser, value: editedAutomation?.recipients ?? [], originalValue: originalAutomation?.recipients || [], onChange: onRecipientsChange, allowEmptySelection: true, allowOnlyLoggedUserRecipients: allowOnlyLoggedUserRecipients, allowExternalRecipients: allowExternalRecipients, maxRecipients: maxAutomationsRecipients, notificationChannels: notificationChannels, notificationChannelId: editedAutomation?.notificationChannel, showLabel: false, externalRecipientOverride: externalRecipientOverride }) })
183
- ] }), warningMessage ? (_jsx(Message, { type: "warning", className: "gd-notifications-channels-dialog-error", children: warningMessage })) : null, invalidDatapoints.map((datapoint) => (_jsx(Message, { id: datapoint.id, type: datapoint.severity === "info" ? "progress" : datapoint.severity, className: "gd-notifications-channels-dialog-error gd-notifications-channels-dialog-error-scrollable", children: datapoint.message }, datapoint.id)))] })
233
+ ] }), htmlFor: "alert.interval", children: _jsx(AlertTriggerIntervalSelect, { id: "alert.interval", selectedTriggerInterval: editedAutomation?.alert?.trigger.interval ?? "DAY", onTriggerIntervalChange: onTriggerIntervalChange, overlayPositionType: OVERLAY_POSITION_TYPE, closeOnParentScroll: CLOSE_ON_PARENT_SCROLL }) })) : null, RecipientsSlot ? (_jsx(RecipientsSlot, { Default: AlertingDialogRecipients, defaultProps: recipientsDefaultProps })) : (_jsx(AlertingDialogRecipients, { ...recipientsDefaultProps }))] }), warningMessage ? (_jsx(Message, { type: "warning", className: "gd-notifications-channels-dialog-error", children: warningMessage })) : null, invalidDatapoints.map((datapoint) => (_jsx(Message, { id: datapoint.id, type: datapoint.severity === "info" ? "progress" : datapoint.severity, className: "gd-notifications-channels-dialog-error gd-notifications-channels-dialog-error-scrollable", children: datapoint.message }, datapoint.id))), bottomContent] })
184
234
  ] }) }) }) }), alertToDelete ? (_jsx(DeleteAlertConfirmDialog, { alert: alertToDelete, onCancel: () => setAlertToDelete(null), onSuccess: handleAlertDeleteSuccess, onError: onDeleteError })) : null] }));
185
235
  }
186
236
  /**
@@ -214,17 +264,6 @@ export function DefaultAlertingDialog(props) {
214
264
  }
215
265
  return (_jsx(IntlWrapper, { locale: locale, children: _jsx(AlertingDialogRenderer, { ...props }) }));
216
266
  }
217
- function AlertingDialogFooter({ isWhiteLabeled, helpTextId, alertToEdit, isSavingAlert, onDeleteClick, }) {
218
- const intl = useIntl();
219
- return (_jsxs("div", { className: "gd-notifications-channels-dialog-footer-link", children: [isWhiteLabeled ? null : (_jsx(Hyperlink, { text: intl.formatMessage({ id: helpTextId }), href: "https://www.gooddata.com/docs/cloud/create-dashboards/automation/alerts/", iconClass: "gd-icon-circle-question" })), alertToEdit ? (_jsx(Button, { className: "gd-button-link-dimmed", value: intl.formatMessage({ id: "delete" }), onClick: onDeleteClick, disabled: isSavingAlert })) : null] }));
220
- }
221
- function FormField({ label, children, htmlFor, fullWidth = false, }) {
222
- return (_jsxs("div", { className: "gd-input-component gd-input-component--no-last-child-margin gd-dashboard-alerting-dialog-form-field", children: [
223
- _jsx("div", { className: "gd-dashboard-alerting-dialog-form-field__label-container", children: _jsx("label", { className: "gd-label gd-dashboard-alerting-dialog-form-field__label", htmlFor: htmlFor, children: label }) }), _jsx("div", { className: fullWidth
224
- ? "gd-dashboard-alerting-dialog-form-field__content-container-full-width"
225
- : "gd-dashboard-alerting-dialog-form-field__content-container", children: children })
226
- ] }));
227
- }
228
267
  function FormFieldGroup({ label, children }) {
229
268
  return (_jsxs("div", { className: "gd-input-component gd-input-component--no-last-child-margin gd-dashboard-alerting-dialog-form-field-group", children: [
230
269
  _jsx("div", { className: "gd-dashboard-alerting-dialog-form-field-group__label-container", children: _jsx("label", { className: "gd-label gd-dashboard-alerting-dialog-form-field-group__label", children: label }) }), _jsx("div", { className: "gd-dashboard-alerting-dialog-form-field-group__content-container", children: children })
@@ -0,0 +1,8 @@
1
+ import { type ReactNode } from "react";
2
+ export declare function FormField({ label, children, htmlFor, fullWidth }: {
3
+ label: ReactNode;
4
+ children: ReactNode;
5
+ htmlFor?: string;
6
+ fullWidth?: boolean;
7
+ }): import("react/jsx-runtime").JSX.Element;
8
+ //# sourceMappingURL=FormField.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FormField.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/automations/alerting/DefaultAlertingDialog/FormField.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,wBAAgB,SAAS,CAAC,EACtB,KAAK,EACL,QAAQ,EACR,OAAO,EACP,SAAiB,EACpB,EAAE;IACC,KAAK,EAAE,SAAS,CAAC;IACjB,QAAQ,EAAE,SAAS,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,OAAO,CAAC;CACvB,2CAmBA"}
@@ -0,0 +1,8 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ export function FormField({ label, children, htmlFor, fullWidth = false, }) {
3
+ return (_jsxs("div", { className: "gd-input-component gd-input-component--no-last-child-margin gd-dashboard-alerting-dialog-form-field", children: [
4
+ _jsx("div", { className: "gd-dashboard-alerting-dialog-form-field__label-container", children: _jsx("label", { className: "gd-label gd-dashboard-alerting-dialog-form-field__label", htmlFor: htmlFor, children: label }) }), _jsx("div", { className: fullWidth
5
+ ? "gd-dashboard-alerting-dialog-form-field__content-container-full-width"
6
+ : "gd-dashboard-alerting-dialog-form-field__content-container", children: children })
7
+ ] }));
8
+ }
@@ -1,7 +1,8 @@
1
1
  import { type ComponentType, type ReactNode, type Ref } from "react";
2
2
  import { type DateAttributeGranularity, type IAttribute, type IAutomationMetadataObject, type IDataSetMetadataObject, type IInsight, type IMeasure, type INotificationChannelIdentifier, type INotificationChannelMetadataObject, type IWidget } from "@gooddata/sdk-model";
3
3
  import { type GoodDataSdkError } from "@gooddata/sdk-ui";
4
- import { type IAutomationDialogFiltersProps, type IAutomationDialogHeaderProps, type ISlotProps } from "../shared/slots/types.js";
4
+ import { type ISlotProps } from "@gooddata/sdk-ui-kit";
5
+ import { type IAutomationDialogActionBarProps, type IAutomationDialogDestinationProps, type IAutomationDialogFiltersProps, type IAutomationDialogHeaderProps, type IAutomationDialogRecipientsProps } from "../shared/slots/types.js";
5
6
  /**
6
7
  * @alpha
7
8
  */
@@ -123,12 +124,12 @@ export interface IAlertingDialogFiltersProps extends IAutomationDialogFiltersPro
123
124
  export interface IAlertingDialogSlots {
124
125
  /**
125
126
  * Wraps or replaces the dialog header (the title input row). Must have a stable reference
126
- * identity — see {@link ISlotProps}.
127
+ * identity — see {@link @gooddata/sdk-ui-kit#ISlotProps}.
127
128
  */
128
129
  Header?: ComponentType<ISlotProps<AlertingDialogHeaderDefaultProps>>;
129
130
  /**
130
131
  * Wraps or replaces the dialog's filters region (the filter and parameter chips). Must have
131
- * a stable reference identity — see {@link ISlotProps}.
132
+ * a stable reference identity — see {@link @gooddata/sdk-ui-kit#ISlotProps}.
132
133
  *
133
134
  * Renders only in the fully rendered dialog: not while the dialog context reports loading,
134
135
  * and not while the stale-filters confirmation step is shown.
@@ -138,6 +139,40 @@ export interface IAlertingDialogSlots {
138
139
  * updated array, not a delta.
139
140
  */
140
141
  Filters?: ComponentType<ISlotProps<IAlertingDialogFiltersProps>>;
142
+ /**
143
+ * Wraps or replaces the dialog's destination region (the "Action" row selecting the
144
+ * notification channel). Must have a stable reference identity — see {@link @gooddata/sdk-ui-kit#ISlotProps}.
145
+ *
146
+ * Renders only in the fully rendered dialog — not while the dialog context reports loading,
147
+ * not while the stale-filters confirmation step is shown — **and only when more than one
148
+ * notification channel exists**: with a single channel the default dialog hides the whole
149
+ * row, and the slot with it.
150
+ */
151
+ Destination?: ComponentType<ISlotProps<IAutomationDialogDestinationProps>>;
152
+ /**
153
+ * Wraps or replaces the dialog's recipients region. Must have a stable reference identity —
154
+ * see {@link @gooddata/sdk-ui-kit#ISlotProps}.
155
+ *
156
+ * Renders only in the fully rendered dialog: not while the dialog context reports loading,
157
+ * and not while the stale-filters confirmation step is shown.
158
+ */
159
+ Recipients?: ComponentType<ISlotProps<IAutomationDialogRecipientsProps>>;
160
+ /**
161
+ * Wraps or replaces the dialog's action bar (the footer row: documentation link, Delete in
162
+ * edit mode, Cancel and the submit button). Must have a stable reference identity — see
163
+ * {@link @gooddata/sdk-ui-kit#ISlotProps}.
164
+ *
165
+ * Renders only in the fully rendered dialog: not while the dialog context reports loading
166
+ * (the loading dialog keeps its own footer), and not while the stale-filters confirmation
167
+ * step is shown.
168
+ *
169
+ * A replacement that does not render `Default` loses the submit button's Enter-key detection
170
+ * id (Enter no longer submits), the validation aria wiring, and the default row's ordering.
171
+ * Wraps that render `<Default {...defaultProps} />` keep everything; note the Enter-key path
172
+ * invokes the dialog's own submit handler and disabled state, so `defaultProps` overrides
173
+ * affect the buttons only.
174
+ */
175
+ ActionBar?: ComponentType<ISlotProps<IAutomationDialogActionBarProps>>;
141
176
  }
142
177
  /**
143
178
  * Props of {@link DefaultAlertingDialog}.
@@ -145,7 +180,9 @@ export interface IAlertingDialogSlots {
145
180
  * @remarks
146
181
  * Extends the shared {@link IAlertingDialogProps} with customization only the default implementation
147
182
  * supports. Slots render only in the fully rendered dialog: not while the dialog context reports
148
- * loading, and not while the stale-filters confirmation step is shown.
183
+ * loading, and not while the stale-filters confirmation step is shown. The Destination slot
184
+ * additionally renders only when more than one notification channel exists — see
185
+ * {@link IAlertingDialogSlots.Destination}.
149
186
  *
150
187
  * @alpha
151
188
  */
@@ -153,8 +190,39 @@ export interface IDefaultAlertingDialogProps extends IAlertingDialogProps {
153
190
  /**
154
191
  * Section-level overrides. Each slot receives `{ Default, defaultProps }` and may render its own
155
192
  * content (replace) or `<Default {...defaultProps} />` inside its own markup (wrap).
193
+ *
194
+ * @example
195
+ * The dialog is reached through the `Dashboard` component override; define slot components at
196
+ * module scope (see {@link @gooddata/sdk-ui-kit#ISlotProps}):
197
+ * ```tsx
198
+ * function HeaderWithBanner({ Default, defaultProps }: ISlotProps<AlertingDialogHeaderDefaultProps>) {
199
+ * return (
200
+ * <>
201
+ * <WarningBanner>Alerts may take up to 5 minutes.</WarningBanner>
202
+ * <Default {...defaultProps} />
203
+ * </>
204
+ * );
205
+ * }
206
+ *
207
+ * <Dashboard
208
+ * AlertingDialogComponent={(props) => (
209
+ * <DefaultAlertingDialog {...props} slots={{ Header: HeaderWithBanner }} />
210
+ * )}
211
+ * />;
212
+ * ```
156
213
  */
157
214
  slots?: IAlertingDialogSlots;
215
+ /**
216
+ * Content rendered as the first child of the dialog's scrollable content area, above the
217
+ * form. Rendered only in the fully rendered dialog: not while the dialog context reports
218
+ * loading, and not while the stale-filters confirmation step is shown.
219
+ */
220
+ topContent?: ReactNode;
221
+ /**
222
+ * Content rendered as the last child of the dialog's scrollable content area, below the
223
+ * form. Same rendering conditions as {@link IDefaultAlertingDialogProps.topContent}.
224
+ */
225
+ bottomContent?: ReactNode;
158
226
  }
159
227
  /**
160
228
  * @alpha
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/presentation/automations/alerting/types.ts"],"names":[],"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AAQ,CAAC;IAClB,SAAS,EAAE,OAAO,CAAC;IACnB,UAAU,EAAE,yBAAyB,CAAC;IAEtC,OAAO,CAAC,EAAE,sBAAsB,CAAC;IACjC,WAAW,CAAC,EAAE,wBAAwB,CAAC;CAC1C,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG;IACtB,OAAO,EAAE,QAAQ,CAAC;IAClB,SAAS,EAAE,OAAO,CAAC;IACnB,WAAW,EAAE,qBAAqB,EAAE,CAAC;CACxC,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG;IACzB,SAAS,EAAE,UAAU,CAAC;IACtB,IAAI,EAAE,eAAe,GAAG,WAAW,CAAC;CACvC,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/presentation/automations/alerting/types.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,aAAa,EAAE,KAAK,SAAS,EAAE,KAAK,GAAG,EAAE,MAAM,OAAO,CAAC;AAErE,OAAO,EACH,KAAK,wBAAwB,EAC7B,KAAK,UAAU,EACf,KAAK,yBAAyB,EAC9B,KAAK,sBAAsB,EAC3B,KAAK,QAAQ,EACb,KAAK,QAAQ,EACb,KAAK,8BAA8B,EACnC,KAAK,kCAAkC,EACvC,KAAK,OAAO,EACf,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AACzD,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAEvD,OAAO,EACH,KAAK,+BAA+B,EACpC,KAAK,iCAAiC,EACtC,KAAK,6BAA6B,EAClC,KAAK,4BAA4B,EACjC,KAAK,gCAAgC,EACxC,MAAM,0BAA0B,CAAC;AAMlC;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACjC;;;;;;OAMG;IACH,WAAW,CAAC,EAAE,yBAAyB,CAAC;IAExC;;;;;;OAMG;IACH,oBAAoB,CAAC,EAAE,8B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MAAM,MAAM,WAAW,GAAG;IACtB,OAAO,EAAE,QAAQ,CAAC;IAClB,SAAS,EAAE,OAAO,CAAC;IACnB,WAAW,EAAE,qBAAqB,EAAE,CAAC;CACxC,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG;IACzB,SAAS,EAAE,UAAU,CAAC;IACtB,IAAI,EAAE,eAAe,GAAG,WAAW,CAAC;CACvC,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { type IDefaultScheduledEmailDialogProps } from "../types.js";
2
- export declare function ScheduledMailDialogRenderer({ onBack, onCancel, onDeleteSuccess, onDeleteError, onError, onSave, onSaveError, onSaveSuccess, onSubmit, onSuccess, slots }: IDefaultScheduledEmailDialogProps): import("react/jsx-runtime").JSX.Element;
2
+ export declare function ScheduledMailDialogRenderer({ onBack, onCancel, onDeleteSuccess, onDeleteError, onError, onSave, onSaveError, onSaveSuccess, onSubmit, onSuccess, slots, topContent, bottomContent }: IDefaultScheduledEmailDialogProps): import("react/jsx-runtime").JSX.Element;
3
3
  /**
4
4
  * Default implementation of the scheduled export create/edit dialog.
5
5
  *
@@ -1 +1 @@
1
- {"version":3,"file":"DefaultScheduledEmailDialog.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/DefaultScheduledEmailDialog.tsx"],"names":[],"mappings":"AA8CA,OAAO,EACH,KAAK,iCAAiC,EAIzC,MAAM,aAAa,CAAC;AA+DrB,wBAAgB,2BAA2B,CAAC,EACxC,MAAM,EACN,QAAQ,EACR,eAAe,EACf,aAAa,EACb,OAAO,EACP,MAAM,EACN,WAAW,EACX,aAAa,EACb,QAAQ,EACR,SAAS,EACT,KAAK,EACR,EAAE,iCAAiC,2CAgkBnC;AAED;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,2BAA2B,CAAC,KAAK,EAAE,iCAAiC,2CAYnF"}
1
+ {"version":3,"file":"DefaultScheduledEmailDialog.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/DefaultScheduledEmailDialog.tsx"],"names":[],"mappings":"AAoDA,OAAO,EACH,KAAK,iCAAiC,EAKzC,MAAM,aAAa,CAAC;AAwBrB,wBAAgB,2BAA2B,CAAC,EACxC,MAAM,EACN,QAAQ,EACR,eAAe,EACf,aAAa,EACb,OAAO,EACP,MAAM,EACN,WAAW,EACX,aAAa,EACb,QAAQ,EACR,SAAS,EACT,KAAK,EACL,UAAU,EACV,aAAa,EAChB,EAAE,iCAAiC,2CA4nBnC;AAED;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,2BAA2B,CAAC,KAAK,EAAE,iCAAiC,2CAYnF"}
@@ -4,12 +4,13 @@ import { useCallback, useMemo, useRef, useState } from "react";
4
4
  import cx from "classnames";
5
5
  import { defineMessage, useIntl } from "react-intl";
6
6
  import { ValidationContextStore, createInvalidNode, useValidationContextValue } from "@gooddata/sdk-ui";
7
- import { Button, ConfirmDialogBase, ContentDivider, Hyperlink, Message, Overlay, OverlayController, OverlayControllerProvider, RecurrenceForm, ScrollablePanel, UiIcon, UiTabs, getTimezoneDisplayLabel, isEnterKey, useIdPrefixed, } from "@gooddata/sdk-ui-kit";
7
+ import { ConfirmDialogBase, ContentDivider, Message, Overlay, OverlayController, OverlayControllerProvider, RecurrenceForm, ScrollablePanel, UiIcon, UiTabs, getTimezoneDisplayLabel, isEnterKey, useIdPrefixed, } from "@gooddata/sdk-ui-kit";
8
8
  import { DASHBOARD_DIALOG_OVERS_Z_INDEX } from "../../../constants/zIndex.js";
9
9
  import { IntlWrapper } from "../../../localization/IntlWrapper.js";
10
10
  import { useAutomationsContext } from "../../contexts/AutomationsContext.js";
11
11
  import { useScheduledEmailDialogContext } from "../../contexts/ScheduledEmailDialogContext.js";
12
12
  import { ApplyCurrentFiltersConfirmDialog } from "../../shared/automationFilters/components/ApplyLatestFiltersConfirmDialog.js";
13
+ import { AutomationDialogActionBar, AutomationDialogFooterLeft, } from "../../shared/slots/AutomationDialogActionBar.js";
13
14
  import { DeleteScheduleConfirmDialog } from "../DefaultScheduledEmailManagementDialog/components/DeleteScheduleConfirmDialog.js";
14
15
  import { useScheduleEmailDialogAccessibility } from "../hooks/useScheduleEmailDialogAccessibility.js";
15
16
  import { useScheduledExportActions } from "../state/ScheduledExportActionsContext.js";
@@ -23,29 +24,27 @@ import { isMobileView } from "../utils/responsive.js";
23
24
  import { TIMEZONE_DEFAULT } from "../utils/timezone.js";
24
25
  import { DashboardAttachments } from "./components/Attachments/DashboardAttachments.js";
25
26
  import { WidgetAttachments } from "./components/Attachments/WidgetAttachments.js";
26
- import { DestinationSelect } from "./components/DestinationSelect/DestinationSelect.js";
27
27
  import { EvaluationModeCheckbox } from "./components/EvaluationModeCheckbox/EvaluationModeCheckbox.js";
28
28
  import { ScheduledEmailDialogHeader } from "./components/Header/ScheduleEmailDialogHeader.js";
29
29
  import { MessageForm } from "./components/MessageForm/MessageForm.js";
30
- import { RecipientsSelect } from "./components/RecipientsSelect/RecipientsSelect.js";
30
+ import { ScheduledEmailDialogDestination } from "./components/ScheduledEmailDialogDestination.js";
31
31
  import { ScheduledEmailDialogFilters } from "./components/ScheduledEmailDialogFilters.js";
32
+ import { ScheduledEmailDialogRecipients } from "./components/ScheduledEmailDialogRecipients.js";
32
33
  import { ScheduleTimezoneSelect } from "./components/ScheduleTimezoneSelect/ScheduleTimezoneSelect.js";
33
34
  import { SubjectForm } from "./components/SubjectForm/SubjectForm.js";
34
35
  import { SCHEDULED_EMAIL_DIALOG_ID } from "./constants.js";
35
36
  import { DefaultLoadingScheduledEmailDialog } from "./DefaultLoadingScheduledEmailDialog.js";
36
37
  import { useElementHeightSnapshot } from "./hooks/useElementHeightSnapshot.js";
37
38
  import { useSaveScheduledEmailToBackend } from "./hooks/useSaveScheduledEmailToBackend.js";
38
- const OVERLAY_POSITION_TYPE = "sameAsTarget";
39
39
  const CLOSE_ON_PARENT_SCROLL = true;
40
40
  const overlayController = OverlayController.getInstance(DASHBOARD_DIALOG_OVERS_Z_INDEX);
41
- function ScheduledEmailDialogFooter({ isWhiteLabeled, helpTextId, scheduledExportToEdit, isSavingScheduledEmail, onDeleteClick, }) {
42
- const intl = useIntl();
43
- return (_jsxs("div", { className: "gd-notifications-channels-dialog-footer-link", children: [isWhiteLabeled ? null : (_jsx(Hyperlink, { text: intl.formatMessage({ id: helpTextId }), href: "https://www.gooddata.com/docs/cloud/create-dashboards/automation/scheduled-exports/#ScheduleExportsinDashboards-ScheduleExport", iconClass: "gd-icon-circle-question" })), scheduledExportToEdit ? (_jsx(Button, { className: "gd-button-link-dimmed", value: intl.formatMessage({ id: "delete" }), onClick: onDeleteClick, disabled: isSavingScheduledEmail })) : null] }));
44
- }
45
- export function ScheduledMailDialogRenderer({ onBack, onCancel, onDeleteSuccess, onDeleteError, onError, onSave, onSaveError, onSaveSuccess, onSubmit, onSuccess, slots, }) {
41
+ export function ScheduledMailDialogRenderer({ onBack, onCancel, onDeleteSuccess, onDeleteError, onError, onSave, onSaveError, onSaveSuccess, onSubmit, onSuccess, slots, topContent, bottomContent, }) {
46
42
  const HeaderSlot = slots?.Header;
47
43
  const FiltersSlot = slots?.Filters;
48
44
  const TimezoneSlot = slots?.Timezone;
45
+ const DestinationSlot = slots?.Destination;
46
+ const RecipientsSlot = slots?.Recipients;
47
+ const ActionBarSlot = slots?.ActionBar;
49
48
  const intl = useIntl();
50
49
  const dialogTitleRef = useRef(null);
51
50
  const generalTabContentRef = useRef(null);
@@ -59,7 +58,7 @@ export function ScheduledMailDialogRenderer({ onBack, onCancel, onDeleteSuccess,
59
58
  setScheduledEmailToDelete(null);
60
59
  };
61
60
  const { locale, dashboardTitle, dateFormat, weekStart, maxAutomationsRecipients, allowHourlyRecurrence, isCrossFiltering, isExecutionTimestampMode, isSlidesExportEnabled, isAccessibilityModeEnabled, enableAutomationEvaluationMode, } = useDefaultScheduledEmailDialogData();
62
- const { editedAutomation, originalAutomation, startDate, isTimezoneFeatureEnabled, canSelectScheduleTimezone, scheduleTimezoneSelection, defaultResolvedTimezone, scheduleTimezoneIsStale, } = useScheduledExportDraft();
61
+ const { editedAutomation, startDate, isTimezoneFeatureEnabled, canSelectScheduleTimezone, scheduleTimezoneSelection, defaultResolvedTimezone, scheduleTimezoneIsStale, } = useScheduledExportDraft();
63
62
  const { onTitleChange, onRecurrenceChange, onEvaluationModeChange, onDestinationChange, onRecipientsChange, onSubjectChange, onMessageChange, onDashboardAttachmentsChange, onWidgetAttachmentsChange, onXlsxSettingsChange, onPdfSettingsChange, onCsvSettingsChange, onCsvRawSettingsChange, onSlidesTemplateIdChange, onScheduleTimezoneChange, applyCurrentScheduleTimezone, } = useScheduledExportActions();
64
63
  const { defaultUser } = useScheduledExportData();
65
64
  const { selectedFilters, availableFilters, storeFilters, filtersByTab, editedFiltersByTab, onFiltersChange, onFiltersByTabChange, onApplyCurrentFilters, onStoreFiltersChange, automationIsValid, parametersEnabled, visibleParametersByTab, availableParametersByTab, flatTabId, onParameterAdd, onParameterChange, onParameterDelete, onParameterAddByTab, onParameterChangeByTab, onParameterDeleteByTab, applyLatest: applyLatestParameters, } = useScheduledExportFilters();
@@ -174,6 +173,49 @@ export function ScheduledMailDialogRenderer({ onBack, onCancel, onDeleteSuccess,
174
173
  onParameterDeleteByTab,
175
174
  parametersEnabled,
176
175
  };
176
+ const destinationDefaultProps = {
177
+ notificationChannels,
178
+ selectedNotificationChannelId: editedAutomation.notificationChannel,
179
+ onChange: onDestinationChange,
180
+ };
181
+ const recipientsDefaultProps = {
182
+ loggedUser: defaultUser,
183
+ value: editedAutomation.recipients ?? [],
184
+ onChange: onRecipientsChange,
185
+ allowEmptySelection: true,
186
+ allowOnlyLoggedUserRecipients,
187
+ allowExternalRecipients,
188
+ maxRecipients: maxAutomationsRecipients,
189
+ notificationChannels,
190
+ notificationChannelId: editedAutomation.notificationChannel,
191
+ onKeyDownSubmit: handleSubmitForm,
192
+ externalRecipientOverride,
193
+ };
194
+ const actionBarDefaultProps = {
195
+ cancelButtonText: intl.formatMessage({ id: "cancel" }),
196
+ submitButtonText: scheduledExportToEdit
197
+ ? intl.formatMessage({ id: "dialogs.schedule.email.save" })
198
+ : intl.formatMessage({ id: "dialogs.schedule.email.create" }),
199
+ onCancel: () => onCancel?.(),
200
+ onSubmit: handleSaveScheduledEmail,
201
+ isSubmitDisabled: submitDisabled,
202
+ isSaving: isSavingScheduledEmail,
203
+ submitButtonTooltipText: isExecutionTimestampMode
204
+ ? intl.formatMessage({ id: "dialogs.schedule.email.save.executionTimestampMode" })
205
+ : undefined,
206
+ ...(isWhiteLabeled
207
+ ? {}
208
+ : {
209
+ helpLinkText: intl.formatMessage({ id: helpTextId }),
210
+ helpLinkHref: "https://www.gooddata.com/docs/cloud/create-dashboards/automation/scheduled-exports/#ScheduleExportsinDashboards-ScheduleExport",
211
+ }),
212
+ ...(scheduledExportToEdit
213
+ ? {
214
+ deleteButtonText: intl.formatMessage({ id: "delete" }),
215
+ onDelete: () => setScheduledEmailToDelete(editedAutomation),
216
+ }
217
+ : {}),
218
+ };
177
219
  return (_jsxs(_Fragment, { children: [
178
220
  _jsx(Overlay, { className: "gd-notifications-channels-dialog-overlay", isModal: true, positionType: "fixed", ensureVisibility: true, children: _jsx(OverlayControllerProvider, { overlayController: overlayController, children: _jsx(ValidationContextStore, { value: validationContextValue, children: _jsxs(ConfirmDialogBase, { className: "gd-notifications-channels-dialog s-gd-notifications-channels-dialog gd-dialog--wide gd-notifications-channels-dialog--wide", isPositive: true, cancelButtonText: intl.formatMessage({ id: "cancel" }), submitButtonText: scheduledExportToEdit
179
221
  ? intl.formatMessage({ id: `dialogs.schedule.email.save` })
@@ -185,7 +227,11 @@ export function ScheduledMailDialogRenderer({ onBack, onCancel, onDeleteSuccess,
185
227
  },
186
228
  titleElementId,
187
229
  dialogId: SCHEDULED_EMAIL_DIALOG_ID,
188
- }, showProgressIndicator: isSavingScheduledEmail, returnFocusTo: returnFocusTo, returnFocusAfterClose: false, footerLeftRenderer: () => (_jsx(ScheduledEmailDialogFooter, { isWhiteLabeled: isWhiteLabeled, helpTextId: helpTextId, scheduledExportToEdit: scheduledExportToEdit, isSavingScheduledEmail: isSavingScheduledEmail, onDeleteClick: () => setScheduledEmailToDelete(editedAutomation) })), isSubmitDisabled: submitDisabled, submitButtonTooltipText: isExecutionTimestampMode
230
+ }, showProgressIndicator: isSavingScheduledEmail, returnFocusTo: returnFocusTo, returnFocusAfterClose: false, footerLeftRenderer: ActionBarSlot
231
+ ? undefined
232
+ : () => (_jsx(AutomationDialogFooterLeft, { helpLinkText: actionBarDefaultProps.helpLinkText, helpLinkHref: actionBarDefaultProps.helpLinkHref, deleteButtonText: actionBarDefaultProps.deleteButtonText, onDelete: actionBarDefaultProps.onDelete, isDeleteDisabled: isSavingScheduledEmail })), footerRenderer: ActionBarSlot
233
+ ? () => (_jsx(ActionBarSlot, { Default: AutomationDialogActionBar, defaultProps: actionBarDefaultProps }))
234
+ : undefined, isSubmitDisabled: submitDisabled, submitButtonTooltipText: isExecutionTimestampMode
189
235
  ? intl.formatMessage({
190
236
  id: "dialogs.schedule.email.save.executionTimestampMode",
191
237
  })
@@ -216,8 +262,7 @@ export function ScheduledMailDialogRenderer({ onBack, onCancel, onDeleteSuccess,
216
262
  }, disableBottomBorder: true })) : null, _jsxs(ScrollablePanel, { className: cx("gd-notifications-channel-dialog-content-wrapper", {
217
263
  "gd-notification-channel-dialog-with-automation-filters": true,
218
264
  "gd-notification-channel-dialog-with-tabs": tabs.length > 1,
219
- }), children: [
220
- _jsx("div", { className: "gd-divider-with-margin" }), selectedTabId === "filters" ? (_jsx("div", { ref: filtersTabContentRef, className: "gd-schedule-dialog-tab-content", style: tabContentHeight
265
+ }), children: [topContent, _jsx("div", { className: "gd-divider-with-margin" }), selectedTabId === "filters" ? (_jsx("div", { ref: filtersTabContentRef, className: "gd-schedule-dialog-tab-content", style: tabContentHeight
221
266
  ? { minHeight: `${tabContentHeight}px` }
222
267
  : undefined, children: FiltersSlot ? (_jsx(FiltersSlot, { Default: ScheduledEmailDialogFilters, defaultProps: filtersDefaultProps })) : (_jsx(ScheduledEmailDialogFilters, { ...filtersDefaultProps })) })) : (_jsxs("div", { ref: generalTabContentRef, className: "gd-schedule-dialog-tab-content", children: [!widget && tabIds.length > 1 ? (_jsx(Message, { type: "progress", className: "gd-schedule-dialog-tab-content-info", children: intl.formatMessage({
223
268
  id: "dialogs.schedule.email.tabs.info",
@@ -230,7 +275,7 @@ export function ScheduledMailDialogRenderer({ onBack, onCancel, onDeleteSuccess,
230
275
  ? getTimezoneDisplayLabel(editedAutomation.schedule?.timezone ??
231
276
  TIMEZONE_DEFAULT.identifier)
232
277
  : (editedAutomation.schedule?.timezone ??
233
- TIMEZONE_DEFAULT.identifier), dateFormat: dateFormat ?? "MM/dd/yyyy", locale: locale, weekStart: weekStart, onChange: onRecurrenceChange, allowHourlyRecurrence: allowHourlyRecurrence, isWhiteLabeled: isWhiteLabeled, closeDropdownsOnParentScroll: CLOSE_ON_PARENT_SCROLL, onKeyDownSubmit: handleSubmitForm }), _jsx(ContentDivider, { className: "gd-divider-with-margin" }), _jsx(DestinationSelect, { notificationChannels: notificationChannels, selectedItemId: editedAutomation.notificationChannel, onChange: onDestinationChange, closeOnParentScroll: CLOSE_ON_PARENT_SCROLL, overlayPositionType: OVERLAY_POSITION_TYPE }), _jsx(ContentDivider, { className: "gd-divider-with-margin" }), _jsx(RecipientsSelect, { id: "schedule.email.recipients", loggedUser: defaultUser, value: editedAutomation.recipients ?? [], originalValue: originalAutomation.recipients || [], onChange: onRecipientsChange, allowEmptySelection: true, allowOnlyLoggedUserRecipients: allowOnlyLoggedUserRecipients, allowExternalRecipients: allowExternalRecipients, maxRecipients: maxAutomationsRecipients, notificationChannels: notificationChannels, notificationChannelId: editedAutomation.notificationChannel, onKeyDownSubmit: handleSubmitForm, externalRecipientOverride: externalRecipientOverride }), isInPlatformChannel ? null : (_jsxs(_Fragment, { children: [
278
+ TIMEZONE_DEFAULT.identifier), dateFormat: dateFormat ?? "MM/dd/yyyy", locale: locale, weekStart: weekStart, onChange: onRecurrenceChange, allowHourlyRecurrence: allowHourlyRecurrence, isWhiteLabeled: isWhiteLabeled, closeDropdownsOnParentScroll: CLOSE_ON_PARENT_SCROLL, onKeyDownSubmit: handleSubmitForm }), _jsx(ContentDivider, { className: "gd-divider-with-margin" }), DestinationSlot ? (_jsx(DestinationSlot, { Default: ScheduledEmailDialogDestination, defaultProps: destinationDefaultProps })) : (_jsx(ScheduledEmailDialogDestination, { ...destinationDefaultProps })), _jsx(ContentDivider, { className: "gd-divider-with-margin" }), RecipientsSlot ? (_jsx(RecipientsSlot, { Default: ScheduledEmailDialogRecipients, defaultProps: recipientsDefaultProps })) : (_jsx(ScheduledEmailDialogRecipients, { ...recipientsDefaultProps })), isInPlatformChannel ? null : (_jsxs(_Fragment, { children: [
234
279
  _jsx(SubjectForm, { dashboardTitle: dashboardTitle, editedAutomation: editedAutomation, onChange: onSubjectChange, onKeyDownSubmit: handleSaveScheduledEmail, isSubmitDisabled: isSubmitDisabled }), _jsx(MessageForm, { onChange: onMessageChange, value: editedAutomation.details?.message ?? "" })
235
280
  ] })), widget ? (_jsx(WidgetAttachments, { selectedAttachments: selectedAttachments, onWidgetAttachmentsChange: onWidgetAttachmentsChange, xlsxSettings: xlsxSettings, pdfSettings: pdfSettings, onXlsxSettingsChange: onXlsxSettingsChange, onPdfSettingsChange: onPdfSettingsChange, csvSettings: csvSettings, onCsvSettingsChange: onCsvSettingsChange, csvRawSettings: csvRawSettings, onCsvRawSettingsChange: onCsvRawSettingsChange, isSlidesExportEnabled: isSlidesExportEnabled, isAccessibilityModeEnabled: isAccessibilityModeEnabled, exportTemplates: exportTemplates, slidesTemplateIds: slidesTemplateIds, onSlidesTemplateIdChange: onSlidesTemplateIdChange })) : (_jsx(DashboardAttachments, { selectedAttachments: selectedAttachments, dashboardFilters: dashboardFilters, isCrossFiltering: isCrossFiltering, onDashboardAttachmentsChange: onDashboardAttachmentsChange, xlsxSettings: xlsxSettings, onXlsxSettingsChange: onXlsxSettingsChange, isSlidesExportEnabled: isSlidesExportEnabled, exportTemplates: exportTemplates, slidesTemplateIds: slidesTemplateIds, onSlidesTemplateIdChange: onSlidesTemplateIdChange })), canSelectScheduleTimezone ? (TimezoneSlot ? (_jsx(TimezoneSlot, { Default: ScheduleTimezoneSelect, defaultProps: timezoneDefaultProps })) : (_jsx(ScheduleTimezoneSelect, { ...timezoneDefaultProps }))) : null, enableAutomationEvaluationMode ? (_jsx(EvaluationModeCheckbox, { isShared: editedAutomation.evaluationMode === "SHARED", onChange: onEvaluationModeChange })) : null, errorMessage ? (_jsx(Message, { type: "error", className: cx("gd-notifications-channels-dialog-error", {
236
281
  "gd-notifications-channels-dialog-error-scrollable": true,
@@ -238,7 +283,7 @@ export function ScheduledMailDialogRenderer({ onBack, onCancel, onDeleteSuccess,
238
283
  .filter((invalidDatapoint) => invalidDatapoint.severity === "error")
239
284
  .map((invalidDatapoint) => (_jsx(Message, { id: invalidDatapoint.id, type: "error", className: cx("gd-notifications-channels-dialog-error", {
240
285
  "gd-notifications-channels-dialog-error-scrollable": true,
241
- }), children: invalidDatapoint.message }, invalidDatapoint.id)))] }))] })
286
+ }), children: invalidDatapoint.message }, invalidDatapoint.id)))] })), bottomContent] })
242
287
  ] }) }) }) }), scheduledEmailToDelete ? (_jsx(DeleteScheduleConfirmDialog, { scheduledEmail: scheduledEmailToDelete, onCancel: () => setScheduledEmailToDelete(null), onSuccess: handleScheduleDeleteSuccess, onError: onDeleteError })) : null] }));
243
288
  }
244
289
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"AttachmentSettings.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/Attachments/AttachmentSettings.tsx"],"names":[],"mappings":"AAMA,OAAO,EAEH,KAAK,4CAA4C,EAIpD,MAAM,qBAAqB,CAAC;AAsC7B,KAAK,uBAAuB,GAAG,MAAM,GAAG,aAAa,GAAG,KAAK,GAAG,SAAS,CAAC;AAE1E,MAAM,WAAW,wBAAwB;IACrC,IAAI,EAAE,uBAAuB,CAAC;IAC9B,QAAQ,EAAE,4CAA4C,CAAC;IACvD,gBAAgB,EAAE,CAAC,QAAQ,EAAE,4CAA4C,KAAK,IAAI,CAAC;CACtF;AA6BD,wBAAgB,kBAAkB,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,gBAAgB,EAAE,EAAE,wBAAwB,2CA2WhG"}
1
+ {"version":3,"file":"AttachmentSettings.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/Attachments/AttachmentSettings.tsx"],"names":[],"mappings":"AAMA,OAAO,EACH,KAAK,4CAA4C,EAIpD,MAAM,qBAAqB,CAAC;AAsC7B,KAAK,uBAAuB,GAAG,MAAM,GAAG,aAAa,GAAG,KAAK,GAAG,SAAS,CAAC;AAE1E,MAAM,WAAW,wBAAwB;IACrC,IAAI,EAAE,uBAAuB,CAAC;IAC9B,QAAQ,EAAE,4CAA4C,CAAC;IACvD,gBAAgB,EAAE,CAAC,QAAQ,EAAE,4CAA4C,KAAK,IAAI,CAAC;CACtF;AA6BD,wBAAgB,kBAAkB,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,gBAAgB,EAAE,EAAE,wBAAwB,2CA0WhG"}
@@ -2,7 +2,7 @@ import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-run
2
2
  // (C) 2025-2026 GoodData Corporation
3
3
  import { useId, useMemo, useState } from "react";
4
4
  import { FormattedMessage, useIntl } from "react-intl";
5
- import { DEFAULT_CSV_DELIMITER, getCsvDelimiterState, getCsvDelimiterValidationError, getCsvDelimiterValue, } from "@gooddata/sdk-model";
5
+ import { getCsvDelimiterState, getCsvDelimiterValidationError, getCsvDelimiterValue, } from "@gooddata/sdk-model";
6
6
  import { Button, ContentDivider, CsvDelimiterPicker, Dropdown, DropdownButton, UiIcon, UiMenu, isEscapeKey, } from "@gooddata/sdk-ui-kit";
7
7
  import { AUTOMATION_ATTACHMENT_SETTINGS_DIALOG_TITLE_ID } from "../../../../../constants/automations.js";
8
8
  const DROPDOWN_ALIGN_POINTS = [
@@ -45,7 +45,6 @@ export function AttachmentSettings({ type, settings, onSettingsChange }) {
45
45
  const legacyOrientation = settings.orientation;
46
46
  const legacyPageOrientation = mapLegacyOrientationToPageOrientation(legacyOrientation);
47
47
  const resolvedDefaultPageSize = settings.pageSize ?? DEFAULT_PDF_PAGE_SIZE;
48
- const resolvedCsvDelimiter = settings.delimiter ?? DEFAULT_CSV_DELIMITER;
49
48
  const resolvedCsvState = getCsvDelimiterState(settings.delimiter);
50
49
  const [mergeHeaders, setMergeHeaders] = useState(settings.mergeHeaders ?? true);
51
50
  const [exportInfo, setExportInfo] = useState(settings.exportInfo ?? true);
@@ -117,7 +116,7 @@ export function AttachmentSettings({ type, settings, onSettingsChange }) {
117
116
  const csvValidationError = csvDelimiterValue.selectedPreset === "custom"
118
117
  ? getCsvDelimiterValidationError(csvDelimiterValue.customDelimiter)
119
118
  : undefined;
120
- const isCsvSettingsDirty = selectedDelimiter !== resolvedCsvDelimiter;
119
+ const isCsvSettingsDirty = selectedDelimiter !== settings.delimiter;
121
120
  const isSettingsDirty = isPdfTabular
122
121
  ? isPdfSettingsDirty
123
122
  : isCsv
@@ -5,10 +5,6 @@ interface IRecipientsSelectProps {
5
5
  * Currently selected recipients.
6
6
  */
7
7
  value: IAutomationRecipient[];
8
- /**
9
- * Originally selected recipients of a edited schedule
10
- */
11
- originalValue: IAutomationRecipient[];
12
8
  /**
13
9
  * Callback to be called, when recipients are changed.
14
10
  */
@@ -62,6 +58,6 @@ interface IRecipientsSelectProps {
62
58
  */
63
59
  externalRecipientOverride?: string;
64
60
  }
65
- export declare function RecipientsSelect({ id, value, originalValue, onChange, loggedUser, allowEmptySelection, allowExternalRecipients, allowOnlyLoggedUserRecipients, maxRecipients, className, notificationChannels, notificationChannelId, showLabel, onKeyDownSubmit, externalRecipientOverride }: IRecipientsSelectProps): import("react/jsx-runtime").JSX.Element;
61
+ export declare function RecipientsSelect({ id, value, onChange, loggedUser, allowEmptySelection, allowExternalRecipients, allowOnlyLoggedUserRecipients, maxRecipients, className, notificationChannels, notificationChannelId, showLabel, onKeyDownSubmit, externalRecipientOverride }: IRecipientsSelectProps): import("react/jsx-runtime").JSX.Element;
66
62
  export {};
67
63
  //# sourceMappingURL=RecipientsSelect.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"RecipientsSelect.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/RecipientsSelect/RecipientsSelect.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,aAAa,EAAW,MAAM,OAAO,CAAC;AAIpD,OAAO,EACH,KAAK,oBAAoB,EACzB,KAAK,8BAA8B,EACnC,KAAK,kCAAkC,EAC1C,MAAM,qBAAqB,CAAC;AAU7B,UAAU,sBAAsB;IAC5B;;OAEG;IACH,KAAK,EAAE,oBAAoB,EAAE,CAAC;IAE9B;;OAEG;IACH,aAAa,EAAE,oBAAoB,EAAE,CAAC;IAEtC;;OAEG;IACH,QAAQ,EAAE,CAAC,eAAe,EAAE,oBAAoB,EAAE,KAAK,IAAI,CAAC;IAE5D;;OAEG;IACH,UAAU,CAAC,EAAE,oBAAoB,CAAC;IAElC;;OAEG;IACH,6BAA6B,CAAC,EAAE,OAAO,CAAC;IACxC;;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,oBAAoB,CAAC,EAAE,8BAA8B,EAAE,GAAG,kCAAkC,EAAE,CAAC;IAE/F;;OAEG;IACH,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAE/B;;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;AAED,wBAAgB,gBAAgB,CAAC,EAC7B,EAAE,EACF,KAAK,EACL,aAAa,EACb,QAAQ,EACR,UAAU,EACV,mBAAmB,EACnB,uBAAuB,EACvB,6BAA6B,EAC7B,aAAa,EACb,SAAS,EACT,oBAAoB,EACpB,qBAAqB,EACrB,SAAgB,EAChB,eAAe,EACf,yBAAyB,EAC5B,EAAE,sBAAsB,2CAwExB"}
1
+ {"version":3,"file":"RecipientsSelect.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/RecipientsSelect/RecipientsSelect.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,aAAa,EAAW,MAAM,OAAO,CAAC;AAIpD,OAAO,EACH,KAAK,oBAAoB,EACzB,KAAK,8BAA8B,EACnC,KAAK,kCAAkC,EAC1C,MAAM,qBAAqB,CAAC;AAU7B,UAAU,sBAAsB;IAC5B;;OAEG;IACH,KAAK,EAAE,oBAAoB,EAAE,CAAC;IAE9B;;OAEG;IACH,QAAQ,EAAE,CAAC,eAAe,EAAE,oBAAoB,EAAE,KAAK,IAAI,CAAC;IAE5D;;OAEG;IACH,UAAU,CAAC,EAAE,oBAAoB,CAAC;IAElC;;OAEG;IACH,6BAA6B,CAAC,EAAE,OAAO,CAAC;IACxC;;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,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