@gooddata/sdk-ui-dashboard 10.9.0-alpha.8 → 10.9.0-beta.0

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 (453) hide show
  1. package/NOTICE +35 -3
  2. package/esm/__version.d.ts +1 -1
  3. package/esm/__version.d.ts.map +1 -1
  4. package/esm/__version.js +1 -1
  5. package/esm/__version.js.map +1 -1
  6. package/esm/_staging/drills/drillingUtils.d.ts +2 -14
  7. package/esm/_staging/drills/drillingUtils.d.ts.map +1 -1
  8. package/esm/_staging/drills/drillingUtils.js +2 -62
  9. package/esm/_staging/drills/drillingUtils.js.map +1 -1
  10. package/esm/assets/ellipsis-hover.svg +1 -0
  11. package/esm/assets/ellipsis.svg +1 -0
  12. package/esm/assets/filter.svg +1 -0
  13. package/esm/locales.d.ts.map +1 -1
  14. package/esm/locales.js +9 -0
  15. package/esm/locales.js.map +1 -1
  16. package/esm/model/commandHandlers/alerts/createAlertHandler.d.ts.map +1 -1
  17. package/esm/model/commandHandlers/alerts/createAlertHandler.js +2 -4
  18. package/esm/model/commandHandlers/alerts/createAlertHandler.js.map +1 -1
  19. package/esm/model/commandHandlers/alerts/saveAlertHandler.d.ts +6 -0
  20. package/esm/model/commandHandlers/alerts/saveAlertHandler.d.ts.map +1 -0
  21. package/esm/model/commandHandlers/alerts/saveAlertHandler.js +15 -0
  22. package/esm/model/commandHandlers/alerts/saveAlertHandler.js.map +1 -0
  23. package/esm/model/commandHandlers/dashboard/common/loadWorkspaceAutomations.d.ts +2 -2
  24. package/esm/model/commandHandlers/dashboard/common/loadWorkspaceAutomations.d.ts.map +1 -1
  25. package/esm/model/commandHandlers/dashboard/common/loadWorkspaceAutomations.js +4 -4
  26. package/esm/model/commandHandlers/dashboard/common/loadWorkspaceAutomations.js.map +1 -1
  27. package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/index.d.ts.map +1 -1
  28. package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/index.js +6 -5
  29. package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/index.js.map +1 -1
  30. package/esm/model/commandHandlers/drill/drillDownHandler.d.ts.map +1 -1
  31. package/esm/model/commandHandlers/drill/drillDownHandler.js +24 -2
  32. package/esm/model/commandHandlers/drill/drillDownHandler.js.map +1 -1
  33. package/esm/model/commandHandlers/index.d.ts.map +1 -1
  34. package/esm/model/commandHandlers/index.js +2 -4
  35. package/esm/model/commandHandlers/index.js.map +1 -1
  36. package/esm/model/commandHandlers/scheduledEmail/refreshAutomationsHandlers.js +3 -3
  37. package/esm/model/commandHandlers/scheduledEmail/refreshAutomationsHandlers.js.map +1 -1
  38. package/esm/model/commandHandlers/widgets/addDrillDownForInsightWidgetHandler.d.ts.map +1 -1
  39. package/esm/model/commandHandlers/widgets/addDrillDownForInsightWidgetHandler.js +23 -2
  40. package/esm/model/commandHandlers/widgets/addDrillDownForInsightWidgetHandler.js.map +1 -1
  41. package/esm/model/commandHandlers/widgets/common/drillDown.d.ts +6 -0
  42. package/esm/model/commandHandlers/widgets/common/drillDown.d.ts.map +1 -0
  43. package/esm/model/commandHandlers/widgets/common/drillDown.js +22 -0
  44. package/esm/model/commandHandlers/widgets/common/drillDown.js.map +1 -0
  45. package/esm/model/commandHandlers/widgets/modifyDrillDownForInsightWidgetHandler.d.ts.map +1 -1
  46. package/esm/model/commandHandlers/widgets/modifyDrillDownForInsightWidgetHandler.js +23 -2
  47. package/esm/model/commandHandlers/widgets/modifyDrillDownForInsightWidgetHandler.js.map +1 -1
  48. package/esm/model/commandHandlers/widgets/removeDrillDownForInsightWidgetHandler.d.ts.map +1 -1
  49. package/esm/model/commandHandlers/widgets/removeDrillDownForInsightWidgetHandler.js +15 -2
  50. package/esm/model/commandHandlers/widgets/removeDrillDownForInsightWidgetHandler.js.map +1 -1
  51. package/esm/model/commands/alerts.d.ts +16 -45
  52. package/esm/model/commands/alerts.d.ts.map +1 -1
  53. package/esm/model/commands/alerts.js +6 -24
  54. package/esm/model/commands/alerts.js.map +1 -1
  55. package/esm/model/commands/base.d.ts +1 -1
  56. package/esm/model/commands/base.d.ts.map +1 -1
  57. package/esm/model/commands/index.d.ts +3 -3
  58. package/esm/model/commands/index.d.ts.map +1 -1
  59. package/esm/model/commands/index.js +1 -1
  60. package/esm/model/commands/index.js.map +1 -1
  61. package/esm/model/commands/insight.d.ts +17 -3
  62. package/esm/model/commands/insight.d.ts.map +1 -1
  63. package/esm/model/commands/insight.js +7 -3
  64. package/esm/model/commands/insight.js.map +1 -1
  65. package/esm/model/events/alerts.d.ts +10 -48
  66. package/esm/model/events/alerts.d.ts.map +1 -1
  67. package/esm/model/events/alerts.js +4 -24
  68. package/esm/model/events/alerts.js.map +1 -1
  69. package/esm/model/events/base.d.ts +1 -1
  70. package/esm/model/events/base.d.ts.map +1 -1
  71. package/esm/model/events/base.js.map +1 -1
  72. package/esm/model/events/index.d.ts +3 -3
  73. package/esm/model/events/index.d.ts.map +1 -1
  74. package/esm/model/events/index.js +1 -1
  75. package/esm/model/events/index.js.map +1 -1
  76. package/esm/model/react/index.d.ts +1 -0
  77. package/esm/model/react/index.d.ts.map +1 -1
  78. package/esm/model/react/index.js +1 -0
  79. package/esm/model/react/index.js.map +1 -1
  80. package/esm/model/react/useDashboardAlerts.d.ts +33 -0
  81. package/esm/model/react/useDashboardAlerts.d.ts.map +1 -0
  82. package/esm/model/react/useDashboardAlerts.js +145 -0
  83. package/esm/model/react/useDashboardAlerts.js.map +1 -0
  84. package/esm/model/react/useDashboardCommand.d.ts +1 -2
  85. package/esm/model/react/useDashboardCommand.d.ts.map +1 -1
  86. package/esm/model/react/useDashboardCommandProcessing.d.ts +2 -6
  87. package/esm/model/react/useDashboardCommandProcessing.d.ts.map +1 -1
  88. package/esm/model/react/useDashboardScheduledEmails.d.ts +3 -5
  89. package/esm/model/react/useDashboardScheduledEmails.d.ts.map +1 -1
  90. package/esm/model/react/useDashboardScheduledEmails.js +6 -29
  91. package/esm/model/react/useDashboardScheduledEmails.js.map +1 -1
  92. package/esm/model/store/automations/automationsReducers.d.ts +3 -2
  93. package/esm/model/store/automations/automationsReducers.d.ts.map +1 -1
  94. package/esm/model/store/automations/automationsReducers.js +2 -2
  95. package/esm/model/store/automations/automationsReducers.js.map +1 -1
  96. package/esm/model/store/automations/automationsSelectors.d.ts +31 -0
  97. package/esm/model/store/automations/automationsSelectors.d.ts.map +1 -1
  98. package/esm/model/store/automations/automationsSelectors.js +46 -1
  99. package/esm/model/store/automations/automationsSelectors.js.map +1 -1
  100. package/esm/model/store/automations/automationsState.d.ts +2 -1
  101. package/esm/model/store/automations/automationsState.d.ts.map +1 -1
  102. package/esm/model/store/automations/automationsState.js +1 -1
  103. package/esm/model/store/automations/automationsState.js.map +1 -1
  104. package/esm/model/store/automations/index.d.ts +2 -2
  105. package/esm/model/store/catalog/catalogSelectors.d.ts +23 -1
  106. package/esm/model/store/catalog/catalogSelectors.d.ts.map +1 -1
  107. package/esm/model/store/catalog/catalogSelectors.js +9 -3
  108. package/esm/model/store/catalog/catalogSelectors.js.map +1 -1
  109. package/esm/model/store/config/configSelectors.d.ts +10 -0
  110. package/esm/model/store/config/configSelectors.d.ts.map +1 -1
  111. package/esm/model/store/config/configSelectors.js +14 -0
  112. package/esm/model/store/config/configSelectors.js.map +1 -1
  113. package/esm/model/store/index.d.ts +4 -4
  114. package/esm/model/store/index.d.ts.map +1 -1
  115. package/esm/model/store/index.js +3 -3
  116. package/esm/model/store/index.js.map +1 -1
  117. package/esm/model/store/layout/index.d.ts +4 -0
  118. package/esm/model/store/layout/index.d.ts.map +1 -1
  119. package/esm/model/store/layout/layoutReducers.d.ts +6 -1
  120. package/esm/model/store/layout/layoutReducers.d.ts.map +1 -1
  121. package/esm/model/store/layout/layoutReducers.js +10 -0
  122. package/esm/model/store/layout/layoutReducers.js.map +1 -1
  123. package/esm/model/store/ui/index.d.ts +17 -0
  124. package/esm/model/store/ui/index.d.ts.map +1 -1
  125. package/esm/model/store/ui/uiReducers.d.ts +18 -1
  126. package/esm/model/store/ui/uiReducers.d.ts.map +1 -1
  127. package/esm/model/store/ui/uiReducers.js +23 -0
  128. package/esm/model/store/ui/uiReducers.js.map +1 -1
  129. package/esm/model/store/ui/uiSelectors.d.ts +17 -0
  130. package/esm/model/store/ui/uiSelectors.d.ts.map +1 -1
  131. package/esm/model/store/ui/uiSelectors.js +16 -0
  132. package/esm/model/store/ui/uiSelectors.js.map +1 -1
  133. package/esm/model/store/ui/uiState.d.ts +14 -0
  134. package/esm/model/store/ui/uiState.d.ts.map +1 -1
  135. package/esm/model/store/ui/uiState.js +10 -0
  136. package/esm/model/store/ui/uiState.js.map +1 -1
  137. package/esm/model/store/widgetDrills/widgetDrillSelectors.d.ts.map +1 -1
  138. package/esm/model/store/widgetDrills/widgetDrillSelectors.js +14 -11
  139. package/esm/model/store/widgetDrills/widgetDrillSelectors.js.map +1 -1
  140. package/esm/model/types/commonTypes.d.ts +2 -2
  141. package/esm/model/types/commonTypes.d.ts.map +1 -1
  142. package/esm/presentation/alerting/AlertingDialog.d.ts +7 -0
  143. package/esm/presentation/alerting/AlertingDialog.d.ts.map +1 -0
  144. package/esm/presentation/alerting/AlertingDialog.js +11 -0
  145. package/esm/presentation/alerting/AlertingDialog.js.map +1 -0
  146. package/esm/presentation/alerting/AlertingManagementDialog.d.ts +7 -0
  147. package/esm/presentation/alerting/AlertingManagementDialog.d.ts.map +1 -0
  148. package/esm/presentation/alerting/AlertingManagementDialog.js +11 -0
  149. package/esm/presentation/alerting/AlertingManagementDialog.js.map +1 -0
  150. package/esm/presentation/alerting/DefaultAlertingDialog/DefaultAlertingDialog.d.ts +7 -0
  151. package/esm/presentation/alerting/DefaultAlertingDialog/DefaultAlertingDialog.d.ts.map +1 -0
  152. package/esm/presentation/alerting/DefaultAlertingDialog/DefaultAlertingDialog.js +37 -0
  153. package/esm/presentation/alerting/DefaultAlertingDialog/DefaultAlertingDialog.js.map +1 -0
  154. package/esm/presentation/alerting/DefaultAlertingDialog/index.d.ts +2 -0
  155. package/esm/presentation/alerting/DefaultAlertingDialog/index.d.ts.map +1 -0
  156. package/esm/presentation/alerting/DefaultAlertingDialog/index.js +3 -0
  157. package/esm/presentation/alerting/DefaultAlertingDialog/index.js.map +1 -0
  158. package/esm/presentation/alerting/DefaultAlertingDialog/operator.d.ts +4 -0
  159. package/esm/presentation/alerting/DefaultAlertingDialog/operator.d.ts.map +1 -0
  160. package/esm/presentation/alerting/DefaultAlertingDialog/operator.js +31 -0
  161. package/esm/presentation/alerting/DefaultAlertingDialog/operator.js.map +1 -0
  162. package/esm/presentation/alerting/DefaultAlertingDialog/utils/responsive.d.ts +2 -0
  163. package/esm/presentation/alerting/DefaultAlertingDialog/utils/responsive.d.ts.map +1 -0
  164. package/esm/presentation/alerting/DefaultAlertingDialog/utils/responsive.js +5 -0
  165. package/esm/presentation/alerting/DefaultAlertingDialog/utils/responsive.js.map +1 -0
  166. package/esm/presentation/alerting/DefaultAlertingManagementDialog/DefaultAlertingManagementDialog.d.ts +7 -0
  167. package/esm/presentation/alerting/DefaultAlertingManagementDialog/DefaultAlertingManagementDialog.d.ts.map +1 -0
  168. package/esm/presentation/alerting/DefaultAlertingManagementDialog/DefaultAlertingManagementDialog.js +59 -0
  169. package/esm/presentation/alerting/DefaultAlertingManagementDialog/DefaultAlertingManagementDialog.js.map +1 -0
  170. package/esm/presentation/alerting/DefaultAlertingManagementDialog/components/Alert.d.ts +12 -0
  171. package/esm/presentation/alerting/DefaultAlertingManagementDialog/components/Alert.d.ts.map +1 -0
  172. package/esm/presentation/alerting/DefaultAlertingManagementDialog/components/Alert.js +80 -0
  173. package/esm/presentation/alerting/DefaultAlertingManagementDialog/components/Alert.js.map +1 -0
  174. package/esm/presentation/alerting/DefaultAlertingManagementDialog/components/AlertDropdown.d.ts +4 -0
  175. package/esm/presentation/alerting/DefaultAlertingManagementDialog/components/AlertDropdown.d.ts.map +1 -0
  176. package/esm/presentation/alerting/DefaultAlertingManagementDialog/components/AlertDropdown.js +51 -0
  177. package/esm/presentation/alerting/DefaultAlertingManagementDialog/components/AlertDropdown.js.map +1 -0
  178. package/esm/presentation/alerting/DefaultAlertingManagementDialog/components/AlertsList.d.ts +14 -0
  179. package/esm/presentation/alerting/DefaultAlertingManagementDialog/components/AlertsList.d.ts.map +1 -0
  180. package/esm/presentation/alerting/DefaultAlertingManagementDialog/components/AlertsList.js +21 -0
  181. package/esm/presentation/alerting/DefaultAlertingManagementDialog/components/AlertsList.js.map +1 -0
  182. package/esm/presentation/alerting/DefaultAlertingManagementDialog/components/DeleteAlertConfirmDialog.d.ts +12 -0
  183. package/esm/presentation/alerting/DefaultAlertingManagementDialog/components/DeleteAlertConfirmDialog.d.ts.map +1 -0
  184. package/esm/presentation/alerting/DefaultAlertingManagementDialog/components/DeleteAlertConfirmDialog.js +29 -0
  185. package/esm/presentation/alerting/DefaultAlertingManagementDialog/components/DeleteAlertConfirmDialog.js.map +1 -0
  186. package/esm/presentation/alerting/DefaultAlertingManagementDialog/components/PauseAlertRunner.d.ts +12 -0
  187. package/esm/presentation/alerting/DefaultAlertingManagementDialog/components/PauseAlertRunner.d.ts.map +1 -0
  188. package/esm/presentation/alerting/DefaultAlertingManagementDialog/components/PauseAlertRunner.js +43 -0
  189. package/esm/presentation/alerting/DefaultAlertingManagementDialog/components/PauseAlertRunner.js.map +1 -0
  190. package/esm/presentation/alerting/DefaultAlertingManagementDialog/index.d.ts +2 -0
  191. package/esm/presentation/alerting/DefaultAlertingManagementDialog/index.d.ts.map +1 -0
  192. package/esm/presentation/alerting/DefaultAlertingManagementDialog/index.js +3 -0
  193. package/esm/presentation/alerting/DefaultAlertingManagementDialog/index.js.map +1 -0
  194. package/esm/presentation/alerting/index.d.ts +6 -0
  195. package/esm/presentation/alerting/index.d.ts.map +1 -0
  196. package/esm/presentation/alerting/index.js +6 -0
  197. package/esm/presentation/alerting/index.js.map +1 -0
  198. package/esm/presentation/alerting/types.d.ts +107 -0
  199. package/esm/presentation/alerting/types.d.ts.map +1 -0
  200. package/esm/presentation/alerting/types.js +2 -0
  201. package/esm/presentation/alerting/types.js.map +1 -0
  202. package/esm/presentation/constants/index.d.ts +1 -0
  203. package/esm/presentation/constants/index.d.ts.map +1 -1
  204. package/esm/presentation/constants/index.js +2 -1
  205. package/esm/presentation/constants/index.js.map +1 -1
  206. package/esm/presentation/constants/zIndex.d.ts +1 -0
  207. package/esm/presentation/constants/zIndex.d.ts.map +1 -1
  208. package/esm/presentation/constants/zIndex.js +3 -1
  209. package/esm/presentation/constants/zIndex.js.map +1 -1
  210. package/esm/presentation/dashboard/DashboardHeader/AlertingDialogProvider.d.ts +3 -0
  211. package/esm/presentation/dashboard/DashboardHeader/AlertingDialogProvider.d.ts.map +1 -0
  212. package/esm/presentation/dashboard/DashboardHeader/AlertingDialogProvider.js +11 -0
  213. package/esm/presentation/dashboard/DashboardHeader/AlertingDialogProvider.js.map +1 -0
  214. package/esm/presentation/dashboard/DashboardHeader/DashboardHeader.d.ts.map +1 -1
  215. package/esm/presentation/dashboard/DashboardHeader/DashboardHeader.js +3 -1
  216. package/esm/presentation/dashboard/DashboardHeader/DashboardHeader.js.map +1 -1
  217. package/esm/presentation/dashboard/DashboardHeader/ScheduledEmailDialogProvider.d.ts.map +1 -1
  218. package/esm/presentation/dashboard/DashboardHeader/ScheduledEmailDialogProvider.js +2 -5
  219. package/esm/presentation/dashboard/DashboardHeader/ScheduledEmailDialogProvider.js.map +1 -1
  220. package/esm/presentation/dashboard/components/DashboardRenderer.d.ts.map +1 -1
  221. package/esm/presentation/dashboard/components/DashboardRenderer.js +3 -1
  222. package/esm/presentation/dashboard/components/DashboardRenderer.js.map +1 -1
  223. package/esm/presentation/dashboard/types.d.ts +13 -0
  224. package/esm/presentation/dashboard/types.d.ts.map +1 -1
  225. package/esm/presentation/dashboardContexts/DashboardComponentsContext.d.ts +3 -0
  226. package/esm/presentation/dashboardContexts/DashboardComponentsContext.d.ts.map +1 -1
  227. package/esm/presentation/dashboardContexts/DashboardComponentsContext.js +2 -0
  228. package/esm/presentation/dashboardContexts/DashboardComponentsContext.js.map +1 -1
  229. package/esm/presentation/drill/types.d.ts +1 -0
  230. package/esm/presentation/drill/types.d.ts.map +1 -1
  231. package/esm/presentation/drill/types.js.map +1 -1
  232. package/esm/presentation/filterBar/filterBar/DefaultFilterBarContainer.d.ts.map +1 -1
  233. package/esm/presentation/filterBar/filterBar/DefaultFilterBarContainer.js +5 -8
  234. package/esm/presentation/filterBar/filterBar/DefaultFilterBarContainer.js.map +1 -1
  235. package/esm/presentation/filterBar/filterBar/filterViews/FilterViews.d.ts.map +1 -1
  236. package/esm/presentation/filterBar/filterBar/filterViews/FilterViews.js +43 -12
  237. package/esm/presentation/filterBar/filterBar/filterViews/FilterViews.js.map +1 -1
  238. package/esm/presentation/index.d.ts +1 -0
  239. package/esm/presentation/index.d.ts.map +1 -1
  240. package/esm/presentation/index.js +2 -1
  241. package/esm/presentation/index.js.map +1 -1
  242. package/esm/presentation/localization/bundles/de-DE.json +1 -0
  243. package/esm/presentation/localization/bundles/en-AU.json +475 -0
  244. package/esm/presentation/localization/bundles/en-GB.json +1 -0
  245. package/esm/presentation/localization/bundles/en-US.json +302 -2
  246. package/esm/presentation/localization/bundles/es-419.json +1 -0
  247. package/esm/presentation/localization/bundles/es-ES.json +1 -0
  248. package/esm/presentation/localization/bundles/fi-FI.json +475 -0
  249. package/esm/presentation/localization/bundles/fr-CA.json +1 -0
  250. package/esm/presentation/localization/bundles/fr-FR.json +1 -0
  251. package/esm/presentation/localization/bundles/it-IT.json +1 -0
  252. package/esm/presentation/localization/bundles/ja-JP.json +1 -0
  253. package/esm/presentation/localization/bundles/nl-NL.json +1 -0
  254. package/esm/presentation/localization/bundles/pt-BR.json +1 -0
  255. package/esm/presentation/localization/bundles/pt-PT.json +1 -0
  256. package/esm/presentation/localization/bundles/zh-HK.json +475 -0
  257. package/esm/presentation/localization/bundles/zh-Hans.json +1 -0
  258. package/esm/presentation/localization/bundles/zh-Hant.json +475 -0
  259. package/esm/presentation/localization/translations.d.ts.map +1 -1
  260. package/esm/presentation/localization/translations.js +8 -0
  261. package/esm/presentation/localization/translations.js.map +1 -1
  262. package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/DefaultScheduledEmailDialog.js +1 -1
  263. package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/DefaultScheduledEmailDialog.js.map +1 -1
  264. package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/DestinationSelect/DestinationSelect.d.ts +2 -2
  265. package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/DestinationSelect/DestinationSelect.d.ts.map +1 -1
  266. package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/DestinationSelect/DestinationSelect.js +1 -1
  267. package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/DestinationSelect/DestinationSelect.js.map +1 -1
  268. package/esm/presentation/scheduledEmail/DefaultScheduledEmailManagementDialog/DefaultScheduledEmailManagementDialog.d.ts.map +1 -1
  269. package/esm/presentation/scheduledEmail/DefaultScheduledEmailManagementDialog/DefaultScheduledEmailManagementDialog.js +1 -1
  270. package/esm/presentation/scheduledEmail/DefaultScheduledEmailManagementDialog/DefaultScheduledEmailManagementDialog.js.map +1 -1
  271. package/esm/presentation/scheduledEmail/DefaultScheduledEmailManagementDialog/components/ScheduledEmail.d.ts +2 -2
  272. package/esm/presentation/scheduledEmail/DefaultScheduledEmailManagementDialog/components/ScheduledEmail.d.ts.map +1 -1
  273. package/esm/presentation/scheduledEmail/DefaultScheduledEmailManagementDialog/components/ScheduledEmail.js +1 -1
  274. package/esm/presentation/scheduledEmail/DefaultScheduledEmailManagementDialog/components/ScheduledEmail.js.map +1 -1
  275. package/esm/presentation/scheduledEmail/DefaultScheduledEmailManagementDialog/components/ScheduledEmailsList.d.ts +2 -2
  276. package/esm/presentation/scheduledEmail/DefaultScheduledEmailManagementDialog/components/ScheduledEmailsList.d.ts.map +1 -1
  277. package/esm/presentation/scheduledEmail/types.d.ts +3 -3
  278. package/esm/presentation/scheduledEmail/types.d.ts.map +1 -1
  279. package/esm/presentation/topBar/menuButton/useDefaultMenuItems.d.ts.map +1 -1
  280. package/esm/presentation/topBar/menuButton/useDefaultMenuItems.js +166 -120
  281. package/esm/presentation/topBar/menuButton/useDefaultMenuItems.js.map +1 -1
  282. package/esm/presentation/widget/common/configuration/ConfigurationBubble.d.ts +2 -1
  283. package/esm/presentation/widget/common/configuration/ConfigurationBubble.d.ts.map +1 -1
  284. package/esm/presentation/widget/common/configuration/ConfigurationBubble.js +3 -4
  285. package/esm/presentation/widget/common/configuration/ConfigurationBubble.js.map +1 -1
  286. package/esm/presentation/widget/common/useWidgetFilters.d.ts +1 -1
  287. package/esm/presentation/widget/common/useWidgetFilters.d.ts.map +1 -1
  288. package/esm/presentation/widget/common/useWidgetFilters.js +1 -1
  289. package/esm/presentation/widget/common/useWidgetFilters.js.map +1 -1
  290. package/esm/presentation/widget/insight/configuration/DrillTargets/DrillTargets.d.ts.map +1 -1
  291. package/esm/presentation/widget/insight/configuration/DrillTargets/DrillTargets.js +1 -0
  292. package/esm/presentation/widget/insight/configuration/DrillTargets/DrillTargets.js.map +1 -1
  293. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertActionsDropdown.d.ts +12 -0
  294. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertActionsDropdown.d.ts.map +1 -0
  295. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertActionsDropdown.js +77 -0
  296. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertActionsDropdown.js.map +1 -0
  297. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertComparisonOperatorSelect.d.ts +8 -0
  298. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertComparisonOperatorSelect.d.ts.map +1 -0
  299. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertComparisonOperatorSelect.js +25 -0
  300. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertComparisonOperatorSelect.js.map +1 -0
  301. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertDeleteDialog.d.ts +7 -0
  302. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertDeleteDialog.d.ts.map +1 -0
  303. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertDeleteDialog.js +13 -0
  304. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertDeleteDialog.js.map +1 -0
  305. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertDestinationSelect.d.ts +9 -0
  306. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertDestinationSelect.d.ts.map +1 -0
  307. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertDestinationSelect.js +23 -0
  308. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertDestinationSelect.js.map +1 -0
  309. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertMeasureSelect.d.ts +9 -0
  310. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertMeasureSelect.d.ts.map +1 -0
  311. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertMeasureSelect.js +26 -0
  312. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertMeasureSelect.js.map +1 -0
  313. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertTriggerModeSelect.d.ts +8 -0
  314. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertTriggerModeSelect.d.ts.map +1 -0
  315. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertTriggerModeSelect.js +35 -0
  316. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertTriggerModeSelect.js.map +1 -0
  317. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertsList.d.ts +18 -0
  318. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertsList.d.ts.map +1 -0
  319. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertsList.js +31 -0
  320. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertsList.js.map +1 -0
  321. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertsListItem.d.ts +13 -0
  322. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertsListItem.d.ts.map +1 -0
  323. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertsListItem.js +16 -0
  324. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertsListItem.js.map +1 -0
  325. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/CreateAlert.d.ts +16 -0
  326. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/CreateAlert.d.ts.map +1 -0
  327. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/CreateAlert.js +7 -0
  328. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/CreateAlert.js.map +1 -0
  329. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/EditAlert.d.ts +18 -0
  330. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/EditAlert.d.ts.map +1 -0
  331. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/EditAlert.js +57 -0
  332. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/EditAlert.js.map +1 -0
  333. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/EditAlertConfiguration.d.ts +10 -0
  334. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/EditAlertConfiguration.d.ts.map +1 -0
  335. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/EditAlertConfiguration.js +47 -0
  336. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/EditAlertConfiguration.js.map +1 -0
  337. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/constants.d.ts +20 -0
  338. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/constants.d.ts.map +1 -0
  339. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/constants.js +37 -0
  340. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/constants.js.map +1 -0
  341. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useCreateAlert.d.ts +11 -0
  342. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useCreateAlert.d.ts.map +1 -0
  343. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useCreateAlert.js +27 -0
  344. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useCreateAlert.js.map +1 -0
  345. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useEditAlert.d.ts +21 -0
  346. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useEditAlert.d.ts.map +1 -0
  347. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useEditAlert.js +97 -0
  348. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useEditAlert.js.map +1 -0
  349. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useInsightAlerting.d.ts +28 -0
  350. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useInsightAlerting.d.ts.map +1 -0
  351. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useInsightAlerting.js +179 -0
  352. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useInsightAlerting.js.map +1 -0
  353. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useSaveAlertToBackend.d.ts +29 -0
  354. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useSaveAlertToBackend.d.ts.map +1 -0
  355. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useSaveAlertToBackend.js +51 -0
  356. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useSaveAlertToBackend.js.map +1 -0
  357. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useUpdateAlert.d.ts +11 -0
  358. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useUpdateAlert.d.ts.map +1 -0
  359. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useUpdateAlert.js +27 -0
  360. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useUpdateAlert.js.map +1 -0
  361. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/messages.d.ts +57 -0
  362. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/messages.d.ts.map +1 -0
  363. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/messages.js +59 -0
  364. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/messages.js.map +1 -0
  365. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/utils.d.ts +16 -0
  366. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/utils.d.ts.map +1 -0
  367. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/utils.js +86 -0
  368. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/utils.js.map +1 -0
  369. package/esm/presentation/widget/insight/configuration/InsightAlerts.d.ts +4 -0
  370. package/esm/presentation/widget/insight/configuration/InsightAlerts.d.ts.map +1 -0
  371. package/esm/presentation/widget/insight/configuration/InsightAlerts.js +38 -0
  372. package/esm/presentation/widget/insight/configuration/InsightAlerts.js.map +1 -0
  373. package/esm/presentation/widget/insight/configuration/InsightDrillConfigItem.d.ts +1 -1
  374. package/esm/presentation/widget/insight/configuration/InsightDrillConfigItem.d.ts.map +1 -1
  375. package/esm/presentation/widget/insight/configuration/InsightDrillConfigItem.js +23 -5
  376. package/esm/presentation/widget/insight/configuration/InsightDrillConfigItem.js.map +1 -1
  377. package/esm/presentation/widget/insight/configuration/InsightDrillConfigPanel/drillConfigMapper.d.ts +2 -2
  378. package/esm/presentation/widget/insight/configuration/InsightDrillConfigPanel/drillConfigMapper.d.ts.map +1 -1
  379. package/esm/presentation/widget/insight/configuration/InsightDrillConfigPanel/drillConfigMapper.js +25 -3
  380. package/esm/presentation/widget/insight/configuration/InsightDrillConfigPanel/drillConfigMapper.js.map +1 -1
  381. package/esm/presentation/widget/insight/configuration/InsightDrillConfigPanel/useInsightDrillConfigPanel.d.ts +1 -1
  382. package/esm/presentation/widget/insight/configuration/InsightDrillConfigPanel/useInsightDrillConfigPanel.d.ts.map +1 -1
  383. package/esm/presentation/widget/insight/configuration/InsightDrillConfigPanel/useInsightDrillConfigPanel.js +5 -4
  384. package/esm/presentation/widget/insight/configuration/InsightDrillConfigPanel/useInsightDrillConfigPanel.js.map +1 -1
  385. package/esm/presentation/widget/insight/index.d.ts +1 -0
  386. package/esm/presentation/widget/insight/index.d.ts.map +1 -1
  387. package/esm/presentation/widget/insight/index.js +2 -1
  388. package/esm/presentation/widget/insight/index.js.map +1 -1
  389. package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/DashboardInsightMenu/DashboardInsightMenuItemButton.d.ts.map +1 -1
  390. package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/DashboardInsightMenu/DashboardInsightMenuItemButton.js +1 -1
  391. package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/DashboardInsightMenu/DashboardInsightMenuItemButton.js.map +1 -1
  392. package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/DashboardInsightMenu/DashboardInsightSubmenuContainer.d.ts +1 -1
  393. package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/DashboardInsightMenu/DashboardInsightSubmenuContainer.d.ts.map +1 -1
  394. package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/DashboardInsightMenu/DashboardInsightSubmenuContainer.js +1 -1
  395. package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/DashboardInsightMenu/DashboardInsightSubmenuHeader.d.ts +1 -1
  396. package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/DashboardInsightMenu/DashboardInsightSubmenuHeader.d.ts.map +1 -1
  397. package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/DashboardInsightMenu/DashboardInsightSubmenuHeader.js +4 -3
  398. package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/DashboardInsightMenu/DashboardInsightSubmenuHeader.js.map +1 -1
  399. package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/DashboardInsightMenu/index.d.ts.map +1 -1
  400. package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/DashboardInsightMenu/index.js +3 -3
  401. package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/DashboardInsightMenu/index.js.map +1 -1
  402. package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/getDefaultInsightMenuItems.d.ts +2 -0
  403. package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/getDefaultInsightMenuItems.d.ts.map +1 -1
  404. package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/getDefaultInsightMenuItems.js +28 -7
  405. package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/getDefaultInsightMenuItems.js.map +1 -1
  406. package/esm/presentation/widget/insightMenu/index.d.ts +1 -1
  407. package/esm/presentation/widget/insightMenu/index.d.ts.map +1 -1
  408. package/esm/presentation/widget/insightMenu/types.d.ts +28 -6
  409. package/esm/presentation/widget/insightMenu/types.d.ts.map +1 -1
  410. package/esm/presentation/widget/kpi/ViewModeDashboardKpi/useKpiAlertOperations.d.ts.map +1 -1
  411. package/esm/presentation/widget/kpi/ViewModeDashboardKpi/useKpiAlertOperations.js +9 -20
  412. package/esm/presentation/widget/kpi/ViewModeDashboardKpi/useKpiAlertOperations.js.map +1 -1
  413. package/esm/presentation/widget/widget/InsightWidget/DefaultDashboardInsightWidget.d.ts.map +1 -1
  414. package/esm/presentation/widget/widget/InsightWidget/DefaultDashboardInsightWidget.js +8 -6
  415. package/esm/presentation/widget/widget/InsightWidget/DefaultDashboardInsightWidget.js.map +1 -1
  416. package/esm/presentation/widget/widget/InsightWidget/useInsightMenu.d.ts +2 -0
  417. package/esm/presentation/widget/widget/InsightWidget/useInsightMenu.d.ts.map +1 -1
  418. package/esm/presentation/widget/widget/InsightWidget/useInsightMenu.js +13 -8
  419. package/esm/presentation/widget/widget/InsightWidget/useInsightMenu.js.map +1 -1
  420. package/esm/sdk-ui-dashboard.d.ts +401 -149
  421. package/esm/types.d.ts +9 -0
  422. package/esm/types.d.ts.map +1 -1
  423. package/esm/types.js.map +1 -1
  424. package/package.json +16 -15
  425. package/styles/css/alerting.css +286 -0
  426. package/styles/css/alerting.css.map +1 -0
  427. package/styles/css/configurationPanel.css +3 -0
  428. package/styles/css/configurationPanel.css.map +1 -1
  429. package/styles/css/dashboard.css +60 -5
  430. package/styles/css/dashboard.css.map +1 -1
  431. package/styles/css/icons.css +7 -0
  432. package/styles/css/icons.css.map +1 -1
  433. package/styles/css/main.css +355 -5
  434. package/styles/css/main.css.map +1 -1
  435. package/styles/css/scheduled_mail.css +60 -5
  436. package/styles/css/scheduled_mail.css.map +1 -1
  437. package/styles/scss/alerting.scss +292 -0
  438. package/styles/scss/configurationPanel.scss +5 -0
  439. package/styles/scss/icons.scss +9 -0
  440. package/styles/scss/main.scss +1 -0
  441. package/styles/scss/scheduled_mail.scss +69 -3
  442. package/esm/model/commandHandlers/alerts/removeAlertsHandler.d.ts +0 -6
  443. package/esm/model/commandHandlers/alerts/removeAlertsHandler.d.ts.map +0 -1
  444. package/esm/model/commandHandlers/alerts/removeAlertsHandler.js +0 -20
  445. package/esm/model/commandHandlers/alerts/removeAlertsHandler.js.map +0 -1
  446. package/esm/model/commandHandlers/alerts/updateAlertHandler.d.ts +0 -6
  447. package/esm/model/commandHandlers/alerts/updateAlertHandler.d.ts.map +0 -1
  448. package/esm/model/commandHandlers/alerts/updateAlertHandler.js +0 -17
  449. package/esm/model/commandHandlers/alerts/updateAlertHandler.js.map +0 -1
  450. package/esm/model/commandHandlers/alerts/validation/alertsValidation.d.ts +0 -20
  451. package/esm/model/commandHandlers/alerts/validation/alertsValidation.d.ts.map +0 -1
  452. package/esm/model/commandHandlers/alerts/validation/alertsValidation.js +0 -22
  453. package/esm/model/commandHandlers/alerts/validation/alertsValidation.js.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useInsightAlerting.js","sourceRoot":"","sources":["../../../../../../../src/presentation/widget/insight/configuration/InsightAlertConfig/h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AAC,CAAC,MAAM,CAAC,CAAC;YACrD,wBAAwB,EAAE,CAAC;QAC/B,CAAC;QAAC,OAAO,GAAG,EAAE,CAAC;YACX,QAAQ,CAAC,QAAQ,CAAC,gBAAgB,CAAC,CAAC;YACpC,YAAY,CAAC,KAAK,CAAC,CAAC;QACxB,CAAC;IACL,CAAC,CAAC;IAEF,MAAM,wBAAwB,GAAG,WAAW,CAAC,GAAG,EAAE;QAC9C,YAAY,CAAC,IAAI,CAAC,CAAC;QACnB,kBAAkB,CAAC,QAAQ,EAAE,kBAAkB,EAAE,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE;YACzD,YAAY,CAAC,KAAK,CAAC,CAAC;QACxB,CAAC,CAAC,CAAC;IACP,CAAC,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC;IAEf,OAAO;QACH,SAAS;QACT,YAAY;QACZ,MAAM;QACN,QAAQ;QACR,YAAY;QACZ,aAAa,EAAE,YAAY;QAC3B,qBAAqB;QACrB,oBAAoB;QACpB,mBAAmB;QACnB,YAAY;QACZ,kBAAkB;QAClB,mBAAmB;QACnB,mBAAmB;QACnB,kBAAkB;QAClB,mBAAmB;QACnB,SAAS;QACT,iBAAiB;QACjB,qBAAqB;KACxB,CAAC;AACN,CAAC,CAAC"}
