@gooddata/sdk-ui-dashboard 11.54.0-alpha.5 → 11.54.0-alpha.7

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 (335) hide show
  1. package/NOTICE +849 -114
  2. package/esm/__version.d.ts +1 -1
  3. package/esm/__version.js +1 -1
  4. package/esm/index.d.ts +2 -1
  5. package/esm/index.d.ts.map +1 -1
  6. package/esm/model/commandHandlers/dashboard/common/parameterHydration.d.ts +7 -0
  7. package/esm/model/commandHandlers/dashboard/common/parameterHydration.d.ts.map +1 -1
  8. package/esm/model/commandHandlers/dashboard/common/parameterHydration.js +17 -1
  9. package/esm/model/commandHandlers/filterContext/filterViewHandler.d.ts.map +1 -1
  10. package/esm/model/commandHandlers/filterContext/filterViewHandler.js +7 -7
  11. package/esm/presentation/automations/alerting/DefaultAlertingDialog/DefaultAlertingDialog.d.ts +1 -1
  12. package/esm/presentation/automations/alerting/DefaultAlertingDialog/DefaultAlertingDialog.d.ts.map +1 -1
  13. package/esm/presentation/automations/alerting/DefaultAlertingDialog/DefaultAlertingDialog.js +32 -91
  14. package/esm/presentation/automations/alerting/DefaultAlertingDialog/hooks/useAlertSubmit.d.ts +19 -14
  15. package/esm/presentation/automations/alerting/DefaultAlertingDialog/hooks/useAlertSubmit.d.ts.map +1 -1
  16. package/esm/presentation/automations/alerting/DefaultAlertingDialog/hooks/useAlertSubmit.js +18 -2
  17. package/esm/presentation/automations/alerting/state/AlertActionsContext.d.ts +1 -10
  18. package/esm/presentation/automations/alerting/state/AlertActionsContext.d.ts.map +1 -1
  19. package/esm/presentation/automations/alerting/state/AlertDataContext.d.ts +1 -11
  20. package/esm/presentation/automations/alerting/state/AlertDataContext.d.ts.map +1 -1
  21. package/esm/presentation/automations/alerting/state/AlertDraftContext.d.ts +1 -11
  22. package/esm/presentation/automations/alerting/state/AlertDraftContext.d.ts.map +1 -1
  23. package/esm/presentation/automations/alerting/state/AlertFiltersContext.d.ts +1 -13
  24. package/esm/presentation/automations/alerting/state/AlertFiltersContext.d.ts.map +1 -1
  25. package/esm/presentation/automations/alerting/state/AlertingDialogStateProvider.d.ts.map +1 -1
  26. package/esm/presentation/automations/alerting/state/types.d.ts +156 -0
  27. package/esm/presentation/automations/alerting/state/types.d.ts.map +1 -0
  28. package/esm/presentation/automations/alerting/state/types.js +2 -0
  29. package/esm/presentation/automations/alerting/state/useAlertFiltersModel.d.ts +2 -8
  30. package/esm/presentation/automations/alerting/state/useAlertFiltersModel.d.ts.map +1 -1
  31. package/esm/presentation/automations/alerting/state/useAlertFormState.d.ts +4 -34
  32. package/esm/presentation/automations/alerting/state/useAlertFormState.d.ts.map +1 -1
  33. package/esm/presentation/automations/alerting/state/useAlertSupportedMetrics.d.ts +2 -11
  34. package/esm/presentation/automations/alerting/state/useAlertSupportedMetrics.d.ts.map +1 -1
  35. package/esm/presentation/automations/alerting/state/useAlertSupportedMetrics.js +2 -2
  36. package/esm/presentation/automations/alerting/state/useAlertingDialogRegionProps.d.ts +82 -0
  37. package/esm/presentation/automations/alerting/state/useAlertingDialogRegionProps.d.ts.map +1 -0
  38. package/esm/presentation/automations/alerting/state/useAlertingDialogRegionProps.js +152 -0
  39. package/esm/presentation/automations/alerting/types.d.ts +34 -6
  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 +41 -126
  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/hooks/useSaveScheduledEmailToBackend.d.ts +17 -2
  47. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/hooks/useSaveScheduledEmailToBackend.d.ts.map +1 -1
  48. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/hooks/useSaveScheduledEmailToBackend.js +16 -5
  49. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/hooks/useScheduleTimezone.d.ts +2 -29
  50. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/hooks/useScheduleTimezone.d.ts.map +1 -1
  51. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/hooks/useScheduleTimezone.js +0 -14
  52. package/esm/presentation/automations/scheduledEmail/state/ScheduledEmailDialogStateProvider.d.ts.map +1 -1
  53. package/esm/presentation/automations/scheduledEmail/state/ScheduledEmailDialogStateProvider.js +3 -3
  54. package/esm/presentation/automations/scheduledEmail/state/ScheduledExportActionsContext.d.ts +1 -16
  55. package/esm/presentation/automations/scheduledEmail/state/ScheduledExportActionsContext.d.ts.map +1 -1
  56. package/esm/presentation/automations/scheduledEmail/state/ScheduledExportDataContext.d.ts +1 -12
  57. package/esm/presentation/automations/scheduledEmail/state/ScheduledExportDataContext.d.ts.map +1 -1
  58. package/esm/presentation/automations/scheduledEmail/state/ScheduledExportDraftContext.d.ts +1 -15
  59. package/esm/presentation/automations/scheduledEmail/state/ScheduledExportDraftContext.d.ts.map +1 -1
  60. package/esm/presentation/automations/scheduledEmail/state/ScheduledExportFiltersContext.d.ts +2 -14
  61. package/esm/presentation/automations/scheduledEmail/state/ScheduledExportFiltersContext.d.ts.map +1 -1
  62. package/esm/presentation/automations/scheduledEmail/state/types.d.ts +204 -0
  63. package/esm/presentation/automations/scheduledEmail/state/types.d.ts.map +1 -0
  64. package/esm/presentation/automations/scheduledEmail/state/types.js +2 -0
  65. package/esm/presentation/automations/scheduledEmail/state/useScheduledEmailDialogRegionProps.d.ts +105 -0
  66. package/esm/presentation/automations/scheduledEmail/state/useScheduledEmailDialogRegionProps.d.ts.map +1 -0
  67. package/esm/presentation/automations/scheduledEmail/state/useScheduledEmailDialogRegionProps.js +196 -0
  68. package/esm/presentation/automations/scheduledEmail/state/useScheduledEmailExportSettings.d.ts +3 -11
  69. package/esm/presentation/automations/scheduledEmail/state/useScheduledEmailExportSettings.d.ts.map +1 -1
  70. package/esm/presentation/automations/scheduledEmail/state/useScheduledEmailExportSettings.js +10 -8
  71. package/esm/presentation/automations/scheduledEmail/state/useScheduledEmailFiltersModel.d.ts +2 -20
  72. package/esm/presentation/automations/scheduledEmail/state/useScheduledEmailFiltersModel.d.ts.map +1 -1
  73. package/esm/presentation/automations/scheduledEmail/state/useScheduledEmailFiltersModel.js +1 -1
  74. package/esm/presentation/automations/scheduledEmail/state/useScheduledEmailFormState.d.ts +3 -20
  75. package/esm/presentation/automations/scheduledEmail/state/useScheduledEmailFormState.d.ts.map +1 -1
  76. package/esm/presentation/automations/scheduledEmail/state/useScheduledExportAttachments.d.ts +2 -2
  77. package/esm/presentation/automations/scheduledEmail/state/useScheduledExportAttachments.d.ts.map +1 -1
  78. package/esm/presentation/automations/scheduledEmail/state/useScheduledExportAttachments.js +3 -4
  79. package/esm/presentation/automations/scheduledEmail/types.d.ts +38 -7
  80. package/esm/presentation/automations/scheduledEmail/types.d.ts.map +1 -1
  81. package/esm/presentation/automations/shared/slots/AutomationDialogActionBar.d.ts +25 -0
  82. package/esm/presentation/automations/shared/slots/AutomationDialogActionBar.d.ts.map +1 -0
  83. package/esm/presentation/automations/shared/slots/AutomationDialogActionBar.js +22 -0
  84. package/esm/presentation/automations/shared/slots/types.d.ts +53 -26
  85. package/esm/presentation/automations/shared/slots/types.d.ts.map +1 -1
  86. package/esm/presentation/dashboardContexts/ExportCsvDialogContext.d.ts +1 -2
  87. package/esm/presentation/dashboardContexts/ExportCsvDialogContext.d.ts.map +1 -1
  88. package/esm/presentation/dialogs/ExportCsvDialog.d.ts +0 -1
  89. package/esm/presentation/dialogs/ExportCsvDialog.d.ts.map +1 -1
  90. package/esm/presentation/dialogs/ExportCsvDialog.js +2 -2
  91. package/esm/presentation/dialogs/ExportCsvDialogProvider.d.ts.map +1 -1
  92. package/esm/presentation/dialogs/ExportCsvDialogProvider.js +1 -1
  93. package/esm/presentation/localization/bundles/de-DE.localization-bundle.d.ts +12 -16
  94. package/esm/presentation/localization/bundles/de-DE.localization-bundle.d.ts.map +1 -1
  95. package/esm/presentation/localization/bundles/de-DE.localization-bundle.js +12 -16
  96. package/esm/presentation/localization/bundles/en-AU.localization-bundle.d.ts +12 -16
  97. package/esm/presentation/localization/bundles/en-AU.localization-bundle.d.ts.map +1 -1
  98. package/esm/presentation/localization/bundles/en-AU.localization-bundle.js +14 -18
  99. package/esm/presentation/localization/bundles/en-GB.localization-bundle.d.ts +12 -16
  100. package/esm/presentation/localization/bundles/en-GB.localization-bundle.d.ts.map +1 -1
  101. package/esm/presentation/localization/bundles/en-GB.localization-bundle.js +14 -18
  102. package/esm/presentation/localization/bundles/en-US.localization-bundle.d.ts +0 -60
  103. package/esm/presentation/localization/bundles/en-US.localization-bundle.d.ts.map +1 -1
  104. package/esm/presentation/localization/bundles/en-US.localization-bundle.js +0 -60
  105. package/esm/presentation/localization/bundles/es-419.localization-bundle.d.ts +12 -16
  106. package/esm/presentation/localization/bundles/es-419.localization-bundle.d.ts.map +1 -1
  107. package/esm/presentation/localization/bundles/es-419.localization-bundle.js +14 -18
  108. package/esm/presentation/localization/bundles/es-ES.localization-bundle.d.ts +10 -16
  109. package/esm/presentation/localization/bundles/es-ES.localization-bundle.d.ts.map +1 -1
  110. package/esm/presentation/localization/bundles/es-ES.localization-bundle.js +12 -18
  111. package/esm/presentation/localization/bundles/fi-FI.localization-bundle.d.ts +12 -16
  112. package/esm/presentation/localization/bundles/fi-FI.localization-bundle.d.ts.map +1 -1
  113. package/esm/presentation/localization/bundles/fi-FI.localization-bundle.js +14 -18
  114. package/esm/presentation/localization/bundles/fr-CA.localization-bundle.d.ts +12 -16
  115. package/esm/presentation/localization/bundles/fr-CA.localization-bundle.d.ts.map +1 -1
  116. package/esm/presentation/localization/bundles/fr-CA.localization-bundle.js +14 -18
  117. package/esm/presentation/localization/bundles/fr-FR.localization-bundle.d.ts +12 -16
  118. package/esm/presentation/localization/bundles/fr-FR.localization-bundle.d.ts.map +1 -1
  119. package/esm/presentation/localization/bundles/fr-FR.localization-bundle.js +14 -18
  120. package/esm/presentation/localization/bundles/id-ID.localization-bundle.d.ts +12 -16
  121. package/esm/presentation/localization/bundles/id-ID.localization-bundle.d.ts.map +1 -1
  122. package/esm/presentation/localization/bundles/id-ID.localization-bundle.js +14 -18
  123. package/esm/presentation/localization/bundles/it-IT.localization-bundle.d.ts +12 -16
  124. package/esm/presentation/localization/bundles/it-IT.localization-bundle.d.ts.map +1 -1
  125. package/esm/presentation/localization/bundles/it-IT.localization-bundle.js +14 -18
  126. package/esm/presentation/localization/bundles/ja-JP.localization-bundle.d.ts +12 -16
  127. package/esm/presentation/localization/bundles/ja-JP.localization-bundle.d.ts.map +1 -1
  128. package/esm/presentation/localization/bundles/ja-JP.localization-bundle.js +12 -16
  129. package/esm/presentation/localization/bundles/ko-KR.localization-bundle.d.ts +12 -16
  130. package/esm/presentation/localization/bundles/ko-KR.localization-bundle.d.ts.map +1 -1
  131. package/esm/presentation/localization/bundles/ko-KR.localization-bundle.js +14 -18
  132. package/esm/presentation/localization/bundles/nl-NL.localization-bundle.d.ts +12 -16
  133. package/esm/presentation/localization/bundles/nl-NL.localization-bundle.d.ts.map +1 -1
  134. package/esm/presentation/localization/bundles/nl-NL.localization-bundle.js +14 -18
  135. package/esm/presentation/localization/bundles/pl-PL.localization-bundle.d.ts +12 -16
  136. package/esm/presentation/localization/bundles/pl-PL.localization-bundle.d.ts.map +1 -1
  137. package/esm/presentation/localization/bundles/pl-PL.localization-bundle.js +14 -18
  138. package/esm/presentation/localization/bundles/pt-BR.localization-bundle.d.ts +12 -16
  139. package/esm/presentation/localization/bundles/pt-BR.localization-bundle.d.ts.map +1 -1
  140. package/esm/presentation/localization/bundles/pt-BR.localization-bundle.js +16 -20
  141. package/esm/presentation/localization/bundles/pt-PT.localization-bundle.d.ts +12 -16
  142. package/esm/presentation/localization/bundles/pt-PT.localization-bundle.d.ts.map +1 -1
  143. package/esm/presentation/localization/bundles/pt-PT.localization-bundle.js +16 -20
  144. package/esm/presentation/localization/bundles/ru-RU.localization-bundle.d.ts +12 -16
  145. package/esm/presentation/localization/bundles/ru-RU.localization-bundle.d.ts.map +1 -1
  146. package/esm/presentation/localization/bundles/ru-RU.localization-bundle.js +14 -18
  147. package/esm/presentation/localization/bundles/sl-SI.localization-bundle.d.ts +12 -16
  148. package/esm/presentation/localization/bundles/sl-SI.localization-bundle.d.ts.map +1 -1
  149. package/esm/presentation/localization/bundles/sl-SI.localization-bundle.js +14 -18
  150. package/esm/presentation/localization/bundles/th-TH.localization-bundle.d.ts +12 -16
  151. package/esm/presentation/localization/bundles/th-TH.localization-bundle.d.ts.map +1 -1
  152. package/esm/presentation/localization/bundles/th-TH.localization-bundle.js +14 -18
  153. package/esm/presentation/localization/bundles/tr-TR.localization-bundle.d.ts +12 -16
  154. package/esm/presentation/localization/bundles/tr-TR.localization-bundle.d.ts.map +1 -1
  155. package/esm/presentation/localization/bundles/tr-TR.localization-bundle.js +14 -18
  156. package/esm/presentation/localization/bundles/uk-UA.localization-bundle.d.ts +12 -16
  157. package/esm/presentation/localization/bundles/uk-UA.localization-bundle.d.ts.map +1 -1
  158. package/esm/presentation/localization/bundles/uk-UA.localization-bundle.js +14 -18
  159. package/esm/presentation/localization/bundles/vi-VN.localization-bundle.d.ts +12 -16
  160. package/esm/presentation/localization/bundles/vi-VN.localization-bundle.d.ts.map +1 -1
  161. package/esm/presentation/localization/bundles/vi-VN.localization-bundle.js +14 -18
  162. package/esm/presentation/localization/bundles/zh-HK.localization-bundle.d.ts +12 -16
  163. package/esm/presentation/localization/bundles/zh-HK.localization-bundle.d.ts.map +1 -1
  164. package/esm/presentation/localization/bundles/zh-HK.localization-bundle.js +12 -16
  165. package/esm/presentation/localization/bundles/zh-Hans.localization-bundle.d.ts +12 -16
  166. package/esm/presentation/localization/bundles/zh-Hans.localization-bundle.d.ts.map +1 -1
  167. package/esm/presentation/localization/bundles/zh-Hans.localization-bundle.js +14 -18
  168. package/esm/presentation/localization/bundles/zh-Hant.localization-bundle.d.ts +12 -16
  169. package/esm/presentation/localization/bundles/zh-Hant.localization-bundle.d.ts.map +1 -1
  170. package/esm/presentation/localization/bundles/zh-Hant.localization-bundle.js +14 -18
  171. package/esm/presentation/widget/common/useInsightExport.d.ts.map +1 -1
  172. package/esm/presentation/widget/common/useInsightExport.js +2 -4
  173. package/esm/sdk-ui-dashboard.d.ts +123 -36
  174. package/package.json +25 -25
  175. package/styles/css/main.css +369 -0
  176. package/styles/css/main.css.map +1 -1
  177. package/esm/_staging/dateFilterConfig/fixtures.d.ts +0 -10
  178. package/esm/_staging/dateFilterConfig/fixtures.d.ts.map +0 -1
  179. package/esm/_staging/dateFilterConfig/fixtures.js +0 -60
  180. package/esm/_staging/layout/coordinates.mock.d.ts +0 -17
  181. package/esm/_staging/layout/coordinates.mock.d.ts.map +0 -1
  182. package/esm/_staging/layout/coordinates.mock.js +0 -103
  183. package/esm/model/commandHandlers/filterContext/filterViewParameters.d.ts +0 -8
  184. package/esm/model/commandHandlers/filterContext/filterViewParameters.d.ts.map +0 -1
  185. package/esm/model/commandHandlers/filterContext/filterViewParameters.js +0 -9
  186. package/esm/model/fixtures/CatalogAvailability.fixtures.d.ts +0 -14
  187. package/esm/model/fixtures/CatalogAvailability.fixtures.d.ts.map +0 -1
  188. package/esm/model/fixtures/CatalogAvailability.fixtures.js +0 -57
  189. package/esm/model/fixtures/ComplexDashboard.fixtures.d.ts +0 -56
  190. package/esm/model/fixtures/ComplexDashboard.fixtures.d.ts.map +0 -1
  191. package/esm/model/fixtures/ComplexDashboard.fixtures.js +0 -71
  192. package/esm/model/fixtures/Dashboard.fixtures.d.ts +0 -10
  193. package/esm/model/fixtures/Dashboard.fixtures.d.ts.map +0 -1
  194. package/esm/model/fixtures/Dashboard.fixtures.js +0 -13
  195. package/esm/model/fixtures/Insights.fixtures.d.ts +0 -6
  196. package/esm/model/fixtures/Insights.fixtures.d.ts.map +0 -1
  197. package/esm/model/fixtures/Insights.fixtures.js +0 -11
  198. package/esm/model/fixtures/Layout.fixtures.d.ts +0 -14
  199. package/esm/model/fixtures/Layout.fixtures.d.ts.map +0 -1
  200. package/esm/model/fixtures/Layout.fixtures.js +0 -115
  201. package/esm/model/fixtures/SimpleDashboard.fixtures.d.ts +0 -46
  202. package/esm/model/fixtures/SimpleDashboard.fixtures.d.ts.map +0 -1
  203. package/esm/model/fixtures/SimpleDashboard.fixtures.js +0 -315
  204. package/esm/model/fixtures/SimpleDashboardNoDrills.fixtures.d.ts +0 -28
  205. package/esm/model/fixtures/SimpleDashboardNoDrills.fixtures.d.ts.map +0 -1
  206. package/esm/model/fixtures/SimpleDashboardNoDrills.fixtures.js +0 -40
  207. package/esm/plugins/customizationApis/fixtures/TestingDashboardCustomizationLogger.d.ts +0 -16
  208. package/esm/plugins/customizationApis/fixtures/TestingDashboardCustomizationLogger.d.ts.map +0 -1
  209. package/esm/plugins/customizationApis/fixtures/TestingDashboardCustomizationLogger.js +0 -30
  210. package/esm/presentation/automations/alerting/DefaultAlertingManagementDialog/components/AlertDropdown.d.ts +0 -3
  211. package/esm/presentation/automations/alerting/DefaultAlertingManagementDialog/components/AlertDropdown.d.ts.map +0 -1
  212. package/esm/presentation/automations/alerting/DefaultAlertingManagementDialog/components/AlertDropdown.js +0 -46
  213. package/esm/presentation/automations/alerting/DefaultAlertingManagementDialog/components/PauseAlertRunner.d.ts +0 -11
  214. package/esm/presentation/automations/alerting/DefaultAlertingManagementDialog/components/PauseAlertRunner.d.ts.map +0 -1
  215. package/esm/presentation/automations/alerting/DefaultAlertingManagementDialog/components/PauseAlertRunner.js +0 -31
  216. package/esm/presentation/automations/alerting/state/fixtures.d.ts +0 -13
  217. package/esm/presentation/automations/alerting/state/fixtures.d.ts.map +0 -1
  218. package/esm/presentation/automations/alerting/state/fixtures.js +0 -37
  219. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/hooks/useFiltersForDashboardScheduledExportInfo.d.ts +0 -19
  220. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/hooks/useFiltersForDashboardScheduledExportInfo.d.ts.map +0 -1
  221. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/hooks/useFiltersForDashboardScheduledExportInfo.js +0 -28
  222. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailManagementDialog/components/ScheduledEmail.d.ts +0 -13
  223. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailManagementDialog/components/ScheduledEmail.d.ts.map +0 -1
  224. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailManagementDialog/components/ScheduledEmail.js +0 -56
  225. package/esm/presentation/automations/scheduledEmail/state/fixtures.d.ts +0 -18
  226. package/esm/presentation/automations/scheduledEmail/state/fixtures.d.ts.map +0 -1
  227. package/esm/presentation/automations/scheduledEmail/state/fixtures.js +0 -105
  228. package/esm/presentation/automations/shared/automationFilters/parameterFixtures.d.ts +0 -5
  229. package/esm/presentation/automations/shared/automationFilters/parameterFixtures.d.ts.map +0 -1
  230. package/esm/presentation/automations/shared/automationFilters/parameterFixtures.js +0 -22
  231. package/esm/presentation/automations/shared/test/fixtures.d.ts +0 -9
  232. package/esm/presentation/automations/shared/test/fixtures.d.ts.map +0 -1
  233. package/esm/presentation/automations/shared/test/fixtures.js +0 -101
  234. package/esm/presentation/dashboard/components/DashboardMainContent.d.ts +0 -3
  235. package/esm/presentation/dashboard/components/DashboardMainContent.d.ts.map +0 -1
  236. package/esm/presentation/dashboard/components/DashboardMainContent.js +0 -39
  237. package/esm/presentation/dragAndDrop/draggableWidget/DraggableKpiCreatePanelItem.d.ts +0 -16
  238. package/esm/presentation/dragAndDrop/draggableWidget/DraggableKpiCreatePanelItem.d.ts.map +0 -1
  239. package/esm/presentation/dragAndDrop/draggableWidget/DraggableKpiCreatePanelItem.js +0 -17
  240. package/esm/presentation/dragAndDrop/draggableWidget/KpiDraggingComponent.d.ts +0 -3
  241. package/esm/presentation/dragAndDrop/draggableWidget/KpiDraggingComponent.d.ts.map +0 -1
  242. package/esm/presentation/dragAndDrop/draggableWidget/KpiDraggingComponent.js +0 -9
  243. package/esm/presentation/filterBar/attributeFilter/dashboardDropdownBody/DeleteButton.d.ts +0 -6
  244. package/esm/presentation/filterBar/attributeFilter/dashboardDropdownBody/DeleteButton.d.ts.map +0 -1
  245. package/esm/presentation/filterBar/attributeFilter/dashboardDropdownBody/DeleteButton.js +0 -10
  246. package/esm/presentation/filterBar/attributeFilter/dashboardDropdownBody/common/DropdownControls.d.ts +0 -8
  247. package/esm/presentation/filterBar/attributeFilter/dashboardDropdownBody/common/DropdownControls.d.ts.map +0 -1
  248. package/esm/presentation/filterBar/attributeFilter/dashboardDropdownBody/common/DropdownControls.js +0 -14
  249. package/esm/presentation/filterBar/attributeFilter/dashboardDropdownBody/configuration/ConfigurationButton.d.ts +0 -6
  250. package/esm/presentation/filterBar/attributeFilter/dashboardDropdownBody/configuration/ConfigurationButton.d.ts.map +0 -1
  251. package/esm/presentation/filterBar/attributeFilter/dashboardDropdownBody/configuration/ConfigurationButton.js +0 -8
  252. package/esm/presentation/filterBar/attributeFilter/dashboardDropdownBody/displayFormDropdown/DisplayFormButton.d.ts +0 -8
  253. package/esm/presentation/filterBar/attributeFilter/dashboardDropdownBody/displayFormDropdown/DisplayFormButton.d.ts.map +0 -1
  254. package/esm/presentation/filterBar/attributeFilter/dashboardDropdownBody/displayFormDropdown/DisplayFormButton.js +0 -10
  255. package/esm/presentation/filterBar/attributeFilter/dashboardDropdownBody/displayFormDropdown/DisplayFormDropdown.d.ts +0 -8
  256. package/esm/presentation/filterBar/attributeFilter/dashboardDropdownBody/displayFormDropdown/DisplayFormDropdown.d.ts.map +0 -1
  257. package/esm/presentation/filterBar/attributeFilter/dashboardDropdownBody/displayFormDropdown/DisplayFormDropdown.js +0 -33
  258. package/esm/presentation/filterBar/attributeFilter/dashboardDropdownBody/displayFormDropdown/DisplayFormItem.d.ts +0 -8
  259. package/esm/presentation/filterBar/attributeFilter/dashboardDropdownBody/displayFormDropdown/DisplayFormItem.d.ts.map +0 -1
  260. package/esm/presentation/filterBar/attributeFilter/dashboardDropdownBody/displayFormDropdown/DisplayFormItem.js +0 -33
  261. package/esm/presentation/flexibleLayout/useInKD/DashboardEditLayout/DashboardEditLayout.d.ts +0 -17
  262. package/esm/presentation/flexibleLayout/useInKD/DashboardEditLayout/DashboardEditLayout.d.ts.map +0 -1
  263. package/esm/presentation/flexibleLayout/useInKD/DashboardEditLayout/DashboardEditLayout.js +0 -18
  264. package/esm/presentation/flexibleLayout/useInKD/DashboardEditLayout/DashboardEditLayoutItemRenderer.d.ts +0 -12
  265. package/esm/presentation/flexibleLayout/useInKD/DashboardEditLayout/DashboardEditLayoutItemRenderer.d.ts.map +0 -1
  266. package/esm/presentation/flexibleLayout/useInKD/DashboardEditLayout/DashboardEditLayoutItemRenderer.js +0 -26
  267. package/esm/presentation/flexibleLayout/useInKD/DashboardEditLayout/DashboardEditLayoutMocks.d.ts +0 -20
  268. package/esm/presentation/flexibleLayout/useInKD/DashboardEditLayout/DashboardEditLayoutMocks.d.ts.map +0 -1
  269. package/esm/presentation/flexibleLayout/useInKD/DashboardEditLayout/DashboardEditLayoutMocks.js +0 -95
  270. package/esm/presentation/flexibleLayout/useInKD/DashboardEditLayout/DashboardEditLayoutRowRenderer.d.ts +0 -14
  271. package/esm/presentation/flexibleLayout/useInKD/DashboardEditLayout/DashboardEditLayoutRowRenderer.d.ts.map +0 -1
  272. package/esm/presentation/flexibleLayout/useInKD/DashboardEditLayout/DashboardEditLayoutRowRenderer.js +0 -9
  273. package/esm/presentation/flexibleLayout/useInKD/DashboardEditLayout/DashboardEditLayoutSectionBorder.d.ts +0 -9
  274. package/esm/presentation/flexibleLayout/useInKD/DashboardEditLayout/DashboardEditLayoutSectionBorder.d.ts.map +0 -1
  275. package/esm/presentation/flexibleLayout/useInKD/DashboardEditLayout/DashboardEditLayoutSectionBorder.js +0 -17
  276. package/esm/presentation/flexibleLayout/useInKD/DashboardEditLayout/DashboardEditLayoutSectionBorderMarker.d.ts +0 -6
  277. package/esm/presentation/flexibleLayout/useInKD/DashboardEditLayout/DashboardEditLayoutSectionBorderMarker.d.ts.map +0 -1
  278. package/esm/presentation/flexibleLayout/useInKD/DashboardEditLayout/DashboardEditLayoutSectionBorderMarker.js +0 -10
  279. package/esm/presentation/flexibleLayout/useInKD/DashboardEditLayout/DashboardEditLayoutSectionHeader.d.ts +0 -9
  280. package/esm/presentation/flexibleLayout/useInKD/DashboardEditLayout/DashboardEditLayoutSectionHeader.d.ts.map +0 -1
  281. package/esm/presentation/flexibleLayout/useInKD/DashboardEditLayout/DashboardEditLayoutSectionHeader.js +0 -14
  282. package/esm/presentation/flexibleLayout/useInKD/DashboardEditLayout/DashboardEditLayoutSectionHeaderRenderer.d.ts +0 -8
  283. package/esm/presentation/flexibleLayout/useInKD/DashboardEditLayout/DashboardEditLayoutSectionHeaderRenderer.d.ts.map +0 -1
  284. package/esm/presentation/flexibleLayout/useInKD/DashboardEditLayout/DashboardEditLayoutSectionHeaderRenderer.js +0 -49
  285. package/esm/presentation/flexibleLayout/useInKD/DashboardEditLayout/DashboardEditLayoutSectionRenderer.d.ts +0 -7
  286. package/esm/presentation/flexibleLayout/useInKD/DashboardEditLayout/DashboardEditLayoutSectionRenderer.d.ts.map +0 -1
  287. package/esm/presentation/flexibleLayout/useInKD/DashboardEditLayout/DashboardEditLayoutSectionRenderer.js +0 -33
  288. package/esm/presentation/flexibleLayout/useInKD/DashboardEditLayout/DashboardEditLayoutTypes.d.ts +0 -62
  289. package/esm/presentation/flexibleLayout/useInKD/DashboardEditLayout/DashboardEditLayoutTypes.d.ts.map +0 -1
  290. package/esm/presentation/flexibleLayout/useInKD/DashboardEditLayout/DashboardEditLayoutTypes.js +0 -2
  291. package/esm/presentation/flexibleLayout/useInKD/DashboardEditLayout/DashboardEditLayoutWidget.d.ts +0 -11
  292. package/esm/presentation/flexibleLayout/useInKD/DashboardEditLayout/DashboardEditLayoutWidget.d.ts.map +0 -1
  293. package/esm/presentation/flexibleLayout/useInKD/DashboardEditLayout/DashboardEditLayoutWidget.js +0 -4
  294. package/esm/presentation/flexibleLayout/useInKD/DashboardEditLayout/DashboardEditLayoutWidgetRenderer.d.ts +0 -8
  295. package/esm/presentation/flexibleLayout/useInKD/DashboardEditLayout/DashboardEditLayoutWidgetRenderer.d.ts.map +0 -1
  296. package/esm/presentation/flexibleLayout/useInKD/DashboardEditLayout/DashboardEditLayoutWidgetRenderer.js +0 -28
  297. package/esm/presentation/flexibleLayout/useInKD/DashboardEditLayout/LayoutTypes.d.ts +0 -26
  298. package/esm/presentation/flexibleLayout/useInKD/DashboardEditLayout/LayoutTypes.d.ts.map +0 -1
  299. package/esm/presentation/flexibleLayout/useInKD/DashboardEditLayout/LayoutTypes.js +0 -21
  300. package/esm/presentation/widget/common/configuration/AttributeFilterConfiguration.d.ts +0 -7
  301. package/esm/presentation/widget/common/configuration/AttributeFilterConfiguration.d.ts.map +0 -1
  302. package/esm/presentation/widget/common/configuration/AttributeFilterConfiguration.js +0 -39
  303. package/esm/presentation/widget/common/useWidgetBrokenAlertsQuery.d.ts +0 -9
  304. package/esm/presentation/widget/common/useWidgetBrokenAlertsQuery.d.ts.map +0 -1
  305. package/esm/presentation/widget/common/useWidgetBrokenAlertsQuery.js +0 -26
  306. package/esm/presentation/widget/insight/configuration/DrillMeasureSelector/DrillMeasureSelector.d.ts +0 -7
  307. package/esm/presentation/widget/insight/configuration/DrillMeasureSelector/DrillMeasureSelector.d.ts.map +0 -1
  308. package/esm/presentation/widget/insight/configuration/DrillMeasureSelector/DrillMeasureSelector.js +0 -37
  309. package/esm/presentation/widget/insight/configuration/DrillMeasureSelector/DrillMeasureSelectorBody.d.ts +0 -8
  310. package/esm/presentation/widget/insight/configuration/DrillMeasureSelector/DrillMeasureSelectorBody.d.ts.map +0 -1
  311. package/esm/presentation/widget/insight/configuration/DrillMeasureSelector/DrillMeasureSelectorBody.js +0 -15
  312. package/esm/presentation/widget/insight/configuration/DrillMeasureSelector/DrillMeasureSelectorItem.d.ts +0 -7
  313. package/esm/presentation/widget/insight/configuration/DrillMeasureSelector/DrillMeasureSelectorItem.d.ts.map +0 -1
  314. package/esm/presentation/widget/insight/configuration/DrillMeasureSelector/DrillMeasureSelectorItem.js +0 -8
  315. package/esm/presentation/widget/insight/configuration/DrillMeasureSelector/DrillMeasureSelectorList.d.ts +0 -7
  316. package/esm/presentation/widget/insight/configuration/DrillMeasureSelector/DrillMeasureSelectorList.d.ts.map +0 -1
  317. package/esm/presentation/widget/insight/configuration/DrillMeasureSelector/DrillMeasureSelectorList.js +0 -5
  318. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertTitle.d.ts +0 -12
  319. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertTitle.d.ts.map +0 -1
  320. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertTitle.js +0 -12
  321. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/CreateAlert.d.ts +0 -25
  322. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/CreateAlert.d.ts.map +0 -1
  323. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/CreateAlert.js +0 -5
  324. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/EditAlert.d.ts +0 -29
  325. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/EditAlert.d.ts.map +0 -1
  326. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/EditAlert.js +0 -137
  327. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/EditAlertConfiguration.d.ts +0 -11
  328. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/EditAlertConfiguration.d.ts.map +0 -1
  329. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/EditAlertConfiguration.js +0 -42
  330. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useEditAlert.d.ts +0 -48
  331. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useEditAlert.d.ts.map +0 -1
  332. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useEditAlert.js +0 -171
  333. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useWidgetAutomationFilters.d.ts +0 -4
  334. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useWidgetAutomationFilters.d.ts.map +0 -1
  335. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useWidgetAutomationFilters.js +0 -46
