@gooddata/sdk-ui-dashboard 10.9.0-alpha.9 → 10.9.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 (428) 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/en-AU.json +1 -1
  243. package/esm/presentation/localization/bundles/en-US.json +297 -2
  244. package/esm/presentation/localization/bundles/fi-FI.json +2 -2
  245. package/esm/presentation/localization/bundles/{zh-Yue.json → zh-HK.json} +7 -7
  246. package/esm/presentation/localization/bundles/zh-Hant.json +7 -7
  247. package/esm/presentation/localization/translations.js +2 -2
  248. package/esm/presentation/localization/translations.js.map +1 -1
  249. package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/DefaultScheduledEmailDialog.js +1 -1
  250. package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/DefaultScheduledEmailDialog.js.map +1 -1
  251. package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/DestinationSelect/DestinationSelect.d.ts +2 -2
  252. package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/DestinationSelect/DestinationSelect.d.ts.map +1 -1
  253. package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/DestinationSelect/DestinationSelect.js +1 -1
  254. package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/DestinationSelect/DestinationSelect.js.map +1 -1
  255. package/esm/presentation/scheduledEmail/DefaultScheduledEmailManagementDialog/DefaultScheduledEmailManagementDialog.d.ts.map +1 -1
  256. package/esm/presentation/scheduledEmail/DefaultScheduledEmailManagementDialog/DefaultScheduledEmailManagementDialog.js +1 -1
  257. package/esm/presentation/scheduledEmail/DefaultScheduledEmailManagementDialog/DefaultScheduledEmailManagementDialog.js.map +1 -1
  258. package/esm/presentation/scheduledEmail/DefaultScheduledEmailManagementDialog/components/ScheduledEmail.d.ts +2 -2
  259. package/esm/presentation/scheduledEmail/DefaultScheduledEmailManagementDialog/components/ScheduledEmail.d.ts.map +1 -1
  260. package/esm/presentation/scheduledEmail/DefaultScheduledEmailManagementDialog/components/ScheduledEmail.js +1 -1
  261. package/esm/presentation/scheduledEmail/DefaultScheduledEmailManagementDialog/components/ScheduledEmail.js.map +1 -1
  262. package/esm/presentation/scheduledEmail/DefaultScheduledEmailManagementDialog/components/ScheduledEmailsList.d.ts +2 -2
  263. package/esm/presentation/scheduledEmail/DefaultScheduledEmailManagementDialog/components/ScheduledEmailsList.d.ts.map +1 -1
  264. package/esm/presentation/scheduledEmail/types.d.ts +3 -3
  265. package/esm/presentation/scheduledEmail/types.d.ts.map +1 -1
  266. package/esm/presentation/topBar/menuButton/useDefaultMenuItems.d.ts.map +1 -1
  267. package/esm/presentation/topBar/menuButton/useDefaultMenuItems.js +166 -120
  268. package/esm/presentation/topBar/menuButton/useDefaultMenuItems.js.map +1 -1
  269. package/esm/presentation/widget/common/configuration/ConfigurationBubble.d.ts +2 -1
  270. package/esm/presentation/widget/common/configuration/ConfigurationBubble.d.ts.map +1 -1
  271. package/esm/presentation/widget/common/configuration/ConfigurationBubble.js +3 -4
  272. package/esm/presentation/widget/common/configuration/ConfigurationBubble.js.map +1 -1
  273. package/esm/presentation/widget/common/useWidgetFilters.d.ts +1 -1
  274. package/esm/presentation/widget/common/useWidgetFilters.d.ts.map +1 -1
  275. package/esm/presentation/widget/common/useWidgetFilters.js +1 -1
  276. package/esm/presentation/widget/common/useWidgetFilters.js.map +1 -1
  277. package/esm/presentation/widget/insight/configuration/DrillTargets/DrillTargets.d.ts.map +1 -1
  278. package/esm/presentation/widget/insight/configuration/DrillTargets/DrillTargets.js +1 -0
  279. package/esm/presentation/widget/insight/configuration/DrillTargets/DrillTargets.js.map +1 -1
  280. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertActionsDropdown.d.ts +3 -1
  281. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertActionsDropdown.d.ts.map +1 -1
  282. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertActionsDropdown.js +20 -11
  283. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertActionsDropdown.js.map +1 -1
  284. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertComparisonOperatorSelect.d.ts.map +1 -1
  285. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertComparisonOperatorSelect.js +5 -3
  286. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertComparisonOperatorSelect.js.map +1 -1
  287. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertDeleteDialog.d.ts +7 -0
  288. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertDeleteDialog.d.ts.map +1 -0
  289. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertDeleteDialog.js +13 -0
  290. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertDeleteDialog.js.map +1 -0
  291. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertDestinationSelect.d.ts +2 -2
  292. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertDestinationSelect.d.ts.map +1 -1
  293. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertDestinationSelect.js +3 -3
  294. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertDestinationSelect.js.map +1 -1
  295. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertMeasureSelect.d.ts +1 -1
  296. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertMeasureSelect.d.ts.map +1 -1
  297. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertMeasureSelect.js +8 -4
  298. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertMeasureSelect.js.map +1 -1
  299. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertTriggerModeSelect.d.ts.map +1 -1
  300. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertTriggerModeSelect.js +8 -5
  301. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertTriggerModeSelect.js.map +1 -1
  302. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertsList.d.ts +4 -1
  303. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertsList.d.ts.map +1 -1
  304. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertsList.js +22 -7
  305. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertsList.js.map +1 -1
  306. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertsListItem.d.ts +1 -0
  307. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertsListItem.d.ts.map +1 -1
  308. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertsListItem.js +4 -4
  309. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertsListItem.js.map +1 -1
  310. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/CreateAlert.d.ts +4 -3
  311. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/CreateAlert.d.ts.map +1 -1
  312. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/CreateAlert.js +2 -2
  313. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/CreateAlert.js.map +1 -1
  314. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/EditAlert.d.ts +3 -2
  315. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/EditAlert.d.ts.map +1 -1
  316. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/EditAlert.js +28 -11
  317. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/EditAlert.js.map +1 -1
  318. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/EditAlertConfiguration.d.ts.map +1 -1
  319. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/EditAlertConfiguration.js +18 -5
  320. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/EditAlertConfiguration.js.map +1 -1
  321. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/constants.d.ts +5 -8
  322. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/constants.d.ts.map +1 -1
  323. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/constants.js +12 -10
  324. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/constants.js.map +1 -1
  325. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useCreateAlert.d.ts +11 -0
  326. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useCreateAlert.d.ts.map +1 -0
  327. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useCreateAlert.js +27 -0
  328. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useCreateAlert.js.map +1 -0
  329. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useEditAlert.d.ts.map +1 -0
  330. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/{useEditAlert.js → hooks/useEditAlert.js} +7 -5
  331. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useEditAlert.js.map +1 -0
  332. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/{useInsightAlerting.d.ts → hooks/useInsightAlerting.d.ts} +6 -5
  333. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useInsightAlerting.d.ts.map +1 -0
  334. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useInsightAlerting.js +179 -0
  335. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useInsightAlerting.js.map +1 -0
  336. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useSaveAlertToBackend.d.ts +29 -0
  337. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useSaveAlertToBackend.d.ts.map +1 -0
  338. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useSaveAlertToBackend.js +51 -0
  339. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useSaveAlertToBackend.js.map +1 -0
  340. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useUpdateAlert.d.ts +11 -0
  341. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useUpdateAlert.d.ts.map +1 -0
  342. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useUpdateAlert.js +27 -0
  343. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useUpdateAlert.js.map +1 -0
  344. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/messages.d.ts +57 -0
  345. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/messages.d.ts.map +1 -0
  346. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/messages.js +59 -0
  347. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/messages.js.map +1 -0
  348. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/utils.d.ts +3 -2
  349. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/utils.d.ts.map +1 -1
  350. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/utils.js +8 -7
  351. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/utils.js.map +1 -1
  352. package/esm/presentation/widget/insight/configuration/InsightAlerts.d.ts.map +1 -1
  353. package/esm/presentation/widget/insight/configuration/InsightAlerts.js +5 -5
  354. package/esm/presentation/widget/insight/configuration/InsightAlerts.js.map +1 -1
  355. package/esm/presentation/widget/insight/configuration/InsightDrillConfigItem.d.ts +1 -1
  356. package/esm/presentation/widget/insight/configuration/InsightDrillConfigItem.d.ts.map +1 -1
  357. package/esm/presentation/widget/insight/configuration/InsightDrillConfigItem.js +23 -5
  358. package/esm/presentation/widget/insight/configuration/InsightDrillConfigItem.js.map +1 -1
  359. package/esm/presentation/widget/insight/configuration/InsightDrillConfigPanel/drillConfigMapper.d.ts +2 -2
  360. package/esm/presentation/widget/insight/configuration/InsightDrillConfigPanel/drillConfigMapper.d.ts.map +1 -1
  361. package/esm/presentation/widget/insight/configuration/InsightDrillConfigPanel/drillConfigMapper.js +25 -3
  362. package/esm/presentation/widget/insight/configuration/InsightDrillConfigPanel/drillConfigMapper.js.map +1 -1
  363. package/esm/presentation/widget/insight/configuration/InsightDrillConfigPanel/useInsightDrillConfigPanel.d.ts +1 -1
  364. package/esm/presentation/widget/insight/configuration/InsightDrillConfigPanel/useInsightDrillConfigPanel.d.ts.map +1 -1
  365. package/esm/presentation/widget/insight/configuration/InsightDrillConfigPanel/useInsightDrillConfigPanel.js +5 -4
  366. package/esm/presentation/widget/insight/configuration/InsightDrillConfigPanel/useInsightDrillConfigPanel.js.map +1 -1
  367. package/esm/presentation/widget/insight/index.d.ts +1 -0
  368. package/esm/presentation/widget/insight/index.d.ts.map +1 -1
  369. package/esm/presentation/widget/insight/index.js +2 -1
  370. package/esm/presentation/widget/insight/index.js.map +1 -1
  371. package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/DashboardInsightMenu/DashboardInsightMenuItemButton.d.ts.map +1 -1
  372. package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/DashboardInsightMenu/DashboardInsightMenuItemButton.js +1 -1
  373. package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/DashboardInsightMenu/DashboardInsightMenuItemButton.js.map +1 -1
  374. package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/getDefaultInsightMenuItems.d.ts +1 -0
  375. package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/getDefaultInsightMenuItems.d.ts.map +1 -1
  376. package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/getDefaultInsightMenuItems.js +9 -1
  377. package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/getDefaultInsightMenuItems.js.map +1 -1
  378. package/esm/presentation/widget/insightMenu/types.d.ts +3 -3
  379. package/esm/presentation/widget/insightMenu/types.d.ts.map +1 -1
  380. package/esm/presentation/widget/kpi/ViewModeDashboardKpi/useKpiAlertOperations.d.ts.map +1 -1
  381. package/esm/presentation/widget/kpi/ViewModeDashboardKpi/useKpiAlertOperations.js +9 -20
  382. package/esm/presentation/widget/kpi/ViewModeDashboardKpi/useKpiAlertOperations.js.map +1 -1
  383. package/esm/presentation/widget/widget/InsightWidget/DefaultDashboardInsightWidget.d.ts.map +1 -1
  384. package/esm/presentation/widget/widget/InsightWidget/DefaultDashboardInsightWidget.js +4 -5
  385. package/esm/presentation/widget/widget/InsightWidget/DefaultDashboardInsightWidget.js.map +1 -1
  386. package/esm/presentation/widget/widget/InsightWidget/useInsightMenu.d.ts +1 -0
  387. package/esm/presentation/widget/widget/InsightWidget/useInsightMenu.d.ts.map +1 -1
  388. package/esm/presentation/widget/widget/InsightWidget/useInsightMenu.js +12 -9
  389. package/esm/presentation/widget/widget/InsightWidget/useInsightMenu.js.map +1 -1
  390. package/esm/sdk-ui-dashboard.d.ts +374 -146
  391. package/esm/types.d.ts +9 -0
  392. package/esm/types.d.ts.map +1 -1
  393. package/esm/types.js.map +1 -1
  394. package/package.json +16 -15
  395. package/styles/css/alerting.css +88 -11
  396. package/styles/css/alerting.css.map +1 -1
  397. package/styles/css/configurationPanel.css +3 -0
  398. package/styles/css/configurationPanel.css.map +1 -1
  399. package/styles/css/dashboard.css +60 -5
  400. package/styles/css/dashboard.css.map +1 -1
  401. package/styles/css/icons.css +7 -0
  402. package/styles/css/icons.css.map +1 -1
  403. package/styles/css/main.css +158 -16
  404. package/styles/css/main.css.map +1 -1
  405. package/styles/css/scheduled_mail.css +60 -5
  406. package/styles/css/scheduled_mail.css.map +1 -1
  407. package/styles/scss/alerting.scss +54 -11
  408. package/styles/scss/configurationPanel.scss +5 -0
  409. package/styles/scss/icons.scss +9 -0
  410. package/styles/scss/scheduled_mail.scss +69 -3
  411. package/esm/model/commandHandlers/alerts/removeAlertsHandler.d.ts +0 -6
  412. package/esm/model/commandHandlers/alerts/removeAlertsHandler.d.ts.map +0 -1
  413. package/esm/model/commandHandlers/alerts/removeAlertsHandler.js +0 -20
  414. package/esm/model/commandHandlers/alerts/removeAlertsHandler.js.map +0 -1
  415. package/esm/model/commandHandlers/alerts/updateAlertHandler.d.ts +0 -6
  416. package/esm/model/commandHandlers/alerts/updateAlertHandler.d.ts.map +0 -1
  417. package/esm/model/commandHandlers/alerts/updateAlertHandler.js +0 -17
  418. package/esm/model/commandHandlers/alerts/updateAlertHandler.js.map +0 -1
  419. package/esm/model/commandHandlers/alerts/validation/alertsValidation.d.ts +0 -20
  420. package/esm/model/commandHandlers/alerts/validation/alertsValidation.d.ts.map +0 -1
  421. package/esm/model/commandHandlers/alerts/validation/alertsValidation.js +0 -22
  422. package/esm/model/commandHandlers/alerts/validation/alertsValidation.js.map +0 -1
  423. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/useEditAlert.d.ts.map +0 -1
  424. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/useEditAlert.js.map +0 -1
  425. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/useInsightAlerting.d.ts.map +0 -1
  426. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/useInsightAlerting.js +0 -127
  427. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/useInsightAlerting.js.map +0 -1
  428. /package/esm/presentation/widget/insight/configuration/InsightAlertConfig/{useEditAlert.d.ts → hooks/useEditAlert.d.ts} +0 -0
