@gooddata/sdk-ui-dashboard 10.22.0-alpha.9 → 10.23.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (378) hide show
  1. package/NOTICE +4516 -4046
  2. package/esm/__version.d.ts +1 -1
  3. package/esm/__version.js +1 -1
  4. package/esm/_staging/dashboard/dashboardFilterConverter.d.ts +5 -2
  5. package/esm/_staging/dashboard/dashboardFilterConverter.d.ts.map +1 -1
  6. package/esm/_staging/dashboard/dashboardFilterConverter.js +12 -7
  7. package/esm/_staging/dashboard/dashboardFilterConverter.js.map +1 -1
  8. package/esm/_staging/sharedHooks/useFiltersNamings.d.ts +2 -0
  9. package/esm/_staging/sharedHooks/useFiltersNamings.d.ts.map +1 -1
  10. package/esm/_staging/sharedHooks/useFiltersNamings.js +8 -2
  11. package/esm/_staging/sharedHooks/useFiltersNamings.js.map +1 -1
  12. package/esm/assets/type-csv-formatted.svg +1 -0
  13. package/esm/assets/type-csv-raw.svg +1 -0
  14. package/esm/assets/type-image.svg +1 -0
  15. package/esm/assets/type-pdf.svg +1 -0
  16. package/esm/assets/type-sheet.svg +1 -0
  17. package/esm/assets/type-slides.svg +1 -0
  18. package/esm/model/commandHandlers/dashboard/common/migratedAttributeFilters.d.ts +18 -0
  19. package/esm/model/commandHandlers/dashboard/common/migratedAttributeFilters.d.ts.map +1 -0
  20. package/esm/model/commandHandlers/dashboard/common/migratedAttributeFilters.js +36 -0
  21. package/esm/model/commandHandlers/dashboard/common/migratedAttributeFilters.js.map +1 -0
  22. package/esm/model/commandHandlers/dashboard/common/stateInitializers.d.ts +8 -2
  23. package/esm/model/commandHandlers/dashboard/common/stateInitializers.d.ts.map +1 -1
  24. package/esm/model/commandHandlers/dashboard/common/stateInitializers.js +20 -7
  25. package/esm/model/commandHandlers/dashboard/common/stateInitializers.js.map +1 -1
  26. package/esm/model/commandHandlers/dashboard/exportDashboardToExcelHandler.d.ts +6 -0
  27. package/esm/model/commandHandlers/dashboard/exportDashboardToExcelHandler.d.ts.map +1 -0
  28. package/esm/model/commandHandlers/dashboard/exportDashboardToExcelHandler.js +26 -0
  29. package/esm/model/commandHandlers/dashboard/exportDashboardToExcelHandler.js.map +1 -0
  30. package/esm/model/commandHandlers/dashboard/exportDashboardToPdfPresentationHandler.d.ts +6 -0
  31. package/esm/model/commandHandlers/dashboard/exportDashboardToPdfPresentationHandler.d.ts.map +1 -0
  32. package/esm/model/commandHandlers/dashboard/exportDashboardToPdfPresentationHandler.js +33 -0
  33. package/esm/model/commandHandlers/dashboard/exportDashboardToPdfPresentationHandler.js.map +1 -0
  34. package/esm/model/commandHandlers/dashboard/exportDashboardToPptPresentationHandler.d.ts +6 -0
  35. package/esm/model/commandHandlers/dashboard/exportDashboardToPptPresentationHandler.d.ts.map +1 -0
  36. package/esm/model/commandHandlers/dashboard/exportDashboardToPptPresentationHandler.js +33 -0
  37. package/esm/model/commandHandlers/dashboard/exportDashboardToPptPresentationHandler.js.map +1 -0
  38. package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/index.d.ts.map +1 -1
  39. package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/index.js +1 -1
  40. package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/index.js.map +1 -1
  41. package/esm/model/commandHandlers/dashboard/resetDashboardHandler.d.ts.map +1 -1
  42. package/esm/model/commandHandlers/dashboard/resetDashboardHandler.js +37 -4
  43. package/esm/model/commandHandlers/dashboard/resetDashboardHandler.js.map +1 -1
  44. package/esm/model/commandHandlers/dashboard/saveAsDashboardHandler.d.ts.map +1 -1
  45. package/esm/model/commandHandlers/dashboard/saveAsDashboardHandler.js +19 -5
  46. package/esm/model/commandHandlers/dashboard/saveAsDashboardHandler.js.map +1 -1
  47. package/esm/model/commandHandlers/filterContext/attributeFilter/changeAttributeDisplayFormHandler.d.ts.map +1 -1
  48. package/esm/model/commandHandlers/filterContext/attributeFilter/changeAttributeDisplayFormHandler.js +14 -7
  49. package/esm/model/commandHandlers/filterContext/attributeFilter/changeAttributeDisplayFormHandler.js.map +1 -1
  50. package/esm/model/commandHandlers/filterContext/attributeFilter/changeAttributeFilterSelectionHandler.d.ts.map +1 -1
  51. package/esm/model/commandHandlers/filterContext/attributeFilter/changeAttributeFilterSelectionHandler.js +12 -4
  52. package/esm/model/commandHandlers/filterContext/attributeFilter/changeAttributeFilterSelectionHandler.js.map +1 -1
  53. package/esm/model/commandHandlers/filterContext/common.d.ts +4 -0
  54. package/esm/model/commandHandlers/filterContext/common.d.ts.map +1 -1
  55. package/esm/model/commandHandlers/filterContext/common.js +8 -1
  56. package/esm/model/commandHandlers/filterContext/common.js.map +1 -1
  57. package/esm/model/commandHandlers/filterContext/dateFilter/changeDateFilterSelectionHandler.d.ts.map +1 -1
  58. package/esm/model/commandHandlers/filterContext/dateFilter/changeDateFilterSelectionHandler.js +15 -9
  59. package/esm/model/commandHandlers/filterContext/dateFilter/changeDateFilterSelectionHandler.js.map +1 -1
  60. package/esm/model/commandHandlers/filterContext/filterViewHandler.d.ts.map +1 -1
  61. package/esm/model/commandHandlers/filterContext/filterViewHandler.js +9 -2
  62. package/esm/model/commandHandlers/filterContext/filterViewHandler.js.map +1 -1
  63. package/esm/model/commandHandlers/index.d.ts.map +1 -1
  64. package/esm/model/commandHandlers/index.js +10 -0
  65. package/esm/model/commandHandlers/index.js.map +1 -1
  66. package/esm/model/commandHandlers/widgets/exportRawInsightWidgetHandler.d.ts.map +1 -1
  67. package/esm/model/commandHandlers/widgets/exportRawInsightWidgetHandler.js +21 -16
  68. package/esm/model/commandHandlers/widgets/exportRawInsightWidgetHandler.js.map +1 -1
  69. package/esm/model/commandHandlers/widgets/exportSlidesInsightWidgetHandler.d.ts +6 -0
  70. package/esm/model/commandHandlers/widgets/exportSlidesInsightWidgetHandler.d.ts.map +1 -0
  71. package/esm/model/commandHandlers/widgets/exportSlidesInsightWidgetHandler.js +33 -0
  72. package/esm/model/commandHandlers/widgets/exportSlidesInsightWidgetHandler.js.map +1 -0
  73. package/esm/model/commands/base.d.ts +1 -1
  74. package/esm/model/commands/base.d.ts.map +1 -1
  75. package/esm/model/commands/dashboard.d.ts +51 -0
  76. package/esm/model/commands/dashboard.d.ts.map +1 -1
  77. package/esm/model/commands/dashboard.js +49 -1
  78. package/esm/model/commands/dashboard.js.map +1 -1
  79. package/esm/model/commands/filters.d.ts +74 -4
  80. package/esm/model/commands/filters.d.ts.map +1 -1
  81. package/esm/model/commands/filters.js +71 -4
  82. package/esm/model/commands/filters.js.map +1 -1
  83. package/esm/model/commands/index.d.ts +10 -10
  84. package/esm/model/commands/index.d.ts.map +1 -1
  85. package/esm/model/commands/index.js +3 -3
  86. package/esm/model/commands/index.js.map +1 -1
  87. package/esm/model/commands/insight.d.ts +51 -5
  88. package/esm/model/commands/insight.d.ts.map +1 -1
  89. package/esm/model/commands/insight.js +27 -2
  90. package/esm/model/commands/insight.js.map +1 -1
  91. package/esm/model/events/base.d.ts +1 -1
  92. package/esm/model/events/base.d.ts.map +1 -1
  93. package/esm/model/events/base.js.map +1 -1
  94. package/esm/model/events/dashboard.d.ts +144 -0
  95. package/esm/model/events/dashboard.d.ts.map +1 -1
  96. package/esm/model/events/dashboard.js +97 -1
  97. package/esm/model/events/dashboard.js.map +1 -1
  98. package/esm/model/events/index.d.ts +4 -4
  99. package/esm/model/events/index.d.ts.map +1 -1
  100. package/esm/model/events/index.js +1 -1
  101. package/esm/model/events/index.js.map +1 -1
  102. package/esm/model/react/useDashboardCommand.d.ts +6 -0
  103. package/esm/model/react/useDashboardCommand.d.ts.map +1 -1
  104. package/esm/model/react/useDashboardCommandProcessing.d.ts +24 -0
  105. package/esm/model/react/useDashboardCommandProcessing.d.ts.map +1 -1
  106. package/esm/model/store/config/configSelectors.d.ts +18 -0
  107. package/esm/model/store/config/configSelectors.d.ts.map +1 -1
  108. package/esm/model/store/config/configSelectors.js +24 -0
  109. package/esm/model/store/config/configSelectors.js.map +1 -1
  110. package/esm/model/store/filterContext/filterContextReducers.d.ts +11 -0
  111. package/esm/model/store/filterContext/filterContextReducers.d.ts.map +1 -1
  112. package/esm/model/store/filterContext/filterContextReducers.js +87 -28
  113. package/esm/model/store/filterContext/filterContextReducers.js.map +1 -1
  114. package/esm/model/store/filterContext/filterContextSelectors.d.ts +70 -5
  115. package/esm/model/store/filterContext/filterContextSelectors.d.ts.map +1 -1
  116. package/esm/model/store/filterContext/filterContextSelectors.js +124 -7
  117. package/esm/model/store/filterContext/filterContextSelectors.js.map +1 -1
  118. package/esm/model/store/filterContext/filterContextState.d.ts +44 -2
  119. package/esm/model/store/filterContext/filterContextState.d.ts.map +1 -1
  120. package/esm/model/store/filterContext/filterContextState.js +1 -0
  121. package/esm/model/store/filterContext/filterContextState.js.map +1 -1
  122. package/esm/model/store/filterContext/filterContextUtils.d.ts +10 -0
  123. package/esm/model/store/filterContext/filterContextUtils.d.ts.map +1 -0
  124. package/esm/model/store/filterContext/filterContextUtils.js +70 -0
  125. package/esm/model/store/filterContext/filterContextUtils.js.map +1 -0
  126. package/esm/model/store/filterContext/index.d.ts +4 -0
  127. package/esm/model/store/filterContext/index.d.ts.map +1 -1
  128. package/esm/model/store/index.d.ts +5 -4
  129. package/esm/model/store/index.d.ts.map +1 -1
  130. package/esm/model/store/index.js +4 -3
  131. package/esm/model/store/index.js.map +1 -1
  132. package/esm/model/store/topBar/topBarSelectors.d.ts +86 -0
  133. package/esm/model/store/topBar/topBarSelectors.d.ts.map +1 -0
  134. package/esm/model/store/topBar/topBarSelectors.js +160 -0
  135. package/esm/model/store/topBar/topBarSelectors.js.map +1 -0
  136. package/esm/presentation/dashboard/Dashboard.d.ts +1 -1
  137. package/esm/presentation/dashboard/Dashboard.d.ts.map +1 -1
  138. package/esm/presentation/dashboard/Dashboard.js +26 -6
  139. package/esm/presentation/dashboard/Dashboard.js.map +1 -1
  140. package/esm/presentation/dashboardContexts/useSlideData.d.ts.map +1 -1
  141. package/esm/presentation/dashboardContexts/useSlideData.js +1 -0
  142. package/esm/presentation/dashboardContexts/useSlideData.js.map +1 -1
  143. package/esm/presentation/dragAndDrop/draggableDateFilter/DraggableDateFilter.d.ts +1 -1
  144. package/esm/presentation/dragAndDrop/draggableDateFilter/DraggableDateFilter.d.ts.map +1 -1
  145. package/esm/presentation/dragAndDrop/draggableDateFilter/DraggableDateFilter.js +1 -1
  146. package/esm/presentation/dragAndDrop/draggableDateFilter/DraggableDateFilter.js.map +1 -1
  147. package/esm/presentation/export/DefaultDashboardExportVariables.d.ts +13 -0
  148. package/esm/presentation/export/DefaultDashboardExportVariables.d.ts.map +1 -0
  149. package/esm/presentation/export/DefaultDashboardExportVariables.js +34 -0
  150. package/esm/presentation/export/DefaultDashboardExportVariables.js.map +1 -0
  151. package/esm/presentation/export/hooks/useDashboardRelatedFilters.d.ts +17 -0
  152. package/esm/presentation/export/hooks/useDashboardRelatedFilters.d.ts.map +1 -0
  153. package/esm/presentation/export/hooks/useDashboardRelatedFilters.js +13 -0
  154. package/esm/presentation/export/hooks/useDashboardRelatedFilters.js.map +1 -0
  155. package/esm/presentation/export/index.d.ts +1 -0
  156. package/esm/presentation/export/index.d.ts.map +1 -1
  157. package/esm/presentation/export/index.js +1 -0
  158. package/esm/presentation/export/index.js.map +1 -1
  159. package/esm/presentation/export/types.d.ts +42 -1
  160. package/esm/presentation/export/types.d.ts.map +1 -1
  161. package/esm/presentation/export/useExportData.d.ts +6 -2
  162. package/esm/presentation/export/useExportData.d.ts.map +1 -1
  163. package/esm/presentation/export/useExportData.js +57 -3
  164. package/esm/presentation/export/useExportData.js.map +1 -1
  165. package/esm/presentation/filterBar/attributeFilter/DefaultDashboardAttributeFilter.d.ts.map +1 -1
  166. package/esm/presentation/filterBar/attributeFilter/DefaultDashboardAttributeFilter.js +9 -2
  167. package/esm/presentation/filterBar/attributeFilter/DefaultDashboardAttributeFilter.js.map +1 -1
  168. package/esm/presentation/filterBar/attributeFilter/types.d.ts +2 -1
  169. package/esm/presentation/filterBar/attributeFilter/types.d.ts.map +1 -1
  170. package/esm/presentation/filterBar/attributeFilter/useDependentDateFilters.d.ts.map +1 -1
  171. package/esm/presentation/filterBar/attributeFilter/useDependentDateFilters.js +14 -4
  172. package/esm/presentation/filterBar/attributeFilter/useDependentDateFilters.js.map +1 -1
  173. package/esm/presentation/filterBar/attributeFilter/useParentFilters.d.ts.map +1 -1
  174. package/esm/presentation/filterBar/attributeFilter/useParentFilters.js +9 -3
  175. package/esm/presentation/filterBar/attributeFilter/useParentFilters.js.map +1 -1
  176. package/esm/presentation/filterBar/dateFilter/DefaultDashboardDateFilter.d.ts.map +1 -1
  177. package/esm/presentation/filterBar/dateFilter/DefaultDashboardDateFilter.js +8 -2
  178. package/esm/presentation/filterBar/dateFilter/DefaultDashboardDateFilter.js.map +1 -1
  179. package/esm/presentation/filterBar/dateFilter/types.d.ts +2 -1
  180. package/esm/presentation/filterBar/dateFilter/types.d.ts.map +1 -1
  181. package/esm/presentation/filterBar/filterBar/DefaultFilterBar.d.ts.map +1 -1
  182. package/esm/presentation/filterBar/filterBar/DefaultFilterBar.js +19 -10
  183. package/esm/presentation/filterBar/filterBar/DefaultFilterBar.js.map +1 -1
  184. package/esm/presentation/filterBar/filterBar/DefaultFilterBarContainer.d.ts.map +1 -1
  185. package/esm/presentation/filterBar/filterBar/DefaultFilterBarContainer.js +15 -4
  186. package/esm/presentation/filterBar/filterBar/DefaultFilterBarContainer.js.map +1 -1
  187. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutSection.d.ts.map +1 -1
  188. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutSection.js +2 -3
  189. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutSection.js.map +1 -1
  190. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutViewSectionHeaderRenderer.js +1 -1
  191. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutViewSectionHeaderRenderer.js.map +1 -1
  192. package/esm/presentation/flexibleLayout/DefaultFlexibleDashboardLayout.d.ts.map +1 -1
  193. package/esm/presentation/flexibleLayout/DefaultFlexibleDashboardLayout.js +2 -0
  194. package/esm/presentation/flexibleLayout/DefaultFlexibleDashboardLayout.js.map +1 -1
  195. package/esm/presentation/layout/DefaultDashboardLayout.d.ts.map +1 -1
  196. package/esm/presentation/layout/DefaultDashboardLayout.js +2 -0
  197. package/esm/presentation/layout/DefaultDashboardLayout.js.map +1 -1
  198. package/esm/presentation/layout/DefaultDashboardLayoutRenderer/DashboardLayoutSection.js +1 -1
  199. package/esm/presentation/layout/DefaultDashboardLayoutRenderer/DashboardLayoutSection.js.map +1 -1
  200. package/esm/presentation/layout/DefaultDashboardLayoutRenderer/DashboardLayoutSectionHeader.js +1 -1
  201. package/esm/presentation/layout/DefaultDashboardLayoutRenderer/DashboardLayoutSectionHeader.js.map +1 -1
  202. package/esm/presentation/localization/bundles/de-DE.json +14 -1
  203. package/esm/presentation/localization/bundles/en-AU.json +14 -1
  204. package/esm/presentation/localization/bundles/en-GB.json +14 -1
  205. package/esm/presentation/localization/bundles/en-US.json +46 -1
  206. package/esm/presentation/localization/bundles/es-419.json +14 -1
  207. package/esm/presentation/localization/bundles/es-ES.json +14 -1
  208. package/esm/presentation/localization/bundles/fi-FI.json +14 -1
  209. package/esm/presentation/localization/bundles/fr-CA.json +14 -1
  210. package/esm/presentation/localization/bundles/fr-FR.json +14 -1
  211. package/esm/presentation/localization/bundles/it-IT.json +14 -1
  212. package/esm/presentation/localization/bundles/ja-JP.json +14 -1
  213. package/esm/presentation/localization/bundles/nl-NL.json +14 -1
  214. package/esm/presentation/localization/bundles/pt-BR.json +14 -1
  215. package/esm/presentation/localization/bundles/pt-PT.json +14 -1
  216. package/esm/presentation/localization/bundles/ru-RU.json +1 -0
  217. package/esm/presentation/localization/bundles/zh-HK.json +14 -1
  218. package/esm/presentation/localization/bundles/zh-Hans.json +14 -1
  219. package/esm/presentation/localization/bundles/zh-Hant.json +14 -1
  220. package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/DefaultScheduledEmailDialog.d.ts.map +1 -1
  221. package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/DefaultScheduledEmailDialog.js +2 -0
  222. package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/DefaultScheduledEmailDialog.js.map +1 -1
  223. package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/hooks/useFiltersForDashboardScheduledExportInfo.d.ts +2 -0
  224. package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/hooks/useFiltersForDashboardScheduledExportInfo.d.ts.map +1 -1
  225. package/esm/presentation/topBar/buttonBar/button/editButton/DefaultEditButton.d.ts.map +1 -1
  226. package/esm/presentation/topBar/buttonBar/button/editButton/DefaultEditButton.js +5 -4
  227. package/esm/presentation/topBar/buttonBar/button/editButton/DefaultEditButton.js.map +1 -1
  228. package/esm/presentation/topBar/buttonBar/button/saveAsButton/DefaultSaveAsNewButton.d.ts +0 -5
  229. package/esm/presentation/topBar/buttonBar/button/saveAsButton/DefaultSaveAsNewButton.d.ts.map +1 -1
  230. package/esm/presentation/topBar/buttonBar/button/saveAsButton/DefaultSaveAsNewButton.js +2 -27
  231. package/esm/presentation/topBar/buttonBar/button/saveAsButton/DefaultSaveAsNewButton.js.map +1 -1
  232. package/esm/presentation/topBar/buttonBar/button/saveAsButton/index.d.ts +1 -1
  233. package/esm/presentation/topBar/buttonBar/button/saveAsButton/index.d.ts.map +1 -1
  234. package/esm/presentation/topBar/buttonBar/button/saveAsButton/index.js +2 -2
  235. package/esm/presentation/topBar/buttonBar/button/saveAsButton/index.js.map +1 -1
  236. package/esm/presentation/topBar/buttonBar/button/saveButton/DefaultSaveButton.d.ts.map +1 -1
  237. package/esm/presentation/topBar/buttonBar/button/saveButton/DefaultSaveButton.js +2 -3
  238. package/esm/presentation/topBar/buttonBar/button/saveButton/DefaultSaveButton.js.map +1 -1
  239. package/esm/presentation/topBar/buttonBar/button/shareButton/DefaultShareButton.d.ts.map +1 -1
  240. package/esm/presentation/topBar/buttonBar/button/shareButton/DefaultShareButton.js +3 -4
  241. package/esm/presentation/topBar/buttonBar/button/shareButton/DefaultShareButton.js.map +1 -1
  242. package/esm/presentation/topBar/menuButton/DefaultMenuButton.d.ts.map +1 -1
  243. package/esm/presentation/topBar/menuButton/DefaultMenuButton.js +53 -28
  244. package/esm/presentation/topBar/menuButton/DefaultMenuButton.js.map +1 -1
  245. package/esm/presentation/topBar/menuButton/DefaultSubmenuHeader.d.ts +9 -0
  246. package/esm/presentation/topBar/menuButton/DefaultSubmenuHeader.d.ts.map +1 -0
  247. package/esm/presentation/topBar/menuButton/DefaultSubmenuHeader.js +15 -0
  248. package/esm/presentation/topBar/menuButton/DefaultSubmenuHeader.js.map +1 -0
  249. package/esm/presentation/topBar/menuButton/types.d.ts +18 -1
  250. package/esm/presentation/topBar/menuButton/types.d.ts.map +1 -1
  251. package/esm/presentation/topBar/menuButton/useDefaultMenuItems.d.ts.map +1 -1
  252. package/esm/presentation/topBar/menuButton/useDefaultMenuItems.js +105 -69
  253. package/esm/presentation/topBar/menuButton/useDefaultMenuItems.js.map +1 -1
  254. package/esm/presentation/topBar/menuButton/useExportDashboardToExcel.d.ts +5 -0
  255. package/esm/presentation/topBar/menuButton/useExportDashboardToExcel.d.ts.map +1 -0
  256. package/esm/presentation/topBar/menuButton/useExportDashboardToExcel.js +44 -0
  257. package/esm/presentation/topBar/menuButton/useExportDashboardToExcel.js.map +1 -0
  258. package/esm/presentation/topBar/menuButton/useExportDashboardToPdf.d.ts +5 -0
  259. package/esm/presentation/topBar/menuButton/useExportDashboardToPdf.d.ts.map +1 -0
  260. package/esm/presentation/topBar/menuButton/useExportDashboardToPdf.js +44 -0
  261. package/esm/presentation/topBar/menuButton/useExportDashboardToPdf.js.map +1 -0
  262. package/esm/presentation/topBar/menuButton/useExportDashboardToPdfPresentation.d.ts +5 -0
  263. package/esm/presentation/topBar/menuButton/useExportDashboardToPdfPresentation.d.ts.map +1 -0
  264. package/esm/presentation/topBar/menuButton/useExportDashboardToPdfPresentation.js +44 -0
  265. package/esm/presentation/topBar/menuButton/useExportDashboardToPdfPresentation.js.map +1 -0
  266. package/esm/presentation/topBar/menuButton/useExportDashboardToPowerPointPresentation.d.ts +5 -0
  267. package/esm/presentation/topBar/menuButton/useExportDashboardToPowerPointPresentation.d.ts.map +1 -0
  268. package/esm/presentation/topBar/menuButton/useExportDashboardToPowerPointPresentation.js +44 -0
  269. package/esm/presentation/topBar/menuButton/useExportDashboardToPowerPointPresentation.js.map +1 -0
  270. package/esm/presentation/topBar/shareIndicators/shareStatus/ShareStatusIndicator.js +2 -2
  271. package/esm/presentation/topBar/shareIndicators/shareStatus/ShareStatusIndicator.js.map +1 -1
  272. package/esm/presentation/widget/common/useCustomWidgetExecutionDataView.d.ts +8 -1
  273. package/esm/presentation/widget/common/useCustomWidgetExecutionDataView.d.ts.map +1 -1
  274. package/esm/presentation/widget/common/useCustomWidgetExecutionDataView.js +6 -3
  275. package/esm/presentation/widget/common/useCustomWidgetExecutionDataView.js.map +1 -1
  276. package/esm/presentation/widget/common/useCustomWidgetInsightDataView.d.ts +8 -1
  277. package/esm/presentation/widget/common/useCustomWidgetInsightDataView.d.ts.map +1 -1
  278. package/esm/presentation/widget/common/useCustomWidgetInsightDataView.js +6 -3
  279. package/esm/presentation/widget/common/useCustomWidgetInsightDataView.js.map +1 -1
  280. package/esm/presentation/widget/common/useInsightExport.d.ts +8 -2
  281. package/esm/presentation/widget/common/useInsightExport.d.ts.map +1 -1
  282. package/esm/presentation/widget/common/useInsightExport.js +26 -4
  283. package/esm/presentation/widget/common/useInsightExport.js.map +1 -1
  284. package/esm/presentation/widget/common/useRawExportHandler.d.ts.map +1 -1
  285. package/esm/presentation/widget/common/useRawExportHandler.js.map +1 -1
  286. package/esm/presentation/widget/common/useSlidesExportHandler.d.ts +5 -0
  287. package/esm/presentation/widget/common/useSlidesExportHandler.d.ts.map +1 -0
  288. package/esm/presentation/widget/common/useSlidesExportHandler.js +35 -0
  289. package/esm/presentation/widget/common/useSlidesExportHandler.js.map +1 -0
  290. package/esm/presentation/widget/description/DescriptionClickTrigger.d.ts.map +1 -1
  291. package/esm/presentation/widget/description/DescriptionClickTrigger.js +3 -3
  292. package/esm/presentation/widget/description/DescriptionClickTrigger.js.map +1 -1
  293. package/esm/presentation/widget/insight/DefaultDashboardInsight.d.ts +3 -2
  294. package/esm/presentation/widget/insight/DefaultDashboardInsight.d.ts.map +1 -1
  295. package/esm/presentation/widget/insight/DefaultDashboardInsight.js +13 -4
  296. package/esm/presentation/widget/insight/DefaultDashboardInsight.js.map +1 -1
  297. package/esm/presentation/widget/insight/ViewModeDashboardInsight/Insight/DashboardInsight.d.ts.map +1 -1
  298. package/esm/presentation/widget/insight/ViewModeDashboardInsight/Insight/DashboardInsight.js +35 -9
  299. package/esm/presentation/widget/insight/ViewModeDashboardInsight/Insight/DashboardInsight.js.map +1 -1
  300. package/esm/presentation/widget/insight/ViewModeDashboardInsight/InsightDrillDialog/DrillDialog.d.ts +2 -0
  301. package/esm/presentation/widget/insight/ViewModeDashboardInsight/InsightDrillDialog/DrillDialog.d.ts.map +1 -1
  302. package/esm/presentation/widget/insight/ViewModeDashboardInsight/InsightDrillDialog/DrillDialog.js +2 -2
  303. package/esm/presentation/widget/insight/ViewModeDashboardInsight/InsightDrillDialog/DrillDialog.js.map +1 -1
  304. package/esm/presentation/widget/insight/ViewModeDashboardInsight/InsightDrillDialog/DrillModalFooter.d.ts +2 -0
  305. package/esm/presentation/widget/insight/ViewModeDashboardInsight/InsightDrillDialog/DrillModalFooter.d.ts.map +1 -1
  306. package/esm/presentation/widget/insight/ViewModeDashboardInsight/InsightDrillDialog/DrillModalFooter.js +3 -3
  307. package/esm/presentation/widget/insight/ViewModeDashboardInsight/InsightDrillDialog/DrillModalFooter.js.map +1 -1
  308. package/esm/presentation/widget/insight/ViewModeDashboardInsight/InsightDrillDialog/DrillModalRawExportOptions.d.ts +2 -0
  309. package/esm/presentation/widget/insight/ViewModeDashboardInsight/InsightDrillDialog/DrillModalRawExportOptions.d.ts.map +1 -1
  310. package/esm/presentation/widget/insight/ViewModeDashboardInsight/InsightDrillDialog/DrillModalRawExportOptions.js +6 -5
  311. package/esm/presentation/widget/insight/ViewModeDashboardInsight/InsightDrillDialog/DrillModalRawExportOptions.js.map +1 -1
  312. package/esm/presentation/widget/insight/ViewModeDashboardInsight/InsightDrillDialog/InsightDrillDialog.d.ts.map +1 -1
  313. package/esm/presentation/widget/insight/ViewModeDashboardInsight/InsightDrillDialog/InsightDrillDialog.js +7 -3
  314. package/esm/presentation/widget/insight/ViewModeDashboardInsight/InsightDrillDialog/InsightDrillDialog.js.map +1 -1
  315. package/esm/presentation/widget/insight/configuration/ExportOptions.d.ts +14 -1
  316. package/esm/presentation/widget/insight/configuration/ExportOptions.d.ts.map +1 -1
  317. package/esm/presentation/widget/insight/configuration/ExportOptions.js +30 -31
  318. package/esm/presentation/widget/insight/configuration/ExportOptions.js.map +1 -1
  319. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertComparisonOperatorSelect.d.ts.map +1 -1
  320. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertComparisonOperatorSelect.js +6 -3
  321. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertComparisonOperatorSelect.js.map +1 -1
  322. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertDestinationSelect.d.ts.map +1 -1
  323. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertDestinationSelect.js +4 -1
  324. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertDestinationSelect.js.map +1 -1
  325. package/esm/presentation/widget/insight/types.d.ts +4 -0
  326. package/esm/presentation/widget/insight/types.d.ts.map +1 -1
  327. package/esm/presentation/widget/insight/types.js.map +1 -1
  328. package/esm/presentation/widget/insight/useBackendWithInsightWidgetCorrelation.d.ts +6 -0
  329. package/esm/presentation/widget/insight/useBackendWithInsightWidgetCorrelation.d.ts.map +1 -0
  330. package/esm/presentation/widget/insight/useBackendWithInsightWidgetCorrelation.js +26 -0
  331. package/esm/presentation/widget/insight/useBackendWithInsightWidgetCorrelation.js.map +1 -0
  332. package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/DashboardInsightMenuButton.d.ts.map +1 -1
  333. package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/DashboardInsightMenuButton.js +4 -3
  334. package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/DashboardInsightMenuButton.js.map +1 -1
  335. package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/getDefaultInsightMenuItems.d.ts +6 -0
  336. package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/getDefaultInsightMenuItems.d.ts.map +1 -1
  337. package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/getDefaultInsightMenuItems.js +12 -4
  338. package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/getDefaultInsightMenuItems.js.map +1 -1
  339. package/esm/presentation/widget/visualizationSwitcher/ViewModeDashboardVisualizationSwitcher.d.ts.map +1 -1
  340. package/esm/presentation/widget/visualizationSwitcher/ViewModeDashboardVisualizationSwitcher.js +7 -1
  341. package/esm/presentation/widget/visualizationSwitcher/ViewModeDashboardVisualizationSwitcher.js.map +1 -1
  342. package/esm/presentation/widget/widget/InsightWidget/DefaultDashboardInsightWidget.js +7 -1
  343. package/esm/presentation/widget/widget/InsightWidget/DefaultDashboardInsightWidget.js.map +1 -1
  344. package/esm/presentation/widget/widget/InsightWidget/useInsightMenu.d.ts +5 -0
  345. package/esm/presentation/widget/widget/InsightWidget/useInsightMenu.d.ts.map +1 -1
  346. package/esm/presentation/widget/widget/InsightWidget/useInsightMenu.js +23 -2
  347. package/esm/presentation/widget/widget/InsightWidget/useInsightMenu.js.map +1 -1
  348. package/esm/sdk-ui-dashboard.d.ts +740 -27
  349. package/esm/types.d.ts +8 -0
  350. package/esm/types.d.ts.map +1 -1
  351. package/esm/types.js.map +1 -1
  352. package/package.json +15 -15
  353. package/styles/css/attributeFilterConfig.css +39 -9
  354. package/styles/css/attributeFilterConfig.css.map +1 -1
  355. package/styles/css/configurationPanel.css +4 -1
  356. package/styles/css/configurationPanel.css.map +1 -1
  357. package/styles/css/dashboard.css +8 -0
  358. package/styles/css/dashboard.css.map +1 -1
  359. package/styles/css/dateFilterConfig.css +39 -9
  360. package/styles/css/dateFilterConfig.css.map +1 -1
  361. package/styles/css/export.css +5 -0
  362. package/styles/css/export.css.map +1 -1
  363. package/styles/css/icons.css +42 -0
  364. package/styles/css/icons.css.map +1 -1
  365. package/styles/css/main.css +150 -18
  366. package/styles/css/main.css.map +1 -1
  367. package/styles/css/sharedFilterConfig.css +39 -9
  368. package/styles/css/sharedFilterConfig.css.map +1 -1
  369. package/styles/scss/configurationPanel.scss +5 -2
  370. package/styles/scss/dashboard.scss +8 -0
  371. package/styles/scss/export.scss +5 -0
  372. package/styles/scss/filterBar.scss +1 -1
  373. package/styles/scss/icons.scss +55 -1
  374. package/styles/scss/sharedFilterConfig.scss +24 -1
  375. package/esm/presentation/topBar/buttonBar/button/selectors.d.ts +0 -40
  376. package/esm/presentation/topBar/buttonBar/button/selectors.d.ts.map +0 -1
  377. package/esm/presentation/topBar/buttonBar/button/selectors.js +0 -61
  378. package/esm/presentation/topBar/buttonBar/button/selectors.js.map +0 -1
