@gooddata/sdk-ui-dashboard 10.11.0-alpha.2 → 10.11.0-alpha.21

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 (320) hide show
  1. package/NOTICE +62 -160
  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/dashboard/fluidLayout/index.d.ts +2 -2
  7. package/esm/_staging/dashboard/fluidLayout/index.d.ts.map +1 -1
  8. package/esm/_staging/dashboard/fluidLayout/index.js +1 -1
  9. package/esm/_staging/dashboard/fluidLayout/index.js.map +1 -1
  10. package/esm/_staging/drills/drillingUtils.d.ts +2 -1
  11. package/esm/_staging/drills/drillingUtils.d.ts.map +1 -1
  12. package/esm/_staging/drills/drillingUtils.js.map +1 -1
  13. package/esm/_staging/sharedHooks/useFiltersNamings.d.ts +2 -2
  14. package/esm/_staging/sharedHooks/useFiltersNamings.d.ts.map +1 -1
  15. package/esm/_staging/sharedHooks/useFiltersNamings.js +6 -3
  16. package/esm/_staging/sharedHooks/useFiltersNamings.js.map +1 -1
  17. package/esm/index.d.ts +3 -2
  18. package/esm/index.d.ts.map +1 -1
  19. package/esm/index.js +1 -2
  20. package/esm/index.js.map +1 -1
  21. package/esm/locales.d.ts.map +1 -1
  22. package/esm/locales.js +2 -0
  23. package/esm/locales.js.map +1 -1
  24. package/esm/model/commandHandlers/dashboard/common/filterViews.d.ts +4 -0
  25. package/esm/model/commandHandlers/dashboard/common/filterViews.d.ts.map +1 -0
  26. package/esm/model/commandHandlers/dashboard/common/filterViews.js +63 -0
  27. package/esm/model/commandHandlers/dashboard/common/filterViews.js.map +1 -0
  28. package/esm/model/commandHandlers/dashboard/common/loadWorkspaceAutomations.d.ts.map +1 -1
  29. package/esm/model/commandHandlers/dashboard/common/loadWorkspaceAutomations.js +4 -7
  30. package/esm/model/commandHandlers/dashboard/common/loadWorkspaceAutomations.js.map +1 -1
  31. package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/index.d.ts.map +1 -1
  32. package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/index.js +3 -18
  33. package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/index.js.map +1 -1
  34. package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/loadFilterViews.d.ts.map +1 -1
  35. package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/loadFilterViews.js +8 -1
  36. package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/loadFilterViews.js.map +1 -1
  37. package/esm/model/commandHandlers/dashboard/resetDashboardHandler.d.ts.map +1 -1
  38. package/esm/model/commandHandlers/dashboard/resetDashboardHandler.js +7 -3
  39. package/esm/model/commandHandlers/dashboard/resetDashboardHandler.js.map +1 -1
  40. package/esm/model/commandHandlers/drill/drillDownHandler.d.ts.map +1 -1
  41. package/esm/model/commandHandlers/drill/drillDownHandler.js +17 -20
  42. package/esm/model/commandHandlers/drill/drillDownHandler.js.map +1 -1
  43. package/esm/model/commandHandlers/drill/drillToDashboardHandler.d.ts.map +1 -1
  44. package/esm/model/commandHandlers/drill/drillToDashboardHandler.js +2 -3
  45. package/esm/model/commandHandlers/drill/drillToDashboardHandler.js.map +1 -1
  46. package/esm/model/commandHandlers/drill/drillToInsightHandler.d.ts.map +1 -1
  47. package/esm/model/commandHandlers/drill/drillToInsightHandler.js +2 -3
  48. package/esm/model/commandHandlers/drill/drillToInsightHandler.js.map +1 -1
  49. package/esm/model/commandHandlers/filterContext/filterViewHandler.d.ts.map +1 -1
  50. package/esm/model/commandHandlers/filterContext/filterViewHandler.js +20 -3
  51. package/esm/model/commandHandlers/filterContext/filterViewHandler.js.map +1 -1
  52. package/esm/model/commandHandlers/index.d.ts.map +1 -1
  53. package/esm/model/commandHandlers/index.js +2 -0
  54. package/esm/model/commandHandlers/index.js.map +1 -1
  55. package/esm/model/commandHandlers/widgets/addDrillDownForInsightWidgetHandler.d.ts.map +1 -1
  56. package/esm/model/commandHandlers/widgets/addDrillDownForInsightWidgetHandler.js +1 -3
  57. package/esm/model/commandHandlers/widgets/addDrillDownForInsightWidgetHandler.js.map +1 -1
  58. package/esm/model/commandHandlers/widgets/changeInsightWidgetIgnoreCrossFilteringHandler.d.ts +6 -0
  59. package/esm/model/commandHandlers/widgets/changeInsightWidgetIgnoreCrossFilteringHandler.d.ts.map +1 -0
  60. package/esm/model/commandHandlers/widgets/changeInsightWidgetIgnoreCrossFilteringHandler.js +20 -0
  61. package/esm/model/commandHandlers/widgets/changeInsightWidgetIgnoreCrossFilteringHandler.js.map +1 -0
  62. package/esm/model/commandHandlers/widgets/modifyDrillDownForInsightWidgetHandler.d.ts.map +1 -1
  63. package/esm/model/commandHandlers/widgets/modifyDrillDownForInsightWidgetHandler.js +1 -3
  64. package/esm/model/commandHandlers/widgets/modifyDrillDownForInsightWidgetHandler.js.map +1 -1
  65. package/esm/model/commandHandlers/widgets/removeDrillDownForInsightWidgetHandler.d.ts.map +1 -1
  66. package/esm/model/commandHandlers/widgets/removeDrillDownForInsightWidgetHandler.js +8 -12
  67. package/esm/model/commandHandlers/widgets/removeDrillDownForInsightWidgetHandler.js.map +1 -1
  68. package/esm/model/commands/base.d.ts +1 -1
  69. package/esm/model/commands/base.d.ts.map +1 -1
  70. package/esm/model/commands/index.d.ts +31 -17
  71. package/esm/model/commands/index.d.ts.map +1 -1
  72. package/esm/model/commands/index.js +6 -6
  73. package/esm/model/commands/index.js.map +1 -1
  74. package/esm/model/commands/insight.d.ts +33 -0
  75. package/esm/model/commands/insight.d.ts.map +1 -1
  76. package/esm/model/commands/insight.js +21 -0
  77. package/esm/model/commands/insight.js.map +1 -1
  78. package/esm/model/events/base.d.ts +1 -1
  79. package/esm/model/events/base.d.ts.map +1 -1
  80. package/esm/model/events/base.js.map +1 -1
  81. package/esm/model/events/index.d.ts +34 -17
  82. package/esm/model/events/index.d.ts.map +1 -1
  83. package/esm/model/events/index.js +6 -6
  84. package/esm/model/events/index.js.map +1 -1
  85. package/esm/model/events/insight.d.ts +26 -0
  86. package/esm/model/events/insight.d.ts.map +1 -1
  87. package/esm/model/events/insight.js +11 -0
  88. package/esm/model/events/insight.js.map +1 -1
  89. package/esm/model/headlessDashboard/index.d.ts +2 -1
  90. package/esm/model/headlessDashboard/index.d.ts.map +1 -1
  91. package/esm/model/headlessDashboard/index.js +1 -1
  92. package/esm/model/headlessDashboard/index.js.map +1 -1
  93. package/esm/model/index.d.ts +13 -9
  94. package/esm/model/index.d.ts.map +1 -1
  95. package/esm/model/index.js +1 -1
  96. package/esm/model/index.js.map +1 -1
  97. package/esm/model/queries/index.d.ts +21 -11
  98. package/esm/model/queries/index.d.ts.map +1 -1
  99. package/esm/model/queries/index.js +2 -2
  100. package/esm/model/queries/index.js.map +1 -1
  101. package/esm/model/react/index.d.ts +11 -6
  102. package/esm/model/react/index.d.ts.map +1 -1
  103. package/esm/model/react/index.js +1 -1
  104. package/esm/model/react/index.js.map +1 -1
  105. package/esm/model/react/useDashboardCommand.d.ts +1 -0
  106. package/esm/model/react/useDashboardCommand.d.ts.map +1 -1
  107. package/esm/model/react/useDashboardScheduledEmails.d.ts.map +1 -1
  108. package/esm/model/react/useDashboardScheduledEmails.js +3 -2
  109. package/esm/model/react/useDashboardScheduledEmails.js.map +1 -1
  110. package/esm/model/store/config/configSelectors.d.ts +6 -12
  111. package/esm/model/store/config/configSelectors.d.ts.map +1 -1
  112. package/esm/model/store/config/configSelectors.js +9 -17
  113. package/esm/model/store/config/configSelectors.js.map +1 -1
  114. package/esm/model/store/filterViews/filterViewsReducers.d.ts +4 -0
  115. package/esm/model/store/filterViews/filterViewsReducers.d.ts.map +1 -1
  116. package/esm/model/store/filterViews/filterViewsReducers.js +5 -0
  117. package/esm/model/store/filterViews/filterViewsReducers.js.map +1 -1
  118. package/esm/model/store/filterViews/filterViewsReducersSelectors.d.ts +4 -0
  119. package/esm/model/store/filterViews/filterViewsReducersSelectors.d.ts.map +1 -1
  120. package/esm/model/store/filterViews/filterViewsReducersSelectors.js +4 -0
  121. package/esm/model/store/filterViews/filterViewsReducersSelectors.js.map +1 -1
  122. package/esm/model/store/filterViews/filterViewsState.d.ts +1 -0
  123. package/esm/model/store/filterViews/filterViewsState.d.ts.map +1 -1
  124. package/esm/model/store/filterViews/filterViewsState.js +1 -1
  125. package/esm/model/store/filterViews/filterViewsState.js.map +1 -1
  126. package/esm/model/store/filterViews/index.d.ts +6 -2
  127. package/esm/model/store/filterViews/index.d.ts.map +1 -1
  128. package/esm/model/store/filterViews/index.js +1 -1
  129. package/esm/model/store/filterViews/index.js.map +1 -1
  130. package/esm/model/store/index.d.ts +36 -34
  131. package/esm/model/store/index.d.ts.map +1 -1
  132. package/esm/model/store/index.js +4 -8
  133. package/esm/model/store/index.js.map +1 -1
  134. package/esm/model/store/layout/index.d.ts +4 -0
  135. package/esm/model/store/layout/index.d.ts.map +1 -1
  136. package/esm/model/store/layout/layoutReducers.d.ts +5 -0
  137. package/esm/model/store/layout/layoutReducers.d.ts.map +1 -1
  138. package/esm/model/store/layout/layoutReducers.js +8 -0
  139. package/esm/model/store/layout/layoutReducers.js.map +1 -1
  140. package/esm/model/store/layout/layoutSelectors.d.ts +6 -0
  141. package/esm/model/store/layout/layoutSelectors.d.ts.map +1 -1
  142. package/esm/model/store/layout/layoutSelectors.js +22 -3
  143. package/esm/model/store/layout/layoutSelectors.js.map +1 -1
  144. package/esm/model/store/permissions/permissionsSelectors.d.ts +12 -0
  145. package/esm/model/store/permissions/permissionsSelectors.d.ts.map +1 -1
  146. package/esm/model/store/permissions/permissionsSelectors.js +17 -1
  147. package/esm/model/store/permissions/permissionsSelectors.js.map +1 -1
  148. package/esm/model/store/widgetDrills/widgetDrillSelectors.d.ts.map +1 -1
  149. package/esm/model/store/widgetDrills/widgetDrillSelectors.js +10 -10
  150. package/esm/model/store/widgetDrills/widgetDrillSelectors.js.map +1 -1
  151. package/esm/plugins/index.d.ts +5 -3
  152. package/esm/plugins/index.d.ts.map +1 -1
  153. package/esm/plugins/index.js +0 -1
  154. package/esm/plugins/index.js.map +1 -1
  155. package/esm/presentation/alerting/index.d.ts +1 -1
  156. package/esm/presentation/alerting/index.d.ts.map +1 -1
  157. package/esm/presentation/cancelEditDialog/index.d.ts +1 -1
  158. package/esm/presentation/cancelEditDialog/index.d.ts.map +1 -1
  159. package/esm/presentation/cancelEditDialog/index.js +1 -1
  160. package/esm/presentation/cancelEditDialog/index.js.map +1 -1
  161. package/esm/presentation/dashboard/index.d.ts +1 -1
  162. package/esm/presentation/dashboard/index.d.ts.map +1 -1
  163. package/esm/presentation/dashboard/index.js +1 -1
  164. package/esm/presentation/deleteDialog/index.d.ts +1 -1
  165. package/esm/presentation/deleteDialog/index.d.ts.map +1 -1
  166. package/esm/presentation/deleteDialog/index.js +1 -1
  167. package/esm/presentation/dragAndDrop/draggableWidget/DashboardLayoutSectionBorder/index.d.ts +1 -1
  168. package/esm/presentation/dragAndDrop/draggableWidget/DashboardLayoutSectionBorder/index.d.ts.map +1 -1
  169. package/esm/presentation/dragAndDrop/draggableWidget/DashboardLayoutSectionBorder/index.js +1 -1
  170. package/esm/presentation/dragAndDrop/draggableWidget/DashboardLayoutSectionBorder/index.js.map +1 -1
  171. package/esm/presentation/drill/DrillSelect/DrillSelectDropdown.d.ts +1 -2
  172. package/esm/presentation/drill/DrillSelect/DrillSelectDropdown.d.ts.map +1 -1
  173. package/esm/presentation/drill/DrillSelect/DrillSelectDropdown.js +4 -11
  174. package/esm/presentation/drill/DrillSelect/DrillSelectDropdown.js.map +1 -1
  175. package/esm/presentation/drill/index.d.ts +17 -9
  176. package/esm/presentation/drill/index.d.ts.map +1 -1
  177. package/esm/presentation/drill/index.js +1 -2
  178. package/esm/presentation/drill/index.js.map +1 -1
  179. package/esm/presentation/filterBar/filterBar/filterViews/AddFilterView.d.ts.map +1 -1
  180. package/esm/presentation/filterBar/filterBar/filterViews/AddFilterView.js +1 -1
  181. package/esm/presentation/filterBar/filterBar/filterViews/AddFilterView.js.map +1 -1
  182. package/esm/presentation/filterBar/filterBar/filterViews/FilterViews.d.ts.map +1 -1
  183. package/esm/presentation/filterBar/filterBar/filterViews/FilterViews.js +8 -2
  184. package/esm/presentation/filterBar/filterBar/filterViews/FilterViews.js.map +1 -1
  185. package/esm/presentation/filterBar/filterBar/filterViews/FilterViewsList.d.ts.map +1 -1
  186. package/esm/presentation/filterBar/filterBar/filterViews/FilterViewsList.js +15 -9
  187. package/esm/presentation/filterBar/filterBar/filterViews/FilterViewsList.js.map +1 -1
  188. package/esm/presentation/index.d.ts +2 -1
  189. package/esm/presentation/index.d.ts.map +1 -1
  190. package/esm/presentation/index.js +1 -1
  191. package/esm/presentation/index.js.map +1 -1
  192. package/esm/presentation/kpiDeleteDialog/index.d.ts +1 -1
  193. package/esm/presentation/kpiDeleteDialog/index.d.ts.map +1 -1
  194. package/esm/presentation/kpiDeleteDialog/index.js +1 -1
  195. package/esm/presentation/layout/DefaultDashboardLayoutRenderer/index.d.ts +7 -5
  196. package/esm/presentation/layout/DefaultDashboardLayoutRenderer/index.d.ts.map +1 -1
  197. package/esm/presentation/layout/DefaultDashboardLayoutRenderer/index.js.map +1 -1
  198. package/esm/presentation/localization/bundles/en-US.json +42 -0
  199. package/esm/presentation/saveAs/index.d.ts +1 -1
  200. package/esm/presentation/saveAs/index.d.ts.map +1 -1
  201. package/esm/presentation/saveAs/index.js +1 -1
  202. package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/Attachments/AttachmentFilters.d.ts.map +1 -1
  203. package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/Attachments/AttachmentFilters.js +29 -39
  204. package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/Attachments/AttachmentFilters.js.map +1 -1
  205. package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/hooks/useAttachmentDashboardFilters.d.ts.map +1 -1
  206. package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/hooks/useAttachmentDashboardFilters.js +2 -1
  207. package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/hooks/useAttachmentDashboardFilters.js.map +1 -1
  208. package/esm/presentation/scheduledEmail/DefaultScheduledEmailManagementDialog/DefaultScheduledEmailManagementDialog.d.ts.map +1 -1
  209. package/esm/presentation/scheduledEmail/DefaultScheduledEmailManagementDialog/DefaultScheduledEmailManagementDialog.js +3 -2
  210. package/esm/presentation/scheduledEmail/DefaultScheduledEmailManagementDialog/DefaultScheduledEmailManagementDialog.js.map +1 -1
  211. package/esm/presentation/scheduledEmail/index.d.ts +1 -1
  212. package/esm/presentation/scheduledEmail/index.d.ts.map +1 -1
  213. package/esm/presentation/shareDialog/index.d.ts +1 -1
  214. package/esm/presentation/shareDialog/index.d.ts.map +1 -1
  215. package/esm/presentation/shareDialog/index.js +1 -1
  216. package/esm/presentation/toolbar/DefaultDashboardToolbar/index.d.ts +4 -2
  217. package/esm/presentation/toolbar/DefaultDashboardToolbar/index.d.ts.map +1 -1
  218. package/esm/presentation/toolbar/DefaultDashboardToolbar/index.js +3 -3
  219. package/esm/presentation/toolbar/DefaultDashboardToolbar/index.js.map +1 -1
  220. package/esm/presentation/topBar/menuButton/useDefaultMenuItems.d.ts.map +1 -1
  221. package/esm/presentation/topBar/menuButton/useDefaultMenuItems.js +12 -4
  222. package/esm/presentation/topBar/menuButton/useDefaultMenuItems.js.map +1 -1
  223. package/esm/presentation/widget/common/useInsightExport.d.ts.map +1 -1
  224. package/esm/presentation/widget/common/useInsightExport.js +3 -3
  225. package/esm/presentation/widget/common/useInsightExport.js.map +1 -1
  226. package/esm/presentation/widget/description/index.d.ts +1 -1
  227. package/esm/presentation/widget/description/index.d.ts.map +1 -1
  228. package/esm/presentation/widget/index.d.ts +2 -1
  229. package/esm/presentation/widget/index.d.ts.map +1 -1
  230. package/esm/presentation/widget/index.js +0 -1
  231. package/esm/presentation/widget/index.js.map +1 -1
  232. package/esm/presentation/widget/insight/ViewModeDashboardInsight/DashboardInsightWithDrillDialog.d.ts.map +1 -1
  233. package/esm/presentation/widget/insight/ViewModeDashboardInsight/DashboardInsightWithDrillDialog.js +4 -14
  234. package/esm/presentation/widget/insight/ViewModeDashboardInsight/DashboardInsightWithDrillDialog.js.map +1 -1
  235. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertComparisonOperatorSelect.d.ts +3 -3
  236. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertComparisonOperatorSelect.d.ts.map +1 -1
  237. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertComparisonOperatorSelect.js +6 -3
  238. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertComparisonOperatorSelect.js.map +1 -1
  239. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertsList.d.ts +1 -0
  240. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertsList.d.ts.map +1 -1
  241. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertsList.js +8 -6
  242. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertsList.js.map +1 -1
  243. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/EditAlert.d.ts.map +1 -1
  244. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/EditAlert.js +4 -6
  245. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/EditAlert.js.map +1 -1
  246. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useEditAlert.d.ts +2 -2
  247. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useEditAlert.d.ts.map +1 -1
  248. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useEditAlert.js +4 -4
  249. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useEditAlert.js.map +1 -1
  250. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useInsightAlerting.d.ts +1 -0
  251. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useInsightAlerting.d.ts.map +1 -1
  252. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useInsightAlerting.js +4 -2
  253. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useInsightAlerting.js.map +1 -1
  254. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/utils.d.ts +2 -3
  255. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/utils.d.ts.map +1 -1
  256. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/utils.js +81 -76
  257. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/utils.js.map +1 -1
  258. package/esm/presentation/widget/insight/configuration/InsightAlerts.d.ts.map +1 -1
  259. package/esm/presentation/widget/insight/configuration/InsightAlerts.js +3 -3
  260. package/esm/presentation/widget/insight/configuration/InsightAlerts.js.map +1 -1
  261. package/esm/presentation/widget/insight/configuration/InsightCrossFiltering.d.ts +8 -0
  262. package/esm/presentation/widget/insight/configuration/InsightCrossFiltering.d.ts.map +1 -0
  263. package/esm/presentation/widget/insight/configuration/InsightCrossFiltering.js +32 -0
  264. package/esm/presentation/widget/insight/configuration/InsightCrossFiltering.js.map +1 -0
  265. package/esm/presentation/widget/insight/configuration/InsightDrillConfigItem.d.ts.map +1 -1
  266. package/esm/presentation/widget/insight/configuration/InsightDrillConfigItem.js +4 -6
  267. package/esm/presentation/widget/insight/configuration/InsightDrillConfigItem.js.map +1 -1
  268. package/esm/presentation/widget/insight/configuration/InsightFilters.d.ts.map +1 -1
  269. package/esm/presentation/widget/insight/configuration/InsightFilters.js +4 -2
  270. package/esm/presentation/widget/insight/configuration/InsightFilters.js.map +1 -1
  271. package/esm/presentation/widget/insight/index.d.ts +1 -1
  272. package/esm/presentation/widget/insight/index.d.ts.map +1 -1
  273. package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/getDefaultInsightMenuItems.d.ts +11 -1
  274. package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/getDefaultInsightMenuItems.d.ts.map +1 -1
  275. package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/getDefaultInsightMenuItems.js +27 -9
  276. package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/getDefaultInsightMenuItems.js.map +1 -1
  277. package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/index.d.ts +3 -1
  278. package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/index.d.ts.map +1 -1
  279. package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/index.js +1 -1
  280. package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/index.js.map +1 -1
  281. package/esm/presentation/widget/insightMenu/index.d.ts +1 -1
  282. package/esm/presentation/widget/insightMenu/index.d.ts.map +1 -1
  283. package/esm/presentation/widget/kpi/ViewModeDashboardKpi/KpiAlerts/index.d.ts +2 -1
  284. package/esm/presentation/widget/kpi/ViewModeDashboardKpi/KpiAlerts/index.d.ts.map +1 -1
  285. package/esm/presentation/widget/kpi/ViewModeDashboardKpi/KpiAlerts/index.js +2 -2
  286. package/esm/presentation/widget/kpi/ViewModeDashboardKpi/KpiAlerts/index.js.map +1 -1
  287. package/esm/presentation/widget/kpi/index.d.ts +1 -1
  288. package/esm/presentation/widget/kpi/index.d.ts.map +1 -1
  289. package/esm/presentation/widget/kpi/index.js +1 -1
  290. package/esm/presentation/widget/richText/index.d.ts +1 -1
  291. package/esm/presentation/widget/richText/index.d.ts.map +1 -1
  292. package/esm/presentation/widget/types.d.ts +6 -6
  293. package/esm/presentation/widget/types.d.ts.map +1 -1
  294. package/esm/presentation/widget/visualizationSwitcher/index.d.ts +1 -1
  295. package/esm/presentation/widget/visualizationSwitcher/index.d.ts.map +1 -1
  296. package/esm/presentation/widget/widget/InsightWidget/DefaultDashboardInsightWidget.d.ts.map +1 -1
  297. package/esm/presentation/widget/widget/InsightWidget/DefaultDashboardInsightWidget.js +43 -8
  298. package/esm/presentation/widget/widget/InsightWidget/DefaultDashboardInsightWidget.js.map +1 -1
  299. package/esm/presentation/widget/widget/InsightWidget/useInsightMenu.d.ts +5 -3
  300. package/esm/presentation/widget/widget/InsightWidget/useInsightMenu.d.ts.map +1 -1
  301. package/esm/presentation/widget/widget/InsightWidget/useInsightMenu.js +10 -14
  302. package/esm/presentation/widget/widget/InsightWidget/useInsightMenu.js.map +1 -1
  303. package/esm/presentation/widget/widget/index.d.ts +1 -1
  304. package/esm/presentation/widget/widget/index.d.ts.map +1 -1
  305. package/esm/presentation/widgetDeleteDialog/index.d.ts +1 -1
  306. package/esm/presentation/widgetDeleteDialog/index.d.ts.map +1 -1
  307. package/esm/sdk-ui-dashboard.d.ts +79 -18
  308. package/esm/tools/index.d.ts +2 -1
  309. package/esm/tools/index.d.ts.map +1 -1
  310. package/esm/tools/index.js +1 -2
  311. package/esm/tools/index.js.map +1 -1
  312. package/package.json +16 -15
  313. package/styles/css/alerting.css +8 -0
  314. package/styles/css/alerting.css.map +1 -1
  315. package/styles/css/configurationPanel.css +9 -0
  316. package/styles/css/configurationPanel.css.map +1 -1
  317. package/styles/css/main.css +17 -0
  318. package/styles/css/main.css.map +1 -1
  319. package/styles/scss/alerting.scss +8 -0
  320. package/styles/scss/configurationPanel.scss +10 -0