@@ -0,0 +1,29 @@
1
+ import { IAutomationMetadataObject, IAutomationMetadataObjectDefinition } from "@gooddata/sdk-model";
2
+ /**
3
+ * @internal
4
+ * @param onCreateSuccess - callback to be called when alert is created successfully
5
+ * @param onCreateError - callback to be called when alert creation fails
6
+ * @param onUpdateSuccess - callback to be called when alert is updated successfully
7
+ * @param onUpdateError - callback to be called when alert update fails
8
+ * @param onPauseSuccess - callback to be called when alert is paused successfully
9
+ * @param onPauseError - callback to be called when alert pausing fails
10
+ * @param onResumeSuccess - callback to be called when alert is resumed successfully
11
+ * @param onResumeError - callback to be called when alert resuming fails
12
+ */
13
+ export declare function useSaveAlertToBackend({ onCreateSuccess, onCreateError, onUpdateSuccess, onUpdateError, onPauseSuccess, onPauseError, onResumeSuccess, onResumeError, }: {
14
+ onCreateSuccess?: () => void;
15
+ onCreateError?: (error: Error) => void;
16
+ onUpdateSuccess?: () => void;
17
+ onUpdateError?: (error: Error) => void;
18
+ onPauseSuccess?: () => void;
19
+ onPauseError?: (error: Error) => void;
20
+ onResumeSuccess?: () => void;
21
+ onResumeError?: (error: Error) => void;
22
+ }): {
23
+ handleCreateAlert: (alert: IAutomationMetadataObject | IAutomationMetadataObjectDefinition) => void;
24
+ handleUpdateAlert: (alert: IAutomationMetadataObject | IAutomationMetadataObjectDefinition) => void;
25
+ handlePauseAlert: (alert: IAutomationMetadataObject | IAutomationMetadataObjectDefinition) => void;
26
+ handleResumeAlert: (alert: IAutomationMetadataObject | IAutomationMetadataObjectDefinition) => void;
27
+ isSavingAlert: boolean;
28
+ };
29
+ //# sourceMappingURL=useSaveAlertToBackend.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useSaveAlertToBackend.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useSaveAlertToBackend.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,yBAAyB,EAAE,mCAAmC,EAAE,MAAM,qBAAqB,CAAC;AAIrG;;;;;;;;;;GAUG;AACH,wBAAgB,qBAAqB,CAAC,EAClC,eAAe,EACf,aAAa,EACb,eAAe,EACf,aAAa,EACb,cAAc,EACd,YAAY,EACZ,eAAe,EACf,aAAa,GAChB,EAAE;IACC,eAAe,CAAC,EAAE,MAAM,IAAI,CAAC;IAC7B,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IACvC,eAAe,CAAC,EAAE,MAAM,IAAI,CAAC;IAC7B,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IACvC,cAAc,CAAC,EAAE,MAAM,IAAI,CAAC;IAC5B,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IACtC,eAAe,CAAC,EAAE,MAAM,IAAI,CAAC;IAC7B,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;CAC1C;+BAOe,yBAAyB,GAAG,mCAAmC;+BAY/D,yBAAyB,GAAG,mCAAmC;8BAY/D,yBAAyB,GAAG,mCAAmC;+BAY/D,yBAAyB,GAAG,mCAAmC;;EAa9E"}
@@ -0,0 +1,51 @@
1
+ // (C) 2019-2024 GoodData Corporation
2
+ import { useCallback } from "react";
3
+ import { useCreateAlert } from "./useCreateAlert.js";
4
+ import { useUpdateAlert } from "./useUpdateAlert.js";
5
+ /**
6
+ * @internal
7
+ * @param onCreateSuccess - callback to be called when alert is created successfully
8
+ * @param onCreateError - callback to be called when alert creation fails
9
+ * @param onUpdateSuccess - callback to be called when alert is updated successfully
10
+ * @param onUpdateError - callback to be called when alert update fails
11
+ * @param onPauseSuccess - callback to be called when alert is paused successfully
12
+ * @param onPauseError - callback to be called when alert pausing fails
13
+ * @param onResumeSuccess - callback to be called when alert is resumed successfully
14
+ * @param onResumeError - callback to be called when alert resuming fails
15
+ */
16
+ export function useSaveAlertToBackend({ onCreateSuccess, onCreateError, onUpdateSuccess, onUpdateError, onPauseSuccess, onPauseError, onResumeSuccess, onResumeError, }) {
17
+ const alertCreator = useCreateAlert({
18
+ onSuccess: onCreateSuccess,
19
+ onError: onCreateError,
20
+ });
21
+ const handleCreateAlert = useCallback((alert) => {
22
+ alertCreator.create(alert);
23
+ }, [alertCreator]);
24
+ const alertUpdater = useUpdateAlert({
25
+ onSuccess: onUpdateSuccess,
26
+ onError: onUpdateError,
27
+ });
28
+ const handleUpdateAlert = useCallback((alert) => {
29
+ alertUpdater.save(alert);
30
+ }, [alertUpdater]);
31
+ const alertPauser = useUpdateAlert({
32
+ onSuccess: onPauseSuccess,
33
+ onError: onPauseError,
34
+ });
35
+ const handlePauseAlert = useCallback((alert) => {
36
+ alertPauser.save(alert);
37
+ }, [alertPauser]);
38
+ const alertResumer = useUpdateAlert({
39
+ onSuccess: onResumeSuccess,
40
+ onError: onResumeError,
41
+ });
42
+ const handleResumeAlert = useCallback((alert) => {
43
+ alertResumer.save(alert);
44
+ }, [alertResumer]);
45
+ const isSavingAlert = alertCreator.creationStatus === "running" ||
46
+ alertUpdater.savingStatus === "running" ||
47
+ alertPauser.savingStatus === "running" ||
48
+ alertResumer.savingStatus === "running";
49
+ return { handleCreateAlert, handleUpdateAlert, handlePauseAlert, handleResumeAlert, isSavingAlert };
50
+ }
51
+ //# sourceMappingURL=useSaveAlertToBackend.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useSaveAlertToBackend.js","sourceRoot":"","sources":["../../../../../../../src/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useSaveAlertToBackend.ts"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAEpC,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAErD;;;;;;;;;;GAUG;AACH,MAAM,UAAU,qBAAqB,CAAC,EAClC,eAAe,EACf,aAAa,EACb,eAAe,EACf,aAAa,EACb,cAAc,EACd,YAAY,EACZ,eAAe,EACf,aAAa,GAUhB;IACG,MAAM,YAAY,GAAG,cAAc,CAAC;QAChC,SAAS,EAAE,eAAe;QAC1B,OAAO,EAAE,aAAa;KACzB,CAAC,CAAC;IAEH,MAAM,iBAAiB,GAAG,WAAW,CACjC,CAAC,KAAsE,EAAE,EAAE;QACvE,YAAY,CAAC,MAAM,CAAC,KAA4C,CAAC,CAAC;IACtE,CAAC,EACD,CAAC,YAAY,CAAC,CACjB,CAAC;IAEF,MAAM,YAAY,GAAG,cAAc,CAAC;QAChC,SAAS,EAAE,eAAe;QAC1B,OAAO,EAAE,aAAa;KACzB,CAAC,CAAC;IAEH,MAAM,iBAAiB,GAAG,WAAW,CACjC,CAAC,KAAsE,EAAE,EAAE;QACvE,YAAY,CAAC,IAAI,CAAC,KAAkC,CAAC,CAAC;IAC1D,CAAC,EACD,CAAC,YAAY,CAAC,CACjB,CAAC;IAEF,MAAM,WAAW,GAAG,cAAc,CAAC;QAC/B,SAAS,EAAE,cAAc;QACzB,OAAO,EAAE,YAAY;KACxB,CAAC,CAAC;IAEH,MAAM,gBAAgB,GAAG,WAAW,CAChC,CAAC,KAAsE,EAAE,EAAE;QACvE,WAAW,CAAC,IAAI,CAAC,KAAkC,CAAC,CAAC;IACzD,CAAC,EACD,CAAC,WAAW,CAAC,CAChB,CAAC;IAEF,MAAM,YAAY,GAAG,cAAc,CAAC;QAChC,SAAS,EAAE,eAAe;QAC1B,OAAO,EAAE,aAAa;KACzB,CAAC,CAAC;IAEH,MAAM,iBAAiB,GAAG,WAAW,CACjC,CAAC,KAAsE,EAAE,EAAE;QACvE,YAAY,CAAC,IAAI,CAAC,KAAkC,CAAC,CAAC;IAC1D,CAAC,EACD,CAAC,YAAY,CAAC,CACjB,CAAC;IAEF,MAAM,aAAa,GACf,YAAY,CAAC,cAAc,KAAK,SAAS;QACzC,YAAY,CAAC,YAAY,KAAK,SAAS;QACvC,WAAW,CAAC,YAAY,KAAK,SAAS;QACtC,YAAY,CAAC,YAAY,KAAK,SAAS,CAAC;IAE5C,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,aAAa,EAAE,CAAC;AACxG,CAAC"}
@@ -0,0 +1,11 @@
1
+ import { IAutomationMetadataObject } from "@gooddata/sdk-model";
2
+ import { CommandProcessingStatus } from "../../../../../../model/index.js";
3
+ export declare const useUpdateAlert: ({ onBeforeRun, onSuccess, onError, }?: {
4
+ onBeforeRun?: ((alertToSave: IAutomationMetadataObject) => void) | undefined;
5
+ onSuccess?: (() => void) | undefined;
6
+ onError?: ((error: any) => void) | undefined;
7
+ }) => {
8
+ save: (alertToSave: IAutomationMetadataObject) => void;
9
+ savingStatus?: CommandProcessingStatus | undefined;
10
+ };
11
+ //# sourceMappingURL=useUpdateAlert.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useUpdateAlert.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useUpdateAlert.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,yBAAyB,EAAE,MAAM,qBAAqB,CAAC;AAChE,OAAO,EACH,uBAAuB,EAG1B,MAAM,kCAAkC,CAAC;AAE1C,eAAO,MAAM,cAAc;iCAKK,yBAAyB,KAAK,IAAI;uBAC5C,IAAI;uBACJ,GAAG,KAAK,IAAI;;wBAEV,yBAAyB,KAAK,IAAI;;CA6BzD,CAAC"}
@@ -0,0 +1,27 @@
1
+ // (C) 2024 GoodData Corporation
2
+ import { useCallback } from "react";
3
+ import { saveAlert, useDashboardCommandProcessing, } from "../../../../../../model/index.js";
4
+ export const useUpdateAlert = ({ onBeforeRun, onSuccess, onError, } = {}) => {
5
+ const alertCommandProcessing = useDashboardCommandProcessing({
6
+ commandCreator: saveAlert,
7
+ errorEvent: "GDC.DASH/EVT.COMMAND.FAILED",
8
+ successEvent: "GDC.DASH/EVT.ALERT.SAVED",
9
+ onError: (event) => {
10
+ onError?.(event.payload.error);
11
+ },
12
+ onSuccess: () => {
13
+ onSuccess?.();
14
+ },
15
+ onBeforeRun: (cmd) => {
16
+ onBeforeRun?.(cmd.payload.alert);
17
+ },
18
+ });
19
+ const save = useCallback((alertToSave) => {
20
+ alertCommandProcessing.run(alertToSave);
21
+ }, [alertCommandProcessing]);
22
+ return {
23
+ save,
24
+ savingStatus: alertCommandProcessing.status,
25
+ };
26
+ };
27
+ //# sourceMappingURL=useUpdateAlert.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useUpdateAlert.js","sourceRoot":"","sources":["../../../../../../../src/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useUpdateAlert.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAEhC,OAAO,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAEpC,OAAO,EAEH,SAAS,EACT,6BAA6B,GAChC,MAAM,kCAAkC,CAAC;AAE1C,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,EAC3B,WAAW,EACX,SAAS,EACT,OAAO,MAKP,EAAE,EAGJ,EAAE;IACA,MAAM,sBAAsB,GAAG,6BAA6B,CAAC;QACzD,cAAc,EAAE,SAAS;QACzB,UAAU,EAAE,6BAA6B;QACzC,YAAY,EAAE,0BAA0B;QACxC,OAAO,EAAE,CAAC,KAAK,EAAE,EAAE;YACf,OAAO,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;QACnC,CAAC;QACD,SAAS,EAAE,GAAG,EAAE;YACZ,SAAS,EAAE,EAAE,CAAC;QAClB,CAAC;QACD,WAAW,EAAE,CAAC,GAAG,EAAE,EAAE;YACjB,WAAW,EAAE,CAAC,GAAG,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;QACrC,CAAC;KACJ,CAAC,CAAC;IAEH,MAAM,IAAI,GAAG,WAAW,CACpB,CAAC,WAAsC,EAAE,EAAE;QACvC,sBAAsB,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC;IAC5C,CAAC,EACD,CAAC,sBAAsB,CAAC,CAC3B,CAAC;IAEF,OAAO;QACH,IAAI;QACJ,YAAY,EAAE,sBAAsB,CAAC,MAAM;KAC9C,CAAC;AACN,CAAC,CAAC"}
@@ -0,0 +1,57 @@
1
+ export declare const messages: {
2
+ alertActionEdit: {
3
+ id: string;
4
+ };
5
+ alertActionPause: {
6
+ id: string;
7
+ };
8
+ alertActionResume: {
9
+ id: string;
10
+ };
11
+ alertActionDelete: {
12
+ id: string;
13
+ };
14
+ comparisonOperatorLessThan: {
15
+ id: string;
16
+ };
17
+ comparisonOperatorLessThanOrEquals: {
18
+ id: string;
19
+ };
20
+ comparisonOperatorGreaterThan: {
21
+ id: string;
22
+ };
23
+ comparisonOperatorGreaterThanOrEquals: {
24
+ id: string;
25
+ };
26
+ alertTriggerModeAlways: {
27
+ id: string;
28
+ };
29
+ alertTriggerModeOnce: {
30
+ id: string;
31
+ };
32
+ alertDeleteSuccess: {
33
+ id: string;
34
+ };
35
+ alertAddSuccess: {
36
+ id: string;
37
+ };
38
+ alertUpdateSuccess: {
39
+ id: string;
40
+ };
41
+ alertPauseSuccess: {
42
+ id: string;
43
+ };
44
+ alertResumeSuccess: {
45
+ id: string;
46
+ };
47
+ alertLoadingError: {
48
+ id: string;
49
+ };
50
+ alertSaveError: {
51
+ id: string;
52
+ };
53
+ alertDeleteError: {
54
+ id: string;
55
+ };
56
+ };
57
+ //# sourceMappingURL=messages.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/widget/insight/configuration/InsightAlertConfig/messages.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuDnB,CAAC"}
@@ -0,0 +1,59 @@
1
+ // (C) 2024 GoodData Corporation
2
+ import { defineMessages } from "react-intl";
3
+ export const messages = defineMessages({
4
+ alertActionEdit: {
5
+ id: "insightAlert.config.action.edit",
6
+ },
7
+ alertActionPause: {
8
+ id: "insightAlert.config.action.pause",
9
+ },
10
+ alertActionResume: {
11
+ id: "insightAlert.config.action.resume",
12
+ },
13
+ alertActionDelete: {
14
+ id: "insightAlert.config.action.delete",
15
+ },
16
+ comparisonOperatorLessThan: {
17
+ id: "insightAlert.config.comparisonOperator.lessThan",
18
+ },
19
+ comparisonOperatorLessThanOrEquals: {
20
+ id: "insightAlert.config.comparisonOperator.lessThanOrEquals",
21
+ },
22
+ comparisonOperatorGreaterThan: {
23
+ id: "insightAlert.config.comparisonOperator.greaterThan",
24
+ },
25
+ comparisonOperatorGreaterThanOrEquals: {
26
+ id: "insightAlert.config.comparisonOperator.greaterThanOrEquals",
27
+ },
28
+ alertTriggerModeAlways: {
29
+ id: "insightAlert.config.triggerMode.always",
30
+ },
31
+ alertTriggerModeOnce: {
32
+ id: "insightAlert.config.triggerMode.once",
33
+ },
34
+ alertDeleteSuccess: {
35
+ id: "insightAlert.config.delete.success",
36
+ },
37
+ alertAddSuccess: {
38
+ id: "insightAlert.config.add.success",
39
+ },
40
+ alertUpdateSuccess: {
41
+ id: "insightAlert.config.update.success",
42
+ },
43
+ alertPauseSuccess: {
44
+ id: "insightAlert.config.pause.success",
45
+ },
46
+ alertResumeSuccess: {
47
+ id: "insightAlert.config.resume.success",
48
+ },
49
+ alertLoadingError: {
50
+ id: "insightAlert.config.loading.error",
51
+ },
52
+ alertSaveError: {
53
+ id: "insightAlert.config.save.error",
54
+ },
55
+ alertDeleteError: {
56
+ id: "insightAlert.config.delete.error",
57
+ },
58
+ });
59
+ //# sourceMappingURL=messages.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"messages.js","sourceRoot":"","sources":["../../../../../../src/presentation/widget/insight/configuration/InsightAlertConfig/messages.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAEhC,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAE5C,MAAM,CAAC,MAAM,QAAQ,GAAG,cAAc,CAAC;IACnC,eAAe,EAAE;QACb,EAAE,EAAE,iCAAiC;KACxC;IACD,gBAAgB,EAAE;QACd,EAAE,EAAE,kCAAkC;KACzC;IACD,iBAAiB,EAAE;QACf,EAAE,EAAE,mCAAmC;KAC1C;IACD,iBAAiB,EAAE;QACf,EAAE,EAAE,mCAAmC;KAC1C;IACD,0BAA0B,EAAE;QACxB,EAAE,EAAE,iDAAiD;KACxD;IACD,kCAAkC,EAAE;QAChC,EAAE,EAAE,yDAAyD;KAChE;IACD,6BAA6B,EAAE;QAC3B,EAAE,EAAE,oDAAoD;KAC3D;IACD,qCAAqC,EAAE;QACnC,EAAE,EAAE,4DAA4D;KACnE;IACD,sBAAsB,EAAE;QACpB,EAAE,EAAE,wCAAwC;KAC/C;IACD,oBAAoB,EAAE;QAClB,EAAE,EAAE,sCAAsC;KAC7C;IACD,kBAAkB,EAAE;QAChB,EAAE,EAAE,oCAAoC;KAC3C;IACD,eAAe,EAAE;QACb,EAAE,EAAE,iCAAiC;KACxC;IACD,kBAAkB,EAAE;QAChB,EAAE,EAAE,oCAAoC;KAC3C;IACD,iBAAiB,EAAE;QACf,EAAE,EAAE,mCAAmC;KAC1C;IACD,kBAAkB,EAAE;QAChB,EAAE,EAAE,oCAAoC;KAC3C;IACD,iBAAiB,EAAE;QACf,EAAE,EAAE,mCAAmC;KAC1C;IACD,cAAc,EAAE;QACZ,EAAE,EAAE,gCAAgC;KACvC;IACD,gBAAgB,EAAE;QACd,EAAE,EAAE,kCAAkC;KACzC;CACJ,CAAC,CAAC"}
@@ -0,0 +1,16 @@
1
+ import { IAlertComparisonOperator, IAutomationMetadataObjectDefinition, IFilter, IInsight, IMeasure } from "@gooddata/sdk-model";
2
+ import { IntlShape } from "react-intl";
3
+ /**
4
+ * @internal
5
+ */
6
+ export declare const getMeasureTitle: (measure: IMeasure) => string | undefined;
7
+ /**
8
+ * @internal
9
+ */
10
+ export declare const getComparisonOperatorTitle: (operator: IAlertComparisonOperator, intl: IntlShape) => string;
11
+ /**
12
+ * @internal
13
+ */
14
+ export declare const createDefaultAlert: (filters: IFilter[], measure: IMeasure, notificationChannelId: string, comparisonOperator?: IAlertComparisonOperator) => IAutomationMetadataObjectDefinition;
15
+ export declare const getSupportedInsightMeasuresByInsight: (insight: IInsight | null | undefined) => IMeasure<import("@gooddata/sdk-model").IMeasureDefinitionType>[];
16
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/widget/insight/configuration/InsightAlertConfig/utils.ts"],"names":[],"mappings":"AAEA,OAAO,EAEH,wBAAwB,EACxB,mCAAmC,EAEnC,OAAO,EACP,QAAQ,EACR,QAAQ,EAIX,MAAM,qBAAqB,CAAC;AAI7B,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAEvC;;GAEG;AACH,eAAO,MAAM,eAAe,YAAa,QAAQ,uBAEhD,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,0BAA0B,aAAc,wBAAwB,QAAQ,SAAS,KAAG,MAWhG,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,kBAAkB,YAClB,OAAO,EAAE,WACT,QAAQ,yBACM,MAAM,uBACT,wBAAwB,KAC7C,mCAuBF,CAAC;AAyBF,eAAO,MAAM,oCAAoC,YAAa,QAAQ,GAAG,IAAI,GAAG,SAAS,qEAmCxF,CAAC"}
@@ -0,0 +1,86 @@
1
+ // (C) 2024 GoodData Corporation
2
+ import { bucketMeasures, insightBucket, measureAlias, measureTitle, } from "@gooddata/sdk-model";
3
+ import { COMPARISON_OPERATORS } from "./constants.js";
4
+ import { BucketNames } from "@gooddata/sdk-ui";
5
+ import { messages } from "./messages.js";
6
+ /**
7
+ * @internal
8
+ */
9
+ export const getMeasureTitle = (measure) => {
10
+ return measure ? measureTitle(measure) ?? measureAlias(measure) : undefined;
11
+ };
12
+ /**
13
+ * @internal
14
+ */
15
+ export const getComparisonOperatorTitle = (operator, intl) => {
16
+ const titleByOperator = {
17
+ [COMPARISON_OPERATORS.COMPARISON_OPERATOR_LESS_THAN]: messages.comparisonOperatorLessThan.id,
18
+ [COMPARISON_OPERATORS.COMPARISON_OPERATOR_LESS_THAN_OR_EQUAL_TO]: messages.comparisonOperatorLessThanOrEquals.id,
19
+ [COMPARISON_OPERATORS.COMPARISON_OPERATOR_GREATER_THAN]: messages.comparisonOperatorGreaterThan.id,
20
+ [COMPARISON_OPERATORS.COMPARISON_OPERATOR_GREATER_THAN_OR_EQUAL_TO]: messages.comparisonOperatorGreaterThanOrEquals.id,
21
+ };
22
+ return intl.formatMessage({ id: titleByOperator[operator] });
23
+ };
24
+ /**
25
+ * @internal
26
+ */
27
+ export const createDefaultAlert = (filters, measure, notificationChannelId, comparisonOperator = "GREATER_THAN") => {
28
+ return {
29
+ type: "automation",
30
+ title: getMeasureTitle(measure),
31
+ description: "",
32
+ webhook: notificationChannelId,
33
+ alert: {
34
+ condition: {
35
+ type: "comparison",
36
+ left: measure.measure.localIdentifier,
37
+ operator: comparisonOperator,
38
+ right: undefined,
39
+ },
40
+ execution: {
41
+ attributes: [],
42
+ measures: [measure],
43
+ filters,
44
+ },
45
+ trigger: {
46
+ state: "ACTIVE",
47
+ },
48
+ },
49
+ };
50
+ };
51
+ export const getSupportedInsightMeasuresByInsight = (insight) => {
52
+ const visualizationUrl = insight?.insight.visualizationUrl;
53
+ const insightType = visualizationUrl?.split(":")[1];
54
+ switch (insightType) {
55
+ case "headline": {
56
+ const insightMeasuresBucket = insight
57
+ ? insightBucket(insight, BucketNames.MEASURES)
58
+ : undefined;
59
+ return insightMeasuresBucket ? bucketMeasures(insightMeasuresBucket) : [];
60
+ }
61
+ case "scatter":
62
+ case "donut":
63
+ case "treemap":
64
+ case "combo2":
65
+ case "heatmap":
66
+ case "bubble":
67
+ case "bullet":
68
+ case "bar":
69
+ case "table":
70
+ case "area":
71
+ case "column":
72
+ case "line":
73
+ case "pushpin":
74
+ case "pie":
75
+ case "sankey":
76
+ case "dependencywheel":
77
+ case "funnel":
78
+ case "pyramid":
79
+ case "waterfall":
80
+ case "repeater":
81
+ default: {
82
+ return [];
83
+ }
84
+ }
85
+ };
86
+ //# sourceMappingURL=utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../../../src/presentation/widget/insight/configuration/InsightAlertConfig/utils.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAEhC,OAAO,EACH,cAAc,EAOd,aAAa,EACb,YAAY,EACZ,YAAY,GACf,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AACtD,OAAO,EAAE,WAAW,EAAE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,OAAO,CAAC,CAAC,CAAC;YACN,OAAO,EAAE,CAAC;QACd,CAAC;IACL,CAAC;AACL,CAAC,CAAC"}
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import { IInsightMenuSubmenuComponentProps } from "../../insightMenu/types.js";
3
+ export declare const InsightAlerts: React.FC<IInsightMenuSubmenuComponentProps>;
4
+ //# sourceMappingURL=InsightAlerts.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InsightAlerts.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/widget/insight/configuration/InsightAlerts.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,OAAO,EAAE,iCAAiC,EAAE,MAAM,4BAA4B,CAAC;AAS/E,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,iCAAiC,CAsFrE,CAAC"}
@@ -0,0 +1,38 @@
1
+ // (C) 2022-2024 GoodData Corporation
2
+ import React from "react";
3
+ import { isInsightWidget, objRefToString } from "@gooddata/sdk-model";
4
+ import { ScrollablePanel, OverlayControllerProvider, OverlayController } from "@gooddata/sdk-ui-kit";
5
+ import { stringUtils } from "@gooddata/util";
6
+ import cx from "classnames";
7
+ import { DASHBOARD_HEADER_OVERLAYS_Z_INDEX } from "../../../constants/index.js";
8
+ import { AlertsList } from "./InsightAlertConfig/AlertsList.js";
9
+ import { EditAlert } from "./InsightAlertConfig/EditAlert.js";
10
+ import { useInsightWidgetAlerting } from "./InsightAlertConfig/hooks/useInsightAlerting.js";
11
+ import { CreateAlert } from "./InsightAlertConfig/CreateAlert.js";
12
+ const overlayController = OverlayController.getInstance(DASHBOARD_HEADER_OVERLAYS_Z_INDEX);
13
+ export const InsightAlerts = ({ widget, onClose, onGoBack }) => {
14
+ const widgetRefSuffix = isInsightWidget(widget)
15
+ ? stringUtils.simplifyText(objRefToString(widget.ref))
16
+ : "";
17
+ const classes = cx("configuration-scrollable-panel", "s-configuration-scrollable-panel", `s-visualization-${widgetRefSuffix}`);
18
+ const { isLoading, alerts, hasAlerts, destinations, viewMode, supportedMeasures, maxAutomationsReached,
19
+ //
20
+ creatingAlert, initiateAlertCreation, cancelAlertCreation,
21
+ //
22
+ editingAlert, initiateAlertEditing, cancelAlertEditing,
23
+ //
24
+ saveNewAlert, updateExistingAlert, pauseExistingAlert, resumeExistingAlert, deleteExistingAlert, } = useInsightWidgetAlerting({ closeInsightWidgetMenu: onClose, widget });
25
+ let content = null;
26
+ if (isLoading || viewMode === "list") {
27
+ content = (React.createElement(AlertsList, { isLoading: isLoading, alerts: alerts, onCreateAlert: initiateAlertCreation, onEditAlert: initiateAlertEditing, onPauseAlert: pauseExistingAlert, onResumeAlert: resumeExistingAlert, onDeleteAlert: deleteExistingAlert, onClose: onClose, onGoBack: onGoBack, measures: supportedMeasures, maxAutomationsReached: maxAutomationsReached }));
28
+ }
29
+ else if (viewMode === "edit" && editingAlert) {
30
+ content = (React.createElement(EditAlert, { alert: editingAlert, hasAlerts: hasAlerts, destinations: destinations, measures: supportedMeasures, onUpdate: updateExistingAlert, onCancel: cancelAlertEditing, onClose: onClose }));
31
+ }
32
+ else if (viewMode === "create") {
33
+ content = (React.createElement(CreateAlert, { alert: creatingAlert, measures: supportedMeasures, hasAlerts: hasAlerts, destinations: destinations, onCreate: saveNewAlert, onCancel: cancelAlertCreation, onClose: onClose, maxAutomationsReached: maxAutomationsReached }));
34
+ }
35
+ return (React.createElement(ScrollablePanel, { className: classes },
36
+ React.createElement(OverlayControllerProvider, { overlayController: overlayController }, content)));
37
+ };
38
+ //# sourceMappingURL=InsightAlerts.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InsightAlerts.js","sourceRoot":"","sources":["../../../../../src/presentation/widget/insight/configuration/InsightAlerts.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACtE,OAAO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illConfigItemProps {
6
6
  item: IDrillConfigItem;
