@gooddata/sdk-ui-dashboard 11.43.0-alpha.2 → 11.43.0-alpha.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (278) hide show
  1. package/NOTICE +4826 -13873
  2. package/esm/__version.d.ts +1 -1
  3. package/esm/__version.js +1 -1
  4. package/esm/index.d.ts +4 -4
  5. package/esm/index.d.ts.map +1 -1
  6. package/esm/index.js +3 -3
  7. package/esm/model/commandHandlers/dashboard/common/filterViews.d.ts +2 -2
  8. package/esm/model/commandHandlers/dashboard/common/filterViews.d.ts.map +1 -1
  9. package/esm/model/commandHandlers/dashboard/common/filterViews.js +1 -5
  10. package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/index.js +1 -1
  11. package/esm/model/commandHandlers/dashboard/resetDashboardHandler.js +1 -1
  12. package/esm/model/queryServices/queryWidgetFilters.d.ts +1 -1
  13. package/esm/model/queryServices/queryWidgetFilters.d.ts.map +1 -1
  14. package/esm/model/queryServices/queryWidgetFilters.js +19 -36
  15. package/esm/model/react/useWidgetExecConfig.d.ts +5 -3
  16. package/esm/model/react/useWidgetExecConfig.d.ts.map +1 -1
  17. package/esm/model/react/useWidgetExecConfig.js +8 -4
  18. package/esm/model/store/config/configSelectors.d.ts +0 -6
  19. package/esm/model/store/config/configSelectors.d.ts.map +1 -1
  20. package/esm/model/store/config/configSelectors.js +1 -9
  21. package/esm/model/store/tabs/parameters/parametersHelpers.d.ts +20 -1
  22. package/esm/model/store/tabs/parameters/parametersHelpers.d.ts.map +1 -1
  23. package/esm/model/store/tabs/parameters/parametersHelpers.js +48 -3
  24. package/esm/model/store/tabs/parameters/parametersSelectors.d.ts +19 -1
  25. package/esm/model/store/tabs/parameters/parametersSelectors.d.ts.map +1 -1
  26. package/esm/model/store/tabs/parameters/parametersSelectors.js +34 -33
  27. package/esm/model/store/topBar/topBarSelectors.d.ts.map +1 -1
  28. package/esm/model/store/topBar/topBarSelectors.js +4 -4
  29. package/esm/presentation/automations/_staging/alerting/AlertingManagementDialog.d.ts +1 -1
  30. package/esm/presentation/automations/_staging/alerting/AlertingManagementDialog.d.ts.map +1 -1
  31. package/esm/presentation/automations/_staging/alerting/DefaultAlertingManagementDialog/DefaultAlertingManagementDialogContentBasic.js +1 -1
  32. package/esm/presentation/automations/_staging/alerting/DefaultAlertingManagementDialog/DefaultAlertingManagementDialogContentEnhanced.js +3 -3
  33. package/esm/presentation/automations/_staging/alerting/DefaultAlertingManagementDialog/DefaultAlertingManagementDialogNew.d.ts +1 -1
  34. package/esm/presentation/automations/_staging/alerting/DefaultAlertingManagementDialog/DefaultAlertingManagementDialogNew.d.ts.map +1 -1
  35. package/esm/presentation/automations/_staging/alerting/DefaultAlertingManagementDialog/components/Alert.js +2 -2
  36. package/esm/presentation/automations/_staging/alerting/DefaultAlertingManagementDialog/components/AlertDropdown.d.ts +1 -1
  37. package/esm/presentation/automations/_staging/alerting/DefaultAlertingManagementDialog/components/AlertDropdown.d.ts.map +1 -1
  38. package/esm/presentation/automations/_staging/alerting/DefaultAlertingManagementDialog/hooks/useAlertValidation.d.ts.map +1 -0
  39. package/esm/presentation/automations/_staging/alerting/{DefaultAlertingDialog → DefaultAlertingManagementDialog}/hooks/useAlertValidation.js +2 -2
  40. package/esm/presentation/automations/alerting/AlertingDialog.d.ts.map +1 -0
  41. package/esm/presentation/automations/{_staging/alerting → alerting}/AlertingDialog.js +1 -1
  42. package/esm/presentation/automations/alerting/DefaultAlertingDialog/AlertingDialogHeader.d.ts.map +1 -0
  43. package/esm/presentation/automations/alerting/DefaultAlertingDialog/DefaultAlertingDialog.d.ts +21 -0
  44. package/esm/presentation/automations/alerting/DefaultAlertingDialog/DefaultAlertingDialog.d.ts.map +1 -0
  45. package/esm/presentation/automations/{_staging/alerting → alerting}/DefaultAlertingDialog/DefaultAlertingDialog.js +58 -56
  46. package/esm/presentation/automations/alerting/DefaultAlertingDialog/DefaultLoadingAlertingDialog.d.ts.map +1 -0
  47. package/esm/presentation/automations/{_staging/alerting → alerting}/DefaultAlertingDialog/DefaultLoadingAlertingDialog.js +1 -1
  48. package/esm/presentation/automations/alerting/DefaultAlertingDialog/components/AlertAttributeSelect.d.ts.map +1 -0
  49. package/esm/presentation/automations/alerting/DefaultAlertingDialog/components/AlertComparisonOperatorSelect.d.ts.map +1 -0
  50. package/esm/presentation/automations/alerting/DefaultAlertingDialog/components/AlertComparisonPeriodSelect.d.ts.map +1 -0
  51. package/esm/presentation/automations/alerting/DefaultAlertingDialog/components/AlertDeleteDialog.d.ts.map +1 -0
  52. package/esm/presentation/automations/alerting/DefaultAlertingDialog/components/AlertDestinationSelect.d.ts.map +1 -0
  53. package/esm/presentation/automations/alerting/DefaultAlertingDialog/components/AlertGranularitySelect.d.ts.map +1 -0
  54. package/esm/presentation/automations/alerting/DefaultAlertingDialog/components/AlertMeasureSelect.d.ts.map +1 -0
  55. package/esm/presentation/automations/alerting/DefaultAlertingDialog/components/AlertSensitivitySelect.d.ts.map +1 -0
  56. package/esm/presentation/automations/alerting/DefaultAlertingDialog/components/AlertThresholdInput.d.ts.map +1 -0
  57. package/esm/presentation/automations/alerting/DefaultAlertingDialog/components/AlertTriggerIntervalSelect.d.ts.map +1 -0
  58. package/esm/presentation/automations/alerting/DefaultAlertingDialog/components/AlertTriggerModeSelect.d.ts.map +1 -0
  59. package/esm/presentation/automations/alerting/DefaultAlertingDialog/constants.d.ts.map +1 -0
  60. package/esm/presentation/automations/alerting/DefaultAlertingDialog/hooks/useAlertValidation.d.ts +7 -0
  61. package/esm/presentation/automations/alerting/DefaultAlertingDialog/hooks/useAlertValidation.d.ts.map +1 -0
  62. package/esm/presentation/automations/alerting/DefaultAlertingDialog/hooks/useAlertValidation.js +16 -0
  63. package/esm/presentation/automations/{_staging/alerting → alerting}/DefaultAlertingDialog/hooks/useAttributeValuesFromExecResults.d.ts +6 -1
  64. package/esm/presentation/automations/alerting/DefaultAlertingDialog/hooks/useAttributeValuesFromExecResults.d.ts.map +1 -0
  65. package/esm/presentation/automations/{_staging/alerting → alerting}/DefaultAlertingDialog/hooks/useAttributeValuesFromExecResults.js +31 -5
  66. package/esm/presentation/automations/{_staging/alerting → alerting}/DefaultAlertingDialog/hooks/useEditAlert.d.ts +7 -7
  67. package/esm/presentation/automations/alerting/DefaultAlertingDialog/hooks/useEditAlert.d.ts.map +1 -0
  68. package/esm/presentation/automations/{_staging/alerting → alerting}/DefaultAlertingDialog/hooks/useEditAlert.js +15 -45
  69. package/esm/presentation/automations/alerting/DefaultAlertingDialog/hooks/useOperators.d.ts.map +1 -0
  70. package/esm/presentation/automations/alerting/DefaultAlertingDialog/hooks/useThresholdValue.d.ts.map +1 -0
  71. package/esm/presentation/automations/alerting/DefaultAlertingDialog/messages.d.ts.map +1 -0
  72. package/esm/presentation/automations/alerting/DefaultAlertingDialog/utils/convertors.d.ts.map +1 -0
  73. package/esm/presentation/automations/alerting/DefaultAlertingDialog/utils/cron.d.ts.map +1 -0
  74. package/esm/presentation/automations/alerting/DefaultAlertingDialog/utils/getters.d.ts.map +1 -0
  75. package/esm/presentation/automations/alerting/DefaultAlertingDialog/utils/granularity.d.ts.map +1 -0
  76. package/esm/presentation/automations/alerting/DefaultAlertingDialog/utils/guards.d.ts.map +1 -0
  77. package/esm/presentation/automations/alerting/DefaultAlertingDialog/utils/items.d.ts.map +1 -0
  78. package/esm/presentation/automations/alerting/DefaultAlertingDialog/utils/responsive.d.ts.map +1 -0
  79. package/esm/presentation/automations/alerting/DefaultAlertingDialog/utils/threshold.d.ts.map +1 -0
  80. package/esm/presentation/automations/alerting/DefaultAlertingDialog/utils/transformation.d.ts.map +1 -0
  81. package/esm/presentation/automations/alerting/DefaultAlertingManagementDialog/components/DeleteAlertConfirmDialog.d.ts +11 -0
  82. package/esm/presentation/automations/alerting/DefaultAlertingManagementDialog/components/DeleteAlertConfirmDialog.d.ts.map +1 -0
  83. package/esm/presentation/automations/alerting/DefaultAlertingManagementDialog/components/DeleteAlertConfirmDialog.js +35 -0
  84. package/esm/presentation/automations/alerting/hooks/useGetSupportedMeasures.d.ts.map +1 -0
  85. package/esm/presentation/automations/{_staging/alerting → alerting}/hooks/useGetSupportedMeasures.js +2 -6
  86. package/esm/presentation/automations/{_staging/alerting → alerting}/types.d.ts +5 -3
  87. package/esm/presentation/automations/alerting/types.d.ts.map +1 -0
  88. package/esm/presentation/automations/connectors/AlertingConnector.d.ts +27 -0
  89. package/esm/presentation/automations/connectors/AlertingConnector.d.ts.map +1 -0
  90. package/esm/presentation/automations/connectors/AlertingConnector.js +72 -0
  91. package/esm/presentation/automations/connectors/hooks/sanitizeAutomationForSave.d.ts +15 -0
  92. package/esm/presentation/automations/connectors/hooks/sanitizeAutomationForSave.d.ts.map +1 -0
  93. package/esm/presentation/automations/connectors/hooks/sanitizeAutomationForSave.js +25 -0
  94. package/esm/presentation/automations/connectors/hooks/useBuildAlertingDialogContext.d.ts +9 -0
  95. package/esm/presentation/automations/connectors/hooks/useBuildAlertingDialogContext.d.ts.map +1 -0
  96. package/esm/presentation/automations/connectors/hooks/useBuildAlertingDialogContext.js +128 -0
  97. package/esm/presentation/automations/connectors/hooks/useBuildAlertingDialogContext.test.d.ts +2 -0
  98. package/esm/presentation/automations/connectors/hooks/useBuildAlertingDialogContext.test.d.ts.map +1 -0
  99. package/esm/presentation/automations/connectors/hooks/useBuildAlertingDialogContext.test.js +66 -0
  100. package/esm/presentation/automations/connectors/hooks/useBuildAutomationsContext.d.ts.map +1 -1
  101. package/esm/presentation/automations/connectors/hooks/useBuildAutomationsContext.js +65 -1
  102. package/esm/presentation/automations/connectors/hooks/useBuildAutomationsContext.test.js +27 -0
  103. package/esm/presentation/automations/contexts/AlertingDialogContext.d.ts +32 -0
  104. package/esm/presentation/automations/contexts/AlertingDialogContext.d.ts.map +1 -0
  105. package/esm/presentation/automations/contexts/AlertingDialogContext.js +11 -0
  106. package/esm/presentation/automations/contexts/AutomationsContext.d.ts +20 -1
  107. package/esm/presentation/automations/contexts/AutomationsContext.d.ts.map +1 -1
  108. package/esm/presentation/automations/contexts/AutomationsContext.js +4 -1
  109. package/esm/presentation/automations/contexts/AutomationsContext.test.js +1 -1
  110. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/RecipientsSelect/RecipientsSelect.js +1 -1
  111. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/hooks/useEditScheduledEmail.d.ts.map +1 -1
  112. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/hooks/useEditScheduledEmail.js +20 -14
  113. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/hooks/useFiltersForDashboardScheduledExportInfo.d.ts +1 -1
  114. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/hooks/useFiltersForDashboardScheduledExportInfo.d.ts.map +1 -1
  115. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/hooks/useFiltersForDashboardScheduledExportInfo.js +1 -1
  116. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailManagementDialog/components/ScheduledEmail.js +1 -1
  117. package/esm/presentation/automations/shared/automationFilters/components/AutomationDateFilter.test.js +19 -0
  118. package/esm/presentation/dashboard/DashboardHeader/AlertingDialogProvider.d.ts.map +1 -1
  119. package/esm/presentation/dashboard/DashboardHeader/AlertingDialogProvider.js +18 -4
  120. package/esm/presentation/dashboard/components/DashboardRenderer.js +1 -1
  121. package/esm/presentation/dashboard/types.d.ts +1 -1
  122. package/esm/presentation/dashboard/types.d.ts.map +1 -1
  123. package/esm/presentation/dashboardContexts/DashboardComponentsContext.d.ts +1 -1
  124. package/esm/presentation/dashboardContexts/DashboardComponentsContext.d.ts.map +1 -1
  125. package/esm/presentation/dashboardSettingsDialog/DefaultDashboardSettingsDialog.d.ts.map +1 -1
  126. package/esm/presentation/dashboardSettingsDialog/DefaultDashboardSettingsDialog.js +3 -4
  127. package/esm/presentation/drill/DrillSelect/DrillSelectDropdown.d.ts.map +1 -1
  128. package/esm/presentation/drill/DrillSelect/DrillSelectDropdown.js +1 -1
  129. package/esm/presentation/drill/DrillSelect/DrillSelectDropdownMenuItem.d.ts +1 -1
  130. package/esm/presentation/drill/DrillSelect/DrillSelectDropdownMenuItem.d.ts.map +1 -1
  131. package/esm/presentation/drill/DrillSelect/DrillSelectDropdownMenuItem.js +6 -28
  132. package/esm/presentation/drill/hooks/useDrillSelectDropdownMenuItems.d.ts +0 -3
  133. package/esm/presentation/drill/hooks/useDrillSelectDropdownMenuItems.d.ts.map +1 -1
  134. package/esm/presentation/drill/hooks/useDrillSelectDropdownMenuItems.js +16 -3
  135. package/esm/presentation/export/DefaultDashboardExportVariables.d.ts.map +1 -1
  136. package/esm/presentation/export/DefaultDashboardExportVariables.js +13 -8
  137. package/esm/presentation/export/DefaultDashboardExportVariables.test.d.ts +2 -0
  138. package/esm/presentation/export/DefaultDashboardExportVariables.test.d.ts.map +1 -0
  139. package/esm/presentation/export/DefaultDashboardExportVariables.test.js +58 -0
  140. package/esm/presentation/export/types.d.ts +2 -1
  141. package/esm/presentation/export/types.d.ts.map +1 -1
  142. package/esm/presentation/export/useExportData.d.ts.map +1 -1
  143. package/esm/presentation/export/useExportData.js +6 -0
  144. package/esm/presentation/filterBar/filterBar/DefaultFilterBarContainer.d.ts.map +1 -1
  145. package/esm/presentation/filterBar/filterBar/DefaultFilterBarContainer.js +14 -5
  146. package/esm/presentation/localization/bundles/en-US.localization-bundle.d.ts +4 -0
  147. package/esm/presentation/localization/bundles/en-US.localization-bundle.d.ts.map +1 -1
  148. package/esm/presentation/localization/bundles/en-US.localization-bundle.js +4 -0
  149. package/esm/presentation/localization/bundles/fi-FI.localization-bundle.js +1 -1
  150. package/esm/presentation/localization/bundles/nl-NL.localization-bundle.js +2 -2
  151. package/esm/presentation/localization/bundles/zh-Hans.localization-bundle.js +1 -1
  152. package/esm/presentation/topBar/menuButton/DefaultMenuButton.d.ts.map +1 -1
  153. package/esm/presentation/topBar/menuButton/DefaultMenuButton.js +9 -9
  154. package/esm/presentation/widget/insight/ViewModeDashboardInsight/Insight/DashboardInsight.js +1 -1
  155. package/esm/presentation/widget/insight/ViewModeDashboardInsight/InsightDrillDialog/DrillDialogInsight.js +1 -1
  156. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertTitle.d.ts +1 -1
  157. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertTitle.d.ts.map +1 -1
  158. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertTitle.js +1 -1
  159. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/CreateAlert.d.ts +2 -2
  160. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/CreateAlert.d.ts.map +1 -1
  161. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/EditAlert.d.ts +2 -2
  162. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/EditAlert.d.ts.map +1 -1
  163. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/EditAlert.js +23 -14
  164. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/EditAlertConfiguration.js +1 -1
  165. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useEditAlert.d.ts +2 -2
  166. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useEditAlert.d.ts.map +1 -1
  167. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useEditAlert.js +4 -4
  168. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useInsightWidgetAlerting.d.ts +3 -3
  169. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useInsightWidgetAlerting.js +5 -5
  170. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useSaveAlertToBackend.d.ts +0 -11
  171. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useSaveAlertToBackend.d.ts.map +1 -1
  172. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useSaveAlertToBackend.js +2 -17
  173. package/esm/presentation/widget/insight/configuration/InsightAlertsNew.js +3 -3
  174. package/esm/sdk-ui-dashboard.d.ts +20 -9
  175. package/package.json +20 -20
  176. package/styles/css/dashboard.css +7 -7
  177. package/styles/css/drillSelect.css +0 -49
  178. package/styles/css/drillSelect.css.map +1 -1
  179. package/styles/css/main.css +10 -61
  180. package/styles/css/main.css.map +1 -1
  181. package/styles/css/notifications_channels_dialog.css +7 -7
  182. package/styles/css/topBar.css +3 -5
  183. package/styles/css/topBar.css.map +1 -1
  184. package/styles/scss/drillSelect.scss +0 -65
  185. package/styles/scss/notifications_channels_dialog.scss +1 -1
  186. package/styles/scss/topBar.scss +3 -9
  187. package/esm/presentation/automations/_staging/alerting/AlertingDialog.d.ts.map +0 -1
  188. package/esm/presentation/automations/_staging/alerting/DefaultAlertingDialog/AlertingDialogHeader.d.ts.map +0 -1
  189. package/esm/presentation/automations/_staging/alerting/DefaultAlertingDialog/DefaultAlertingDialog.d.ts +0 -7
  190. package/esm/presentation/automations/_staging/alerting/DefaultAlertingDialog/DefaultAlertingDialog.d.ts.map +0 -1
  191. package/esm/presentation/automations/_staging/alerting/DefaultAlertingDialog/DefaultLoadingAlertingDialog.d.ts.map +0 -1
  192. package/esm/presentation/automations/_staging/alerting/DefaultAlertingDialog/components/AlertAttributeSelect.d.ts.map +0 -1
  193. package/esm/presentation/automations/_staging/alerting/DefaultAlertingDialog/components/AlertComparisonOperatorSelect.d.ts.map +0 -1
  194. package/esm/presentation/automations/_staging/alerting/DefaultAlertingDialog/components/AlertComparisonPeriodSelect.d.ts.map +0 -1
  195. package/esm/presentation/automations/_staging/alerting/DefaultAlertingDialog/components/AlertDeleteDialog.d.ts.map +0 -1
  196. package/esm/presentation/automations/_staging/alerting/DefaultAlertingDialog/components/AlertDestinationSelect.d.ts.map +0 -1
  197. package/esm/presentation/automations/_staging/alerting/DefaultAlertingDialog/components/AlertGranularitySelect.d.ts.map +0 -1
  198. package/esm/presentation/automations/_staging/alerting/DefaultAlertingDialog/components/AlertMeasureSelect.d.ts.map +0 -1
  199. package/esm/presentation/automations/_staging/alerting/DefaultAlertingDialog/components/AlertSensitivitySelect.d.ts.map +0 -1
  200. package/esm/presentation/automations/_staging/alerting/DefaultAlertingDialog/components/AlertThresholdInput.d.ts.map +0 -1
  201. package/esm/presentation/automations/_staging/alerting/DefaultAlertingDialog/components/AlertTriggerIntervalSelect.d.ts.map +0 -1
  202. package/esm/presentation/automations/_staging/alerting/DefaultAlertingDialog/components/AlertTriggerModeSelect.d.ts.map +0 -1
  203. package/esm/presentation/automations/_staging/alerting/DefaultAlertingDialog/constants.d.ts.map +0 -1
  204. package/esm/presentation/automations/_staging/alerting/DefaultAlertingDialog/hooks/useAlertValidation.d.ts.map +0 -1
  205. package/esm/presentation/automations/_staging/alerting/DefaultAlertingDialog/hooks/useAttributeValuesFromExecResults.d.ts.map +0 -1
  206. package/esm/presentation/automations/_staging/alerting/DefaultAlertingDialog/hooks/useEditAlert.d.ts.map +0 -1
  207. package/esm/presentation/automations/_staging/alerting/DefaultAlertingDialog/hooks/useOperators.d.ts.map +0 -1
  208. package/esm/presentation/automations/_staging/alerting/DefaultAlertingDialog/hooks/useThresholdValue.d.ts.map +0 -1
  209. package/esm/presentation/automations/_staging/alerting/DefaultAlertingDialog/messages.d.ts.map +0 -1
  210. package/esm/presentation/automations/_staging/alerting/DefaultAlertingDialog/utils/convertors.d.ts.map +0 -1
  211. package/esm/presentation/automations/_staging/alerting/DefaultAlertingDialog/utils/cron.d.ts.map +0 -1
  212. package/esm/presentation/automations/_staging/alerting/DefaultAlertingDialog/utils/getters.d.ts.map +0 -1
  213. package/esm/presentation/automations/_staging/alerting/DefaultAlertingDialog/utils/granularity.d.ts.map +0 -1
  214. package/esm/presentation/automations/_staging/alerting/DefaultAlertingDialog/utils/guards.d.ts.map +0 -1
  215. package/esm/presentation/automations/_staging/alerting/DefaultAlertingDialog/utils/items.d.ts.map +0 -1
  216. package/esm/presentation/automations/_staging/alerting/DefaultAlertingDialog/utils/responsive.d.ts.map +0 -1
  217. package/esm/presentation/automations/_staging/alerting/DefaultAlertingDialog/utils/threshold.d.ts.map +0 -1
  218. package/esm/presentation/automations/_staging/alerting/DefaultAlertingDialog/utils/transformation.d.ts.map +0 -1
  219. package/esm/presentation/automations/_staging/alerting/hooks/useGetSupportedMeasures.d.ts.map +0 -1
  220. package/esm/presentation/automations/_staging/alerting/types.d.ts.map +0 -1
  221. package/esm/presentation/dashboard/DashboardHeader/AlertingDialogProviderNew.d.ts +0 -2
  222. package/esm/presentation/dashboard/DashboardHeader/AlertingDialogProviderNew.d.ts.map +0 -1
  223. package/esm/presentation/dashboard/DashboardHeader/AlertingDialogProviderNew.js +0 -28
  224. /package/esm/presentation/automations/_staging/alerting/{DefaultAlertingDialog → DefaultAlertingManagementDialog}/hooks/useAlertValidation.d.ts +0 -0
  225. /package/esm/presentation/automations/{_staging/alerting → alerting}/AlertingDialog.d.ts +0 -0
  226. /package/esm/presentation/automations/{_staging/alerting → alerting}/DefaultAlertingDialog/AlertingDialogHeader.d.ts +0 -0
  227. /package/esm/presentation/automations/{_staging/alerting → alerting}/DefaultAlertingDialog/AlertingDialogHeader.js +0 -0
  228. /package/esm/presentation/automations/{_staging/alerting → alerting}/DefaultAlertingDialog/DefaultLoadingAlertingDialog.d.ts +0 -0
  229. /package/esm/presentation/automations/{_staging/alerting → alerting}/DefaultAlertingDialog/components/AlertAttributeSelect.d.ts +0 -0
  230. /package/esm/presentation/automations/{_staging/alerting → alerting}/DefaultAlertingDialog/components/AlertAttributeSelect.js +0 -0
  231. /package/esm/presentation/automations/{_staging/alerting → alerting}/DefaultAlertingDialog/components/AlertComparisonOperatorSelect.d.ts +0 -0
  232. /package/esm/presentation/automations/{_staging/alerting → alerting}/DefaultAlertingDialog/components/AlertComparisonOperatorSelect.js +0 -0
  233. /package/esm/presentation/automations/{_staging/alerting → alerting}/DefaultAlertingDialog/components/AlertComparisonPeriodSelect.d.ts +0 -0
  234. /package/esm/presentation/automations/{_staging/alerting → alerting}/DefaultAlertingDialog/components/AlertComparisonPeriodSelect.js +0 -0
  235. /package/esm/presentation/automations/{_staging/alerting → alerting}/DefaultAlertingDialog/components/AlertDeleteDialog.d.ts +0 -0
  236. /package/esm/presentation/automations/{_staging/alerting → alerting}/DefaultAlertingDialog/components/AlertDeleteDialog.js +0 -0
  237. /package/esm/presentation/automations/{_staging/alerting → alerting}/DefaultAlertingDialog/components/AlertDestinationSelect.d.ts +0 -0
  238. /package/esm/presentation/automations/{_staging/alerting → alerting}/DefaultAlertingDialog/components/AlertDestinationSelect.js +0 -0
  239. /package/esm/presentation/automations/{_staging/alerting → alerting}/DefaultAlertingDialog/components/AlertGranularitySelect.d.ts +0 -0
  240. /package/esm/presentation/automations/{_staging/alerting → alerting}/DefaultAlertingDialog/components/AlertGranularitySelect.js +0 -0
  241. /package/esm/presentation/automations/{_staging/alerting → alerting}/DefaultAlertingDialog/components/AlertMeasureSelect.d.ts +0 -0
  242. /package/esm/presentation/automations/{_staging/alerting → alerting}/DefaultAlertingDialog/components/AlertMeasureSelect.js +0 -0
  243. /package/esm/presentation/automations/{_staging/alerting → alerting}/DefaultAlertingDialog/components/AlertSensitivitySelect.d.ts +0 -0
  244. /package/esm/presentation/automations/{_staging/alerting → alerting}/DefaultAlertingDialog/components/AlertSensitivitySelect.js +0 -0
  245. /package/esm/presentation/automations/{_staging/alerting → alerting}/DefaultAlertingDialog/components/AlertThresholdInput.d.ts +0 -0
  246. /package/esm/presentation/automations/{_staging/alerting → alerting}/DefaultAlertingDialog/components/AlertThresholdInput.js +0 -0
  247. /package/esm/presentation/automations/{_staging/alerting → alerting}/DefaultAlertingDialog/components/AlertTriggerIntervalSelect.d.ts +0 -0
  248. /package/esm/presentation/automations/{_staging/alerting → alerting}/DefaultAlertingDialog/components/AlertTriggerIntervalSelect.js +0 -0
  249. /package/esm/presentation/automations/{_staging/alerting → alerting}/DefaultAlertingDialog/components/AlertTriggerModeSelect.d.ts +0 -0
  250. /package/esm/presentation/automations/{_staging/alerting → alerting}/DefaultAlertingDialog/components/AlertTriggerModeSelect.js +0 -0
  251. /package/esm/presentation/automations/{_staging/alerting → alerting}/DefaultAlertingDialog/constants.d.ts +0 -0
  252. /package/esm/presentation/automations/{_staging/alerting → alerting}/DefaultAlertingDialog/constants.js +0 -0
  253. /package/esm/presentation/automations/{_staging/alerting → alerting}/DefaultAlertingDialog/hooks/useOperators.d.ts +0 -0
  254. /package/esm/presentation/automations/{_staging/alerting → alerting}/DefaultAlertingDialog/hooks/useOperators.js +0 -0
  255. /package/esm/presentation/automations/{_staging/alerting → alerting}/DefaultAlertingDialog/hooks/useThresholdValue.d.ts +0 -0
  256. /package/esm/presentation/automations/{_staging/alerting → alerting}/DefaultAlertingDialog/hooks/useThresholdValue.js +0 -0
  257. /package/esm/presentation/automations/{_staging/alerting → alerting}/DefaultAlertingDialog/messages.d.ts +0 -0
  258. /package/esm/presentation/automations/{_staging/alerting → alerting}/DefaultAlertingDialog/messages.js +0 -0
  259. /package/esm/presentation/automations/{_staging/alerting → alerting}/DefaultAlertingDialog/utils/convertors.d.ts +0 -0
  260. /package/esm/presentation/automations/{_staging/alerting → alerting}/DefaultAlertingDialog/utils/convertors.js +0 -0
  261. /package/esm/presentation/automations/{_staging/alerting → alerting}/DefaultAlertingDialog/utils/cron.d.ts +0 -0
  262. /package/esm/presentation/automations/{_staging/alerting → alerting}/DefaultAlertingDialog/utils/cron.js +0 -0
  263. /package/esm/presentation/automations/{_staging/alerting → alerting}/DefaultAlertingDialog/utils/getters.d.ts +0 -0
  264. /package/esm/presentation/automations/{_staging/alerting → alerting}/DefaultAlertingDialog/utils/getters.js +0 -0
  265. /package/esm/presentation/automations/{_staging/alerting → alerting}/DefaultAlertingDialog/utils/granularity.d.ts +0 -0
  266. /package/esm/presentation/automations/{_staging/alerting → alerting}/DefaultAlertingDialog/utils/granularity.js +0 -0
  267. /package/esm/presentation/automations/{_staging/alerting → alerting}/DefaultAlertingDialog/utils/guards.d.ts +0 -0
  268. /package/esm/presentation/automations/{_staging/alerting → alerting}/DefaultAlertingDialog/utils/guards.js +0 -0
  269. /package/esm/presentation/automations/{_staging/alerting → alerting}/DefaultAlertingDialog/utils/items.d.ts +0 -0
  270. /package/esm/presentation/automations/{_staging/alerting → alerting}/DefaultAlertingDialog/utils/items.js +0 -0
  271. /package/esm/presentation/automations/{_staging/alerting → alerting}/DefaultAlertingDialog/utils/responsive.d.ts +0 -0
  272. /package/esm/presentation/automations/{_staging/alerting → alerting}/DefaultAlertingDialog/utils/responsive.js +0 -0
  273. /package/esm/presentation/automations/{_staging/alerting → alerting}/DefaultAlertingDialog/utils/threshold.d.ts +0 -0
  274. /package/esm/presentation/automations/{_staging/alerting → alerting}/DefaultAlertingDialog/utils/threshold.js +0 -0
  275. /package/esm/presentation/automations/{_staging/alerting → alerting}/DefaultAlertingDialog/utils/transformation.d.ts +0 -0
  276. /package/esm/presentation/automations/{_staging/alerting → alerting}/DefaultAlertingDialog/utils/transformation.js +0 -0
  277. /package/esm/presentation/automations/{_staging/alerting → alerting}/hooks/useGetSupportedMeasures.d.ts +0 -0
  278. /package/esm/presentation/automations/{_staging/alerting → alerting}/types.js +0 -0