@@ -1 +1 @@
1
- {"version":3,"file":"getDefaultInsightMenuItems.js","sourceRoot":"","sources":["../../../../../src/presentation/widget/insightMenu/DefaultDashboardInsightMenu/getDefaultInsightMenuItems.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,OAAO,MAAM,mBAAmB,CAAC;AAGxC,OAAO,EAAE,aAAa,EAAE,MAAM,8CAA8C,CAAC;AAE7E;;GAEG;AACH,MAAM,UAAU,0BAA0B,CACtC,IAAe,EACf,MAeC;IAED,MAAM,EACF,iBAAiB,EACjB,kBAAkB,EAClB,sBAAsB,EACtB,4BAA4B,EAC5B,gCAAgC,EAChC,WAAW,EACX,YAAY,EACZ,gBAAgB,EAChB,0BAA0B,EAC1B,uBAAuB,EACvB,iCAAiC,EACjC,WAAW,EACX,iBAAiB,EACjB,gBAAgB,GACn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YACnC,QAAQ,EAAE,gCAAgC;YAC1C,OAAO,EAAE,oBAAoB;YAC7B,IAAI,EAAE,cAAc;YACpB,SAAS,EAAE,qCAAqC;SACnD;KACJ,CAAC;IAEF,OAAO,OAAO,CAAC,SAAS,CAAC,CAAC;AAC9B,CAAC"}
1
+ {"version":3,"file":"getDefaultInsightMenuItems.js","sourceRoot":"","sources":["../../../../../src/presentation/widget/insightMenu/DefaultDashboardInsightMenu/getDefaultInsightMenuItems.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,OAAO,MAAM,mBAAmB,CAAC;AAGxC,OAAO,EAAE,aAAa,EAAE,MAAM,8CAA8C,CAAC;AAY7E;;GAEG;AACH,MAAM,UAAU,0BAA0B,CACtC,IAAe,EACf,MAiBC;IAED,MAAM,EACF,iBAAiB,EACjB,kBAAkB,EAClB,sBAAsB,EACtB,4BAA4B,EAC5B,gCAAgC,EAChC,WAAW,EACX,YAAY,EACZ,gBAAgB,EAChB,0BAA0B,EAC1B,uBAAuB,EACvB,iCAAiC,EACjC,WAAW,EACX,iBAAiB,EACjB,gBAAgB,EAChB,sBAAsB,EACtB,mBAAmB,GACtB,GAAG,MAAM,CAAC;IAEX,MAAM,oBAAoB,GAAG,WAAW;QACpC,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,EAAE,EAAE,EAAE,gCAAgC,EAAE,CAAC;QAC9D,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,EAAE,EAAE,EAAE,kCAAkC,EAAE,CAAC,CAAC;IACrE,MAAM,gBAAgB,GAAG,IAAI,CAAC,aAAa,CAAC;QACxC,EAAE,EAAE,oCAAoC;KAC3C,CAAC,CAAC;IACH,MAAM,wBAAwB,GAAG,IAAI,CAAC,aAAa,CAAC;QAChD,EAAE,EAAE,4CAA4C;KACnD,CAAC,CAAC;IACH,MAAM,yBAAyB,GAAG,IAAI,CAAC,aAAa,CAAC;QACjD,EAAE,EAA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AAC,CAAC,IAAI,CAAC,aAAa,CAAC,EAAE,EAAE,EAAE,yCAAyC,EAAE,CAAC;gBACvE,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,EAAE,EAAE,EAAE,sDAAsD,EAAE,CAAC;YACxF,OAAO,EAAE,0BAA0B;YACnC,QAAQ,EAAE,gCAAgC;YAC1C,OAAO,EAAE,oBAAoB;YAC7B,IAAI,EAAE,mBAAmB,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,eAAe;YAC5D,SAAS,EAAE,qCAAqC;SACnD;KACJ,CAAC;IAEF,OAAO,OAAO,CAAC,SAAS,CAAC,CAAC;AAC9B,CAAC"}
@@ -1,6 +1,8 @@
1
1
  export { DefaultDashboardInsightMenu } from "./DefaultDashboardInsightMenu.js";
2
2
  export { DefaultDashboardInsightMenuButton } from "./DefaultDashboardInsightMenuButton.js";
3
3
  export { DefaultDashboardInsightMenuTitle } from "./DefaultDashboardInsightMenuTitle.js";
4
+ export type { AlertingDisabledReason, SchedulingDisabledReason } from "./getDefaultInsightMenuItems.js";
4
5
  export { getDefaultInsightMenuItems } from "./getDefaultInsightMenuItems.js";
5
- export { getDefaultInsightEditMenuItems, MenuItemDependencies } from "./getDefaultInsightEditMenuItems.js";
6
+ export type { MenuItemDependencies } from "./getDefaultInsightEditMenuItems.js";
7
+ export { getDefaultInsightEditMenuItems } from "./getDefaultInsightEditMenuItems.js";
6
8
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/widget/insightMenu/DefaultDashboardInsightMenu/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,2BAA2B,EAAE,MAAM,kCAAkC,CAAC;AAC/E,OAAO,EAAE,iCAAiC,EAAE,MAAM,wCAAwC,CAAC;AAC3F,OAAO,EAAE,gCAAgC,EAAE,MAAM,uCAAuC,CAAC;AACzF,OAAO,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAC7E,OAAO,EAAE,8BAA8B,EAAE,oBAAoB,EAAE,MAAM,qCAAqC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/widget/insightMenu/DefaultDashboardInsightMenu/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,2BAA2B,EAAE,MAAM,kCAAkC,CAAC;AAC/E,OAAO,EAAE,iCAAiC,EAAE,MAAM,wCAAwC,CAAC;AAC3F,OAAO,EAAE,gCAAgC,EAAE,MAAM,uCAAuC,CAAC;AACzF,YAAY,EAAE,sBAAsB,EAAE,wBAAwB,EAAE,MAAM,iCAAiC,CAAC;AACxG,OAAO,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAC7E,YAAY,EAAE,oBAAoB,EAAE,MAAM,qCAAqC,CAAC;AAChF,OAAO,EAAE,8BAA8B,EAAE,MAAM,qCAAqC,CAAC"}
@@ -1,4 +1,4 @@
1
- // (C) 2021-2022 GoodData Corporation
1
+ // (C) 2021-2024 GoodData Corporation
2
2
  export { DefaultDashboardInsightMenu } from "./DefaultDashboardInsightMenu.js";
3
3
  export { DefaultDashboardInsightMenuButton } from "./DefaultDashboardInsightMenuButton.js";
4
4
  export { DefaultDashboardInsightMenuTitle } from "./DefaultDashboardInsightMenuTitle.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/presentation/widget/insightMenu/DefaultDashboardInsightMenu/index.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,EAAE,2BAA2B,EAAE,MAAM,kCAAkC,CAAC;AAC/E,OAAO,EAAE,iCAAiC,EAAE,MAAM,wCAAwC,CAAC;AAC3F,OAAO,EAAE,gCAAgC,EAAE,MAAM,uCAAuC,CAAC;AACzF,OAAO,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAC7E,OAAO,EAAE,8BAA8B,EAAwB,MAAM,qCAAqC,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/presentation/widget/insightMenu/DefaultDashboardInsightMenu/index.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,EAAE,2BAA2B,EAAE,MAAM,kCAAkC,CAAC;AAC/E,OAAO,EAAE,iCAAiC,EAAE,MAAM,wCAAwC,CAAC;AAC3F,OAAO,EAAE,gCAAgC,EAAE,MAAM,uCAAuC,CAAC;AAEzF,OAAO,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAE7E,OAAO,EAAE,8BAA8B,EAAE,MAAM,qCAAqC,CAAC"}
@@ -2,5 +2,5 @@ export * from "./DefaultDashboardInsightMenu/index.js";
2
2
  export { DashboardInsightMenuButton } from "./DashboardInsightMenuButton.js";
3
3
  export { DashboardInsightMenu } from "./DashboardInsightMenu.js";
4
4
  export { DashboardInsightMenuTitle } from "./DashboardInsightMenuTitle.js";
5
- export { CustomDashboardInsightMenuButtonComponent, CustomDashboardInsightMenuComponent, CustomDashboardInsightMenuTitleComponent, IDashboardInsightMenuButtonProps, IDashboardInsightMenuProps, IDashboardInsightMenuTitleProps, IInsightMenuItem, IInsightMenuSubmenu, IInsightMenuItemButton, IInsightMenuItemSeparator, IInsightMenuSubmenuComponentProps, } from "./types.js";
5
+ export type { CustomDashboardInsightMenuButtonComponent, CustomDashboardInsightMenuComponent, CustomDashboardInsightMenuTitleComponent, IDashboardInsightMenuButtonProps, IDashboardInsightMenuProps, IDashboardInsightMenuTitleProps, IInsightMenuItem, IInsightMenuSubmenu, IInsightMenuItemButton, IInsightMenuItemSeparator, IInsightMenuSubmenuComponentProps, } from "./types.js";
6
6
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/presentation/widget/insightMenu/index.ts"],"names":[],"mappings":"AACA,cAAc,wCAAwC,CAAC;AACvD,OAAO,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAC7E,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACjE,OAAO,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EACH,yCAAyC,EACzC,mCAAmC,EACnC,wCAAwC,EACxC,gCAAgC,EAChC,0BAA0B,EAC1B,+BAA+B,EAC/B,gBAAgB,EAChB,mBAAmB,EACnB,sBAAsB,EACtB,yBAAyB,EACzB,iCAAiC,GACpC,MAAM,YAAY,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/presentation/widget/insightMenu/index.ts"],"names":[],"mappings":"AACA,cAAc,wCAAwC,CAAC;AACvD,OAAO,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAC7E,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACjE,OAAO,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAC3E,YAAY,EACR,yCAAyC,EACzC,mCAAmC,EACnC,wCAAwC,EACxC,gCAAgC,EAChC,0BAA0B,EAC1B,+BAA+B,EAC/B,gBAAgB,EAChB,mBAAmB,EACnB,sBAAsB,EACtB,yBAAyB,EACzB,iCAAiC,GACpC,MAAM,YAAY,CAAC"}
@@ -3,5 +3,6 @@ import KpiAlertDialog, { IKpiAlertDialogProps } from "./KpiAlertDialog/KpiAlertD
3
3
  import { IAttributeFilterMetaCollection, enrichBrokenAlertsInfo } from "./utils/brokenFilterUtils.js";
4
4
  import { evaluateAlertTriggered } from "./utils/alertThresholdUtils.js";
5
5
  export * from "./types.js";
6
- export { DashboardItemWithKpiAlert, IDashboardItemWithKpiAlertProps, KpiAlertDialog, IKpiAlertDialogProps, IAttributeFilterMetaCollection, enrichBrokenAlertsInfo, evaluateAlertTriggered, };
6
+ export type { IDashboardItemWithKpiAlertProps, IKpiAlertDialogProps, IAttributeFilterMetaCollection };
7
+ export { DashboardItemWithKpiAlert, KpiAlertDialog, enrichBrokenAlertsInfo, evaluateAlertTriggered };
7
8
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/widget/kpi/ViewModeDashboardKpi/KpiAlerts/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,yBAAyB,EAAE,+BAA+B,EAAE,MAAM,gCAAgC,CAAC;AAC5G,OAAO,cAAc,EAAE,EAAE,oBAAoB,EAAE,MAAM,oCAAoC,CAAC;AAC1F,OAAO,EAAE,8BAA8B,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AACtG,OAAO,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AAExE,cAAc,YAAY,CAAC;AAC3B,OAAO,EACH,yBAAyB,EACzB,+BAA+B,EAC/B,cAAc,EACd,oBAAoB,EACpB,8BAA8B,EAC9B,sBAAsB,EACtB,sBAAsB,GACzB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/widget/kpi/ViewModeDashboardKpi/KpiAlerts/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,yBAAyB,EAAE,+BAA+B,EAAE,MAAM,gCAAgC,CAAC;AAC5G,OAAO,cAAc,EAAE,EAAE,oBAAoB,EAAE,MAAM,oCAAoC,CAAC;AAC1F,OAAO,EAAE,8BAA8B,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AACtG,OAAO,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AAExE,cAAc,YAAY,CAAC;AAC3B,YAAY,EAAE,+BAA+B,EAAE,oBAAoB,EAAE,8BAA8B,EAAE,CAAC;AACtG,OAAO,EAAE,yBAAyB,EAAE,cAAc,EAAE,sBAAsB,EAAE,sBAAsB,EAAE,CAAC"}
@@ -1,8 +1,8 @@
1
- // (C) 2007-2021 GoodData Corporation
1
+ // (C) 2007-2024 GoodData Corporation
2
2
  import { DashboardItemWithKpiAlert } from "./DashboardItemWithKpiAlert.js";
3
3
  import KpiAlertDialog from "./KpiAlertDialog/KpiAlertDialog.js";
4
4
  import { enrichBrokenAlertsInfo } from "./utils/brokenFilterUtils.js";
5
5
  import { evaluateAlertTriggered } from "./utils/alertThresholdUtils.js";
6
6
  export * from "./types.js";
7
- export { DashboardItemWithKpiAlert, KpiAlertDialog, enrichBrokenAlertsInfo, evaluateAlertTriggered, };
7
+ export { DashboardItemWithKpiAlert, KpiAlertDialog, enrichBrokenAlertsInfo, evaluateAlertTriggered };
8
8
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/presentation/widget/kpi/ViewModeDashboardKpi/KpiAlerts/index.ts"],"names":[],"mappings":"AAAA,qCAAqC;AAErC,OAAO,EAAE,yBAAyB,EAAmC,MAAM,gCAAgC,CAAC;AAC5G,OAAO,cAAwC,MAAM,oCAAoC,CAAC;AAC1F,OAAO,EAAkC,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AACtG,OAAO,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AAExE,cAAc,YAAY,CAAC;AAC3B,OAAO,EACH,yBAAyB,EAEzB,cAAc,EAGd,sBAAsB,EACtB,sBAAsB,GACzB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/presentation/widget/kpi/ViewModeDashboardKpi/KpiAlerts/index.ts"],"names":[],"mappings":"AAAA,qCAAqC;AAErC,OAAO,EAAE,yBAAyB,EAAmC,MAAM,gCAAgC,CAAC;AAC5G,OAAO,cAAwC,MAAM,oCAAoC,CAAC;AAC1F,OAAO,EAAkC,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AACtG,OAAO,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AAExE,cAAc,YAAY,CAAC;AAE3B,OAAO,EAAE,yBAAyB,EAAE,cAAc,EAAE,sBAAsB,EAAE,sBAAsB,EAAE,CAAC"}
@@ -1,5 +1,5 @@
1
1
  export { DefaultDashboardKpi } from "./DefaultDashboardKpi.js";
2
2
  export { DefaultDashboardKpiComponentSetFactory } from "./DefaultDashboardKpiComponentSetFactory.js";
3
3
  export { DashboardKpi } from "./DashboardKpi.js";
4
- export { IDashboardKpiProps, CustomDashboardKpiComponent } from "./types.js";
4
+ export type { IDashboardKpiProps, CustomDashboardKpiComponent } from "./types.js";
5
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/presentation/widget/kpi/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,sCAAsC,EAAE,MAAM,6CAA6C,CAAC;AACrG,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,kBAAkB,EAAE,2BAA2B,EAAE,MAAM,YAAY,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/presentation/widget/kpi/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,sCAAsC,EAAE,MAAM,6CAA6C,CAAC;AACrG,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,YAAY,EAAE,kBAAkB,EAAE,2BAA2B,EAAE,MAAM,YAAY,CAAC"}
@@ -1,4 +1,4 @@
1
- // (C) 2020-2022 GoodData Corporation
1
+ // (C) 2020-2024 GoodData Corporation
2
2
  export { DefaultDashboardKpi } from "./DefaultDashboardKpi.js";
3
3
  export { DefaultDashboardKpiComponentSetFactory } from "./DefaultDashboardKpiComponentSetFactory.js";
4
4
  export { DashboardKpi } from "./DashboardKpi.js";
@@ -1,4 +1,4 @@
1
- export { CustomDashboardRichTextComponent, IDashboardRichTextProps } from "./types.js";
1
+ export type { CustomDashboardRichTextComponent, IDashboardRichTextProps } from "./types.js";
2
2
  export { DefaultDashboardRichText } from "./DefaultDashboardRichText.js";
3
3
  export { DefaultDashboardRichTextComponentSetFactory } from "./DefaultDashboardRichTextComponentSetFactory.js";
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/presentation/widget/richText/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gCAAgC,EAAE,uBAAuB,EAAE,MAAM,YAAY,CAAC;AACvF,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AACzE,OAAO,EAAE,2CAA2C,EAAE,MAAM,kDAAkD,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/presentation/widget/richText/index.ts"],"names":[],"mappings":"AAEA,YAAY,EAAE,gCAAgC,EAAE,uBAAuB,EAAE,MAAM,YAAY,CAAC;AAC5F,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AACzE,OAAO,EAAE,2CAA2C,EAAE,MAAM,kDAAkD,CAAC"}
@@ -1,7 +1,7 @@
1
- export { IDashboardInsightProps, CustomDashboardInsightComponent, IInsightBodyProps, CustomInsightBodyComponent, } from "./insight/types.js";
2
- export { CustomDashboardInsightMenuButtonComponent, CustomDashboardInsightMenuComponent, CustomDashboardInsightMenuTitleComponent, IDashboardInsightMenuButtonProps, IDashboardInsightMenuProps, IDashboardInsightMenuTitleProps, IInsightMenuItem, IInsightMenuItemButton, IInsightMenuItemSeparator, } from "./insightMenu/types.js";
3
- export { IDashboardKpiProps, CustomDashboardKpiComponent } from "./kpi/types.js";
4
- export { IDashboardWidgetProps, CustomDashboardWidgetComponent } from "./widget/types.js";
5
- export { CustomDashboardRichTextComponent, IDashboardRichTextProps } from "../widget/richText/types.js";
6
- export { CustomDashboardVisualizationSwitcherComponent, IDashboardVisualizationSwitcherProps, } from "../widget/visualizationSwitcher/types.js";
1
+ export type { IDashboardInsightProps, CustomDashboardInsightComponent, IInsightBodyProps, CustomInsightBodyComponent, } from "./insight/types.js";
2
+ export type { CustomDashboardInsightMenuButtonComponent, CustomDashboardInsightMenuComponent, CustomDashboardInsightMenuTitleComponent, IDashboardInsightMenuButtonProps, IDashboardInsightMenuProps, IDashboardInsightMenuTitleProps, IInsightMenuItem, IInsightMenuItemButton, IInsightMenuItemSeparator, } from "./insightMenu/types.js";
3
+ export type { IDashboardKpiProps, CustomDashboardKpiComponent } from "./kpi/types.js";
4
+ export type { IDashboardWidgetProps, CustomDashboardWidgetComponent } from "./widget/types.js";
5
+ export type { CustomDashboardRichTextComponent, IDashboardRichTextProps } from "../widget/richText/types.js";
6
+ export type { CustomDashboardVisualizationSwitcherComponent, IDashboardVisualizationSwitcherProps, } from "../widget/visualizationSwitcher/types.js";
7
7
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/presentation/widget/types.ts"],"names":[],"mappings":"AACA,OAAO,EACH,sBAAsB,EACtB,+BAA+B,EAC/B,iBAAiB,EACjB,0BAA0B,GAC7B,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACH,yCAAyC,EACzC,mCAAmC,EACnC,wCAAwC,EACxC,gCAAgC,EAChC,0BAA0B,EAC1B,+BAA+B,EAC/B,gBAAgB,EAChB,sBAAsB,EACtB,yBAAyB,GAC5B,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,kBAAkB,EAAE,2BAA2B,EAAE,MAAM,gBAAgB,CAAC;AACjF,OAAO,EAAE,qBAAqB,EAAE,8BAA8B,EAAE,MAAM,mBAAmB,CAAC;AAC1F,OAAO,EAAE,gCAAgC,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AACxG,OAAO,EACH,6CAA6C,EAC7C,oCAAoC,GACvC,MAAM,0CAA0C,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/presentation/widget/types.ts"],"names":[],"mappings":"AACA,YAAY,EACR,sBAAsB,EACtB,+BAA+B,EAC/B,iBAAiB,EACjB,0BAA0B,GAC7B,MAAM,oBAAoB,CAAC;AAC5B,YAAY,EACR,yCAAyC,EACzC,mCAAmC,EACnC,wCAAwC,EACxC,gCAAgC,EAChC,0BAA0B,EAC1B,+BAA+B,EAC/B,gBAAgB,EAChB,sBAAsB,EACtB,yBAAyB,GAC5B,MAAM,wBAAwB,CAAC;AAChC,YAAY,EAAE,kBAAkB,EAAE,2BAA2B,EAAE,MAAM,gBAAgB,CAAC;AACtF,YAAY,EAAE,qBAAqB,EAAE,8BAA8B,EAAE,MAAM,mBAAmB,CAAC;AAC/F,YAAY,EAAE,gCAAgC,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AAC7G,YAAY,EACR,6CAA6C,EAC7C,oCAAoC,GACvC,MAAM,0CAA0C,CAAC"}
@@ -1,4 +1,4 @@
1
- export { CustomDashboardVisualizationSwitcherComponent, IDashboardVisualizationSwitcherProps, } from "./types.js";
1
+ export type { CustomDashboardVisualizationSwitcherComponent, IDashboardVisualizationSwitcherProps, } from "./types.js";
2
2
  export { DefaultDashboardVisualizationSwitcher } from "./DefaultDashboardVisualizationSwitcher.js";
3
3
  export { DefaultDashboardVisualizationSwitcherComponentSetFactory } from "./DefaultDashboardVisualizationSwitcherComponentSetFactory.js";
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/presentation/widget/visualizationSwitcher/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACH,6CAA6C,EAC7C,oCAAoC,GACvC,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,qCAAqC,EAAE,MAAM,4CAA4C,CAAC;AACnG,OAAO,EAAE,wDAAwD,EAAE,MAAM,+DAA+D,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/presentation/widget/visualizationSwitcher/index.ts"],"names":[],"mappings":"AAEA,YAAY,EACR,6CAA6C,EAC7C,oCAAoC,GACvC,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,qCAAqC,EAAE,MAAM,4CAA4C,CAAC;AACnG,OAAO,EAAE,wDAAwD,EAAE,MAAM,+DAA+D,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"DefaultDashboardInsightWidget.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/widget/widget/InsightWidget/DefaultDashboardInsightWidget.tsx"],"names":[],"mappings":"AACA,OAAO,KAA+B,MAAM,OAAO,CAAC;AA0BpD,OAAO,EAAE,mCAAmC,EAAE,MAAM,YAAY,CAAC;AAEjE,eAAO,MAAM,6BAA6B,EAAE,KAAK,CAAC,EAAE,CAAC,IAAI,CAAC,mCAAmC,EAAE,SAAS,CAAC,CAIxG,CAAC"}
1
+ {"version":3,"file":"DefaultDashboardInsightWidget.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/widget/widget/InsightWidget/DefaultDashboardInsightWidget.tsx"],"names":[],"mappings":"AACA,OAAO,KAA+B,MAAM,OAAO,CAAC;AA8BpD,OAAO,EAAE,mCAAmC,EAAE,MAAM,YAAY,CAAC;AAGjE,eAAO,MAAM,6BAA6B,EAAE,KAAK,CAAC,EAAE,CAAC,IAAI,CAAC,mCAAmC,EAAE,SAAS,CAAC,CAIxG,CAAC"}
@@ -3,13 +3,13 @@ import React, { useMemo, useCallback } from "react";
3
3
  import cx from "classnames";