@@ -1,17 +1,22 @@
1
- import { type IAutomationMetadataObject, type IAutomationMetadataObjectDefinition, type ISeparators } from "@gooddata/sdk-model";
2
- import { type GoodDataSdkError } from "@gooddata/sdk-ui";
3
- import { type AlertMetric } from "../../types.js";
4
- export interface IUseAlertSubmitProps {
5
- editedAutomation: IAutomationMetadataObjectDefinition | undefined;
6
- supportedMeasures: AlertMetric[];
7
- separators?: ISeparators;
8
- alertToEdit?: IAutomationMetadataObject;
9
- onSuccess?: (alert: IAutomationMetadataObject) => void;
10
- onError?: (error: GoodDataSdkError) => void;
11
- onSaveSuccess?: (alert: IAutomationMetadataObject) => void;
12
- onSaveError?: (error: GoodDataSdkError) => void;
13
- }
14
- export declare function useAlertSubmit({ editedAutomation, supportedMeasures, separators, alertToEdit, onSuccess, onError, onSaveSuccess, onSaveError }: IUseAlertSubmitProps): {
1
+ import { type IAlertingDialogProps } from "../../types.js";
2
+ /**
3
+ * Lifecycle callbacks of {@link useAlertSubmit}: the dialog's own `onSuccess`/`onError` (create) and
4
+ * `onSaveSuccess`/`onSaveError` (edit).
5
+ *
6
+ * @internal
7
+ */
8
+ export type IUseAlertSubmitCallbacks = Pick<IAlertingDialogProps, "onSuccess" | "onError" | "onSaveSuccess" | "onSaveError">;
9
+ /**
10
+ * Submits the alerting dialog's draft: creates a new alert or saves the edited one, deriving a title
11
+ * when the draft has none, and routes the result to the matching callback. Guards against a second
12
+ * submit while one is in flight.
13
+ *
14
+ * Reads the draft, the supported measures, the edited alert and the separators from the alerting
15
+ * contexts, so it throws outside the alerting dialog's state providers.
16
+ *
17
+ * @internal
18
+ */
19
+ export declare function useAlertSubmit({ onSuccess, onError, onSaveSuccess, onSaveError }: IUseAlertSubmitCallbacks): {
15
20
  isSaving: boolean;
16
21
  submit: () => Promise<void>;
17
22
  };
@@ -1 +1 @@
1
- {"version":3,"file":"useAlertSubmit.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/automations/alerting/DefaultAlertingDialog/hooks/useAlertSubmit.ts"],"names":[],"mappings":"AAMA,OAAO,EACH,KAAK,yBAAyB,EAC9B,KAAK,mCAAmC,EACxC,KAAK,WAAW,EACnB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,KAAK,gBAAgB,EAAgB,MAAM,kBAAkB,CAAC;AAGvE,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAGlD,MAAM,WAAW,oBAAoB;IACjC,gBAAgB,EAAE,mCAAmC,GAAG,SAAS,CAAC;IAClE,iBAAiB,EAAE,WAAW,EAAE,CAAC;IACjC,UAAU,CAAC,EAAE,WAAW,CAAC;IACzB,WAAW,CAAC,EAAE,yBAAyB,CAAC;IACxC,SAAS,CAAC,EAAE,CAAC,KAAK,EAAE,yBAAyB,KAAK,IAAI,CAAC;IACvD,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,gBAAgB,KAAK,IAAI,CAAC;IAC5C,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,yBAAyB,KAAK,IAAI,CAAC;IAC3D,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,gBAAgB,KAAK,IAAI,CAAC;CACnD;AAED,wBAAgB,cAAc,CAAC,EAC3B,gBAAgB,EAChB,iBAAiB,EACjB,UAAU,EACV,WAAW,EACX,SAAS,EACT,OAAO,EACP,aAAa,EACb,WAAW,EACd,EAAE,oBAAoB,GAAG;IACtB,QAAQ,EAAE,OAAO,CAAC;IAClB,MAAM,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;CAC/B,CA4CA"}
1
+ {"version":3,"file":"useAlertSubmit.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/automations/alerting/DefaultAlertingDialog/hooks/useAlertSubmit.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,KAAK,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAG3D;;;;;GAKG;AACH,MAAM,MAAM,wBAAwB,GAAG,IAAI,CACvC,oBAAoB,EACpB,WAAW,GAAG,SAAS,GAAG,eAAe,GAAG,aAAa,CAC5D,CAAC;AAEF;;;;;;;;;GASG;AACH,wBAAgB,cAAc,CAAC,EAC3B,SAAS,EACT,OAAO,EACP,aAAa,EACb,WAAW,EACd,EAAE,wBAAwB,GAAG;IAC1B,QAAQ,EAAE,OAAO,CAAC;IAClB,MAAM,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;CAC/B,CA+CA"}
@@ -3,10 +3,26 @@ import { useRef, useState } from "react";
3
3
  import { useIntl } from "react-intl";
