@gooddata/sdk-ui-dashboard 10.19.0-alpha.9 → 10.19.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (315) 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/_staging/automation/index.d.ts +1 -0
  6. package/esm/_staging/automation/index.d.ts.map +1 -1
  7. package/esm/_staging/automation/index.js +14 -1
  8. package/esm/_staging/automation/index.js.map +1 -1
  9. package/esm/_staging/dashboard/flexibleLayout/builder/interfaces.d.ts +81 -0
  10. package/esm/_staging/dashboard/flexibleLayout/builder/interfaces.d.ts.map +1 -1
  11. package/esm/_staging/dashboard/flexibleLayout/builder/item.d.ts +4 -3
  12. package/esm/_staging/dashboard/flexibleLayout/builder/item.d.ts.map +1 -1
  13. package/esm/_staging/dashboard/flexibleLayout/builder/item.js +12 -4
  14. package/esm/_staging/dashboard/flexibleLayout/builder/item.js.map +1 -1
  15. package/esm/_staging/dashboard/flexibleLayout/builder/layout.d.ts +14 -10
  16. package/esm/_staging/dashboard/flexibleLayout/builder/layout.d.ts.map +1 -1
  17. package/esm/_staging/dashboard/flexibleLayout/builder/layout.js +160 -50
  18. package/esm/_staging/dashboard/flexibleLayout/builder/layout.js.map +1 -1
  19. package/esm/_staging/dashboard/flexibleLayout/builder/section.d.ts +0 -1
  20. package/esm/_staging/dashboard/flexibleLayout/builder/section.d.ts.map +1 -1
  21. package/esm/_staging/dashboard/flexibleLayout/builder/section.js +1 -5
  22. package/esm/_staging/dashboard/flexibleLayout/builder/section.js.map +1 -1
  23. package/esm/_staging/dashboard/flexibleLayout/facade/interfaces.d.ts +2 -1
  24. package/esm/_staging/dashboard/flexibleLayout/facade/interfaces.d.ts.map +1 -1
  25. package/esm/_staging/dashboard/flexibleLayout/facade/layout.d.ts +2 -1
  26. package/esm/_staging/dashboard/flexibleLayout/facade/layout.d.ts.map +1 -1
  27. package/esm/_staging/dashboard/flexibleLayout/facade/layout.js +18 -2
  28. package/esm/_staging/dashboard/flexibleLayout/facade/layout.js.map +1 -1
  29. package/esm/_staging/layout/coordinates.d.ts +1 -1
  30. package/esm/_staging/layout/coordinates.d.ts.map +1 -1
  31. package/esm/_staging/layout/coordinates.js +4 -5
  32. package/esm/_staging/layout/coordinates.js.map +1 -1
  33. package/esm/_staging/layout/sizing.d.ts +16 -7
  34. package/esm/_staging/layout/sizing.d.ts.map +1 -1
  35. package/esm/_staging/layout/sizing.js +108 -57
  36. package/esm/_staging/layout/sizing.js.map +1 -1
  37. package/esm/model/commandHandlers/layout/addLayoutSectionHandler.d.ts.map +1 -1
  38. package/esm/model/commandHandlers/layout/addLayoutSectionHandler.js +6 -2
  39. package/esm/model/commandHandlers/layout/addLayoutSectionHandler.js.map +1 -1
  40. package/esm/model/commandHandlers/layout/addSectionItemsHandler.d.ts.map +1 -1
  41. package/esm/model/commandHandlers/layout/addSectionItemsHandler.js +3 -1
  42. package/esm/model/commandHandlers/layout/addSectionItemsHandler.js.map +1 -1
  43. package/esm/model/commandHandlers/layout/containerHeightSanitization.d.ts +10 -0
  44. package/esm/model/commandHandlers/layout/containerHeightSanitization.d.ts.map +1 -0
  45. package/esm/model/commandHandlers/layout/containerHeightSanitization.js +82 -0
  46. package/esm/model/commandHandlers/layout/containerHeightSanitization.js.map +1 -0
  47. package/esm/model/commandHandlers/layout/moveLayoutSectionHandler.d.ts.map +1 -1
  48. package/esm/model/commandHandlers/layout/moveLayoutSectionHandler.js +5 -2
  49. package/esm/model/commandHandlers/layout/moveLayoutSectionHandler.js.map +1 -1
  50. package/esm/model/commandHandlers/layout/moveSectionItemHandler.d.ts.map +1 -1
  51. package/esm/model/commandHandlers/layout/moveSectionItemHandler.js +5 -2
  52. package/esm/model/commandHandlers/layout/moveSectionItemHandler.js.map +1 -1
  53. package/esm/model/commandHandlers/layout/moveSectionItemToNewSectionHandler.d.ts.map +1 -1
  54. package/esm/model/commandHandlers/layout/moveSectionItemToNewSectionHandler.js +6 -3
  55. package/esm/model/commandHandlers/layout/moveSectionItemToNewSectionHandler.js.map +1 -1
  56. package/esm/model/commandHandlers/layout/removeLayoutSectionHandler.d.ts.map +1 -1
  57. package/esm/model/commandHandlers/layout/removeLayoutSectionHandler.js +4 -2
  58. package/esm/model/commandHandlers/layout/removeLayoutSectionHandler.js.map +1 -1
  59. package/esm/model/commandHandlers/layout/removeSectionItemHandler.d.ts.map +1 -1
  60. package/esm/model/commandHandlers/layout/removeSectionItemHandler.js +4 -1
  61. package/esm/model/commandHandlers/layout/removeSectionItemHandler.js.map +1 -1
  62. package/esm/model/commandHandlers/layout/replaceSectionItemHandler.d.ts.map +1 -1
  63. package/esm/model/commandHandlers/layout/replaceSectionItemHandler.js +3 -1
  64. package/esm/model/commandHandlers/layout/replaceSectionItemHandler.js.map +1 -1
  65. package/esm/model/commandHandlers/layout/resizeHeightHandler.d.ts.map +1 -1
  66. package/esm/model/commandHandlers/layout/resizeHeightHandler.js +15 -10
  67. package/esm/model/commandHandlers/layout/resizeHeightHandler.js.map +1 -1
  68. package/esm/model/commandHandlers/layout/resizeWidthHandler.d.ts.map +1 -1
  69. package/esm/model/commandHandlers/layout/resizeWidthHandler.js +10 -6
  70. package/esm/model/commandHandlers/layout/resizeWidthHandler.js.map +1 -1
  71. package/esm/model/commandHandlers/scheduledEmail/initializeAutomationsHandler.d.ts.map +1 -1
  72. package/esm/model/commandHandlers/scheduledEmail/initializeAutomationsHandler.js +60 -15
  73. package/esm/model/commandHandlers/scheduledEmail/initializeAutomationsHandler.js.map +1 -1
  74. package/esm/model/events/index.d.ts +4 -4
  75. package/esm/model/events/index.d.ts.map +1 -1
  76. package/esm/model/events/index.js +1 -1
  77. package/esm/model/events/index.js.map +1 -1
  78. package/esm/model/index.d.ts +1 -1
  79. package/esm/model/index.d.ts.map +1 -1
  80. package/esm/model/index.js +1 -1
  81. package/esm/model/index.js.map +1 -1
  82. package/esm/model/react/useDashboardCommand.d.ts +1 -1
  83. package/esm/model/react/useDashboardCommand.d.ts.map +1 -1
  84. package/esm/model/react/useDashboardCommandProcessing.d.ts +4 -0
  85. package/esm/model/react/useDashboardCommandProcessing.d.ts.map +1 -1
  86. package/esm/model/store/config/configSelectors.d.ts +7 -3
  87. package/esm/model/store/config/configSelectors.d.ts.map +1 -1
  88. package/esm/model/store/config/configSelectors.js +10 -4
  89. package/esm/model/store/config/configSelectors.js.map +1 -1
  90. package/esm/model/store/index.d.ts +1 -1
  91. package/esm/model/store/index.d.ts.map +1 -1
  92. package/esm/model/store/index.js +1 -1
  93. package/esm/model/store/index.js.map +1 -1
  94. package/esm/model/store/layout/index.d.ts +6 -0
  95. package/esm/model/store/layout/index.d.ts.map +1 -1
  96. package/esm/model/store/layout/layoutReducers.d.ts +5 -1
  97. package/esm/model/store/layout/layoutReducers.d.ts.map +1 -1
  98. package/esm/model/store/layout/layoutReducers.js +19 -0
  99. package/esm/model/store/layout/layoutReducers.js.map +1 -1
  100. package/esm/model/store/layout/layoutSelectors.d.ts.map +1 -1
  101. package/esm/model/store/layout/layoutSelectors.js +29 -15
  102. package/esm/model/store/layout/layoutSelectors.js.map +1 -1
  103. package/esm/model/types/commonTypes.d.ts +33 -4
  104. package/esm/model/types/commonTypes.d.ts.map +1 -1
  105. package/esm/model/types/commonTypes.js.map +1 -1
  106. package/esm/model/types/layoutTypes.d.ts +10 -0
  107. package/esm/model/types/layoutTypes.d.ts.map +1 -1
  108. package/esm/model/types/layoutTypes.js +1 -1
  109. package/esm/model/types/layoutTypes.js.map +1 -1
  110. package/esm/plugins/customizationApis/fluidLayoutCustomizer.d.ts +5 -2
  111. package/esm/plugins/customizationApis/fluidLayoutCustomizer.d.ts.map +1 -1
  112. package/esm/plugins/customizationApis/fluidLayoutCustomizer.js +40 -19
  113. package/esm/plugins/customizationApis/fluidLayoutCustomizer.js.map +1 -1
  114. package/esm/plugins/customizer.d.ts +34 -1
  115. package/esm/plugins/customizer.d.ts.map +1 -1
  116. package/esm/presentation/dragAndDrop/types.d.ts +1 -0
  117. package/esm/presentation/dragAndDrop/types.d.ts.map +1 -1
  118. package/esm/presentation/filterBar/attributeFilter/DefaultDashboardAttributeFilter.d.ts +1 -1
  119. package/esm/presentation/filterBar/attributeFilter/DefaultDashboardAttributeFilter.d.ts.map +1 -1
  120. package/esm/presentation/filterBar/attributeFilter/DefaultDashboardAttributeFilter.js +15 -3
  121. package/esm/presentation/filterBar/attributeFilter/DefaultDashboardAttributeFilter.js.map +1 -1
  122. package/esm/presentation/flexibleLayout/DashboardLayoutWidget.d.ts +1 -1
  123. package/esm/presentation/flexibleLayout/DashboardLayoutWidget.d.ts.map +1 -1
  124. package/esm/presentation/flexibleLayout/DashboardLayoutWidget.js +12 -6
  125. package/esm/presentation/flexibleLayout/DashboardLayoutWidget.js.map +1 -1
  126. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayout.d.ts.map +1 -1
  127. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayout.js +5 -4
  128. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayout.js.map +1 -1
  129. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutEditSectionHeaderRenderer.d.ts.map +1 -1
  130. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutEditSectionHeaderRenderer.js +5 -2
  131. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutEditSectionHeaderRenderer.js.map +1 -1
  132. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutGridRow.d.ts +1 -0
  133. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutGridRow.d.ts.map +1 -1
  134. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutGridRow.js +3 -3
  135. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutGridRow.js.map +1 -1
  136. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutGridRowEdit.d.ts.map +1 -1
  137. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutGridRowEdit.js +5 -3
  138. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutGridRowEdit.js.map +1 -1
  139. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutItem.d.ts +1 -0
  140. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutItem.d.ts.map +1 -1
  141. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutItem.js +3 -2
  142. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutItem.js.map +1 -1
  143. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutItemRenderer.js +3 -3
  144. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutItemRenderer.js.map +1 -1
  145. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutItemViewRenderer.js +2 -2
  146. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutItemViewRenderer.js.map +1 -1
  147. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutSection.d.ts.map +1 -1
  148. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutSection.js +5 -2
  149. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutSection.js.map +1 -1
  150. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutSectionHeaderRenderer.d.ts.map +1 -1
  151. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutSectionHeaderRenderer.js +5 -2
  152. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutSectionHeaderRenderer.js.map +1 -1
  153. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutViewSectionHeaderRenderer.js +2 -2
  154. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutViewSectionHeaderRenderer.js.map +1 -1
  155. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/EditableHeader/SectionHeaderEditable.js +2 -2
  156. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/EditableHeader/SectionHeaderEditable.js.map +1 -1
  157. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/GridLayoutElement.d.ts +1 -1
  158. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/GridLayoutElement.d.ts.map +1 -1
  159. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/GridLayoutElement.js +8 -7
  160. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/GridLayoutElement.js.map +1 -1
  161. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/interfaces.d.ts +8 -0
  162. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/interfaces.d.ts.map +1 -1
  163. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/useItemWidthValidation.d.ts +7 -0
  164. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/useItemWidthValidation.d.ts.map +1 -0
  165. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/useItemWidthValidation.js +18 -0
  166. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/useItemWidthValidation.js.map +1 -0
  167. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/utils/sizing.d.ts +0 -9
  168. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/utils/sizing.d.ts.map +1 -1
  169. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/utils/sizing.js +2 -33
  170. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/utils/sizing.js.map +1 -1
  171. package/esm/presentation/flexibleLayout/dragAndDrop/DragLayerPreview/WidthResizerDragPreview.d.ts +0 -12
  172. package/esm/presentation/flexibleLayout/dragAndDrop/DragLayerPreview/WidthResizerDragPreview.d.ts.map +1 -1
  173. package/esm/presentation/flexibleLayout/dragAndDrop/DragLayerPreview/WidthResizerDragPreview.js +2 -4
  174. package/esm/presentation/flexibleLayout/dragAndDrop/DragLayerPreview/WidthResizerDragPreview.js.map +1 -1
  175. package/esm/presentation/flexibleLayout/dragAndDrop/Resize/HeightResizerHotspot.d.ts +4 -3
  176. package/esm/presentation/flexibleLayout/dragAndDrop/Resize/HeightResizerHotspot.d.ts.map +1 -1
  177. package/esm/presentation/flexibleLayout/dragAndDrop/Resize/HeightResizerHotspot.js +9 -7
  178. package/esm/presentation/flexibleLayout/dragAndDrop/Resize/HeightResizerHotspot.js.map +1 -1
  179. package/esm/presentation/flexibleLayout/dragAndDrop/Resize/WidthResizerHotspot.d.ts +2 -1
  180. package/esm/presentation/flexibleLayout/dragAndDrop/Resize/WidthResizerHotspot.d.ts.map +1 -1
  181. package/esm/presentation/flexibleLayout/dragAndDrop/Resize/WidthResizerHotspot.js +7 -7
  182. package/esm/presentation/flexibleLayout/dragAndDrop/Resize/WidthResizerHotspot.js.map +1 -1
  183. package/esm/presentation/flexibleLayout/dragAndDrop/draggableWidget/EmptyNestedLayoutDropZone.d.ts +3 -1
  184. package/esm/presentation/flexibleLayout/dragAndDrop/draggableWidget/EmptyNestedLayoutDropZone.d.ts.map +1 -1
  185. package/esm/presentation/flexibleLayout/dragAndDrop/draggableWidget/EmptyNestedLayoutDropZone.js +13 -5
  186. package/esm/presentation/flexibleLayout/dragAndDrop/draggableWidget/EmptyNestedLayoutDropZone.js.map +1 -1
  187. package/esm/presentation/flexibleLayout/dragAndDrop/draggableWidget/RowEndHotspot.d.ts +1 -0
  188. package/esm/presentation/flexibleLayout/dragAndDrop/draggableWidget/RowEndHotspot.d.ts.map +1 -1
  189. package/esm/presentation/flexibleLayout/dragAndDrop/draggableWidget/RowEndHotspot.js +2 -1
  190. package/esm/presentation/flexibleLayout/dragAndDrop/draggableWidget/RowEndHotspot.js.map +1 -1
  191. package/esm/presentation/flexibleLayout/dragAndDrop/draggableWidget/WidgetDropZone.d.ts.map +1 -1
  192. package/esm/presentation/flexibleLayout/dragAndDrop/draggableWidget/WidgetDropZone.js +4 -3
  193. package/esm/presentation/flexibleLayout/dragAndDrop/draggableWidget/WidgetDropZone.js.map +1 -1
  194. package/esm/presentation/flexibleLayout/dragAndDrop/draggableWidget/WidgetDropZoneBox.d.ts +1 -0
  195. package/esm/presentation/flexibleLayout/dragAndDrop/draggableWidget/WidgetDropZoneBox.d.ts.map +1 -1
  196. package/esm/presentation/flexibleLayout/dragAndDrop/draggableWidget/WidgetDropZoneBox.js +17 -4
  197. package/esm/presentation/flexibleLayout/dragAndDrop/draggableWidget/WidgetDropZoneBox.js.map +1 -1
  198. package/esm/presentation/layout/DashboardLayoutWidget.js +2 -2
  199. package/esm/presentation/layout/DashboardLayoutWidget.js.map +1 -1
  200. package/esm/presentation/layout/DefaultDashboardLayoutRenderer/DashboardLayoutGridRowEdit.d.ts.map +1 -1
  201. package/esm/presentation/layout/DefaultDashboardLayoutRenderer/DashboardLayoutGridRowEdit.js +4 -2
  202. package/esm/presentation/layout/DefaultDashboardLayoutRenderer/DashboardLayoutGridRowEdit.js.map +1 -1
  203. package/esm/presentation/layout/DefaultDashboardLayoutRenderer/utils/sizing.d.ts +0 -8
  204. package/esm/presentation/layout/DefaultDashboardLayoutRenderer/utils/sizing.d.ts.map +1 -1
  205. package/esm/presentation/layout/DefaultDashboardLayoutRenderer/utils/sizing.js +2 -2
  206. package/esm/presentation/layout/DefaultDashboardLayoutRenderer/utils/sizing.js.map +1 -1
  207. package/esm/presentation/layout/dragAndDrop/Resize/HeightResizerHotspot.d.ts +4 -3
  208. package/esm/presentation/layout/dragAndDrop/Resize/HeightResizerHotspot.d.ts.map +1 -1
  209. package/esm/presentation/layout/dragAndDrop/Resize/HeightResizerHotspot.js +9 -7
  210. package/esm/presentation/layout/dragAndDrop/Resize/HeightResizerHotspot.js.map +1 -1
  211. package/esm/presentation/layout/dragAndDrop/Resize/WidthResizerHotspot.d.ts.map +1 -1
  212. package/esm/presentation/layout/dragAndDrop/Resize/WidthResizerHotspot.js +3 -2
  213. package/esm/presentation/layout/dragAndDrop/Resize/WidthResizerHotspot.js.map +1 -1
  214. package/esm/presentation/localization/bundles/de-DE.json +5 -1
  215. package/esm/presentation/localization/bundles/en-AU.json +5 -1
  216. package/esm/presentation/localization/bundles/en-GB.json +5 -1
  217. package/esm/presentation/localization/bundles/en-US.json +20 -0
  218. package/esm/presentation/localization/bundles/es-419.json +5 -1
  219. package/esm/presentation/localization/bundles/es-ES.json +5 -1
  220. package/esm/presentation/localization/bundles/fi-FI.json +5 -1
  221. package/esm/presentation/localization/bundles/fr-CA.json +5 -1
  222. package/esm/presentation/localization/bundles/fr-FR.json +5 -1
  223. package/esm/presentation/localization/bundles/it-IT.json +5 -1
  224. package/esm/presentation/localization/bundles/ja-JP.json +5 -1
  225. package/esm/presentation/localization/bundles/nl-NL.json +5 -1
  226. package/esm/presentation/localization/bundles/pt-BR.json +5 -1
  227. package/esm/presentation/localization/bundles/pt-PT.json +5 -1
  228. package/esm/presentation/localization/bundles/zh-HK.json +5 -1
  229. package/esm/presentation/localization/bundles/zh-Hans.json +5 -1
  230. package/esm/presentation/localization/bundles/zh-Hant.json +5 -1
  231. package/esm/presentation/presentationComponents/DashboardItems/DashboardItem.d.ts +1 -0
  232. package/esm/presentation/presentationComponents/DashboardItems/DashboardItem.d.ts.map +1 -1
  233. package/esm/presentation/presentationComponents/DashboardItems/DashboardItem.js +5 -4
  234. package/esm/presentation/presentationComponents/DashboardItems/DashboardItem.js.map +1 -1
  235. package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/DefaultScheduledEmailDialog.d.ts.map +1 -1
  236. package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/DefaultScheduledEmailDialog.js +2 -2
  237. package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/DefaultScheduledEmailDialog.js.map +1 -1
  238. package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/RecipientsSelect/RecipientsSelect.d.ts +8 -0
  239. package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/RecipientsSelect/RecipientsSelect.d.ts.map +1 -1
  240. package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/RecipientsSelect/RecipientsSelect.js +10 -24
  241. package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/RecipientsSelect/RecipientsSelect.js.map +1 -1
  242. package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/RecipientsSelect/RecipientsSelectRenderer.d.ts +8 -1
  243. package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/RecipientsSelect/RecipientsSelectRenderer.d.ts.map +1 -1
  244. package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/RecipientsSelect/RecipientsSelectRenderer.js +51 -22
  245. package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/RecipientsSelect/RecipientsSelectRenderer.js.map +1 -1
  246. package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/hooks/useEditScheduledEmail.d.ts +2 -1
  247. package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/hooks/useEditScheduledEmail.d.ts.map +1 -1
  248. package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/hooks/useEditScheduledEmail.js +13 -4
  249. package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/hooks/useEditScheduledEmail.js.map +1 -1
  250. package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/utils/users.d.ts +5 -0
  251. package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/utils/users.d.ts.map +1 -0
  252. package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/utils/users.js +35 -0
  253. package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/utils/users.js.map +1 -0
  254. package/esm/presentation/widget/common/useWidgetHighlighting.d.ts +7 -0
  255. package/esm/presentation/widget/common/useWidgetHighlighting.d.ts.map +1 -0
  256. package/esm/presentation/widget/common/useWidgetHighlighting.js +66 -0
  257. package/esm/presentation/widget/common/useWidgetHighlighting.js.map +1 -0
  258. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertAttributeSelect.d.ts +4 -4
  259. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertAttributeSelect.d.ts.map +1 -1
  260. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertAttributeSelect.js +2 -4
  261. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertAttributeSelect.js.map +1 -1
  262. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/EditAlert.d.ts.map +1 -1
  263. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/EditAlert.js +15 -5
  264. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/EditAlert.js.map +1 -1
  265. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useAttributeValuesFromExecResults.d.ts +2 -1
  266. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useAttributeValuesFromExecResults.d.ts.map +1 -1
  267. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useAttributeValuesFromExecResults.js +54 -3
  268. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useAttributeValuesFromExecResults.js.map +1 -1
  269. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useEditAlert.d.ts +2 -1
  270. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useEditAlert.d.ts.map +1 -1
  271. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useEditAlert.js +41 -33
  272. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useEditAlert.js.map +1 -1
  273. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useThresholdValue.d.ts +11 -0
  274. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useThresholdValue.d.ts.map +1 -0
  275. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useThresholdValue.js +40 -0
  276. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useThresholdValue.js.map +1 -0
  277. package/esm/presentation/widget/widget/DefaultDashboardWidget.d.ts.map +1 -1
  278. package/esm/presentation/widget/widget/DefaultDashboardWidget.js +32 -36
  279. package/esm/presentation/widget/widget/DefaultDashboardWidget.js.map +1 -1
  280. package/esm/presentation/widget/widget/InsightWidget/DefaultDashboardInsightWidget.d.ts.map +1 -1
  281. package/esm/presentation/widget/widget/InsightWidget/DefaultDashboardInsightWidget.js +6 -22
  282. package/esm/presentation/widget/widget/InsightWidget/DefaultDashboardInsightWidget.js.map +1 -1
  283. package/esm/presentation/widget/widget/RichTextWidget/DefaultDashboardRichTextWidget.d.ts.map +1 -1
  284. package/esm/presentation/widget/widget/RichTextWidget/DefaultDashboardRichTextWidget.js +6 -2
  285. package/esm/presentation/widget/widget/RichTextWidget/DefaultDashboardRichTextWidget.js.map +1 -1
  286. package/esm/presentation/widget/widget/VisualizationSwitcherWidget/DefaultDashboardVisualizationSwitcherWidget.d.ts.map +1 -1
  287. package/esm/presentation/widget/widget/VisualizationSwitcherWidget/DefaultDashboardVisualizationSwitcherWidget.js +6 -2
  288. package/esm/presentation/widget/widget/VisualizationSwitcherWidget/DefaultDashboardVisualizationSwitcherWidget.js.map +1 -1
  289. package/esm/presentation/widget/widget/types.d.ts +10 -0
  290. package/esm/presentation/widget/widget/types.d.ts.map +1 -1
  291. package/esm/sdk-ui-dashboard.d.ts +173 -15
  292. package/package.json +15 -15
  293. package/styles/css/dashboard.css +21 -7
  294. package/styles/css/dashboard.css.map +1 -1
  295. package/styles/css/dashboardNestedLayoutWidget.css +3 -0
  296. package/styles/css/dashboardNestedLayoutWidget.css.map +1 -1
  297. package/styles/css/dragAndDrop.css +10 -0
  298. package/styles/css/dragAndDrop.css.map +1 -1
  299. package/styles/css/export.css +10 -4
  300. package/styles/css/export.css.map +1 -1
  301. package/styles/css/layout.css +4 -0
  302. package/styles/css/layout.css.map +1 -1
  303. package/styles/css/main.css +46 -13
  304. package/styles/css/main.css.map +1 -1
  305. package/styles/css/resizing.css +2 -2
  306. package/styles/css/scheduled_mail_recipients.css +14 -4
  307. package/styles/css/scheduled_mail_recipients.css.map +1 -1
  308. package/styles/scss/_zIndexes.scss +2 -0
  309. package/styles/scss/dashboard.scss +3 -3
  310. package/styles/scss/dashboardNestedLayoutWidget.scss +4 -0
  311. package/styles/scss/dragAndDrop.scss +14 -0
  312. package/styles/scss/export.scss +23 -4
  313. package/styles/scss/layout.scss +6 -0
  314. package/styles/scss/resizing.scss +2 -2
  315. package/styles/scss/scheduled_mail_recipients.scss +5 -0