@@ -5,23 +5,15 @@ import cx from "classnames";
5
5
  import { FormattedMessage, defineMessage, useIntl } from "react-intl";
6
6
  import { ValidationContextStore, convertError, createInvalidDatapoint, createInvalidNode, useValidationContextValue, } from "@gooddata/sdk-ui";
7
7
  import { Button, ConfirmDialogBase, ContentDivider, Hyperlink, Message, Overlay, OverlayController, OverlayControllerProvider, ScrollablePanel, UiIcon, UiIconButton, UiTooltip, useId, } from "@gooddata/sdk-ui-kit";
8
- import { useDashboardSelector } from "../../../../../model/react/DashboardStoreProvider.js";
9
- import { selectEnableAlertOncePerInterval, selectEnableAnomalyDetectionAlert, selectEnableAutomationManagement, selectExternalRecipient, selectIsWhiteLabeled, selectLocale, } from "../../../../../model/store/config/configSelectors.js";
10
- import { selectMaxAutomationRecipients } from "../../../../../model/store/entitlements/entitlementsSelectors.js";
11
- import { selectCanUseAiAssistant } from "../../../../../model/store/permissions/permissionsSelectors.js";
12
- import { selectIsAutomationDialogSecondaryTitleVisible } from "../../../../../model/store/topBar/topBarSelectors.js";
13
- import { selectExecutionTimestamp } from "../../../../../model/store/ui/uiSelectors.js";
14
- import { getWidgetTitle } from "../../../../../model/utils/dashboardItemUtils.js";
15
- import { DASHBOARD_DIALOG_OVERS_Z_INDEX } from "../../../../constants/zIndex.js";
16
- import { IntlWrapper } from "../../../../localization/IntlWrapper.js";
17
- import { useSaveAlertToBackend } from "../../../../widget/insight/configuration/InsightAlertConfig/hooks/useSaveAlertToBackend.js";
18
- import { useBuildAutomationsContext } from "../../../connectors/hooks/useBuildAutomationsContext.js";
19
- import { AutomationsContextProvider } from "../../../contexts/AutomationsContext.js";
20
- import { RecipientsSelect } from "../../../scheduledEmail/DefaultScheduledEmailDialog/components/RecipientsSelect/RecipientsSelect.js";
21
- import { ApplyCurrentFiltersConfirmDialog } from "../../../shared/automationFilters/components/ApplyLatestFiltersConfirmDialog.js";
22
- import { AutomationFiltersSelect } from "../../../shared/automationFilters/components/AutomationFiltersSelect.js";
23
- import { useValidateExistingAutomationFilters } from "../../../shared/automationFilters/hooks/useValidateExistingAutomationFilters.js";
24
- import { useAutomationFiltersSelect } from "../../../shared/automationFilters/useAutomationFiltersSelect.js";
8
+ import { DASHBOARD_DIALOG_OVERS_Z_INDEX } from "../../../constants/zIndex.js";
9
+ import { IntlWrapper } from "../../../localization/IntlWrapper.js";
10
+ import { useAlertingDialogContext } from "../../contexts/AlertingDialogContext.js";
11
+ import { useAutomationsContext } from "../../contexts/AutomationsContext.js";
12
+ import { RecipientsSelect } from "../../scheduledEmail/DefaultScheduledEmailDialog/components/RecipientsSelect/RecipientsSelect.js";
13
+ import { ApplyCurrentFiltersConfirmDialog } from "../../shared/automationFilters/components/ApplyLatestFiltersConfirmDialog.js";
14
+ import { AutomationFiltersSelect } from "../../shared/automationFilters/components/AutomationFiltersSelect.js";
15
+ import { useValidateExistingAutomationFilters } from "../../shared/automationFilters/hooks/useValidateExistingAutomationFilters.js";
16
+ import { useAutomationFiltersSelect } from "../../shared/automationFilters/useAutomationFiltersSelect.js";
25
17
  import { DeleteAlertConfirmDialog } from "../DefaultAlertingManagementDialog/components/DeleteAlertConfirmDialog.js";
