@gooddata/sdk-ui-dashboard 10.15.0-alpha.0 → 10.15.0-alpha.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (278) hide show
  1. package/esm/__version.d.ts +1 -1
  2. package/esm/__version.d.ts.map +1 -1
  3. package/esm/__version.js +1 -1
  4. package/esm/__version.js.map +1 -1
  5. package/esm/model/commandHandlers/dashboard/common/stateInitializers.d.ts.map +1 -1
  6. package/esm/model/commandHandlers/dashboard/common/stateInitializers.js +9 -2
  7. package/esm/model/commandHandlers/dashboard/common/stateInitializers.js.map +1 -1
  8. package/esm/model/commandHandlers/drill/common/intersectionUtils.d.ts.map +1 -1
  9. package/esm/model/commandHandlers/drill/common/intersectionUtils.js +2 -2
  10. package/esm/model/commandHandlers/drill/common/intersectionUtils.js.map +1 -1
  11. package/esm/model/commandHandlers/drill/crossFilteringHandler.d.ts.map +1 -1
  12. package/esm/model/commandHandlers/drill/crossFilteringHandler.js +4 -2
  13. package/esm/model/commandHandlers/drill/crossFilteringHandler.js.map +1 -1
  14. package/esm/model/commandHandlers/drill/drillToDashboardHandler.d.ts.map +1 -1
  15. package/esm/model/commandHandlers/drill/drillToDashboardHandler.js +4 -3
  16. package/esm/model/commandHandlers/drill/drillToDashboardHandler.js.map +1 -1
  17. package/esm/model/index.d.ts +2 -2
  18. package/esm/model/index.d.ts.map +1 -1
  19. package/esm/model/index.js +1 -1
  20. package/esm/model/index.js.map +1 -1
  21. package/esm/model/queryServices/queryWidgetFilters.d.ts.map +1 -1
  22. package/esm/model/queryServices/queryWidgetFilters.js +2 -2
  23. package/esm/model/queryServices/queryWidgetFilters.js.map +1 -1
  24. package/esm/model/react/useDasboardScheduledEmails/useDashboardScheduledEmails.d.ts +1 -1
  25. package/esm/model/react/useDasboardScheduledEmails/useDashboardScheduledEmailsData.d.ts +1 -1
  26. package/esm/model/react/useDasboardScheduledEmails/useDashboardScheduledEmailsData.js +2 -2
  27. package/esm/model/react/useDasboardScheduledEmails/useDashboardScheduledEmailsData.js.map +1 -1
  28. package/esm/model/react/useDasboardScheduledEmails/useDashboardScheduledEmailsFilters.d.ts +2 -2
  29. package/esm/model/react/useDasboardScheduledEmails/useDashboardScheduledEmailsFilters.d.ts.map +1 -1
  30. package/esm/model/react/useDasboardScheduledEmails/useFiltersForWidgetScheduledExport.d.ts +2 -2
  31. package/esm/model/react/useDasboardScheduledEmails/useFiltersForWidgetScheduledExport.d.ts.map +1 -1
  32. package/esm/model/react/useWidgetFilters.d.ts +2 -2
  33. package/esm/model/react/useWidgetFilters.d.ts.map +1 -1
  34. package/esm/model/react/useWidgetFilters.js.map +1 -1
  35. package/esm/model/store/_infra/generators.d.ts +3 -0
  36. package/esm/model/store/_infra/generators.d.ts.map +1 -0
  37. package/esm/model/store/_infra/generators.js +6 -0
  38. package/esm/model/store/_infra/generators.js.map +1 -0
  39. package/esm/model/store/filterContext/filterContextReducers.d.ts.map +1 -1
  40. package/esm/model/store/filterContext/filterContextReducers.js +5 -5
  41. package/esm/model/store/filterContext/filterContextReducers.js.map +1 -1
  42. package/esm/model/store/layout/layoutSelectors.d.ts +1 -1
  43. package/esm/model/store/layout/layoutSelectors.d.ts.map +1 -1
  44. package/esm/model/store/layout/layoutSelectors.js +6 -3
  45. package/esm/model/store/layout/layoutSelectors.js.map +1 -1
  46. package/esm/model/store/layout/layoutUtils.d.ts +1 -1
  47. package/esm/model/store/layout/layoutUtils.d.ts.map +1 -1
  48. package/esm/model/types/layoutTypes.d.ts +22 -2
  49. package/esm/model/types/layoutTypes.d.ts.map +1 -1
  50. package/esm/model/types/layoutTypes.js +9 -2
  51. package/esm/model/types/layoutTypes.js.map +1 -1
  52. package/esm/presentation/alerting/DefaultAlertingDialog/DefaultAlertingDialog.d.ts.map +1 -1
  53. package/esm/presentation/alerting/DefaultAlertingDialog/DefaultAlertingDialog.js +2 -2
  54. package/esm/presentation/alerting/DefaultAlertingDialog/DefaultAlertingDialog.js.map +1 -1
  55. package/esm/presentation/alerting/DefaultAlertingManagementDialog/components/Alert.d.ts.map +1 -1
  56. package/esm/presentation/alerting/DefaultAlertingManagementDialog/components/Alert.js +2 -2
  57. package/esm/presentation/alerting/DefaultAlertingManagementDialog/components/Alert.js.map +1 -1
  58. package/esm/presentation/componentDefinition/types.d.ts +28 -5
  59. package/esm/presentation/componentDefinition/types.d.ts.map +1 -1
  60. package/esm/presentation/dashboard/DashboardSidebar/CreationPanel.d.ts +2 -1
  61. package/esm/presentation/dashboard/DashboardSidebar/CreationPanel.d.ts.map +1 -1
  62. package/esm/presentation/dashboard/DashboardSidebar/CreationPanel.js +8 -2
  63. package/esm/presentation/dashboard/DashboardSidebar/CreationPanel.js.map +1 -1
  64. package/esm/presentation/dashboard/DashboardSidebar/DashboardSidebar.d.ts.map +1 -1
  65. package/esm/presentation/dashboard/DashboardSidebar/DashboardSidebar.js +2 -2
  66. package/esm/presentation/dashboard/DashboardSidebar/DashboardSidebar.js.map +1 -1
  67. package/esm/presentation/dashboard/DashboardSidebar/SidebarConfigurationPanel.d.ts.map +1 -1
  68. package/esm/presentation/dashboard/DashboardSidebar/SidebarConfigurationPanel.js +2 -2
  69. package/esm/presentation/dashboard/DashboardSidebar/SidebarConfigurationPanel.js.map +1 -1
  70. package/esm/presentation/dashboard/DashboardSidebar/types.d.ts +8 -1
  71. package/esm/presentation/dashboard/DashboardSidebar/types.d.ts.map +1 -1
  72. package/esm/presentation/dashboard/DefaultDashboardContent/DefaultDashboardMainContent.d.ts.map +1 -1
  73. package/esm/presentation/dashboard/DefaultDashboardContent/DefaultDashboardMainContent.js +2 -0
  74. package/esm/presentation/dashboard/DefaultDashboardContent/DefaultDashboardMainContent.js.map +1 -1
  75. package/esm/presentation/dashboard/components/DashboardMainContent.d.ts.map +1 -1
  76. package/esm/presentation/dashboard/components/DashboardMainContent.js +2 -0
  77. package/esm/presentation/dashboard/components/DashboardMainContent.js.map +1 -1
  78. package/esm/presentation/dashboard/components/DashboardRenderer.d.ts.map +1 -1
  79. package/esm/presentation/dashboard/components/DashboardRenderer.js +2 -2
  80. package/esm/presentation/dashboard/components/DashboardRenderer.js.map +1 -1
  81. package/esm/presentation/dashboard/hooks/useDashboard.d.ts +4 -2
  82. package/esm/presentation/dashboard/hooks/useDashboard.d.ts.map +1 -1
  83. package/esm/presentation/dashboard/hooks/useDashboard.js +11 -2
  84. package/esm/presentation/dashboard/hooks/useDashboard.js.map +1 -1
  85. package/esm/presentation/dashboard/types.d.ts +13 -1
  86. package/esm/presentation/dashboard/types.d.ts.map +1 -1
  87. package/esm/presentation/dashboardContexts/DashboardComponentsContext.d.ts +2 -1
  88. package/esm/presentation/dashboardContexts/DashboardComponentsContext.d.ts.map +1 -1
  89. package/esm/presentation/dashboardContexts/DashboardComponentsContext.js +1 -0
  90. package/esm/presentation/dashboardContexts/DashboardComponentsContext.js.map +1 -1
  91. package/esm/presentation/dashboardContexts/types.d.ts +11 -3
  92. package/esm/presentation/dashboardContexts/types.d.ts.map +1 -1
  93. package/esm/presentation/dragAndDrop/DragLayerPreview/ContentDragPreview.d.ts.map +1 -1
  94. package/esm/presentation/dragAndDrop/DragLayerPreview/ContentDragPreview.js +3 -1
  95. package/esm/presentation/dragAndDrop/DragLayerPreview/ContentDragPreview.js.map +1 -1
  96. package/esm/presentation/dragAndDrop/draggableWidget/AddDashboardLayoutWidgetButton.d.ts +3 -0
  97. package/esm/presentation/dragAndDrop/draggableWidget/AddDashboardLayoutWidgetButton.d.ts.map +1 -0
  98. package/esm/presentation/dragAndDrop/draggableWidget/AddDashboardLayoutWidgetButton.js +25 -0
  99. package/esm/presentation/dragAndDrop/draggableWidget/AddDashboardLayoutWidgetButton.js.map +1 -0
  100. package/esm/presentation/dragAndDrop/draggableWidget/AddRichTextWidgetButton.js +1 -1
  101. package/esm/presentation/dragAndDrop/draggableWidget/AddRichTextWidgetButton.js.map +1 -1
  102. package/esm/presentation/dragAndDrop/draggableWidget/AddVisualizationSwitcherWidgetButton.js +3 -3
  103. package/esm/presentation/dragAndDrop/draggableWidget/AddVisualizationSwitcherWidgetButton.js.map +1 -1
  104. package/esm/presentation/dragAndDrop/draggableWidget/DashboardLayoutDraggingComponent.d.ts +4 -0
  105. package/esm/presentation/dragAndDrop/draggableWidget/DashboardLayoutDraggingComponent.d.ts.map +1 -0
  106. package/esm/presentation/dragAndDrop/draggableWidget/DashboardLayoutDraggingComponent.js +10 -0
  107. package/esm/presentation/dragAndDrop/draggableWidget/DashboardLayoutDraggingComponent.js.map +1 -0
  108. package/esm/presentation/dragAndDrop/draggableWidget/DraggableDashboardLayoutCreatePanelItem.d.ts +16 -0
  109. package/esm/presentation/dragAndDrop/draggableWidget/DraggableDashboardLayoutCreatePanelItem.d.ts.map +1 -0
  110. package/esm/presentation/dragAndDrop/draggableWidget/DraggableDashboardLayoutCreatePanelItem.js +21 -0
  111. package/esm/presentation/dragAndDrop/draggableWidget/DraggableDashboardLayoutCreatePanelItem.js.map +1 -0
  112. package/esm/presentation/dragAndDrop/draggableWidget/DraggableVisualizationSwitcherCreatePanelItem.d.ts +2 -2
  113. package/esm/presentation/dragAndDrop/draggableWidget/DraggableVisualizationSwitcherCreatePanelItem.d.ts.map +1 -1
  114. package/esm/presentation/dragAndDrop/draggableWidget/EmptyDashboardDropZone.d.ts.map +1 -1
  115. package/esm/presentation/dragAndDrop/draggableWidget/EmptyDashboardDropZone.js +11 -1
  116. package/esm/presentation/dragAndDrop/draggableWidget/EmptyDashboardDropZone.js.map +1 -1
  117. package/esm/presentation/dragAndDrop/draggableWidget/Hotspot.d.ts.map +1 -1
  118. package/esm/presentation/dragAndDrop/draggableWidget/Hotspot.js +10 -1
  119. package/esm/presentation/dragAndDrop/draggableWidget/Hotspot.js.map +1 -1
  120. package/esm/presentation/dragAndDrop/draggableWidget/SectionHotspot.d.ts.map +1 -1
  121. package/esm/presentation/dragAndDrop/draggableWidget/SectionHotspot.js +9 -1
  122. package/esm/presentation/dragAndDrop/draggableWidget/SectionHotspot.js.map +1 -1
  123. package/esm/presentation/dragAndDrop/draggableWidget/WidgetDropZoneColumn.d.ts.map +1 -1
  124. package/esm/presentation/dragAndDrop/draggableWidget/WidgetDropZoneColumn.js +11 -1
  125. package/esm/presentation/dragAndDrop/draggableWidget/WidgetDropZoneColumn.js.map +1 -1
  126. package/esm/presentation/dragAndDrop/draggableWidget/index.d.ts +3 -0
  127. package/esm/presentation/dragAndDrop/draggableWidget/index.d.ts.map +1 -1
  128. package/esm/presentation/dragAndDrop/draggableWidget/index.js +3 -0
  129. package/esm/presentation/dragAndDrop/draggableWidget/index.js.map +1 -1
  130. package/esm/presentation/dragAndDrop/draggableWidget/useDashboardLayoutPlaceholderDropHandler.d.ts +2 -0
  131. package/esm/presentation/dragAndDrop/draggableWidget/useDashboardLayoutPlaceholderDropHandler.d.ts.map +1 -0
  132. package/esm/presentation/dragAndDrop/draggableWidget/useDashboardLayoutPlaceholderDropHandler.js +39 -0
  133. package/esm/presentation/dragAndDrop/draggableWidget/useDashboardLayoutPlaceholderDropHandler.js.map +1 -0
  134. package/esm/presentation/dragAndDrop/draggableWidget/useIsDraggingWidget.d.ts.map +1 -1
  135. package/esm/presentation/dragAndDrop/draggableWidget/useIsDraggingWidget.js +2 -0
  136. package/esm/presentation/dragAndDrop/draggableWidget/useIsDraggingWidget.js.map +1 -1
  137. package/esm/presentation/dragAndDrop/draggableWidget/useNewSectionDashboardLayoutPlaceholderDropHandler.d.ts +2 -0
  138. package/esm/presentation/dragAndDrop/draggableWidget/useNewSectionDashboardLayoutPlaceholderDropHandler.d.ts.map +1 -0
  139. package/esm/presentation/dragAndDrop/draggableWidget/useNewSectionDashboardLayoutPlaceholderDropHandler.js +46 -0
  140. package/esm/presentation/dragAndDrop/draggableWidget/useNewSectionDashboardLayoutPlaceholderDropHandler.js.map +1 -0
  141. package/esm/presentation/dragAndDrop/types.d.ts +25 -3
  142. package/esm/presentation/dragAndDrop/types.d.ts.map +1 -1
  143. package/esm/presentation/dragAndDrop/types.js +12 -0
  144. package/esm/presentation/dragAndDrop/types.js.map +1 -1
  145. package/esm/presentation/dragAndDrop/useDashboardDragScroll.d.ts.map +1 -1
  146. package/esm/presentation/dragAndDrop/useDashboardDragScroll.js +2 -0
  147. package/esm/presentation/dragAndDrop/useDashboardDragScroll.js.map +1 -1
  148. package/esm/presentation/drill/DrillConfigPanel/DrillToUrl/CustomUrlEditor.js +2 -2
  149. package/esm/presentation/drill/DrillConfigPanel/DrillToUrl/CustomUrlEditor.js.map +1 -1
  150. package/esm/presentation/filterBar/attributeFilter/DefaultDashboardAttributeFilterComponentSetFactory.js +1 -1
  151. package/esm/presentation/filterBar/attributeFilter/DefaultDashboardAttributeFilterComponentSetFactory.js.map +1 -1
  152. package/esm/presentation/flexibleLayout/DashboardLayoutWidget.d.ts.map +1 -1
  153. package/esm/presentation/flexibleLayout/DashboardLayoutWidget.js +13 -2
  154. package/esm/presentation/flexibleLayout/DashboardLayoutWidget.js.map +1 -1
  155. package/esm/presentation/flexibleLayout/DefaultFlexibleDashboardLayout.d.ts.map +1 -1
  156. package/esm/presentation/flexibleLayout/DefaultFlexibleDashboardLayout.js +2 -1
  157. package/esm/presentation/flexibleLayout/DefaultFlexibleDashboardLayout.js.map +1 -1
  158. package/esm/presentation/flexibleLayout/index.d.ts +1 -1
  159. package/esm/presentation/flexibleLayout/index.d.ts.map +1 -1
  160. package/esm/presentation/flexibleLayout/index.js +1 -1
  161. package/esm/presentation/flexibleLayout/index.js.map +1 -1
  162. package/esm/presentation/flexibleLayout/types.d.ts +1 -20
  163. package/esm/presentation/flexibleLayout/types.d.ts.map +1 -1
  164. package/esm/presentation/layout/DashboardLayoutWidget.d.ts.map +1 -1
  165. package/esm/presentation/layout/DashboardLayoutWidget.js +13 -2
  166. package/esm/presentation/layout/DashboardLayoutWidget.js.map +1 -1
  167. package/esm/presentation/localization/bundles/en-AU.json +27 -27
  168. package/esm/presentation/localization/bundles/en-GB.json +15 -15
  169. package/esm/presentation/localization/bundles/en-US.json +10 -0
  170. package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/hooks/useEditScheduledEmail.d.ts.map +1 -1
  171. package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/hooks/useEditScheduledEmail.js +3 -3
  172. package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/hooks/useEditScheduledEmail.js.map +1 -1
  173. package/esm/presentation/widget/dashboardLayout/CreatableDashboardLayout.d.ts +7 -0
  174. package/esm/presentation/widget/dashboardLayout/CreatableDashboardLayout.d.ts.map +1 -0
  175. package/esm/presentation/widget/dashboardLayout/CreatableDashboardLayout.js +13 -0
  176. package/esm/presentation/widget/dashboardLayout/CreatableDashboardLayout.js.map +1 -0
  177. package/esm/presentation/{flexibleLayout → widget/dashboardLayout}/DashboardLayout.d.ts +1 -1
  178. package/esm/presentation/widget/dashboardLayout/DashboardLayout.d.ts.map +1 -0
  179. package/esm/presentation/{flexibleLayout → widget/dashboardLayout}/DashboardLayout.js +1 -1
  180. package/esm/presentation/widget/dashboardLayout/DashboardLayout.js.map +1 -0
  181. package/esm/presentation/widget/dashboardLayout/DefaultDashboardLayout.d.ts +8 -0
  182. package/esm/presentation/widget/dashboardLayout/DefaultDashboardLayout.d.ts.map +1 -0
  183. package/esm/presentation/widget/dashboardLayout/DefaultDashboardLayout.js +13 -0
  184. package/esm/presentation/widget/dashboardLayout/DefaultDashboardLayout.js.map +1 -0
  185. package/esm/presentation/widget/dashboardLayout/DefaultDashboardLayoutComponentSetFactory.d.ts +7 -0
  186. package/esm/presentation/widget/dashboardLayout/DefaultDashboardLayoutComponentSetFactory.d.ts.map +1 -0
  187. package/esm/presentation/widget/dashboardLayout/DefaultDashboardLayoutComponentSetFactory.js +24 -0
  188. package/esm/presentation/widget/dashboardLayout/DefaultDashboardLayoutComponentSetFactory.js.map +1 -0
  189. package/esm/presentation/widget/dashboardLayout/index.d.ts +4 -0
  190. package/esm/presentation/widget/dashboardLayout/index.d.ts.map +1 -0
  191. package/esm/presentation/widget/dashboardLayout/index.js +4 -0
  192. package/esm/presentation/widget/dashboardLayout/index.js.map +1 -0
  193. package/esm/presentation/widget/dashboardLayout/types.d.ts +55 -0
  194. package/esm/presentation/widget/dashboardLayout/types.d.ts.map +1 -0
  195. package/esm/presentation/widget/dashboardLayout/types.js +3 -0
  196. package/esm/presentation/widget/dashboardLayout/types.js.map +1 -0
  197. package/esm/presentation/widget/index.d.ts +1 -0
  198. package/esm/presentation/widget/index.d.ts.map +1 -1
  199. package/esm/presentation/widget/index.js +1 -0
  200. package/esm/presentation/widget/index.js.map +1 -1
  201. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertAttributeSelect.d.ts +16 -0
  202. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertAttributeSelect.d.ts.map +1 -0
  203. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertAttributeSelect.js +133 -0
  204. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertAttributeSelect.js.map +1 -0
  205. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertMeasureSelect.d.ts.map +1 -1
  206. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertMeasureSelect.js +1 -1
  207. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertMeasureSelect.js.map +1 -1
  208. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertsListItem.d.ts.map +1 -1
  209. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertsListItem.js +3 -3
  210. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertsListItem.js.map +1 -1
  211. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/CreateAlert.d.ts +3 -2
  212. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/CreateAlert.d.ts.map +1 -1
  213. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/CreateAlert.js +2 -2
  214. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/CreateAlert.js.map +1 -1
  215. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/EditAlert.d.ts +3 -2
  216. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/EditAlert.d.ts.map +1 -1
  217. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/EditAlert.js +10 -10
  218. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/EditAlert.js.map +1 -1
  219. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useAlertValidation.d.ts.map +1 -1
  220. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useAlertValidation.js +2 -1
  221. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useAlertValidation.js.map +1 -1
  222. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useEditAlert.d.ts +8 -3
  223. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useEditAlert.d.ts.map +1 -1
  224. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useEditAlert.js +2 -1
  225. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useEditAlert.js.map +1 -1
  226. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useInsightAlerting.d.ts +3 -2
  227. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useInsightAlerting.d.ts.map +1 -1
  228. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useInsightAlerting.js +16 -18
  229. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useInsightAlerting.js.map +1 -1
  230. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/utils/convertors.d.ts +7 -0
  231. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/utils/convertors.d.ts.map +1 -0
  232. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/utils/convertors.js +43 -0
  233. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/utils/convertors.js.map +1 -0
  234. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/utils/getters.d.ts +90 -0
  235. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/utils/getters.d.ts.map +1 -0
  236. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/utils/getters.js +220 -0
  237. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/utils/getters.js.map +1 -0
  238. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/utils/guards.d.ts +22 -0
  239. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/utils/guards.d.ts.map +1 -0
  240. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/utils/guards.js +41 -0
  241. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/utils/guards.js.map +1 -0
  242. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/utils/items.d.ts +14 -0
  243. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/utils/items.d.ts.map +1 -0
  244. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/utils/items.js +202 -0
  245. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/utils/items.js.map +1 -0
  246. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/utils/transformation.d.ts +64 -0
  247. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/utils/transformation.d.ts.map +1 -0
  248. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/utils/transformation.js +303 -0
  249. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/utils/transformation.js.map +1 -0
  250. package/esm/presentation/widget/insight/configuration/InsightAlerts.d.ts.map +1 -1
  251. package/esm/presentation/widget/insight/configuration/InsightAlerts.js +3 -3
  252. package/esm/presentation/widget/insight/configuration/InsightAlerts.js.map +1 -1
  253. package/esm/presentation/widget/insight/types.d.ts +1 -0
  254. package/esm/presentation/widget/insight/types.d.ts.map +1 -1
  255. package/esm/presentation/widget/types.d.ts +1 -0
  256. package/esm/presentation/widget/types.d.ts.map +1 -1
  257. package/esm/presentation/widget/widget/DefaultDashboardWidget.js +1 -1
  258. package/esm/presentation/widget/widget/DefaultDashboardWidget.js.map +1 -1
  259. package/esm/sdk-ui-dashboard.d.ts +179 -12
  260. package/package.json +15 -15
  261. package/styles/css/alerting.css +2 -0
  262. package/styles/css/alerting.css.map +1 -1
  263. package/styles/css/main.css +11 -14
  264. package/styles/css/main.css.map +1 -1
  265. package/styles/css/sidebar.css +9 -14
  266. package/styles/css/sidebar.css.map +1 -1
  267. package/styles/scss/alerting.scss +2 -0
  268. package/styles/scss/sidebar.scss +10 -18
  269. package/esm/presentation/flexibleLayout/DashboardLayout.d.ts.map +0 -1
  270. package/esm/presentation/flexibleLayout/DashboardLayout.js.map +0 -1
  271. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertAttributeSelecxt.d.ts +0 -14
  272. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertAttributeSelecxt.d.ts.map +0 -1
  273. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertAttributeSelecxt.js +0 -139
  274. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertAttributeSelecxt.js.map +0 -1
  275. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/utils.d.ts +0 -46
  276. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/utils.d.ts.map +0 -1
  277. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/utils.js +0 -712
  278. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/utils.js.map +0 -1