@@ -1,5 +1,8 @@
1
1
  // (C) 2024 GoodData Corporation
2
2
 
3
+ @use "@gooddata/sdk-ui-kit/styles/scss/variables" as kit-variables;
4
+ @use "react-loading-skeleton/dist/skeleton.css";
5
+
3
6
  //
4
7
  // Alerts list
5
8
  //
@@ -9,10 +12,44 @@
9
12
 
10
13
  .gd-alerts-list__items {
11
14
  padding: 10px 0 10px 0;
15
+
16
+ .skeleton-flex {
17
+ flex: 1;
18
+ }
19
+
20
+ .skeleton-margin {
21
+ margin-left: 10px;
22
+ }
23
+
24
+ .gd-react-loading-skeleton-wrapper {
25
+ display: flex;
26
+ align-items: center;
27
+ justify-content: center;
28
+ padding: 10px;
29
+ }
30
+
31
+ .gd-react-loading-skeleton.react-loading-skeleton {
32
+ --base-color: var(--gd-dashboards-title-borderColor, var(--gd-palette-complementary-2, #ebeff4));
33
+ --highlight-color: var(
34
+ --gd-dashboards-content-backgroundColor,
35
+ var(--gd-palette-complementary-0, #fff)
36
+ );
37
+ }
12
38
  }
13
39
 
14
40
  .gd-alerts-list__buttons {
15
41
  padding: 10px 0;
42
+
43
+ .gd-alerts-list__add-button {
44
+ font-weight: 400;
45
+ font-size: 12px;
46
+ line-height: 18px;
47
+ padding-left: 28px;
48
+
49
+ &::before {
50
+ font-size: 15px;
51
+ }
52
+ }
16
53
  }
17
54
 
18
55
  //
@@ -25,7 +62,7 @@
25
62
  transition: background-color 100ms ease-in-out;
26
63
 
27
64
  &:hover {
28
- background-color: #ebeff4; // var(--gray-200-ebeff-4-com-2, #EBEFF4);
65
+ background-color: kit-variables.$is-focused-background;
29
66
  }
30
67
  }
31
68
 
@@ -38,7 +75,7 @@
38
75
  }
39
76
 
40
77
  .gd-alerts-list-item__icon {
41
- background-color: #ebeff4; //var(--gray-200-ebeff-4-com-2, #EBEFF4);
78
+ background-color: kit-variables.$is-focused-background;
42
79
  width: 26px;
43
80
  height: 26px;
44
81
  border-radius: 51%;
@@ -60,14 +97,14 @@
60
97
  .gd-alerts-list-item__title {
61
98
  overflow: hidden;
62
99
  text-overflow: ellipsis;
63
- color: #464e56; // var(--gray-800464-e-56-com-8, #464E56);
100
+ color: kit-variables.$gd-color-text;
64
101
  font-weight: 700;
65
102
  }
66
103
 
67
104
  .gd-alerts-list-item__description {
68
105
  overflow: hidden;
69
106
  text-overflow: ellipsis;
70
- color: #94a1ad; // var(--gray-60094-a-1-ad-com-6, #94A1AD);
107
+ color: kit-variables.$gd-color-state-blank;
71
108
  font-weight: 400;
72
109
  white-space: nowrap;
73
110
  }
@@ -78,7 +115,7 @@
78
115
  .gd-edit-alert {
79
116
  font-size: 12px;
80
117
  line-height: 14px;
81
- color: #464e56;
118
+ color: kit-variables.$gd-color-text;
82
119
  width: 100%;
83
120
  }
84
121
 
@@ -112,11 +149,15 @@
112
149
  display: flex;
113
150
  align-items: center;
114
151
  justify-content: space-between;
115
- border-top: 1px solid #dde4eb; // com-3
152
+ border-top: 1px solid kit-variables.$gd-border-color;
153
+
154
+ .gd-button-left-margin {
155
+ margin-left: 10px;
156
+ }
116
157
  }
117
158
 
118
159
  .gd-edit-alert__configuration-button {
119
- color: #94a1ad; // com-6
160
+ color: kit-variables.$gd-color-state-blank;
120
161
  }
121
162
 
122
163
  //
@@ -141,6 +182,8 @@
141
182
 
142
183
  .gd-edit-alert-configuration__trigger-label-icon {
143
184
  margin-left: 5px;
185
+ position: relative;
186
+ top: 2px;
144
187
  }
145
188
 
146
189
  .gd-edit-alert-configuration__trigger-select {
@@ -152,7 +195,7 @@
152
195
  display: flex;
153
196
  align-items: center;
154
197
  justify-content: flex-end;
155
- border-top: 1px solid #dde4eb; // com-3
198
+ border-top: 1px solid kit-variables.$gd-border-color;
156
199
  }
157
200
 
158
201
  //
@@ -229,7 +272,7 @@
229
272
 
230
273
  &:hover,
231
274
  &.gd-alert-actions-dropdown__button--open {
232
- background-color: #ccd8e2; // var(--gray-400-ccd-8-e-2-com-4, #CCD8E2);
275
+ background-color: kit-variables.$gd-input-text-border;
233
276
  }
234
277
 
235
278
  .gd-button-text {
@@ -243,7 +286,7 @@
243
286
 
244
287
  .gd-alert-actions-dropdown__list-item-delete {
245
288
  &:hover {
246
- color: #e54d40; // var(--error-red-e-54-d-42, #E54D40);
247
- background-color: #fcedec; // var(--error-red-light-fcedec, #FCEDEC);
289
+ color: kit-variables.$gd-color-negative;
290
+ background-color: kit-variables.$gd-palette-error-dimmed;
248
291
  }
249
292
  }
@@ -132,6 +132,11 @@
132
132
  .input-label-text {
133
133
  display: flex;
134
134
  }
135
+
136
+ // Same selector and rule as in KD to have consistent look in Dashboard component and in KD.
137
+ label .gd-bubble-trigger {
138
+ margin: 0 5px;
139
+ }
135
140
  }
136
141
 
137
142
  .configuration-panel-header-title {
@@ -117,6 +117,15 @@
117
117
  display: inline-block;
118
118
  }
119
119
  }
