@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,343 @@
1
+ import { IDashboardLayout, IDashboardWidget, ScreenSize, IDashboardLayoutSizeByScreenSize } from "@gooddata/sdk-model";
2
+ import { RenderMode } from "../../../types.js";
3
+ import { IDashboardLayoutItemFacade, IDashboardLayoutSectionFacade } from "../../../_staging/dashboard/fluidLayout/facade/interfaces.js";
4
+ import React from "react";
5
+ /**
6
+ * Default props provided to {@link IDashboardLayoutSectionKeyGetter}.
7
+ *
8
+ * @alpha
9
+ */
10
+ export type IDashboardLayoutSectionKeyGetterProps<TWidget = IDashboardWidget> = {
11
+ /**
12
+ * Dashboard layout section.
13
+ */
14
+ section: IDashboardLayoutSectionFacade<TWidget>;
15
+ /**
16
+ * Current screen type with respect to the set breakpoints.
17
+ */
18
+ screen: ScreenSize;
19
+ };
20
+ /**
21
+ * Dashboard layout section key getter.
22
+ * This callback is used to determine a unique key of the section.
23
+ * By this callback, you can avoid unnecessary re-renders of the section components,
24
+ * the returned unique key is passed to the React "key" property, when rendering rows.
25
+ * By default, dashboard layout will use sectionIndex as a unique key.
26
+ *
27
+ * @alpha
28
+ */
29
+ export type IDashboardLayoutSectionKeyGetter<TWidget = IDashboardWidget> = (props: IDashboardLayoutSectionKeyGetterProps<TWidget>) => string;
30
+ /**
31
+ * Default props provided to {@link IDashboardLayoutSectionRenderer}.
32
+ *
33
+ * @alpha
34
+ */
35
+ export interface IDashboardLayoutSectionRenderProps<TWidget = IDashboardWidget> {
36
+ /**
37
+ * Dashboard layout section.
38
+ */
39
+ section: IDashboardLayoutSectionFacade<TWidget>;
40
+ /**
41
+ * Current screen type with respect to the set breakpoints.
42
+ */
43
+ screen: ScreenSize;
44
+ /**
45
+ * The size of layout item in which the section is nested. Undefined, when section is in the root layout.
46
+ */
47
+ parentLayoutItemSize?: IDashboardLayoutSizeByScreenSize;
48
+ /**
49
+ * Default renderer of the section - can be used as a fallback for custom sectionRenderer.
50
+ */
51
+ DefaultSectionRenderer: IDashboardLayoutSectionRenderer<TWidget>;
52
+ /**
53
+ * Columns rendered by columnRenderer.
54
+ */
55
+ children: React.ReactNode;
56
+ /**
57
+ * Dashboard render mode
58
+ */
59
+ renderMode: RenderMode;
60
+ /**
61
+ * Additional section css class name.
62
+ */
63
+ className?: string;
64
+ /**
65
+ * Is hidden section? Use this to hide the section without remounting it.
66
+ */
67
+ isHidden?: boolean;
68
+ }
69
+ /**
70
+ * Dashboard layout section renderer.
71
+ * Represents a component for rendering the section.
72
+ *
73
+ * @alpha
74
+ */
75
+ export type IDashboardLayoutSectionRenderer<TWidget = IDashboardWidget, TCustomProps = object> = (renderProps: IDashboardLayoutSectionRenderProps<TWidget> & TCustomProps) => JSX.Element;
76
+ /**
77
+ * Default props provided to {@link IDashboardLayoutSectionHeaderRenderer}.
78
+ *
79
+ * @alpha
80
+ */
81
+ export interface IDashboardLayoutSectionHeaderRenderProps<TWidget = IDashboardWidget> {
82
+ /**
83
+ * Dashboard layout section.
84
+ */
85
+ section: IDashboardLayoutSectionFacade<TWidget>;
86
+ /**
87
+ * Current screen type with respect to the set breakpoints.
88
+ */
89
+ screen: ScreenSize;
90
+ /**
91
+ * The size of layout item in which the section header is nested. Undefined, when section, to which
92
+ * this header belongs to, is in the root layout.
93
+ */
94
+ parentLayoutItemSize?: IDashboardLayoutSizeByScreenSize;
95
+ /**
96
+ * Default renderer of the section header - can be used as a fallback for custom sectionHeaderRenderer.
97
+ */
98
+ DefaultSectionHeaderRenderer: IDashboardLayoutSectionHeaderRenderer<TWidget>;
99
+ }
100
+ /**
101
+ * Dashboard layout section header renderer.
102
+ * Represents a component for rendering the section header.
103
+ *
104
+ * @alpha
105
+ */
106
+ export type IDashboardLayoutSectionHeaderRenderer<TWidget = IDashboardWidget, TCustomProps = object> = (renderProps: IDashboardLayoutSectionHeaderRenderProps<TWidget> & TCustomProps) => JSX.Element | null;
107
+ /**
108
+ * Default props provided to {@link IDashboardLayoutItemKeyGetter}
109
+ *
110
+ * @alpha
111
+ */
112
+ export interface IDashboardLayoutItemKeyGetterProps<TWidget = IDashboardWidget> {
113
+ /**
114
+ * Dashboard layout item.
115
+ */
116
+ item: IDashboardLayoutItemFacade<TWidget>;
117
+ /**
118
+ * Current screen type with respect to the set breakpoints.
119
+ */
120
+ screen: ScreenSize;
121
+ }
122
+ /**
123
+ * Dashboard layout item key getter.
124
+ * This callback is used to determine a unique key of the item.
125
+ * By this callback, you can avoid unnecessary re-renders of the item components,
126
+ * the returned unique key is passed to the React "key" property, when rendering columns.
127
+ * By default, dashboard layout will use columnIndex as a unique key.
128
+ *
129
+ * @alpha
130
+ */
131
+ export type IDashboardLayoutItemKeyGetter<TWidget = IDashboardWidget> = (props: IDashboardLayoutItemKeyGetterProps<TWidget>) => string;
132
+ /**
133
+ * Default props provided to {@link IDashboardLayoutItemRenderer}
134
+ *
135
+ * @alpha
136
+ */
137
+ export interface IDashboardLayoutItemRenderProps<TWidget = IDashboardWidget> {
138
+ /**
139
+ * Dashboard layout item.
140
+ */
141
+ item: IDashboardLayoutItemFacade<TWidget>;
142
+ /**
143
+ * Current screen type with respect to the set breakpoints.
144
+ */
145
+ screen: ScreenSize;
146
+ /**
147
+ * Default renderer of the item - can be used as a fallback for custom columnRenderer.
148
+ */
149
+ DefaultItemRenderer: IDashboardLayoutItemRenderer<TWidget>;
150
+ /**
151
+ * Additional item css class name.
152
+ */
153
+ className?: string;
154
+ /**
155
+ * Minimum height of the item.
156
+ */
157
+ minHeight?: number;
158
+ /**
159
+ * Is hidden item? Use this to hide the item without remounting it.
160
+ */
161
+ isHidden?: boolean;
162
+ /**
163
+ * Widget rendered by widgetRenderer.
164
+ */
165
+ children: React.ReactNode;
166
+ }
167
+ /**
168
+ * Dashboard layout item renderer.
169
+ * Represents a component for rendering the item.
170
+ *
171
+ * @alpha
172
+ */
173
+ export type IDashboardLayoutItemRenderer<TWidget = IDashboardWidget, TCustomProps = object> = (renderProps: IDashboardLayoutItemRenderProps<TWidget> & TCustomProps) => JSX.Element;
174
+ /**
175
+ * Default props provided to {@link IDashboardLayoutItemRenderer}
176
+ *
177
+ * @alpha
178
+ */
179
+ export interface IDashboardLayoutWidgetRenderProps<TWidget = IDashboardWidget> {
180
+ /**
181
+ * Dashboard layout item.
182
+ */
183
+ item: IDashboardLayoutItemFacade<TWidget>;
184
+ /**
185
+ * Current screen type with respect to the set breakpoints.
186
+ */
187
+ screen: ScreenSize;
188
+ /**
189
+ * React ref to content element.
190
+ */
191
+ contentRef?: React.RefObject<HTMLDivElement>;
192
+ /**
193
+ * Additional css class name of the content.
194
+ */
195
+ className?: string;
196
+ /**
197
+ * Content to render - widget, insight, or custom content.
198
+ */
199
+ children?: React.ReactNode;
200
+ /**
201
+ * Height of the content.
202
+ */
203
+ height?: React.CSSProperties["height"];
204
+ /**
205
+ * Minimum height of the content.
206
+ */
207
+ minHeight?: React.CSSProperties["minHeight"];
208
+ /**
209
+ * Allow vertical overflow?
210
+ * (This basically sets overflowX to hidden and overflowY to auto)
211
+ */
212
+ allowOverflow?: boolean;
213
+ /**
214
+ * Was item size updated by layout sizing strategy?
215
+ */
216
+ isResizedByLayoutSizingStrategy?: boolean;
217
+ /**
218
+ * Get dimensions of layout container element
219
+ */
220
+ getLayoutDimensions: () => DOMRect;
221
+ /**
222
+ * Default widget renderer - can be used as a fallback for custom widgetRenderer.
223
+ */
224
+ DefaultWidgetRenderer: IDashboardLayoutWidgetRenderer<TWidget>;
225
+ }
226
+ /**
227
+ * Dashboard layout content renderer.
228
+ * Represents a component for rendering the item content.
229
+ *
230
+ * @alpha
231
+ */
232
+ export type IDashboardLayoutWidgetRenderer<TWidget = IDashboardWidget, TCustomProps = object> = (renderProps: IDashboardLayoutWidgetRenderProps<TWidget> & TCustomProps) => JSX.Element;
233
+ /**
234
+ * Default props provided to {@link IDashboardLayoutGridRowRenderer}
235
+ *
236
+ * @alpha
237
+ */
238
+ export interface IDashboardLayoutGridRowRenderProps<TWidget = IDashboardWidget> {
239
+ /**
240
+ * Items rendered in one row.
241
+ */
242
+ children: JSX.Element[];
243
+ /**
244
+ * Dashboard layout section.
245
+ */
246
+ section: IDashboardLayoutSectionFacade<TWidget>;
247
+ /**
248
+ * Layout items - keep in mind that these items are only items in the current grid row, not the entire section.
249
+ */
250
+ items: IDashboardLayoutItemFacade<TWidget>[];
251
+ /**
252
+ * Current screen type with respect to the set breakpoints.
253
+ */
254
+ screen: ScreenSize;
255
+ /**
256
+ * Dashboard render mode
257
+ */
258
+ renderMode: RenderMode;
259
+ }
260
+ /**
261
+ * Dashboard layout grid row renderer.
262
+ * Represents a component for rendering the real rendered row
263
+ * with respect to the item sizing and the current screen size.
264
+ *
265
+ * @alpha
266
+ */
267
+ export type IDashboardLayoutGridRowRenderer<TWidget = IDashboardWidget, TCustomProps = object> = (renderProps: IDashboardLayoutGridRowRenderProps<TWidget> & TCustomProps) => JSX.Element;
268
+ /**
269
+ * Dashboard layout render props.
270
+ * Represents a customizable interface for rendering the layout.
271
+ *
272
+ * @alpha
273
+ */
274
+ export interface IDashboardLayoutRenderProps<TWidget = IDashboardWidget> {
275
+ /**
276
+ * Dashboard layout definition to render.
277
+ */
278
+ layout: IDashboardLayout<TWidget>;
279
+ /**
280
+ * Callback to determine a unique key of the section.
281
+ * Check {@link IDashboardLayoutSectionKeyGetter} for more details.
282
+ */
283
+ sectionKeyGetter?: IDashboardLayoutSectionKeyGetter<TWidget>;
284
+ /**
285
+ * Render props callback to customize section rendering.
286
+ */
287
+ sectionRenderer?: IDashboardLayoutSectionRenderer<TWidget>;
288
+ /**
289
+ * Render props callback to customize section header rendering.
290
+ */
291
+ sectionHeaderRenderer?: IDashboardLayoutSectionHeaderRenderer<TWidget>;
292
+ /**
293
+ * Render props callback to customize rendering of the real rendered rows
294
+ * with respect to the items sizing and the current screen size.
295
+ */
296
+ gridRowRenderer?: IDashboardLayoutGridRowRenderer<TWidget>;
297
+ /**
298
+ * Callback to determine a unique key of the item.
299
+ * Check {@link IDashboardLayoutItemKeyGetter} for more details.
300
+ */
301
+ itemKeyGetter?: IDashboardLayoutItemKeyGetter<TWidget>;
302
+ /**
303
+ * Render props callback to customize item rendering.
304
+ */
305
+ itemRenderer?: IDashboardLayoutItemRenderer<TWidget>;
306
+ /**
307
+ * Render props callback to specify how to render the layout widget.
308
+ */
309
+ widgetRenderer: IDashboardLayoutWidgetRenderer<TWidget>;
310
+ /**
311
+ * Additional css class name for the dashboard layout root element.
312
+ */
313
+ className?: string;
314
+ /**
315
+ * Callback called on mouse leave event.
316
+ */
317
+ onMouseLeave?: (e: React.MouseEvent<HTMLDivElement>) => void;
318
+ /**
319
+ * Checks if feature flag enableKDWidgetCustomHeight is enabled
320
+ */
321
+ enableCustomHeight?: boolean;
322
+ /**
323
+ * Dashboard render mode
324
+ */
325
+ renderMode?: RenderMode;
326
+ /**
327
+ * The current screen size.
328
+ * If undefined, the screen size will be determined by the layout and provided to its nested layouts.
329
+ */
330
+ screen?: ScreenSize;
331
+ /**
332
+ * The size of layout item in which the layout is nested. Undefined, when the layout is the root layout.
333
+ */
334
+ parentLayoutItemSize?: IDashboardLayoutSizeByScreenSize;
335
+ }
336
+ /**
337
+ * Dashboard layout renderer.
338
+ * Represents a component for rendering the layout.
339
+ *
340
+ * @alpha
341
+ */
342
+ export type IDashboardLayoutRenderer<TWidget = IDashboardWidget, TCustomProps = object> = (renderProps: IDashboardLayoutRenderProps<TWidget> & TCustomProps) => JSX.Element;
343
+ //# sourceMappingURL=interfaces.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../../../src/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/interfaces.ts"],"names":[],"mappings":"AACA,OAAO,EACH,gBAAgB,EAChB,gBAAgB,EAChB,UAAU,EACV,gCAAgC,EACnC,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EACH,0BAA0B,EAC1B,6BAA6B,EAChC,MAAM,8DAA8D,CAAC;AACtE,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B;;;;GAIG;AACH,MAAM,MAAM,qCAAqC,CAAC,OAAO,GAAG,gBAAgB,IAAI;IAC5E;;OAEG;IACH,OAAO,EAAE,6BAA6B,CAAC,OAAO,CAAC,CAAC;IAEhD;;OAEG;IACH,MAAM,EAAE,UAAU,CAAC;CACtB,CAAC;AAEF;;;;;;;;GAQG;AACH,MAAM,MAAM,gCAAgC,CAAC,OAAO,GAAG,gBAAgB,IAAI,CACvE,KAAK,EAAE,qCAAqC,CAAC,OAAO,CAAC,KACpD,MAAM,CAAC;AAEZ;;;;GAIG;AACH,MAAM,WAAW,kCAAkC,CAAC,OAAO,GAAG,gBAAgB;IAC1E;;OAEG;IACH,OAAO,EAAE,6BAA6B,CAAC,OAAO,CAAC,CAAC;IAEhD;;OAEG;IACH,MAAM,EAAE,UAAU,CAAC;IAEnB;;OAEG;IACH,oBAAoB,CAAC,EAAE,gCAAgC,CAAC;IAExD;;OAEG;IACH,sBAAsB,EAAE,+BAA+B,CAAC,OAAO,CAAC,CAAC;IAEjE;;OAEG;IACH,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAE1B;;OAEG;IACH,UAAU,EAAE,UAAU,CAAC;IAEvB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACtB;AAED;;;;;GAKG;AACH,MAAM,MAAM,+BAA+B,CAAC,OAAO,GAAG,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;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,YAAY,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,cAAc,CAAC,KAAK,IAAI,CAAC;IAE7D;;OAEG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAE7B;;OAEG;IACH,UAAU,CAAC,EAAE,UAAU,CAAC;IAExB;;;OAGG;IACH,MAAM,CAAC,EAAE,UAAU,CAAC;IAEpB;;OAEG;IACH,oBAAoB,CAAC,EAAE,gCAAgC,CAAC;CAC3D;AAED;;;;;GAKG;AACH,MAAM,MAAM,wBAAwB,CAAC,OAAO,GAAG,gBAAgB,EAAE,YAAY,GAAG,MAAM,IAAI,CACtF,WAAW,EAAE,2BAA2B,CAAC,OAAO,CAAC,GAAG,YAAY,KAC/D,GAAG,CAAC,OAAO,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=interfaces.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../../src/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/interfaces.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import { ScreenSize } from "@gooddata/sdk-model";
3
+ export declare const useScreenSize: (ref: React.RefObject<HTMLDivElement>) => ScreenSize;
4
+ //# sourceMappingURL=useScreenSize.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useScreenSize.d.ts","sourceRoot":"","sources":["../../../../src/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/useScreenSize.ts"],"names":[],"mappings":"AAEA,OAAO,KAA8B,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAwBjD,eAAO,MAAM,aAAa,QAAS,MAAM,SAAS,CAAC,cAAc,CAAC,KAAG,UAUpE,CAAC"}
@@ -0,0 +1,34 @@
1
+ // (C) 2024 GoodData Corporation
2
+ import { useEffect, useState } from "react";
3
+ import { DASHBOARD_LAYOUT_BREAK_POINTS } from "../../constants/index.js";
4
+ const getScreenClass = (ref) => {
5
+ if (!ref.current) {
6
+ return "xl";
7
+ }
8
+ const viewportWidth = ref.current.clientWidth;
9
+ if (viewportWidth >= DASHBOARD_LAYOUT_BREAK_POINTS[3]) {
10
+ return "xl";
11
+ }
12
+ if (viewportWidth >= DASHBOARD_LAYOUT_BREAK_POINTS[2]) {
13
+ return "lg";
14
+ }
15
+ if (viewportWidth >= DASHBOARD_LAYOUT_BREAK_POINTS[1]) {
16
+ return "md";
17
+ }
18
+ if (viewportWidth >= DASHBOARD_LAYOUT_BREAK_POINTS[0]) {
19
+ return "sm";
20
+ }
21
+ return "xs";
22
+ };
23
+ export const useScreenSize = (ref) => {
24
+ const [screenClass, setScreenClass] = useState(() => getScreenClass(ref));
25
+ useEffect(() => {
26
+ const handleWindowResized = () => setScreenClass(getScreenClass(ref));
27
+ window.addEventListener("resize", handleWindowResized, false);
28
+ return () => {
29
+ window.removeEventListener("resize", handleWindowResized, false);
30
+ };
31
+ }, [ref]);
32
+ return screenClass;
33
+ };
34
+ //# sourceMappingURL=useScreenSize.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useScreenSize.js","sourceRoot":"","sources":["../../../../src/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/useScreenSize.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAEhC,OAAc,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAGnD,OAAO,EAAE,6BAA6B,EAAE,MAAM,0BAA0B,CAAC;AAEzE,MAAM,cAAc,GAAG,CAAC,GAAoC,EAAc,EAAE;IACxE,IAAI,CAAC,GAAG,CAAC,OAAO,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,MAAM,aAAa,GAAG,GAAG,CAAC,OAAO,CAAC,WAAW,CAAC;IAC9C,IAAI,aAAa,IAAI,6BAA6B,CAAC,CAAC,CAAC,EAAE,CAAC;QACpD,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,IAAI,aAAa,IAAI,6BAA6B,CAAC,CAAC,CAAC,EAAE,CAAC;QACpD,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,IAAI,aAAa,IAAI,6BAA6B,CAAC,CAAC,CAAC,EAAE,CAAC;QACpD,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,IAAI,aAAa,IAAI,6BAA6B,CAAC,CAAC,CAAC,EAAE,CAAC;QACpD,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO,IAAI,CAAC;AAChB,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,GAAoC,EAAc,EAAE;IAC9E,MAAM,CAAC,WAAW,EAAE,cAAc,CAAC,GAAG,QAAQ,CAAC,GAAG,EAAE,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC,CAAC;IAC1E,SAAS,CAAC,GAAG,EAAE;QACX,MAAM,mBAAmB,GAAG,GAAG,EAAE,CAAC,cAAc,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC,CAAC;QACtE,MAAM,CAAC,gBAAgB,CAAC,QAAQ,EAAE,mBAAmB,EAAE,KAAK,CAAC,CAAC;QAC9D,OAAO,GAAG,EAAE;YACR,MAAM,CAAC,mBAAmB,CAAC,QAAQ,EAAE,mBAAmB,EAAE,KAAK,CAAC,CAAC;QACrE,CAAC,CAAC;IACN,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACV,OAAO,WAAW,CAAC;AACvB,CAAC,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { IDashboardLayoutItemFacade } from "../../../../_staging/dashboard/fluidLayout/index.js";
2
+ export declare const buildEmptyItemFacadeWithSetSize: (gridWidth: number) => IDashboardLayoutItemFacade<unknown>;
3
+ //# sourceMappingURL=emptyFacade.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"emptyFacade.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/utils/emptyFacade.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,0BAA0B,EAAE,MAAM,qDAAqD,CAAC;AAEjG,eAAO,MAAM,+BAA+B,cAAe,MAAM,KAAG,2BAA2B,OAAO,CA4BpG,CAAC"}
@@ -0,0 +1,31 @@
1
+ // (C) 2022-2024 GoodData Corporation
2
+ export const buildEmptyItemFacadeWithSetSize = (gridWidth) => ({
3
+ index: () => 0,
4
+ raw: () => null, // TODO: should we allow this in the interface?
5
+ widget: () => null,
6
+ ref: () => undefined,
7
+ section: () => undefined, // TODO: should we allow this in the interface?
8
+ size: () => ({ xl: { gridWidth } }),
9
+ sizeForScreen: () => ({ gridWidth }),
10
+ isLast: () => true,
11
+ widgetEquals: () => false,
12
+ widgetIs: () => false,
13
+ hasSizeForScreen: () => false,
14
+ indexIs: () => false,
15
+ isFirst: () => true,
16
+ test: () => false,
17
+ testRaw: () => false,
18
+ isCustomItem: () => false,
19
+ isInsightWidgetItem: () => false,
20
+ isInsightWidgetDefinitionItem: () => false,
21
+ isKpiWidgetItem: () => false,
22
+ isKpiWidgetDefinitionItem: () => false,
23
+ isLayoutItem: () => false,
24
+ isWidgetItem: () => false,
25
+ isWidgetDefinitionItem: () => false,
26
+ isWidgetItemWithInsightRef: () => false,
27
+ isWidgetItemWithKpiRef: () => false,
28
+ isWidgetItemWithRef: () => false,
29
+ isEmpty: () => false,
30
+ });
31
+ //# sourceMappingURL=emptyFacade.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"emptyFacade.js","sourceRoot":"","sources":["../../../../../src/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/utils/emptyFacade.ts"],"names":[],"mappings":"AAAA,qCAAqC;AAIrC,MAAM,CAAC,MAAM,+BAA+B,GAAG,CAAC,SAAiB,EAAuC,EAAE,CAAC,CAAC;IACxG,KAAK,EAAE,GAAG,EAAE,CAAC,CAAC;IACd,GAAG,EAAE,GAAG,EAAE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1
+ /// <reference types="react" />
2
+ import { VisType } from "@gooddata/sdk-ui";
3
+ export declare function calculateGeoPushpinWidgetHeight(windowHeight: number, visualizationItemWidth: number): React.CSSProperties;
4
+ export declare function isGeoPushpin(visType: VisType): boolean;
5
+ export declare function isFullWidthGeoPushpin(currentColumnWidth: number, visType: VisType): boolean;
6
+ export declare function getGeoPushpinWidgetStyle(visType: VisType, visualizationItemWidth: number, currentColumnWidth: number, windowHeight: number, enableCustomHeight: boolean): React.CSSProperties | null;
7
+ //# sourceMappingURL=legacy.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"legacy.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/utils/legacy.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAS3C,wBAAgB,+BAA+B,CAC3C,YAAY,EAAE,MAAM,EACpB,sBAAsB,EAAE,MAAM,GAC/B,KAAK,CAAC,aAAa,CAUrB;AAED,wBAAgB,YAAY,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAEtD;AAED,wBAAgB,qBAAqB,CAAC,kBAAkB,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,OAAO,CAE3F;AAED,wBAAgB,wBAAwB,CACpC,OAAO,EAAE,OAAO,EAChB,sBAAsB,EAAE,MAAM,EAC9B,kBAAkB,EAAE,MAAM,EAC1B,YAAY,EAAE,MAAM,EACpB,kBAAkB,EAAE,OAAO,GAC5B,KAAK,CAAC,aAAa,GAAG,IAAI,CAU5B"}
@@ -0,0 +1,33 @@
1
+ import { DASHBOARD_LAYOUT_DEFAULT_VIS_HEIGHT_PX } from "@gooddata/sdk-ui-ext";
2
+ import { DASHBOARD_LAYOUT_GRID_COLUMNS_COUNT } from "../../../../_staging/dashboard/fluidLayout/index.js";
3
+ const RATIO_16_9 = 9 / 16;
4
+ const HEADER_HEIGHT = 330;
5
+ const PADDING_BOTTOM = 55;
6
+ const HEADLINE_OUTER_HEIGHT = 48 + 20; // item-headline-outer + padding-top/bottom
7
+ export function calculateGeoPushpinWidgetHeight(windowHeight, visualizationItemWidth) {
8
+ const widgetHeight = Math.round(visualizationItemWidth * RATIO_16_9);
9
+ const widgetMaxHeight = windowHeight - HEADER_HEIGHT - PADDING_BOTTOM;
10
+ const defaultVisualizationHeight = DASHBOARD_LAYOUT_DEFAULT_VIS_HEIGHT_PX - HEADLINE_OUTER_HEIGHT;
11
+ const maxHeight = widgetMaxHeight > defaultVisualizationHeight ? widgetMaxHeight : defaultVisualizationHeight;
12
+ return {
13
+ height: widgetHeight,
14
+ maxHeight,
15
+ };
16
+ }
17
+ export function isGeoPushpin(visType) {
18
+ return visType === "pushpin";
19
+ }
20
+ export function isFullWidthGeoPushpin(currentColumnWidth, visType) {
21
+ return isGeoPushpin(visType) && currentColumnWidth === DASHBOARD_LAYOUT_GRID_COLUMNS_COUNT;
22
+ }
23
+ export function getGeoPushpinWidgetStyle(visType, visualizationItemWidth, currentColumnWidth, windowHeight, enableCustomHeight) {
24
+ if (isFullWidthGeoPushpin(currentColumnWidth, visType) && !enableCustomHeight) {
25
+ const { height, maxHeight } = calculateGeoPushpinWidgetHeight(windowHeight, visualizationItemWidth);
26
+ return {
27
+ height,
28
+ maxHeight,
29
+ };
30
+ }
31
+ return null;
32
+ }
33
+ //# sourceMappingURL=legacy.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"legacy.js","sourceRoot":"","sources":["../../../../../src/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/utils/legacy.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,sCAAsC,EAAE,MAAM,sBAAsB,CAAC;AAC9E,OAAO,EAAE,mCAAmC,EAAE,MAAM,qDAAqD,CAAC;AAE1G,MAAM,UAAU,GAAG,CAAC,GAAG,EAAE,CAAC;AAC1B,MAAM,aAAa,GAAG,GAAG,CAAC;AAC1B,MAAM,cAAc,GAAG,EAAE,CAAC;AAC1B,MAAM,qBAAqB,GAAG,EAAE,GAAG,EAAE,CAAC,CAAC,2CAA2C;AAElF,MAAM,UAAU,+BAA+B,CAC3C,YAAoB,EACpB,sBAA8B;IAE9B,MAAM,YAAY,GAAG,IAAI,CAAC,KAAK,CAAC,sBAAsB,GAAG,UAAU,CAAC,CAAC;IACrE,MAAM,eAAe,GAAG,YAAY,GAAG,aAAa,GAAG,cAAc,CAAC;IACtE,MAAM,0BAA0B,GAAG,sCAAsC,GAAG,qBAAqB,CAAC;IAClG,MAAM,SAAS,GACX,eAAe,GAAG,0BAA0B,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,0BAA0B,CAAC;IAChG,OAAO;QACH,MAAM,EAAE,YAAY;QACpB,SAAS;KACZ,CAAC;AACN,CAAC;AAED,MAAM,UAAU,YAAY,CAAC,OAAgB;IACzC,OAAO,OAAO,KAAK,SAAS,CAAC;AACjC,CAAC;AAED,MAAM,UAAU,qBAAqB,CAAC,kBAA0B,EAAE,OAAgB;IAC9E,OAAO,YAAY,CAAC,OAAO,CAAC,IAAI,kBAAkB,KAAK,mCAAmC,CAAC;AAC/F,CAAC;AAED,MAAM,UAAU,wBAAwB,CACpC,OAAgB,EAChB,sBAA8B,EAC9B,kBAA0B,EAC1B,YAAoB,EACpB,kBAA2B;IAE3B,IAAI,qBAAqB,CAAC,kBAAkB,EAAE,OAAO,CAAC,IAAI,CAAC,kBAAkB,EAAE,CAAC;QAC5E,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,GAAG,+BAA+B,CAAC,YAAY,EAAE,sBAAsB,CAAC,CAAC;QACpG,OAAO;YACH,MAAM;YACN,SAAS;SACZ,CAAC;IACN,CAAC;IAED,OAAO,IAAI,CAAC;AAChB,CAAC"}
@@ -0,0 +1,51 @@
1
+ import { AnalyticalWidgetType, IDashboardLayout, IDashboardLayoutItem, IDashboardLayoutSize, IDashboardLayoutSizeByScreenSize, ISettings, ScreenSize } from "@gooddata/sdk-model";
2
+ import { IDashboardLayoutItemFacade } from "../../../../_staging/dashboard/fluidLayout/facade/interfaces.js";
3
+ import { MeasurableWidgetContent } from "../../../../_staging/layout/sizing.js";
4
+ /**
5
+ * Unify dashboard layout items height for all screens.
6
+ *
7
+ * @param layout - dashboard layout with items
8
+ */
9
+ export declare function unifyDashboardLayoutItemHeights<TWidget>(layout: IDashboardLayout<TWidget>): IDashboardLayout<TWidget>;
10
+ export declare function unifyDashboardLayoutItemHeights<TWidget>(items: IDashboardLayoutItem<TWidget>[]): IDashboardLayoutItem<TWidget>[];
11
+ /**
12
+ * Derive dashboard layout size for all screens from dashboard layout size defined for xl screen.
13
+ * We have only xl size saved in metadata, this will create additional screen sizes based on xl.
14
+ *
15
+ * @param xlSize - dashboard layout size for xl screen
16
+ */
17
+ export declare function implicitLayoutItemSizeFromXlSize(xlSize: IDashboardLayoutSize): IDashboardLayoutSizeByScreenSize;
18
+ /**
19
+ * Divide the items into a list representing the future rows of the grid.
20
+ * This is useful for performing item transformations, depending on how they really appear in the grid.
21
+ *
22
+ * @param items - dashboard layout items
23
+ * @param screen - responsive screen class
24
+ */
25
+ export declare function splitDashboardLayoutItemsAsRenderedGridRows<TWidget>(items: IDashboardLayoutItem<TWidget>[], screen: ScreenSize): IDashboardLayoutItem<TWidget>[][];
26
+ /**
27
+ * Tuple that represents a item position in the layout
28
+ * [sectionIndex, itemIndex]
29
+ *
30
+ * @internal
31
+ */
32
+ type ItemPosition = [number, number];
33
+ /**
34
+ *
35
+ * @internal
36
+ */
37
+ export declare const getResizedItemPositions: <TWidget>(originalLayout: IDashboardLayout<TWidget>, resizedLayout: IDashboardLayout<TWidget>, positions?: ItemPosition[]) => ItemPosition[];
38
+ export declare const getDashboardLayoutItemHeightForRatioAndScreen: (size: IDashboardLayoutSize, screen: ScreenSize) => number;
39
+ export declare function getDashboardLayoutItemMaxGridWidth(item: IDashboardLayoutItemFacade<any>, screen: ScreenSize): number;
40
+ export declare function getDashboardLayoutWidgetDefaultGridWidth(settings: ISettings, widgetType: AnalyticalWidgetType, widgetContent?: MeasurableWidgetContent): number;
41
+ export declare function getLayoutWithoutGridHeights<TWidget>(layout: IDashboardLayout<TWidget>): IDashboardLayout<TWidget>;
42
+ /**
43
+ * @internal
44
+ */
45
+ export declare function validateDashboardLayoutWidgetSize(currentWidth: number, currentHeight: number | undefined, widgetType: AnalyticalWidgetType, widgetContent: MeasurableWidgetContent, settings: ISettings): {
46
+ validWidth: number;
47
+ validHeight?: number;
48
+ };
49
+ export declare const determineSizeForScreen: (screen: ScreenSize, layoutItemSize?: IDashboardLayoutSizeByScreenSize) => number;
50
+ export {};
51
+ //# sourceMappingURL=sizing.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sizing.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/utils/sizing.ts"],"names":[],"mappings":"AACA,OAAO,EACH,oBAAoB,EACpB,gBAAgB,EAChB,oBAAoB,EAEpB,oBAAoB,EACpB,gCAAgC,EAEhC,SAAS,EAGT,UAAU,EACb,MAAM,qBAAqB,CAAC;AAW7B,OAAO,EAAE,0BAA0B,EAAE,MAAM,iEAAiE,CAAC;AAE7G,OAAO,EAEH,uBAAuB,EAK1B,MAAM,uCAAuC,CAAC;AAQ/C;;;;GAIG;AACH,wBAAgB,+BAA+B,CAAC,OAAO,EACnD,MAAM,EAAE,gBAAgB,CAAC,OAAO,CAAC,GAClC,gBAAgB,CAAC,OAAO,CAAC,CAAC;AAC7B,wBAAgB,+BAA+B,CAAC,OAAO,EACnD,KAAK,EAAE,oBAAoB,CAAC,OAAO,CAAC,EAAE,GACvC,oBAAoB,CAAC,OAAO,CAAC,EAAE,CAAC;AAoCnC;;;;;GAKG;AACH,wBAAgB,gCAAgC,CAC5C,MAAM,EAAE,oBAAoB,GAC7B,gCAAgC,CA6BlC;AAwED;;;;;;GAMG;AACH,wBAAgB,2CAA2C,CAAC,OAAO,EAC/D,KAAK,EAAE,oBAAoB,CAAC,OAAO,CAAC,EAAE,E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