7
7
  enabledDrillTargetTypeItems: IDrillTargetType[];
8
8
  onDelete: (item: IDrillConfigItem) => void;
9
- onSetup: (drill: InsightDrillDefinition | IDrillDownAttributeHierarchyDefinition, changedItem: IDrillConfigItem) => void;
9
+ onSetup: (drill: InsightDrillDefinition | IDrillDownAttributeHierarchyDefinition, changedItem: IDrillConfigItem, isOnlyIgnoredDrillDownInteresectionAttributesChange?: boolean) => void;
10
10
  onIncompleteChange: (changedItem: IDrillConfigItem) => void;
11
11
  }
12
12
  declare const DrillConfigItem: React.FunctionComponent<IDrillConfigItemProps>;
@@ -1 +1 @@
1
- {"version":3,"file":"InsightDrillConfigItem.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/widget/insight/configuration/InsightDrillConfigItem.tsx"],"names":[],"mappings":"AACA,OAAO,KAA6B,MAAM,OAAO,CAAC;AASlD,OAAO,EAEH,gBAAgB,EAChB,sCAAsC,EACzC,MAAM,yBAAyB,CAAC;AAEjC,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAGhE,OAAO,EAKH,sBAAsB,EAGzB,MAAM,qBAAqB,CAAC;AAW7B,MAAM,WAAW,qBAAqB;IAClC,IAAI,EAAE,gBAAgB,CAAC;IACvB,2BAA2B,EAAE,gBAAgB,EAAE,CAAC;IAChD,QAAQ,EAAE,CAAC,IAAI,EAAE,gBAAgB,KAAK,IAAI,CAAC;IAC3C,OAAO,EAAE,CACL,KAAK,EAAE,sBAAsB,GAAG,sCAAsC,EACtE,WAAW,EAAE,gBAAgB,KAC5B,IAAI,CAAC;IACV,kBAAkB,EAAE,CAAC,WAAW,EAAE,gBAAgB,KAAK,IAAI,CAAC;CAC/D;AAqBD,QAAA,MAAM,eAAe,EAAE,KAAK,CAAC,iBAAiB,CAAC,qBAAqB,CAgInE,CAAC;AAkDF,eAAe,eAAe,CAAC"}
1
+ {"version":3,"file":"InsightDrillConfigItem.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/widget/insight/configuration/InsightDrillConfigItem.tsx"],"names":[],"mappings":"AACA,OAAO,KAA6B,MAAM,OAAO,CAAC;AASlD,OAAO,EAEH,gBAAgB,EAEhB,sCAAsC,EACzC,MAAM,yBAAyB,CAAC;AAEjC,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAGhE,OAAO,EAKH,sBAAsB,EAGzB,MAAM,qBAAqB,CAAC;AAY7B,MAAM,WAAW,qBAAqB;IAClC,IAAI,EAAE,gBAAgB,CAAC;IACvB,2BAA2B,EAAE,gBAAgB,EAAE,CAAC;IAChD,QAAQ,EAAE,CAAC,IAAI,EAAE,gBAAgB,KAAK,IAAI,CAAC;IAC3C,OAAO,EAAE,CACL,KAAK,EAAE,sBAAsB,GAAG,sCAAsC,EACtE,WAAW,EAAE,gBAAgB,EAC7B,mDAAmD,CAAC,EAAE,OAAO,KAC5D,IAAI,CAAC;IACV,kBAAkB,EAAE,CAAC,WAAW,EAAE,gBAAgB,KAAK,IAAI,CAAC;CAC/D;AAqBD,QAAA,MAAM,eAAe,EAAE,KAAK,CAAC,iBAAiB,CAAC,qBAAqB,CAqJnE,CAAC;AAkDF,eAAe,eAAe,CAAC"}
@@ -5,6 +5,7 @@ import { FormattedMessage, useIntl } from "react-intl";
5
5
  import cloneDeep from "lodash/cloneDeep.js";