@@ -0,0 +1,11 @@
1
+ /// <reference types="react" />
2
+ import { IAlertRelativeArithmeticOperator, IAlertRelativeOperator, IAttribute, IAutomationAlert, IMeasure } from "@gooddata/sdk-model";
3
+ import { AlertAttribute, AlertMetric } from "../../../types.js";
4
+ export declare function useThresholdValue(changeValue: (value: number) => void, getMetricValue: (measure?: IMeasure, attr?: IAttribute, value?: string | null) => number | undefined, isNewAlert?: boolean, alert?: IAutomationAlert, selectedRelativeOperator?: [
5
+ IAlertRelativeOperator | undefined,
6
+ IAlertRelativeArithmeticOperator | undefined
7
+ ], selectedMeasure?: AlertMetric, selectedAttribute?: AlertAttribute, selectedValue?: string | null): {
8
+ value: number | undefined;
9
+ setTouched: import("react").Dispatch<import("react").SetStateAction<boolean>>;
10
+ };
11
+ //# sourceMappingURL=useThresholdValue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useThresholdValue.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useThresholdValue.ts"],"names":[],"mappings":";AAEA,OAAO,EACH,gCAAgC,EAChC,sBAAsB,EACtB,UAAU,EACV,gBAAgB,EAChB,QAAQ,EACX,MAAM,qBAAqB,CAAC;AAG7B,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAEhE,wBAAgB,iBAAiB,CAC7B,WAAW,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,EACpC,cAAc,EAAE,CAAC,OAAO,CAAC,EAAE,QAAQ,EAAE,IAAI,CAAC,EAAE,UAAU,EAAE,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,KAAK,MAAM,GAAG,SAAS,EACpG,UAAU,CAAC,EAAE,OAAO,EACpB,KAAK,CAAC,EAAE,gBAAgB,EACxB,wBAAwB,GAAE;IACtB,sBAAsB,GAAG,SAAS;IAClC,gCAAgC,GAAG,SAAS;CACtB,EAC1B,eAAe,CAAC,EAAE,WAAW,EAC7B,iBAAiB,CAAC,EAAE,cAAc,EAClC,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI;;;EAwChC"}
@@ -0,0 +1,40 @@
1
+ // (C) 2022-2025 GoodData Corporation
2
+ import { useEffect, useState } from "react";
3
+ import { getAlertThreshold } from "../utils/getters.js";
4
+ export function useThresholdValue(changeValue, getMetricValue, isNewAlert, alert, selectedRelativeOperator = [undefined, undefined], selectedMeasure, selectedAttribute, selectedValue) {
5
+ const [relativeOperator] = selectedRelativeOperator;
6
+ const value = getAlertThreshold(alert);
7
+ const [touched, setTouched] = useState(false);
8
+ useEffect(() => {
9
+ // If input is already touched, do not trigger current value calculation
10
+ // If alert is not new, do not trigger current value calculation because it is already set by user
11
+ if (touched || !isNewAlert) {
12
+ return;
13
+ }
14
+ // If user selects a relative operator, clear the value if not touched, it not make sense
15
+ if (relativeOperator) {
16
+ changeValue(undefined);
17
+ // If user select comparison operator try to calculate the value based on the selected measure and attribute
18
+ }
19
+ else {
20
+ const val = getMetricValue(selectedMeasure?.measure, selectedAttribute?.attribute, selectedValue);
21
+ if (val !== undefined) {
22
+ changeValue(val);
23
+ }
24
+ }
25
+ }, [
26
+ isNewAlert,
27
+ changeValue,
28
+ getMetricValue,
29
+ selectedAttribute?.attribute,
30
+ selectedMeasure?.measure,
31
+ relativeOperator,
32
+ selectedValue,
33
+ touched,
34
+ ]);
35
+ return {
36
+ value,
37
+ setTouched,
38
+ };
39
+ }
40
+ //# sourceMappingURL=useThresholdValue.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useThresholdValue.js","sourceRoot":"","sources":["../../../../../../../src/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useThresholdValue.ts"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAS5C,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAGxD,MAAM,UAAU,iBAAiB,CAC7B,WAAoC,EACpC,cAAoG,EACpG,UAAoB,EACpB,KAAwB,EACxB,2BAGI,CAAC,SAAS,EAAE,SAAS,CAAC,EAC1B,eAA6B,EAC7B,iBAAkC,EAClC,aAA6B;IAE7B,MAAM,CAAC,gBAAgB,CAAC,GAAG,wBAAwB,CAAC;IAEpD,MAAM,KAAK,GAAG,iBAAiB,CAAC,KAAK,CAAC,CAAC;IACvC,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAE9C,SAAS,CAAC,GAAG,EAAE;QACX,wEAAwE;QACxE,kGAAkG;QAClG,IAAI,OAAO,IAAI,CAAC,UAAU,EAAE,CAAC;YACzB,OAAO;QACX,CAAC;QAED,yFAAyF;QACzF,IAAI,gBAAgB,EAAE,CAAC;YACnB,WAAW,CAAC,SAAU,CAAC,CAAC;YAExB,4GAA4G;QAChH,CAAC;aAAM,CAAC;YACJ,MAAM,GAAG,GAAG,cAAc,CAAC,eAAe,EAAE,OAAO,EAAE,iBAAiB,EAAE,SAAS,EAAE,aAAa,CAAC,CAAC;YAClG,IAAI,GAAG,KAAK,SAAS,EAAE,CAAC;gBACpB,WAAW,CAAC,GAAG,CAAC,CAAC;YACrB,CAAC;QACL,CAAC;IACL,CAAC,EAAE;QACC,UAAU;QACV,WAAW;QACX,cAAc;QACd,iBAAiB,EAAE,SAAS;QAC5B,eAAe,EAAE,OAAO;QACxB,gBAAgB;QAChB,aAAa;QACb,OAAO;KACV,CAAC,CAAC;IAEH,OAAO;QACH,KAAK;QACL,UAAU;KACb,CAAC;AACN,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"DefaultDashboardWidget.d.ts","sourceRoot":"","sources":["../../../../src/presentation/widget/widget/DefaultDashboardWidget.tsx"],"names":[],"mappings":"AACA,OAAO,KAAkB,MAAM,OAAO,CAAC;AA0BvC,OAAO,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC;AAUnD;;GAEG;AACH,eAAO,MAAM,sBAAsB,mDAsIjC,CAAC"}
1
+ {"version":3,"file":"DefaultDashboardWidget.d.ts","sourceRoot":"","sources":["../../../../src/presentation/widget/widget/DefaultDashboardWidget.tsx"],"names":[],"mappings":"AACA,OAAO,KAAkB,MAAM,OAAO,CAAC;AA0BvC,OAAO,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC;AA0EnD;;GAEG;AACH,eAAO,MAAM,sBAAsB,mDA4FjC,CAAC"}
@@ -13,14 +13,34 @@ import { RenderModeAwareDashboardInsightWidget } from "./InsightWidget/index.js"
13
13
  import { RenderModeAwareDashboardRichTextWidget } from "./RichTextWidget/index.js";
