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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (231) hide show
  1. package/NOTICE +1919 -3
  2. package/esm/__version.d.ts +1 -1
  3. package/esm/__version.d.ts.map +1 -1
  4. package/esm/__version.js +1 -1
  5. package/esm/__version.js.map +1 -1
  6. package/esm/model/commandHandlers/dashboard/common/stateInitializers.d.ts.map +1 -1
  7. package/esm/model/commandHandlers/dashboard/common/stateInitializers.js +12 -4
  8. package/esm/model/commandHandlers/dashboard/common/stateInitializers.js.map +1 -1
  9. package/esm/model/commandHandlers/dashboard/resetDashboardHandler.d.ts.map +1 -1
  10. package/esm/model/commandHandlers/dashboard/resetDashboardHandler.js +3 -2
  11. package/esm/model/commandHandlers/dashboard/resetDashboardHandler.js.map +1 -1
  12. package/esm/model/store/config/configSelectors.d.ts +5 -1
  13. package/esm/model/store/config/configSelectors.d.ts.map +1 -1
  14. package/esm/model/store/config/configSelectors.js +7 -1
  15. package/esm/model/store/config/configSelectors.js.map +1 -1
  16. package/esm/model/store/executionResults/executionResultsSelectors.d.ts +1 -1
  17. package/esm/model/store/executionResults/executionResultsSelectors.d.ts.map +1 -1
  18. package/esm/model/store/executionResults/executionResultsSelectors.js +4 -1
  19. package/esm/model/store/executionResults/executionResultsSelectors.js.map +1 -1
  20. package/esm/model/store/index.d.ts +1 -1
  21. package/esm/model/store/index.d.ts.map +1 -1
  22. package/esm/model/store/index.js +1 -1
  23. package/esm/model/store/index.js.map +1 -1
  24. package/esm/presentation/alerting/DefaultAlertingDialog/DefaultAlertingDialog.d.ts.map +1 -1
  25. package/esm/presentation/alerting/DefaultAlertingDialog/DefaultAlertingDialog.js +5 -5
  26. package/esm/presentation/alerting/DefaultAlertingDialog/DefaultAlertingDialog.js.map +1 -1
  27. package/esm/presentation/constants/classes.d.ts +2 -0
  28. package/esm/presentation/constants/classes.d.ts.map +1 -0
  29. package/esm/presentation/constants/classes.js +3 -0
  30. package/esm/presentation/constants/classes.js.map +1 -0
  31. package/esm/presentation/constants/index.d.ts +1 -0
  32. package/esm/presentation/constants/index.d.ts.map +1 -1
  33. package/esm/presentation/constants/index.js +1 -0
  34. package/esm/presentation/constants/index.js.map +1 -1
  35. package/esm/presentation/flexibleLayout/DashboardItemOverlay/DashboardItemOverlay.d.ts +11 -0
  36. package/esm/presentation/flexibleLayout/DashboardItemOverlay/DashboardItemOverlay.d.ts.map +1 -0
  37. package/esm/presentation/flexibleLayout/DashboardItemOverlay/DashboardItemOverlay.js +53 -0
  38. package/esm/presentation/flexibleLayout/DashboardItemOverlay/DashboardItemOverlay.js.map +1 -0
  39. package/esm/presentation/flexibleLayout/DashboardItemOverlay/DashboardItemOverlayController.d.ts +8 -0
  40. package/esm/presentation/flexibleLayout/DashboardItemOverlay/DashboardItemOverlayController.d.ts.map +1 -0
  41. package/esm/presentation/flexibleLayout/DashboardItemOverlay/DashboardItemOverlayController.js +17 -0
  42. package/esm/presentation/flexibleLayout/DashboardItemOverlay/DashboardItemOverlayController.js.map +1 -0
  43. package/esm/presentation/flexibleLayout/DashboardLayoutWidget.d.ts +8 -0
  44. package/esm/presentation/flexibleLayout/DashboardLayoutWidget.d.ts.map +1 -0
  45. package/esm/presentation/flexibleLayout/DashboardLayoutWidget.js +199 -0
  46. package/esm/presentation/flexibleLayout/DashboardLayoutWidget.js.map +1 -0
  47. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayout.d.ts +9 -0
  48. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayout.d.ts.map +1 -0
  49. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayout.js +57 -0
  50. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayout.js.map +1 -0
  51. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutEditSectionHeaderRenderer.d.ts +4 -0
  52. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutEditSectionHeaderRenderer.d.ts.map +1 -0
  53. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutEditSectionHeaderRenderer.js +20 -0
  54. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutEditSectionHeaderRenderer.js.map +1 -0
  55. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutGridRow.d.ts +21 -0
  56. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutGridRow.d.ts.map +1 -0
  57. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutGridRow.js +18 -0
  58. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutGridRow.js.map +1 -0
  59. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutGridRowEdit.d.ts +7 -0
  60. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutGridRowEdit.d.ts.map +1 -0
  61. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutGridRowEdit.js +41 -0
  62. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutGridRowEdit.js.map +1 -0
  63. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutItem.d.ts +15 -0
  64. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutItem.d.ts.map +1 -0
  65. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutItem.js +19 -0
  66. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutItem.js.map +1 -0
  67. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutItemRenderer.d.ts +6 -0
  68. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutItemRenderer.d.ts.map +1 -0
  69. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutItemRenderer.js +33 -0
  70. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutItemRenderer.js.map +1 -0
  71. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutItemViewRenderer.d.ts +3 -0
  72. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutItemViewRenderer.d.ts.map +1 -0
  73. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutItemViewRenderer.js +39 -0
  74. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutItemViewRenderer.js.map +1 -0
  75. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutSection.d.ts +24 -0
  76. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutSection.d.ts.map +1 -0
  77. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutSection.js +50 -0
  78. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutSection.js.map +1 -0
  79. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutSectionHeader.d.ts +24 -0
  80. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutSectionHeader.d.ts.map +1 -0
  81. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutSectionHeader.js +15 -0
  82. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutSectionHeader.js.map +1 -0
  83. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutSectionHeaderDescription.d.ts +9 -0
  84. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutSectionHeaderDescription.d.ts.map +1 -0
  85. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutSectionHeaderDescription.js +12 -0
  86. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutSectionHeaderDescription.js.map +1 -0
  87. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutSectionHeaderRenderer.d.ts +4 -0
  88. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutSectionHeaderRenderer.d.ts.map +1 -0
  89. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutSectionHeaderRenderer.js +12 -0
  90. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutSectionHeaderRenderer.js.map +1 -0
  91. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutSectionRenderer.d.ts +3 -0
  92. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutSectionRenderer.d.ts.map +1 -0
  93. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutSectionRenderer.js +13 -0
  94. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutSectionRenderer.js.map +1 -0
  95. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutWidgetRenderer.d.ts +4 -0
  96. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutWidgetRenderer.d.ts.map +1 -0
  97. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutWidgetRenderer.js +32 -0
  98. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutWidgetRenderer.js.map +1 -0
  99. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/EditableDashboardLayoutSectionRenderer.d.ts +3 -0
  100. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/EditableDashboardLayoutSectionRenderer.d.ts.map +1 -0
  101. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/EditableDashboardLayoutSectionRenderer.js +26 -0
  102. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/EditableDashboardLayoutSectionRenderer.js.map +1 -0
  103. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/EditableHeader/EditableLabelWithBubble.d.ts +16 -0
  104. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/EditableHeader/EditableLabelWithBubble.d.ts.map +1 -0
  105. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/EditableHeader/EditableLabelWithBubble.js +38 -0
  106. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/EditableHeader/EditableLabelWithBubble.js.map +1 -0
  107. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/EditableHeader/SectionHeaderEditable.d.ts +8 -0
  108. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/EditableHeader/SectionHeaderEditable.d.ts.map +1 -0
  109. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/EditableHeader/SectionHeaderEditable.js +66 -0
  110. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/EditableHeader/SectionHeaderEditable.js.map +1 -0
  111. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/EditableHeader/sectionHeaderHelper.d.ts +7 -0
  112. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/EditableHeader/sectionHeaderHelper.d.ts.map +1 -0
  113. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/EditableHeader/sectionHeaderHelper.js +18 -0
  114. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/EditableHeader/sectionHeaderHelper.js.map +1 -0
  115. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/RenderModeAwareDashboardLayoutSectionHeaderRenderer.d.ts +8 -0
  116. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/RenderModeAwareDashboardLayoutSectionHeaderRenderer.d.ts.map +1 -0
  117. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/RenderModeAwareDashboardLayoutSectionHeaderRenderer.js +14 -0
  118. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/RenderModeAwareDashboardLayoutSectionHeaderRenderer.js.map +1 -0
  119. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/RenderModeAwareDashboardLayoutSectionRenderer.d.ts +8 -0
  120. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/RenderModeAwareDashboardLayoutSectionRenderer.d.ts.map +1 -0
  121. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/RenderModeAwareDashboardLayoutSectionRenderer.js +14 -0
  122. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/RenderModeAwareDashboardLayoutSectionRenderer.js.map +1 -0
  123. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/index.d.ts +19 -0
  124. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/index.d.ts.map +1 -0
  125. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/index.js +14 -0
  126. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/index.js.map +1 -0
  127. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/interfaces.d.ts +337 -0
  128. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/interfaces.d.ts.map +1 -0
  129. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/interfaces.js +2 -0
  130. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/interfaces.js.map +1 -0
  131. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/utils/emptyFacade.d.ts +3 -0
  132. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/utils/emptyFacade.d.ts.map +1 -0
  133. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/utils/emptyFacade.js +31 -0
  134. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/utils/emptyFacade.js.map +1 -0
  135. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/utils/legacy.d.ts +7 -0
  136. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/utils/legacy.d.ts.map +1 -0
  137. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/utils/legacy.js +33 -0
  138. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/utils/legacy.js.map +1 -0
  139. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/utils/sizing.d.ts +43 -0
  140. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/utils/sizing.d.ts.map +1 -0
  141. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/utils/sizing.js +346 -0
  142. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/utils/sizing.js.map +1 -0
  143. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutUtils.d.ts +22 -0
  144. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutUtils.d.ts.map +1 -0
  145. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutUtils.js +96 -0
  146. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutUtils.js.map +1 -0
  147. package/esm/presentation/flexibleLayout/DefaultFlexibleDashboardLayout.d.ts +7 -0
  148. package/esm/presentation/flexibleLayout/DefaultFlexibleDashboardLayout.d.ts.map +1 -0
  149. package/esm/presentation/flexibleLayout/DefaultFlexibleDashboardLayout.js +101 -0
  150. package/esm/presentation/flexibleLayout/DefaultFlexibleDashboardLayout.js.map +1 -0
  151. package/esm/presentation/flexibleLayout/EmptyDashboardError.d.ts +3 -0
  152. package/esm/presentation/flexibleLayout/EmptyDashboardError.d.ts.map +1 -0
  153. package/esm/presentation/flexibleLayout/EmptyDashboardError.js +10 -0
  154. package/esm/presentation/flexibleLayout/EmptyDashboardError.js.map +1 -0
  155. package/esm/presentation/flexibleLayout/EmptyDashboardLayout.d.ts +3 -0
  156. package/esm/presentation/flexibleLayout/EmptyDashboardLayout.d.ts.map +1 -0
  157. package/esm/presentation/flexibleLayout/EmptyDashboardLayout.js +9 -0
  158. package/esm/presentation/flexibleLayout/EmptyDashboardLayout.js.map +1 -0
  159. package/esm/presentation/flexibleLayout/constants.d.ts +4 -0
  160. package/esm/presentation/flexibleLayout/constants.d.ts.map +1 -0
  161. package/esm/presentation/flexibleLayout/constants.js +14 -0
  162. package/esm/presentation/flexibleLayout/constants.js.map +1 -0
  163. package/esm/presentation/flexibleLayout/index.d.ts +3 -0
  164. package/esm/presentation/flexibleLayout/index.d.ts.map +1 -0
  165. package/esm/presentation/flexibleLayout/index.js +4 -0
  166. package/esm/presentation/flexibleLayout/index.js.map +1 -0
  167. package/esm/presentation/flexibleLayout/refs.d.ts +5 -0
  168. package/esm/presentation/flexibleLayout/refs.d.ts.map +1 -0
  169. package/esm/presentation/flexibleLayout/refs.js +7 -0
  170. package/esm/presentation/flexibleLayout/refs.js.map +1 -0
  171. package/esm/presentation/flexibleLayout/types.d.ts +22 -0
  172. package/esm/presentation/flexibleLayout/types.d.ts.map +1 -0
  173. package/esm/presentation/flexibleLayout/types.js +2 -0
  174. package/esm/presentation/flexibleLayout/types.js.map +1 -0
  175. package/esm/presentation/layout/DefaultDashboardLayout.d.ts.map +1 -1
  176. package/esm/presentation/layout/DefaultDashboardLayout.js +16 -8
  177. package/esm/presentation/layout/DefaultDashboardLayout.js.map +1 -1
  178. package/esm/presentation/localization/bundles/en-US.json +10 -0
  179. package/esm/presentation/widget/common/configuration/ConfigurationBubble.d.ts.map +1 -1
  180. package/esm/presentation/widget/common/configuration/ConfigurationBubble.js +2 -1
  181. package/esm/presentation/widget/common/configuration/ConfigurationBubble.js.map +1 -1
  182. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertAttributeSelecxt.d.ts +14 -0
  183. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertAttributeSelecxt.d.ts.map +1 -0
  184. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertAttributeSelecxt.js +125 -0
  185. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertAttributeSelecxt.js.map +1 -0
  186. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/CreateAlert.d.ts +7 -2
  187. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/CreateAlert.d.ts.map +1 -1
  188. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/CreateAlert.js +2 -2
  189. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/CreateAlert.js.map +1 -1
  190. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/EditAlert.d.ts +7 -2
  191. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/EditAlert.d.ts.map +1 -1
  192. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/EditAlert.js +12 -4
  193. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/EditAlert.js.map +1 -1
  194. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useAttributeValuesFromExecResults.d.ts +12 -0
  195. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useAttributeValuesFromExecResults.d.ts.map +1 -0
  196. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useAttributeValuesFromExecResults.js +86 -0
  197. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useAttributeValuesFromExecResults.js.map +1 -0
  198. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useEditAlert.d.ts +6 -3
  199. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useEditAlert.d.ts.map +1 -1
  200. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useEditAlert.js +6 -2
  201. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useEditAlert.js.map +1 -1
  202. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useInsightAlerting.d.ts +4 -0
  203. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useInsightAlerting.d.ts.map +1 -1
  204. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useInsightAlerting.js +19 -4
  205. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useInsightAlerting.js.map +1 -1
  206. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/utils.d.ts +19 -2
  207. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/utils.d.ts.map +1 -1
  208. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/utils.js +204 -2
  209. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/utils.js.map +1 -1
  210. package/esm/presentation/widget/insight/configuration/InsightAlerts.d.ts.map +1 -1
  211. package/esm/presentation/widget/insight/configuration/InsightAlerts.js +3 -3
  212. package/esm/presentation/widget/insight/configuration/InsightAlerts.js.map +1 -1
  213. package/esm/presentation/widget/insight/types.d.ts +7 -1
  214. package/esm/presentation/widget/insight/types.d.ts.map +1 -1
  215. package/esm/presentation/widget/insight/types.js.map +1 -1
  216. package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/DashboardInsightMenu/DashboardInsightMenuBubble.d.ts.map +1 -1
  217. package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/DashboardInsightMenu/DashboardInsightMenuBubble.js +2 -1
  218. package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/DashboardInsightMenu/DashboardInsightMenuBubble.js.map +1 -1
  219. package/esm/sdk-ui-dashboard.d.ts +13 -8
  220. package/package.json +15 -15
  221. package/styles/css/alerting.css +59 -5
  222. package/styles/css/alerting.css.map +1 -1
  223. package/styles/css/dashboard.css +324 -0
  224. package/styles/css/dashboard.css.map +1 -1
  225. package/styles/css/flexibleLayout.css +425 -0
  226. package/styles/css/flexibleLayout.css.map +1 -0
  227. package/styles/css/main.css +383 -5
  228. package/styles/css/main.css.map +1 -1
  229. package/styles/scss/alerting.scss +69 -5
  230. package/styles/scss/dashboard.scss +1 -0
  231. package/styles/scss/flexibleLayout.scss +410 -0