@@ -0,0 +1,86 @@
1
+ import { DashboardSelector, DashboardState } from "../types.js";
2
+ /**
3
+ * Decide whether the user has the right to edit dashboard.
4
+ * If dashboard permissions are enabled then use them, otherwise fallback to workspace permissions
5
+ *
6
+ * @internal
7
+ */
8
+ export declare const hasEditDashboardPermission: DashboardSelector<boolean>;
9
+ /**
10
+ * Decide whether the user has the right to edit locked dashboard.
11
+ * If dashboard permissions are enabled then use them, otherwise fallback to workspace permissions
12
+ *
13
+ * @internal
14
+ */
15
+ export declare const hasEditLockedDashboardPermission: DashboardSelector<boolean>;
16
+ /**
17
+ * @internal
18
+ */
19
+ export declare const selectCanEnterEditMode: DashboardSelector<boolean>;
20
+ /**
21
+ * @internal
22
+ */
23
+ export declare const selectCanEnterEditModeAndIsLoaded: DashboardSelector<boolean>;
24
+ /**
25
+ * @internal
26
+ */
27
+ export declare const selectIsPrivateDashboard: DashboardSelector<boolean>;
28
+ /**
29
+ * @internal
30
+ */
31
+ export declare function selectCanSaveDashboard(state: DashboardState): boolean;
32
+ /**
33
+ * @internal
34
+ */
35
+ export declare const selectIsCurrentDashboardVisibleInList: DashboardSelector<boolean>;
36
+ /**
37
+ * @internal
38
+ */
39
+ export declare const selectIsShareButtonVisible: DashboardSelector<boolean>;
40
+ /**
41
+ * @internal
42
+ */
43
+ export declare const selectIsSaveAsNewButtonVisible: DashboardSelector<boolean>;
44
+ /**
45
+ * Selects whether the common export is available.
46
+ *
47
+ * @internal
48
+ */
49
+ export declare const selectCommonExportAvailable: DashboardSelector<boolean>;
50
+ /**
51
+ * Selects whether the slideshow export is available.
52
+ *
53
+ * @internal
54
+ */
55
+ export declare const selectSlideShowExportAvailable: DashboardSelector<boolean>;
56
+ /**
57
+ * Selects whether the slideshow export is visible.
58
+ *
59
+ * @internal
60
+ */
61
+ export declare const selectSlideShowExportVisible: DashboardSelector<boolean>;
62
+ /**
63
+ * Selects whether the PDF export is visible.
64
+ *
65
+ * @internal
66
+ */
67
+ export declare const selectPdfExportVisible: DashboardSelector<boolean>;
68
+ /**
69
+ * Selects whether the save as new button is visible.
70
+ *
71
+ * @internal
72
+ */
73
+ export declare const selectSaveAsVisible: DashboardSelector<boolean>;
74
+ /**
75
+ * Selects whether the delete button is visible.
76
+ *
77
+ * @internal
78
+ */
79
+ export declare const selectDeleteVisible: DashboardSelector<boolean>;
80
+ /**
81
+ * Selects whether the filter views are visible.
82
+ *
83
+ * @internal
84
+ */
85
+ export declare const selectFilterViewsVisible: DashboardSelector<boolean>;
86
+ //# sourceMappingURL=topBarSelectors.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"topBarSelectors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AAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,EAAE,iBAAiB,CAAC,OAAO,CAM1D,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,wBAAwB,EAAE,iBAAiB,CAAC,OAAO,CAM/D,CAAC"}
@@ -0,0 +1,160 @@
1
+ // (C) 2021-2025 GoodData Corporation
2
+ import { createSelector } from "@reduxjs/toolkit";
3
+ import { selectIsInEditMode, selectIsInViewMode } from "../renderMode/renderModeSelectors.js";
4
+ import { selectCanCreateAnalyticalDashboard, selectCanExportPdf, selectCanManageAnalyticalDashboard, selectCanManageWorkspace, } from "../permissions/permissionsSelectors.js";
5
+ import { selectEnableAnalyticalDashboardPermissions, selectEnableFilterViews, selectEnableKPIDashboardExportPDF, selectEnableKPIDashboardSaveAsNew, selectEnableSlideshowExports, selectIsExport, selectIsReadOnly, selectIsSaveAsNewButtonHidden, selectIsShareButtonHidden, } from "../config/configSelectors.js";
6
+ import { selectMenuButtonItemsVisibility } from "../ui/uiSelectors.js";
7
+ import { selectEntitlementExportPdf } from "../entitlements/entitlementsSelectors.js";
8
+ import { selectDashboardLockStatus, selectDashboardRef, selectDisableFilterViews, selectIsDashboardDirty, selectIsDashboardPrivate, selectIsNewDashboard, } from "../meta/metaSelectors.js";
9
+ import { selectCanEditDashboardPermission, selectCanEditLockedDashboardPermission, selectCanShareDashboardPermission, selectCanShareLockedDashboardPermission, } from "../dashboardPermissions/dashboardPermissionsSelectors.js";
10
+ import { selectSupportsHierarchicalWorkspacesCapability } from "../backendCapabilities/backendCapabilitiesSelectors.js";
11
+ import { selectIsDashboardLoading } from "../loading/loadingSelectors.js";
12
+ import { selectIsLayoutEmpty } from "../layout/layoutSelectors.js";
13
+ import { selectListedDashboardsMap } from "../listedDashboards/listedDashboardsSelectors.js";
14
+ /**
15
+ * Decide whether the user has the right to edit dashboard.
16
+ * If dashboard permissions are enabled then use them, otherwise fallback to workspace permissions
17
+ *
18
+ * @internal
19
+ */
20
+ export const hasEditDashboardPermission = createSelector(selectEnableAnalyticalDashboardPermissions, selectCanEditDashboardPermission, selectCanManageAnalyticalDashboard, (dashboardPermissionsEnabled, canEditDashboardPermission, canManageAnalyticalDashboard) => {
21
+ if (dashboardPermissionsEnabled) {
22
+ return canEditDashboardPermission;
23
+ }
24
+ return canManageAnalyticalDashboard;
25
+ });
26
+ /**
27
+ * Decide whether the user has the right to edit locked dashboard.
28
+ * If dashboard permissions are enabled then use them, otherwise fallback to workspace permissions
29
+ *
30
+ * @internal
31
+ */
32
+ export const hasEditLockedDashboardPermission = createSelector(selectEnableAnalyticalDashboardPermissions, selectCanEditLockedDashboardPermission, selectCanManageWorkspace, selectSupportsHierarchicalWorkspacesCapability, (dashboardPermissionsEnabled, canEditLockedDashboardPermission, canManageWorkspace, hierarchicalWorkspacesSupported) => {
33
+ if (dashboardPermissionsEnabled) {
34
+ return canEditLockedDashboardPermission;
35
+ }
36
+ // editing locked dashboard is always disabled when hierarchical workspaces are supported (Tiger)
37
+ return canManageWorkspace && !hierarchicalWorkspacesSupported;
38
+ });
39
+ /**
40
+ * @internal
41
+ */
42
+ export const selectCanEnterEditMode = createSelector(hasEditDashboardPermission, hasEditLockedDashboardPermission, selectDashboardLockStatus, selectIsReadOnly, (hasEditDashboardPermission, hasEditLockedDashboardPermission, isLocked, isReadOnly) => !isReadOnly && hasEditDashboardPermission && (!isLocked || hasEditLockedDashboardPermission));
43
+ /**
44
+ * @internal
45
+ */
46
+ export const selectCanEnterEditModeAndIsLoaded = createSelector(selectIsDashboardLoading, selectCanEnterEditMode, (isLoading, canEnterEditMode) => !isLoading && canEnterEditMode);
47
+ /**
48
+ * @internal
49
+ */
50
+ export const selectIsPrivateDashboard = createSelector(selectEnableAnalyticalDashboardPermissions, selectIsDashboardPrivate, selectIsNewDashboard, (arePermissionsEnabled, isPrivate, isCreatingNewDashboard) => arePermissionsEnabled && (isCreatingNewDashboard || isPrivate));
51
+ /**
52
+ * @internal
53
+ */
54
+ export function selectCanSaveDashboard(state) {
55
+ return selectIsNewDashboard(state) ? !selectIsLayoutEmpty(state) : selectIsDashboardDirty(state);
56
+ }
57
+ /**
58
+ * @internal
59
+ */
60
+ export const selectIsCurrentDashboardVisibleInList = createSelector(selectDashboardRef, selectListedDashboardsMap, (currentDashboardRef, dashboardsList) => Boolean(currentDashboardRef && dashboardsList.has(currentDashboardRef)));
61
+ /**
62
+ * @internal
63
+ */
64
+ export const selectIsShareButtonVisible = createSelector(selectEnableAnalyticalDashboardPermissions, selectCanShareDashboardPermission, selectCanShareLockedDashboardPermission, selectDashboardLockStatus, selectIsCurrentDashboardVisibleInList, selectIsReadOnly, selectIsInEditMode, selectIsShareButtonHidden, (dashboardPermissionsEnabled, canShareDashboardPermission, canShareLockedDashboardPermission, isLocked, isCurrentDashboardVisibleInList, isReadOnly, isInEditMode, isShareButtonHidden) => dashboardPermissionsEnabled &&
65
+ canShareDashboardPermission &&
66
+ (!isLocked || canShareLockedDashboardPermission) &&
67
+ isCurrentDashboardVisibleInList &&
68
+ !isReadOnly &&
69
+ !isInEditMode &&
70
+ !isShareButtonHidden);
71
+ /**
72
+ * @internal
73
+ */
74
+ export const selectIsSaveAsNewButtonVisible = createSelector(selectEnableKPIDashboardSaveAsNew, selectIsSaveAsNewButtonHidden, selectCanEnterEditModeAndIsLoaded, selectCanCreateAnalyticalDashboard, selectIsExport, selectIsReadOnly, (isSaveAsNewEnabled, isSaveAsButtonHidden, isDashboardEditable, canCreateDashboard, isExport, isReadOnly) => {
75
+ /*
76
+ * The reasoning behind this condition is as follows. Do not show separate Save As button if:
77
+ *
78
+ *
79
+ * 1. The feature is not enabled or
80
+ * 2. If is disabled by config
81
+ * 3. If the dashboard can be edited; in this case, the save as option is part of the dropdown menu;
82
+ * it is somewhat more hidden
83
+ * 4. dashboard is not in export mode
84
+ * 5. If the user cannot create dashboards - e.g. does not have permissions to do so (is viewer for example).
85
+ * 6. If the dashboard is in read-only mode.
86
+ */
87
+ return (isSaveAsNewEnabled &&
88
+ !isSaveAsButtonHidden &&
89
+ !isDashboardEditable &&
90
+ !isExport &&
91
+ canCreateDashboard &&
92
+ !isReadOnly);
93
+ });
94
+ /**
95
+ * Selects whether the common export is available.
96
+ *
97
+ * @internal
98
+ */
99
+ export const selectCommonExportAvailable = createSelector(selectIsInViewMode, selectCanExportPdf, (isInViewMode, canExport) => {
100
+ return isInViewMode && canExport;
101
+ });
102
+ /**
103
+ * Selects whether the slideshow export is available.
104
+ *
105
+ * @internal
106
+ */
107
+ export const selectSlideShowExportAvailable = createSelector(selectCommonExportAvailable, selectEnableSlideshowExports, (canExport, isSlideshowExportsEnabled) => {
108
+ return canExport && isSlideshowExportsEnabled;
109
+ });
110
+ /**
111
+ * Selects whether the slideshow export is visible.
112
+ *
113
+ * @internal
114
+ */
115
+ export const selectSlideShowExportVisible = createSelector(selectSlideShowExportAvailable, selectMenuButtonItemsVisibility, (isSlideshowExportsAvailable, menuButtonItemsVisibility) => {
116
+ return (isSlideshowExportsAvailable &&
117
+ (menuButtonItemsVisibility.pdfExportButton ??
118
+ menuButtonItemsVisibility.excelExportButton ??
119
+ menuButtonItemsVisibility.powerPointExportButton ??
120
+ true));
121
+ });
122
+ /**
123
+ * Selects whether the PDF export is visible.
124
+ *
125
+ * @internal
126
+ */
127
+ export const selectPdfExportVisible = createSelector(selectCommonExportAvailable, selectEnableKPIDashboardExportPDF, selectEntitlementExportPdf, selectMenuButtonItemsVisibility, (canExport, isKPIDashboardExportPDFEnabled, isExportPdfEntitlementPresent, menuButtonItemsVisibility) => {
128
+ return (canExport &&
129
+ !!isKPIDashboardExportPDFEnabled &&
130
+ !!isExportPdfEntitlementPresent &&
131
+ (menuButtonItemsVisibility.pdfExportButton ?? true));
132
+ });
133
+ /**
134
+ * Selects whether the save as new button is visible.
135
+ *
136
+ * @internal
137
+ */
138
+ export const selectSaveAsVisible = createSelector(selectIsSaveAsNewButtonVisible, selectCanCreateAnalyticalDashboard, selectIsSaveAsNewButtonHidden, selectMenuButtonItemsVisibility, (isStandaloneSaveAsNewButtonVisible, canCreateDashboard, isSaveAsNewHidden, menuButtonItemsVisibility) => {
139
+ return (!isStandaloneSaveAsNewButtonVisible &&
140
+ canCreateDashboard &&
141
+ !isSaveAsNewHidden &&
142
+ (menuButtonItemsVisibility.saveAsNewButton ?? true));
143
+ });
144
+ /**
145
+ * Selects whether the delete button is visible.
146
+ *
147
+ * @internal
148
+ */
149
+ export const selectDeleteVisible = createSelector(selectIsInEditMode, selectMenuButtonItemsVisibility, (isInEditMode, menuButtonItemsVisibility) => {
150
+ return isInEditMode && (menuButtonItemsVisibility.deleteButton ?? true);
151
+ });
152
+ /**
153
+ * Selects whether the filter views are visible.
154
+ *
155
+ * @internal
156
+ */
157
+ export const selectFilterViewsVisible = createSelector(selectEnableFilterViews, selectDisableFilterViews, (enableFilterViews, disableFilterViews) => {
158
+ return enableFilterViews && !disableFilterViews;
159
+ });
160
+ //# sourceMappingURL=topBarSelectors.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"topBarSelectors.js","sourceRoot":"","sources":["../../../../src/model/store/topBar/topBarSelectors.ts"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAGlD,OAAO,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAC9F,OAAO,EACH,kCAAkC,EAClC,kBAAkB,EAClB,kCAAkC,EAClC,wBAAwB,GAC3B,MAAM,wCAAwC,CAAC;AAChD,OAAO,EACH,0CAA0C,EAC1C,uBAAuB,EACvB,iCAAiC,EACjC,iCAAiC,EACjC,4BAA4B,EAC5B,cAAc,EACd,gBAAgB,EAChB,6BAA6B,EAC7B,yBAAyB,GAC5B,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,+BAA+B,EAAE,MAAM,sBAAsB,CAAC;AACvE,OAAO,EAAE,0BAA0B,EAAE,MAAM,0CAA0C,CAAC;AACtF,OAAO,EACH,yBAAyB,EACzB,kBAAkB,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
3
3
  /**
4
- * @internal
4
+ * @public
5
5
  */