14
14
  import { RenderModeAwareDashboardVisualizationSwitcherWidget } from "./VisualizationSwitcherWidget/RenderModeAwareDashboardVisualizationSwitcherWidget.js";
15
15
  import { RenderModeAwareDashboardNestedLayoutWidget } from "./DashboardNestedLayoutWidget/RenderModeAwareDashboardNestedLayoutWidget.js";
16
- import { isFirstInContainer } from "../../../_staging/layout/coordinates.js";
16
+ import { serializeLayoutItemPath } from "../../../_staging/layout/coordinates.js";
17
+ const WidgetComponent = ({ widget, index, rowIndex, parentLayoutPath, screen, onFiltersChange, onError, }) => {
18
+ const dashboardItemClasses = parentLayoutPath
19
+ ? `s-dash-item-${serializeLayoutItemPath(parentLayoutPath)}`
20
+ : `s-dash-item-${index}`;
21
+ const dashboardItemClassNames = cx(dashboardItemClasses, {
22
+ "gd-first-container-row-widget": rowIndex === 0,
23
+ });
24
+ if (isInsightWidget(widget)) {
25
+ return (React.createElement(RenderModeAwareDashboardInsightWidget, { widget: widget, screen: screen, dashboardItemClasses: dashboardItemClassNames }));
26
+ }
27
+ else if (isKpiWidget(widget)) {
28
+ return (React.createElement(DefaultDashboardKpiWidget, { kpiWidget: widget, screen: screen, dashboardItemClasses: dashboardItemClassNames, onFiltersChange: onFiltersChange, onError: onError }));
29
+ }
30
+ else if (isRichTextWidget(widget)) {
31
+ return (React.createElement(RenderModeAwareDashboardRichTextWidget, { widget: widget, screen: screen, dashboardItemClasses: dashboardItemClassNames }));
32
+ }
33
+ else if (isVisualizationSwitcherWidget(widget)) {
34
+ return (React.createElement(RenderModeAwareDashboardVisualizationSwitcherWidget, { widget: widget, screen: screen, dashboardItemClasses: dashboardItemClassNames }));
35
+ }
36
+ return null;
37
+ };
17
38
  /**
18
39
  * @internal
19
40
  */