120
+ .gd-icon-filter {
121
+ &::before {
122
+ content: "";
123
+ background: url("~@gooddata/sdk-ui-dashboard/esm/assets/filter.svg") no-repeat center;
124
+ width: 16px;
125
+ height: 16px;
126
+ display: inline-block;
127
+ }
128
+ }
120
129
  }
121
130
 
122
131
  .dropdown-body .gd-list-item {
@@ -384,7 +384,8 @@ $min-content-height: 110px;
384
384
  height: 50px;
385
385
  cursor: default;
386
386
 
387
- &:hover {
387
+ &:hover,
388
+ &.hover {
388
389
  background: kit-variables.$is-focused-background;
389
390
 
390
391
  .gd-scheduled-email-icon {
@@ -395,9 +396,14 @@ $min-content-height: 110px;
395
396
  display: block;
396
397
  }
397
398
  }
398
- &.editable:hover {
399
+ &.editable:hover,
400
+ &.editable.hover {
399
401
  cursor: pointer;
400
402
  }
403
+
404
+ .gd-scheduled-email-menu-icon {
405
+ display: block;
406
+ }
401
407
  }
402
408
 
403
409
  .gd-scheduled-email-icon {
@@ -463,6 +469,10 @@ $min-content-height: 110px;
463
469
  .gd-scheduled-email-delete-icon::after {
464
470
  color: kit-variables.$gd-palette-error-base;
465
471
  }
472
+
473
+ .gd-scheduled-email-menu-icon::after {
474
+ color: kit-variables.$default-gd-medium-gray;
475
+ }
466
476
  }
467
477
 
468
478
  .gd-scheduled-email-delete-icon {
@@ -483,6 +493,46 @@ $min-content-height: 110px;
483
493
  }
484
494
  }
485
495
 
496
+ .gd-scheduled-email-menu {
497
+ display: flex;
498
+ justify-content: center;
499
+ align-items: center;
500
+ width: 50px;
501
+ height: 100%;
502
+ cursor: pointer;
503
+ flex-shrink: 0;
504
+ position: relative;
505
+ }
506
+
507
+ .gd-scheduled-email-menu:hover {
508
+ background-color: kit-variables.$gd-input-text-border;
509
+ }
510
+
511
+ .gd-scheduled-email-menu-icon {
512
+ display: block;
513
+ margin: auto;
514
+ position: absolute;
515
+ top: 0;
516
+ right: 0;
517
+ left: 0;
518
+ bottom: 0;
519
+
520
+ &::after {
521
+ content: "";
522
+ background-image: url("~@gooddata/sdk-ui-dashboard/esm/assets/ellipsis.svg");
523
+ background-color: transparent;
524
+ background-position: center center;
525
+ border: none;
526
+ box-shadow: none;
527
+ position: absolute;
528
+ font-family: kit-variables.$gd-font-indigo;
529
+ top: 0;
530
+ right: 0;
531
+ left: 0;
532
+ bottom: 0;
533
+ }
534
+ }
535
+
486
536
  .gd-content-divider {
487
537
  border-top: 1px solid kit-variables.$gd-border-color;
488
538
  height: 0;
@@ -537,7 +587,6 @@ $min-content-height: 110px;
537
587
 
538
588
  @media #{kit-variables.$small-only} {
539
589
  > strong {
540
- display: block;
541
590
  overflow: hidden;
542
591
  line-height: 20px;
543
592
  white-space: nowrap;
@@ -645,6 +694,13 @@ $min-content-height: 110px;
645
694
  display: flex;
646
695
  flex: 1;
647
696
  padding-bottom: $vertical-space;
697
+ overflow: hidden;
698
+
699
+ .gd-editable-label-inner {
700
+ overflow: hidden;
701
+ text-overflow: ellipsis;
702
+ white-space: nowrap;
703
+ }
648
704
  }
649
705
 
650
706
  .gd-schedule-email-dialog-title {
@@ -690,3 +746,13 @@ $min-content-height: 110px;
690
746
  padding: 0 10px;
691
747
  }
692
748
  }
749
+
750
+ .gd-schedule-email-dialog-menu {
751
+ min-width: 100px;
752
+ .deleteItem {
753
+ &:hover {
754
+ background-color: kit-variables.$gd-palette-error-dimmed;
755
+ color: kit-variables.$gd-palette-error-base;
756
+ }
757
+ }
758
+ }
@@ -1,6 +0,0 @@
1
- import { SagaIterator } from "redux-saga";
2
- import { DashboardContext } from "../../types/commonTypes.js";
3
- import { RemoveAlerts } from "../../commands/alerts.js";
4
- import { DashboardAlertsRemoved } from "../../events/alerts.js";
5
- export declare function removeAlertsHandler(ctx: DashboardContext, cmd: RemoveAlerts): SagaIterator<DashboardAlertsRemoved>;
6
- //# sourceMappingURL=removeAlertsHandler.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"removeAlertsHandler.d.ts","sourceRoot":"","sources":["../../../../src/model/commandHandlers/alerts/removeAlertsHandler.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAG1C,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAC9D,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,EAAiB,sBAAsB,EAAE,MAAM,wBAAwB,CAAC;AAU/E,wBAAiB,mBAAmB,CAChC,GAAG,EAAE,gBAAgB,EACrB,GAAG,EAAE,YAAY,GAClB,YAAY,CAAC,sBAAsB,CAAC,CAatC"}
@@ -1,20 +0,0 @@
1
- import { call, select, put } from "redux-saga/effects";
2
- import { objRefToString } from "@gooddata/sdk-model";
3
- import { alertsRemoved } from "../../events/alerts.js";
4
- import { alertsActions } from "../../store/alerts/index.js";
5
- import { selectAlertsMap } from "../../store/alerts/alertsSelectors.js";
6
- import { validateExistingAlerts } from "./validation/alertsValidation.js";
7
- function removeAlerts(ctx, alertRefs) {
8
- const { backend, workspace } = ctx;
9
- return backend.workspace(workspace).dashboards().deleteWidgetAlerts(alertRefs);
10
- }
11
- export function* removeAlertsHandler(ctx, cmd) {
12
- const alertsMap = yield select(selectAlertsMap);
13
- const alerts = validateExistingAlerts(alertsMap, cmd, ctx);
14
- const refs = alerts.map((alert) => alert.ref);
15
- yield call(removeAlerts, ctx, refs);
16
- const ids = alerts.map((alert) => objRefToString(alert.ref));
17
- yield put(alertsActions.removeAlerts(ids));
18
- return alertsRemoved(ctx, alerts, cmd.correlationId);
19
- }
20
- //# sourceMappingURL=removeAlertsHandler.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"removeAlertsHandler.js","sourceRoot":"","sources":["../../../../src/model/commandHandlers/alerts/removeAlertsHandler.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,EAAU,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAG7D,OAAO,EAAE,aAAa,EAA0B,MAAM,wBAAwB,CAAC;AAC/E,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAC5D,OAAO,EAAE,eAAe,EAAE,MAAM,uCAAuC,CAAC;AACxE,OAAO,EAAE,sBAAsB,EAAE,MAAM,kCAAkC,CAAC;AAE1E,SAAS,YAAY,CAAC,GAAqB,EAAE,SAAmB;IAC5D,MAAM,EAAE,OAAO,EAAE,SAAS,EAAE,GAAG,GAAG,CAAC;IACnC,OAAO,OAAO,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC,UAAU,EAAE,CAAC,kBAAkB,CAAC,SAAS,CAAC,CAAC;AACnF,CAAC;AAED,MAAM,SAAS,CAAC,CAAC,mBAAmB,CAChC,GAAqB,EACrB,GAAiB;IAEjB,MAAM,SAAS,GAAuC,MAAM,MAAM,CAAC,eAAe,CAAC,CAAC;IACpF,MAAM,MAAM,GAAG,sBAAsB,CAAC,SAAS,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC;IAE3D,MAAM,IAAI,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IAE9C,MAAM,IAAI,CAAC,YAAY,EAAE,GAAG,EAAE,IAAI,CAAC,CAAC;IAEpC,MAAM,GAAG,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,cAAc,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC;IAE7D,MAAM,GAAG,CAAC,aAAa,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC,CAAC;IAE3C,OAAO,aAAa,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,CAAC,aAAa,CAAC,CAAC;AACzD,CAAC"}
@@ -1,6 +0,0 @@
1
- import { SagaIterator } from "redux-saga";
2
- import { DashboardContext } from "../../types/commonTypes.js";
3
- import { UpdateAlert } from "../../commands/alerts.js";
4
- import { DashboardAlertUpdated } from "../../events/alerts.js";
5
- export declare function updateAlertHandler(ctx: DashboardContext, cmd: UpdateAlert): SagaIterator<DashboardAlertUpdated>;
6
- //# sourceMappingURL=updateAlertHandler.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"updateAlertHandler.d.ts","sourceRoot":"","sources":["../../../../src/model/commandHandlers/alerts/updateAlertHandler.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAG1C,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAC9D,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,OAAO,EAAgB,qBAAqB,EAAE,MAAM,wBAAwB,CAAC;AAU7E,wBAAiB,kBAAkB,CAC/B,GAAG,EAAE,gBAAgB,EACrB,GAAG,EAAE,WAAW,GACjB,YAAY,CAAC,qBAAqB,CAAC,CAWrC"}
@@ -1,17 +0,0 @@
1
- import { call, put } from "redux-saga/effects";
2
- import { objRefToString } from "@gooddata/sdk-model";
3
- import { alertUpdated } from "../../events/alerts.js";
4
- import { alertsActions } from "../../store/alerts/index.js";
5
- function updateAlert(ctx, alert) {
6
- const { backend, workspace } = ctx;
7
- return backend.workspace(workspace).dashboards().updateWidgetAlert(alert);
8
- }
9
- export function* updateAlertHandler(ctx, cmd) {
10
- const alert = yield call(updateAlert, ctx, cmd.payload.alert);
11
- yield put(alertsActions.updateAlert({
12
- changes: cmd.payload.alert,
13
- id: objRefToString(cmd.payload.alert.ref),
14
- }));
15
- return alertUpdated(ctx, alert, cmd.correlationId);
16
- }
17
- //# sourceMappingURL=updateAlertHandler.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"updateAlertHandler.js","sourceRoot":"","sources":["../../../../src/model/commandHandlers/alerts/updateAlertHandler.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,EAAE,cAAc,EAAgB,MAAM,qBAAqB,CAAC;AAGnE,OAAO,EAAE,YAAY,EAAyB,MAAM,wBAAwB,CAAC;AAE7E,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAE5D,SAAS,WAAW,CAAC,GAAqB,EAAE,KAAmB;IAC3D,MAAM,EAAE,OAAO,EAAE,SAAS,EAAE,GAAG,GAAG,CAAC;IAEnC,OAAO,OAAO,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC,UAAU,EAAE,CAAC,iBAAiB,CAAC,KAAK,CAAC,CAAC;AAC9E,CAAC;AAED,MAAM,SAAS,CAAC,CAAC,kBAAkB,CAC/B,GAAqB,EACrB,GAAgB;IAEhB,MAAM,KAAK,GAA4C,MAAM,IAAI,CAAC,WAAW,EAAE,GAAG,EAAE,GAAG,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;IAEvG,MAAM,GAAG,CACL,aAAa,CAAC,WAAW,CAAC;QACtB,OAAO,EAAE,GAAG,CAAC,OAAO,CAAC,KAAK;QAC1B,EAAE,EAAE,cAAc,CAAC,GAAG,CAAC,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC;KAC5C,CAAC,CACL,CAAC;IAEF,OAAO,YAAY,CAAC,GAAG,EAAE,KAAK,EAAE,GAAG,CAAC,aAAa,CAAC,CAAC;AACvD,CAAC"}
@@ -1,20 +0,0 @@
1
- import { ObjRef, IWidgetAlert } from "@gooddata/sdk-model";
2
- import { ObjRefMap } from "../../../../_staging/metadata/objRefMap.js";
3
- import { IDashboardCommand } from "../../../commands/index.js";
4
- import { DashboardContext } from "../../../types/commonTypes.js";
5
- type CommandWithRefs = IDashboardCommand & {
6
- payload: {
7
- refs: ObjRef[];
8
- };
9
- };
10
- /**
11
- * Given list of all kpi alerts and a command that contains a refs array, this function tests that the `ref` are
12
- * a reference to an existing kpi alerts.
13
- *
14
- * @param ctx - dashboard context, this will be included in the DashboardCommandFailed event
15
- * @param alerts - map of alerts on the dashboard
16
- * @param cmd - any command that has 'ref' in its payload
17
- */
18
- export declare function validateExistingAlerts(alerts: ObjRefMap<IWidgetAlert>, cmd: CommandWithRefs, ctx: DashboardContext): IWidgetAlert[];
19
- export {};
20
- //# sourceMappingURL=alertsValidation.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"alertsValidation.d.ts","sourceRoot":"","sources":["../../../../../src/model/commandHandlers/alerts/validation/alertsValidation.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAmB,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAE5E,OAAO,EAAE,SAAS,EAAE,MAAM,4CAA4C,CAAC;AACvE,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAEjE,KAAK,eAAe,GAAG,iBAAiB,GAAG;IACvC,OAAO,EAAE;QACL,IAAI,EAAE,MAAM,EAAE,CAAC;KAClB,CAAC;CACL,CAAC;AAEF;;;;;;;GAOG;AACH,wBAAgB,sBAAsB,CAClC,MAAM,EAAE,SAAS,CAAC,YAAY,CAAC,EAC/B,GAAG,EAAE,eAAe,EACpB,GAAG,EAAE,gBAAgB,GACtB,YAAY,EAAE,CAkBhB"}
@@ -1,22 +0,0 @@
1
- // (C) 2021-2022 GoodData Corporation
2
- import { serializeObjRef } from "@gooddata/sdk-model";
3
- import { invalidArgumentsProvided } from "../../../events/general.js";
4
- /**
5
- * Given list of all kpi alerts and a command that contains a refs array, this function tests that the `ref` are
6
- * a reference to an existing kpi alerts.
7
- *
8
- * @param ctx - dashboard context, this will be included in the DashboardCommandFailed event
9
- * @param alerts - map of alerts on the dashboard
10
- * @param cmd - any command that has 'ref' in its payload
11
- */
12
- export function validateExistingAlerts(alerts, cmd, ctx) {
13
- const { payload: { refs }, } = cmd;
14
- return refs.map((ref) => {
15
- const alert = alerts.get(ref);
16
- if (!alert) {
17
- throw invalidArgumentsProvided(ctx, cmd, `Cannot find Kpi alert with ref: ${serializeObjRef(ref)}.`);
18
- }
19
- return alert;
20
- });
21
- }
22
- //# sourceMappingURL=alertsValidation.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"alertsValidation.js","sourceRoot":"","sources":["../../../../../src/model/commandHandlers/alerts/validation/alertsValidation.ts"],"names":[],"mappings":"AAAA,qCAAqC;AAErC,OAAO,EAAU,eAAe,EAAgB,MAAM,qBAAqB,CAAC;AAC5E,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AAWtE;;;;;;;GAOG;AACH,MAAM,UAAU,sBAAsB,CAClC,MAA+B,EAC/B,GAAoB,EACpB,GAAqB;IAErB,MAAM,EACF,OAAO,EAAE,EAAE,IAAI,EAAE,GACpB,GAAG,GAAG,CAAC;IAER,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE;QACpB,MAAM,KAAK,GAAG,MAAM,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;QAE9B,IAAI,CAAC,KAAK,EAAE,CAAC;YACT,MAAM,wBAAwB,CAC1B,GAAG,EACH,GAAG,EACH,mCAAmC,eAAe,CAAC,GAAG,CAAC,GAAG,CAC7D,CAAC;QACN,CAAC;QAED,OAAO,KAAK,CAAC;IACjB,CAAC,CAAC,CAAC;AACP,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"useEditAlert.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/widget/insight/configuration/InsightAlertConfig/useEditAlert.ts"],"names":[],"mappings":"AAEA,OAAO,EACH,wBAAwB,EACxB,yBAAyB,EACzB,mCAAmC,EACnC,QAAQ,EACX,MAAM,qBAAqB,CAAC;AAI7B,MAAM,WAAW,kBAAkB;IAC/B,KAAK,EAAE,yBAAyB,CAAC;IACjC,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,mCAAmC,KAAK,IAAI,CAAC;IAChE,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,yBAAyB,KAAK,IAAI,CAAC;CACzD;AAED,eAAO,MAAM,YAAY,kCAAmC,kBAAkB;;;;mDAyBpB,wBAAwB;6BArB9C,QAAQ;yBAqCZ,MAAM;uCAgBQ,MAAM;;oCAWT,yBAAyB;;;;CAsCnE,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"useEditAlert.js","sourceRoot":"","sources":["../../../../../../src/presentation/widget/insight/configuration/InsightAlertConfig/useEditAlert.ts"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAOjC,OAAO,OAAO,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,0BAA0B,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAQzE,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAsB,EAAE,EAAE;IAC9E,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC,GAAG,QAAQ,CAA2B,MAAM,CAAC,CAAC;IAC3E,MAAM,CAAC,YAAY,EAAE,eAAe,CAAC,GAAG,QAAQ,CAA4B,KAAK,CAAC,CAAC;IAEnF,MAAM,aAAa,GAAG,CAAC,OAAiB,EAAE,EAAE;QACxC,eAAe,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;YACxB,GAAG,KAAK;YACR,KAAK,EAAE,eAAe,CAAC,OAAO,CAAC,IAAI,EAAE;YACrC,WAAW,EAAE,GAAG,0BAA0B,CAAC,YAAY,CAAC,KAAM,CAAC,SAAS,CAAC,QAAQ,CAAC,IAC9E,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iB,GAAG,CAAC,aAAqB,EAAE,EAAE;QAChD,eAAe,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;YACxB,GAAG,KAAK;YACR,OAAO,EAAE,aAAa;SACzB,CAAC,CAAC,CAAC;IACR,CAAC,CAAC;IAEF,MAAM,cAAc,GAAG,GAAG,EAAE;QACxB,WAAW,CAAC,eAAe,CAAC,CAAC;IACjC,CAAC,CAAC;IAEF,MAAM,sBAAsB,GAAG,CAAC,KAAgC,EAAE,EAAE;QAChE,eAAe,CAAC,KAAK,CAAC,CAAC;QACvB,wBAAwB,EAAE,CAAC;IAC/B,CAAC,CAAC;IAEF,MAAM,wBAAwB,GAAG,GAAG,EAAE;QAClC,WAAW,CAAC,MAAM,CAAC,CAAC;IACxB,CAAC,CAAC;IAEF,MAAM,WAAW,GAAG,GAAG,EAAE;QACrB,QAAQ,EAAE,CAAC,YAAY,CAAC,CAAC;IAC7B,CAAC,CAAC;IAEF,MAAM,WAAW,GAAG,GAAG,EAAE;QACrB,QAAQ,EAAE,CAAC,YAAyC,CAAC,CAAC;IAC1D,CAAC,CAAC;IAEF,MAAM,cAAc,GAAG,OAAO,YAAY,CAAC,KAAK,EAAE,SAAS,CAAC,KAAK,KAAK,WAAW,CAAC;IAClF,MAAM,cAAc,GAAG,CAAC,OAAO,CAAC,YAAY,EAAE,KAAK,CAAC,CAAC;IACrD,MAAM,SAAS,GAAG,cAAc,IAAI,cAAc,CAAC;IAEnD,OAAO;QACH,QAAQ;QACR,YAAY;QACZ,SAAS;QACT,EAAE;QACF,wBAAwB;QACxB,aAAa;QACb,WAAW;QACX,iBAAiB;QACjB,EAAE;QACF,cAAc;QACd,sBAAsB;QACtB,wBAAwB;QACxB,EAAE;QACF,WAAW;QACX,WAAW;KACd,CAAC;AACN,CAAC,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"useInsightAlerting.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/widget/insight/configuration/InsightAlertConfig/useInsightAlerting.ts"],"names":[],"mappings":"AACA,OAAO,EACH,yBAAyB,EACzB,mCAAmC,EAEnC,cAAc,EACjB,MAAM,qBAAqB,CAAC;AAM7B,OAAO,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAGtD,KAAK,6BAA6B,GAAG,MAAM,GAAG,MAAM,GAAG,QAAQ,CAAC;AAEhE,MAAM,WAAW,2BAA2B;IACxC,MAAM,EAAE,cAAc,CAAC;IACvB,sBAAsB,EAAE,MAAM,IAAI,CAAC;CACtC;AAED,eAAO,MAAM,wBAAwB,uCAAwC,2BAA2B;;;;;;;kCA8D/D,yBAAyB;iCAK1B,yBAAyB;0BAjChC,mCAAmC;gCA+C7B,yBAAyB;iCAexB,yBAAyB;iCAezB,yBAAyB;;;;;CA6BhE,CAAC"}
@@ -1,127 +0,0 @@
1
- import { useToastMessage } from "@gooddata/sdk-ui-kit";
2
- import { useState } from "react";
3
- import { v4 as uuidv4 } from "uuid";
4
- import { useDashboardSelector, selectInsightByWidgetRef } from "../../../../../model/index.js";
5
- import { createDefaultAlert, getSupportedInsightMeasuresByInsight } from "./utils.js";
6
- export const useInsightWidgetAlerting = ({ widget, closeInsightWidgetMenu }) => {
7
- const { addSuccess } = useToastMessage();
8
- // TODO: load from backend
9
- const [alerts, setAlerts] = useState([]);
10
- const hasAlerts = alerts.length > 0;
11
- // TODO: load from backend
12
- const destinations = [
13
- { id: "email", title: "Email" },
14
- { id: "webhook", title: "Webhook" },
15
- ];
16
- // TODO: load from backend
17
- const widgetFilters = [];
18
- // const widgetFilters = useWidgetFilters(widget, insight);
19
- const insight = useDashboardSelector(selectInsightByWidgetRef(widget.ref));
20
- const supportedMeasures = getSupportedInsightMeasuresByInsight(insight);
21
- const defaultMeasure = supportedMeasures[0];
22
- const defaultNotificationChannelId = destinations[0].id;
23
- const defaultAlert = createDefaultAlert(widgetFilters, defaultMeasure, defaultNotificationChannelId);
24
- const [viewMode, setViewMode] = useState(alerts.length > 0 ? "list" : "create");
25
- const [editingAlert, setEditingAlert] = useState(null);
26
- const [creatingAlert, setCreatingAlert] = useState(defaultAlert);
27
- const initiateAlertCreation = () => {
28
- setCreatingAlert(defaultAlert);
29
- setViewMode("create");
30
- };
31
- const saveNewAlert = (alert) => {
32
- const id = uuidv4();
33
- setAlerts((alertsToUpdate) => {
34
- const updatedAlerts = [
35
- ...alertsToUpdate,
36
- {
37
- ...alert,
38
- id,
39
- ref: { identifier: id, type: "automation" },
40
- uri: id,
41
- },
42
- ];
43
- addSuccess({ id: "Success. The alert has been added." });
44
- return updatedAlerts;
45
- });
46
- setCreatingAlert(defaultAlert);
47
- setViewMode("list");
48
- };
49
- const cancelAlertCreation = () => {
50
- setCreatingAlert(defaultAlert);
51
- if (hasAlerts) {
52
- setViewMode("list");
53
- }
54
- else {
55
- closeInsightWidgetMenu();
56
- }
57
- };
58
- const initiateAlertEditing = (alert) => {
59
- setEditingAlert(alert);
60
- setViewMode("edit");
61
- };
62
- const updateExistingAlert = (alert) => {
63
- setAlerts((alertsToUpdate) => {
64
- const updatedAlerts = alertsToUpdate.map((a) => (a.id === alert.id ? alert : a));
65
- addSuccess({ id: "Success. The alert has been updated." });
66
- return updatedAlerts;
67
- });
68
- cancelAlertEditing();
69
- };
70
- const cancelAlertEditing = () => {
71
- setEditingAlert(null);
72
- setViewMode("list");
73
- };
74
- const pauseExistingAlert = (alert) => {
75
- setAlerts((alertsToUpdate) => {
76
- const updatedAlerts = alertsToUpdate.map((a) => a.id === alert.id
77
- ? {
78
- ...a,
79
- alert: { ...a.alert, trigger: { ...a.alert?.trigger, state: "PAUSED" } },
80
- }
81
- : a);
82
- addSuccess({ id: "Success. The alert has been paused." });
83
- return updatedAlerts;
84
- });
85
- };
86
- const resumeExistingAlert = (alert) => {
87
- setAlerts((alertsToUpdate) => {
88
- const updatedAlerts = alertsToUpdate.map((a) => a.id === alert.id
89
- ? {
90
- ...a,
91
- alert: { ...a.alert, trigger: { ...a.alert?.trigger, state: "ACTIVE" } },
92
- }
93
- : a);
94
- addSuccess({ id: "Success. The alert has been resumed." });
95
- return updatedAlerts;
96
- });
97
- };
98
- const deleteExistingAlert = (alert) => {
99
- setAlerts((alertsToUpdate) => {
100
- const updatedAlerts = alertsToUpdate.filter((a) => a.id !== alert.id);
101
- if (updatedAlerts.length === 0) {
102
- closeInsightWidgetMenu();
103
- }
104
- addSuccess({ id: "Success. The alert has been deleted." });
105
- return updatedAlerts;
106
- });
107
- };
108
- return {
109
- destinations,
110
- alerts,
111
- viewMode,
112
- editingAlert,
113
- creatingAlert,
114
- initiateAlertCreation,
115
- initiateAlertEditing,
116
- updateExistingAlert,
117
- saveNewAlert,
118
- pauseExistingAlert,
119
- resumeExistingAlert,
120
- deleteExistingAlert,
121
- cancelAlertEditing,
122
- cancelAlertCreation,
123
- hasAlerts,
124
- supportedMeasures,
125
- };
126
- };
127
- //# sourceMappingURL=useInsightAlerting.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useInsightAlerting.js","sourceRoot":"","sources":["../../../../../../src/presentation/widget/insight/configuration/InsightAlertConfig/useInsightAlerting.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjC,OAAO,EAAE,EAAE,IAAI,MAAM,EAAE,MAAM,MAAM,CAAC;AACpC,OAAO,EAAE,oBAAoB,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AAC/F,OAAO,EAAE,kBAAkB,EAAE,oCAAoC,EAAE,MAAM,YAAY,CAAC;AAWtF,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,EAAE,MAAM,EAAE,sBAAsB,EAA+B,EAAE,EAAE;IACxG,MAAM,EAAE,UAAU,EAAE,GAAG,eAAe,EAAE,CAAC;IAEzC,0BAA0B;IAC1B,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,QAAQ,CAA8B,EAAE,CAAC,CAAC;IACtE,MAAM,SA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