6
6
  export declare const Dashboard: React.FC<IDashboardProps>;
7
7
  //# sourceMappingURL=Dashboard.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Dashboard.d.ts","sourceRoot":"","sources":["../../../src/presentation/dashboard/Dashboard.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAO1B,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAG7C;;GAEG;AACH,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAoB/C,CAAC"}
1
+ {"version":3,"file":"Dashboard.d.ts","sourceRoot":"","sources":["../../../src/presentation/dashboard/Dashboard.tsx"],"names":[],"mappings":"AACA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAQvC,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAK7C;;GAEG;AACH,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAqB/C,CAAC"}
@@ -1,16 +1,18 @@
1
- // (C) 2021-2022 GoodData Corporation
2
- import React from "react";
3
- import { LoadingComponent as DefaultLoading, useClientWorkspaceStatus, useClientWorkspaceIdentifiers, useClientWorkspaceInitialized, } from "@gooddata/sdk-ui";
1
+ // (C) 2021-2025 GoodData Corporation
2
+ import React, { useMemo } from "react";
3
+ import { LoadingComponent as DefaultLoading, useClientWorkspaceStatus, useClientWorkspaceIdentifiers, useClientWorkspaceInitialized, useBackendWithCorrelation, } from "@gooddata/sdk-ui";
4
+ import { isDashboard, isIdentifierRef, isUriRef } from "@gooddata/sdk-model";
4
5
  import { DashboardRenderer } from "./components/DashboardRenderer.js";