20
- export const DefaultDashboardWidget = React.memo(function DefaultDashboardWidget(props) {
21
- const { onError, onFiltersChange, screen, widget, backend,
22
- // @ts-expect-error Don't expose index prop on public interface (we need it only for css class for KD tests)
23
- index, parentLayoutItemSize, parentLayoutPath, } = props;
41
+ export const DefaultDashboardWidget = React.memo(function DefaultDashboardWidget({ onError, onFiltersChange, screen, widget, backend,
42
+ // @ts-expect-error Don't expose index prop on public interface (we need it only for css class for KD tests)
43
+ index, parentLayoutItemSize, parentLayoutPath, rowIndex, }) {
24
44
  const isFlexibleLayoutEnabled = useDashboardSelector(selectEnableFlexibleLayout);
25
45
  if (!isDashboardWidget(widget)) {
26
46
  throw new UnexpectedError("Cannot render custom widget with DefaultWidgetRenderer! Please handle custom widget rendering in your widgetRenderer.");
@@ -59,46 +79,22 @@ export const DefaultDashboardWidget = React.memo(function DefaultDashboardWidget
59
79
  },
60
80
  });
61
81
  }, [effectiveBackend, dispatchEvent, safeSerializeObjRef(ref)]);
62
- const pathItems = parentLayoutPath
63
- ? parentLayoutPath.map((pathItem) => `-${pathItem.sectionIndex}_${pathItem.itemIndex}`).join("")
64
- : "";
65
- const dashboardItemClasses = parentLayoutPath ? `s-dash-item${pathItems}` : `s-dash-item-${index}`;
66
- const firstInContainer = isFirstInContainer(parentLayoutPath);
67
82
  if (isWidget(widget)) {
68
- let renderWidget = null;
69
- if (isInsightWidget(widget)) {
70
- renderWidget = (React.createElement(RenderModeAwareDashboardInsightWidget, { widget: widget, screen: screen, dashboardItemClasses: cx(dashboardItemClasses, {
71
- "gd-first-in-container": firstInContainer,
72
- }) }));
73
- }
74
- else if (isKpiWidget(widget)) {
75
- renderWidget = (React.createElement(DefaultDashboardKpiWidget, { kpiWidget: widget, screen: screen, dashboardItemClasses: cx(dashboardItemClasses, {
76
- "gd-first-in-container": firstInContainer,
77
- }), onFiltersChange: onFiltersChange, onError: onError }));
78
- }
79
- else if (isRichTextWidget(widget)) {
80
- renderWidget = (React.createElement(RenderModeAwareDashboardRichTextWidget, { widget: widget, screen: screen, dashboardItemClasses: cx(dashboardItemClasses, {
81
- "gd-first-in-container": firstInContainer,
82
- }) }));
83
- }
84
- else if (isVisualizationSwitcherWidget(widget)) {
85
- renderWidget = (React.createElement(RenderModeAwareDashboardVisualizationSwitcherWidget, { widget: widget, screen: screen, dashboardItemClasses: cx(dashboardItemClasses, {
86
- "gd-first-in-container": firstInContainer,
87
- }) }));
88
- }
89
- return React.createElement(BackendProvider, { backend: backendWithEventing }, renderWidget);
83
+ return (React.createElement(BackendProvider, { backend: backendWithEventing },
84
+ React.createElement(WidgetComponent, { widget: widget, screen: screen, index: index, parentLayoutPath: parentLayoutPath, onFiltersChange: onFiltersChange, onError: onError, rowIndex: rowIndex })));
90
85
  }
91
86
  else if (isFlexibleLayoutEnabled && isExtendedDashboardLayoutWidget(widget)) {
92
87
  const dashboardItemClasses = parentLayoutPath
93
- ? `s-dash-item${pathItems}--container`
88
+ ? `s-dash-item-${serializeLayoutItemPath(parentLayoutPath)}--container`
94
89
  : `s-dash-item-${index}--container`;
90
+ const dashboardItemClassNames = cx(dashboardItemClasses, {
91
+ "gd-first-container-row-widget": rowIndex === 0,
92
+ });
95
93
  return (React.createElement(RenderModeAwareDashboardNestedLayoutWidget
96
94
  // nested layout widget merges layout and other widget props into single object. Split them here
97
95
  , {
98
96
  // nested layout widget merges layout and other widget props into single object. Split them here
99
- widget: widget, layout: widget, onFiltersChange: onFiltersChange, parentLayoutItemSize: parentLayoutItemSize, parentLayoutPath: parentLayoutPath, dashboardItemClasses: cx(dashboardItemClasses, {
100
- "gd-first-in-container": firstInContainer,
101
- }) }));
97
+ widget: widget, layout: widget, onFiltersChange: onFiltersChange, parentLayoutItemSize: parentLayoutItemSize, parentLayoutPath: parentLayoutPath, dashboardItemClasses: dashboardItemClassNames }));
102
98
  }