4
4
  import { useIntl } from "react-intl";
5
5
  import { widgetTitle, insightVisualizationType } from "@gooddata/sdk-model";
6
+ import { isInsightAlertingConfigurationEnabled, isInsightScheduledExportsConfigurationEnabled, isInsightSupportedForAlerts, isInsightSupportedForScheduledExports, } from "@gooddata/sdk-ui-ext";
6
7
  import { useDashboardSelector, selectSettings, isCustomWidget, useDashboardScheduledEmails, } from "../../../../model/index.js";
7
8
  import { DashboardItem, DashboardItemHeadline, DashboardItemVisualization, getVisTypeCssClass, } from "../../../presentationComponents/index.js";
8
9
  import { DashboardInsight } from "../../insight/index.js";
9
10
  import { useInsightExport } from "../../common/index.js";
10
11
  import { useDashboardComponentsContext } from "../../../dashboardContexts/index.js";
11
12
  import { InsightWidgetDescriptionTrigger } from "../../description/InsightWidgetDescriptionTrigger.js";
12
- import { isSupportedInsightVisType } from "../../insight/configuration/InsightAlertConfig/utils.js";
13
13
  import { useInsightMenu } from "./useInsightMenu.js";
14
14
  import { DashboardWidgetInsightGuard } from "./DashboardWidgetInsightGuard.js";