4
4
  import { convertError } from "@gooddata/sdk-ui";
5
5
  import { useAlertingDialogContext } from "../../../contexts/AlertingDialogContext.js";
6
+ import { useAutomationsContext } from "../../../contexts/AutomationsContext.js";
7
+ import { useAlertData } from "../../state/AlertDataContext.js";
8
+ import { useAlertDraft } from "../../state/AlertDraftContext.js";
6
9
  import { getDescription } from "../utils/getters.js";
7
- export function useAlertSubmit({ editedAutomation, supportedMeasures, separators, alertToEdit, onSuccess, onError, onSaveSuccess, onSaveError, }) {
10
+ /**
11
+ * Submits the alerting dialog's draft: creates a new alert or saves the edited one, deriving a title
12
+ * when the draft has none, and routes the result to the matching callback. Guards against a second
13
+ * submit while one is in flight.
14
+ *
15
+ * Reads the draft, the supported measures, the edited alert and the separators from the alerting
16
+ * contexts, so it throws outside the alerting dialog's state providers.
17
+ *
18
+ * @internal
19
+ */
20
+ export function useAlertSubmit({ onSuccess, onError, onSaveSuccess, onSaveError, }) {
8
21
  const intl = useIntl();
9
- const { createAlert, saveAlert } = useAlertingDialogContext();
22
+ const { separators } = useAutomationsContext();
23
+ const { createAlert, saveAlert, alertToEdit } = useAlertingDialogContext();
24
+ const { editedAutomation } = useAlertDraft();
25
+ const { supportedMeasures } = useAlertData();
10
26
  const [isSaving, setIsSaving] = useState(false);
11
27
  const submitInFlight = useRef(false);
12
28
  const submit = async () => {
@@ -1,13 +1,4 @@
1
- import { type useAlertFormState } from "./useAlertFormState.js";
2
- /**
3
- * The alerting dialog's mutators: the draft setter and every form change-handler.
4
- *
5
- * Changes rarely: `onGranularityChange` is re-created when `triggerIntervalDirty` toggles or the
6
- * supported measures load. The shape is derived from `useAlertFormState`, which owns them.
7
- *
8
- * @internal
9
- */
10
- export type IAlertActionsContextValue = Pick<ReturnType<typeof useAlertFormState>, "setEditedAutomation" | "onTitleChange" | "onMeasureChange" | "onAttributeChange" | "onComparisonOperatorChange" | "onRelativeOperatorChange" | "onAnomalyDetectionChange" | "onComparisonTypeChange" | "onSensitivityChange" | "onTriggerIntervalChange" | "onGranularityChange" | "onDestinationChange" | "onTriggerModeChange" | "onRecipientsChange">;
1
+ import { type IAlertActionsContextValue } from "./types.js";
11
2
  export declare const AlertActionsContextProvider: import("react").Provider<IAlertActionsContextValue | undefined>;
12
3
  /**
13
4
  * Reads the alerting dialog's mutators.
@@ -1 +1 @@
1
- {"version":3,"file":"AlertActionsContext.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/automations/alerting/state/AlertActionsContext.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAEhE;;;;;;;GAOG;AACH,MAAM,MAAM,yBAAyB,GAAG,IAAI,CACxC,UAAU,CAAC,OAAO,iBAAiB,CAAC,EAClC,qBAAqB,GACrB,eAAe,GACf,iBAAiB,GACjB,mBAAmB,GACnB,4BAA4B,GAC5B,0BAA0B,GAC1B,0BAA0B,GAC1B,wBAAwB,GACxB,qBAAqB,GACrB,yBAAyB,GACzB,qBAAqB,GACrB,qBAAqB,GACrB,qBAAqB,GACrB,oBAAoB,CACzB,CAAC;AAKF,eAAO,MAAM,2BAA2B,iEAA+B,CAAC;AAExE;;;;;;;;;GASG;AACH,wBAAgB,eAAe,IAAI,yBAAyB,CAE3D"}
1
+ {"version":3,"file":"AlertActionsContext.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/automations/alerting/state/AlertActionsContext.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,yBAAyB,EAAE,MAAM,YAAY,CAAC;AAK5D,eAAO,MAAM,2BAA2B,iEAA+B,CAAC;AAExE;;;;;;;;;GASG;AACH,wBAAgB,eAAe,IAAI,yBAAyB,CAE3D"}
@@ -1,14 +1,4 @@
1
- import { type useAlertFormState } from "./useAlertFormState.js";
2
- import { type useAlertSupportedMetrics } from "./useAlertSupportedMetrics.js";
3
- /**
4
- * The data the alerting dialog loads asynchronously: the supported measures and attributes with
5
- * their formats, the execution-result readers, and the current user's default recipients.
6
- *
7
- * Changes when an async load resolves, not per keystroke.
8
- *
9
- * @internal
10
- */
11
- export type IAlertDataContextValue = Pick<ReturnType<typeof useAlertSupportedMetrics>, "supportedMeasures" | "supportedAttributes" | "measureFormatMap" | "isResultLoading" | "getAttributeValues" | "getMetricValue"> & Pick<ReturnType<typeof useAlertFormState>, "defaultUser" | "defaultRecipient">;
1
+ import { type IAlertDataContextValue } from "./types.js";
12
2
  export declare const AlertDataContextProvider: import("react").Provider<IAlertDataContextValue | undefined>;
13
3
  /**
14
4
  * Reads the data the alerting dialog loads asynchronously.
@@ -1 +1 @@
1
- {"version":3,"file":"AlertDataContext.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/automations/alerting/state/AlertDataContext.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAChE,OAAO,EAAE,KAAK,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AAE9E;;;;;;;GAOG;AACH,MAAM,MAAM,sBAAsB,GAAG,IAAI,CACrC,UAAU,CAAC,OAAO,wBAAwB,CAAC,EACzC,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,GAClB,iBAAiB,GACjB,oBAAoB,GACpB,gBAAgB,CACrB,GACG,IAAI,CAAC,UAAU,CAAC,OAAO,iBAAiB,CAAC,EAAE,aAAa,GAAG,kBAAkB,CAAC,CAAC;AAKnF,eAAO,MAAM,wBAAwB,8DAA4B,CAAC;AAElE;;;;;;;;;GASG;AACH,wBAAgB,YAAY,IAAI,sBAAsB,CAErD"}
1
+ {"version":3,"file":"AlertDataContext.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/automations/alerting/state/AlertDataContext.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,sBAAsB,EAAE,MAAM,YAAY,CAAC;AAKzD,eAAO,MAAM,wBAAwB,8DAA4B,CAAC;AAElE;;;;;;;;;GASG;AACH,wBAAgB,YAAY,IAAI,sBAAsB,CAErD"}
@@ -1,14 +1,4 @@
1
- import { type useAlertFormState } from "./useAlertFormState.js";
2
- /**
3
- * The alerting dialog's edit draft: the automation being edited, the baseline it is compared
4
- * against, and the form-level warning and title-validity flag that move with it.
5
- *
6
- * Changes on every keystroke; consumers re-render by design. The shape is derived from
7
- * `useAlertFormState`, which owns these values.
8
- *
9
- * @internal
10
- */
11
- export type IAlertDraftContextValue = Pick<ReturnType<typeof useAlertFormState>, "editedAutomation" | "originalAutomation" | "warningMessage" | "isTitleValid">;
1
+ import { type IAlertDraftContextValue } from "./types.js";
12
2
  export declare const AlertDraftContextProvider: import("react").Provider<IAlertDraftContextValue | undefined>;
13
3
  /**
14
4
  * Reads the alerting dialog's edit draft.
@@ -1 +1 @@
1
- {"version":3,"file":"AlertDraftContext.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/automations/alerting/state/AlertDraftContext.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAEhE;;;;;;;;GAQG;AACH,MAAM,MAAM,uBAAuB,GAAG,IAAI,CACtC,UAAU,CAAC,OAAO,iBAAiB,CAAC,EACpC,kBAAkB,GAAG,oBAAoB,GAAG,gBAAgB,GAAG,cAAc,CAChF,CAAC;AAKF,eAAO,MAAM,yBAAyB,+DAA6B,CAAC;AAEpE;;;;;;;;;GASG;AACH,wBAAgB,aAAa,IAAI,uBAAuB,CAEvD"}
1
+ {"version":3,"file":"AlertDraftContext.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/automations/alerting/state/AlertDraftContext.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,uBAAuB,EAAE,MAAM,YAAY,CAAC;AAK1D,eAAO,MAAM,yBAAyB,+DAA6B,CAAC;AAEpE;;;;;;;;;GASG;AACH,wBAAgB,aAAa,IAAI,uBAAuB,CAEvD"}
@@ -1,16 +1,4 @@
1
- import { type useAlertFiltersModel } from "./useAlertFiltersModel.js";
2
- import { type useAlertFormState } from "./useAlertFormState.js";
3
- /**
4
- * The alerting dialog's filter and export-parameter model: the current selection, the available
5
- * filters, the two filter mutators and the staleness flags, plus the automation's execution
6
- * parameters and their mutators.
7
- *
8
- * Changes when a filter or a parameter is edited. The shape is derived from
9
- * `useAlertFiltersModel` and from the parameter members `useAlertFormState` re-exports.
10
- *
11
- * @internal
12
- */
13
- export type IAlertFiltersContextValue = Pick<ReturnType<typeof useAlertFiltersModel>, "selectedFilters" | "availableFilters" | "onFiltersChange" | "onApplyCurrentFilters" | "automationIsValid" | "filtersAreStale"> & Pick<ReturnType<typeof useAlertFormState>, "automationParameters" | "availableParameters" | "onParameterChange" | "onParameterDelete" | "onParameterAdd" | "dropStaleParameters">;
1
+ import { type IAlertFiltersContextValue } from "./types.js";
14
2
  export declare const AlertFiltersContextProvider: import("react").Provider<IAlertFiltersContextValue | undefined>;
15
3
  /**
16
4
  * Reads the alerting dialog's filter and export-parameter model.
@@ -1 +1 @@
1
- {"version":3,"file":"AlertFiltersContext.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/automations/alerting/state/AlertFiltersContext.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACtE,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAEhE;;;;;;;;;GASG;AACH,MAAM,MAAM,yBAAyB,GAAG,IAAI,CACxC,UAAU,CAAC,OAAO,oBAAoB,CAAC,EACrC,iBAAiB,GACjB,kBAAkB,GAClB,iBAAiB,GACjB,uBAAuB,GACvB,mBAAmB,GACnB,iBAAiB,CACtB,GACG,IAAI,CACA,UAAU,CAAC,OAAO,iBAAiB,CAAC,EAClC,sBAAsB,GACtB,qBAAqB,GACrB,mBAAmB,GACnB,mBAAmB,GACnB,gBAAgB,GAChB,qBAAqB,CAC1B,CAAC;AAKN,eAAO,MAAM,2BAA2B,iEAA+B,CAAC;AAExE;;;;;;;;;GASG;AACH,wBAAgB,eAAe,IAAI,yBAAyB,CAE3D"}
1
+ {"version":3,"file":"AlertFiltersContext.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/automations/alerting/state/AlertFiltersContext.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,yBAAyB,EAAE,MAAM,YAAY,CAAC;AAK5D,eAAO,MAAM,2BAA2B,iEAA+B,CAAC;AAExE;;;;;;;;;GASG;AACH,wBAAgB,eAAe,IAAI,yBAAyB,CAE3D"}
@@ -1 +1 @@
1
- {"version":3,"file":"AlertingDialogStateProvider.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/automations/alerting/state/AlertingDialogStateProvider.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAAW,MAAM,OAAO,CAAC;AAehD;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,2BAA2B,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,SAAS,CAAA;CAAE,2CAIhF"}
1
+ {"version":3,"file":"AlertingDialogStateProvider.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/automations/alerting/state/AlertingDialogStateProvider.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAAW,MAAM,OAAO,CAAC;AAqBhD;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,2BAA2B,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,SAAS,CAAA;CAAE,2CAIhF"}
@@ -0,0 +1,156 @@
1
+ import { type Dispatch, type SetStateAction } from "react";
2
+ import { type DateAttributeGranularity, type FilterContextItem, type IAlertAnomalyDetectionGranularity, type IAlertAnomalyDetectionSensitivity, type IAlertComparisonOperator, type IAlertRelativeArithmeticOperator, type IAlertRelativeOperator, type IAlertTriggerInterval, type IAlertTriggerMode, type IAttribute, type IAttributeMetadataObject, type IAutomationMetadataObjectDefinition, type IAutomationRecipient, type IMeasure, type IdentifierRef, type ParameterValue } from "@gooddata/sdk-model";
3
+ import { type IAutomationParameter } from "../../shared/automationFilters/automationParameters.js";
4
+ import { type AttributeValue } from "../DefaultAlertingDialog/hooks/useAttributeValuesFromExecResults.js";
5
+ import { type IMeasureFormatMap } from "../DefaultAlertingDialog/utils/getters.js";
6
+ import { type AlertAttribute, type AlertMetric, type AlertMetricComparatorType } from "../types.js";
7
+ /**
8
+ * The alerting dialog's edit draft: the automation being edited, the baseline it is compared
9
+ * against, and the form-level warning and title-validity flag that move with it.
10
+ *
11
+ * Changes on every keystroke; consumers re-render by design.
12
+ *
13
+ * @internal
14
+ */
15
+ export interface IAlertDraftContextValue {
16
+ /**
17
+ * The alert being edited. Undefined only before the state model has seeded it.
18
+ */
19
+ editedAutomation: IAutomationMetadataObjectDefinition | undefined;
20
+ /**
21
+ * The draft as it was when the dialog opened; the dirty check compares against it.
22
+ */
23
+ originalAutomation: IAutomationMetadataObjectDefinition | undefined;
24
+ /**
25
+ * Form-level warning shown below the form, e.g. after switching to a creator-only channel.
26
+ */
27
+ warningMessage: string | undefined;
28
+ /**
29
+ * Whether the current title passes the length limit.
30
+ */
31
+ isTitleValid: boolean;
32
+ }
33
+ /**
34
+ * The alerting dialog's mutators: the draft setter and every form change-handler.
35
+ *
36
+ * Changes rarely: `onGranularityChange` is re-created when `triggerIntervalDirty` toggles or the
37
+ * supported measures load.
38
+ *
39
+ * @internal
40
+ */
41
+ export interface IAlertActionsContextValue {
42
+ setEditedAutomation: Dispatch<SetStateAction<IAutomationMetadataObjectDefinition | undefined>>;
43
+ onTitleChange: (value: string) => void;
44
+ onMeasureChange: (measure: AlertMetric) => void;
45
+ onAttributeChange: (attribute: AlertAttribute | undefined, value: AttributeValue | undefined) => void;
46
+ onComparisonOperatorChange: (measure: AlertMetric, comparisonOperator: IAlertComparisonOperator) => void;
47
+ onRelativeOperatorChange: (measure: AlertMetric, relativeOperator: IAlertRelativeOperator, arithmeticOperator: IAlertRelativeArithmeticOperator) => void;
48
+ onAnomalyDetectionChange: (measure: AlertMetric) => void;
49
+ onComparisonTypeChange: (measure: AlertMetric | undefined, relativeOperator: [IAlertRelativeOperator, IAlertRelativeArithmeticOperator] | undefined, comparisonType: AlertMetricComparatorType, granularity?: DateAttributeGranularity) => void;
50
+ onSensitivityChange: (sensitivity: IAlertAnomalyDetectionSensitivity) => void;
51
+ /**
52
+ * `dirty` defaults to true; the granularity handler passes false when it derives the interval.
53
+ */
54
+ onTriggerIntervalChange: (triggerInterval: IAlertTriggerInterval, dirty?: boolean) => void;
55
+ onGranularityChange: (measure: AlertMetric | undefined, granularity: IAlertAnomalyDetectionGranularity) => void;
56
+ onDestinationChange: (destinationId: string) => void;
57
+ onTriggerModeChange: (triggerMode: IAlertTriggerMode) => void;
58
+ onRecipientsChange: (recipients: IAutomationRecipient[]) => void;
59
+ }
60
+ /**
61
+ * The data the alerting dialog loads asynchronously: the supported measures and attributes with
62
+ * their formats, the execution-result readers, and the current user's default recipients.
63
+ *
64
+ * Changes when an async load resolves, not per keystroke.
65
+ *
66
+ * @internal
67
+ */
68
+ export interface IAlertDataContextValue {
69
+ supportedMeasures: AlertMetric[];
70
+ supportedAttributes: AlertAttribute[];
71
+ measureFormatMap: IMeasureFormatMap;
72
+ /**
73
+ * Whether the widget's execution result is still loading.
74
+ */
75
+ isResultLoading: boolean;
76
+ /**
77
+ * Distinct values of an attribute in the widget's execution result.
78
+ */
79
+ getAttributeValues: (attribute: IAttributeMetadataObject) => AttributeValue[];
80
+ /**
81
+ * The measure's current value, optionally sliced by an attribute value; undefined while loading.
82
+ */
83
+ getMetricValue: (measure?: IMeasure, attribute?: IAttribute, value?: string | null) => number | undefined;
84
+ /**
85
+ * The logged-in user as a recipient.
86
+ */
87
+ defaultUser: IAutomationRecipient;
88
+ /**
89
+ * The recipient a new alert is seeded with; an external-recipient override replaces the user.
90
+ */
91
+ defaultRecipient: IAutomationRecipient;
92
+ }
93
+ /**
94
+ * The alerting dialog's filter and export-parameter model: the current selection, the available
95
+ * filters, the two filter mutators and the staleness flags, plus the automation's execution
96
+ * parameters and their mutators.
97
+ *
98
+ * Changes when a filter or a parameter is edited.
99
+ *
100
+ * @internal
101
+ */
102
+ export interface IAlertFiltersContextValue {
103
+ selectedFilters: FilterContextItem[];
104
+ availableFilters: FilterContextItem[] | undefined;
105
+ /**
106
+ * Replaces the selection with the complete updated array and mirrors it into the draft.
107
+ */
108
+ onFiltersChange: (filters: FilterContextItem[]) => void;
109
+ /**
110
+ * Replaces the selection with the dashboard's current filters (the stale-filters repair).
111
+ */
112
+ onApplyCurrentFilters: () => void;
113
+ /**
114
+ * False when the saved filters or the saved parameters no longer match the dashboard; gates the
115
+ * stale-filters confirmation.
116
+ */
117
+ automationIsValid: boolean;
118
+ /**
119
+ * Whether the saved filters alone no longer match the dashboard.
120
+ */
121
+ filtersAreStale: boolean;
122
+ /**
123
+ * The parameter chips to render. Empty when the `enableParameters` feature is off.
124
+ */
125
+ automationParameters: IAutomationParameter[];
126
+ /**
127
+ * Workspace parameters addable via the "+" menu. Empty when the feature is off.
128
+ */
129
+ availableParameters: IAutomationParameter[];
130
+ onParameterChange: (ref: IdentifierRef, value: ParameterValue) => void;
131
+ onParameterDelete: (ref: IdentifierRef) => void;
132
+ onParameterAdd: (ref: IdentifierRef) => void;
133
+ /**
134
+ * Drops stored parameters whose `ref` left the workspace catalog, keeping every other override.
135
+ */
136
+ dropStaleParameters: () => void;
137
+ }
138
+ /**
139
+ * Return type of `useAlertFormState`, composed from the context values it feeds.
140
+ *
141
+ * @internal
142
+ */
143
+ export type IAlertFormState = IAlertDraftContextValue & IAlertActionsContextValue & Pick<IAlertDataContextValue, "defaultUser" | "defaultRecipient"> & Pick<IAlertFiltersContextValue, "automationParameters" | "availableParameters" | "onParameterChange" | "onParameterDelete" | "onParameterAdd" | "dropStaleParameters">;
144
+ /**
145
+ * Return type of `useAlertSupportedMetrics`.
146
+ *
147
+ * @internal
148
+ */
149
+ export type IAlertSupportedMetrics = Pick<IAlertDataContextValue, "supportedMeasures" | "supportedAttributes" | "measureFormatMap" | "isResultLoading" | "getAttributeValues" | "getMetricValue">;
150
+ /**
151
+ * Return type of `useAlertFiltersModel`.
152
+ *
153
+ * @internal
154
+ */
155
+ export type IAlertFiltersModel = Pick<IAlertFiltersContextValue, "selectedFilters" | "availableFilters" | "onFiltersChange" | "onApplyCurrentFilters" | "automationIsValid" | "filtersAreStale">;
156
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/automations/alerting/state/types.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,2 @@
1
+ // (C) 2026 GoodData Corporation
2
+ export {};
@@ -2,6 +2,7 @@ import { type Dispatch, type SetStateAction } from "react";
2
2
  import { type FilterContextItem, type IAutomationMetadataObject, type IAutomationMetadataObjectDefinition, type IAutomationVisibleFilter, type IInsight, type IWidget, type WeekStart } from "@gooddata/sdk-model";
3
3
  import { type IMeasureFormatMap } from "../DefaultAlertingDialog/utils/getters.js";
4
4
  import { type AlertAttribute, type AlertMetric } from "../types.js";
5
+ import { type IAlertFiltersModel } from "./types.js";
5
6
  /**
6
7
  * Props for {@link useAlertFiltersModel}.
7
8
  * @internal
@@ -40,12 +41,5 @@ export interface IUseAlertFiltersModelProps {
40
41
  *
41
42
  * @internal
42
43
  */
43
- export declare function useAlertFiltersModel({ setEditedAutomation, alertToEdit, editedAutomationFilters, setEditedAutomationFilters, availableFilters, filtersForNewAutomation, availableFiltersAsVisibleFilters, dashboardHiddenFilters, commonDateFilterId, widget, insight, supportedMeasures, supportedAttributes, measureFormatMap, selectedMeasure, selectedAttribute, selectedValue, weekStart, timezone }: IUseAlertFiltersModelProps): {
44
- selectedFilters: FilterContextItem[];
45
- availableFilters: FilterContextItem[] | undefined;
46
- onFiltersChange: (filters: FilterContextItem[]) => void;
47
- onApplyCurrentFilters: () => void;
48
- automationIsValid: boolean;
49
- filtersAreStale: boolean;
50
- };
44
+ export declare function useAlertFiltersModel({ setEditedAutomation, alertToEdit, editedAutomationFilters, setEditedAutomationFilters, availableFilters, filtersForNewAutomation, availableFiltersAsVisibleFilters, dashboardHiddenFilters, commonDateFilterId, widget, insight, supportedMeasures, supportedAttributes, measureFormatMap, selectedMeasure, selectedAttribute, selectedValue, weekStart, timezone }: IUseAlertFiltersModelProps): IAlertFiltersModel;
51
45
  //# sourceMappingURL=useAlertFiltersModel.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useAlertFiltersModel.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/automations/alerting/state/useAlertFiltersModel.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,QAAQ,EAAE,KAAK,cAAc,EAAe,MAAM,OAAO,CAAC;AAExE,OAAO,EACH,KAAK,iBAAiB,EACtB,KAAK,yBAAyB,EAC9B,KAAK,mCAAmC,EACxC,KAAK,wBAAwB,EAC7B,KAAK,QAAQ,EACb,KAAK,OAAO,EACZ,KAAK,SAAS,EACjB,MAAM,qBAAqB,CAAC;AAI7B,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,2CAA2C,CAAC;AAKnF,OAAO,EAAE,KAAK,cAAc,EAAE,KAAK,WAAW,EAAE,MAAM,aAAa,CAAC;AAEpE;;;GAGG;AACH,MAAM,WAAW,0BAA0B;IACvC,mBAAmB,EAAE,QAAQ,CAAC,cAAc,CAAC,mCAAmC,GAAG,SAAS,CAAC,CAAC,CAAC;IAC/F,WAAW,CAAC,EAAE,yBAAyB,CAAC;IACxC,uBAAuB,EAAE,iBAAiB,EAAE,CAAC;IAC7C,0BAA0B,EAAE,CAAC,OAAO,EAAE,iBAAiB,EAAE,KAAK,IAAI,CAAC;IACnE,gBAAgB,CAAC,EAAE,iBAAiB,EAAE,CAAC;IACvC,uBAAuB,EAAE,iBAAiB,EAAE,CAAC;IAC7C,gCAAgC,CAAC,EAAE,wBAAwB,EAAE,GAAG,SAAS,CAAC;IAC1E,sBAAsB,EAAE,iBAAiB,EAAE,CAAC;IAC5C,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,OAAO,CAAC,EAAE,QAAQ,CAAC;IACnB,iBAAiB,EAAE,WAAW,EAAE,CAAC;IACjC,mBAAmB,EAAE,cAAc,EAAE,CAAC;IACtC,gBAAgB,EAAE,iBAAiB,CAAC;IACpC,eAAe,EAAE,WAAW,GAAG,SAAS,CAAC;IACzC,iBAAiB,EAAE,cAAc,GAAG,SAAS,CAAC;IAC9C,aAAa,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACzC,SAAS,EAAE,SAAS,CAAC;IACrB,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAC;CAChC;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,oBAAoB,CAAC,EACjC,mBAAmB,EACnB,WAAW,EACX,uBAAuB,EACvB,0BAA0B,EAC1B,gBAAgB,EAChB,uBAAuB,EACvB,gCAAgC,EAChC,sBAAsB,EACtB,kBAAkB,EAClB,MAAM,EACN,OAAO,EACP,iBAAiB,EACjB,mBAAmB,EACnB,gBAAgB,EAChB,eAAe,EACf,iBAAiB,EACjB,aAAa,EACb,SAAS,EACT,QAAQ,EACX,EAAE,0BAA0B,GAAG;IAC5B,eAAe,EAAE,iBAAiB,EAAE,CAAC;IACrC,gBAAgB,EAAE,iBAAiB,EAAE,GAAG,SAAS,CAAC;IAClD,eAAe,EAAE,CAAC,OAAO,EAAE,iBAAiB,EAAE,KAAK,IAAI,CAAC;IACxD,qBAAqB,EAAE,MAAM,IAAI,CAAC;IAClC,iBAAiB,EAAE,OAAO,CAAC;IAC3B,eAAe,EAAE,OAAO,CAAC;CAC5B,CAsGA"}
1
+ {"version":3,"file":"useAlertFiltersModel.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/automations/alerting/state/useAlertFiltersModel.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,QAAQ,EAAE,KAAK,cAAc,EAAe,MAAM,OAAO,CAAC;AAExE,OAAO,EACH,KAAK,iBAAiB,EACtB,KAAK,yBAAyB,EAC9B,KAAK,mCAAmC,EACxC,KAAK,wBAAwB,EAC7B,KAAK,QAAQ,EACb,KAAK,OAAO,EACZ,KAAK,SAAS,EACjB,MAAM,qBAAqB,CAAC;AAI7B,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,2CAA2C,CAAC;AAKnF,OAAO,EAAE,KAAK,cAAc,EAAE,KAAK,WAAW,EAAE,MAAM,aAAa,CAAC;AAEpE,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAErD;;;GAGG;AACH,MAAM,WAAW,0BAA0B;IACvC,mBAAmB,EAAE,QAAQ,CAAC,cAAc,CAAC,mCAAmC,GAAG,SAAS,CAAC,CAAC,CAAC;IAC/F,WAAW,CAAC,EAAE,yBAAyB,CAAC;IACxC,uBAAuB,EAAE,iBAAiB,EAAE,CAAC;IAC7C,0BAA0B,EAAE,CAAC,OAAO,EAAE,iBAAiB,EAAE,KAAK,IAAI,CAAC;IACnE,gBAAgB,CAAC,EAAE,iBAAiB,EAAE,CAAC;IACvC,uBAAuB,EAAE,iBAAiB,EAAE,CAAC;IAC7C,gCAAgC,CAAC,EAAE,wBAAwB,EAAE,GAAG,SAAS,CAAC;IAC1E,sBAAsB,EAAE,iBAAiB,EAAE,CAAC;IAC5C,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,OAAO,CAAC,EAAE,QAAQ,CAAC;IACnB,iBAAiB,EAAE,WAAW,EAAE,CAAC;IACjC,mBAAmB,EAAE,cAAc,EAAE,CAAC;IACtC,gBAAgB,EAAE,iBAAiB,CAAC;IACpC,eAAe,EAAE,WAAW,GAAG,SAAS,CAAC;IACzC,iBAAiB,EAAE,cAAc,GAAG,SAAS,CAAC;IAC9C,aAAa,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACzC,SAAS,EAAE,SAAS,CAAC;IACrB,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAC;CAChC;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,oBAAoB,CAAC,EACjC,mBAAmB,EACnB,WAAW,EACX,uBAAuB,EACvB,0BAA0B,EAC1B,gBAAgB,EAChB,uBAAuB,EACvB,gCAAgC,EAChC,sBAAsB,EACtB,kBAAkB,EAClB,MAAM,EACN,OAAO,EACP,iBAAiB,EACjB,mBAAmB,EACnB,gBAAgB,EAChB,eAAe,EACf,iBAAiB,EACjB,aAAa,EACb,SAAS,EACT,QAAQ,EACX,EAAE,0BAA0B,GAAG,kBAAkB,CAsGjD"}
@@ -1,6 +1,7 @@
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 } from "@gooddata/sdk-model";
1
+ import { type FilterContextItem, type IAutomationMetadataObject, type IAutomationVisibleFilter, type IInsight, type INotificationChannelIdentifier, type INotificationChannelMetadataObject, type IWidget } from "@gooddata/sdk-model";
2
2
  import { type IMeasureFormatMap } from "../DefaultAlertingDialog/utils/getters.js";
3
- import { type AlertAttribute, type AlertMetric, type AlertMetricComparatorType } from "../types.js";
3
+ import { type AlertAttribute, type AlertMetric } from "../types.js";
4
+ import { type IAlertFormState } from "./types.js";
4
5
  /**
5
6
  * Props for {@link useAlertFormState}.
6
7
  * @internal
@@ -28,36 +29,5 @@ export interface IUseAlertFormStateProps {
28
29
  *
29
30
  * @internal
30
31
  */
31
- export declare function useAlertFormState({ alertToEdit, insight, widget, notificationChannels, editedAutomationFilters, availableFiltersAsVisibleFilters, externalRecipientOverride, supportedMeasures, supportedAttributes, measureFormatMap }: IUseAlertFormStateProps): {
32
- editedAutomation: IAutomationMetadataObjectDefinition | undefined;
33
- setEditedAutomation: import("react").Dispatch<import("react").SetStateAction<IAutomationMetadataObjectDefinition | undefined>>;
34
- originalAutomation: IAutomationMetadataObjectDefinition | undefined;
35
- defaultUser: IAutomationRecipient;
36
- defaultRecipient: IAutomationRecipient;
37
- automationParameters: import("../../shared/automationFilters/automationParameters.js").IAutomationParameter[];
38
- availableParameters: import("../../shared/automationFilters/automationParameters.js").IAutomationParameter[];
39
- onParameterChange: (ref: import("@gooddata/sdk-model").IdentifierRef, value: string | number) => void;
40
- onParameterDelete: (ref: import("@gooddata/sdk-model").IdentifierRef) => void;
41
- onParameterAdd: (ref: import("@gooddata/sdk-model").IdentifierRef) => void;
42
- dropStaleParameters: () => void;
43
- onTitleChange: (value: string) => void;
44
- onMeasureChange: (measure: AlertMetric) => void;
45
- onAttributeChange: (attribute: AlertAttribute | undefined, value: {
46
- title: string;
47
- value: string;
48
- name: string;
49
- } | undefined) => void;
50
- onComparisonOperatorChange: (measure: AlertMetric, comparisonOperator: IAlertComparisonOperator) => void;
51
- onRelativeOperatorChange: (measure: AlertMetric, relativeOperator: IAlertRelativeOperator, arithmeticOperator: IAlertRelativeArithmeticOperator) => void;
52
- onAnomalyDetectionChange: (measure: AlertMetric) => void;
53
- onComparisonTypeChange: (measure: AlertMetric | undefined, relativeOperator: [IAlertRelativeOperator, IAlertRelativeArithmeticOperator] | undefined, comparisonType: AlertMetricComparatorType, granularity?: DateAttributeGranularity | undefined) => void;
54
- onSensitivityChange: (sensitivity: IAlertAnomalyDetectionSensitivity) => void;
55
- onTriggerIntervalChange: (triggerInterval: IAlertTriggerInterval, dirty?: boolean) => void;
56
- onGranularityChange: (measure: AlertMetric | undefined, granularity: IAlertAnomalyDetectionGranularity) => void;
57
- onDestinationChange: (destinationId: string) => void;
58
- onTriggerModeChange: (triggerMode: IAlertTriggerMode) => void;
59
- onRecipientsChange: (updatedRecipients: IAutomationRecipient[]) => void;
60
- warningMessage: string | undefined;
61
- isTitleValid: boolean;
62
- };
32
+ export declare function useAlertFormState({ alertToEdit, insight, widget, notificationChannels, editedAutomationFilters, availableFiltersAsVisibleFilters, externalRecipientOverride, supportedMeasures, supportedAttributes, measureFormatMap }: IUseAlertFormStateProps): IAlertFormState;
63
33
  //# sourceMappingURL=useAlertFormState.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useAlertFormState.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/automations/alerting/state/useAlertFormState.ts"],"names":[],"mappings":"AAMA,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,EACf,MAAM,qBAAqB,CAAC;AAiB7B,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,2CAA2C,CAAC;AAWnF,OAAO,EAAE,KAAK,cAAc,EAAE,KAAK,WAAW,EAAE,KAAK,yBAAyB,EAAE,MAAM,aAAa,CAAC;AAEpG;;;GAGG;AACH,MAAM,WAAW,uBAAuB;IACpC,WAAW,CAAC,EAAE,yBAAyB,CAAC;IACxC,OAAO,CAAC,EAAE,QAAQ,CAAC;IACnB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,oBAAoB,EAAE,8BAA8B,EAAE,GAAG,kCAAkC,EAAE,CAAC;IAC9F,uBAAuB,CAAC,EAAE,iBAAiB,EAAE,CAAC;IAC9C,gCAAgC,CAAC,EAAE,wBAAwB,EAAE,GAAG,SAAS,CAAC;IAC1E,yBAAyB,CAAC,EAAE,MAAM,CAAC;IACnC,iBAAiB,EAAE,WAAW,EAAE,CAAC;IACjC,mBAAmB,EAAE,cAAc,EAAE,CAAC;IACtC,gBAAgB,EAAE,iBAAiB,CAAC;CACvC;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,iBAAiB,CAAC,EAC9B,WAAW,EACX,OAAO,EACP,MAAM,EACN,oBAAoB,EACpB,uBAAuB,EACvB,gCAAgC,EAChC,yBAAyB,EACzB,iBAAiB,EACjB,mBAAmB,EACnB,gBAAgB,EACnB,EAAE,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA6ZzB"}
1
+ {"version":3,"file":"useAlertFormState.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/automations/alerting/state/useAlertFormState.ts"],"names":[],"mappings":"AAMA,OAAO,EAEH,KAAK,iBAAiB,EAQtB,KAAK,yBAAyB,EAG9B,KAAK,wBAAwB,EAC7B,KAAK,QAAQ,EAEb,KAAK,8BAA8B,EACnC,KAAK,kCAAkC,EACvC,KAAK,OAAO,EACf,MAAM,qBAAqB,CAAC;AAiB7B,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,2CAA2C,CAAC;AAWnF,OAAO,EAAE,KAAK,cAAc,EAAE,KAAK,WAAW,EAAkC,MAAM,aAAa,CAAC;AAEpG,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,YAAY,CAAC;AAElD;;;GAGG;AACH,MAAM,WAAW,uBAAuB;IACpC,WAAW,CAAC,EAAE,yBAAyB,CAAC;IACxC,OAAO,CAAC,EAAE,QAAQ,CAAC;IACnB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,oBAAoB,EAAE,8BAA8B,EAAE,GAAG,kCAAkC,EAAE,CAAC;IAC9F,uBAAuB,CAAC,EAAE,iBAAiB,EAAE,CAAC;IAC9C,gCAAgC,CAAC,EAAE,wBAAwB,EAAE,GAAG,SAAS,CAAC;IAC1E,yBAAyB,CAAC,EAAE,MAAM,CAAC;IACnC,iBAAiB,EAAE,WAAW,EAAE,CAAC;IACjC,mBAAmB,EAAE,cAAc,EAAE,CAAC;IACtC,gBAAgB,EAAE,iBAAiB,CAAC;CACvC;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,iBAAiB,CAAC,EAC9B,WAAW,EACX,OAAO,EACP,MAAM,EACN,oBAAoB,EACpB,uBAAuB,EACvB,gCAAgC,EAChC,yBAAyB,EACzB,iBAAiB,EACjB,mBAAmB,EACnB,gBAAgB,EACnB,EAAE,uBAAuB,GAAG,eAAe,CA6Z3C"}
@@ -1,7 +1,5 @@
1
1
  import { type IAutomationMetadataObject, type IInsight, type IWidget } from "@gooddata/sdk-model";
2
- import { useAttributeValuesFromExecResults } from "../DefaultAlertingDialog/hooks/useAttributeValuesFromExecResults.js";
3
- import { type IMeasureFormatMap } from "../DefaultAlertingDialog/utils/getters.js";
4
- import { type AlertAttribute, type AlertMetric } from "../types.js";
2
+ import { type IAlertSupportedMetrics } from "./types.js";
5
3
  export interface IUseAlertSupportedMetricsProps {
6
4
  insight?: IInsight;
7
5
  widget?: IWidget;
@@ -17,12 +15,5 @@ export interface IUseAlertSupportedMetricsProps {
17
15
  *
18
16
  * @internal
19
17
  */
20
- export declare function useAlertSupportedMetrics({ insight, widget, alertToEdit }: IUseAlertSupportedMetricsProps): {
21
- measureFormatMap: IMeasureFormatMap;
22
- supportedMeasures: AlertMetric[];
23
- supportedAttributes: AlertAttribute[];
24
- isResultLoading: boolean;
25
- getAttributeValues: ReturnType<typeof useAttributeValuesFromExecResults>["getAttributeValues"];
26
- getMetricValue: ReturnType<typeof useAttributeValuesFromExecResults>["getMetricValue"];
27
- };
18
+ export declare function useAlertSupportedMetrics({ insight, widget, alertToEdit }: IUseAlertSupportedMetricsProps): IAlertSupportedMetrics;
28
19
  //# sourceMappingURL=useAlertSupportedMetrics.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useAlertSupportedMetrics.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/automations/alerting/state/useAlertSupportedMetrics.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,yBAAyB,EAAE,KAAK,QAAQ,EAAE,KAAK,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAKlG,OAAO,EAAE,iCAAiC,EAAE,MAAM,qEAAqE,CAAC;AACxH,OAAO,EACH,KAAK,iBAAiB,EAEzB,MAAM,2CAA2C,CAAC;AAKnD,OAAO,EAAE,KAAK,cAAc,EAAE,KAAK,WAAW,EAAE,MAAM,aAAa,CAAC;AAEpE,MAAM,WAAW,8BAA8B;IAC3C,OAAO,CAAC,EAAE,QAAQ,CAAC;IACnB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,WAAW,CAAC,EAAE,yBAAyB,CAAC;CAC3C;AAED;;;;;;;;;GASG;AACH,wBAAgB,wBAAwB,CAAC,EAAE,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,EAAE,8BAA8B,GAAG;IACxG,gBAAgB,EAAE,iBAAiB,CAAC;IACpC,iBAAiB,EAAE,WAAW,EAAE,CAAC;IACjC,mBAAmB,EAAE,cAAc,EAAE,CAAC;IACtC,eAAe,EAAE,OAAO,CAAC;IACzB,kBAAkB,EAAE,UAAU,CAAC,OAAO,iCAAiC,CAAC,CAAC,oBAAoB,CAAC,CAAC;IAC/F,cAAc,EAAE,UAAU,CAAC,OAAO,iCAAiC,CAAC,CAAC,gBAAgB,CAAC,CAAC;CAC1F,CA8CA"}
1
+ {"version":3,"file":"useAlertSupportedMetrics.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/automations/alerting/state/useAlertSupportedMetrics.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,yBAAyB,EAAE,KAAK,QAAQ,EAAE,KAAK,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAYlG,OAAO,EAAE,KAAK,sBAAsB,EAAE,MAAM,YAAY,CAAC;AAEzD,MAAM,WAAW,8BAA8B;IAC3C,OAAO,CAAC,EAAE,QAAQ,CAAC;IACnB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,WAAW,CAAC,EAAE,yBAAyB,CAAC;CAC3C;AAED;;;;;;;;;GASG;AACH,wBAAgB,wBAAwB,CAAC,EACrC,OAAO,EACP,MAAM,EACN,WAAW,EACd,EAAE,8BAA8B,GAAG,sBAAsB,CA8CzD"}
@@ -4,7 +4,7 @@ import { fillMissingTitles } from "@gooddata/sdk-ui";
4
4
  import { useAlertingDialogContext } from "../../contexts/AlertingDialogContext.js";
5
5
  import { useAutomationsContext } from "../../contexts/AutomationsContext.js";
6
6
  import { useAttributeValuesFromExecResults } from "../DefaultAlertingDialog/hooks/useAttributeValuesFromExecResults.js";
7
- import { getMeasureFormatsFromExecution, } from "../DefaultAlertingDialog/utils/getters.js";
7
+ import { getMeasureFormatsFromExecution } from "../DefaultAlertingDialog/utils/getters.js";
8
8
  import { getSupportedInsightAttributesByInsight, getSupportedInsightMeasuresByInsight, } from "../DefaultAlertingDialog/utils/items.js";
9
9
  /**
10
10
  * Derives which measures and attributes the alerting dialog may offer for the current widget: it
@@ -16,7 +16,7 @@ import { getSupportedInsightAttributesByInsight, getSupportedInsightMeasuresByIn
16
16
  *
17
17
  * @internal
18
18
  */
19
- export function useAlertSupportedMetrics({ insight, widget, alertToEdit }) {
19
+ export function useAlertSupportedMetrics({ insight, widget, alertToEdit, }) {
20
20
  const { locale, catalogDateDatasets, catalogAttributes } = useAutomationsContext();
21
21
  const { executionResultByRef } = useAlertingDialogContext();
22
22
  const execResult = executionResultByRef(widget?.ref);
@@ -0,0 +1,82 @@
1
+ import { type Ref } from "react";
2
+ import { type IAutomationDialogActionBarProps, type IAutomationDialogDestinationProps, type IAutomationDialogRecipientsProps } from "../../shared/slots/types.js";
3
+ import { type AlertingDialogHeaderDefaultProps, type IAlertingDialogFiltersProps } from "../types.js";
4
+ /**
5
+ * Inputs of {@link useAlertingDialogHeaderProps} that come from the dialog rather than its state.
6
+ *
7
+ * @internal
8
+ */
9
+ export interface IUseAlertingDialogHeaderPropsInput {
10
+ /**
11
+ * Closes the dialog; the header's back/close button calls it.
12
+ */
13
+ onCancel?: () => void;
14
+ /**
15
+ * The dialog's initial-focus ref, attached to the title input.
16
+ */
17
+ ref?: Ref<HTMLInputElement>;
18
+ }
19
+ /**
20
+ * The exact props the default alerting dialog renders its header region with.
21
+ *
22
+ * Throws outside the alerting dialog's state providers.
23
+ *
24
+ * @internal
25
+ */
26
+ export declare function useAlertingDialogHeaderProps({ onCancel, ref }: IUseAlertingDialogHeaderPropsInput): AlertingDialogHeaderDefaultProps;
27
+ /**
28
+ * The exact props the default alerting dialog renders its filters region with.
29
+ *
30
+ * Throws outside the alerting dialog's state providers.
31
+ *
32
+ * @internal
33
+ */
34
+ export declare function useAlertingDialogFiltersProps(): IAlertingDialogFiltersProps;
35
+ /**
36
+ * The exact props the default alerting dialog renders its destination region with.
37
+ *
38
+ * Throws outside the alerting dialog's state providers.
39
+ *
40
+ * @internal
41
+ */
42
+ export declare function useAlertingDialogDestinationProps(): IAutomationDialogDestinationProps;
43
+ /**
44
+ * The exact props the default alerting dialog renders its recipients region with.
45
+ *
46
+ * Throws outside the alerting dialog's state providers.
47
+ *
48
+ * @internal
49
+ */
50
+ export declare function useAlertingDialogRecipientsProps(): IAutomationDialogRecipientsProps;
51
+ /**
52
+ * Inputs of {@link useAlertingDialogActionBarProps} that come from the dialog rather than its state.
53
+ *
54
+ * @internal
55
+ */
56
+ export interface IUseAlertingDialogActionBarPropsInput {
57
+ /**
58
+ * Closes the dialog without saving.
59
+ */
60
+ onCancel?: () => void;
61
+ /**
62
+ * Submits the automation; the dialog's single submit path (see `useAlertSubmit`).
63
+ */
64
+ onSubmit: () => void;
65
+ /**
66
+ * Whether a save is in flight.
67
+ */
68
+ isSaving: boolean;
69
+ /**
70
+ * Opens the delete confirmation. Rendered only when an existing alert is being edited.
71
+ */
72
+ onDelete?: () => void;
73
+ }
74
+ /**
75
+ * The exact props the default alerting dialog renders its action bar with.
76
+ *
77
+ * Throws outside the alerting dialog's state providers.
78
+ *
79
+ * @internal
80
+ */
81
+ export declare function useAlertingDialogActionBarProps({ onCancel, onSubmit, isSaving, onDelete }: IUseAlertingDialogActionBarPropsInput): IAutomationDialogActionBarProps;
82
+ //# sourceMappingURL=useAlertingDialogRegionProps.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useAlertingDialogRegionProps.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/automations/alerting/state/useAlertingDialogRegionProps.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,GAAG,EAAW,MAAM,OAAO,CAAC;AAQ1C,OAAO,EACH,KAAK,+BAA+B,EACpC,KAAK,iCAAiC,EACtC,KAAK,gCAAgC,EACxC,MAAM,6BAA6B,CAAC;AAGrC,OAAO,EAAE,KAAK,gCAAgC,EAAE,KAAK,2BAA2B,EAAE,MAAM,aAAa,CAAC;AAStG;;;;GAIG;AACH,MAAM,WAAW,kCAAkC;IAC/C;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IAEtB;;OAEG;IACH,GAAG,CAAC,EAAE,GAAG,CAAC,gBAAgB,CAAC,CAAC;CAC/B;AAED;;;;;;GAMG;AACH,wBAAgB,4BAA4B,CAAC,EACzC,QAAQ,EACR,GAAG,EACN,EAAE,kCAAkC,GAAG,gCAAgC,CAkCvE;AAED;;;;;;GAMG;AACH,wBAAgB,6BAA6B,IAAI,2BAA2B,CAwB3E;AAED;;;;;;GAMG;AACH,wBAAgB,iCAAiC,IAAI,iCAAiC,CAUrF;AAED;;;;;;GAMG;AACH,wBAAgB,gCAAgC,IAAI,gCAAgC,CAqBnF;AAED;;;;GAIG;AACH,MAAM,WAAW,qCAAqC;IAClD;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IAEtB;;OAEG;IACH,QAAQ,EAAE,MAAM,IAAI,CAAC;IAErB;;OAEG;IACH,QAAQ,EAAE,OAAO,CAAC;IAElB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;CACzB;AAED;;;;;;GAMG;AACH,wBAAgB,+BAA+B,CAAC,EAC5C,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,QAAQ,EACX,EAAE,qCAAqC,GAAG,+BAA+B,CAmCzE"}