6
6
  import { invariant } from "ts-invariant";
7
7
  import isEqual from "lodash/isEqual.js";
8
+ import compact from "lodash/compact.js";
8
9
  import { stringUtils } from "@gooddata/util";
9
10
  import { messages } from "@gooddata/sdk-ui";
10
11
  import { DRILL_TARGET_TYPE, } from "../../../drill/types.js";
@@ -12,7 +13,7 @@ import { DrillOriginItem } from "./DrillOriginItem.js";
12
13
  import { DrillTargetType } from "./DrillTargetType/DrillTargetType.js";
13
14
  import { DrillTargets } from "./DrillTargets/DrillTargets.js";
14
15
  import { areObjRefsEqual, isAttributeDescriptor, } from "@gooddata/sdk-model";
15
- import { selectCatalogDateDatasets, selectDrillTargetsByWidgetRef, selectEnableDrillIntersectionIgnoredAttributes, selectSelectedWidgetRef, selectWidgetDrills, useDashboardSelector, } from "../../../../model/index.js";
16
+ import { selectCatalogDateDatasets, selectDrillTargetsByWidgetRef, selectEnableDrillDownIntersectionIgnoredAttributes, selectEnableDrillIntersectionIgnoredAttributes, selectSelectedWidgetRef, selectWidgetDrills, useDashboardSelector, } from "../../../../model/index.js";
16
17
  import { DrillIntersectionIgnoredAttributes } from "./DrillIntersectionIgnoredAttributes.js";
