@gooddata/sdk-ui-dashboard 10.14.0-alpha.2 → 10.14.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 (287) hide show
  1. package/esm/__version.d.ts +1 -1
  2. package/esm/__version.d.ts.map +1 -1
  3. package/esm/__version.js +1 -1
  4. package/esm/__version.js.map +1 -1
  5. package/esm/model/commandHandlers/dashboard/common/stateInitializers.d.ts.map +1 -1
  6. package/esm/model/commandHandlers/dashboard/common/stateInitializers.js +12 -4
  7. package/esm/model/commandHandlers/dashboard/common/stateInitializers.js.map +1 -1
  8. package/esm/model/commandHandlers/dashboard/resetDashboardHandler.d.ts.map +1 -1
  9. package/esm/model/commandHandlers/dashboard/resetDashboardHandler.js +3 -2
  10. package/esm/model/commandHandlers/dashboard/resetDashboardHandler.js.map +1 -1
  11. package/esm/model/store/config/configSelectors.d.ts +5 -1
  12. package/esm/model/store/config/configSelectors.d.ts.map +1 -1
  13. package/esm/model/store/config/configSelectors.js +8 -2
  14. package/esm/model/store/config/configSelectors.js.map +1 -1
  15. package/esm/model/store/executionResults/executionResultsSelectors.d.ts +1 -1
  16. package/esm/model/store/executionResults/executionResultsSelectors.d.ts.map +1 -1
  17. package/esm/model/store/executionResults/executionResultsSelectors.js +4 -1
  18. package/esm/model/store/executionResults/executionResultsSelectors.js.map +1 -1
  19. package/esm/model/store/index.d.ts +1 -1
  20. package/esm/model/store/index.d.ts.map +1 -1
  21. package/esm/model/store/index.js +1 -1
  22. package/esm/model/store/index.js.map +1 -1
  23. package/esm/model/store/layout/layoutSelectors.d.ts.map +1 -1
  24. package/esm/model/store/layout/layoutSelectors.js +18 -6
  25. package/esm/model/store/layout/layoutSelectors.js.map +1 -1
  26. package/esm/presentation/alerting/DefaultAlertingDialog/DefaultAlertingDialog.d.ts.map +1 -1
  27. package/esm/presentation/alerting/DefaultAlertingDialog/DefaultAlertingDialog.js +5 -5
  28. package/esm/presentation/alerting/DefaultAlertingDialog/DefaultAlertingDialog.js.map +1 -1
  29. package/esm/presentation/alerting/DefaultAlertingManagementDialog/components/Alert.d.ts.map +1 -1
  30. package/esm/presentation/alerting/DefaultAlertingManagementDialog/components/Alert.js +13 -6
  31. package/esm/presentation/alerting/DefaultAlertingManagementDialog/components/Alert.js.map +1 -1
  32. package/esm/presentation/constants/classes.d.ts +2 -0
  33. package/esm/presentation/constants/classes.d.ts.map +1 -0
  34. package/esm/presentation/constants/classes.js +3 -0
  35. package/esm/presentation/constants/classes.js.map +1 -0
  36. package/esm/presentation/constants/index.d.ts +1 -0
  37. package/esm/presentation/constants/index.d.ts.map +1 -1
  38. package/esm/presentation/constants/index.js +1 -0
  39. package/esm/presentation/constants/index.js.map +1 -1
  40. package/esm/presentation/constants/layout.d.ts +1 -0
  41. package/esm/presentation/constants/layout.d.ts.map +1 -1
  42. package/esm/presentation/constants/layout.js +1 -1
  43. package/esm/presentation/constants/layout.js.map +1 -1
  44. package/esm/presentation/dashboard/DefaultDashboardContent/DefaultDashboardMainContent.d.ts.map +1 -1
  45. package/esm/presentation/dashboard/DefaultDashboardContent/DefaultDashboardMainContent.js +7 -2
  46. package/esm/presentation/dashboard/DefaultDashboardContent/DefaultDashboardMainContent.js.map +1 -1
  47. package/esm/presentation/dashboard/components/DashboardMainContent.d.ts.map +1 -1
  48. package/esm/presentation/dashboard/components/DashboardMainContent.js +7 -2
  49. package/esm/presentation/dashboard/components/DashboardMainContent.js.map +1 -1
  50. package/esm/presentation/flexibleLayout/DashboardItemOverlay/DashboardItemOverlay.d.ts +11 -0
  51. package/esm/presentation/flexibleLayout/DashboardItemOverlay/DashboardItemOverlay.d.ts.map +1 -0
  52. package/esm/presentation/flexibleLayout/DashboardItemOverlay/DashboardItemOverlay.js +53 -0
  53. package/esm/presentation/flexibleLayout/DashboardItemOverlay/DashboardItemOverlay.js.map +1 -0
  54. package/esm/presentation/flexibleLayout/DashboardItemOverlay/DashboardItemOverlayController.d.ts +8 -0
  55. package/esm/presentation/flexibleLayout/DashboardItemOverlay/DashboardItemOverlayController.d.ts.map +1 -0
  56. package/esm/presentation/flexibleLayout/DashboardItemOverlay/DashboardItemOverlayController.js +17 -0
  57. package/esm/presentation/flexibleLayout/DashboardItemOverlay/DashboardItemOverlayController.js.map +1 -0
  58. package/esm/presentation/flexibleLayout/DashboardLayout.d.ts +7 -0
  59. package/esm/presentation/flexibleLayout/DashboardLayout.d.ts.map +1 -0
  60. package/esm/presentation/flexibleLayout/DashboardLayout.js +11 -0
  61. package/esm/presentation/flexibleLayout/DashboardLayout.js.map +1 -0
  62. package/esm/presentation/flexibleLayout/DashboardLayoutWidget.d.ts +8 -0
  63. package/esm/presentation/flexibleLayout/DashboardLayoutWidget.d.ts.map +1 -0
  64. package/esm/presentation/flexibleLayout/DashboardLayoutWidget.js +199 -0
  65. package/esm/presentation/flexibleLayout/DashboardLayoutWidget.js.map +1 -0
  66. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayout.d.ts +9 -0
  67. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayout.d.ts.map +1 -0
  68. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayout.js +54 -0
  69. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayout.js.map +1 -0
  70. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutEditSectionHeaderRenderer.d.ts +4 -0
  71. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutEditSectionHeaderRenderer.d.ts.map +1 -0
  72. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutEditSectionHeaderRenderer.js +23 -0
  73. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutEditSectionHeaderRenderer.js.map +1 -0
  74. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutGridRow.d.ts +21 -0
  75. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutGridRow.d.ts.map +1 -0
  76. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutGridRow.js +17 -0
  77. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutGridRow.js.map +1 -0
  78. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutGridRowEdit.d.ts +7 -0
  79. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutGridRowEdit.d.ts.map +1 -0
  80. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutGridRowEdit.js +39 -0
  81. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutGridRowEdit.js.map +1 -0
  82. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutItem.d.ts +15 -0
  83. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutItem.d.ts.map +1 -0
  84. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutItem.js +19 -0
  85. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutItem.js.map +1 -0
  86. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutItemRenderer.d.ts +6 -0
  87. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutItemRenderer.d.ts.map +1 -0
  88. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutItemRenderer.js +33 -0
  89. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutItemRenderer.js.map +1 -0
  90. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutItemViewRenderer.d.ts +3 -0
  91. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutItemViewRenderer.d.ts.map +1 -0
  92. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutItemViewRenderer.js +40 -0
  93. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutItemViewRenderer.js.map +1 -0
  94. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutSection.d.ts +25 -0
  95. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutSection.d.ts.map +1 -0
  96. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutSection.js +51 -0
  97. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutSection.js.map +1 -0
  98. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutSectionHeader.d.ts +24 -0
  99. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutSectionHeader.d.ts.map +1 -0
  100. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutSectionHeader.js +15 -0
  101. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutSectionHeader.js.map +1 -0
  102. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutSectionHeaderDescription.d.ts +9 -0
  103. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutSectionHeaderDescription.d.ts.map +1 -0
  104. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutSectionHeaderDescription.js +12 -0
  105. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutSectionHeaderDescription.js.map +1 -0
  106. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutSectionHeaderRenderer.d.ts +4 -0
  107. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutSectionHeaderRenderer.d.ts.map +1 -0
  108. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutSectionHeaderRenderer.js +17 -0
  109. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutSectionHeaderRenderer.js.map +1 -0
  110. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutSectionRenderer.d.ts +3 -0
  111. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutSectionRenderer.d.ts.map +1 -0
  112. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutSectionRenderer.js +11 -0
  113. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutSectionRenderer.js.map +1 -0
  114. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutWidgetRenderer.d.ts +4 -0
  115. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutWidgetRenderer.d.ts.map +1 -0
  116. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutWidgetRenderer.js +22 -0
  117. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutWidgetRenderer.js.map +1 -0
  118. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/EditableDashboardLayoutSectionRenderer.d.ts +3 -0
  119. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/EditableDashboardLayoutSectionRenderer.d.ts.map +1 -0
  120. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/EditableDashboardLayoutSectionRenderer.js +24 -0
  121. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/EditableDashboardLayoutSectionRenderer.js.map +1 -0
  122. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/EditableHeader/EditableLabelWithBubble.d.ts +16 -0
  123. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/EditableHeader/EditableLabelWithBubble.d.ts.map +1 -0
  124. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/EditableHeader/EditableLabelWithBubble.js +38 -0
  125. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/EditableHeader/EditableLabelWithBubble.js.map +1 -0
  126. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/EditableHeader/SectionHeaderEditable.d.ts +8 -0
  127. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/EditableHeader/SectionHeaderEditable.d.ts.map +1 -0
  128. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/EditableHeader/SectionHeaderEditable.js +66 -0
  129. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/EditableHeader/SectionHeaderEditable.js.map +1 -0
  130. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/EditableHeader/sectionHeaderHelper.d.ts +7 -0
  131. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/EditableHeader/sectionHeaderHelper.d.ts.map +1 -0
  132. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/EditableHeader/sectionHeaderHelper.js +18 -0
  133. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/EditableHeader/sectionHeaderHelper.js.map +1 -0
  134. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/GridLayoutElement.d.ts +39 -0
  135. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/GridLayoutElement.d.ts.map +1 -0
  136. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/GridLayoutElement.js +63 -0
  137. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/GridLayoutElement.js.map +1 -0
  138. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/RenderModeAwareDashboardLayoutSectionHeaderRenderer.d.ts +8 -0
  139. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/RenderModeAwareDashboardLayoutSectionHeaderRenderer.d.ts.map +1 -0
  140. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/RenderModeAwareDashboardLayoutSectionHeaderRenderer.js +14 -0
  141. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/RenderModeAwareDashboardLayoutSectionHeaderRenderer.js.map +1 -0
  142. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/RenderModeAwareDashboardLayoutSectionRenderer.d.ts +8 -0
  143. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/RenderModeAwareDashboardLayoutSectionRenderer.d.ts.map +1 -0
  144. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/RenderModeAwareDashboardLayoutSectionRenderer.js +14 -0
  145. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/RenderModeAwareDashboardLayoutSectionRenderer.js.map +1 -0
  146. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/constants.d.ts +2 -0
  147. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/constants.d.ts.map +1 -0
  148. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/constants.js +3 -0
  149. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/constants.js.map +1 -0
  150. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/index.d.ts +19 -0
  151. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/index.d.ts.map +1 -0
  152. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/index.js +14 -0
  153. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/index.js.map +1 -0
  154. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/interfaces.d.ts +343 -0
  155. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/interfaces.d.ts.map +1 -0
  156. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/interfaces.js +2 -0
  157. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/interfaces.js.map +1 -0
  158. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/useScreenSize.d.ts +4 -0
  159. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/useScreenSize.d.ts.map +1 -0
  160. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/useScreenSize.js +34 -0
  161. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/useScreenSize.js.map +1 -0
  162. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/utils/emptyFacade.d.ts +3 -0
  163. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/utils/emptyFacade.d.ts.map +1 -0
  164. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/utils/emptyFacade.js +31 -0
  165. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/utils/emptyFacade.js.map +1 -0
  166. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/utils/legacy.d.ts +7 -0
  167. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/utils/legacy.d.ts.map +1 -0
  168. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/utils/legacy.js +33 -0
  169. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/utils/legacy.js.map +1 -0
  170. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/utils/sizing.d.ts +51 -0
  171. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/utils/sizing.d.ts.map +1 -0
  172. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/utils/sizing.js +360 -0
  173. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/utils/sizing.js.map +1 -0
  174. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutUtils.d.ts +22 -0
  175. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutUtils.d.ts.map +1 -0
  176. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutUtils.js +96 -0
  177. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutUtils.js.map +1 -0
  178. package/esm/presentation/flexibleLayout/DefaultFlexibleDashboardLayout.d.ts +7 -0
  179. package/esm/presentation/flexibleLayout/DefaultFlexibleDashboardLayout.d.ts.map +1 -0
  180. package/esm/presentation/flexibleLayout/DefaultFlexibleDashboardLayout.js +101 -0
  181. package/esm/presentation/flexibleLayout/DefaultFlexibleDashboardLayout.js.map +1 -0
  182. package/esm/presentation/flexibleLayout/EmptyDashboardError.d.ts +3 -0
  183. package/esm/presentation/flexibleLayout/EmptyDashboardError.d.ts.map +1 -0
  184. package/esm/presentation/flexibleLayout/EmptyDashboardError.js +10 -0
  185. package/esm/presentation/flexibleLayout/EmptyDashboardError.js.map +1 -0
  186. package/esm/presentation/flexibleLayout/EmptyDashboardLayout.d.ts +3 -0
  187. package/esm/presentation/flexibleLayout/EmptyDashboardLayout.d.ts.map +1 -0
  188. package/esm/presentation/flexibleLayout/EmptyDashboardLayout.js +9 -0
  189. package/esm/presentation/flexibleLayout/EmptyDashboardLayout.js.map +1 -0
  190. package/esm/presentation/flexibleLayout/constants.d.ts +4 -0
  191. package/esm/presentation/flexibleLayout/constants.d.ts.map +1 -0
  192. package/esm/presentation/flexibleLayout/constants.js +14 -0
  193. package/esm/presentation/flexibleLayout/constants.js.map +1 -0
  194. package/esm/presentation/flexibleLayout/index.d.ts +4 -0
  195. package/esm/presentation/flexibleLayout/index.d.ts.map +1 -0
  196. package/esm/presentation/flexibleLayout/index.js +5 -0
  197. package/esm/presentation/flexibleLayout/index.js.map +1 -0
  198. package/esm/presentation/flexibleLayout/refs.d.ts +5 -0
  199. package/esm/presentation/flexibleLayout/refs.d.ts.map +1 -0
  200. package/esm/presentation/flexibleLayout/refs.js +7 -0
  201. package/esm/presentation/flexibleLayout/refs.js.map +1 -0
  202. package/esm/presentation/flexibleLayout/types.d.ts +26 -0
  203. package/esm/presentation/flexibleLayout/types.d.ts.map +1 -0
  204. package/esm/presentation/flexibleLayout/types.js +2 -0
  205. package/esm/presentation/flexibleLayout/types.js.map +1 -0
  206. package/esm/presentation/layout/DefaultDashboardLayout.d.ts.map +1 -1
  207. package/esm/presentation/layout/DefaultDashboardLayout.js +16 -8
  208. package/esm/presentation/layout/DefaultDashboardLayout.js.map +1 -1
  209. package/esm/presentation/localization/bundles/en-US.json +10 -0
  210. package/esm/presentation/widget/common/configuration/ConfigurationBubble.d.ts.map +1 -1
  211. package/esm/presentation/widget/common/configuration/ConfigurationBubble.js +2 -1
  212. package/esm/presentation/widget/common/configuration/ConfigurationBubble.js.map +1 -1
  213. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertAttributeSelecxt.d.ts +14 -0
  214. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertAttributeSelecxt.d.ts.map +1 -0
  215. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertAttributeSelecxt.js +139 -0
  216. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertAttributeSelecxt.js.map +1 -0
  217. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertsList.d.ts +2 -1
  218. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertsList.d.ts.map +1 -1
  219. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertsList.js +2 -2
  220. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertsList.js.map +1 -1
  221. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertsListItem.d.ts +2 -1
  222. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertsListItem.d.ts.map +1 -1
  223. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertsListItem.js +11 -3
  224. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertsListItem.js.map +1 -1
  225. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/CreateAlert.d.ts +7 -2
  226. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/CreateAlert.d.ts.map +1 -1
  227. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/CreateAlert.js +2 -2
  228. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/CreateAlert.js.map +1 -1
  229. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/EditAlert.d.ts +7 -2
  230. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/EditAlert.d.ts.map +1 -1
  231. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/EditAlert.js +12 -4
  232. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/EditAlert.js.map +1 -1
  233. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useAttributeValuesFromExecResults.d.ts +12 -0
  234. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useAttributeValuesFromExecResults.d.ts.map +1 -0
  235. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useAttributeValuesFromExecResults.js +86 -0
  236. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useAttributeValuesFromExecResults.js.map +1 -0
  237. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useEditAlert.d.ts +6 -3
  238. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useEditAlert.d.ts.map +1 -1
  239. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useEditAlert.js +6 -2
  240. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useEditAlert.js.map +1 -1
  241. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useInsightAlerting.d.ts +5 -0
  242. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useInsightAlerting.d.ts.map +1 -1
  243. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useInsightAlerting.js +21 -4
  244. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useInsightAlerting.js.map +1 -1
  245. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/utils.d.ts +19 -2
  246. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/utils.d.ts.map +1 -1
  247. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/utils.js +204 -2
  248. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/utils.js.map +1 -1
  249. package/esm/presentation/widget/insight/configuration/InsightAlerts.d.ts.map +1 -1
  250. package/esm/presentation/widget/insight/configuration/InsightAlerts.js +4 -4
  251. package/esm/presentation/widget/insight/configuration/InsightAlerts.js.map +1 -1
  252. package/esm/presentation/widget/insight/types.d.ts +7 -1
  253. package/esm/presentation/widget/insight/types.d.ts.map +1 -1
  254. package/esm/presentation/widget/insight/types.js.map +1 -1
  255. package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/DashboardInsightMenu/DashboardInsightMenuBubble.d.ts.map +1 -1
  256. package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/DashboardInsightMenu/DashboardInsightMenuBubble.js +2 -1
  257. package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/DashboardInsightMenu/DashboardInsightMenuBubble.js.map +1 -1
  258. package/esm/presentation/widget/widget/DefaultDashboardWidget.d.ts.map +1 -1
  259. package/esm/presentation/widget/widget/DefaultDashboardWidget.js +8 -3
  260. package/esm/presentation/widget/widget/DefaultDashboardWidget.js.map +1 -1
  261. package/esm/presentation/widget/widget/InsightWidget/useAlertingAndScheduling.d.ts.map +1 -1
  262. package/esm/presentation/widget/widget/InsightWidget/useAlertingAndScheduling.js +11 -2
  263. package/esm/presentation/widget/widget/InsightWidget/useAlertingAndScheduling.js.map +1 -1
  264. package/esm/presentation/widget/widget/types.d.ts +7 -1
  265. package/esm/presentation/widget/widget/types.d.ts.map +1 -1
  266. package/esm/sdk-ui-dashboard.d.ts +19 -8
  267. package/package.json +15 -15
  268. package/styles/css/alerting.css +59 -5
  269. package/styles/css/alerting.css.map +1 -1
  270. package/styles/css/dashboard.css +117 -0
  271. package/styles/css/dashboard.css.map +1 -1
  272. package/styles/css/dragAndDrop.css +5 -0
  273. package/styles/css/dragAndDrop.css.map +1 -1
  274. package/styles/css/flexibleLayout.css +425 -0
  275. package/styles/css/flexibleLayout.css.map +1 -0
  276. package/styles/css/layout.css +111 -0
  277. package/styles/css/layout.css.map +1 -1
  278. package/styles/css/main.css +188 -6
  279. package/styles/css/main.css.map +1 -1
  280. package/styles/css/visualization.css +7 -1
  281. package/styles/css/visualization.css.map +1 -1
  282. package/styles/scss/alerting.scss +69 -5
  283. package/styles/scss/dashboard.scss +12 -0
  284. package/styles/scss/dragAndDrop.scss +8 -0
  285. package/styles/scss/flexibleLayout.scss +410 -0
  286. package/styles/scss/layout.scss +77 -0
  287. package/styles/scss/visualization.scss +10 -2
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DashboardLayoutWidget.js","sourceRoot":"","sources":["../../../src/presentation/flexibleLayout/DashboardLayoutWidget.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,EAIH,eAAe,EACf,WAAW,EACX,gBAAgB,EAChB,6BAA6B,GAChC,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAA0B,iCAAiC,EAAE,MAAM,sBAAsB,CAAC;AACjG,OAAO,KAAK,EAAE,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AACtC,OAAO,EAAE,MAAM,YAAY,CAAC;AAC5B,OAAO,EAEH,cAAc,EACd,8BAA8B,EAC9B,iBAAiB,EACjB,kBAAkB,EAClB,cAAc,EACd,SAAS,EACT,oBAAoB,EACpB,oBAAoB,EACpB,yBAAyB,EACzB,yBAAyB,EACzB,yBAAyB,EACzB,cAAc,EACd,kBAAkB,GACrB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,sBAAsB,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AACrF,OAAO,EAAE,WAAW,EAAE,wBAAwB,EAAE,MAAM,iCAAiC,CAAC;AACxF,OAAO,EAAE,oBAAoB,EAAE,MAAM,sCAAsC,CAAC;AAE5E,OAAO,EAAE,6BAA6B,EAAE,MAAM,+BAA+B,CAAC;AAC9E,OAAO,EAGH,OAAO,EACP,aAAa,EACb,gBAAgB,EAChB,mBAAmB,EAC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Z,SAAS;YACT,KAAK,EAAE,EAAE;YACT,mBAAmB;YACnB,IAAI,EAAE,aAAa,CAAC,IAAI,CAAC;SAC5B,CAAC;IACN,CAAC;AACL,CAAC"}
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ import { IDashboardLayoutRenderProps } from "./interfaces.js";
3
+ /**
4
+ * DashboardLayout is customizable component for rendering {@link IDashboardLayout}.
5
+ *
6
+ * @alpha
7
+ */
8
+ export declare function DashboardLayout<TWidget>(props: IDashboardLayoutRenderProps<TWidget>): JSX.Element;
9
+ //# sourceMappingURL=DashboardLayout.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DashboardLayout.d.ts","sourceRoot":"","sources":["../../../../src/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayout.tsx"],"names":[],"mappings":";AAUA,OAAO,EACH,2BAA2B,EAI9B,MAAM,iBAAiB,CAAC;AAoBzB;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,OAAO,EAAE,KAAK,EAAE,2BAA2B,CAAC,OAAO,CAAC,GAAG,GAAG,CAAC,OAAO,CAwGjG"}
@@ -0,0 +1,54 @@
1
+ import cx from "classnames";
2
+ import isEqual from "lodash/isEqual.js";
3
+ import React, { useCallback, useMemo } from "react";
4
+ import { DashboardLayoutFacade } from "../../../_staging/dashboard/fluidLayout/facade/layout.js";
5
+ import { emptyDOMRect } from "../constants.js";
6
+ import { DashboardLayoutSection } from "./DashboardLayoutSection.js";
7
+ import { getLayoutWithoutGridHeights, getResizedItemPositions, unifyDashboardLayoutItemHeights, } from "./utils/sizing.js";
8
+ import { useScreenSize } from "./useScreenSize.js";
9
+ import { GridLayoutElement } from "./GridLayoutElement.js";
10
+ const removeHeights = (layout, enableCustomHeight) => {
11
+ if (enableCustomHeight) {
12
+ return layout;
13
+ }
14
+ return getLayoutWithoutGridHeights(layout);
15
+ };
16
+ const defaultSectionKeyGetter = ({ section }) => section.index().toString();
17
+ /**
18
+ * DashboardLayout is customizable component for rendering {@link IDashboardLayout}.
19
+ *
20
+ * @alpha
21
+ */
22
+ export function DashboardLayout(props) {
23
+ const { layout, screen: providedScreen, parentLayoutItemSize, sectionKeyGetter = defaultSectionKeyGetter, sectionRenderer, sectionHeaderRenderer, itemKeyGetter, itemRenderer, widgetRenderer, gridRowRenderer, className, onMouseLeave, enableCustomHeight, renderMode = "view", } = props;
24
+ const layoutRef = React.useRef(null);
25
+ const { layoutFacade, resizedItemPositions } = useMemo(() => {
26
+ const updatedLayout = removeHeights(layout, !!enableCustomHeight);
27
+ const layoutFacade = DashboardLayoutFacade.for(unifyDashboardLayoutItemHeights(updatedLayout));
28
+ const resizedItemPositions = getResizedItemPositions(layout, layoutFacade.raw());
29
+ return { layoutFacade, resizedItemPositions };
30
+ }, [layout, enableCustomHeight]);
31
+ const sectionRendererWrapped = useCallback((renderProps) => sectionRenderer ? (sectionRenderer({
32
+ ...renderProps,
33
+ })) : (React.createElement(renderProps.DefaultSectionRenderer, { ...renderProps })), [sectionRenderer]);
34
+ const getLayoutDimensions = useCallback(function () {
35
+ return layoutRef?.current ? layoutRef.current.getBoundingClientRect() : emptyDOMRect;
36
+ }, []);
37
+ const widgetRendererWrapped = useCallback((renderProps) => {
38
+ const isResizedByLayoutSizingStrategy = resizedItemPositions.some((position) => isEqual(position, [renderProps.item.section().index(), renderProps.item.index()]));
39
+ return widgetRenderer ? (widgetRenderer({
40
+ ...renderProps,
41
+ isResizedByLayoutSizingStrategy,
42
+ getLayoutDimensions: getLayoutDimensions,
43
+ })) : (React.createElement(renderProps.DefaultWidgetRenderer, { ...renderProps, isResizedByLayoutSizingStrategy: isResizedByLayoutSizingStrategy, getLayoutDimensions: getLayoutDimensions }));
44
+ }, [resizedItemPositions, widgetRenderer]);
45
+ const detectedScreenSize = useScreenSize(layoutRef);
46
+ const screenSize = providedScreen ?? detectedScreenSize;
47
+ const isNestedLayout = parentLayoutItemSize !== undefined;
48
+ return (React.createElement(GridLayoutElement, { type: isNestedLayout ? "nested" : "root", screen: screenSize, layoutItemSize: parentLayoutItemSize, className: cx({
49
+ "gd-dashboards": !isNestedLayout,
50
+ }, className), onMouseLeave: onMouseLeave, ref: layoutRef }, layoutFacade.sections().map((section) => {
51
+ return (React.createElement(DashboardLayoutSection, { key: sectionKeyGetter({ section, screen: screenSize }), section: section, sectionRenderer: sectionRendererWrapped, sectionHeaderRenderer: sectionHeaderRenderer, itemKeyGetter: itemKeyGetter, itemRenderer: itemRenderer, gridRowRenderer: gridRowRenderer, widgetRenderer: widgetRendererWrapped, screen: screenSize, renderMode: renderMode, getLayoutDimensions: getLayoutDimensions, parentLayoutItemSize: parentLayoutItemSize }));
52
+ })));
53
+ }
54
+ //# sourceMappingURL=DashboardLayout.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DashboardLayout.js","sourceRoot":"","sources":["../../../../src/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayout.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,YAAY,CAAC;AAC5B,OAAO,OAAO,MAAM,mBAAmB,CAAC;AACxC,OAAO,KAAK,EAAE,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAEpD,OAAO,EAAE,qBAAqB,EAAE,MAAM,0DAA0D,CAAC;AACjG,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAE/C,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AAOrE,OAAO,EACH,2BAA2B,EAC3B,uBAAuB,EACvB,+BAA+B,GAClC,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAE3D,MAAM,aAAa,GAAG,CAAW,MAAiC,EAAE,kBAA2B,EAAE,EAAE;IAC/F,IAAI,kBAAkB,EAAE,CAAC;QACrB,OAAO,MAAM,CAAC;IAClB,CAAC;IAED,OAAO,2BAA2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AE,YAAY,EAC1B,GAAG,EAAE,SAAS,IAEb,YAAY,CAAC,QAAQ,EAAE,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE;QACrC,OAAO,CACH,oBAAC,sBAAsB,IACnB,GAAG,EAAE,gBAAgB,CAAC,EAAE,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,CAAC,EACtD,OAAO,EAAE,OAAO,EAChB,eAAe,EAAE,sBAAsB,EACvC,qBAAqB,EAAE,qBAAqB,EAC5C,aAAa,EAAE,aAAa,EAC5B,YAAY,EAAE,YAAY,EAC1B,eAAe,EAAE,eAAe,EAChC,cAAc,EAAE,qBAAqB,EACrC,MAAM,EAAE,UAAU,EAClB,UAAU,EAAE,UAAU,EACtB,mBAAmB,EAAE,mBAAmB,EACxC,oBAAoB,EAAE,oBAAoB,GAC5C,CACL,CAAC;IACN,CAAC,CAAC,CACc,CACvB,CAAC;AACN,CAAC"}
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { IDashboardLayoutSectionHeaderRenderProps } from "./interfaces.js";
3
+ export declare function DashboardLayoutEditSectionHeaderRenderer(props: IDashboardLayoutSectionHeaderRenderProps<any>): JSX.Element | null;
4
+ //# sourceMappingURL=DashboardLayoutEditSectionHeaderRenderer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DashboardLayoutEditSectionHeaderRenderer.d.ts","sourceRoot":"","sources":["../../../../src/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutEditSectionHeaderRenderer.tsx"],"names":[],"mappings":";AAUA,OAAO,EAAE,wCAAwC,EAAE,MAAM,iBAAiB,CAAC;AAK3E,wBAAgB,wCAAwC,CACpD,KAAK,EAAE,wCAAwC,CAAC,GAAG,CAAC,GACrD,GAAG,CAAC,OAAO,GAAG,IAAI,CAqCpB"}
@@ -0,0 +1,23 @@
1
+ // (C) 2019-2024 GoodData Corporation
2
+ import * as React from "react";
3
+ import { SectionHotspot } from "../../dragAndDrop/index.js";
4
+ import { isInitialPlaceholderWidget } from "../../../widgets/index.js";
5
+ import { DashboardLayoutItemViewRenderer } from "./DashboardLayoutItemViewRenderer.js";
6
+ import { getRefsForSection } from "../refs.js";
7
+ import { selectIsSectionInsertedByPlugin, useDashboardSelector } from "../../../model/index.js";
8
+ import { DashboardLayoutSectionHeader } from "./DashboardLayoutSectionHeader.js";
9
+ import { SectionHeaderEditable } from "./EditableHeader/SectionHeaderEditable.js";
10
+ import { buildEmptyItemFacadeWithSetSize } from "./utils/emptyFacade.js";
11
+ import { determineSizeForScreen } from "./utils/sizing.js";
12
+ export function DashboardLayoutEditSectionHeaderRenderer(props) {
13
+ const { section, screen, parentLayoutItemSize } = props;
14
+ const sectionHeader = section.header();
15
+ const isInitialDropzone = section.index() === 0 && section.items().every((i) => isInitialPlaceholderWidget(i.widget()));
16
+ const refs = getRefsForSection(section);
17
+ const isEditingDisabled = useDashboardSelector(selectIsSectionInsertedByPlugin(refs));
18
+ const gridWidth = determineSizeForScreen(screen, parentLayoutItemSize);
19
+ const emptyItem = buildEmptyItemFacadeWithSetSize(gridWidth);
20
+ return (React.createElement(DashboardLayoutItemViewRenderer, { DefaultItemRenderer: DashboardLayoutItemViewRenderer, item: emptyItem, screen: screen },
21
+ React.createElement(DashboardLayoutSectionHeader, { title: sectionHeader?.title, description: sectionHeader?.description, renderBeforeHeader: !isInitialDropzone && React.createElement(SectionHotspot, { index: section.index(), targetPosition: "above" }), renderHeader: !isInitialDropzone && !isEditingDisabled ? (React.createElement(SectionHeaderEditable, { title: sectionHeader?.title || "", description: sectionHeader?.description || "", index: section.index() })) : undefined })));
22
+ }
23
+ //# sourceMappingURL=DashboardLayoutEditSectionHeaderRenderer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DashboardLayoutEditSectionHeaderRenderer.js","sourceRoot":"","sources":["../../../../src/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutEditSectionHeaderRenderer.tsx"],"names":[],"mappings":"AAAA,qCAAqC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,EACpD,IAAI,EAAE,SAAS,EACf,MAAM,EAAE,MAAM;QAEd,oBAAC,4BAA4B,IACzB,KAAK,EAAE,aAAa,EAAE,KAAK,EAC3B,WAAW,EAAE,aAAa,EAAE,WAAW,EACvC,kBAAkB,EACd,CAAC,iBAAiB,IAAI,oBAAC,cAAc,IAAC,KAAK,EAAE,OAAO,CAAC,KAAK,EAAE,EAAE,cAAc,EAAC,OAAO,GAAG,EAE3F,YAAY,EACR,CAAC,iBAAiB,IAAI,CAAC,iBAAiB,CAAC,CAAC,CAAC,CACvC,oBAAC,qBAAqB,IAClB,KAAK,EAAE,aAAa,EAAE,KAAK,IAAI,EAAE,EACjC,WAAW,EAAE,aAAa,EAAE,WAAW,IAAI,EAAE,EAC7C,KAAK,EAAE,OAAO,CAAC,KAAK,EAAE,GACxB,CACL,CAAC,CAAC,CAAC,SAAS,GAEnB,CAC4B,CACrC,CAAC;AACN,CAAC"}
@@ -0,0 +1,21 @@
1
+ /// <reference types="react" />
2
+ import { ScreenSize } from "@gooddata/sdk-model";
3
+ import { RenderMode } from "../../../types.js";
4
+ import { IDashboardLayoutItemFacade, IDashboardLayoutSectionFacade } from "../../../_staging/dashboard/fluidLayout/facade/interfaces.js";
5
+ import { IDashboardLayoutGridRowRenderer, IDashboardLayoutItemKeyGetter, IDashboardLayoutItemRenderer, IDashboardLayoutWidgetRenderer } from "./interfaces.js";
6
+ /**
7
+ * @alpha
8
+ */
9
+ export interface DashboardLayoutGridRowProps<TWidget> {
10
+ screen: ScreenSize;
11
+ section: IDashboardLayoutSectionFacade<TWidget>;
12
+ itemKeyGetter?: IDashboardLayoutItemKeyGetter<TWidget>;
13
+ itemRenderer?: IDashboardLayoutItemRenderer<TWidget>;
14
+ widgetRenderer: IDashboardLayoutWidgetRenderer<TWidget>;
15
+ gridRowRenderer?: IDashboardLayoutGridRowRenderer<TWidget>;
16
+ getLayoutDimensions: () => DOMRect;
17
+ items: IDashboardLayoutItemFacade<TWidget>[];
18
+ renderMode: RenderMode;
19
+ }
20
+ export declare function DashboardLayoutGridRow<TWidget>(props: DashboardLayoutGridRowProps<TWidget>): JSX.Element;
21
+ //# sourceMappingURL=DashboardLayoutGridRow.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DashboardLayoutGridRow.d.ts","sourceRoot":"","sources":["../../../../src/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutGridRow.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAGjD,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EACH,0BAA0B,EAC1B,6BAA6B,EAChC,MAAM,8DAA8D,CAAC;AAGtE,OAAO,EACH,+BAA+B,EAC/B,6BAA6B,EAC7B,4BAA4B,EAC5B,8BAA8B,EACjC,MAAM,iBAAiB,CAAC;AAEzB;;GAEG;AACH,MAAM,WAAW,2BAA2B,CAAC,OAAO;IAChD,MAAM,EAAE,UAAU,CAAC;IACnB,OAAO,EAAE,6BAA6B,CAAC,OAAO,CAAC,CAAC;IAChD,aAAa,CAAC,EAAE,6BAA6B,CAAC,OAAO,CAAC,CAAC;IACvD,YAAY,CAAC,EAAE,4BAA4B,CAAC,OAAO,CAAC,CAAC;IACrD,cAAc,EAAE,8BAA8B,CAAC,OAAO,CAAC,CAAC;IACxD,eAAe,CAAC,EAAE,+BAA+B,CAAC,OAAO,CAAC,CAAC;IAC3D,mBAAmB,EAAE,MAAM,OAAO,CAAC;IACnC,KAAK,EAAE,0BAA0B,CAAC,OAAO,CAAC,EAAE,CAAC;IAC7C,UAAU,EAAE,UAAU,CAAC;CAC1B;AAID,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,KAAK,EAAE,2BAA2B,CAAC,OAAO,CAAC,GAAG,GAAG,CAAC,OAAO,CAmCxG"}
@@ -0,0 +1,17 @@
1
+ import React from "react";
2
+ import { DashboardLayoutItem } from "./DashboardLayoutItem.js";
3
+ const defaultItemKeyGetter = ({ item }) => item.index().toString();
4
+ export function DashboardLayoutGridRow(props) {
5
+ const { section, itemKeyGetter = defaultItemKeyGetter, gridRowRenderer, itemRenderer, widgetRenderer, screen, items, renderMode, } = props;
6
+ const rowItems = items.map((item) => (React.createElement(DashboardLayoutItem, { key: itemKeyGetter({ item, screen }), item: item, itemRenderer: itemRenderer, widgetRenderer: widgetRenderer, screen: screen })));
7
+ return (React.createElement(React.Fragment, null, gridRowRenderer
8
+ ? gridRowRenderer({
9
+ children: rowItems,
10
+ screen,
11
+ section,
12
+ items,
13
+ renderMode,
14
+ })
15
+ : rowItems));
16
+ }
17
+ //# sourceMappingURL=DashboardLayoutGridRow.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DashboardLayoutGridRow.js","sourceRoot":"","sources":["../../../../src/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutGridRow.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAQ1B,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAuB/D,MAAM,oBAAoB,GAA2C,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE,CAAC;AAE3G,MAAM,UAAU,sBAAsB,CAAU,KAA2C;IACvF,MAAM,EACF,OAAO,EACP,aAAa,GAAG,oBAAoB,EACpC,eAAe,EACf,YAAY,EACZ,cAAc,EACd,MAAM,EACN,KAAK,EACL,UAAU,GACb,GAAG,KAAK,CAAC;IAEV,MAAM,QAAQ,GAAG,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CACjC,oBAAC,mBAAmB,IAChB,GAAG,EAAE,aAAa,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC,EACpC,IAAI,EAAE,IAAI,EACV,YAAY,EAAE,YAAY,EAC1B,cAAc,EAAE,cAAc,EAC9B,MAAM,EAAE,MAAM,GAChB,CACL,CAAC,CAAC;IAEH,OAAO,CACH,0CACK,eAAe;QACZ,CAAC,CAAC,eAAe,CAAC;YACZ,QAAQ,EAAE,QAAQ;YAClB,MAAM;YACN,OAAO;YACP,KAAK;YACL,UAAU;SACb,CAAC;QACJ,CAAC,CAAC,QAAQ,CACf,CACN,CAAC;AACN,CAAC"}
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ import { DashboardLayoutGridRowProps } from "./DashboardLayoutGridRow.js";
3
+ import { IDashboardLayoutItemFacade } from "../../../_staging/dashboard/fluidLayout/facade/interfaces.js";
4
+ export declare function DashboardLayoutGridRowEdit<TWidget>(props: DashboardLayoutGridRowProps<TWidget> & {
5
+ itemsInRowsByIndex: [number, IDashboardLayoutItemFacade<TWidget>[]][];
6
+ }): JSX.Element;
7
+ //# sourceMappingURL=DashboardLayoutGridRowEdit.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DashboardLayoutGridRowEdit.d.ts","sourceRoot":"","sources":["../../../../src/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutGridRowEdit.tsx"],"names":[],"mappings":";AAKA,OAAO,EAAE,2BAA2B,EAAE,MAAM,6BAA6B,CAAC;AAG1E,OAAO,EAAE,0BAA0B,EAAE,MAAM,8DAA8D,CAAC;AAI1G,wBAAgB,0BAA0B,CAAC,OAAO,EAC9C,KAAK,EAAE,2BAA2B,CAAC,OAAO,CAAC,GAAG;IAC1C,kBAAkB,EAAE,CAAC,MAAM,EAAE,0BAA0B,CAAC,OAAO,CAAC,EAAE,CAAC,EAAE,CAAC;CACzE,GACF,GAAG,CAAC,OAAO,CA+Db"}
@@ -0,0 +1,39 @@
1
+ // (C) 2007-2024 GoodData Corporation
2
+ import React, { useMemo } from "react";
3
+ import reverse from "lodash/fp/reverse.js";
4
+ import { HeightResizerHotspot, useIsDraggingWidget } from "../../dragAndDrop/index.js";
5
+ import { DashboardLayoutItem } from "./DashboardLayoutItem.js";
6
+ const defaultItemKeyGetter = ({ item }) => item.index().toString();
7
+ export function DashboardLayoutGridRowEdit(props) {
8
+ const { section, itemKeyGetter = defaultItemKeyGetter, gridRowRenderer, itemRenderer, widgetRenderer, getLayoutDimensions, screen, items, renderMode, itemsInRowsByIndex, } = props;
9
+ const isDraggingWidget = useIsDraggingWidget();
10
+ const rowItems = useMemo(() => items.map((item) => (React.createElement(DashboardLayoutItem, { key: itemKeyGetter({ item, screen }), item: item, itemRenderer: itemRenderer, widgetRenderer: widgetRenderer, screen: screen }))), [itemKeyGetter, itemRenderer, items, screen, widgetRenderer]);
11
+ const extendedRows = useMemo(() => isDraggingWidget
12
+ ? rowItems
13
+ : reverse(itemsInRowsByIndex).reduce((acc, [index, itemsInRow]) => {
14
+ return splice(acc, index + 1, 0, React.createElement(HeightResizerHotspot, { key: `HeightResizerHotspot-${index}`, screen: screen, getLayoutDimensions: getLayoutDimensions, section: section, items: itemsInRow }));
15
+ }, rowItems), [isDraggingWidget, rowItems, itemsInRowsByIndex, screen, getLayoutDimensions, section]);
16
+ return (React.createElement(React.Fragment, null, gridRowRenderer
17
+ ? gridRowRenderer({
18
+ children: extendedRows,
19
+ screen,
20
+ section,
21
+ items,
22
+ renderMode,
23
+ })
24
+ : extendedRows));
25
+ }
26
+ function splice(arr, start, deleteCount, ...addItem) {
27
+ const result = [];
28
+ if (start > 0) {
29
+ result.push(...arr.slice(0, start));
30
+ }
31
+ result.push(...addItem);
32
+ const len = result.length - addItem.length;
33
+ const count = deleteCount <= 0 ? len : len + deleteCount;
34
+ if (arr[count]) {
35
+ result.push(...arr.slice(count));
36
+ }
37
+ return result;
38
+ }
39
+ //# sourceMappingURL=DashboardLayoutGridRowEdit.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DashboardLayoutGridRowEdit.js","sourceRoot":"","sources":["../../../../src/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutGridRowEdit.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,KAAK,EAAE,E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ize } from "@gooddata/sdk-model";
3
+ import { IDashboardLayoutItemRenderer, IDashboardLayoutWidgetRenderer } from "./interfaces.js";
4
+ import { IDashboardLayoutItemFacade } from "../../../_staging/dashboard/fluidLayout/facade/interfaces.js";
5
+ /**
6
+ * @alpha
7
+ */
8
+ export interface IDashboardLayoutItemProps<TWidget> {
9
+ item: IDashboardLayoutItemFacade<TWidget>;
10
+ screen: ScreenSize;
11
+ itemRenderer?: IDashboardLayoutItemRenderer<TWidget>;
12
+ widgetRenderer: IDashboardLayoutWidgetRenderer<TWidget>;
13
+ }
14
+ export declare function DashboardLayoutItem<TWidget>(props: IDashboardLayoutItemProps<TWidget>): JSX.Element;
15
+ //# sourceMappingURL=DashboardLayoutItem.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DashboardLayoutItem.d.ts","sourceRoot":"","sources":["../../../../src/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutItem.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EACH,4BAA4B,EAC5B,8BAA8B,EAEjC,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,0BAA0B,EAAE,MAAM,8DAA8D,CAAC;AAI1G;;GAEG;AACH,MAAM,WAAW,yBAAyB,CAAC,OAAO;IAC9C,IAAI,EAAE,0BAA0B,CAAC,OAAO,CAAC,CAAC;IAC1C,MAAM,EAAE,UAAU,CAAC;IACnB,YAAY,CAAC,EAAE,4BAA4B,CAAC,OAAO,CAAC,CAAC;IACrD,cAAc,EAAE,8BAA8B,CAAC,OAAO,CAAC,CAAC;CAC3D;AAMD,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,KAAK,EAAE,yBAAyB,CAAC,OAAO,CAAC,GAAG,GAAG,CAAC,OAAO,CAcnG"}
@@ -0,0 +1,19 @@
1
+ // (C) 2007-2024 GoodData Corporation
2
+ import React from "react";
3
+ import { DashboardLayoutItemRenderer } from "./DashboardLayoutItemRenderer.js";
4
+ import { DashboardLayoutWidgetRenderer } from "./DashboardLayoutWidgetRenderer.js";
5
+ const defaultItemRenderer = (props) => (React.createElement(DashboardLayoutItemRenderer, { ...props }));
6
+ export function DashboardLayoutItem(props) {
7
+ const { item, itemRenderer = defaultItemRenderer, widgetRenderer, screen } = props;
8
+ const renderProps = {
9
+ item,
10
+ screen,
11
+ DefaultWidgetRenderer: DashboardLayoutWidgetRenderer,
12
+ };
13
+ return itemRenderer({
14
+ ...props,
15
+ DefaultItemRenderer: DashboardLayoutItemRenderer,
16
+ children: widgetRenderer(renderProps),
17
+ });
18
+ }
19
+ //# sourceMappingURL=DashboardLayoutItem.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DashboardLayoutItem.js","sourceRoot":"","sources":["../../../../src/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutItem.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AAErC,OAAO,KAAK,MAAM,OAAO,CAAC;AAQ1B,OAAO,EAAE,2BAA2B,EAAE,MAAM,kCAAkC,CAAC;AAC/E,OAAO,EAAE,6BAA6B,EAAE,MAAM,oCAAoC,CAAC;AAYnF,MAAM,mBAAmB,GAA0C,CAAC,KAAK,EAAE,EAAE,CAAC,CAC1E,oBAAC,2BAA2B,OAAK,KAAK,GAAI,CAC7C,CAAC;AAEF,MAAM,UAAU,mBAAmB,CAAU,KAAyC;IAClF,MAAM,EAAE,IAAI,EAAE,YAAY,GAAG,mBAAmB,EAAE,cAAc,EAAE,MAAM,EAAE,GAAG,KAAK,CAAC;IAEnF,MAAM,WAAW,GAAG;QAChB,IAAI;QACJ,MAAM;QACN,qBAAqB,EAAE,6BAA6B;KACT,CAAC;IAEhD,OAAO,YAAY,CAAC;QAChB,GAAG,KAAK;QACR,mBAAmB,EAAE,2BAA2B;QAChD,QAAQ,EAAE,cAAc,CAAC,WAAW,CAAC;KACxC,CAAC,CAAC;AACP,CAAC"}
@@ -0,0 +1,6 @@
1
+ import { IDashboardLayoutItemRenderer } from "./interfaces.js";
2
+ /**
3
+ * @internal
4
+ */
5
+ export declare const DashboardLayoutItemRenderer: IDashboardLayoutItemRenderer<unknown>;
6
+ //# sourceMappingURL=DashboardLayoutItemRenderer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DashboardLayoutItemRenderer.d.ts","sourceRoot":"","sources":["../../../../src/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutItemRenderer.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,4BAA4B,EAAE,MAAM,iBAAiB,CAAC;AAsC/D;;GAEG;AACH,eAAO,MAAM,2BAA2B,uCAGG,CAAC"}
@@ -0,0 +1,33 @@
1
+ // (C) 2007-2024 GoodData Corporation
2
+ import cx from "classnames";
3
+ import React from "react";
4
+ import { RowEndHotspot, WidgetDropZoneColumn, useIsDraggingCurrentItem } from "../../dragAndDrop/index.js";
5
+ import { DashboardLayoutItemViewRenderer } from "./DashboardLayoutItemViewRenderer.js";
6
+ import { renderModeAware } from "../../componentDefinition/index.js";
7
+ import { isCustomWidgetBase } from "../../../model/index.js";
8
+ function getLayoutCoordinates(item) {
9
+ return {
10
+ sectionIndex: item.section()?.index(),
11
+ itemIndex: item.index(),
12
+ };
13
+ }
14
+ const DashboardLayoutItemEditRenderer = (props) => {
15
+ const { item, screen, children } = props;
16
+ const { sectionIndex, itemIndex } = getLayoutCoordinates(item);
17
+ const isDraggingCurrentItem = useIsDraggingCurrentItem(sectionIndex, itemIndex);
18
+ const isCustomWidget = isCustomWidgetBase(item.widget());
19
+ return (React.createElement(React.Fragment, null,
20
+ isCustomWidget ? null : (React.createElement(WidgetDropZoneColumn, { screen: screen, sectionIndex: sectionIndex, itemIndex: itemIndex })),
21
+ React.createElement(DashboardLayoutItemViewRenderer, { ...props, className: cx({
22
+ "current-dragging-item": isDraggingCurrentItem,
23
+ }) }, children),
24
+ isCustomWidget ? null : React.createElement(RowEndHotspot, { item: item, screen: screen })));
25
+ };
26
+ /**
27
+ * @internal
28
+ */
29
+ export const DashboardLayoutItemRenderer = renderModeAware({
30
+ view: DashboardLayoutItemViewRenderer,
31
+ edit: DashboardLayoutItemEditRenderer,
32
+ });
33
+ //# sourceMappingURL=DashboardLayoutItemRenderer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DashboardLayoutItemRenderer.js","sourceRoot":"","sources":["../../../../src/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutItemRenderer.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,EAAE,MAAM,YAAY,CAAC;AAC5B,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,aAAa,EAAE,oBAAoB,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AAC3G,OAAO,EAAE,+BAA+B,EAAE,MAAM,sCAAsC,CAAC;AAEvF,OAAO,EAAE,eAAe,EAAE,MAAM,oCAAoC,CAAC;AACrE,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAE7D,SAAS,oBAAoB,CAAC,IAAyC;IACnE,OAAO;QACH,YAAY,EAAE,IAAI,CAAC,OAAO,EAAE,EAAE,KAAK,EAAE;QACrC,SAAS,EAAE,IAAI,CAAC,KAAK,EAAE;KAC1B,CAAC;AACN,CAAC;AAED,MAAM,+BAA+B,GAA0C,CAAC,KAAK,EAAE,EAAE;IACrF,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,GAAG,KAAK,CAAC;IAEzC,MAAM,EAAE,YAAY,EAAE,SAAS,EAAE,GAAG,oBAAoB,CAAC,IAAI,CAAC,CAAC;IAE/D,MAAM,qBAAqB,GAAG,wBAAwB,CAAC,YAAY,EAAE,SAAS,CAAC,CAAC;IAEhF,MAAM,cAAc,GAAG,kBAAkB,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC,CAAC;IAEzD,OAAO,CACH;QACK,cAAc,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CACrB,oBAAC,oBAAoB,IAAC,MAAM,EAAE,MAAM,EAAE,YAAY,EAAE,YAAY,EAAE,SAAS,EAAE,SAAS,GAAI,CAC7F;QACD,oBAAC,+BAA+B,OACxB,KAAK,EACT,SAAS,EAAE,EAAE,CAAC;gBACV,uBAAuB,EAAE,qBAAqB;aACjD,CAAC,IAED,QAAQ,CACqB;QACjC,cAAc,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,oBAAC,aAAa,IAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,GAAI,CACvE,CACN,CAAC;AACN,CAAC,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,2BAA2B,GAAG,eAAe,CAAwC;IAC9F,IAAI,EAAE,+BAA+B;IACrC,IAAI,EAAE,+BAA+B;CACxC,CAA0C,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { IDashboardLayoutItemRenderer } from "./interfaces.js";
2
+ export declare const DashboardLayoutItemViewRenderer: IDashboardLayoutItemRenderer<unknown>;
3
+ //# sourceMappingURL=DashboardLayoutItemViewRenderer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DashboardLayoutItemViewRenderer.d.ts","sourceRoot":"","sources":["../../../../src/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutItemViewRenderer.tsx"],"names":[],"mappings":"AAQA,OAAO,EAAE,4BAA4B,EAAE,MAAM,iBAAiB,CAAC;AAK/D,eAAO,MAAM,+BAA+B,EAAE,4BAA4B,CAAC,OAAO,CAmCjF,CAAC"}
@@ -0,0 +1,40 @@
1
+ // (C) 2007-2024 GoodData Corporation
2
+ import React, { useMemo } from "react";
3
+ import cx from "classnames";
4
+ import isNil from "lodash/isNil.js";
5
+ import { GridLayoutElement } from "./GridLayoutElement.js";
6
+ const isHiddenStyle = { height: 0, width: 0, overflow: "hidden", flex: 0 };
7
+ export const DashboardLayoutItemViewRenderer = (props) => {
8
+ const { item, screen, children, className, minHeight = 0, isHidden } = props;
9
+ const { ratio, height } = getSizeForItem(item, screen);
10
+ const style = useMemo(() => {
11
+ let computedStyle = {
12
+ minHeight,
13
+ };
14
+ if (isHidden) {
15
+ computedStyle = {
16
+ ...computedStyle,
17
+ ...isHiddenStyle,
18
+ };
19
+ }
20
+ return computedStyle;
21
+ }, [minHeight, isHidden]);
22
+ return (React.createElement(GridLayoutElement, { type: "item", screen: screen, layoutItemSize: item.size(), className: cx({
23
+ [`s-fluid-layout-column-ratio-${ratio}`]: !isNil(ratio),
24
+ [`s-fluid-layout-column-height-${height}`]: !isNil(height),
25
+ }, className), style: style }, children));
26
+ };
27
+ function getSizeForItem(item, screen) {
28
+ const size = item.size();
29
+ const currentScreenSizeConfiguration = item.sizeForScreen(screen);
30
+ const ratio = currentScreenSizeConfiguration?.heightAsRatio;
31
+ const height = currentScreenSizeConfiguration?.gridHeight;
32
+ const width = currentScreenSizeConfiguration?.gridWidth;
33
+ return {
34
+ height,
35
+ width,
36
+ ratio,
37
+ size,
38
+ };
39
+ }
40
+ //# sourceMappingURL=DashboardLayoutItemViewRenderer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DashboardLayoutItemViewRenderer.js","sourceRoot":"","sources":["../../../../src/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutItemViewRenderer.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EAAE,MAAM,YAAY,CAAC;AAC5B,OAAO,KAAK,MAAM,iBAAiB,CAAC;AAMpC,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAE3D,MAAM,aAAa,GAAG,EAAE,MAAM,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,EAAE,CAAC;AAE3E,MAAM,CAAC,MAAM,+BAA+B,GAA0C,CAAC,KAAK,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IAExD,OAAO;QACH,MAAM;QACN,KAAK;QACL,KAAK;QACL,IAAI;KACP,CAAC;AACN,CAAC"}
@@ -0,0 +1,25 @@
1
+ /// <reference types="react" />
2
+ import { ScreenSize, IDashboardLayoutSizeByScreenSize } from "@gooddata/sdk-model";
3
+ import { RenderMode } from "../../../types.js";
4
+ import { IDashboardLayoutSectionFacade } from "../../../_staging/dashboard/fluidLayout/facade/interfaces.js";
5
+ import { IDashboardLayoutGridRowRenderer, IDashboardLayoutItemKeyGetter, IDashboardLayoutItemRenderer, IDashboardLayoutSectionHeaderRenderer, IDashboardLayoutSectionKeyGetter, IDashboardLayoutSectionRenderer, IDashboardLayoutWidgetRenderer } from "./interfaces.js";
6
+ /**
7
+ * @alpha
8
+ */
9
+ export interface IDashboardLayoutSectionProps<TWidget> {
10
+ section: IDashboardLayoutSectionFacade<TWidget>;
11
+ sectionKeyGetter?: IDashboardLayoutSectionKeyGetter<TWidget>;
12
+ sectionRenderer?: IDashboardLayoutSectionRenderer<TWidget>;
13
+ sectionHeaderRenderer?: IDashboardLayoutSectionHeaderRenderer<TWidget>;
14
+ itemKeyGetter?: IDashboardLayoutItemKeyGetter<TWidget>;
15
+ itemRenderer?: IDashboardLayoutItemRenderer<TWidget>;
16
+ widgetRenderer: IDashboardLayoutWidgetRenderer<TWidget>;
17
+ gridRowRenderer?: IDashboardLayoutGridRowRenderer<TWidget>;
18
+ getLayoutDimensions: () => DOMRect;
19
+ screen: ScreenSize;
20
+ renderMode: RenderMode;
21
+ isDraggingWidget?: boolean;
22
+ parentLayoutItemSize?: IDashboardLayoutSizeByScreenSize;
23
+ }
24
+ export declare function DashboardLayoutSection<TWidget>(props: IDashboardLayoutSectionProps<TWidget>): JSX.Element;
25
+ //# sourceMappingURL=DashboardLayoutSection.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DashboardLayoutSection.d.ts","sourceRoot":"","sources":["../../../../src/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutSection.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,UAAU,EAAE,gCAAgC,EAAE,MAAM,qBAAqB,CAAC;AAGnF,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAEH,6BAA6B,EAChC,MAAM,8DAA8D,CAAC;AAItE,OAAO,EACH,+BAA+B,EAC/B,6BAA6B,EAC7B,4BAA4B,EAC5B,qCAAqC,EACrC,gCAAgC,EAChC,+BAA+B,EAC/B,8BAA8B,EACjC,MAAM,iBAAiB,CAAC;AAKzB;;GAEG;AACH,MAAM,WAAW,4BAA4B,CAAC,OAAO;IACjD,OAAO,EAAE,6BAA6B,CAAC,OAAO,CAAC,CAAC;IAChD,gBAAgB,CAAC,EAAE,gCAAgC,CAAC,OAAO,CAAC,CAAC;IAC7D,eAAe,CAAC,EAAE,+BAA+B,CAAC,OAAO,CAAC,CAAC;IAC3D,qBAAqB,CAAC,EAAE,qCAAqC,CAAC,OAAO,CAAC,CAAC;IACvE,aAAa,CAAC,EAAE,6BAA6B,CAAC,OAAO,CAAC,CAAC;IACvD,YAAY,CAAC,EAAE,4BAA4B,CAAC,OAAO,CAAC,CAAC;IACrD,cAAc,EAAE,8BAA8B,CAAC,OAAO,CAAC,CAAC;IACxD,eAAe,CAAC,EAAE,+BAA+B,CAAC,OAAO,CAAC,CAAC;IAC3D,mBAAmB,EAAE,MAAM,OAAO,CAAC;IACnC,MAAM,EAAE,UAAU,CAAC;IACnB,UAAU,EAAE,UAAU,CAAC;IACvB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,oBAAoB,CAAC,EAAE,gCAAgC,CAAC;CAC3D;AAYD,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,KAAK,EAAE,4BAA4B,CAAC,OAAO,CAAC,GAAG,GAAG,CAAC,OAAO,CA0FzG"}
@@ -0,0 +1,51 @@
1
+ import flatMap from "lodash/flatMap.js";
2
+ import React, { useMemo } from "react";
3
+ import { DashboardLayoutGridRow } from "./DashboardLayoutGridRow.js";
4
+ import { DashboardLayoutSectionHeaderRenderer } from "./DashboardLayoutSectionHeaderRenderer.js";
5
+ import { DashboardLayoutSectionRenderer } from "./DashboardLayoutSectionRenderer.js";
6
+ import { DashboardLayoutSectionOverlayController } from "../DashboardItemOverlay/DashboardItemOverlayController.js";
7
+ import last from "lodash/last.js";
8
+ import { DashboardLayoutGridRowEdit } from "./DashboardLayoutGridRowEdit.js";
9
+ const defaultSectionRenderer = (props) => (React.createElement(DashboardLayoutSectionRenderer, { ...props }));
10
+ const defaultHeaderRenderer = (props) => (React.createElement(DashboardLayoutSectionHeaderRenderer, { ...props }));
11
+ const defaultItemKeyGetter = ({ item }) => item.index().toString();
12
+ export function DashboardLayoutSection(props) {
13
+ const { section, sectionRenderer = defaultSectionRenderer, sectionHeaderRenderer = defaultHeaderRenderer, itemKeyGetter = defaultItemKeyGetter, gridRowRenderer, itemRenderer, widgetRenderer, getLayoutDimensions, screen, renderMode, parentLayoutItemSize, } = props;
14
+ const renderProps = { section, screen, renderMode, parentLayoutItemSize };
15
+ const items = useMemo(() => {
16
+ if (renderMode === "edit") {
17
+ const itemsInRowsByIndex = section
18
+ .items()
19
+ .asGridRows(screen)
20
+ .map((itemsInRow) => [last(itemsInRow).index(), itemsInRow]);
21
+ const itemsInRow = section.items().all();
22
+ return (React.createElement(DashboardLayoutGridRowEdit, { screen: screen, itemsInRowsByIndex: itemsInRowsByIndex, section: section, items: itemsInRow, gridRowRenderer: gridRowRenderer, itemKeyGetter: itemKeyGetter, itemRenderer: itemRenderer, widgetRenderer: widgetRenderer, renderMode: renderMode, getLayoutDimensions: getLayoutDimensions }));
23
+ }
24
+ return flatMap(section.items().asGridRows(screen), (itemsInRow, index) => {
25
+ return (React.createElement(DashboardLayoutGridRow, { key: index.toString(), screen: screen, section: section, items: itemsInRow, gridRowRenderer: gridRowRenderer, itemKeyGetter: itemKeyGetter, itemRenderer: itemRenderer, widgetRenderer: widgetRenderer, renderMode: renderMode, getLayoutDimensions: getLayoutDimensions }));
26
+ });
27
+ }, [
28
+ getLayoutDimensions,
29
+ gridRowRenderer,
30
+ itemKeyGetter,
31
+ itemRenderer,
32
+ renderMode,
33
+ screen,
34
+ section,
35
+ widgetRenderer,
36
+ ]);
37
+ return sectionRenderer({
38
+ ...renderProps,
39
+ DefaultSectionRenderer: DashboardLayoutSectionRenderer,
40
+ children: (React.createElement(React.Fragment, null,
41
+ sectionHeaderRenderer({
42
+ section,
43
+ screen,
44
+ DefaultSectionHeaderRenderer: DashboardLayoutSectionHeaderRenderer,
45
+ parentLayoutItemSize,
46
+ }),
47
+ items,
48
+ renderMode === "edit" ? React.createElement(DashboardLayoutSectionOverlayController, { section: section }) : null)),
49
+ });
50
+ }
51
+ //# sourceMappingURL=DashboardLayoutSection.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DashboardLayoutSection.js","sourceRoot":"","sources":["../../../../src/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutSection.tsx"],"names":[],"mappings":"AAEA,OAAO,OAAO,MAAM,mBAAmB,CAAC;AACxC,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAMvC,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AACrE,OAAO,EAAE,oCAAoC,EAAE,MAAM,2CAA2C,CAAC;AACjG,OAAO,EAAE,8BAA8B,EAAE,MAAM,qCAAqC,CAAC;AAUrF,OAAO,EAAE,uCAAuC,EAAE,MAAM,2DAA2D,CAAC;AACpH,OAAO,IAAI,MAAM,gBAAgB,CAAC;AAClC,OAAO,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAqB7E,MAAM,sBAAsB,GAA6C,CAAC,KAAK,EAAE,EAAE,CAAC,CAChF,oBAAC,8BAA8B,OAAK,KAAK,GAAI,CAChD,CAAC;AAEF,MAAM,qBAAqB,GAAmD,CAAC,KAAK,EAAE,EAAE,CAAC,CACrF,oBAAC,oCAAoC,OAAK,KAA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AAM,CAAC,EAAE,CAAC,UAAU,EAAE,KAAK,EAAE,EAAE;YACrE,OAAO,CACH,oBAAC,sBAAsB,IACnB,GAAG,EAAE,KAAK,CAAC,QAAQ,EAAE,EACrB,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,OAAO,EAChB,KAAK,EAAE,UAAU,EACjB,eAAe,EAAE,eAAe,EAChC,aAAa,EAAE,aAAa,EAC5B,YAAY,EAAE,YAAY,EAC1B,cAAc,EAAE,cAAc,EAC9B,UAAU,EAAE,UAAU,EACtB,mBAAmB,EAAE,mBAAmB,GAC1C,CACL,CAAC;QACN,CAAC,CAAC,CAAC;IACP,CAAC,EAAE;QACC,mBAAmB;QACnB,eAAe;QACf,aAAa;QACb,YAAY;QACZ,UAAU;QACV,MAAM;QACN,OAAO;QACP,cAAc;KACjB,CAAC,CAAC;IAEH,OAAO,eAAe,CAAC;QACnB,GAAG,WAAW;QACd,sBAAsB,EAAE,8BAA8B;QACtD,QAAQ,EAAE,CACN;YACK,qBAAqB,CAAC;gBACnB,OAAO;gBACP,MAAM;gBACN,4BAA4B,EAAE,oCAAoC;gBAClE,oBAAoB;aACvB,CAAC;YACD,KAAK;YACL,UAAU,KAAK,MAAM,CAAC,CAAC,CAAC,oBAAC,uCAAuC,IAAC,OAAO,EAAE,OAAO,GAAI,CAAC,CAAC,CAAC,IAAI,CAC9F,CACN;KACJ,CAAC,CAAC;AACP,CAAC"}
@@ -0,0 +1,24 @@
1
+ import React from "react";
2
+ /**
3
+ * @alpha
4
+ */
5
+ export interface IDashboardLayoutSectionHeaderProps {
6
+ title?: string;
7
+ description?: string;
8
+ /**
9
+ * This prop is here to allow rendering row hotspots in gdc-dashboards edit mode
10
+ * in the same DOM location as before without duplicating css classes / DOM structure,
11
+ * because we want to have all the logic and styling of the dashboard layout in one place,
12
+ * to keep the look of Dashboard component in sync with gdc-dashboards.
13
+ */
14
+ renderBeforeHeader?: React.ReactNode;
15
+ /**
16
+ * This prop is here to allow rendering editable row header in gdc-dashboards edit mode
17
+ * in the same DOM location as before without duplicating css classes / DOM structure,
18
+ * because we want to have all the logic and styling of the dashboard layout in one place,
19
+ * to keep the look of Dashboard component in sync with gdc-dashboards.
20
+ */
21
+ renderHeader?: React.ReactNode;
22
+ }
23
+ export declare const DashboardLayoutSectionHeader: React.FC<IDashboardLayoutSectionHeaderProps>;
24
+ //# sourceMappingURL=DashboardLayoutSectionHeader.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DashboardLayoutSectionHeader.d.ts","sourceRoot":"","sources":["../../../../src/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutSectionHeader.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B;;GAEG;AACH,MAAM,WAAW,kCAAkC;IAC/C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;;;;OAKG;IACH,kBAAkB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAErC;;;;;OAKG;IACH,YAAY,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAClC;AAED,eAAO,MAAM,4BAA4B,EAAE,KAAK,CAAC,EAAE,CAAC,kCAAkC,CA0BrF,CAAC"}
@@ -0,0 +1,15 @@
1
+ // (C) 2019-2024 GoodData Corporation
2
+ import React from "react";
3
+ import { Typography } from "@gooddata/sdk-ui-kit";
4
+ import { DashboardLayoutSectionHeaderDescription } from "./DashboardLayoutSectionHeaderDescription.js";
5
+ export const DashboardLayoutSectionHeader = (props) => {
6
+ const { title, description, renderBeforeHeader, renderHeader } = props;
7
+ return (React.createElement("div", { className: "gd-fluid-layout-row-header s-fluid-layout-row-header" },
8
+ renderBeforeHeader,
9
+ React.createElement("div", { className: "gd-fluid-layout-row-header-container" }, renderHeader ?? (React.createElement("div", { className: "gd-row-header-view" },
10
+ title ? (React.createElement("div", { className: "gd-row-header-title-wrapper" },
11
+ React.createElement("span", { className: "title" },
12
+ React.createElement(Typography, { tagName: "h2", className: "s-fluid-layout-row-title" }, title)))) : null,
13
+ description ? (React.createElement(DashboardLayoutSectionHeaderDescription, { description: description })) : null)))));
14
+ };
15
+ //# sourceMappingURL=DashboardLayoutSectionHeader.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DashboardLayoutSectionHeader.js","sourceRoot":"","sources":["../../../../src/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutSectionHeader.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,uCAAuC,EAAE,MAAM,8CAA8C,CAAC;AA0BvG,MAAM,CAAC,MAAM,4BAA4B,GAAiD,CAAC,KAAK,EAAE,EAAE;IAChG,MAAM,EAAE,KAAK,EAAE,WAAW,EAAE,kBAAkB,EAAE,YAAY,EAAE,GAAG,KAAK,CAAC;IAEvE,OAAO,CACH,6BAAK,SAAS,EAAC,sDAAsD;QAChE,kBAAkB;QACnB,6BAAK,SAAS,EAAC,sCAAsC,IAChD,YAAY,IAAI,CACb,6BAAK,SAAS,EAAC,oBAAoB;YAC9B,KAAK,CAAC,CAAC,CAAC,CACL,6BAAK,SAAS,EAAC,6BAA6B;gBACxC,8BAAM,SAAS,EAAC,OAAO;oBACnB,oBAAC,UAAU,IAAC,OAAO,EAAC,IAAI,EAAC,SAAS,EAAC,0BAA0B,IACxD,KAAK,CACG,CACV,CACL,CACT,CAAC,CAAC,CAAC,IAAI;YACP,WAAW,CAAC,CAAC,CAAC,CACX,oBAAC,uCAAuC,IAAC,WAAW,EAAE,WAAW,GAAI,CACxE,CAAC,CAAC,CAAC,IAAI,CACN,CACT,CACC,CACJ,CACT,CAAC;AACN,CAAC,CAAC"}
@@ -0,0 +1,9 @@
1
+ import * as React from "react";
2
+ /**
3
+ * @alpha
4
+ */
5
+ export interface IDashboardLayoutSectionHeaderDescriptionProps {
6
+ description: string;
7
+ }
8
+ export declare const DashboardLayoutSectionHeaderDescription: React.FC<IDashboardLayoutSectionHeaderDescriptionProps>;
9
+ //# sourceMappingURL=DashboardLayoutSectionHeaderDescription.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DashboardLayoutSectionHeaderDescription.d.ts","sourceRoot":"","sources":["../../../../src/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutSectionHeaderDescription.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B;;GAEG;AACH,MAAM,WAAW,6CAA6C;IAC1D,WAAW,EAAE,MAAM,CAAC;CACvB;AAED,eAAO,MAAM,uCAAuC,EAAE,KAAK,CAAC,EAAE,CAC1D,6CAA6C,CAmBhD,CAAC"}
@@ -0,0 +1,12 @@
1
+ // (C) 2019-2024 GoodData Corporation
2
+ import * as React from "react";
3
+ import cx from "classnames";
4
+ import { RichText } from "@gooddata/sdk-ui-kit";
5
+ import { selectEnableRichTextDescriptions, useDashboardSelector } from "../../../model/index.js";
6
+ export const DashboardLayoutSectionHeaderDescription = (props) => {
7
+ const { description } = props;
8
+ const useRichText = useDashboardSelector(selectEnableRichTextDescriptions);
9
+ const className = cx("gd-paragraph", "description", "s-fluid-layout-row-description");
10
+ return (React.createElement("div", { className: className }, useRichText ? (React.createElement(RichText, { className: "gd-layout-row-description-richtext", value: description, renderMode: "view" })) : (description)));
11
+ };
12
+ //# sourceMappingURL=DashboardLayoutSectionHeaderDescription.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DashboardLayoutSectionHeaderDescription.js","sourceRoot":"","sources":["../../../../src/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutSectionHeaderDescription.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,MAAM,YAAY,CAAC;AAC5B,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAE,gCAAgC,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AASjG,MAAM,CAAC,MAAM,uCAAuC,GAEhD,CAAC,KAAK,EAAE,EAAE;IACV,MAAM,EAAE,WAAW,EAAE,GAAG,KAAK,CAAC;IAC9B,MAAM,WAAW,GAAG,oBAAoB,CAAC,gCAAgC,CAAC,CAAC;IAE3E,MAAM,SAAS,GAAG,EAAE,CAAC,cAAc,EAAE,aAAa,EAAE,gCAAgC,CAAC,CAAC;IACtF,OAAO,CACH,6BAAK,SAAS,EAAE,SAAS,IACpB,WAAW,CAAC,CAAC,CAAC,CACX,oBAAC,QAAQ,IACL,SAAS,EAAC,oCAAoC,EAC9C,KAAK,EAAE,WAAW,EAClB,UAAU,EAAC,MAAM,GACnB,CACL,CAAC,CAAC,CAAC,CACA,WAAW,CACd,CACC,CACT,CAAC;AACN,CAAC,CAAC"}
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { IDashboardLayoutSectionHeaderRenderProps } from "./interfaces.js";
3
+ export declare function DashboardLayoutSectionHeaderRenderer(props: IDashboardLayoutSectionHeaderRenderProps<any>): JSX.Element | null;
4
+ //# sourceMappingURL=DashboardLayoutSectionHeaderRenderer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DashboardLayoutSectionHeaderRenderer.d.ts","sourceRoot":"","sources":["../../../../src/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutSectionHeaderRenderer.tsx"],"names":[],"mappings":";AAMA,OAAO,EAAE,wCAAwC,EAAE,MAAM,iBAAiB,CAAC;AAI3E,wBAAgB,oCAAoC,CAChD,KAAK,EAAE,wCAAwC,CAAC,GAAG,CAAC,GACrD,GAAG,CAAC,OAAO,GAAG,IAAI,CAoBpB"}