@@ -0,0 +1,14 @@
1
+ // (C) 2022-2024 GoodData Corporation
2
+ import { renderModeAware } from "../../componentDefinition/index.js";
3
+ import { DashboardLayoutSectionHeaderRenderer } from "./DashboardLayoutSectionHeaderRenderer.js";
4
+ import { DashboardLayoutEditSectionHeaderRenderer } from "./DashboardLayoutEditSectionHeaderRenderer.js";
5
+ /**
6
+ * render function for DashboardLayoutSectionHeader respecting render mode
7
+ *
8
+ * @internal
9
+ */
10
+ export const renderModeAwareDashboardLayoutSectionHeaderRenderer = renderModeAware({
11
+ view: DashboardLayoutSectionHeaderRenderer,
12
+ edit: DashboardLayoutEditSectionHeaderRenderer,
13
+ });
14
+ //# sourceMappingURL=RenderModeAwareDashboardLayoutSectionHeaderRenderer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RenderModeAwareDashboardLayoutSectionHeaderRenderer.js","sourceRoot":"","sources":["../../../../src/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/RenderModeAwareDashboardLayoutSectionHeaderRenderer.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AAErC,OAAO,EAAE,eAAe,EAAE,MAAM,oCAAoC,CAAC;AACrE,OAAO,EAAE,oCAAoC,EAAE,MAAM,2CAA2C,CAAC;AACjG,OAAO,EAAE,wCAAwC,EAAE,MAAM,+CAA+C,CAAC;AAGzG;;;;GAIG;AACH,MAAM,CAAC,MAAM,mDAAmD,GAAG,eAAe,CAAC;IAC/E,IAAI,EAAE,oCAAoC;IAC1C,IAAI,EAAE,wCAAwC;CACjD,CAAmD,CAAC"}
@@ -0,0 +1,8 @@
1
+ import { IDashboardLayoutSectionRenderer } from "./interfaces.js";
2
+ /**
3
+ * render function for DashboardLayoutSection respecting render mode
4
+ *
5
+ * @internal
6
+ */
7
+ export declare const renderModeAwareDashboardLayoutSectionRenderer: IDashboardLayoutSectionRenderer<unknown>;
8
+ //# sourceMappingURL=RenderModeAwareDashboardLayoutSectionRenderer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RenderModeAwareDashboardLayoutSectionRenderer.d.ts","sourceRoot":"","sources":["../../../../src/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/RenderModeAwareDashboardLayoutSectionRenderer.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,+BAA+B,EAAE,MAAM,iBAAiB,CAAC;AAElE;;;;GAIG;AACH,eAAO,MAAM,6CAA6C,0CAGZ,CAAC"}
@@ -0,0 +1,14 @@
1
+ // (C) 2022-2024 GoodData Corporation
2
+ import { renderModeAware } from "../../componentDefinition/index.js";
3
+ import { DashboardLayoutSectionRenderer } from "./DashboardLayoutSectionRenderer.js";
4
+ import { EditableDashboardLayoutSectionRenderer } from "./EditableDashboardLayoutSectionRenderer.js";
5
+ /**
6
+ * render function for DashboardLayoutSection respecting render mode
7
+ *
8
+ * @internal
9
+ */
10
+ export const renderModeAwareDashboardLayoutSectionRenderer = renderModeAware({
11
+ view: DashboardLayoutSectionRenderer,
12
+ edit: EditableDashboardLayoutSectionRenderer,
13
+ });
14
+ //# sourceMappingURL=RenderModeAwareDashboardLayoutSectionRenderer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RenderModeAwareDashboardLayoutSectionRenderer.js","sourceRoot":"","sources":["../../../../src/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/RenderModeAwareDashboardLayoutSectionRenderer.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AAErC,OAAO,EAAE,eAAe,EAAE,MAAM,oCAAoC,CAAC;AACrE,OAAO,EAAE,8BAA8B,EAAE,MAAM,qCAAqC,CAAC;AACrF,OAAO,EAAE,sCAAsC,EAAE,MAAM,6CAA6C,CAAC;AAGrG;;;;GAIG;AACH,MAAM,CAAC,MAAM,6CAA6C,GAAG,eAAe,CAAC;IACzE,IAAI,EAAE,8BAA8B;IACpC,IAAI,EAAE,sCAAsC;CAC/C,CAA6C,CAAC"}
@@ -0,0 +1,19 @@
1
+ export type { IDashboardLayoutItemKeyGetter, IDashboardLayoutItemKeyGetterProps, IDashboardLayoutItemRenderProps, IDashboardLayoutItemRenderer, IDashboardLayoutRenderer, IDashboardLayoutSectionHeaderRenderProps, IDashboardLayoutSectionHeaderRenderer, IDashboardLayoutSectionKeyGetter, IDashboardLayoutSectionKeyGetterProps, IDashboardLayoutSectionRenderProps, IDashboardLayoutSectionRenderer, IDashboardLayoutWidgetRenderProps, IDashboardLayoutWidgetRenderer, IDashboardLayoutGridRowRenderProps, IDashboardLayoutGridRowRenderer, IDashboardLayoutRenderProps, } from "./interfaces.js";
2
+ export { DashboardLayout } from "./DashboardLayout.js";
3
+ export type { IDashboardLayoutItemProps } from "./DashboardLayoutItem.js";
4
+ export { DashboardLayoutItem } from "./DashboardLayoutItem.js";
5
+ export { DashboardLayoutItemRenderer } from "./DashboardLayoutItemRenderer.js";
6
+ export { DashboardLayoutItemViewRenderer } from "./DashboardLayoutItemViewRenderer.js";
7
+ export type { IDashboardLayoutSectionProps } from "./DashboardLayoutSection.js";
8
+ export { DashboardLayoutSection } from "./DashboardLayoutSection.js";
9
+ export { DashboardLayoutSectionHeader } from "./DashboardLayoutSectionHeader.js";
10
+ export { DashboardLayoutSectionHeaderRenderer } from "./DashboardLayoutSectionHeaderRenderer.js";
11
+ export { DashboardLayoutSectionRenderer } from "./DashboardLayoutSectionRenderer.js";
12
+ export { DashboardLayoutWidgetRenderer } from "./DashboardLayoutWidgetRenderer.js";
13
+ export { getGeoPushpinWidgetStyle, isGeoPushpin } from "./utils/legacy.js";
14
+ export { getDashboardLayoutItemHeightForRatioAndScreen, getDashboardLayoutItemMaxGridWidth, getDashboardLayoutWidgetDefaultGridWidth, validateDashboardLayoutWidgetSize, } from "./utils/sizing.js";
15
+ export { DashboardLayoutBuilder } from "../../../_staging/dashboard/fluidLayout/builder/layout.js";
16
+ export { DashboardLayoutFacade } from "../../../_staging/dashboard/fluidLayout/facade/layout.js";
17
+ export type { DashboardLayoutItemModifications, DashboardLayoutItemsSelector, DashboardLayoutModifications, DashboardLayoutSectionModifications, DashboardLayoutSectionsSelector, IDashboardLayoutBuilder, IDashboardLayoutItemBuilder, IDashboardLayoutSectionBuilder, } from "../../../_staging/dashboard/fluidLayout/builder/interfaces.js";
18
+ export type { IDashboardLayoutItemFacade, IDashboardLayoutItemsFacade, IDashboardLayoutFacade, IDashboardLayoutSectionFacade, IDashboardLayoutSectionsFacade, } from "../../../_staging/dashboard/fluidLayout/facade/interfaces.js";
19
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/index.ts"],"names":[],"mappings":"AACA,YAAY,EACR,6BAA6B,EAC7B,kCAAkC,EAClC,+BAA+B,EAC/B,4BAA4B,EAC5B,wBAAwB,EACxB,wCAAwC,EACxC,qCAAqC,EACrC,gCAAgC,EAChC,qCAAqC,EACrC,kCAAkC,EAClC,+BAA+B,EAC/B,iCAAiC,EACjC,8BAA8B,EAC9B,kCAAkC,EAClC,+BAA+B,EAC/B,2BAA2B,GAC9B,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,YAAY,EAAE,yBAAyB,EAAE,MAAM,0BAA0B,CAAC;AAC1E,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,2BAA2B,EAAE,MAAM,kCAAkC,CAAC;AAC/E,OAAO,EAAE,+BAA+B,EAAE,MAAM,sCAAsC,CAAC;AACvF,YAAY,EAAE,4BAA4B,EAAE,MAAM,6BAA6B,CAAC;AAChF,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AACrE,OAAO,EAAE,4BAA4B,EAAE,MAAM,mCAAmC,CAAC;AACjF,OAAO,EAAE,oCAAoC,EAAE,MAAM,2CAA2C,CAAC;AACjG,OAAO,EAAE,8BAA8B,EAAE,MAAM,qCAAqC,CAAC;AACrF,OAAO,EAAE,6BAA6B,EAAE,MAAM,oCAAoC,CAAC;AACnF,OAAO,EAAE,wBAAwB,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAC3E,OAAO,EACH,6CAA6C,EAC7C,kCAAkC,EAClC,wCAAwC,EACxC,iCAAiC,GACpC,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,sBAAsB,EAAE,MAAM,2DAA2D,CAAC;AACnG,OAAO,EAAE,qBAAqB,EAAE,MAAM,0DAA0D,CAAC;AACjG,YAAY,EACR,gCAAgC,EAChC,4BAA4B,EAC5B,4BAA4B,EAC5B,mCAAmC,EACnC,+BAA+B,EAC/B,uBAAuB,EACvB,2BAA2B,EAC3B,8BAA8B,GACjC,MAAM,+DAA+D,CAAC;AACvE,YAAY,EACR,0BAA0B,EAC1B,2BAA2B,EAC3B,sBAAsB,EACtB,6BAA6B,EAC7B,8BAA8B,GACjC,MAAM,8DAA8D,CAAC"}
@@ -0,0 +1,14 @@
1
+ export { DashboardLayout } from "./DashboardLayout.js";
2
+ export { DashboardLayoutItem } from "./DashboardLayoutItem.js";
3
+ export { DashboardLayoutItemRenderer } from "./DashboardLayoutItemRenderer.js";
4
+ export { DashboardLayoutItemViewRenderer } from "./DashboardLayoutItemViewRenderer.js";
5
+ export { DashboardLayoutSection } from "./DashboardLayoutSection.js";
6
+ export { DashboardLayoutSectionHeader } from "./DashboardLayoutSectionHeader.js";
7
+ export { DashboardLayoutSectionHeaderRenderer } from "./DashboardLayoutSectionHeaderRenderer.js";
8
+ export { DashboardLayoutSectionRenderer } from "./DashboardLayoutSectionRenderer.js";
9
+ export { DashboardLayoutWidgetRenderer } from "./DashboardLayoutWidgetRenderer.js";
10
+ export { getGeoPushpinWidgetStyle, isGeoPushpin } from "./utils/legacy.js";
11
+ export { getDashboardLayoutItemHeightForRatioAndScreen, getDashboardLayoutItemMaxGridWidth, getDashboardLayoutWidgetDefaultGridWidth, validateDashboardLayoutWidgetSize, } from "./utils/sizing.js";
12
+ export { DashboardLayoutBuilder } from "../../../_staging/dashboard/fluidLayout/builder/layout.js";
13
+ export { DashboardLayoutFacade } from "../../../_staging/dashboard/fluidLayout/facade/layout.js";
14
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/index.ts"],"names":[],"mappings":"AAoBA,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAEvD,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,2BAA2B,EAAE,MAAM,kCAAkC,CAAC;AAC/E,OAAO,EAAE,+BAA+B,EAAE,MAAM,sCAAsC,CAAC;AAEvF,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AACrE,OAAO,EAAE,4BAA4B,EAAE,MAAM,mCAAmC,CAAC;AACjF,OAAO,EAAE,oCAAoC,EAAE,MAAM,2CAA2C,CAAC;AACjG,OAAO,EAAE,8BAA8B,EAAE,MAAM,qCAAqC,CAAC;AACrF,OAAO,EAAE,6BAA6B,EAAE,MAAM,oCAAoC,CAAC;AACnF,OAAO,EAAE,wBAAwB,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAC3E,OAAO,EACH,6CAA6C,EAC7C,kCAAkC,EAClC,wCAAwC,EACxC,iCAAiC,GACpC,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,sBAAsB,EAAE,MAAM,2DAA2D,CAAC;AACnG,OAAO,EAAE,qBAAqB,EAAE,MAAM,0DAA0D,CAAC"}
@@ -0,0 +1,337 @@
1
+ /// <reference types="react" />
2
+ import { IDashboardLayout, IDashboardWidget, ScreenSize } from "@gooddata/sdk-model";
3
+ import { RenderMode } from "../../../types.js";
4
+ import { IDashboardLayoutItemFacade, IDashboardLayoutSectionFacade } from "../../../_staging/dashboard/fluidLayout/facade/interfaces.js";
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
+ * Default renderer of the section - can be used as a fallback for custom sectionRenderer.
46
+ */
47
+ DefaultSectionRenderer: IDashboardLayoutSectionRenderer<TWidget>;
48
+ /**
49
+ * Columns rendered by columnRenderer.
50
+ */
51
+ children: React.ReactNode;
52
+ /**
53
+ * Dashboard render mode
54
+ */
55
+ renderMode: RenderMode;
56
+ /**
57
+ * Additional section css class name.
58
+ */
59
+ className?: string;
60
+ /**
61
+ * Enable debug mode? (In debug mode, sections & items are highlighted for better overview of the layout structure).
62
+ */
63
+ debug?: boolean;
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
+ * Default renderer of the section header - can be used as a fallback for custom sectionHeaderRenderer.
92
+ */
93
+ DefaultSectionHeaderRenderer: IDashboardLayoutSectionHeaderRenderer<TWidget>;
94
+ }
95
+ /**
96
+ * Dashboard layout section header renderer.
97
+ * Represents a component for rendering the section header.
98
+ *
99
+ * @alpha
100
+ */
101
+ export type IDashboardLayoutSectionHeaderRenderer<TWidget = IDashboardWidget, TCustomProps = object> = (renderProps: IDashboardLayoutSectionHeaderRenderProps<TWidget> & TCustomProps) => JSX.Element | null;
102
+ /**
103
+ * Default props provided to {@link IDashboardLayoutItemKeyGetter}
104
+ *
105
+ * @alpha
106
+ */
107
+ export interface IDashboardLayoutItemKeyGetterProps<TWidget = IDashboardWidget> {
108
+ /**
109
+ * Dashboard layout item.
110
+ */
111
+ item: IDashboardLayoutItemFacade<TWidget>;
112
+ /**
113
+ * Current screen type with respect to the set breakpoints.
114
+ */
115
+ screen: ScreenSize;
116
+ }
117
+ /**
118
+ * Dashboard layout item key getter.
119
+ * This callback is used to determine a unique key of the item.
120
+ * By this callback, you can avoid unnecessary re-renders of the item components,
121
+ * the returned unique key is passed to the React "key" property, when rendering columns.
122
+ * By default, dashboard layout will use columnIndex as a unique key.
123
+ *
124
+ * @alpha
125
+ */
126
+ export type IDashboardLayoutItemKeyGetter<TWidget = IDashboardWidget> = (props: IDashboardLayoutItemKeyGetterProps<TWidget>) => string;
127
+ /**
128
+ * Default props provided to {@link IDashboardLayoutItemRenderer}
129
+ *
130
+ * @alpha
131
+ */
132
+ export interface IDashboardLayoutItemRenderProps<TWidget = IDashboardWidget> {
133
+ /**
134
+ * Dashboard layout item.
135
+ */
136
+ item: IDashboardLayoutItemFacade<TWidget>;
137
+ /**
138
+ * Current screen type with respect to the set breakpoints.
139
+ */
140
+ screen: ScreenSize;
141
+ /**
142
+ * Default renderer of the item - can be used as a fallback for custom columnRenderer.
143
+ */
144
+ DefaultItemRenderer: IDashboardLayoutItemRenderer<TWidget>;
145
+ /**
146
+ * Additional item css class name.
147
+ */
148
+ className?: string;
149
+ /**
150
+ * Minimum height of the item.
151
+ */
152
+ minHeight?: number;
153
+ /**
154
+ * Is hidden item? Use this to hide the item without remounting it.
155
+ */
156
+ isHidden?: boolean;
157
+ /**
158
+ * Widget rendered by widgetRenderer.
159
+ */
160
+ children: React.ReactNode;
161
+ }
162
+ /**
163
+ * Dashboard layout item renderer.
164
+ * Represents a component for rendering the item.
165
+ *
166
+ * @alpha
167
+ */
168
+ export type IDashboardLayoutItemRenderer<TWidget = IDashboardWidget, TCustomProps = object> = (renderProps: IDashboardLayoutItemRenderProps<TWidget> & TCustomProps) => JSX.Element;
169
+ /**
170
+ * Default props provided to {@link IDashboardLayoutItemRenderer}
171
+ *
172
+ * @alpha
173
+ */
174
+ export interface IDashboardLayoutWidgetRenderProps<TWidget = IDashboardWidget> {
175
+ /**
176
+ * Dashboard layout item.
177
+ */
178
+ item: IDashboardLayoutItemFacade<TWidget>;
179
+ /**
180
+ * Current screen type with respect to the set breakpoints.
181
+ */
182
+ screen: ScreenSize;
183
+ /**
184
+ * React ref to content element.
185
+ */
186
+ contentRef?: React.RefObject<HTMLDivElement>;
187
+ /**
188
+ * Additional css class name of the content.
189
+ */
190
+ className?: string;
191
+ /**
192
+ * Content to render - widget, insight, or custom content.
193
+ */
194
+ children?: React.ReactNode;
195
+ /**
196
+ * Height of the content.
197
+ */
198
+ height?: React.CSSProperties["height"];
199
+ /**
200
+ * Minimum height of the content.
201
+ */
202
+ minHeight?: React.CSSProperties["minHeight"];
203
+ /**
204
+ * Allow vertical overflow?
205
+ * (This basically sets overflowX to hidden and overflowY to auto)
206
+ */
207
+ allowOverflow?: boolean;
208
+ /**
209
+ * Was item size updated by layout sizing strategy?
210
+ */
211
+ isResizedByLayoutSizingStrategy?: boolean;
212
+ /**
213
+ * Enable debug mode? (In debug mode, sections & items are highlighted for better overview of the layout structure).
214
+ */
215
+ debug?: boolean;
216
+ /**
217
+ * Get dimensions of layout container element
218
+ */
219
+ getLayoutDimensions: () => DOMRect;
220
+ /**
221
+ * Default widget renderer - can be used as a fallback for custom widgetRenderer.
222
+ */
223
+ DefaultWidgetRenderer: IDashboardLayoutWidgetRenderer<TWidget>;
224
+ }
225
+ /**
226
+ * Dashboard layout content renderer.
227
+ * Represents a component for rendering the item content.
228
+ *
229
+ * @alpha
230
+ */
231
+ export type IDashboardLayoutWidgetRenderer<TWidget = IDashboardWidget, TCustomProps = object> = (renderProps: IDashboardLayoutWidgetRenderProps<TWidget> & TCustomProps) => JSX.Element;
232
+ /**
233
+ * Default props provided to {@link IDashboardLayoutGridRowRenderer}
234
+ *
235
+ * @alpha
236
+ */
237
+ export interface IDashboardLayoutGridRowRenderProps<TWidget = IDashboardWidget> {
238
+ /**
239
+ * Items rendered in one row.
240
+ */
241
+ children: JSX.Element[];
242
+ /**
243
+ * Dashboard layout section.
244
+ */
245
+ section: IDashboardLayoutSectionFacade<TWidget>;
246
+ /**
247
+ * Layout items - keep in mind that these items are only items in the current grid row, not the entire section.
248
+ */
249
+ items: IDashboardLayoutItemFacade<TWidget>[];
250
+ /**
251
+ * Current screen type with respect to the set breakpoints.
252
+ */
253
+ screen: ScreenSize;
254
+ /**
255
+ * Dashboard render mode
256
+ */
257
+ renderMode: RenderMode;
258
+ }
259
+ /**
260
+ * Dashboard layout grid row renderer.
261
+ * Represents a component for rendering the real rendered row
262
+ * with respect to the item sizing and the current screen size.
263
+ *
264
+ * @alpha
265
+ */
266
+ export type IDashboardLayoutGridRowRenderer<TWidget = IDashboardWidget, TCustomProps = object> = (renderProps: IDashboardLayoutGridRowRenderProps<TWidget> & TCustomProps) => JSX.Element;
267
+ /**
268
+ * Dashboard layout render props.
269
+ * Represents a customizable interface for rendering the layout.
270
+ *
271
+ * @alpha
272
+ */
273
+ export interface IDashboardLayoutRenderProps<TWidget = IDashboardWidget> {
274
+ /**
275
+ * Dashboard layout definition to render.
276
+ */
277
+ layout: IDashboardLayout<TWidget>;
278
+ /**
279
+ * Callback to determine a unique key of the section.
280
+ * Check {@link IDashboardLayoutSectionKeyGetter} for more details.
281
+ */
282
+ sectionKeyGetter?: IDashboardLayoutSectionKeyGetter<TWidget>;
283
+ /**
284
+ * Render props callback to customize section rendering.
285
+ */
286
+ sectionRenderer?: IDashboardLayoutSectionRenderer<TWidget>;
287
+ /**
288
+ * Render props callback to customize section header rendering.
289
+ */
290
+ sectionHeaderRenderer?: IDashboardLayoutSectionHeaderRenderer<TWidget>;
291
+ /**
292
+ * Render props callback to customize rendering of the real rendered rows
293
+ * with respect to the items sizing and the current screen size.
294
+ */
295
+ gridRowRenderer?: IDashboardLayoutGridRowRenderer<TWidget>;
296
+ /**
297
+ * Callback to determine a unique key of the item.
298
+ * Check {@link IDashboardLayoutItemKeyGetter} for more details.
299
+ */
300
+ itemKeyGetter?: IDashboardLayoutItemKeyGetter<TWidget>;
301
+ /**
302
+ * Render props callback to customize item rendering.
303
+ */
304
+ itemRenderer?: IDashboardLayoutItemRenderer<TWidget>;
305
+ /**
306
+ * Render props callback to specify how to render the layout widget.
307
+ */
308
+ widgetRenderer: IDashboardLayoutWidgetRenderer<TWidget>;
309
+ /**
310
+ * Additional css class name for the dashboard layout root element.
311
+ */
312
+ className?: string;
313
+ /**
314
+ * Callback called on mouse leave event.
315
+ */
316
+ onMouseLeave?: (e: React.MouseEvent<HTMLDivElement>) => void;
317
+ /**
318
+ * Enable debug mode? (In debug mode, sections & items are highlighted for better overview of the layout structure).
319
+ */
320
+ debug?: boolean;
321
+ /**
322
+ * Checks if feature flag enableKDWidgetCustomHeight is enabled
323
+ */
324
+ enableCustomHeight?: boolean;
325
+ /**
326
+ * Dashboard render mode
327
+ */
328
+ renderMode?: RenderMode;
329
+ }
330
+ /**
331
+ * Dashboard layout renderer.
332
+ * Represents a component for rendering the layout.
333
+ *
334
+ * @alpha
335
+ */
336
+ export type IDashboardLayoutRenderer<TWidget = IDashboardWidget, TCustomProps = object> = (renderProps: IDashboardLayoutRenderProps<TWidget> & TCustomProps) => JSX.Element;
337
+ //# 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,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACrF,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EACH,0BAA0B,EAC1B,6BAA6B,EAChC,MAAM,8DAA8D,CAAC;AAEtE;;;;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,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AAC,OAAO,CAAC,CAAC;IAE7D;;OAEG;IACH,eAAe,CAAC,EAAE,+BAA+B,CAAC,OAAO,CAAC,CAAC;IAE3D;;OAEG;IACH,qBAAqB,CAAC,EAAE,qCAAqC,CAAC,OAAO,CAAC,CAAC;IAEvE;;;OAGG;IACH,eAAe,CAAC,EAAE,+BAA+B,CAAC,OAAO,CAAC,CAAC;IAE3D;;;OAGG;IACH,aAAa,CAAC,EAAE,6BAA6B,CAAC,OAAO,CAAC,CAAC;IAEvD;;OAEG;IACH,YAAY,CAAC,EAAE,4BAA4B,CAAC,OAAO,CAAC,CAAC;IAErD;;OAEG;IACH,cAAc,EAAE,8BAA8B,CAAC,OAAO,CAAC,CAAC;IAExD;;OAEG;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,KAAK,CAAC,EAAE,OAAO,CAAC;IAEhB;;OAEG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAE7B;;OAEG;IACH,UAAU,CAAC,EAAE,UAAU,CAAC;CAC3B;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,3 @@
1
+ import { IDashboardLayoutItemFacade } from "../../../../_staging/dashboard/fluidLayout/index.js";
2
+ export declare const emptyItemFacadeWithFullSize: 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,2BAA2B,EAAE,0BAA0B,CAAC,OAAO,CA4B3E,CAAC"}
@@ -0,0 +1,31 @@
1
+ // (C) 2022-2024 GoodData Corporation
2
+ export const emptyItemFacadeWithFullSize = {
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: 12 } }),
9
+ sizeForScreen: () => ({ gridWidth: 12 }),
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,2BAA2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AAG,EAAE,CAAC,KAAK;IAChC,OAAO,EAAE,GAAG,EAAE,CAAC,KAAK;CACvB,CAAC"}
@@ -0,0 +1,7 @@
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,E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utItem, IDashboardLayoutSize, 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 items - dashboard layout 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
+ * Divide the items into a list representing the future rows of the grid.
13
+ * This is useful for performing item transformations, depending on how they really appear in the grid.
14
+ *
15
+ * @param items - dashboard layout items
16
+ * @param screen - responsive screen class
17
+ */
18
+ export declare function splitDashboardLayoutItemsAsRenderedGridRows<TWidget>(items: IDashboardLayoutItem<TWidget>[], screen: ScreenSize): IDashboardLayoutItem<TWidget>[][];
19
+ /**
20
+ * Tuple that represents a item position in the layout
21
+ * [sectionIndex, itemIndex]
22
+ *
23
+ * @internal
24
+ */
25
+ type ItemPosition = [number, number];
26
+ /**
27
+ *
28
+ * @internal
29
+ */
30
+ export declare const getResizedItemPositions: <TWidget>(originalLayout: IDashboardLayout<TWidget>, resizedLayout: IDashboardLayout<TWidget>, positions?: ItemPosition[]) => ItemPosition[];
31
+ export declare const getDashboardLayoutItemHeightForRatioAndScreen: (size: IDashboardLayoutSize, screen: ScreenSize) => number;
32
+ export declare function getDashboardLayoutItemMaxGridWidth(item: IDashboardLayoutItemFacade<any>, screen: ScreenSize): number;
33
+ export declare function getDashboardLayoutWidgetDefaultGridWidth(settings: ISettings, widgetType: AnalyticalWidgetType, widgetContent?: MeasurableWidgetContent): number;
34
+ export declare function getLayoutWithoutGridHeights<TWidget>(layout: IDashboardLayout<TWidget>): IDashboardLayout<TWidget>;
35
+ /**
36
+ * @internal
37
+ */
38
+ export declare function validateDashboardLayoutWidgetSize(currentWidth: number, currentHeight: number | undefined, widgetType: AnalyticalWidgetType, widgetContent: MeasurableWidgetContent, settings: ISettings): {
39
+ validWidth: number;
40
+ validHeight?: number;
41
+ };
42
+ export {};
43
+ //# 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,EAGpB,SAAS,EAGT,UAAU,EACb,MAAM,qBAAqB,CAAC;AAW7B,OAAO,EAAE,0BAA0B,EAAE,MAAM,iEAAiE,CAAC;AAE7G,OAAO,EAEH,uBAAuB,EAK1B,MAAM,uCAAuC,CAAC;AAO/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;AAoJnC;;;;;;GAMG;AACH,wBAAgB,2CAA2C,CAAC,OAAO,EAC/D,KAAK,EAAE,oBAAoB,CAAC,OAAO,CAAC,EAAE,EACtC,MAAM,EAAE,UAAU,GACnB,oBAAoB,CAAC,OAAO,CAAC,EAAE,EAAE,CA4BnC;AAsGD;;;;;GAKG;AACH,KAAK,YAAY,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAErC;;;GAGG;AACH,eAAO,MAAM,uBAAuB,6GAGrB,YAAY,EAAE,KAC1B,YAAY,EAiCd,CAAC;AAEF,eAAO,MAAM,6CAA6C,SAChD,oBAAoB,UAClB,UAAU,KACnB,MAOF,CAAC;AAEF,wBA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