103
99
  return React.createElement("div", null, "Unknown widget");
104
100
  });
@@ -1 +1 @@
1
- {"version":3,"file":"DefaultDashboardWidget.js","sourceRoot":"","sources":["../../../../src/presentation/widget/widget/DefaultDashboardWidget.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EAAa,eAAe,EAAE,MAAM,2BAA2B,CAAC;AACvE,OAAO,EACH,QAAQ,EACR,eAAe,EACf,iBAAiB,EACjB,SAAS,EACT,WAAW,EACX,gBAAgB,EAChB,6BAA6B,GAChC,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,MAAM,YAAY,CAAC;AAC5B,OAAO,EAAE,eAAe,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AACnF,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAE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uBAAuB,EAAE,gBAAgB;iBAC5C,CAAC,GACJ,CACL,CAAC;QACN,CAAC;aAAM,IAAI,6BAA6B,CAAC,MAAM,CAAC,EAAE,CAAC;YAC/C,YAAY,GAAG,CACX,oBAAC,mDAAmD,IAChD,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,EACd,oBAAoB,EAAE,EAAE,CAAC,oBAAoB,EAAE;oBAC3C,uBAAuB,EAAE,gBAAgB;iBAC5C,CAAC,GACJ,CACL,CAAC;QACN,CAAC;QAED,OAAO,oBAAC,eAAe,IAAC,OAAO,EAAE,mBAAmB,IAAG,YAAY,CAAmB,CAAC;IAC3F,CAAC;SAAM,IAAI,uBAAuB,IAAI,+BAA+B,CAAC,MAAM,CAAC,EAAE,CAAC;QAC5E,MAAM,oBAAoB,GAAG,gBAAgB;YACzC,CAAC,CAAC,cAAc,SAAS,aAAa;YACtC,CAAC,CAAC,eAAe,KAAK,aAAa,CAAC;QACxC,OAAO,CACH,oBAAC,0CAA0C;QACvC,gGAAgG;;YAAhG,gGAAgG;YAChG,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,EACd,eAAe,EAAE,eAAe,EAChC,oBAAoB,EAAE,oBAAoB,EAC1C,gBAAgB,EAAE,gBAAgB,EAClC,oBAAoB,EAAE,EAAE,CAAC,oBAAoB,EAAE;gBAC3C,uBAAuB,EAAE,gBAAgB;aAC5C,CAAC,GACJ,CACL,CAAC;IACN,CAAC;IAED,OAAO,kDAAyB,CAAC;AACrC,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"DefaultDashboardWidget.js","sourceRoot":"","sources":["../../../../src/presentation/widget/widget/DefaultDashboardWidget.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EAAa,eAAe,EAAE,MAAM,2BAA2B,CAAC;AACvE,OAAO,EACH,QAAQ,EACR,eAAe,EACf,iBAAiB,EACj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AAW,EAAE,EAAE;gBAC5D,OAAO,CAAC,KAAK,EAAE,WAAW,CAAC,CAAC;YAChC,CAAC;SACJ,CAAC,CAAC;IACP,CAAC,EAAE,CAAC,gBAAgB,EAAE,aAAa,EAAE,mBAAmB,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;IAEhE,IAAI,QAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;QACnB,OAAO,CACH,oBAAC,eAAe,IAAC,OAAO,EAAE,mBAAmB;YACzC,oBAAC,eAAe,IACZ,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,KAAK,EACZ,gBAAgB,EAAE,gBAAgB,EAClC,eAAe,EAAE,eAAe,EAChC,OAAO,EAAE,OAAO,EAChB,QAAQ,EAAE,QAAS,GACrB,CACY,CACrB,CAAC;IACN,CAAC;SAAM,IAAI,uBAAuB,IAAI,+BAA+B,CAAC,MAAM,CAAC,EAAE,CAAC;QAC5E,MAAM,oBAAoB,GAAG,gBAAgB;YACzC,CAAC,CAAC,eAAe,uBAAuB,CAAC,gBAAgB,CAAC,aAAa;YACvE,CAAC,CAAC,eAAe,KAAK,aAAa,CAAC;QACxC,MAAM,uBAAuB,GAAG,EAAE,CAAC,oBAAoB,EAAE;YACrD,+BAA+B,EAAE,QAAQ,KAAK,CAAC;SAClD,CAAC,CAAC;QACH,OAAO,CACH,oBAAC,0CAA0C;QACvC,gGAAgG;;YAAhG,gGAAgG;YAChG,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,EACd,eAAe,EAAE,eAAe,EAChC,oBAAoB,EAAE,oBAAoB,EAC1C,gBAAgB,EAAE,gBAAgB,EAClC,oBAAoB,EAAE,uBAAuB,GAC/C,CACL,CAAC;IACN,CAAC;IAED,OAAO,kDAAyB,CAAC;AACrC,CAAC,CAAC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"DefaultDashboardInsightWidget.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/widget/widget/InsightWidget/DefaultDashboardInsightWidget.tsx"],"names":[],"mappings":"AACA,OAAO,KAAoD,MAAM,OAAO,CAAC;AA0BzE,OAAO,EAAE,mCAAmC,EAAE,MAAM,YAAY,CAAC;AAajE,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;AAwBpD,OAAO,EAAE,mCAAmC,EAAE,MAAM,YAAY,CAAC;AAIjE,eAAO,MAAM,6BAA6B,EAAE,KAAK,CAAC,EAAE,CAAC,IAAI,CAAC,mCAAmC,EAAE,SAAS,CAAC,CAIxG,CAAC"}
@@ -1,9 +1,9 @@
1
- // (C) 2020-2024 GoodData Corporation
2
- import React, { useMemo, useCallback, useEffect, useState } from "react";
1
+ // (C) 2020-2025 GoodData Corporation
2
+ 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 { useDashboardSelector, selectSettings, useDashboardScheduledEmails, selectDashboardUserAutomations, selectAutomationId, } from "../../../../model/index.js";
6
+ import { useDashboardSelector, selectSettings, useDashboardScheduledEmails, } from "../../../../model/index.js";
7
7
  import { DashboardItem, DashboardItemHeadline, DashboardItemVisualization, getVisTypeCssClass, } from "../../../presentationComponents/index.js";