5
6
  /**
6
- * @internal
7
+ * @public
7
8
  */
8
9
  export const Dashboard = (props) => {
9
10
  const workspaceStatus = useClientWorkspaceStatus();
10
11
  const clientWsIdentifiers = useClientWorkspaceIdentifiers();
11
12
  const isClientWorkspaceInitialized = useClientWorkspaceInitialized();
13
+ const backend = useBackendWithDashboardCorrelation(props.backend, props.dashboard);
12
14
  if (!isClientWorkspaceInitialized) {
13
- return React.createElement(DashboardRenderer, { ...props });
15
+ return React.createElement(DashboardRenderer, { ...props, backend: backend });
14
16
  }
15
17
  const LoadingComponent = props.LoadingComponent ?? DefaultLoading;
16
18
  /**
@@ -20,6 +22,24 @@ export const Dashboard = (props) => {
20
22
  if (workspaceStatus !== "success") {
21
23
  return React.createElement(LoadingComponent, null);
22
24
  }
23
- return React.createElement(DashboardRenderer, { workspace: clientWsIdentifiers.workspace, ...props });
25
+ return React.createElement(DashboardRenderer, { workspace: clientWsIdentifiers.workspace, ...props, backend: backend });
24
26
  };
27
+ function useBackendWithDashboardCorrelation(backend, dashboard) {
28
+ const dashboardId = useMemo(() => {
29
+ if (typeof dashboard === "string") {
30
+ return dashboard;
31
+ }
32
+ else if (isDashboard(dashboard)) {
33
+ return dashboard.identifier;
34
+ }
35
+ else if (isIdentifierRef(dashboard)) {
36
+ return dashboard.identifier;
37
+ }
38
+ else if (isUriRef(dashboard)) {
39
+ return dashboard.uri;
40
+ }
41
+ return "__new_dashboard__";
42
+ }, [dashboard]);
43
+ return useBackendWithCorrelation(backend, { dashboardId });
44
+ }
25
45
  //# sourceMappingURL=Dashboard.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Dashboard.js","sourceRoot":"","sources":["../../../src/presentation/dashboard/Dashboard.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EACH,gBAAgB,IAAI,cAAc,EAClC,wBAAwB,EACxB,6BAA6B,EAC7B,6BAA6B,GAChC,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AAEtE;;GAEG;AACH,MAAM,CAAC,MAAM,SAAS,GAA8B,CAAC,KAAsB,EAAE,EAAE;IAC3E,MAAM,eAAe,GAAG,wBAAwB,EAAE,CAAC;IAC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AM,GAAG,QAAQ,GAAG,SAAS,GAAG,MAAM,GAAG,WAAW,CAAC;AAE9E,eAAO,MAAM,mBAAmB,OAAO,CAAC;AACxC,eAAO,MAAM,oBAAoB,OAAO,CAAC;AAEzC,wBAAgB,YAAY,CAAC,UAAU,EAAE,UAAU,GAAG,SAAS;;;cAW9D;AAED,wBAAgB,iBAAiB,CAC7B,UAAU,EAAE,UAAU,GAAG,SAAS,EAClC,IAAI,EAAE,iBAAiB,EACvB,gBAAgB,CAAC,EAAE,eAAe;;;;;;;;EA4BrC"}
1
+ {"version":3,"file":"useSlideData.d.ts","sourceRoot":"","sources":["../../../src/presentation/dashboardContexts/useSlideData.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAE7D,KAAK,iBAAiB,GAAG,MAAM,GAAG,QAAQ,GAAG,SAAS,GAAG,MAAM,GAAG,WAAW,CAAC;AAE9E,eAAO,MAAM,mBAAmB,OAAO,CAAC;AACxC,eAAO,MAAM,oBAAoB,OAAO,CAAC;AAEzC,wBAAgB,YAAY,CAAC,UAAU,EAAE,UAAU,GAAG,SAAS;;;cAW9D;AAED,wBAAgB,iBAAiB,CAC7B,UAAU,EAAE,UAAU,GAAG,SAAS,EAClC,IAAI,EAAE,iBAAiB,EACvB,gBAAgB,CAAC,EAAE,eAAe;;;;;;;;EA6BrC"}
@@ -28,6 +28,7 @@ export function useSlideSizeStyle(renderMode, type, parentLayoutPath) {
28
28
  ...(parentLayoutPath && parentLayoutPath.length > 0
29
29
  ? {
30
30
  gridTemplateRows: "max-content",
31
+ height: "100%",
31
32
  }
32
33
  : {}),
33
34
  };
@@ -1 +1 @@
1
- {"version":3,"file":"useSlideData.js","sourceRoot":"","sources":["../../../src/presentation/dashboardContexts/useSlideData.ts"],"names":[],"mappings":"AAAA,qCAAqC;AAErC,OAAO,EAAE,iCAAiC,EAAE,MAAM,qCAAqC,CAAC;AAKxF,MAAM,CAAC,MAAM,mBAAmB,GAAG,IAAI,CAAC;AACxC,MAAM,CAAC,MAAM,oBAAoB,GAAG,IAAI,CAAC;AAEzC,MAAM,UAAU,YAAY,CAAC,UAAkC;IAC3D,MAAM,EAAE,WAAW,EAAE,GAAG,iCAAiC,EAAE,CAAC;IAE5D,IAAI,UAAU,KAAK,QAAQ,EAAE,CAAC;QAC1B,OAAO,SAAS,CAAC;IACrB,CAAC;IAED,OAAO;QACH,UAAU,EAAE,WAAW,EAAE,KAAK,IAAI,mBAAmB;QACrD,WAAW,EAAE,WAAW,EAAE,MAAM,IAAI,oBAAoB;KAC3D,CAAC;AACN,CAAC;AAED,MAAM,UAAU,iBAAiB,CAC7B,UAAkC,EAClC,IAAuB,EACvB,gBAAkC;IAElC,MAAM,IAAI,GAAG,YAAY,CAAC,UAAU,CAAC,CAAC;IAEtC,IAAI,CAAC,IAAI,EAAE,CAAC;QACR,OAAO,EAAE,CAAC;IACd,CAAC;IAED,IAAI,IAAI,KAAK,MAAM,EAAE,CAAC;QAClB,OAAO;YACH,KAAK,EAAE,GAAG,IAAI,CAAC,UAAU,IAAI;SAChC,CAAC;IACN,CAAC;IAED,IAAI,IAAI,KAAK,SAAS,EAAE,CAAC;QACrB,OAAO;YACH,MAAM,EAAE,GAAG,IAAI,CAAC,WAAW,IAAI;YAC/B,GAAG,CAAC,gBAAgB,IAAI,gBAAgB,CAAC,MAAM,GAAG,CAAC;gBAC/C,CAAC,CAAC;oBACI,gBAAgB,EAAE,aAAa;iBAClC;gBACH,CAAC,CAAC,EAAE,CAAC;SACZ,CAAC;IACN,CAAC;IAED,OAAO;QACH,MAAM,EAAE,MAAM;KACjB,CAAC;AACN,CAAC"}
1
+ {"version":3,"file":"useSlideData.js","sourceRoot":"","sources":["../../../src/presentation/dashboardContexts/useSlideData.ts"],"names":[],"mappings":"AAAA,qCAAqC;AAErC,OAAO,EAAE,iCAAiC,EAAE,MAAM,qCAAqC,CAAC;AAKxF,MAAM,CAAC,MAAM,mBAAmB,GAAG,IAAI,CAAC;AACxC,MAAM,CAAC,MAAM,oBAAoB,GAAG,IAAI,CAAC;AAEzC,MAAM,UAAU,YAAY,CAAC,UAAkC;IAC3D,MAAM,EAAE,WAAW,EAAE,GAAG,iCAAiC,EAAE,CAAC;IAE5D,IAAI,UAAU,KAAK,QAAQ,EAAE,CAAC;QAC1B,OAAO,SAAS,CAAC;IACrB,CAAC;IAED,OAAO;QACH,UAAU,EAAE,WAAW,EAAE,KAAK,IAAI,mBAAmB;QACrD,WAAW,EAAE,WAAW,EAAE,MAAM,IAAI,oBAAoB;KAC3D,CAAC;AACN,CAAC;AAED,MAAM,UAAU,iBAAiB,CAC7B,UAAkC,EAClC,IAAuB,EACvB,gBAAkC;IAElC,MAAM,IAAI,GAAG,YAAY,CAAC,UAAU,CAAC,CAAC;IAEtC,IAAI,CAAC,IAAI,EAAE,CAAC;QACR,OAAO,EAAE,CAAC;IACd,CAAC;IAED,IAAI,IAAI,KAAK,MAAM,EAAE,CAAC;QAClB,OAAO;YACH,KAAK,EAAE,GAAG,IAAI,CAAC,UAAU,IAAI;SAChC,CAAC;IACN,CAAC;IAED,IAAI,IAAI,KAAK,SAAS,EAAE,CAAC;QACrB,OAAO;YACH,MAAM,EAAE,GAAG,IAAI,CAAC,WAAW,IAAI;YAC/B,GAAG,CAAC,gBAAgB,IAAI,gBAAgB,CAAC,MAAM,GAAG,CAAC;gBAC/C,CAAC,CAAC;oBACI,gBAAgB,EAAE,aAAa;oBAC/B,MAAM,EAAE,MAAM;iBACjB;gBACH,CAAC,CAAC,EAAE,CAAC;SACZ,CAAC;IACN,CAAC;IAED,OAAO;QACH,MAAM,EAAE,MAAM;KACjB,CAAC;AACN,CAAC"}
@@ -8,7 +8,7 @@ type DraggableDateFilterProps = {
8
8
  autoOpen: boolean;
9
9
  readonly: boolean;
10
10
  FilterComponent: CustomDashboardDateFilterComponent;
11
- onDateFilterChanged: (filter: IDashboardDateFilter | undefined) => void;
11
+ onDateFilterChanged: (filter: IDashboardDateFilter | undefined, dateFilterOptionLocalId?: string, isWorkingSelectionChange?: boolean) => void;
12
12
  onDateFilterAdded: (index: number) => void;
13
13
  onDateFilterClose: () => void;
14
14
  };
@@ -1 +1 @@
1
- {"version":3,"file":"DraggableDateFilter.d.ts","sourceRoot":"","sources":["../../../../src/presentation/dragAndDrop/draggableDateFilter/DraggableDateFilter.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAI3D,OAAO,EAAE,kCAAkC,EAAE,0BAA0B,EAAE,MAAM,0BAA0B,CAAC;AAG1G,KAAK,wBAAwB,GAAG;IAC5B,MAAM,EAAE,oBAAoB,CAAC;IAC7B,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,0BAA0B,CAAC;IACnC,QAAQ,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,OAAO,CAAC;IAClB,eAAe,EAAE,kCAAkC,CAAC;IACpD,mBAAmB,EAAE,CAAC,MAAM,EAAE,oBAAoB,GAAG,SAAS,KAAK,IAAI,CAAC;IACxE,iBAAiB,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAC3C,iBAAiB,EAAE,MAAM,IAAI,CAAC;CACjC,CAAC;AAEF,wBAAgB,mBAAmB,CAAC,EAChC,eAAe,EACf,MAAM,EACN,WAAW,EACX,QAAQ,EACR,QAAQ,EACR,mBAAmB,EACnB,iBAAiB,EACjB,MAAM,GACT,EAAE,wBAAwB,qBAwD1B"}
1
+ {"version":3,"file":"DraggableDateFilter.d.ts","sourceRoot":"","sources":["../../../../src/presentation/dragAndDrop/draggableDateFilter/DraggableDateFilter.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAI3D,OAAO,EAAE,kCAAkC,EAAE,0BAA0B,EAAE,MAAM,0BAA0B,CAAC;AAG1G,KAAK,wBAAwB,GAAG;IAC5B,MAAM,EAAE,oBAAoB,CAAC;IAC7B,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,0BAA0B,CAAC;IACnC,QAAQ,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,OAAO,CAAC;IAClB,eAAe,EAAE,kCAAkC,CAAC;IACpD,mBAAmB,EAAE,CACjB,MAAM,EAAE,oBAAoB,GAAG,SAAS,EACxC,uBAAuB,CAAC,EAAE,MAAM,EAChC,wBAAwB,CAAC,EAAE,OAAO,KACjC,IAAI,CAAC;IACV,iBAAiB,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAC3C,iBAAiB,EAAE,MAAM,IAAI,CAAC;CACjC,CAAC;AAEF,wBAAgB,mBAAmB,CAAC,EAChC,eAAe,EACf,MAAM,EACN,WAAW,EACX,QAAQ,EACR,QAAQ,EACR,mBAAmB,EACnB,iBAAiB,EACjB,MAAM,GACT,EAAE,wBAAwB,qBAwD1B"}
@@ -1,4 +1,4 @@
1
- // (C) 2022-2024 GoodData Corporation
1
+ // (C) 2022-2025 GoodData Corporation
2
2
  import React from "react";
3
3
  import classNames from "classnames";
4
4
  import { useDashboardSelector, selectIsInEditMode, selectCanAddMoreFilters } from "../../../model/index.js";
@@ -1 +1 @@
1
- {"version":3,"file":"DraggableDateFilter.js","sourceRoot":"","sources":["../../../../src/presentation/dragAndDrop/draggableDateFilter/DraggableDateFilter.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,EAAE,oBAAoB,EAAE,kBAAkB,EAAE,uBAAuB,EAAE,MAAM,yBAAyB,CAAC;AAC5G,OAAO,EAAE,2BAA2B,EAAE,MAAM,2DAA2D,CAAC;AAExG,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAc1D,MAAM,UAAU,m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,iBAAiB,EAAE,qBAAqB,GAC1C,CACL,CAAC,CAAC,CAAC,IAAI,CACN,CACT,CAAC;AACN,CAAC"}
1
+ {"version":3,"file":"DraggableDateFilter.js","sourceRoot":"","sources":["../../../../src/presentation/dragAndDrop/draggableDateFilter/DraggableDateFilter.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,EAAE,oBAAoB,EAAE,kBAAkB,EAAE,uBAAuB,EAAE,MAAM,yBAAyB,CAAC;AAC5G,OAAO,EAAE,2BAA2B,EAAE,MAAM,2DAA2D,CAAC;AAExG,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAkB1D,MAAM,UAAU,mBAAmB,CAAC,EAChC,eAAe,EACf,MAAM,EACN,WAAW,EACX,QAAQ,EACR,QAAQ,EACR,mBAAmB,EACnB,iBAAiB,EACjB,MAAM,GACiB;IACvB,MAAM,YAAY,GAAG,oBAAoB,CAAC,kBAAkB,CAAC,CAAC;IAC9D,MAAM,CAAC,EAAE,UAAU,EAAE,EAAE,OAAO,CAAC,GAAG,gBAAgB,CAC9C;QACI,QAAQ,EAAE;YACN,IAAI,EAAE,YAAY;YAClB,MAAM;YACN,WAAW;SACd;QACD,OAAO,EAAE,YAAY;KACxB,EACD,CAAC,MAAM,EAAE,WAAW,EAAE,YAAY,CAAC,CACtC,CAAC;IAEF,MAAM,qBAAqB,GAAG,oBAAoB,CAAC,uBAAuB,CAAC,CAAC;IAE5E,MAAM,aAAa,GAAG,YAAY,IAAI,CAAC,UAAU,CAAC;IAElD,OAAO,CACH,6BAAK,SAAS,EAAC,4BAA4B;QACtC,aAAa,CAAC,CAAC,CAAC,CACb,oBAAC,2BAA2B,IACxB,YAAY,EAAC,MAAM,EACnB,WAAW,EAAE,WAAW,EACxB,yBAAyB,EAAE,iBAAiB,EAC5C,iBAAiB,EAAE,qBAAqB,GAC1C,CACL,CAAC,CAAC,CAAC,IAAI;QAER,6BACI,SAAS,EAAE,UAAU,CAAC,mBAAmB,EAAE,qBAAqB,EAAE;gBAC9D,0BAA0B,EAAE,YAAY;gBACxC,aAAa,EAAE,UAAU;aAC5B,CAAC,EACF,GAAG,EAAE,OAAO;YAEZ,oBAAC,eAAe,IACZ,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,EACd,eAAe,EAAE,mBAAmB,EACpC,WAAW,EAAE,YAAY,EACzB,QAAQ,EAAE,QAAQ,EAClB,QAAQ,EAAE,QAAQ,GACpB,CACA;QAEL,aAAa,CAAC,CAAC,CAAC,CACb,oBAAC,2BAA2B,IACxB,YAAY,EAAC,MAAM,EACnB,WAAW,EAAE,WAAW,EACxB,yBAAyB,EAAE,iBAAiB,EAC5C,iBAAiB,EAAE,qBAAqB,GAC1C,CACL,CAAC,CAAC,CAAC,IAAI,CACN,CACT,CAAC;AACN,CAAC"}
@@ -0,0 +1,13 @@
1
+ import React from "react";
2
+ import { RenderMode } from "../../types.js";
3
+ /**
4
+ * @alpha
5
+ */
6
+ export interface DefaultDashboardExportVariablesProps {
7
+ renderMode: RenderMode;
8
+ }
9
+ /**
10
+ * @alpha
11
+ */
12
+ export declare function DefaultDashboardExportVariables({ renderMode }: DefaultDashboardExportVariablesProps): React.JSX.Element | null;
13
+ //# sourceMappingURL=DefaultDashboardExportVariables.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DefaultDashboardExportVariables.d.ts","sourceRoot":"","sources":["../../../src/presentation/export/DefaultDashboardExportVariables.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAK5C;;GAEG;AACH,MAAM,WAAW,oCAAoC;IACjD,UAAU,EAAE,UAAU,CAAC;CAC1B;AAED;;GAEG;AACH,wBAAgB,+BAA+B,CAAC,EAAE,UAAU,EAAE,EAAE,oCAAoC,4BA4CnG"}
@@ -0,0 +1,34 @@
1
+ // (C) 2022-2025 GoodData Corporation
2
+ import React from "react";
3
+ import { useMetaExportData } from "./useExportData.js";
4
+ import { selectDashboardId, useDashboardSelector, selectDashboardDescriptor } from "../../model/index.js";
5
+ import { useDashboardRelatedFilters } from "./hooks/useDashboardRelatedFilters.js";
6
+ /**
7
+ * @alpha
8
+ */
9
+ export function DefaultDashboardExportVariables({ renderMode }) {
10
+ const exportData = useMetaExportData();
11
+ const dashboardId = useDashboardSelector(selectDashboardId);
12
+ const dashboardDescriptor = useDashboardSelector(selectDashboardDescriptor);
13
+ const { dateFilters, attributeFilters } = useDashboardRelatedFilters();
14
+ if (renderMode !== "export") {
15
+ return null;
16
+ }
17
+ return (React.createElement("div", { className: "gd-dashboard-meta", ...exportData?.root },
18
+ React.createElement("div", { ...exportData?.id }, dashboardId),
19
+ dashboardDescriptor.title ? React.createElement("div", { ...exportData?.title }, dashboardDescriptor.title) : null,
20
+ dashboardDescriptor.description ? (React.createElement("div", { ...exportData?.description }, dashboardDescriptor.description)) : null,
21
+ dashboardDescriptor.tags && dashboardDescriptor.tags.length > 0 ? (React.createElement("div", { ...exportData?.tags?.root }, dashboardDescriptor.tags.map((tag, i) => (React.createElement("span", { key: i, ...exportData?.tags?.tag }, tag))))) : null,
22
+ dateFilters.length > 0 || attributeFilters.length > 0 ? (React.createElement("div", { ...exportData?.filters?.root },
23
+ dateFilters.map((filter, i) => (React.createElement("div", { key: i, ...exportData?.filters?.dateFilter },
24
+ React.createElement("span", { ...exportData?.filters?.filter.name }, filter?.title),
25
+ " -",
26
+ " ",
27
+ React.createElement("span", { ...exportData?.filters?.filter.value }, filter?.subtitle)))),
28
+ attributeFilters.map((filter, i) => (React.createElement("div", { key: i, ...exportData?.filters?.attributeFilter },
29
+ React.createElement("span", { ...exportData?.filters?.filter.name }, filter?.title),
30
+ " -",
31
+ " ",
32
+ React.createElement("span", { ...exportData?.filters?.filter.value }, filter?.subtitle)))))) : null));
33
+ }
34
+ //# sourceMappingURL=DefaultDashboardExportVariables.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DefaultDashboardExportVariables.js","sourceRoot":"","sources":["../../../src/presentation/export/DefaultDashboardExportVariables.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAEvD,OAAO,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,yBAAyB,EAAE,MAAM,sBAAsB,CAAC;AAE1G,OAAO,EAAE,0BAA0B,EAAE,MAAM,uCAAuC,CAAC;AASnF;;GAEG;AACH,MAAM,UAAU,+BAA+B,CAAC,EAAE,UAAU,EAAwC;IAChG,MAAM,UAAU,GAAG,iBAAiB,EAAE,CAAC;IACvC,MAAM,WAAW,GAAG,oBAAoB,CAAC,iBAAiB,CAAC,CAAC;IAC5D,MAAM,mBAAmB,GAAG,oBAAoB,CAAC,yBAAyB,CAAC,CAAC;IAC5E,MAAM,EAAE,WAAW,EAAE,gBAAgB,EAAE,GAAG,0BAA0B,EAAE,CAAC;IAEvE,IAAI,UAAU,KAAK,QAAQ,EAAE,CAAC;QAC1B,OAAO,IAAI,CAAC;IAChB,CAAC;IAED,OAAO,CACH,6BAAK,SAAS,EAAC,mBAAmB,KAAK,UAAU,EAAE,IAAI;QACnD,gCAAS,UAAU,EAAE,EAAE,IAAG,WAAW,CAAO;QAC3C,mBAAmB,CAAC,KAAK,CAAC,CAAC,CAAC,gCAAS,UAAU,EAAE,KAAK,IAAG,mBAAmB,CAAC,KAAK,CAAO,CAAC,CAAC,CAAC,IAAI;QAChG,mBAAmB,CAAC,WAAW,CAAC,CAAC,CAAC,CAC/B,gCAAS,UAAU,EAAE,WAAW,IAAG,mBAAmB,CAAC,WAAW,CAAO,CAC5E,CAAC,CAAC,CAAC,IAAI;QACP,mBAAmB,CAAC,IAAI,IAAI,mBAAmB,CAAC,IAAI,CAAC,MAAM,GA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
2
+ dateFilters: ({
3
+ type: string;
4
+ all: boolean;
5
+ id: string;
6
+ title: string;
7
+ subtitle: string;
8
+ } | undefined)[];
9
+ attributeFilters: ({
10
+ type: string;
11
+ all: boolean;
12
+ id: string;
13
+ title: string;
14
+ subtitle: string;
15
+ } | undefined)[];
16
+ };
17
+ //# sourceMappingURL=useDashboardRelatedFilters.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useDashboardRelatedFilters.d.ts","sourceRoot":"","sources":["../../../../src/presentation/export/hooks/useDashboardRelatedFilters.ts"],"names":[],"mappings":"AAIA,wBAAgB,0BAA0B;;;;;;;;;;;;;;;EAUzC"}
@@ -0,0 +1,13 @@
1
+ // (C) 2022-2025 GoodData Corporation
2
+ import { selectFilterContextFilters, useDashboardSelector } from "../../../model/index.js";
3
+ import { useFiltersNamings } from "../../../_staging/sharedHooks/useFiltersNamings.js";
4
+ export function useDashboardRelatedFilters() {
5
+ const dashboardFilters = useDashboardSelector(selectFilterContextFilters);
6
+ const filters = useFiltersNamings(dashboardFilters);
7
+ const all = filters.filter((f) => !f?.all);
8
+ return {
9
+ dateFilters: all.filter((f) => f?.type === "dateFilter"),
10
+ attributeFilters: all.filter((f) => f?.type === "attributeFilter"),
11
+ };
12
+ }
13
+ //# sourceMappingURL=useDashboardRelatedFilters.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useDashboardRelatedFilters.js","sourceRoot":"","sources":["../../../../src/presentation/export/hooks/useDashboardRelatedFilters.ts"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,EAAE,0BAA0B,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAC3F,OAAO,EAAE,iBAAiB,EAAE,MAAM,oDAAoD,CAAC;AAEvF,MAAM,UAAU,0BAA0B;IACtC,MAAM,gBAAgB,GAAG,oBAAoB,CAAC,0BAA0B,CAAC,CAAC;IAC1E,MAAM,OAAO,GAAG,iBAAiB,CAAC,gBAAgB,CAAC,CAAC;IAEpD,MAAM,GAAG,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC;IAE3C,OAAO;QACH,WAAW,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,IAAI,KAAK,YAAY,CAAC;QACxD,gBAAgB,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,IAAI,KAAK,iBAAiB,CAAC;KACrE,CAAC;AACN,CAAC"}
@@ -1,3 +1,4 @@
1
1
  export * from "./types.js";