26
18
  import { AlertingDialogHeader } from "./AlertingDialogHeader.js";
27
19
  import { AlertAttributeSelect } from "./components/AlertAttributeSelect.js";
@@ -48,13 +40,8 @@ const overlayController = OverlayController.getInstance(DASHBOARD_DIALOG_OVERS_Z
48
40
  export function AlertingDialogRenderer({ alertToEdit, users, usersError, notificationChannels, insight, widget, onCancel, onDeleteSuccess, onDeleteError, onError, onSuccess, onSaveError, onSaveSuccess, }) {
49
41
  const intl = useIntl();
50
42
  const dialogTitleRef = useRef(null);
51
- const isWhiteLabeled = useDashboardSelector(selectIsWhiteLabeled);
52
- const externalRecipientOverride = useDashboardSelector(selectExternalRecipient);
53
- const isSecondaryTitleVisible = useDashboardSelector(selectIsAutomationDialogSecondaryTitleVisible);
54
- const enableAutomationManagement = useDashboardSelector(selectEnableAutomationManagement);
55
- const enableAnomalyDetectionAlert = useDashboardSelector(selectEnableAnomalyDetectionAlert);
56
- const enableAiAssistant = useDashboardSelector(selectCanUseAiAssistant);
57
- const enableAlertOncePerInterval = useDashboardSelector(selectEnableAlertOncePerInterval);
43
+ const { isWhiteLabeled, isSecondaryTitleVisible, externalRecipient: externalRecipientOverride, features: { enableAlertOncePerInterval, enableAnomalyDetectionAlert, enableAutomationManagement, canUseAiAssistant: enableAiAssistant, }, } = useAutomationsContext();
44
+ const { widgetTitle, createAlert, saveAlert } = useAlertingDialogContext();
58
45
  const [alertToDelete, setAlertToDelete] = useState(null);
59
46
  const handleAlertDeleteSuccess = (alert) => {
60
47
  onDeleteSuccess?.(alert);
@@ -65,10 +52,11 @@ export function AlertingDialogRenderer({ alertToEdit, users, usersError, notific
65
52
  automationToEdit: alertToEdit,
66
53
  widget,
67
54
  });
68
- const { onTitleChange, onRecipientsChange, onFiltersChange, onApplyCurrentFilters, automationParameters, availableParameters, onParameterChange, onParameterDelete, onParameterAdd, dropStaleParameters, onMeasureChange, getAttributeValues, onAttributeChange, onComparisonOperatorChange, onRelativeOperatorChange, onAnomalyDetectionChange, onChange, onBlur, onComparisonTypeChange, onDestinationChange, onTriggerModeChange, onTriggerIntervalChange, selectedMeasure, canChangeMeasure, supportedMeasures, canManageAttributes, selectedAttribute, selectedValue, supportedAttributes, catalogAttributes, catalogDateDatasets, isResultLoading, selectedComparisonOperator, selectedRelativeOperator, selectedAiOperator, value, selectedComparator, selectedSensitivity, onSensitivityChange, selectedGranularity, onGranularityChange, canManageComparison, separators, defaultUser, originalAutomation, editedAutomation, allowOnlyLoggedUserRecipients, allowExternalRecipients, warningMessage, validationErrorMessage, isInvalidConnectionToInsight, isSubmitDisabled, isParentValid, thresholdErrorMessage, allowHourlyRecurrence, } = useEditAlert({
55
+ const { onTitleChange, onRecipientsChange, onFiltersChange, onApplyCurrentFilters, dropStaleParameters, automationParameters, availableParameters, onParameterChange, onParameterDelete, onParameterAdd, onMeasureChange, getAttributeValues, onAttributeChange, onComparisonOperatorChange, onRelativeOperatorChange, onAnomalyDetectionChange, onChange, onBlur, onComparisonTypeChange, onDestinationChange, onTriggerModeChange, onTriggerIntervalChange, selectedMeasure, canChangeMeasure, supportedMeasures, canManageAttributes, selectedAttribute, selectedValue, supportedAttributes, catalogAttributes, catalogDateDatasets, isResultLoading, selectedComparisonOperator, selectedRelativeOperator, selectedAiOperator, value, selectedComparator, selectedSensitivity, onSensitivityChange, selectedGranularity, onGranularityChange, canManageComparison, separators, defaultUser, originalAutomation, editedAutomation, allowOnlyLoggedUserRecipients, allowExternalRecipients, warningMessage, validationErrorMessage, isInvalidConnectionToInsight, isSubmitDisabled, isParentValid, thresholdErrorMessage, allowHourlyRecurrence, } = useEditAlert({
69
56
  insight,
70
57
  widget,
71
58
  alertToEdit,
59
+ users,
72
60
  editedAutomationFilters,
73
61
  maxAutomationsRecipients,
74
62
  availableFiltersAsVisibleFilters,
@@ -83,22 +71,9 @@ export function AlertingDialogRenderer({ alertToEdit, users, usersError, notific
83
71
  insight,
84
72
  });
85
73
  const [isApplyCurrentFiltersDialogOpen, setIsApplyCurrentFiltersDialogOpen] = useState(!isValid);
86
- const { isSavingAlert, handleCreateAlert, handleUpdateAlert } = useSaveAlertToBackend({
87
- onCreateSuccess: (alert) => {
88
- onSuccess?.(alert);
89
- },
90
- onCreateError: (err) => {
91
- onError?.(convertError(err));
92
- },
93
- onUpdateSuccess: (alert) => {
94
- onSaveSuccess?.(alert);
95
- },
96
- onUpdateError: (err) => {
97
- onSaveError?.(convertError(err));
98
- },
99
- });
100
- const handleSaveAlert = () => {
101
- if (!editedAutomation) {
74
+ const [isSavingAlert, setIsSavingAlert] = useState(false);
75
+ const handleSaveAlert = async () => {
76
+ if (!editedAutomation || isSavingAlert) {
102
77
  return;
103
78
  }
104
79
  const title = getDescription(intl, supportedMeasures, editedAutomation, separators);
@@ -108,11 +83,27 @@ export function AlertingDialogRenderer({ alertToEdit, users, usersError, notific
108
83
  ...editedAutomation,
109
84
  title,
110
85
  };
111
- if (alertToEdit) {
112
- handleUpdateAlert(sanitizedAutomation);
86
+ setIsSavingAlert(true);
87
+ try {
88
+ if (alertToEdit) {
89
+ const saved = await saveAlert(sanitizedAutomation);
90
+ onSaveSuccess?.(saved);
91
+ }
92
+ else {
93
+ const created = await createAlert(sanitizedAutomation);
94
+ onSuccess?.(created);
95
+ }
96
+ }
97
+ catch (err) {
98
+ if (alertToEdit) {
99
+ onSaveError?.(convertError(err));
100
+ }
101
+ else {
102
+ onError?.(convertError(err));
103
+ }
113
104
  }
114
- else {
115
- handleCreateAlert(sanitizedAutomation);
105
+ finally {
106
+ setIsSavingAlert(false);
116
107
  }
117
108
  };
118
109
  const validationContextValue = useValidationContextValue(createInvalidNode({ id: "AlertingDialog" }));
@@ -133,14 +124,14 @@ export function AlertingDialogRenderer({ alertToEdit, users, usersError, notific
133
124
  const titleElementId = useId();
134
125
  const { secondaryTitle, secondaryTitleIcon } = useMemo(() => {
135
126
  return {
136
- secondaryTitle: getWidgetTitle(widget),
127
+ secondaryTitle: widgetTitle,
137
128
  secondaryTitleIcon: (_jsx(UiIcon, { type: "visualization", size: 16, color: "complementary-6", accessibilityConfig: {
138
129
  ariaLabel: intl.formatMessage({
139
130
  id: "dialogs.automation.icon.ariaLabel.sourceVisualization",
140
131
  }),
141
132
  } })),
142
133
  };
143
- }, [widget, intl]);
134
+ }, [widgetTitle, intl]);
144
135
  if (isApplyCurrentFiltersDialogOpen) {
145
136
  return (_jsx(ApplyCurrentFiltersConfirmDialog, { automationType: "alert", onCancel: () => onCancel?.(), onEdit: () => {
146
137
  // Repair only what is actually stale: replace filters when they are invalid, and
@@ -167,7 +158,9 @@ export function AlertingDialogRenderer({ alertToEdit, users, usersError, notific
167
158
  ? intl.formatMessage({
168
159
  id: "dialogs.alert.save.executionTimestampMode",
169
160
  })
170
- : undefined, initialFocus: dialogTitleRef, submitOnEnterKey: false, onCancel: onCancel, onSubmit: handleSaveAlert, headline: undefined, headerLeftButtonRenderer: () => (_jsx(AlertingDialogHeader, { title: editedAutomation?.title ?? "", onChange: onTitleChange, onCancel: onCancel, placeholder: intl.formatMessage({
161
+ : undefined, initialFocus: dialogTitleRef, submitOnEnterKey: false, onCancel: onCancel, onSubmit: () => {
162
+ void handleSaveAlert();
163
+ }, headline: undefined, headerLeftButtonRenderer: () => (_jsx(AlertingDialogHeader, { title: editedAutomation?.title ?? "", onChange: onTitleChange, onCancel: onCancel, placeholder: intl.formatMessage({
171
164
  id: "dialogs.alert.title.placeholder",
172
165
  }), ref: dialogTitleRef, secondaryTitle: secondaryTitle, secondaryTitleIcon: secondaryTitleIcon, isSecondaryTitleVisible: isSecondaryTitleVisible ? isParentValid : undefined })), children: [
173
166
  _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: [
@@ -199,23 +192,32 @@ export function AlertingDialogRenderer({ alertToEdit, users, usersError, notific
199
192
  ] }) }) }) }), alertToDelete ? (_jsx(DeleteAlertConfirmDialog, { alert: alertToDelete, onCancel: () => setAlertToDelete(null), onSuccess: handleAlertDeleteSuccess, onError: onDeleteError })) : null] }));
200
193
  }
201
194
  /**
195
+ * Default implementation of the alerting create/edit dialog.
196
+ *
197
+ * This component is a pure consumer of `AutomationsContext` and `AlertingDialogContext`: it reads
198
+ * org/workspace data and per-dialog state from those contexts rather than from the dashboard store.
199
+ * It must therefore be rendered within an `AutomationsContextProvider` (and, for the create/edit
200
+ * flow, an `AlertingDialogContextProvider`). Inside a `Dashboard`, the alerting connector supplies
201
+ * both providers above the `AlertingDialogComponent` slot — so the default component, and any
202
+ * wholesale slot replacement, inherit the contexts automatically and require no extra wiring.
203
+ *
204
+ * The providers are intentionally hoisted above the slot rather than built inside this component:
205
+ * that is what lets a wholesale replacement receive the same contexts (see the Phase-2 boundary in
206
+ * `docs/tasks/26Q1 - Automation Dialog Separation.md`). Rendering this component outside those
207
+ * providers throws at runtime.
208
+ *
202
209
  * @alpha
203
210
  */
204
211
  export function DefaultAlertingDialog(props) {
205
212
  const { isLoading, onCancel, alertToEdit } = props;
213
+ const { locale } = useAutomationsContext();
206
214
  if (isLoading) {
207
215
  return _jsx(DefaultLoadingAlertingDialog, { onCancel: onCancel, alertToEdit: alertToEdit });
208
216
  }
209
- return _jsx(DefaultAlertingDialogBody, { ...props });
210
- }
211
- function DefaultAlertingDialogBody(props) {
212
- const locale = useDashboardSelector(selectLocale);
213
- const automationsContext = useBuildAutomationsContext();
214
- return (_jsx(AutomationsContextProvider, { value: automationsContext, children: _jsx(IntlWrapper, { locale: locale, children: _jsx(AlertingDialogRenderer, { ...props }) }) }));
217
+ return (_jsx(IntlWrapper, { locale: locale, children: _jsx(AlertingDialogRenderer, { ...props }) }));
215
218
  }
216
219
  function useDefaultAlertingDialogData() {
217
- const maxAutomationsRecipients = useDashboardSelector(selectMaxAutomationRecipients);
218
- const isExecutionTimestampMode = !!useDashboardSelector(selectExecutionTimestamp);
220
+ const { maxAutomationsRecipients, isExecutionTimestampMode } = useAutomationsContext();
219
221
  return {
220
222
  maxAutomationsRecipients,
221
223
  isExecutionTimestampMode,
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DefaultLoadingAlertingDialog.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/automations/alerting/DefaultAlertingDialog/DefaultLoadingAlertingDialog.tsx"],"names":[],"mappings":"AAcA,OAAO,EAAE,KAAK,oBAAoB,EAAE,MAAM,aAAa,CAAC;AAGxD,wBAAgB,4BAA4B,CAAC,EACzC,WAAW,EACX,QAAQ,EACX,EAAE,IAAI,CAAC,oBAAoB,EAAE,UAAU,GAAG,aAAa,CAAC,2CAkDxD"}
@@ -2,7 +2,7 @@ import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-run
2
2
  // (C) 2019-2026 GoodData Corporation
3
3
  import { useIntl } from "react-intl";
4
4
  import { ConfirmDialogBase, Overlay, OverlayController, OverlayControllerProvider, UiSkeleton, useId, } from "@gooddata/sdk-ui-kit";
5
- import { DASHBOARD_DIALOG_OVERS_Z_INDEX } from "../../../../constants/zIndex.js";
5
+ import { DASHBOARD_DIALOG_OVERS_Z_INDEX } from "../../../constants/zIndex.js";
6
6
  const overlayController = OverlayController.getInstance(DASHBOARD_DIALOG_OVERS_Z_INDEX);
7
7
  export function DefaultLoadingAlertingDialog({ alertToEdit, onCancel, }) {
8
8
  const intl = useIntl();
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AlertAttributeSelect.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/automations/alerting/DefaultAlertingDialog/components/AlertAttributeSelect.tsx"],"names":[],"mappings":"AAOA,OAAO,EACH,KAAK,wBAAwB,EAC7B,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,EAE3B,MAAM,qBAAqB,CAAC;AAa7B,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,gBAAgB,CAAC;AACrD,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,+CAA+C,CAAC;AAGpF,MAAM,WAAW,0BAA0B;IACvC,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,iBAAiB,EAAE,cAAc,GAAG,SAAS,CAAC;IAC9C,aAAa,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACzC,iBAAiB,EAAE,CAAC,SAAS,EAAE,cAAc,GAAG,SAAS,EAAE,KAAK,EAAE,cAAc,GAAG,SAAS,KAAK,IAAI,CAAC;IACtG,UAAU,EAAE,cAAc,EAAE,CAAC;IAC7B,iBAAiB,EAAE,iBAAiB,EAAE,CAAC;IACvC,mBAAmB,EAAE,mBAAmB,EAAE,CAAC;IAC3C,kBAAkB,EAAE,CAAC,IAAI,EAAE,wBAAwB,KAAK,cAAc,EAAE,CAAC;IACzE,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,mBAAmB,CAAC,EAAE,OAAO,CAAC;CACjC;AA+HD,wBAAgB,oBAAoB,CAAC,EACjC,EAAE,EACF,QAAQ,EACR,iBAAiB,EAAE,qBAAqB,EACxC,kBAAkB,EAClB,eAAe,EACf,aAAa,EACb,iBAAiB,EACjB,UAAU,EACV,iBAAiB,EACjB,mBAAmB,EACnB,SAAgB,EAChB,mBAAmB,EACtB,EAAE,0BAA0B,kDA+M5B"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AlertComparisonOperatorSelect.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/automations/alerting/DefaultAlertingDialog/components/AlertComparisonOperatorSelect.tsx"],"names":[],"mappings":"AAOA,OAAO,EACH,KAAK,wBAAwB,EAC7B,KAAK,gCAAgC,EACrC,KAAK,sBAAsB,EAC9B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACjE,OAAO,EAGH,KAAK,mBAAmB,EAG3B,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAgBlD,MAAM,WAAW,mCAAmC;IAChD,OAAO,EAAE,WAAW,GAAG,SAAS,CAAC;IACjC,2BAA2B,EAAE,OAAO,CAAC;IACrC,0BAA0B,EAAE,wBAAwB,GAAG,SAAS,CAAC;IACjE,wBAAwB,EAAE,CAAC,sBAAsB,EAAE,gCAAgC,CAAC,GAAG,SAAS,CAAC;IACjG,kBAAkB,EAAE,GAAG,OAAO,WAAW,IAAI,OAAO,YAAY,CAAC,iBAAiB,EAAE,GAAG,SAAS,CAAC;IACjG,0BAA0B,EAAE,CAAC,MAAM,EAAE,WAAW,EAAE,kBAAkB,EAAE,wBAAwB,KAAK,IAAI,CAAC;IACxG,wBAAwB,EAAE,CAAC,MAAM,EAAE,WAAW,KAAK,IAAI,CAAC;IACxD,wBAAwB,EAAE,CACtB,MAAM,EAAE,WAAW,EACnB,gBAAgB,EAAE,sBAAsB,EACxC,0BAA0B,EAAE,gCAAgC,KAC3D,IAAI,CAAC;IACV,mBAAmB,CAAC,EAAE,mBAAmB,CAAC;IAC1C,EAAE,EAAE,MAAM,CAAC;IACX,mBAAmB,CAAC,EAAE,OAAO,CAAC;CACjC;AAED,wBAAgB,6BAA6B,CAAC,KAAK,EAAE,mCAAmC,kDA6MvF"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AlertComparisonPeriodSelect.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/automations/alerting/DefaultAlertingDialog/components/AlertComparisonPeriodSelect.tsx"],"names":[],"mappings":"AAOA,OAAO,EACH,KAAK,wBAAwB,EAE7B,KAAK,yBAAyB,EACjC,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAGH,KAAK,mBAAmB,EAG3B,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EAAE,KAAK,WAAW,EAA8B,yBAAyB,EAAE,MAAM,gBAAgB,CAAC;AAIzG,MAAM,WAAW,iCAAiC;IAC9C,KAAK,EAAE,yBAAyB,GAAG,SAAS,CAAC;IAC7C,OAAO,EAAE,WAAW,GAAG,SAAS,CAAC;IACjC,mBAAmB,CAAC,EAAE,mBAAmB,CAAC;IAC1C,kBAAkB,CAAC,EAAE,yBAAyB,CAAC;IAC/C,mBAAmB,CAAC,EAAE,wBAAwB,CAAC;IAC/C,kBAAkB,EAAE,CAChB,UAAU,EAAE,yBAAyB,EACrC,WAAW,CAAC,EAAE,wBAAwB,KACrC,IAAI,CAAC;IACV,mBAAmB,EAAE,OAAO,CAAC;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,mBAAmB,CAAC,EAAE,OAAO,CAAC;CACjC;AAED,wBAAgB,2BAA2B,CAAC,EACxC,KAAK,EACL,OAAO,EACP,mBAAmB,EACnB,kBAAkB,EAClB,mBAAmB,EACnB,mBAAmB,EACnB,kBAAkB,EAClB,EAAE,EACF,mBAAmB,EACtB,EAAE,iCAAiC,kDAsKnC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AlertDeleteDialog.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/automations/alerting/DefaultAlertingDialog/components/AlertDeleteDialog.tsx"],"names":[],"mappings":"AAQA,wBAAgB,iBAAiB,CAAC,EAC9B,KAAK,EACL,QAAQ,EACR,QAAQ,EACX,EAAE;IACC,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,QAAQ,EAAE,MAAM,IAAI,CAAC;CACxB,2CAuBA"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AlertDestinationSelect.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/automations/alerting/DefaultAlertingDialog/components/AlertDestinationSelect.tsx"],"names":[],"mappings":"AAOA,OAAO,EACH,KAAK,8BAA8B,EACnC,KAAK,kCAAkC,EAC1C,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAGH,KAAK,mBAAmB,EAG3B,MAAM,sBAAsB,CAAC;AAE9B,MAAM,WAAW,4BAA4B;IACzC,EAAE,EAAE,MAAM,CAAC;IACX,mBAAmB,EAAE,MAAM,GAAG,SAAS,CAAC;IACxC,mBAAmB,EAAE,CAAC,aAAa,EAAE,MAAM,KAAK,IAAI,CAAC;IACrD,YAAY,EAAE,8BAA8B,EAAE,GAAG,kCAAkC,EAAE,CAAC;IACtF,mBAAmB,CAAC,EAAE,mBAAmB,CAAC;IAC1C,mBAAmB,CAAC,EAAE,OAAO,CAAC;CACjC;AAED,wBAAgB,sBAAsB,CAAC,EACnC,EAAE,EACF,mBAAmB,EACnB,mBAAmB,EACnB,YAAY,EACZ,mBAAmB,EACnB,mBAAmB,EACtB,EAAE,4BAA4B,2CA2E9B"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AlertGranularitySelect.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/automations/alerting/DefaultAlertingDialog/components/AlertGranularitySelect.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,KAAK,iCAAiC,EAAE,MAAM,qBAAqB,CAAC;AAC7E,OAAO,EAIH,KAAK,mBAAmB,EAG3B,MAAM,sBAAsB,CAAC;AAkC9B,MAAM,WAAW,4BAA4B;IACzC,EAAE,EAAE,MAAM,CAAC;IACX,qBAAqB,EAAE,OAAO,CAAC;IAC/B,mBAAmB,EAAE,iCAAiC,GAAG,SAAS,CAAC;IACnE,mBAAmB,EAAE,CAAC,WAAW,EAAE,iCAAiC,KAAK,IAAI,CAAC;IAC9E,mBAAmB,CAAC,EAAE,mBAAmB,CAAC;IAC1C,mBAAmB,CAAC,EAAE,OAAO,CAAC;CACjC;AAED,wBAAgB,sBAAsB,CAAC,EACnC,EAAE,EACF,qBAAqB,EACrB,mBAA4B,EAC5B,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACtB,EAAE,4BAA4B,2CA6E9B"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AlertMeasureSelect.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/automations/alerting/DefaultAlertingDialog/components/AlertMeasureSelect.tsx"],"names":[],"mappings":"AAOA,OAAO,EAGH,KAAK,mBAAmB,EAG3B,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAGlD,MAAM,WAAW,uBAAuB;IACpC,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,eAAe,EAAE,WAAW,GAAG,SAAS,CAAC;IACzC,eAAe,EAAE,CAAC,OAAO,EAAE,WAAW,KAAK,IAAI,CAAC;IAChD,QAAQ,EAAE,WAAW,EAAE,CAAC;IACxB,mBAAmB,CAAC,EAAE,mBAAmB,CAAC;IAC1C,mBAAmB,CAAC,EAAE,OAAO,CAAC;CACjC;AAID,wBAAgB,kBAAkB,CAAC,EAC/B,EAAE,EACF,QAAQ,EACR,eAAe,EACf,eAAe,EACf,QAAQ,EACR,mBAAmB,EACnB,mBAAmB,EACtB,EAAE,uBAAuB,2CA8EzB"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AlertSensitivitySelect.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/automations/alerting/DefaultAlertingDialog/components/AlertSensitivitySelect.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,KAAK,iCAAiC,EAAE,MAAM,qBAAqB,CAAC;AAC7E,OAAO,EAIH,KAAK,mBAAmB,EAG3B,MAAM,sBAAsB,CAAC;AAsB9B,MAAM,WAAW,4BAA4B;IACzC,EAAE,EAAE,MAAM,CAAC;IACX,mBAAmB,EAAE,iCAAiC,GAAG,SAAS,CAAC;IACnE,mBAAmB,EAAE,CAAC,WAAW,EAAE,iCAAiC,KAAK,IAAI,CAAC;IAC9E,mBAAmB,CAAC,EAAE,mBAAmB,CAAC;IAC1C,mBAAmB,CAAC,EAAE,OAAO,CAAC;CACjC;AAED,wBAAgB,sBAAsB,CAAC,EACnC,EAAE,EACF,mBAA8B,EAC9B,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACtB,EAAE,4BAA4B,2CAuE9B"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AlertThresholdInput.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/automations/alerting/DefaultAlertingDialog/components/AlertThresholdInput.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,OAAO,CAAC;AAMxC,UAAU,yBAAyB;IAC/B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,KAAK,IAAI,CAAC;IAC3C,MAAM,EAAE,CAAC,KAAK,EAAE,UAAU,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAC;IACtD,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,YAAY,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,wBAAgB,mBAAmB,CAAC,EAChC,EAAE,EACF,KAAK,EACL,QAAQ,EACR,MAAM,EACN,MAAM,EACN,YAAY,EACf,EAAE,yBAAyB,2CAmC3B"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AlertTriggerIntervalSelect.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/automations/alerting/DefaultAlertingDialog/components/AlertTriggerIntervalSelect.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,KAAK,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AACjE,OAAO,EAIH,KAAK,mBAAmB,EAG3B,MAAM,sBAAsB,CAAC;AA8B9B,MAAM,WAAW,gCAAgC;IAC7C,EAAE,EAAE,MAAM,CAAC;IACX,uBAAuB,EAAE,qBAAqB,CAAC;IAC/C,uBAAuB,EAAE,CAAC,WAAW,EAAE,qBAAqB,KAAK,IAAI,CAAC;IACtE,mBAAmB,CAAC,EAAE,mBAAmB,CAAC;IAC1C,mBAAmB,CAAC,EAAE,OAAO,CAAC;CACjC;AAED,wBAAgB,0BAA0B,CAAC,EACvC,EAAE,EACF,uBAAuB,EACvB,uBAAuB,EACvB,mBAAmB,EACnB,mBAAmB,EACtB,EAAE,gCAAgC,2CAqElC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AlertTriggerModeSelect.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/automations/alerting/DefaultAlertingDialog/components/AlertTriggerModeSelect.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAC7D,OAAO,EAIH,KAAK,mBAAmB,EAG3B,MAAM,sBAAsB,CAAC;AAsB9B,MAAM,WAAW,4BAA4B;IACzC,EAAE,EAAE,MAAM,CAAC;IACX,mBAAmB,EAAE,iBAAiB,CAAC;IACvC,mBAAmB,EAAE,CAAC,WAAW,EAAE,iBAAiB,KAAK,IAAI,CAAC;IAC9D,mBAAmB,CAAC,EAAE,mBAAmB,CAAC;IAC1C,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,0BAA0B,CAAC,EAAE,OAAO,CAAC;CACxC;AAED,wBAAgB,sBAAsB,CAAC,EACnC,EAAE,EACF,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,0BAA0B,EAC7B,EAAE,4BAA4B,2CAsE9B"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/automations/alerting/DefaultAlertingDialog/constants.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,wBAAwB,EAAE,MAAM,qBAAqB,CAAC;AAQpE,OAAO,EAAE,KAAK,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AAIrE,MAAM,MAAM,gBAAgB,CAAC,CAAC,GAAG,wBAAwB,IAAI;IACzD,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,EAAE,CAAC,CAAC;IACN,IAAI,CAAC,EAAE,wBAAwB,CAAC;IAChC,IAAI,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,eAAO,MAAM,2BAA2B,EAAE,gBAAgB,EAqBzD,CAAC;AACF,eAAO,MAAM,gCAAgC,EAAE,gBAAgB,CAAC,MAAM,CAAC,EAgBtE,CAAC;AACF,eAAO,MAAM,oCAAoC,EAAE,gBAAgB,CAAC,MAAM,CAAC,EAgB1E,CAAC;AACF,eAAO,MAAM,kCAAkC,EAAE,gBAAgB,CAAC,MAAM,CAAC,EAMxE,CAAC;AAEF,eAAO,MAAM,SAAS,4BAKrB,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,gBAAgB,CAAC,MAAM,CAMlD,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,gBAAgB,CAAC,MAAM,CAMtD,CAAC;AAEF,eAAO,MAAM,wBAAwB,EAAE,gBAAgB,CAAC,MAAM,CAM7D,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,gBAAgB,CAAC,MAAM,CAK9C,CAAC;AAEF,eAAO,MAAM,oBAAoB,KAAK,CAAC;AACvC,eAAO,MAAM,8BAA8B,KAAK,CAAC;AACjD,eAAO,MAAM,sBAAsB,aAAa,CAAC;AACjD,eAAO,MAAM,kBAAkB,oBAAoB,CAAC"}
@@ -0,0 +1,7 @@
1
+ import type { IAutomationMetadataObject, ICatalogDateDataset, IInsight, IWidget } from "@gooddata/sdk-model";
2
+ export type AlertInvalidityReason = "missingMetric" | "missingWidget";
3
+ export declare function useAlertValidation(alert: IAutomationMetadataObject | undefined, widget: IWidget | undefined, insight: IInsight | undefined, catalogDateDatasets: ICatalogDateDataset[], isNewAlert?: boolean, canManageComparison?: boolean): {
4
+ isValid: boolean;
5
+ invalidityReason: AlertInvalidityReason | undefined;
6
+ };
7
+ //# sourceMappingURL=useAlertValidation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useAlertValidation.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/automations/alerting/DefaultAlertingDialog/hooks/useAlertValidation.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,yBAAyB,EAAE,mBAAmB,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAK7G,MAAM,MAAM,qBAAqB,GAAG,eAAe,GAAG,eAAe,CAAC;AAEtE,wBAAgB,kBAAkB,CAC9B,KAAK,EAAE,yBAAyB,GAAG,SAAS,EAC5C,MAAM,EAAE,OAAO,GAAG,SAAS,EAC3B,OAAO,EAAE,QAAQ,GAAG,SAAS,EAC7B,mBAAmB,EAAE,mBAAmB,EAAE,EAC1C,UAAU,CAAC,EAAE,OAAO,EACpB,mBAAmB,GAAE,OAAe,GACrC;IAAE,OAAO,EAAE,OAAO,CAAC;IAAC,gBAAgB,EAAE,qBAAqB,GAAG,SAAS,CAAA;CAAE,CAmB3E"}
@@ -0,0 +1,16 @@
1
+ // (C) 2024-2026 GoodData Corporation
2
+ import { getAlertMeasure } from "../utils/getters.js";
3
+ import { getSupportedInsightMeasuresByInsight } from "../utils/items.js";
4
+ export function useAlertValidation(alert, widget, insight, catalogDateDatasets, isNewAlert, canManageComparison = false) {
5
+ const supportedMeasures = getSupportedInsightMeasuresByInsight(insight, catalogDateDatasets, canManageComparison, alert);
6
+ const selectedMeasureExists = alert ? getAlertMeasure(supportedMeasures, alert.alert) : undefined;
7
+ const isValid = isNewAlert || Boolean(!!widget && selectedMeasureExists);
8
+ let invalidityReason = undefined;
9
+ if (!widget) {
10
+ invalidityReason = "missingWidget";
11
+ }
12
+ else if (!selectedMeasureExists) {
13
+ invalidityReason = "missingMetric";
14
+ }
15
+ return { isValid, invalidityReason };
16
+ }
@@ -1,5 +1,9 @@
1
+ import type { IExecutionResult } from "@gooddata/sdk-backend-spi";
1
2
  import { type IAttribute, type IAttributeMetadataObject, type IMeasure } from "@gooddata/sdk-model";
2
- import type { IExecutionResultEnvelope } from "../../../../../../model/store/executionResults/types.js";
3
+ type IExecutionResultEnvelope = {
4
+ isLoading?: boolean;
5
+ executionResult?: IExecutionResult;
6
+ };
3
7
  export type AttributeValue = {
4
8
  title: string;
5
9
  value: string;
@@ -10,4 +14,5 @@ export declare function useAttributeValuesFromExecResults(execResult: IExecution
10
14
  getAttributeValues: (attr: IAttributeMetadataObject) => AttributeValue[];
11
15
  getMetricValue: (measure?: IMeasure<import("@gooddata/sdk-model").IMeasureDefinitionType> | undefined, attr?: IAttribute | undefined, value?: string | null | undefined) => number | undefined;
12
16
  };
17
+ export {};
13
18
  //# sourceMappingURL=useAttributeValuesFromExecResults.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useAttributeValuesFromExecResults.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/automations/alerting/DefaultAlertingDialog/hooks/useAttributeValuesFromExecResults.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAClE,OAAO,EACH,KAAK,UAAU,EAEf,KAAK,wBAAwB,EAC7B,KAAK,QAAQ,EAGhB,MAAM,qBAAqB,CAAC;AAG7B,KAAK,wBAAwB,GAAG;IAAE,SAAS,CAAC,EAAE,OAAO,CAAC;IAAC,eAAe,CAAC,EAAE,gBAAgB,CAAA;CAAE,CAAC;AAE5F,MAAM,MAAM,cAAc,GAAG;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,wBAAgB,iCAAiC,CAAC,UAAU,EAAE,wBAAwB,GAAG,SAAS;;;;EAyEjG"}
@@ -3,15 +3,41 @@ import { useCallback, useEffect, useState } from "react";
3
3
  import { areObjRefsEqual, isResultAttributeHeader, } from "@gooddata/sdk-model";
4
4
  import { DataViewFacade } from "@gooddata/sdk-ui";
5
5
  export function useAttributeValuesFromExecResults(execResult) {
6
- const [isResultLoading, setIsResultLoading] = useState(!execResult || execResult.isLoading);
6
+ // Derive loading from the envelope's own isLoading flag, not from the
7
+ // presence of executionResult: an errored execution has no executionResult
8
+ // but is no longer loading, and there is no readAll() promise to clear the
9
+ // flag, so keying off executionResult would leave it stuck true forever.
10
+ const [isResultLoading, setIsResultLoading] = useState(!execResult || !!execResult.isLoading);
7
11
  const [dataView, setDataView] = useState(null);
8
12
  useEffect(() => {
9
- if (execResult) {
10
- void execResult.executionResult?.readAll().then((data) => {
11
- setDataView(DataViewFacade.for(data));
12
- setIsResultLoading(false);
13
+ let cancelled = false;
14
+ if (execResult?.executionResult) {
15
+ setIsResultLoading(true);
16
+ setDataView(null);
17
+ void execResult.executionResult
18
+ .readAll()
19
+ .then((data) => {
20
+ if (!cancelled) {
21
+ setDataView(DataViewFacade.for(data));
22
+ setIsResultLoading(false);
23
+ }
24
+ })
25
+ .catch(() => {
26
+ if (!cancelled) {
27
+ setIsResultLoading(false);
28
+ }
13
29
  });
14
30
  }
31
+ else {
32
+ // No execution result to read (terminal error, or none yet): reflect
33
+ // the envelope's own loading flag so an errored execution doesn't stay
34
+ // stuck loading.
35
+ setDataView(null);
36
+ setIsResultLoading(!execResult || !!execResult.isLoading);
37
+ }
38
+ return () => {
39
+ cancelled = true;
40
+ };
15
41
  }, [execResult]);
16
42
  const getAttributeValues = useCallback((attr) => {
17
43
  const header = findAttributeHeader(dataView, attr);
@@ -1,11 +1,11 @@
1
- import { type DateAttributeGranularity, type FilterContextItem, type IAlertAnomalyDetectionGranularity, type IAlertAnomalyDetectionSensitivity, type IAlertComparisonOperator, type IAlertRelativeArithmeticOperator, type IAlertRelativeOperator, type IAlertTriggerInterval, type IAlertTriggerMode, type IAutomationMetadataObject, type IAutomationMetadataObjectDefinition, type IAutomationRecipient, type IAutomationVisibleFilter, type IInsight, type INotificationChannelIdentifier, type INotificationChannelMetadataObject } from "@gooddata/sdk-model";
2
- import type { ExtendedDashboardWidget } from "../../../../../../model/types/layoutTypes.js";
1
+ import { type DateAttributeGranularity, type FilterContextItem, type IAlertAnomalyDetectionGranularity, type IAlertAnomalyDetectionSensitivity, type IAlertComparisonOperator, type IAlertRelativeArithmeticOperator, type IAlertRelativeOperator, type IAlertTriggerInterval, type IAlertTriggerMode, type IAutomationMetadataObject, type IAutomationMetadataObjectDefinition, type IAutomationRecipient, type IAutomationVisibleFilter, type IInsight, type INotificationChannelIdentifier, type INotificationChannelMetadataObject, type IWidget, type IWorkspaceUser } from "@gooddata/sdk-model";
3
2
  import { type AlertAttribute, type AlertMetric, type AlertMetricComparatorType } from "../../types.js";
4
3
  export interface IUseEditAlertProps {
5
4
  alertToEdit?: IAutomationMetadataObject;
6
5
  notificationChannels: INotificationChannelIdentifier[] | INotificationChannelMetadataObject[];
7
6
  maxAutomationsRecipients: number;
8
- widget?: ExtendedDashboardWidget;
7
+ users: IWorkspaceUser[];
8
+ widget?: IWidget;
9
9
  insight?: IInsight;
10
10
  editedAutomationFilters?: FilterContextItem[];
11
11
  setEditedAutomationFilters: (filters: FilterContextItem[]) => void;
@@ -13,13 +13,13 @@ export interface IUseEditAlertProps {
13
13
  filtersForNewAutomation: FilterContextItem[];
14
14
  externalRecipientOverride?: string;
15
15
  }
16
- export declare function useEditAlert({ alertToEdit, notificationChannels, insight, widget, editedAutomationFilters, maxAutomationsRecipients, setEditedAutomationFilters, availableFiltersAsVisibleFilters, filtersForNewAutomation, externalRecipientOverride }: IUseEditAlertProps): {
16
+ export declare function useEditAlert({ alertToEdit, notificationChannels, insight, widget, users, editedAutomationFilters, maxAutomationsRecipients, setEditedAutomationFilters, availableFiltersAsVisibleFilters, filtersForNewAutomation, externalRecipientOverride }: IUseEditAlertProps): {
17
17
  onTitleChange: (value: string, isValid: boolean) => void;
18
18
  onRecipientsChange: (updatedRecipients: IAutomationRecipient[]) => void;
19
19
  onFiltersChange: (filters: FilterContextItem[]) => void;
20
20
  onApplyCurrentFilters: () => void;
21
- automationParameters: import("../../../../shared/automationFilters/automationParameters.js").IAutomationParameter[];
22
- availableParameters: import("../../../../shared/automationFilters/automationParameters.js").IAutomationParameter[];
21
+ automationParameters: import("../../../shared/automationFilters/automationParameters.js").IAutomationParameter[];
22
+ availableParameters: import("../../../shared/automationFilters/automationParameters.js").IAutomationParameter[];
23
23
  onParameterChange: (ref: import("@gooddata/sdk-model").IdentifierRef, value: number) => void;
24
24
  onParameterDelete: (ref: import("@gooddata/sdk-model").IdentifierRef) => void;
25
25
  onParameterAdd: (ref: import("@gooddata/sdk-model").IdentifierRef) => void;
@@ -63,7 +63,7 @@ export declare function useEditAlert({ alertToEdit, notificationChannels, insigh
63
63
  canManageComparison: boolean;
64
64
  separators: import("@gooddata/sdk-model").ISeparators;
65
65
  warningMessage: string | undefined;
66
- defaultUser: import("@gooddata/sdk-model").IWorkspaceUser;
66
+ defaultUser: IWorkspaceUser;
67
67
  originalAutomation: IAutomationMetadataObjectDefinition | undefined;
68
68
  editedAutomation: IAutomationMetadataObjectDefinition | undefined;
69
69
  allowOnlyLoggedUserRecipients: boolean;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useEditAlert.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/automations/alerting/DefaultAlertingDialog/hooks/useEditAlert.ts"],"names":[],"mappings":"AAOA,OAAO,EACH,KAAK,wBAAwB,EAC7B,KAAK,iBAAiB,EACtB,KAAK,iCAAiC,EACtC,KAAK,iCAAiC,EACtC,KAAK,wBAAwB,EAC7B,KAAK,gCAAgC,EACrC,KAAK,sBAAsB,EAC3B,KAAK,qBAAqB,EAC1B,KAAK,iBAAiB,EACtB,KAAK,yBAAyB,EAC9B,KAAK,mCAAmC,EACxC,KAAK,oBAAoB,EACzB,KAAK,wBAAwB,EAC7B,KAAK,QAAQ,EAEb,KAAK,8BAA8B,EACnC,KAAK,kCAAkC,EACvC,KAAK,OAAO,EACZ,KAAK,cAAc,EAItB,MAAM,qBAAqB,CAAC;AAkB7B,OAAO,EAAE,KAAK,cAAc,EAAE,KAAK,WAAW,EAAE,KAAK,yBAAyB,EAAE,MAAM,gBAAgB,CAAC;AAkCvG,MAAM,WAAW,kBAAkB;IAC/B,WAAW,CAAC,EAAE,yBAAyB,CAAC;IACxC,oBAAoB,EAAE,8BAA8B,EAAE,GAAG,kCAAkC,EAAE,CAAC;IAC9F,wBAAwB,EAAE,MAAM,CAAC;IACjC,KAAK,EAAE,cAAc,EAAE,CAAC;IACxB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,OAAO,CAAC,EAAE,QAAQ,CAAC;IACnB,uBAAuB,CAAC,EAAE,iBAAiB,EAAE,CAAC;IAE9C,0BAA0B,EAAE,CAAC,OAAO,EAAE,iBAAiB,EAAE,KAAK,IAAI,CAAC;IACnE,gCAAgC,CAAC,EAAE,wBAAwB,EAAE,GAAG,SAAS,CAAC;IAC1E,uBAAuB,EAAE,iBAAiB,EAAE,CAAC;IAC7C,yBAAyB,CAAC,EAAE,MAAM,CAAC;CACtC;AAED,wBAAgB,YAAY,CAAC,EACzB,WAAW,EACX,oBAAoB,EACpB,OAAO,EACP,MAAM,EACN,KAAK,EACL,uBAAuB,EACvB,wBAAwB,EACxB,0BAA0B,EAC1B,gCAAgC,EAChC,uBAAuB,EACvB,yBAAyB,EAC5B,EAAE,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmoBpB"}
@@ -4,22 +4,13 @@ import { isEqual } from "lodash-es";
4
4
  import { useIntl } from "react-intl";
5
5
  import { isAutomationExternalUserRecipient, isAutomationUnknownUserRecipient, isAutomationUserRecipient, } from "@gooddata/sdk-model";
6
6
  import { fillMissingTitles } from "@gooddata/sdk-ui";
7
- import { convertCurrentUserToAutomationRecipient, convertCurrentUserToWorkspaceUser, convertExternalRecipientToAutomationRecipient, } from "../../../../../../_staging/automation/index.js";
8
- import { useDashboardSelector } from "../../../../../../model/react/DashboardStoreProvider.js";
9
- import { selectCatalogAttributes, selectCatalogDateDatasets, } from "../../../../../../model/store/catalog/catalogSelectors.js";
10
- import { selectEnableAlertAttributes, selectEnableAlertOncePerInterval, selectEnableComparisonInAlerting, selectEnableExternalRecipients, selectLocale, selectSeparators, selectSettings, selectTimezone, selectWeekStart, } from "../../../../../../model/store/config/configSelectors.js";
11
- import { selectEntitlementMinimumRecurrenceMinutes } from "../../../../../../model/store/entitlements/entitlementsSelectors.js";
12
- import { selectExecutionResultByRef } from "../../../../../../model/store/executionResults/executionResultsSelectors.js";
13
- import { selectAutomationCommonDateFilterId, selectDashboardHiddenFilters, } from "../../../../../../model/store/filtering/dashboardFilterSelectors.js";
14
- import { selectDashboardDescriptor, selectDashboardId, } from "../../../../../../model/store/meta/metaSelectors.js";
15
- import { selectWidgetLocalIdToTabIdMap } from "../../../../../../model/store/tabs/layout/layoutSelectors.js";
16
- import { selectEffectiveParameterValuesForWidget } from "../../../../../../model/store/tabs/parameters/parametersSelectors.js";
17
- import { selectCurrentUser } from "../../../../../../model/store/user/userSelectors.js";
18
- import { selectUsers } from "../../../../../../model/store/users/usersSelectors.js";
19
- import { isEmail } from "../../../../scheduledEmail/utils/validate.js";
20
- import { setAlertExecutionParameters } from "../../../../shared/automationFilters/automationParameters.js";
21
- import { useAutomationAlertParameters } from "../../../../shared/automationFilters/useAutomationAlertParameters.js";
22
- import { getAppliedWidgetFilters, getVisibleFiltersByFilters, resolveMvfDimensionalityLocalRefs, } from "../../../../shared/automationFilters/utils.js";
7
+ import { useAlertingDialogContext } from "../../../contexts/AlertingDialogContext.js";
8
+ import { useAutomationsContext } from "../../../contexts/AutomationsContext.js";
9
+ import { isEmail } from "../../../scheduledEmail/utils/validate.js";
10
+ import { setAlertExecutionParameters } from "../../../shared/automationFilters/automationParameters.js";
11
+ import { useAutomationAlertParameters } from "../../../shared/automationFilters/useAutomationAlertParameters.js";
12
+ import { getAppliedWidgetFilters, getVisibleFiltersByFilters, resolveMvfDimensionalityLocalRefs, } from "../../../shared/automationFilters/utils.js";
13
+ import { convertCurrentUserToAutomationRecipient, convertCurrentUserToWorkspaceUser, convertExternalRecipientToAutomationRecipient, } from "../../../shared/utils/automationUtils.js";
23
14
  import { createDefaultAlert } from "../utils/convertors.js";
24
15
  import { getAlertAiOperator, getAlertAttribute, getAlertCompareOperator, getAlertComparison, getAlertGranularity, getAlertMeasure, getAlertRelativeOperator, getAlertSensitivity, getMeasureFormatsFromExecution, } from "../utils/getters.js";
25
16
  import { isAlertValueDefined } from "../utils/guards.js";
@@ -28,33 +19,12 @@ import { transformAlertByAnomalyDetection, transformAlertByAttribute, transformA
28
19
  import { useAlertValidation } from "./useAlertValidation.js";
29
20
  import { useAttributeValuesFromExecResults } from "./useAttributeValuesFromExecResults.js";
30
21
  import { useThresholdValue } from "./useThresholdValue.js";
31
- const DEFAULT_MIN_RECURRENCE_MINUTES = "60";
32
- export function useEditAlert({ alertToEdit, notificationChannels, insight, widget, editedAutomationFilters, maxAutomationsRecipients, setEditedAutomationFilters, availableFiltersAsVisibleFilters, filtersForNewAutomation, externalRecipientOverride, }) {
22
+ export function useEditAlert({ alertToEdit, notificationChannels, insight, widget, users, editedAutomationFilters, maxAutomationsRecipients, setEditedAutomationFilters, availableFiltersAsVisibleFilters, filtersForNewAutomation, externalRecipientOverride, }) {
33
23
  const intl = useIntl();
34
- // Selectors
35
- const locale = useDashboardSelector(selectLocale);
36
- const canManageComparison = useDashboardSelector(selectEnableComparisonInAlerting);
37
- const catalogDateDatasets = useDashboardSelector(selectCatalogDateDatasets);
38
- const execResult = useDashboardSelector(selectExecutionResultByRef(widget?.ref));
39
- const catalogAttributes = useDashboardSelector(selectCatalogAttributes);
40
- const currentUser = useDashboardSelector(selectCurrentUser);
41
- const users = useDashboardSelector(selectUsers);
42
- const enabledExternalRecipients = useDashboardSelector(selectEnableExternalRecipients);
43
- const descriptor = useDashboardSelector(selectDashboardDescriptor);
44
- const settings = useDashboardSelector(selectSettings);
45
- const canManageAttributes = useDashboardSelector(selectEnableAlertAttributes);
46
- const dashboardId = useDashboardSelector(selectDashboardId);
47
- const separators = useDashboardSelector(selectSeparators);
48
- const dashboardHiddenFilters = useDashboardSelector(selectDashboardHiddenFilters);
49
- const enableAlertOncePerInterval = useDashboardSelector(selectEnableAlertOncePerInterval);
50
- const commonDateFilterId = useDashboardSelector(selectAutomationCommonDateFilterId);
51
- const weekStart = useDashboardSelector(selectWeekStart);
52
- const timezone = useDashboardSelector(selectTimezone);
53
- const parameterValues = useDashboardSelector(selectEffectiveParameterValuesForWidget(widget?.ref));
24
+ const { locale, catalogDateDatasets, catalogAttributes, currentUser, separators, weekStart, timezone, settings, allowHourlyRecurrence, features: { enableComparisonInAlerting: canManageComparison, enableExternalRecipients: enabledExternalRecipients, enableAlertAttributes: canManageAttributes, enableAlertOncePerInterval, }, } = useAutomationsContext();
54
25
  const isInvalidConnectionToInsight = alertToEdit?.metadata?.widget && !insight;
55
- const minimumRecurrenceMinutesEntitlement = useDashboardSelector(selectEntitlementMinimumRecurrenceMinutes);
56
- const allowHourlyRecurrence = parseInt(minimumRecurrenceMinutesEntitlement?.value ?? DEFAULT_MIN_RECURRENCE_MINUTES, 10) === 60;
57
- const widgetTabMap = useDashboardSelector(selectWidgetLocalIdToTabIdMap);
26
+ const { executionResultByRef, dashboardId, hiddenFilters: dashboardHiddenFilters, commonDateFilterId, dashboardEvaluationFrequency, widgetLocalIdToTabIdMap: widgetTabMap, parameterValues, } = useAlertingDialogContext();
27
+ const execResult = executionResultByRef(widget?.ref);
58
28
  // Determine target tab ID if widget is present
59
29
  const targetTabIdentifier = widget?.localIdentifier ? widgetTabMap[widget.localIdentifier] : undefined;
60
30
  // Computed values
@@ -109,10 +79,10 @@ export function useEditAlert({ alertToEdit, notificationChannels, insight, widge
109
79
  if (resolvedAlertToEdit) {
110
80
  return resolvedAlertToEdit;
111
81
  }
112
- const defaultNewAlert = createDefaultAlert(getAppliedWidgetFilters(editedAutomationFilters ?? [], dashboardHiddenFilters, widget, insight, commonDateFilterId, true, false), supportedMeasures, defaultMeasure, defaultNotificationChannelId, defaultRecipient, measureFormatMap, undefined, descriptor.evaluationFrequency
82
+ const defaultNewAlert = createDefaultAlert(getAppliedWidgetFilters(editedAutomationFilters ?? [], dashboardHiddenFilters, widget, insight, commonDateFilterId, true, false), supportedMeasures, defaultMeasure, defaultNotificationChannelId, defaultRecipient, measureFormatMap, undefined, dashboardEvaluationFrequency
113
83
  ? {
114
- cron: descriptor.evaluationFrequency,
115
- timezone: settings.alertDefault?.defaultTimezone,
84
+ cron: dashboardEvaluationFrequency,
85
+ timezone: settings?.alertDefault?.defaultTimezone,
116
86
  }
117
87
  : undefined, getVisibleFiltersByFilters(editedAutomationFilters, availableFiltersAsVisibleFilters, true), widget?.localIdentifier, dashboardId, widget?.title, targetTabIdentifier);
118
88
  return defaultNewAlert && parameterValues.length > 0
@@ -135,7 +105,7 @@ export function useEditAlert({ alertToEdit, notificationChannels, insight, widge
135
105
  const selectedNotificationChannel = notificationChannels.find((channel) => channel.id === editedAutomation?.notificationChannel);
136
106
  const allowExternalRecipients = selectedNotificationChannel?.allowedRecipients === "external" && enabledExternalRecipients;
137
107
  const allowOnlyLoggedUserRecipients = selectedNotificationChannel?.allowedRecipients === "creator";
138
- const { isValid: isOriginalAutomationValid, invalidityReason } = useAlertValidation(originalAutomation);
108
+ const { isValid: isOriginalAutomationValid, invalidityReason } = useAlertValidation(originalAutomation, widget, insight, catalogDateDatasets, undefined, canManageComparison);
139
109
  const isParentValid = invalidityReason !== "missingWidget";
140
110
  //
141
111
  // Handlers
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useOperators.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/automations/alerting/DefaultAlertingDialog/hooks/useOperators.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,WAAW,EAA6B,MAAM,gBAAgB,CAAC;AAY7E,wBAAgB,YAAY,CAAC,OAAO,EAAE,WAAW,GAAG,SAAS,EAAE,sBAAsB,EAAE,OAAO,wDAwB7F"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useThresholdValue.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/automations/alerting/DefaultAlertingDialog/hooks/useThresholdValue.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,UAAU,EAAoC,MAAM,OAAO,CAAC;AAI5F,OAAO,EACH,KAAK,gCAAgC,EACrC,KAAK,sBAAsB,EAC3B,KAAK,UAAU,EACf,KAAK,gBAAgB,EACrB,KAAK,QAAQ,EAChB,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,KAAK,cAAc,EAAE,KAAK,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAgCvE,wBAAgB,iBAAiB,CAC7B,WAAW,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,EACpC,cAAc,EAAE,CAAC,OAAO,CAAC,EAAE,QAAQ,EAAE,IAAI,CAAC,EAAE,UAAU,EAAE,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,KAAK,MAAM,GAAG,SAAS,EACpG,UAAU,CAAC,EAAE,OAAO,EACpB,KAAK,CAAC,EAAE,gBAAgB,EACxB,wBAAwB,GAAE;IACtB,sBAAsB,GAAG,SAAS;IAClC,gCAAgC,GAAG,SAAS;CACtB,EAC1B,eAAe,CAAC,EAAE,WAAW,EAC7B,iBAAiB,CAAC,EAAE,cAAc,EAClC,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI;;;;;EAkFhC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/automations/alerting/DefaultAlertingDialog/messages.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2InB,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"convertors.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/automations/alerting/DefaultAlertingDialog/utils/convertors.ts"],"names":[],"mappings":"AAEA,OAAO,EACH,KAAK,wBAAwB,EAG7B,KAAK,mCAAmC,EACxC,KAAK,oBAAoB,EACzB,KAAK,mBAAmB,EACxB,KAAK,wBAAwB,EAC7B,KAAK,OAAO,EACf,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAElD,OAAO,EAAE,KAAK,iBAAiB,EAAqC,MAAM,cAAc,CAAC;AAGzF;;GAEG;AACH,wBAAgB,kBAAkB,CAC9B,OAAO,EAAE,OAAO,EAAE,EAClB,OAAO,EAAE,WAAW,EAAE,EACtB,OAAO,EAAE,WAAW,GAAG,SAAS,EAChC,qBAAqB,EAAE,MAAM,EAC7B,WAAW,EAAE,oBAAoB,EACjC,gBAAgB,EAAE,iBAAiB,EACnC,kBAAkB,GAAE,wBAAyC,EAC7D,QAAQ,CAAC,EAAE,mBAAmB,EAC9B,oBAAoB,CAAC,EAAE,wBAAwB,EAAE,EACjD,aAAa,CAAC,EAAE,MAAM,EACtB,WAAW,CAAC,EAAE,MAAM,EACpB,UAAU,CAAC,EAAE,MAAM,EACnB,mBAAmB,CAAC,EAAE,MAAM,GAC7B,mCAAmC,GAAG,SAAS,CAmDjD"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cron.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/automations/alerting/DefaultAlertingDialog/utils/cron.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,iCAAiC,EAAE,KAAK,SAAS,EAAe,MAAM,qBAAqB,CAAC;AAE1G,wBAAgB,yBAAyB,CACrC,WAAW,CAAC,EAAE,iCAAiC,EAC/C,SAAS,CAAC,EAAE,SAAS,GACtB,MAAM,CAuBR"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getters.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/automations/alerting/DefaultAlertingDialog/utils/getters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AAU,CAAC,EAAE,WAAW,GACzB,MAAM,CAYR;AAED,wBAAgB,WAAW,CACvB,IAAI,EAAE,SAAS,EACf,UAAU,EAAE,MAAM,EAClB,KAAK,EAAE,yBAAyB,EAChC,UAAU,CAAC,EAAE,WAAW,GACzB,MAAM,CAQR"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"granularity.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/automations/alerting/DefaultAlertingDialog/utils/granularity.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;AAE5C,OAAO,EAAE,KAAK,wBAAwB,EAAE,MAAM,qBAAqB,CAAC;AAEpE,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,SAAS,EAAE,WAAW,CAAC,EAAE,wBAAwB,GAAG,MAAM,CAoBpG"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"guards.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/automations/alerting/DefaultAlertingDialog/utils/guards.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,gBAAgB,EAAE,KAAK,yBAAyB,EAAE,MAAM,qBAAqB,CAAC;AAG5F;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,CAAC,EAAE,gBAAgB,GAAG,OAAO,CAKlE;AAED;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,CAAC,EAAE,gBAAgB,GAAG,OAAO,CAKtE;AAED;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,CAAC,EAAE,gBAAgB,GAAG,OAAO,CAEpE;AAED;;GAEG;AACH,wBAAgB,4BAA4B,CAAC,KAAK,CAAC,EAAE,gBAAgB,GAAG,OAAO,CAE9E;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,CAAC,EAAE,gBAAgB,GAAG,OAAO,CAWrE;AAED;;GAEG;AACH,wBAAgB,sBAAsB,CAAC,KAAK,CAAC,EAAE,yBAAyB,GAAG,OAAO,CAEjF"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"items.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/automations/alerting/DefaultAlertingDialog/utils/items.ts"],"names":[],"mappings":"AAEA,OAAO,EAIH,KAAK,yBAAyB,EAE9B,KAAK,iBAAiB,EAEtB,KAAK,mBAAmB,EAExB,KAAK,QAAQ,EAqBhB,MAAM,qBAAqB,CAAC;AAG7B,OAAO,EAAE,KAAK,cAAc,EAAE,KAAK,WAAW,EAA6B,MAAM,gBAAgB,CAAC;AAgElG;;;;;;GAMG;AACH,wBAAgB,oCAAoC,CAChD,OAAO,EAAE,QAAQ,GAAG,IAAI,GAAG,SAAS,EACpC,YAAY,GAAE,mBAAmB,EAAO,EACxC,mBAAmB,GAAE,OAAe,EACpC,KAAK,CAAC,EAAE,yBAAyB,GAClC,WAAW,EAAE,CAoCf;AA4BD;;;;;;GAMG;AACH,wBAAgB,sCAAsC,CAClD,OAAO,EAAE,QAAQ,GAAG,IAAI,GAAG,SAAS,EACpC,UAAU,EAAE,iBAAiB,EAAE,EAC/B,YAAY,GAAE,mBAAmB,EAAO,EACxC,KAAK,CAAC,EAAE,yBAAyB,GAClC,cAAc,EAAE,CAMlB"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"responsive.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/automations/alerting/DefaultAlertingDialog/utils/responsive.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,YAAY,eAA2D,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"threshold.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/automations/alerting/DefaultAlertingDialog/utils/threshold.ts"],"names":[],"mappings":"AAIA,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAoBxF"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"transformation.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/automations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E,iCAAiC,GAC/C,yBAAyB,CAc3B;AAED,wBAAgB,2BAA2B,CACvC,OAAO,EAAE,WAAW,EAAE,EACtB,KAAK,EAAE,yBAAyB,EAChC,OAAO,EAAE,WAAW,EACpB,WAAW,EAAE,iCAAiC,EAC9C,SAAS,CAAC,EAAE,SAAS,GACtB,yBAAyB,CAiC3B"}
@@ -0,0 +1,11 @@
1
+ import { type IAutomationMetadataObject } from "@gooddata/sdk-model";
2
+ import { type GoodDataSdkError } from "@gooddata/sdk-ui";
3
+ interface IDeleteAlertConfirmDialogProps {
4
+ alert: IAutomationMetadataObject;
5
+ onCancel: () => void;
6
+ onSuccess?: (alert: IAutomationMetadataObject) => void;
7
+ onError?: (error: GoodDataSdkError) => void;
8
+ }
9
+ export declare function DeleteAlertConfirmDialog({ alert, onCancel, onSuccess, onError }: IDeleteAlertConfirmDialogProps): import("react/jsx-runtime").JSX.Element;
10
+ export {};
11
+ //# sourceMappingURL=DeleteAlertConfirmDialog.d.ts.map