@@ -0,0 +1,202 @@
1
+ // (C) 2022-2024 GoodData Corporation
2
+ import { bucketAttributes, bucketMeasures, insightBucket, insightVisualizationType, isArithmeticMeasure, isPoPMeasure, isPreviousPeriodMeasure, isSimpleMeasure, } from "@gooddata/sdk-model";
3
+ import { BucketNames } from "@gooddata/sdk-ui";
4
+ import { AlertMetricComparatorType } from "../../../types.js";
5
+ import { getCatalogAttribute } from "./getters.js";
6
+ /**
7
+ * Get supported insight measures by insight
8
+ * @param insight - insight to get supported measures for
9
+ */
10
+ export function getSupportedInsightMeasuresByInsight(insight) {
11
+ const insightType = insight ? insightVisualizationType(insight) : null;
12
+ const { primaries, others } = collectAllMetric(insight);
13
+ const simpleMetrics = [
14
+ ...primaries.map(mapMeasure(true)).filter(Boolean),
15
+ ...others.map(mapMeasure(false)).filter(Boolean),
16
+ ];
17
+ //NOTE: For now only headline insight support previous period and same period previous year,
18
+ // if we want to support other insight types, just add the logic here or remove the condition at
19
+ // all to support all insight types
20
+ if (insightType === "headline") {
21
+ mapPreviousPeriodMeasure(primaries, simpleMetrics, true);
22
+ mapPreviousPeriodMeasure(others, simpleMetrics, false);
23
+ mapPoPMeasure(primaries, simpleMetrics, true);
24
+ mapPoPMeasure(others, simpleMetrics, false);
25
+ }
26
+ return simpleMetrics;
27
+ }
28
+ /**
29
+ * Get supported insight attributes by insight
30
+ * @param insight - insight to get supported attributes for
31
+ * @param dateDatasets - date datasets to filter out date attributes
32
+ */
33
+ export function getSupportedInsightAttributesByInsight(insight, dateDatasets = []) {
34
+ const attrs = collectAllAttributes(insight);
35
+ return attrs
36
+ .map(mapAttribute(dateDatasets))
37
+ .filter(Boolean);
38
+ }
39
+ //utils
40
+ function mapMeasure(isPrimary) {
41
+ return (measure) => {
42
+ if (isSimpleMeasure(measure) || isArithmeticMeasure(measure)) {
43
+ return {
44
+ measure,
45
+ isPrimary,
46
+ comparators: [],
47
+ };
48
+ }
49
+ return undefined;
50
+ };
51
+ }
52
+ function mapAttribute(dateDatasets) {
53
+ const dateAttributes = dateDatasets.flatMap((dataset) => dataset.dateAttributes);
54
+ return (attribute) => {
55
+ const foundDate = getCatalogAttribute(dateAttributes, attribute);
56
+ return {
57
+ type: foundDate ? "dateAttribute" : "attribute",
58
+ attribute,
59
+ };
60
+ };
61
+ }
62
+ function mapPreviousPeriodMeasure(metrics, simpleMetrics, isPrimary) {
63
+ const previousPeriodMetrics = metrics.filter((measure) => isPreviousPeriodMeasure(measure));
64
+ previousPeriodMetrics.forEach((measure) => {
65
+ const found = simpleMetrics.find((simpleMetric) => simpleMetric.measure.measure.localIdentifier ===
66
+ measure.measure.definition.previousPeriodMeasure.measureIdentifier);
67
+ if (found) {
68
+ found.comparators.push({
69
+ measure,
70
+ isPrimary,
71
+ comparator: AlertMetricComparatorType.PreviousPeriod,
72
+ });
73
+ }
74
+ });
75
+ }
76
+ function mapPoPMeasure(metrics, simpleMetrics, isPrimary) {
77
+ const popMetrics = metrics.filter((measure) => isPoPMeasure(measure));
78
+ popMetrics.forEach((measure) => {
79
+ const found = simpleMetrics.find((simpleMetric) => simpleMetric.measure.measure.localIdentifier ===
80
+ measure.measure.definition.popMeasureDefinition.measureIdentifier);
81
+ if (found) {
82
+ found.comparators.push({
83
+ measure,
84
+ isPrimary,
85
+ comparator: AlertMetricComparatorType.SamePeriodPreviousYear,
86
+ });
87
+ }
88
+ });
89
+ }
90
+ function collectAllMetric(insight) {
91
+ const insightType = insight ? insightVisualizationType(insight) : null;
92
+ if (!insight) {
93
+ return {
94
+ primaries: [],
95
+ others: [],
96
+ };
97
+ }
98
+ switch (insightType) {
99
+ case "headline":
100
+ case "bar":
101
+ case "column":
102
+ case "line":
103
+ case "area":
104
+ case "combo2":
105
+ case "scatter":
106
+ case "bubble":
107
+ case "bullet":
108
+ case "pie":
109
+ case "donut":
110
+ case "treemap":
111
+ case "funnel":
112
+ case "pyramid":
113
+ case "heatmap":
114
+ case "waterfall":
115
+ case "dependencywheel":
116
+ case "sankey":
117
+ case "table": {
118
+ return collectAllMetricsFrom(insight, [BucketNames.MEASURES], [BucketNames.SECONDARY_MEASURES, BucketNames.TERTIARY_MEASURES]);
119
+ }
120
+ case "pushpin": {
121
+ return collectAllMetricsFrom(insight, [BucketNames.SIZE, BucketNames.COLOR]);
122
+ }
123
+ case "repeater": {
124
+ return collectAllMetricsFrom(insight, [BucketNames.COLUMNS]);
125
+ }
126
+ default: {
127
+ return {
128
+ primaries: [],
129
+ others: [],
130
+ };
131
+ }
132
+ }
133
+ }
134
+ function collectAllAttributes(insight) {
135
+ const insightType = insight ? insightVisualizationType(insight) : null;
136
+ if (!insight) {
137
+ return [];
138
+ }
139
+ switch (insightType) {
140
+ case "headline":
141
+ case "bar":
142
+ case "column":
143
+ case "line":
144
+ case "area":
145
+ case "combo2":
146
+ case "scatter":
147
+ case "bubble":
148
+ case "bullet":
149
+ case "pie":
150
+ case "donut":
151
+ case "treemap":
152
+ case "funnel":
153
+ case "pyramid":
154
+ case "heatmap":
155
+ case "waterfall":
156
+ case "dependencywheel":
157
+ case "sankey":
158
+ case "table": {
159
+ return collectAllAttributesFrom(insight, [
160
+ BucketNames.ATTRIBUTE,
161
+ BucketNames.ATTRIBUTES,
162
+ BucketNames.TREND,
163
+ BucketNames.SEGMENT,
164
+ BucketNames.COLUMNS,
165
+ BucketNames.VIEW,
166
+ BucketNames.STACK,
167
+ BucketNames.ATTRIBUTE_FROM,
168
+ BucketNames.ATTRIBUTE_TO,
169
+ ]);
170
+ }
171
+ case "repeater": {
172
+ return collectAllAttributesFrom(insight, [BucketNames.ATTRIBUTE]);
173
+ }
174
+ case "pushpin": {
175
+ return collectAllAttributesFrom(insight, [BucketNames.LOCATION]);
176
+ }
177
+ default: {
178
+ return [];
179
+ }
180
+ }
181
+ }
182
+ function collectAllAttributesFrom(insight, buckets) {
183
+ return buckets.reduce((acc, bucket) => {
184
+ const items = insight ? insightBucket(insight, bucket) : undefined;
185
+ return [...acc, ...(items ? bucketAttributes(items) : [])];
186
+ }, []);
187
+ }
188
+ function collectAllMetricsFrom(insight, primaryBuckets, secondaryBuckets = []) {
189
+ const primaries = primaryBuckets.reduce((acc, bucket) => {
190
+ const items = insight ? insightBucket(insight, bucket) : undefined;
191
+ return [...acc, ...(items ? bucketMeasures(items) : [])];
192
+ }, []);
193
+ const others = secondaryBuckets.reduce((acc, bucket) => {
194
+ const items = insight ? insightBucket(insight, bucket) : undefined;
195
+ return [...acc, ...(items ? bucketMeasures(items) : [])];
196
+ }, []);
197
+ return {
198
+ primaries,
199
+ others,
200
+ };
201
+ }
202
+ //# sourceMappingURL=items.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"items.js","sourceRoot":"","sources":["../../../../../../../src/presentation/widget/insight/configuration/InsightAlertConf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lertRelativeOperator, IAutomationAlertCondition, IAutomationAlertExecutionDefinition, IAutomationMetadataObject, IAutomationRecipient, ICatalogMeasure } from "@gooddata/sdk-model";
2
+ import { AlertAttribute, AlertMetric } from "../../../types.js";
3
+ /**
4
+ * This function transforms alert by metric. It changes title, condition and execution based on selected metric.
5
+ * @param metrics - all available metrics
6
+ * @param alert - alert to transform
7
+ * @param measure - selected metric
8
+ * @param catalogMeasures - all available measures from catalog
9
+ */
10
+ export declare function transformAlertByMetric(metrics: AlertMetric[], alert: IAutomationMetadataObject, measure: AlertMetric, catalogMeasures?: ICatalogMeasure[]): IAutomationMetadataObject;
11
+ /**
12
+ * This function get selected attributed and optionally value amd added this attribute to execution.
13
+ * If value is provided, it creates positive attribute filter with this value, otherwise it creates negative attribute filter
14
+ * that is empty for now.
15
+ * @param attributes - all available attributes
16
+ * @param alert - alert to transform
17
+ * @param attr - optionally selected attribute
18
+ * @param value - optionally selected value
19
+ */
20
+ export declare function transformAlertByAttribute(attributes: AlertAttribute[], alert: IAutomationMetadataObject, attr: AlertAttribute | undefined, value: {
21
+ title: string;
22
+ value: string;
23
+ name: string;
24
+ } | undefined): IAutomationMetadataObject;
25
+ /**
26
+ * This function transforms alert by comparison operator. It changes operator in condition.
27
+ * @param metrics - all available metrics
28
+ * @param alert - alert to transform
29
+ * @param measure - selected metric
30
+ * @param comparisonOperator - selected comparison operator
31
+ */
32
+ export declare function transformAlertByComparisonOperator(metrics: AlertMetric[], alert: IAutomationMetadataObject, measure: AlertMetric, comparisonOperator: IAlertComparisonOperator): IAutomationMetadataObject;
33
+ /**
34
+ * This function transforms alert by relative operator. It changes operator in condition and measure in condition.
35
+ * @param metrics - all available metrics
36
+ * @param alert - alert to transform
37
+ * @param measure - selected metric
38
+ * @param relativeOperator - selected relative operator
39
+ * @param arithmeticOperator - selected arithmetic operator
40
+ * @param catalogMeasures - all available measures from catalog
41
+ */
42
+ export declare function transformAlertByRelativeOperator(metrics: AlertMetric[], alert: IAutomationMetadataObject, measure: AlertMetric, relativeOperator: IAlertRelativeOperator, arithmeticOperator: IAlertRelativeArithmeticOperator, catalogMeasures?: ICatalogMeasure[]): IAutomationMetadataObject;
43
+ /**
44
+ * This function transforms alert by threshold value. It changes threshold in condition.
45
+ * @param alert - alert to transform
46
+ * @param value - selected threshold value
47
+ */
48
+ export declare function transformAlertByValue(alert: IAutomationMetadataObject, value: number): IAutomationMetadataObject;
49
+ /**
50
+ * This function transforms alert by notification channel. It changes notification channel in alert.
51
+ * @param alert - alert to transform
52
+ * @param notificationChannel - selected notification channel
53
+ * @param recipients - optionally selected recipients
54
+ */
55
+ export declare function transformAlertByDestination(alert: IAutomationMetadataObject, notificationChannel: string, recipients?: IAutomationRecipient[]): IAutomationMetadataObject;
56
+ /**
57
+ * This function transforms alert execution by metric. It changes measures and auxMeasures in execution based on selected metric.
58
+ * @param metrics - all available metrics
59
+ * @param condition - alert condition
60
+ * @param execution - alert execution
61
+ * @param measure - selected metric
62
+ */
63
+ export declare function transformAlertExecutionByMetric(metrics: AlertMetric[], condition: IAutomationAlertCondition, execution: IAutomationAlertExecutionDefinition, measure: AlertMetric): IAutomationAlertExecutionDefinition;
64
+ //# sourceMappingURL=transformation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"transformation.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/widget/insight/configuration/InsightAlertConfig/utils/transformation.ts"],"names":[],"mappings":"AACA,OAAO,EACH,wBAAwB,EACxB,gCAAgC,EAChC,sBAAsB,EAEtB,yBAAyB,EACzB,mCAAmC,EAEnC,yBAAyB,EACzB,oBAAoB,EACpB,eAAe,EAGlB,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EACH,cAAc,EACd,WAAW,EAGd,MAAM,mBAAmB,CAAC;AAO3B;;;;;;GAMG;AACH,wBAAgB,sBAAsB,CAClC,OAAO,EAAE,WAAW,EAAE,EACtB,KAAK,EAAE,yBAAyB,EAChC,OAAO,EAAE,WAAW,EACpB,eAAe,CAAC,E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from "@gooddata/sdk-model";
3
+ import { AlertMetricComparatorType, } from "../../../types.js";
4
+ import { ARITHMETIC_OPERATORS, COMPARISON_OPERATORS, RELATIVE_OPERATORS } from "../constants.js";
5
+ import { getAttributeRelatedFilterInfo, getMeasureFormat, getMeasureTitle } from "./getters.js";
6
+ //alerts transformations
7
+ /**
8
+ * This function transforms alert by metric. It changes title, condition and execution based on selected metric.
9
+ * @param metrics - all available metrics
10
+ * @param alert - alert to transform
11
+ * @param measure - selected metric
12
+ * @param catalogMeasures - all available measures from catalog
13
+ */
14
+ export function transformAlertByMetric(metrics, alert, measure, catalogMeasures) {
15
+ const periodMeasure = measure.comparators.find((c) => c.comparator === AlertMetricComparatorType.PreviousPeriod ||
16
+ c.comparator === AlertMetricComparatorType.SamePeriodPreviousYear);
17
+ if (alert.alert?.condition.type === "relative" && periodMeasure) {
18
+ const cond = transformToRelativeCondition(alert.alert.condition);
19
+ const condition = {
20
+ ...cond,
21
+ measure: {
22
+ ...cond.measure,
23
+ ...transformRelativeCondition(measure, periodMeasure, catalogMeasures),
24
+ },
25
+ };
26
+ return {
27
+ ...alert,
28
+ title: getMeasureTitle(measure.measure) ?? "",
29
+ alert: {
30
+ ...alert.alert,
31
+ condition,
32
+ execution: transformAlertExecutionByMetric(metrics, condition, alert.alert.execution, measure),
33
+ },
34
+ };
35
+ }
36
+ const cond = transformToComparisonCondition(alert.alert.condition);
37
+ const condition = {
38
+ ...cond,
39
+ left: {
40
+ id: measure.measure.measure.localIdentifier,
41
+ format: getMeasureFormat(measure.measure, catalogMeasures),
42
+ title: getMeasureTitle(measure.measure),
43
+ },
44
+ };
45
+ return {
46
+ ...alert,
47
+ title: getMeasureTitle(measure.measure) ?? "",
48
+ alert: {
49
+ ...alert.alert,
50
+ condition,
51
+ execution: transformAlertExecutionByMetric(metrics, condition, alert.alert.execution, measure),
52
+ },
53
+ };
54
+ }
55
+ /**
56
+ * This function get selected attributed and optionally value amd added this attribute to execution.
57
+ * If value is provided, it creates positive attribute filter with this value, otherwise it creates negative attribute filter
58
+ * that is empty for now.
59
+ * @param attributes - all available attributes
60
+ * @param alert - alert to transform
61
+ * @param attr - optionally selected attribute
62
+ * @param value - optionally selected value
63
+ */
64
+ export function transformAlertByAttribute(attributes, alert, attr, value) {
65
+ const { filterDefinition } = getAttributeRelatedFilterInfo(attributes, alert, alert.alert?.execution.attributes[0]);
66
+ const originalFilters = alert.alert?.execution.filters.filter((f) => f !== filterDefinition) ?? [];
67
+ const customFilters = [];
68
+ if (attr) {
69
+ if (value !== undefined) {
70
+ customFilters.push({
71
+ positiveAttributeFilter: {
72
+ displayForm: {
73
+ localIdentifier: attr.attribute.attribute.localIdentifier,
74
+ },
75
+ in: {
76
+ values: [value.name],
77
+ },
78
+ },
79
+ });
80
+ }
81
+ else {
82
+ customFilters.push({
83
+ negativeAttributeFilter: {
84
+ displayForm: {
85
+ localIdentifier: attr.attribute.attribute.localIdentifier,
86
+ },
87
+ notIn: {
88
+ values: [],
89
+ },
90
+ },
91
+ });
92
+ }
93
+ }
94
+ return {
95
+ ...alert,
96
+ alert: {
97
+ ...alert.alert,
98
+ execution: {
99
+ ...alert.alert.execution,
100
+ attributes: attr ? [attr.attribute] : [],
101
+ filters: [...originalFilters, ...customFilters],
102
+ },
103
+ },
104
+ };
105
+ }
106
+ /**
107
+ * This function transforms alert by comparison operator. It changes operator in condition.
108
+ * @param metrics - all available metrics
109
+ * @param alert - alert to transform
110
+ * @param measure - selected metric
111
+ * @param comparisonOperator - selected comparison operator
112
+ */
113
+ export function transformAlertByComparisonOperator(metrics, alert, measure, comparisonOperator) {
114
+ const cond = transformToComparisonCondition(alert.alert.condition);
115
+ const condition = {
116
+ ...cond,
117
+ operator: comparisonOperator,
118
+ };
119
+ return {
120
+ ...alert,
121
+ alert: {
122
+ ...alert.alert,
123
+ condition,
124
+ execution: transformAlertExecutionByMetric(metrics, condition, alert.alert.execution, measure),
125
+ },
126
+ };
127
+ }
128
+ /**
129
+ * This function transforms alert by relative operator. It changes operator in condition and measure in condition.
130
+ * @param metrics - all available metrics
131
+ * @param alert - alert to transform
132
+ * @param measure - selected metric
133
+ * @param relativeOperator - selected relative operator
134
+ * @param arithmeticOperator - selected arithmetic operator
135
+ * @param catalogMeasures - all available measures from catalog
136
+ */
137
+ export function transformAlertByRelativeOperator(metrics, alert, measure, relativeOperator, arithmeticOperator, catalogMeasures) {
138
+ const periodMeasure = measure.comparators.find((c) => c.comparator === AlertMetricComparatorType.PreviousPeriod ||
139
+ c.comparator === AlertMetricComparatorType.SamePeriodPreviousYear);
140
+ const cond = transformToRelativeCondition(alert.alert.condition);
141
+ const condition = {
142
+ ...cond,
143
+ measure: {
144
+ ...cond.measure,
145
+ operator: arithmeticOperator,
146
+ ...transformRelativeCondition(measure, periodMeasure, catalogMeasures),
147
+ },
148
+ operator: relativeOperator,
149
+ };
150
+ return {
151
+ ...alert,
152
+ alert: {
153
+ ...alert.alert,
154
+ condition,
155
+ execution: transformAlertExecutionByMetric(metrics, condition, alert.alert.execution, measure),
156
+ },
157
+ };
158
+ }
159
+ /**
160
+ * This function transforms alert by threshold value. It changes threshold in condition.
161
+ * @param alert - alert to transform
162
+ * @param value - selected threshold value
163
+ */
164
+ export function transformAlertByValue(alert, value) {
165
+ if (alert.alert?.condition.type === "relative") {
166
+ return {
167
+ ...alert,
168
+ alert: {
169
+ ...alert.alert,
170
+ condition: {
171
+ ...alert.alert.condition,
172
+ threshold: value,
173
+ },
174
+ },
175
+ };
176
+ }
177
+ return {
178
+ ...alert,
179
+ alert: {
180
+ ...alert.alert,
181
+ condition: {
182
+ ...alert.alert.condition,
183
+ right: value,
184
+ },
185
+ },
186
+ };
187
+ }
188
+ /**
189
+ * This function transforms alert by notification channel. It changes notification channel in alert.
190
+ * @param alert - alert to transform
191
+ * @param notificationChannel - selected notification channel
192
+ * @param recipients - optionally selected recipients
193
+ */
194
+ export function transformAlertByDestination(alert, notificationChannel, recipients) {
195
+ return {
196
+ ...alert,
197
+ ...(recipients ? { recipients } : {}),
198
+ notificationChannel,
199
+ };
200
+ }
201
+ /**
202
+ * This function transforms alert execution by metric. It changes measures and auxMeasures in execution based on selected metric.
203
+ * @param metrics - all available metrics
204
+ * @param condition - alert condition
205
+ * @param execution - alert execution
206
+ * @param measure - selected metric
207
+ */
208
+ export function transformAlertExecutionByMetric(metrics, condition, execution, measure) {
209
+ const periodMeasure = measure.comparators.find((c) => c.comparator === AlertMetricComparatorType.PreviousPeriod ||
210
+ c.comparator === AlertMetricComparatorType.SamePeriodPreviousYear);
211
+ if (condition.type === "relative" && periodMeasure) {
212
+ return {
213
+ ...execution,
214
+ measures: [measure.measure, periodMeasure.measure],
215
+ auxMeasures: [
216
+ ...collectAllRelatedMeasures(metrics, measure.measure),
217
+ ...collectAllRelatedMeasures(metrics, periodMeasure.measure),
218
+ ],
219
+ };
220
+ }
221
+ return {
222
+ ...execution,
223
+ measures: [measure.measure],
224
+ auxMeasures: collectAllRelatedMeasures(metrics, measure.measure),
225
+ };
226
+ }
227
+ //alerts transformations utils
228
+ function transformToComparisonCondition(condition) {
229
+ if (condition.type === "relative") {
230
+ return {
231
+ type: "comparison",
232
+ operator: COMPARISON_OPERATORS.COMPARISON_OPERATOR_GREATER_THAN,
233
+ left: condition.measure.left,
234
+ right: condition.threshold,
235
+ };
236
+ }
237
+ return {
238
+ type: "comparison",
239
+ operator: condition.operator,
240
+ right: condition.right,
241
+ left: condition.left,
242
+ };
243
+ }
244
+ function transformToRelativeCondition(condition) {
245
+ if (condition.type === "comparison") {
246
+ return {
247
+ type: "relative",
248
+ operator: RELATIVE_OPERATORS.RELATIVE_OPERATOR_INCREASE_BY,
249
+ measure: {
250
+ operator: ARITHMETIC_OPERATORS.ARITHMETIC_OPERATOR_CHANGE,
251
+ left: condition.left,
252
+ right: undefined,
253
+ },
254
+ threshold: condition.right,
255
+ };
256
+ }
257
+ return {
258
+ type: "relative",
259
+ operator: condition.operator,
260
+ measure: condition.measure,
261
+ threshold: condition.threshold,
262
+ };
263
+ }
264
+ function transformRelativeCondition(measure, periodMeasure, catalogMeasures) {
265
+ return {
266
+ ...(periodMeasure?.isPrimary && {
267
+ left: {
268
+ id: periodMeasure.measure.measure.localIdentifier,
269
+ format: getMeasureFormat(periodMeasure.measure, catalogMeasures),
270
+ title: getMeasureTitle(periodMeasure.measure),
271
+ },
272
+ right: {
273
+ id: measure.measure.measure.localIdentifier,
274
+ format: getMeasureFormat(measure.measure, catalogMeasures),
275
+ title: getMeasureTitle(measure.measure),
276
+ },
277
+ }),
278
+ ...(!periodMeasure?.isPrimary && {
279
+ left: {
280
+ id: measure.measure.measure.localIdentifier,
281
+ format: getMeasureFormat(measure.measure, catalogMeasures),
282
+ title: getMeasureTitle(measure.measure),
283
+ },
284
+ right: {
285
+ id: periodMeasure?.measure.measure.localIdentifier,
286
+ format: getMeasureFormat(periodMeasure?.measure, catalogMeasures),
287
+ title: periodMeasure?.measure ? getMeasureTitle(periodMeasure?.measure) : undefined,
288
+ },
289
+ }),
290
+ };
291
+ }
292
+ //utils
293
+ function collectAllRelatedMeasures(metrics, measure) {
294
+ if (isArithmeticMeasure(measure)) {
295
+ const included = measure.measure.definition.arithmeticMeasure.measureIdentifiers;
296
+ const related = metrics.filter((m) => {
297
+ return included.includes(m.measure.measure.localIdentifier);
298
+ });
299
+ return related.map((m) => m.measure);
300
+ }
301
+ return [];
302
+ }
303
+ //# sourceMappingURL=transformation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"transformation.js","sourceRoot":"","sources":["../../../../../../../src/presentation/widget/insight/configuration/InsightAlertConfig/utils/transformation.ts"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,EAYH,mBAAmB,GACtB,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAIH,yBAAyB,GAC5B,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAEjG,OAAO,EAAE,6BAA6B,EAAE,gBAAgB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,aAAa,EAAE,SAAS,IAAI;YAC7B,IAAI,EAAE;gBACF,EAAE,EAAE,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,eAAe;gBAC3C,MAAM,EAAE,gBAAgB,CAAC,OAAO,CAAC,OAAO,EAAE,eAAe,CAAC;gBAC1D,KAAK,EAAE,eAAe,CAAC,OAAO,CAAC,OAAO,CAAC;aAC1C;YACD,KAAK,EAAE;gBACH,EAAE,EAAE,aAAa,EAAE,OAAO,CAAC,OAAO,CAAC,eAAe;gBAClD,MAAM,EAAE,gBAAgB,CAAC,aAAa,EAAE,OAAO,EAAE,eAAe,CAAC;gBACjE,KAAK,EAAE,aAAa,EAAE,OAAO,CAAC,CAAC,CAAC,eAAe,CAAC,aAAa,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS;aACtF;SACJ,CAAC;KACL,CAAC;AACN,CAAC;AAED,OAAO;AAEP,SAAS,yBAAyB,CAAC,OAAsB,EAAE,OAA+B;IACtF,IAAI,mBAAmB,CAAC,OAAO,CAAC,EAAE,CAAC;QAC/B,MAAM,QAAQ,GAAG,OAAO,CAAC,OAAO,CAAC,UAAU,CAAC,iBAAiB,CAAC,kBAAkB,CAAC;QACjF,MAAM,OAAO,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE;YACjC,OAAO,QAAQ,CAAC,QAAQ,CAAC,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,eAAe,CAAC,CAAC;QAChE,CAAC,CAAC,CAAC;QACH,OAAO,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC;IACzC,CAAC;IACD,OAAO,EAAE,CAAC;AACd,CAAC"}
@@ -1 +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;AAU/E,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,iCAAiC,CAiHrE,CAAC"}
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;AAU/E,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,iCAAiC,CAoHrE,CAAC"}
@@ -16,7 +16,7 @@ export const InsightAlerts = ({ widget, onClose, onGoBack }) => {
16
16
  ? stringUtils.simplifyText(objRefToString(widget.ref))
17
17
  : "";
18
18
  const classes = cx("gd-alerts-configuration-panel", "configuration-scrollable-panel", "s-configuration-scrollable-panel", `s-visualization-${widgetRefSuffix}`);
19
- const { isLoading, alerts, hasAlerts, destinations, users, viewMode, execResult, separators, supportedMeasures, supportedAttributes, maxAutomationsReached, maxAutomationsRecipients, canManageAttributes, canCreateAutomation, catalogMeasures, catalogAttributes,
19
+ const { isLoading, alerts, hasAlerts, destinations, users, viewMode, execResult, separators, supportedMeasures, supportedAttributes, maxAutomationsReached, maxAutomationsRecipients, canManageAttributes, canCreateAutomation, catalogMeasures, catalogAttributes, catalogDateDatasets,
20
20
  //
21
21
  creatingAlert, initiateAlertCreation, cancelAlertCreation,
22
22
  //
@@ -28,10 +28,10 @@ export const InsightAlerts = ({ widget, onClose, onGoBack }) => {
28
28
  content = (React.createElement(AlertsList, { isLoading: isLoading, alerts: alerts, separators: separators, onCreateAlert: initiateAlertCreation, onEditAlert: initiateAlertEditing, onPauseAlert: pauseExistingAlert, onResumeAlert: resumeExistingAlert, onDeleteAlert: deleteExistingAlert, onClose: onClose, onGoBack: onGoBack, maxAutomationsReached: maxAutomationsReached, canCreateAutomation: canCreateAutomation }));
29
29
  }
30
30
  else if (viewMode === "edit" && editingAlert) {
31
- content = (React.createElement(EditAlert, { canManageAttributes: canManageAttributes, execResult: execResult, alert: editingAlert, hasAlerts: hasAlerts, destinations: destinations, users: users, measures: supportedMeasures, attributes: supportedAttributes, onUpdate: updateExistingAlert, onCancel: cancelAlertEditing, onClose: onClose, catalogMeasures: catalogMeasures, catalogAttributes: catalogAttributes, maxAutomationsRecipients: maxAutomationsRecipients }));
31
+ content = (React.createElement(EditAlert, { canManageAttributes: canManageAttributes, execResult: execResult, alert: editingAlert, hasAlerts: hasAlerts, destinations: destinations, users: users, measures: supportedMeasures, attributes: supportedAttributes, onUpdate: updateExistingAlert, onCancel: cancelAlertEditing, onClose: onClose, catalogMeasures: catalogMeasures, catalogAttributes: catalogAttributes, catalogDateDatasets: catalogDateDatasets, maxAutomationsRecipients: maxAutomationsRecipients }));
32
32
  }
33
33
  else if (viewMode === "create" && creatingAlert) {
34
- content = (React.createElement(CreateAlert, { canManageAttributes: canManageAttributes, execResult: execResult, alert: creatingAlert, measures: supportedMeasures, attributes: supportedAttributes, hasAlerts: hasAlerts, destinations: destinations, users: users, onCreate: saveNewAlert, onCancel: cancelAlertCreation, onClose: onClose, maxAutomationsReached: maxAutomationsReached, maxAutomationsRecipients: maxAutomationsRecipients, catalogMeasures: catalogMeasures, catalogAttributes: catalogAttributes }));
34
+ content = (React.createElement(CreateAlert, { canManageAttributes: canManageAttributes, execResult: execResult, alert: creatingAlert, measures: supportedMeasures, attributes: supportedAttributes, hasAlerts: hasAlerts, destinations: destinations, users: users, onCreate: saveNewAlert, onCancel: cancelAlertCreation, onClose: onClose, maxAutomationsReached: maxAutomationsReached, maxAutomationsRecipients: maxAutomationsRecipients, catalogMeasures: catalogMeasures, catalogAttributes: catalogAttributes, catalogDateDatasets: catalogDateDatasets }));
35
35
  }
36
36
  else {
37
37
  content = React.createElement(NoAvailableMeasures, { onClose: onClose, onBack: onGoBack });
@@ -1 +1 @@
1
- {"version":3,"file":"InsightAlerts.js","sourceR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C,iBAAiB,EAAE,iBAAiB,EACpC,wBAAwB,EAAE,wBAAwB,GACpD,CACL,CAAC;IACN,CAAC;SAAM,IAAI,QAAQ,KAAK,QAAQ,IAAI,aAAa,EAAE,CAAC;QAChD,OAAO,GAAG,CACN,oBAAC,WAAW,IACR,mBAAmB,EAAE,mBAAmB,EACxC,UAAU,EAAE,UAAU,EACtB,KAAK,EAAE,aAAa,EACpB,QAAQ,EAAE,iBAAiB,EAC3B,UAAU,EAAE,mBAAmB,EAC/B,SAAS,EAAE,SAAS,EACpB,YAAY,EAAE,YAAY,EAC1B,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,YAAY,EACtB,QAAQ,EAAE,mBAAmB,EAC7B,OAAO,EAAE,OAAO,EAChB,qBAAqB,EAAE,qBAAqB,EAC5C,wBAAwB,EAAE,wBAAwB,EAClD,eAAe,EAAE,eAAe,EAChC,iBAAiB,EAAE,iBAAiB,GACtC,CACL,CAAC;IACN,CAAC;SAAM,CAAC;QACJ,OAAO,GAAG,oBAAC,mBAAmB,IAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,GAAI,CAAC;IAC1E,CAAC;IAED,OAAO,CACH,oBAAC,eAAe,IAAC,SAAS,EAAE,OAAO;QAE/B,oBAAC,yBAAyB,IAAC,iBAAiB,EAAE,iBAAiB,IAC1D,OAAO,CACgB,CACd,CACrB,CAAC;AACN,CAAC,CAAC"}
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,EAAE,eAAe,EAAE,yBAAyB,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AACrG,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAA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,EAC3B,UAAU,EAAE,mBAAmB,EAC/B,SAAS,EAAE,SAAS,EACpB,YAAY,EAAE,YAAY,EAC1B,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,YAAY,EACtB,QAAQ,EAAE,mBAAmB,EAC7B,OAAO,EAAE,OAAO,EAChB,qBAAqB,EAAE,qBAAqB,EAC5C,wBAAwB,EAAE,wBAAwB,EAClD,eAAe,EAAE,eAAe,EAChC,iBAAiB,EAAE,iBAAiB,EACpC,mBAAmB,EAAE,mBAAmB,GAC1C,CACL,CAAC;IACN,CAAC;SAAM,CAAC;QACJ,OAAO,GAAG,oBAAC,mBAAmB,IAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,GAAI,CAAC;IAC1E,CAAC;IAED,OAAO,CACH,oBAAC,eAAe,IAAC,SAAS,EAAE,OAAO;QAE/B,oBAAC,yBAAyB,IAAC,iBAAiB,EAAE,iBAAiB,IAC1D,OAAO,CACgB,CACd,CACrB,CAAC;AACN,CAAC,CAAC"}
@@ -215,5 +215,6 @@ export type AlertMetric = {
215
215
  */
216
216
  export type AlertAttribute = {
217
217
  attribute: IAttribute;
218
+ type: "dateAttribute" | "attribute";
218
219
  };
219
220
  //# sourceMappingURL=types.d.ts.map