2
2
  export * from "./useExportData.js";
3
+ export * from "./DefaultDashboardExportVariables.js";
3
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/presentation/export/index.ts"],"names":[],"mappings":"AAEA,cAAc,YAAY,CAAC;AAC3B,cAAc,oBAAoB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/presentation/export/index.ts"],"names":[],"mappings":"AAEA,cAAc,YAAY,CAAC;AAC3B,cAAc,oBAAoB,CAAC;AACnC,cAAc,sCAAsC,CAAC"}
@@ -1,4 +1,5 @@
1
1
  // (C) 2025 GoodData Corporation
2
2
  export * from "./types.js";
3
3
  export * from "./useExportData.js";
4
+ export * from "./DefaultDashboardExportVariables.js";
4
5
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/presentation/export/index.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAEhC,cAAc,YAAY,CAAC;AAC3B,cAAc,oBAAoB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/presentation/export/index.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAEhC,cAAc,YAAY,CAAC;AAC3B,cAAc,oBAAoB,CAAC;AACnC,cAAc,sCAAsC,CAAC"}
@@ -3,7 +3,13 @@
3
3
  *
4
4
  * @alpha
5
5
  */
6
- export type ExportElementType = "section" | "section-title" | "section-description" | "widget" | "widget-content" | "widget-title" | "widget-description";
6
+ export type ExportElementType = "meta" | "section" | "section-info" | "section-title" | "section-description" | "widget" | "widget-content" | "widget-title" | "widget-description";
7
+ /**
8
+ * Export meta type.
9
+ *
10
+ * @alpha
11
+ */
12
+ export type ExportMetaType = "dashboard-id" | "dashboard-title" | "dashboard-description" | "dashboard-tags" | "dashboard-tag" | "dashboard-filters" | "dashboard-filter" | "dashboard-filter-name" | "dashboard-filter-value";
7
13
  /**
8
14
  * Data attributes with export specification for components.
9
15
  *
@@ -11,6 +17,40 @@ export type ExportElementType = "section" | "section-title" | "section-descripti
11
17
  */