15
15
  export const DefaultDashboardInsightWidget = (props) => {
@@ -35,18 +35,49 @@ const DefaultDashboardInsightWidgetCore = ({ widget, insight, screen, onError, o
35
35
  const onScheduleManagementExport = useCallback(() => {
36
36
  onScheduleEmailingManagementOpen(widget);
37
37
  }, [onScheduleEmailingManagementOpen, widget]);
38
- const scheduleExportEnabled = !isCustomWidget(widget);
39
- const scheduleExportManagementEnabled = !isCustomWidget(widget);
40
- const isSupported = isSupportedInsightVisType(insight);
41
- const isAlertingVisible = isSupported && !isCustomWidget(widget) && settings.enableAlerting === true;
42
- const alertingDisabled = numberOfAvailableDestinations === 0;
38
+ const isStandardWidget = !isCustomWidget(widget);
39
+ const hasNoDestinations = numberOfAvailableDestinations === 0;
40
+ //NOTE: Check if widget has localIdentifier, if not that is probably widget from old dashboard
41
+ // and we should not allow to schedule export/alert because we need localIdentifier to identify the widget
42
+ const widgetHasNoLocalIdentifier = !widget.localIdentifier;
43
+ const isAlertingEnabled = settings.enableAlerting === true;
44
+ const isInsightTypeSupportedForAlerting = isInsightSupportedForAlerts(insight);
45
+ const isInsightEnabledForAlerting = isInsightAlertingConfigurationEnabled(insight);
46
+ const isAlertingVisible = isAlertingEnabled && isStandardWidget && isInsightTypeSupportedForAlerting;
47
+ const alertingDisabled = hasNoDestinations || !isInsightEnabledForAlerting || widgetHasNoLocalIdentifier;
48
+ let alertingDisabledReason = undefined;
49
+ if (widgetHasNoLocalIdentifier) {
50
+ alertingDisabledReason = "oldWidget";
51
+ }
52
+ else if (hasNoDestinations) {
53
+ alertingDisabledReason = "noDestinations";
54
+ }
55
+ else if (!isInsightEnabledForAlerting) {
56
+ alertingDisabledReason = "disabledOnInsight";
57
+ }
58
+ const isInsightTypeSupportedForScheduling = isInsightSupportedForScheduledExports(insight);
59
+ const isInsightEnabledForScheduling = isInsightScheduledExportsConfigurationEnabled(insight);
60
+ const scheduleExportDisabled = !isInsightTypeSupportedForScheduling ||
61
+ !isStandardWidget ||
62
+ !isInsightEnabledForScheduling ||
63
+ widgetHasNoLocalIdentifier;
64
+ const scheduleExportManagementDisabled = !isStandardWidget;
65
+ let scheduleExportDisabledReason = undefined;
66
+ if (widgetHasNoLocalIdentifier) {
67
+ scheduleExportDisabledReason = "oldWidget";
68
+ }
69
+ else if (!isStandardWidget) {
70
+ scheduleExportDisabledReason = "incompatibleWidget";
71
+ }
72
+ else if (!isInsightEnabledForScheduling || !isInsightTypeSupportedForScheduling) {
73
+ scheduleExportDisabledReason = "disabledOnInsight";
74
+ }
75
+ ///
43
76
  const { closeMenu, isMenuOpen, menuItems, openMenu } = useInsightMenu({
44
77
  insight,
45
78
  widget,
46
79
  exportCSVEnabled,
47
80
  exportXLSXEnabled,
48
- scheduleExportEnabled,
49
- scheduleExportManagementEnabled,
50
81
  onExportCSV,
51
82
  onExportXLSX,
52
83
  onScheduleExport,
@@ -55,6 +86,10 @@ const DefaultDashboardInsightWidgetCore = ({ widget, insight, screen, onError, o
55
86
  isScheduleExportManagementVisible: isScheduledManagementEmailingVisible,
56
87
  isAlertingVisible,
57
88
  alertingDisabled,
89
+ alertingDisabledReason,
90
+ scheduleExportDisabled,
91
+ scheduleExportManagementDisabled,
92
+ scheduleExportDisabledReason,
58
93
  });
59
94
  const toggleMenu = useCallback(() => {
60
95
  if (isMenuOpen) {
@@ -1 +1 @@
1
- {"version":3,"file":"DefaultDashboardInsightWidget.js","sourceRoot":"","sources":["../../../../../src/presentation/widget/widget/InsightWidget/DefaultDashboardInsightWidget.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,KAAK,EAAE,EAAE,O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B,6BAAK,SAAS,EAAC,iBAAiB;gBAC3B,QAAQ,EAAE,kBAAkB,CAAC,CAAC,CAAC,CAC5B,oBAAC,+BAA+B,IAC5B,OAAO,EAAE,OAAO,EAChB,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,GAChB,CACL,CAAC,CAAC,CAAC,IAAI;gBACR,oBAAC,0BAA0B,IACvB,OAAO,EAAE,OAAO,EAChB,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,UAAU,EAClB,OAAO,EAAE,UAAU,EACnB,KAAK,EAAE,SAAS,GAClB,CACA,CACT,EACD,kBAAkB,EAAE,GAAG,EAAE;gBACrB,IAAI,CAAC,UAAU,EAAE,CAAC;oBACd,OAAO,IAAI,CAAC;gBAChB,CAAC;gBAED,OAAO,CACH,oBAAC,oBAAoB,IACjB,OAAO,EAAE,OAAO,EAChB,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,UAAU,EAClB,OAAO,EAAE,SAAS,EAClB,KAAK,EAAE,SAAS,GAClB,CACL,CAAC;YACN,CAAC,IAEA,CAAC,EAAE,YAAY,EAAE,WAAW,EAAE,EAAE,EAAE,CAAC,CAChC,oBAAC,gBAAgB,IACb,YAAY,EAAE,YAAY,EAC1B,WAAW,EAAE,WAAW,EACxB,OAAO,EAAE,OAAO,EAChB,MAAM,EAAE,MAAM,EACd,aAAa,EAAE,aAAa,EAC5B,gBAAgB,EAAE,gBAAgB,EAClC,OAAO,EAAE,OAAO,EAChB,cAAc,EAAE,cAAc,EAC9B,gBAAgB,EAAE,gBAAgB,GACpC,CACL,CACwB,CACjB,CACnB,CAAC;AACN,CAAC,CAAC"}
1
+ {"version":3,"file":"DefaultDashboardInsightWidget.js","sourceRoot":"","sources":["../../../../../src/presentation/widget/widget/InsightWidget/DefaultDashboardInsightWidget.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AACpD,OAAO,E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AAM,EACd,MAAM,EAAE,MAAM,GAChB,CACL,CAAC,CAAC,CAAC,IAAI;gBACR,oBAAC,0BAA0B,IACvB,OAAO,EAAE,OAAO,EAChB,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,UAAU,EAClB,OAAO,EAAE,UAAU,EACnB,KAAK,EAAE,SAAS,GAClB,CACA,CACT,EACD,kBAAkB,EAAE,GAAG,EAAE;gBACrB,IAAI,CAAC,UAAU,EAAE,CAAC;oBACd,OAAO,IAAI,CAAC;gBAChB,CAAC;gBAED,OAAO,CACH,oBAAC,oBAAoB,IACjB,OAAO,EAAE,OAAO,EAChB,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,UAAU,EAClB,OAAO,EAAE,SAAS,EAClB,KAAK,EAAE,SAAS,GAClB,CACL,CAAC;YACN,CAAC,IAEA,CAAC,EAAE,YAAY,EAAE,WAAW,EAAE,EAAE,EAAE,CAAC,CAChC,oBAAC,gBAAgB,IACb,YAAY,EAAE,YAAY,EAC1B,WAAW,EAAE,WAAW,EACxB,OAAO,EAAE,OAAO,EAChB,MAAM,EAAE,MAAM,EACd,aAAa,EAAE,aAAa,EAC5B,gBAAgB,EAAE,gBAAgB,EAClC,OAAO,EAAE,OAAO,EAChB,cAAc,EAAE,cAAc,EAC9B,gBAAgB,EAAE,gBAAgB,GACpC,CACL,CACwB,CACjB,CACnB,CAAC;AACN,CAAC,CAAC"}
@@ -1,12 +1,10 @@
1
1
  import { IInsight, IInsightWidget } from "@gooddata/sdk-model";
2
- import { IInsightMenuItem } from "../../insightMenu/index.js";
2
+ import { IInsightMenuItem, AlertingDisabledReason, SchedulingDisabledReason } from "../../insightMenu/index.js";
3
3
  type UseInsightMenuConfig = {
4
4
  insight: IInsight;
5
5
  widget: IInsightWidget;
6
6
  exportCSVEnabled: boolean;
7
7
  exportXLSXEnabled: boolean;
8
- scheduleExportEnabled: boolean;
9
- scheduleExportManagementEnabled: boolean;
10
8
  onExportCSV: () => void;
11
9
  onExportXLSX: () => void;
12
10
  onScheduleExport: () => void;
@@ -15,6 +13,10 @@ type UseInsightMenuConfig = {
15
13
  isScheduleExportManagementVisible: boolean;
16
14
  isAlertingVisible: boolean;
17
15
  alertingDisabled: boolean;
16
+ scheduleExportDisabled: boolean;
17
+ scheduleExportManagementDisabled: boolean;
18
+ scheduleExportDisabledReason?: SchedulingDisabledReason;
19
+ alertingDisabledReason?: AlertingDisabledReason;
18
20
  };
19
21
  export declare const useInsightMenu: (config: UseInsightMenuConfig) => {
20
22
  menuItems: IInsightMenuItem[];
@@ -1 +1 @@
1
- {"version":3,"file":"useInsightMenu.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/widget/widget/InsightWidget/useInsightMenu.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAM/D,OAAO,EAA8B,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAE1F,KAAK,oBAAoB,GAAG;IACxB,OAAO,EAAE,QAAQ,CAAC;IAClB,MAAM,EAAE,cAAc,CAAC;IACvB,gBAAgB,EAAE,OAAO,CAAC;IAC1B,iBAAiB,EAAE,OAAO,CAAC;IAC3B,qBAAqB,EAAE,OAAO,CAAC;IAC/B,+BAA+B,EAAE,OAAO,CAAC;IACzC,WAAW,EAAE,MAAM,IAAI,CAAC;IACxB,YAAY,EAAE,MAAM,IAAI,CAAC;IACzB,gBAAgB,EAAE,MAAM,IAAI,CAAC;IAC7B,0BAA0B,EAAE,MAAM,IAAI,CAAC;IACvC,uBAAuB,EAAE,OAAO,CAAC;IACjC,iCAAiC,EAAE,OAAO,CAAC;IAC3C,iBAAiB,EAAE,OAAO,CAAC;IAC3B,gBAAgB,EAAE,OAAO,CAAC;CAC7B,CAAC;AAEF,eAAO,MAAM,cAAc,WACf,oBAAoB;eAChB,gBAAgB,EAAE;gBAAc,OAAO;cAAY,MAAM,IAAI;eAAa,MAAM,IAAI;CAiBnG,CAAC"}
1
+ {"version":3,"file":"useInsightMenu.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/widget/widget/InsightWidget/useInsightMenu.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAU/D,OAAO,EAEH,gBAAgB,EAChB,sBAAsB,EACtB,wBAAwB,EAC3B,MAAM,4BAA4B,CAAC;AAEpC,KAAK,oBAAoB,GAAG;IACxB,OAAO,EAAE,QAAQ,CAAC;IAClB,MAAM,EAAE,cAAc,CAAC;IACvB,gBAAgB,EAAE,OAAO,CAAC;IAC1B,iBAAiB,EAAE,OAAO,CAAC;IAC3B,WAAW,EAAE,MAAM,IAAI,CAAC;IACxB,YAAY,EAAE,MAAM,IAAI,CAAC;IACzB,gBAAgB,EAAE,MAAM,IAAI,CAAC;IAC7B,0BAA0B,EAAE,MAAM,IAAI,CAAC;IACvC,uBAAuB,EAAE,OAAO,CAAC;IACjC,iCAAiC,EAAE,OAAO,CAAC;IAC3C,iBAAiB,EAAE,OAAO,CAAC;IAC3B,gBAAgB,EAAE,OAAO,CAAC;IAC1B,sBAAsB,EAAE,OAAO,CAAC;IAChC,gCAAgC,EAAE,OAAO,CAAC;IAC1C,4BAA4B,CAAC,EAAE,wBAAwB,CAAC;IACxD,sBAAsB,CAAC,EAAE,sBAAsB,CAAC;CACnD,CAAC;AAEF,eAAO,MAAM,cAAc,WACf,oBAAoB;eAChB,gBAAgB,EAAE;gBAAc,OAAO;cAAY,MAAM,IAAI;eAAa,MAAM,IAAI;CAiBnG,CAAC"}
@@ -1,10 +1,10 @@
1
1
  // (C) 2021-2024 GoodData Corporation
2
2
  import { useCallback, useMemo, useState } from "react";
3
3
  import { useIntl } from "react-intl";
4
- import { selectExecutionResultByRef, useDashboardSelector } from "../../../../model/index.js";
4
+ import { selectCanCreateAutomation, selectExecutionResultByRef, useDashboardSelector, } from "../../../../model/index.js";
5
5
  import { isDataError } from "../../../../_staging/errors/errorPredicates.js";
6
6
  import { useDashboardCustomizationsContext } from "../../../dashboardContexts/index.js";
7
- import { getDefaultInsightMenuItems } from "../../insightMenu/index.js";
7
+ import { getDefaultInsightMenuItems, } from "../../insightMenu/index.js";
8
8
  export const useInsightMenu = (config) => {
9
9
  const { insight, widget } = config;
10
10
  const [isMenuOpen, setIsMenuOpen] = useState(false);
@@ -20,25 +20,17 @@ export const useInsightMenu = (config) => {
20
20
  return { menuItems, isMenuOpen, openMenu, closeMenu };
21
21
  };
22
22
  function useDefaultMenuItems(config, setIsMenuOpen) {
23
- const { exportCSVEnabled, exportXLSXEnabled, scheduleExportEnabled, scheduleExportManagementEnabled, onExportCSV, onExportXLSX, onScheduleExport, onScheduleManagementExport, isScheduleExportVisible, isScheduleExportManagementVisible, isAlertingVisible, alertingDisabled, widget, } = config;
23
+ const { exportCSVEnabled, exportXLSXEnabled, onExportCSV, onExportXLSX, onScheduleExport, onScheduleManagementExport, isScheduleExportVisible, isScheduleExportManagementVisible, isAlertingVisible, alertingDisabled, scheduleExportDisabled, scheduleExportManagementDisabled, scheduleExportDisabledReason, alertingDisabledReason, widget, } = config;
24
24
  const intl = useIntl();
25
25
  const execution = useDashboardSelector(selectExecutionResultByRef(widget.ref));
26
- //NOTE: Check if widget has localIdentifier, if not that is probably widget from old dashboard
27
- // and we should not allow to schedule export because we need localIdentifier to create schedule
28
- const noLocalIdentifier = !widget.localIdentifier;
29
- const scheduleExportDisabled = !scheduleExportEnabled || noLocalIdentifier;
30
- const scheduleExportManagementDisabled = !scheduleExportManagementEnabled;
26
+ const canCreateAutomation = useDashboardSelector(selectCanCreateAutomation);
31
27
  return useMemo(() => {
32
28
  return getDefaultInsightMenuItems(intl, {
33
29
  exportCSVDisabled: !exportCSVEnabled,
34
30
  exportXLSXDisabled: !exportXLSXEnabled,
35
31
  scheduleExportManagementDisabled,
36
32
  scheduleExportDisabled,
37
- scheduleExportDisabledReason: scheduleExportDisabled
38
- ? noLocalIdentifier
39
- ? "oldWidget"
40
- : "incompatibleWidget"
41
- : undefined,
33
+ scheduleExportDisabledReason,
42
34
  onExportCSV: () => {
43
35
  setIsMenuOpen(false);
44
36
  onExportCSV();
@@ -60,6 +52,8 @@ function useDefaultMenuItems(config, setIsMenuOpen) {
60
52
  isDataError: isDataError(execution?.error),
61
53
  isAlertingVisible,
62
54
  alertingDisabled,
55
+ alertingDisabledReason,
56
+ canCreateAutomation,
63
57
  });
64
58
  }, [
65
59
  intl,
@@ -67,7 +61,6 @@ function useDefaultMenuItems(config, setIsMenuOpen) {
67
61
  exportXLSXEnabled,
68
62
  scheduleExportManagementDisabled,
69
63
  scheduleExportDisabled,
70
- noLocalIdentifier,
71
64
  isScheduleExportVisible,
72
65
  isScheduleExportManagementVisible,
73
66
  execution?.error,
@@ -78,6 +71,9 @@ function useDefaultMenuItems(config, setIsMenuOpen) {
78
71
  onExportXLSX,
79
72
  onScheduleExport,
80
73
  onScheduleManagementExport,
74
+ scheduleExportDisabledReason,
75
+ alertingDisabledReason,
76
+ canCreateAutomation,
81
77
  ]);
82
78
  }
83
79
  //# sourceMappingURL=useInsightMenu.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"useInsightMenu.js","sourceRoot":"","sources":["../../../../../src/presentation/widget/widget/InsightWidget/useInsightMenu.ts"],"names":[],"mappings":"AAAA,qCAAqC;AAErC,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,QAAQ,EAA4B,MAAM,OAAO,CAAC;AACjF,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAGrC,OAAO,EAAE,0BAA0B,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAE9F,OAAO,EAAE,WAAW,EAAE,MAAM,gDAAgD,CAAC;AAC7E,OAAO,EAAE,iCAAiC,EAAE,MAAM,qCAAqC,CAAC;AACxF,OAAO,EAAE,0BAA0B,EAAoB,MAAM,4BAA4B,CAAC;AAmB1F,MAAM,CAAC,MAAM,cAAc,GAAG,CAC1B,MAA4B,EACuE,EAAE;IACrG,MAAM,EAAE,OAAO,EAA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iB;QACjB,gBAAgB;QAChB,aAAa;QACb,WAAW;QACX,YAAY;QACZ,gBAAgB;QAChB,0BAA0B;KAC7B,CAAC,CAAC;AACP,CAAC"}
1
+ {"version":3,"file":"useInsightMenu.js","sourceRoot":"","sources":["../../../../../src/presentation/widget/widget/InsightWidget/useInsightMenu.ts"],"names":[],"mappings":"AAAA,qCAAqC;AAErC,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,QAAQ,EAA4B,MAAM,OAAO,CAAC;AACjF,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAGrC,OAAO,EACH,yBAAyB,EACzB,0BAA0B,EAC1B,oBAAoB,GACvB,MAAM,4BAA4B,CAAC;AAEpC,OAAO,EAAE,WAAW,EAAE,MAAM,gDAAgD,CAAC;AAC7E,OAAO,EAAE,iCAAiC,EAAE,MAAM,qCAAqC,CAAC;AACxF,OAAO,EACH,0BAA0B,GAI7B,MAAM,4BAA4B,CAAC;AAqBpC,MAAM,CAAC,MAAM,cAAc,GAAG,CAC1B,MAA4B,EACuE,EAAE;IACrG,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,MAAM,CAAC;IAEnC,MAAM,CAAC,UAAU,EAAE,aAAa,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IACpD,MAAM,SAAS,GAAG,WAAW,CAAC,GAAG,EAAE,CAAC,aAAa,CAAC,KAAK,CAAC,EAAE,EAAE,CAAC,CAAC;IAC9D,MAAM,QAAQ,GAAG,WAAW,CAAC,GAAG,EAAE,CAAC,aAAa,CAAC,IAAI,CAAC,EAAE,EAAE,CAAC,CAAC;IAE5D,MAAM,EAAE,wBAAwB,EAAE,GAAG,iCAAiC,EAAE,CAAC;IACzE,MAAM,gBAAgB,GAAG,mBAAmB,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC;IAEpE,MAAM,SAAS,GAAG,OAAO,CAAqB,GAAG,EAAE;QAC/C,OAAO,wBAAwB;YAC3B,CAAC,CAAC,wBA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C,KAAK,CAAC,CAAC;gBACrB,gBAAgB,EAAE,CAAC;YACvB,CAAC;YACD,0BAA0B,EAAE,GAAG,EAAE;gBAC7B,aAAa,CAAC,KAAK,CAAC,CAAC;gBACrB,0BAA0B,EAAE,CAAC;YACjC,CAAC;YACD,uBAAuB;YACvB,iCAAiC;YACjC,WAAW,EAAE,WAAW,CAAC,SAAS,EAAE,KAAK,CAAC;YAC1C,iBAAiB;YACjB,gBAAgB;YAChB,sBAAsB;YACtB,mBAAmB;SACtB,CAAC,CAAC;IACP,CAAC,EAAE;QACC,IAAI;QACJ,gBAAgB;QAChB,iBAAiB;QACjB,gCAAgC;QAChC,sBAAsB;QACtB,uBAAuB;QACvB,iCAAiC;QACjC,SAAS,EAAE,KAAK;QAChB,iBAAiB;QACjB,gBAAgB;QAChB,aAAa;QACb,WAAW;QACX,YAAY;QACZ,gBAAgB;QAChB,0BAA0B;QAC1B,4BAA4B;QAC5B,sBAAsB;QACtB,mBAAmB;KACtB,CAAC,CAAC;AACP,CAAC"}
@@ -1,4 +1,4 @@
1
- export { IDashboardWidgetProps, CustomDashboardWidgetComponent } from "./types.js";
1
+ export type { IDashboardWidgetProps, CustomDashboardWidgetComponent } from "./types.js";
2
2
  export { DefaultDashboardWidget } from "./DefaultDashboardWidget.js";
3
3
  export { DashboardWidget } from "./DashboardWidget.js";
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/presentation/widget/widget/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,qBAAqB,EAAE,8BAA8B,EAAE,MAAM,YAAY,CAAC;AACnF,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AACrE,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/presentation/widget/widget/index.ts"],"names":[],"mappings":"AACA,YAAY,EAAE,qBAAqB,EAAE,8BAA8B,EAAE,MAAM,YAAY,CAAC;AACxF,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AACrE,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC"}
@@ -1,4 +1,4 @@
1
1
  export { DefaultWidgetDeleteDialog, useWidgetDeleteDialogProps } from "./DefaultWidgetDeleteDialog.js";
2
- export { CustomWidgetDeleteDialogComponent, IWidgetDeleteDialogProps } from "./types.js";
2
+ export type { CustomWidgetDeleteDialogComponent, IWidgetDeleteDialogProps } from "./types.js";
3
3
  export { WidgetDeleteDialog } from "./WidgetDeleteDialog.js";
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/presentation/widgetDeleteDialog/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,yBAAyB,EAAE,0BAA0B,EAAE,MAAM,gCAAgC,CAAC;AACvG,OAAO,EAAE,iCAAiC,EAAE,wBAAwB,EAAE,MAAM,YAAY,CAAC;AACzF,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/presentation/widgetDeleteDialog/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,yBAAyB,EAAE,0BAA0B,EAAE,MAAM,gCAAgC,CAAC;AACvG,YAAY,EAAE,iCAAiC,EAAE,wBAAwB,EAAE,MAAM,YAAY,CAAC;AAC9F,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC"}