8
8
  import { DashboardInsight } from "../../insight/index.js";
9
9
  import { useInsightExport } from "../../common/index.js";
@@ -12,9 +12,7 @@ import { InsightWidgetDescriptionTrigger } from "../../description/InsightWidget
12
12
  import { useInsightMenu } from "./useInsightMenu.js";
13
13
  import { DashboardWidgetInsightGuard } from "./DashboardWidgetInsightGuard.js";
14
14
  import { useAlertingAndScheduling } from "./useAlertingAndScheduling.js";
15
- import { createSelector } from "@reduxjs/toolkit";
16
- const selectIsWidgetHighlighted = (widgetId) => createSelector(selectAutomationId, selectDashboardUserAutomations, (automationId, automations) => !!automationId &&
17
- automations?.some((a) => a.id === automationId && a.metadata?.widget === widgetId));
15
+ import { useWidgetHighlighting } from "../../common/useWidgetHighlighting.js";
18
16
  export const DefaultDashboardInsightWidget = (props) => {
19
17
  return React.createElement(DashboardWidgetInsightGuard, { ...props, Component: DefaultDashboardInsightWidgetCore });
20
18
  };
@@ -72,22 +70,8 @@ const DefaultDashboardInsightWidgetCore = ({ widget, insight, screen, onError, o
72
70
  const { InsightMenuButtonComponentProvider, InsightMenuComponentProvider, ErrorComponent, LoadingComponent, } = useDashboardComponentsContext();
73
71
  const InsightMenuButtonComponent = useMemo(() => InsightMenuButtonComponentProvider(insight, widget), [InsightMenuButtonComponentProvider, insight, widget]);
74
72
  const InsightMenuComponent = useMemo(() => InsightMenuComponentProvider(insight, widget), [InsightMenuComponentProvider, insight, widget]);
75
- const isHighlighted = useDashboardSelector(selectIsWidgetHighlighted(widget.identifier));
76
- const [ignoreHighlight, setIgnoreHighlight] = useState(false);
77
- useEffect(() => {
78
- let timeout;
79
- if (isHighlighted) {
80
- timeout = setTimeout(() => {
81
- setIgnoreHighlight(true);
82
- }, 5000);
83
- }
84
- return () => {
85
- if (timeout) {
86
- clearTimeout(timeout);
87
- }
88
- };
89
- }, [isHighlighted]);
90
- return (React.createElement(DashboardItem, { className: cx(dashboardItemClasses, "type-visualization", "gd-dashboard-view-widget", getVisTypeCssClass(widget.type, visType), { "gd-highlighted": isHighlighted && !ignoreHighlight }), screen: screen },
73
+ const { elementRef, highlighted } = useWidgetHighlighting(widget);
74
+ return (React.createElement(DashboardItem, { className: cx(dashboardItemClasses, "type-visualization", "gd-dashboard-view-widget", getVisTypeCssClass(widget.type, visType), { "gd-highlighted": highlighted }), screen: screen, ref: elementRef },
91
75
  React.createElement(DashboardItemVisualization, { renderHeadline: (clientHeight) => !widget.configuration?.hideTitle && (React.createElement(DashboardItemHeadline, { title: widget.title, clientHeight: clientHeight })), renderBeforeVisualization: () => (React.createElement("div", { className: "gd-absolute-row" },
92
76
  settings?.enableDescriptions ? (React.createElement(InsightWidgetDescriptionTrigger, { insight: insight, widget: widget, screen: screen })) : null,
93
77
  React.createElement(InsightMenuButtonComponent, { insight: insight, widget: widget, isOpen: isMenuOpen, onClick: toggleMenu, items: menuItems }))), renderAfterContent: () => {
@@ -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,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACzE,OAAO,EAAE,MAAM,YAAY,CAAC;AAC5B,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,EAAY,WAAW,EAAE,wBAAwB,EAAE,MAAM,qBAAqB,CAAC;AAGtF,OAAO,EACH,oBAAoB,EACpB,cAAc,EACd,2BAA2B,EAC3B,8BAA8B,EAC9B,kBAAkB,GACrB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACH,aAAa,EACb,qBAAqB,EACrB,0BAA0B,EAC1B,kBAAkB,GACrB,MAAM,0CAA0C,CAAC;AAClD,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,6BAA6B,EAAE,MAAM,qCAAqC,CAAC;AACpF,OAAO,EAAE,+BAA+B,EAAE,MAAM,sDAAsD,CAAC;AAEvG,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,2BAA2B,EAAE,MAAM,kCAAkC,CAAC;AAE/E,OAAO,E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TextWidget.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/widget/widget/RichTextWidget/DefaultDashboardRichTextWidget.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,oCAAoC,EAAE,MAAM,YAAY,CAAC;AAGlE;;GAEG;AACH,eAAO,MAAM,8BAA8B,EAAE,KAAK,CAAC,EAAE,CAAC,oCAAoC,CAezF,CAAC"}
1
+ {"version":3,"file":"DefaultDashboardRichTextWidget.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/widget/widget/RichTextWidget/DefaultDashboardRichTextWidget.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,oCAAoC,EAAE,MAAM,YAAY,CAAC;AAIlE;;GAEG;AACH,eAAO,MAAM,8BAA8B,EAAE,KAAK,CAAC,EAAE,CAAC,oCAAoC,CAoBzF,CAAC"}
@@ -1,13 +1,17 @@
1
- // (C) 2020-2024 GoodData Corporation
1
+ // (C) 2020-2025 GoodData Corporation
2
2
  import React from "react";
3
3
  import cx from "classnames";
4
4
  import { DashboardItem, DashboardItemBase } from "../../../presentationComponents/index.js";
5
5
  import { DashboardRichText } from "../../richText/DashboardRichText.js";
6
+ import { useWidgetHighlighting } from "../../common/useWidgetHighlighting.js";
6
7
  /**
7
8
  * @internal
8
9
  */
9
10
  export const DefaultDashboardRichTextWidget = ({ widget, screen, dashboardItemClasses, }) => {
10
- return (React.createElement(DashboardItem, { className: cx(dashboardItemClasses, "type-visualization", "gd-dashboard-view-widget"), screen: screen },
11
+ const { elementRef, highlighted } = useWidgetHighlighting(widget);
12
+ return (React.createElement(DashboardItem, { className: cx(dashboardItemClasses, "type-visualization", "gd-dashboard-view-widget", {
13
+ "gd-highlighted": highlighted,
14
+ }), screen: screen, ref: elementRef },
11
15
  React.createElement(DashboardItemBase, { visualizationClassName: "gd-rich-text-widget-wrapper" }, () => React.createElement(DashboardRichText, { widget: widget }))));
12
16
  };
13
17
  //# sourceMappingURL=DefaultDashboardRichTextWidget.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"DefaultDashboardRichTextWidget.js","sourceRoot":"","sources":["../../../../../src/presentation/widget/widget/RichTextWidget/DefaultDashboardRichTextWidget.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,MAAM,YAAY,CAAC;AAC5B,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,0CAA0C,CAAC;AAE5F,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AAExE;;GAEG;AACH,MAAM,CAAC,MAAM,8BAA8B,GAAmD,CAAC,EAC3F,MAAM,EACN,MAAM,EACN,oBAAoB,GACvB,EAAE,EAAE;IACD,OAAO,CACH,oBAAC,aAAa,IACV,SAAS,EAAE,EAAE,CAAC,oBAAoB,EAAE,oBAAoB,EAAE,0BAA0B,CAAC,EACrF,MAAM,EAAE,MAAM;QAEd,oBAAC,iBAAiB,IAAC,sBAAsB,EAAC,6BAA6B,IAClE,GAAG,EAAE,CAAC,oBAAC,iBAAiB,IAAC,MAAM,EAAE,MAAM,GAAI,CAC5B,CACR,CACnB,CAAC;AACN,CAAC,CAAC"}
1
+ {"version":3,"file":"DefaultDashboardRichTextWidget.js","sourceRoot":"","sources":["../../../../../src/presentation/widget/widget/RichTextWidget/DefaultDashboardRichTextWidget.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,MAAM,YAAY,CAAC;AAC5B,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,0CAA0C,CAAC;AAE5F,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AACxE,OAAO,EAAE,qBAAqB,EAAE,MAAM,uCAAuC,CAAC;AAE9E;;GAEG;AACH,MAAM,CAAC,MAAM,8BAA8B,GAAmD,CAAC,EAC3F,MAAM,EACN,MAAM,EACN,oBAAoB,GACvB,EAAE,EAAE;IACD,MAAM,EAAE,UAAU,EAAE,WAAW,EAAE,GAAG,qBAAqB,CAAC,MAAM,CAAC,CAAC;IAElE,OAAO,CACH,oBAAC,aAAa,IACV,SAAS,EAAE,EAAE,CAAC,oBAAoB,EAAE,oBAAoB,EAAE,0BAA0B,EAAE;YAClF,gBAAgB,EAAE,WAAW;SAChC,CAAC,EACF,MAAM,EAAE,MAAM,EACd,GAAG,EAAE,UAAU;QAEf,oBAAC,iBAAiB,IAAC,sBAAsB,EAAC,6BAA6B,IAClE,GAAG,EAAE,CAAC,oBAAC,iBAAiB,IAAC,MAAM,EAAE,MAAM,GAAI,CAC5B,CACR,CACnB,CAAC;AACN,CAAC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"DefaultDashboardVisualizationSwitcherWidget.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/widget/widget/VisualizationSwitcherWidget/DefaultDashboardVisualizationSwitcherWidget.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAE,iDAAiD,EAAE,MAAM,YAAY,CAAC;AAG/E;;GAEG;AACH,eAAO,MAAM,2CAA2C,EAAE,KAAK,CAAC,EAAE,CAC9D,iDAAiD,CAYpD,CAAC"}
1
+ {"version":3,"file":"DefaultDashboardVisualizationSwitcherWidget.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/widget/widget/VisualizationSwitcherWidget/DefaultDashboardVisualizationSwitcherWidget.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAE,iDAAiD,EAAE,MAAM,YAAY,CAAC;AAI/E;;GAEG;AACH,eAAO,MAAM,2CAA2C,EAAE,KAAK,CAAC,EAAE,CAC9D,iDAAiD,CAiBpD,CAAC"}
@@ -1,13 +1,17 @@
1
- // (C) 2020-2024 GoodData Corporation
1
+ // (C) 2020-2025 GoodData Corporation
2
2
  import React from "react";
3
3
  import cx from "classnames";
4
4
  import { DashboardItem, DashboardItemBase } from "../../../presentationComponents/index.js";
5
5
  import { DashboardVisualizationSwitcher } from "../../visualizationSwitcher/DashboardVisualizationSwitcher.js";
6
+ import { useWidgetHighlighting } from "../../common/useWidgetHighlighting.js";
6
7
  /**
7
8
  * @internal
8
9
  */
9
10
  export const DefaultDashboardVisualizationSwitcherWidget = ({ widget, screen, dashboardItemClasses }) => {
10
- return (React.createElement(DashboardItem, { className: cx(dashboardItemClasses, "type-visualization", "gd-dashboard-view-widget"), screen: screen },
11
+ const { elementRef, highlighted } = useWidgetHighlighting(widget);
12
+ return (React.createElement(DashboardItem, { className: cx(dashboardItemClasses, "type-visualization", "gd-dashboard-view-widget", {
13
+ "gd-highlighted": highlighted,
14
+ }), screen: screen, ref: elementRef },
11
15
  React.createElement(DashboardItemBase, { visualizationClassName: "gd-visualization-switcher-widget-wrapper" }, () => React.createElement(DashboardVisualizationSwitcher, { widget: widget, screen: screen }))));
12
16
  };
13
17
  //# sourceMappingURL=DefaultDashboardVisualizationSwitcherWidget.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"DefaultDashboardVisualizationSwitcherWidget.js","sourceRoot":"","sources":["../../../../../src/presentation/widget/widget/VisualizationSwitcherWidget/DefaultDashboardVisualizationSwitcherWidget.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AAErC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,MAAM,YAAY,CAAC;AAE5B,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,0CAA0C,CAAC;AAE5F,OAAO,EAAE,8BAA8B,EAAE,MAAM,+DAA+D,CAAC;AAE/G;;GAEG;AACH,MAAM,CAAC,MAAM,2CAA2C,GAEpD,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,oBAAoB,EAAE,EAAE,EAAE;IAC7C,OAAO,CACH,oBAAC,aAAa,IACV,SAAS,EAAE,EAAE,CAAC,oBAAoB,EAAE,oBAAoB,EAAE,0BAA0B,CAAC,EACrF,MAAM,EAAE,MAAM;QAEd,oBAAC,iBAAiB,IAAC,sBAAsB,EAAC,0CAA0C,IAC/E,GAAG,EAAE,CAAC,oBAAC,8BAA8B,IAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAI,CACzD,CACR,CACnB,CAAC;AACN,CAAC,CAAC"}
1
+ {"version":3,"file":"DefaultDashboardVisualizationSwitcherWidget.js","sourceRoot":"","sources":["../../../../../src/presentation/widget/widget/VisualizationSwitcherWidget/DefaultDashboardVisualizationSwitcherWidget.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AAErC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,MAAM,YAAY,CAAC;AAE5B,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,0CAA0C,CAAC;AAE5F,OAAO,EAAE,8BAA8B,EAAE,MAAM,+DAA+D,CAAC;AAC/G,OAAO,EAAE,qBAAqB,EAAE,MAAM,uCAAuC,CAAC;AAE9E;;GAEG;AACH,MAAM,CAAC,MAAM,2CAA2C,GAEpD,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,oBAAoB,EAAE,EAAE,EAAE;IAC7C,MAAM,EAAE,UAAU,EAAE,WAAW,EAAE,GAAG,qBAAqB,CAAC,MAAM,CAAC,CAAC;IAElE,OAAO,CACH,oBAAC,aAAa,IACV,SAAS,EAAE,EAAE,CAAC,oBAAoB,EAAE,oBAAoB,EAAE,0BAA0B,EAAE;YAClF,gBAAgB,EAAE,WAAW;SAChC,CAAC,EACF,MAAM,EAAE,MAAM,EACd,GAAG,EAAE,UAAU;QAEf,oBAAC,iBAAiB,IAAC,sBAAsB,EAAC,0CAA0C,IAC/E,GAAG,EAAE,CAAC,oBAAC,8BAA8B,IAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAI,CACzD,CACR,CACnB,CAAC;AACN,CAAC,CAAC"}
@@ -115,6 +115,16 @@ export interface IDashboardWidgetProps {
115
115
  * @alpha
116
116
  */
117
117
  showMenu?: boolean;
118
+ /**
119
+ * Zero-based index of the row in which the item is rendered,
120
+ *
121
+ * @alpha
122
+ *
123
+ * @remarks
124
+ * Optional only for the compatibility reasons with old fluid layout.
125
+ * Once the flexible layout is the only one supported, it can be set as required.
126
+ */
127
+ rowIndex?: number;
118
128
  }
119
129
  /**
120
130
  * @public
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/presentation/widget/widget/types.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AACtC,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAC/D,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AACvE,OAAO,EACH,MAAM,EACN,aAAa,EACb,iBAAiB,EACjB,UAAU,EACV,gCAAgC,EACnC,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,gBAAgB,EAAE,0BAA0B,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAClG,OAAO,EAAE,uBAAuB,EAAE,MAAM,yBAAyB,CAAC;AAElE;;;;;;;;;GASG;AACH,MAAM,WAAW,qBAAqB;IAClC;;;;;;;;OAQG;IACH,OAAO,CAAC,EAAE,kBAAkB,CAAC;IAE7B;;;;;;;;OAQG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,MAAM,CAAC,EAAE,uBAAuB,CAAC;IAEjC;;;;OAIG;IACH,oBAAoB,CAAC,EAAE,gCAAgC,CAAC;IAExD;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,eAAe,CAAC;IAEnC;;;;;;;OAOG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;;;;;;OAOG;IACH,uBAAuB,CAAC,EAAE,aAAa,EAAE,CAAC;IAE1C;;;;OAIG;IACH,cAAc,EAAE,aAAa,CAAC,WAAW,CAAC,CAAC;IAE3C;;;;OAIG;IACH,gBAAgB,EAAE,aAAa,CAAC,aAAa,CAAC,CAAC;IAE/C;;OAEG;IACH,MAAM,EAAE,UAAU,CAAC;IAEnB;;OAEG;IACH,OAAO,CAAC,EAAE,0BAA0B,CAAC;IAErC;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;OAEG;IACH,eAAe,CAAC,EAAE,CAAC,OAAO,EAAE,CAAC,gBAAgB,GAAG,iBAAiB,CAAC,EAAE,EAAE,WAAW,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;IAErG;;;;OAIG;IACH,eAAe,CAAC,EAAE,MAAM,IAAI,CAAC;IAE7B;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACtB;AAMD;;GAEG;AACH,MAAM,MAAM,8BAA8B,GAAG,aAAa,CAAC,qBAAqB,CAAC,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/presentation/widget/widget/types.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AACtC,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAC/D,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AACvE,OAAO,EACH,MAAM,EACN,aAAa,EACb,iBAAiB,EACjB,UAAU,EACV,gCAAgC,EACnC,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,gBAAgB,EAAE,0BAA0B,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAClG,OAAO,EAAE,uBAAuB,EAAE,MAAM,yBAAyB,CAAC;AAElE;;;;;;;;;GASG;AACH,MAAM,WAAW,qBAAqB;IAClC;;;;;;;;OAQG;IACH,OAAO,CAAC,EAAE,kB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