12
18
  export type CommonExportDataAttributes = {
13
19
  "data-export-type": ExportElementType;
20
+ "data-export-depth"?: string;
21
+ };
22
+ /**
23
+ * Data attributes with export specification for meta.
24
+ *
25
+ * @alpha
26
+ */
27
+ export type MetaExportDataAttributes = {
28
+ "data-export-meta-type": ExportMetaType;
29
+ "data-export-meta-filter-type"?: "date" | "attribute";
30
+ };
31
+ /**
32
+ * Data attributes for export mode to be added to the header.
33
+ *
34
+ * @alpha
35
+ */
36
+ export type MetaExportData = {
37
+ root?: CommonExportDataAttributes;
38
+ id?: MetaExportDataAttributes;
39
+ title?: MetaExportDataAttributes;
40
+ description?: MetaExportDataAttributes;
41
+ tags?: {
42
+ root: MetaExportDataAttributes;
43
+ tag: MetaExportDataAttributes;
44
+ };
45
+ filters?: {
46
+ root: MetaExportDataAttributes;
47
+ dateFilter: MetaExportDataAttributes;
48
+ attributeFilter: MetaExportDataAttributes;
49
+ filter: {
50
+ name: MetaExportDataAttributes;
51
+ value: MetaExportDataAttributes;
52
+ };
53
+ };
14
54
  };