17
18
  function disableDrillDownIfMeasure(enabledDrillTargetTypeItems, isMeasure, intl) {
18
19
  const drillTargetTypes = cloneDeep(enabledDrillTargetTypeItems);
@@ -47,18 +48,35 @@ const DrillConfigItem = ({ item, enabledDrillTargetTypeItems, onIncompleteChange
47
48
  const widgetRef = useDashboardSelector(selectSelectedWidgetRef);
48
49
  const widgetDrills = useDashboardSelector(selectWidgetDrills(widgetRef));
49
50
  const enableDrillIntersectionIgnoredAttributes = useDashboardSelector(selectEnableDrillIntersectionIgnoredAttributes);
51
+ const enableDrillDownIntersectionIgnoredAttributes = useDashboardSelector(selectEnableDrillDownIntersectionIgnoredAttributes);
50
52
  invariant(widgetRef, "mush have widget selected");
51
53
  const { isFromDateAttribute, showDateFilterTransferWarning } = useDateAttributeOptions(item, widgetRef);
52
54
  const drillTargetTypeItems = disableDrillDownIfMeasure(enabledDrillTargetTypeItems, item.type === "measure", intl);
53
- const isAllowedDrillTypeForDrillIntersectionIgnoredAttributes = [
55
+ const isAllowedDrillTypeForDrillIntersectionIgnoredAttributes = compact([
54
56
  DRILL_TARGET_TYPE.DRILL_TO_DASHBOARD,
55
57
  DRILL_TARGET_TYPE.DRILL_TO_INSIGHT,
56
- ].some((drillTarget) => drillTarget === item?.drillTargetType);
58
+ enableDrillDownIntersectionIgnoredAttributes ? DRILL_TARGET_TYPE.DRILL_DOWN : undefined,
59
+ ]).some((drillTarget) => drillTarget === item?.drillTargetType);
57
60
  const showDrillIntersectionIgnoredAttributes = enableDrillIntersectionIgnoredAttributes && isAllowedDrillTypeForDrillIntersectionIgnoredAttributes;
58
61
  const onDrillIntersectionIgnoredAttributesChange = (ignoredAttributeLocalIds) => {
59
62
  const targetDrill = widgetDrills.find((d) => d.localIdentifier === item.localIdentifier);
60
- if (targetDrill &&
61
- !isEqual(targetDrill.drillIntersectionIgnoredAttributes, ignoredAttributeLocalIds)) {
63
+ const currentIgnoredAttributes = item.drillIntersectionIgnoredAttributes ?? [];
64
+ const isDrillDown = item.drillTargetType === DRILL_TARGET_TYPE.DRILL_DOWN;
65
+ const isChanged = !isEqual(currentIgnoredAttributes, ignoredAttributeLocalIds);
66
+ if (enableDrillDownIntersectionIgnoredAttributes && isDrillDown && isChanged) {
67
+ const drillDownItem = {
68
+ attributeHierarchyRef: item.attributeHierarchyRef,
69
+ type: "drillDownAttributeHierarchy",
70
+ attributes: item.attributes,
71
+ originLocalIdentifier: item.originLocalIdentifier,
72
+ drillIntersectionIgnoredAttributes: ignoredAttributeLocalIds,
73
+ };
74
+ onSetup(drillDownItem, {
75
+ ...item,
76
+ drillIntersectionIgnoredAttributes: ignoredAttributeLocalIds,
77
+ }, true);
78
+ }
79
+ else if (targetDrill && isChanged) {
62
80
  onSetup({
63
81
  ...targetDrill,
64
82
  drillIntersectionIgnoredAttributes: ignoredAttributeLocalIds,
@@ -1 +1 @@
1
- {"version":3,"file":"InsightDrillConfigItem.js","sourceRoot":"","sources":["../../../../../src/presentation/widget/insight/configuration/InsightDrillConfigItem.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,KAAK,EAAE,EAAa,OAAO,EAAE,MAAM,OAAO,CAAC;AAClD,OAAO,EAAE,MAAM,YAAY,CAAC;AAC5B,OAAO,EAAE,gBAAgB,EAAa,OAAO,EAAE,MAAM,YAAY,CAAC;AAClE,OAAO,SAAS,MAAM,qBAAqB,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,OAAO,MAAM,mBAAm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1B,eAAe;YACf,qBAAqB,CAAC,eAAe,CAAC,SAAS,CAAC;YAChD,cAAc,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,EAAE,CAC9B,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC,aAAa,EAAE,EAAE,CAC5C,eAAe,CACX,aAAa,CAAC,SAAS,CAAC,GAAG,EAC3B,eAAe,CAAC,SAAS,CAAC,eAAe,CAAC,MAAM,CAAC,GAAG,CACvD,CACJ,CACJ,CACJ,CAAC;QAEF,MAAM,6BAA6B,GAC/B,IAAI,CAAC,IAAI,KAAK,SAAS;YACvB,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAC1B,cAAc,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CACtB,CAAC,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,eAAe,CAAC,CAAC,CAAC,SAAS,CAAC,GAAG,EAAE,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,CAAC,CAC3F,CACJ,CAAC;QACN,MAAM,6BAA6B,GAC/B,IAAI,CAAC,eAAe,KAAK,iBAAiB,CAAC,kBAAkB;YAC7D,CAAC,mBAAmB,IAAI,6BAA6B,CAAC,CAAC;QAE3D,OAAO;YACH,mBAAmB;YACnB,6BAA6B;YAC7B,6BAA6B;SAChC,CAAC;IACN,CAAC,EAAE;QACC,YAAY,EAAE,qBAAqB,EAAE,UAAU;QAC/C,cAAc;QACd,IAAI,CAAC,IAAI;QACT,IAAI,CAAC,UAAU;QACf,IAAI,CAAC,eAAe;QACpB,IAAI,CAAC,qBAAqB;KAC7B,CAAC,CAAC;AACP,CAAC;AAED,eAAe,eAAe,CAAC"}
1
+ {"version":3,"file":"InsightDrillConfigItem.js","sourceRoot":"","sources":["../../../../../src/presentation/widget/insight/configuration/InsightDrillConfigItem.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,KAAK,EAAE,EA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S,CAAC,GAAG,EAC3B,eAAe,CAAC,SAAS,CAAC,eAAe,CAAC,MAAM,CAAC,GAAG,CACvD,CACJ,CACJ,CACJ,CAAC;QAEF,MAAM,6BAA6B,GAC/B,IAAI,CAAC,IAAI,KAAK,SAAS;YACvB,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAC1B,cAAc,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CACtB,CAAC,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,eAAe,CAAC,CAAC,CAAC,SAAS,CAAC,GAAG,EAAE,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,CAAC,CAC3F,CACJ,CAAC;QACN,MAAM,6BAA6B,GAC/B,IAAI,CAAC,eAAe,KAAK,iBAAiB,CAAC,kBAAkB;YAC7D,CAAC,mBAAmB,IAAI,6BAA6B,CAAC,CAAC;QAE3D,OAAO;YACH,mBAAmB;YACnB,6BAA6B;YAC7B,6BAA6B;SAChC,CAAC;IACN,CAAC,EAAE;QACC,YAAY,EAAE,qBAAqB,EAAE,UAAU;QAC/C,cAAc;QACd,IAAI,CAAC,IAAI;QACT,IAAI,CAAC,UAAU;QACf,IAAI,CAAC,eAAe;QACpB,IAAI,CAAC,qBAAqB;KAC7B,CAAC,CAAC;AACP,CAAC;AAED,eAAe,eAAe,CAAC"}
@@ -1,4 +1,4 @@
1
- import { InsightDrillDefinition, ObjRef } from "@gooddata/sdk-model";
1
+ import { IInsightWidget, InsightDrillDefinition, ObjRef } from "@gooddata/sdk-model";
2
2
  import { IAvailableDrillTargets } from "@gooddata/sdk-ui";
3
3
  import { IDrillConfigItem, IDrillDownAttributeHierarchyConfig } from "../../../../drill/types.js";
4
4
  import { IGlobalDrillDownAttributeHierarchyDefinition } from "../../../../../types.js";
@@ -9,5 +9,5 @@ export declare const getMappedConfigForWidget: (configForWidget: InsightDrillDef
9
9
  /**
10
10
  * @internal
11
11
  */
12
- export declare const getGlobalDrillDownMappedConfigForWidget: (widgetGlobalDrillDowns: IGlobalDrillDownAttributeHierarchyDefinition[], supportedItemsForWidget: IAvailableDrillTargets, widgetRef: ObjRef) => IDrillDownAttributeHierarchyConfig[];
12
+ export declare const getGlobalDrillDownMappedConfigForWidget: (widgetGlobalDrillDowns: IGlobalDrillDownAttributeHierarchyDefinition[], supportedItemsForWidget: IAvailableDrillTargets, widget: IInsightWidget) => IDrillDownAttributeHierarchyConfig[];
13
13
  //# sourceMappingURL=drillConfigMapper.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"drillConfigMapper.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/widget/insight/configuration/InsightDrillConfigPanel/drillConfigMapper.ts"],"names":[],"mappings":"AACA,OAAO,EAGH,sBAAsB,EAMtB,MAAM,EAET,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,sBAAsB,EAAE,MAAM,kBAAkB,CAAC;AAO1D,OAAO,EAEH,gBAAgB,EAEhB,kCAAkC,EAOrC,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,4CAA4C,EAAE,MAAM,yBAAyB,CAAC;AA4IvF;;GAEG;AACH,eAAO,MAAM,wBAAwB,oBAChB,sBAAsB,EAAE,2BAChB,sBAAsB,iCAChB,MAAM,EAAE,aAC5B,MAAM,KAClB,gBAAgB,EAIlB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,uCAAuC,2BACxB,4CAA4C,EAAE,2BAC7C,sBAAsB,aACpC,MAAM,KAClB,kCAAkC,EAiBpC,CAAC"}
1
+ {"version":3,"file":"drillConfigMapper.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/widget/insight/configuration/InsightDrillConfigPanel/drillConfigMapper.ts"],"names":[],"mappings":"AACA,OAAO,EAGH,cAAc,EACd,sBAAsB,EAMtB,MAAM,EAKT,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,sBAAsB,EAAE,MAAM,kBAAkB,CAAC;AAO1D,OAAO,EAEH,gBAAgB,EAEhB,kCAAkC,EAOrC,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,4CAA4C,EAAE,MAAM,yBAAyB,CAAC;AA4IvF;;GAEG;AACH,eAAO,MAAM,wBAAwB,oBAChB,sBAAsB,EAAE,2BAChB,sBAAsB,iCAChB,MAAM,EAAE,aAC5B,MAAM,KAClB,gBAAgB,EAIlB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,uCAAuC,2BACxB,4CAA4C,EAAE,2BAC7C,sBAAsB,UACvC,cAAc,KACvB,kCAAkC,EAsBpC,CAAC"}