15
55
  /**
16
56
  * Data attributes for export mode to be added to the header.
@@ -18,6 +58,7 @@ export type CommonExportDataAttributes = {
18
58
  * @alpha
19
59
  */
20
60
  export type HeaderExportData = {
61
+ info?: CommonExportDataAttributes;
21
62
  title?: CommonExportDataAttributes;
22
63
  description?: DescriptionExportData;
23
64
  };
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/presentation/export/types.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,MAAM,MAAM,iBAAiB,GACvB,SAAS,GACT,eAAe,GACf,qBAAqB,GACrB,QAAQ,GACR,gBAAgB,GAChB,cAAc,GACd,oBAAoB,CAAC;AAE3B;;;;GAIG;AACH,MAAM,MAAM,0BAA0B,GAAG;IAAE,kBAAkB,EAAE,iBAAiB,CAAA;CAAE,CAAC;AAEnF;;;;GAIG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC3B,KAAK,CAAC,EAAE,0BAA0B,CAAC;IACnC,WAAW,CAAC,EAAE,qBAAqB,CAAC;CACvC,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,qBAAqB,GAAG;IAChC,WAAW,CAAC,EAAE,0BAA0B,CAAC;IACzC,QAAQ,CAAC,EAAE,kBAAkB,CAAC;CACjC,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,0BAA0B,GAAG,0BAA0B,GAAG;IAClE,yBAAyB,CAAC,EAAE,MAAM,CAAC;IACnC,gCAAgC,CAAC,EAAE,MAAM,CAAC;IAC1C,kCAAkC,CAAC,EAAE,SAAS,GAAG,QAAQ,GAAG,OAAO,CAAC;CACvE,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,MAAM,MAAM,gBAAgB,GAAG,gBAAgB,GAAG;IAC9C,OAAO,CAAC,EAAE,0BAA0B,CAAC;IACrC,MAAM,CAAC,EAAE,0BAA0B,CAAC;CACvC,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,sBAAsB,GAAG;IACjC,0BAA0B,CAAC,EAAE,UAAU,CAAC;CAC3C,CAAC;AAEF;;;;;;;GAOG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAC7B,QAAQ,CAAC,EAAE,sBAAsB,CAAC;CACrC,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,iBAAiB,GAAG,gBAAgB,GAAG;IAC/C,OAAO,CAAC,EAAE,0BAA0B,CAAC;CACxC,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/presentation/export/types.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,MAAM,MAAM,iBAAiB,GACvB,MAAM,GACN,SAAS,GACT,cAAc,GACd,eAAe,GACf,qBAAqB,GACrB,QAAQ,GACR,gBAAgB,GAChB,cAAc,GACd,oBAAoB,CAAC;AAE3B;;;;GAIG;AACH,MAAM,MAAM,cAAc,GACpB,cAAc,GACd,iBAAiB,GACjB,uBAAuB,GACvB,gBAAgB,GAChB,eAAe,GACf,mBAAmB,GACnB,kBAAkB,GAClB,uBAAuB,GACvB,wBAAwB,CAAC;AAE/B;;;;GAIG;AACH,MAAM,MAAM,0BAA0B,GAAG;IACrC,kBAAkB,EAAE,iBAAiB,CAAC;IACtC,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAChC,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,wBAAwB,GAAG;IACnC,uBAAuB,EAAE,cAAc,CAAC;IACxC,8BAA8B,CAAC,EAAE,MAAM,GAAG,WAAW,CAAC;CACzD,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,cAAc,GAAG;IACzB,IAAI,CAAC,EAAE,0BAA0B,CAAC;IAClC,EAAE,CAAC,EAAE,wBAAwB,CAAC;IAC9B,KAAK,CAAC,EAAE,wBAAwB,CAAC;IACjC,WAAW,CAAC,EAAE,wBAAwB,CAAC;IACvC,IAAI,CAAC,EAAE;QACH,IAAI,EAAE,wBAAwB,CAAC;QAC/B,GAAG,EAAE,wBAAwB,CAAC;KACjC,CAAC;IACF,OAAO,CAAC,EAAE;QACN,IAAI,EAAE,wBAAwB,CAAC;QAC/B,UAAU,EAAE,wBAAwB,CAAC;QACrC,eAA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SectionExportData, WidgetExportData, WidgetExportDataAttributes } from "./types.js";
2
+ import { RichTextExportData, SectionExportData, MetaExportData, WidgetExportData, WidgetExportDataAttributes } from "./types.js";
3
3
  /**
4
4
  * @alpha
5
5
  */
6
- export declare const useSectionExportData: (firstLevel: boolean) => SectionExportData | undefined;
6
+ export declare const useSectionExportData: (depth: number) => SectionExportData | undefined;
7
7
  /**
8
8
  * @alpha
9
9
  */
@@ -16,4 +16,8 @@ export declare const useRichTextExportData: () => RichTextExportData | undefined
16
16
  * @alpha
17
17
  */
18
18
  export declare const useVisualizationExportData: (widget: WidgetExportDataAttributes | undefined, loading: boolean, error: boolean) => Partial<WidgetExportDataAttributes> | undefined;
19
+ /**
20
+ * @alpha
21
+ */
22
+ export declare const useMetaExportData: () => MetaExportData | undefined;
19
23
  //# sourceMappingURL=useExportData.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useExportData.d.ts","sourceRoot":"","sources":["../../../src/presentation/export/useExportData.ts"],"names":[],"mappings":"AAIA,OAAO,EACH,uBAAuB,EAI1B,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACH,kBAAkB,EAClB,iBAAiB,EACjB,gBAAgB,EAChB,0BAA0B,EAC7B,MAAM,YAAY,CAAC;AAEpB;;GAEG;AACH,eAAO,MAAM,oBAAoB,eAAgB,OAAO,KAAG,iBAAiB,GAAG,SA6B9E,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,mBAAmB,WAAY,uBAAuB,KAAG,gBAAgB,GAAG,SAuBxF,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,qBAAqB,QAAO,kBAAkB,GAAG,SAU7D,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,0BAA0B,WAC3B,0BAA0B,GAAG,SAAS,WACrC,OAAO,SACT,OAAO,KACf,QAAQ,0BAA0B,CAAC,GAAG,SAaxC,CAAC"}
1
+ {"version":3,"file":"useExportData.d.ts","sourceRoot":"","sources":["../../../src/presentation/export/useExportData.ts"],"names":[],"mappings":"AAIA,OAAO,EACH,uBAAuB,EAI1B,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACH,kBAAkB,EAClB,iBAAiB,EACjB,cAAc,EACd,gBAAgB,EAChB,0BAA0B,EAC7B,MAAM,YAAY,CAAC;AAEpB;;GAEG;AACH,eAAO,MAAM,oBAAoB,UAAW,MAAM,KAAG,iBAAiB,GAAG,SA+BxE,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,mBAAmB,WAAY,uBAAuB,KAAG,gBAAgB,GAAG,SAuBxF,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,qBAAqB,QAAO,kBAAkB,GAAG,SAU7D,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,0BAA0B,WAC3B,0BAA0B,GAAG,SAAS,WACrC,OAAO,SACT,OAAO,KACf,QAAQ,0BAA0B,CAAC,GAAG,SAaxC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,iBAAiB,QAAO,cAAc,GAAG,SAkDrD,CAAC"}