@gooddata/sdk-ui-dashboard 11.56.0-alpha.7 → 11.56.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 (308) hide show
  1. package/esm/__version.d.ts +1 -1
  2. package/esm/__version.d.ts.map +1 -1
  3. package/esm/__version.js +1 -1
  4. package/esm/_staging/catalog/computedAttributes.d.ts +43 -0
  5. package/esm/_staging/catalog/computedAttributes.d.ts.map +1 -0
  6. package/esm/_staging/catalog/computedAttributes.js +93 -0
  7. package/esm/_staging/catalog/displayFormMap.d.ts +3 -2
  8. package/esm/_staging/catalog/displayFormMap.d.ts.map +1 -1
  9. package/esm/_staging/catalog/displayFormMap.js +9 -3
  10. package/esm/_staging/metadata/objRefMap.d.ts.map +1 -1
  11. package/esm/_staging/metadata/objRefMap.js +11 -1
  12. package/esm/index.d.ts +9 -5
  13. package/esm/index.d.ts.map +1 -1
  14. package/esm/index.js +7 -3
  15. package/esm/kdaDialog/composition/hooks/useKdaValidAttributes.js +2 -2
  16. package/esm/kdaDialog/dialog/hooks/useValidAttributes.d.ts.map +1 -1
  17. package/esm/kdaDialog/dialog/hooks/useValidAttributes.js +21 -6
  18. package/esm/kdaDialog/hooks/useAttribute.d.ts.map +1 -1
  19. package/esm/kdaDialog/hooks/useAttribute.js +16 -8
  20. package/esm/locales.d.ts +3 -0
  21. package/esm/locales.d.ts.map +1 -1
  22. package/esm/locales.js +3 -0
  23. package/esm/model/commandHandlers/dashboard/common/loadAvailableDisplayFormRefs.d.ts.map +1 -1
  24. package/esm/model/commandHandlers/dashboard/common/loadAvailableDisplayFormRefs.js +15 -6
  25. package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/index.d.ts +2 -3
  26. package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/index.d.ts.map +1 -1
  27. package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/index.js +26 -17
  28. package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/loadCatalog.d.ts +6 -1
  29. package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/loadCatalog.d.ts.map +1 -1
  30. package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/loadCatalog.js +37 -4
  31. package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/resolveDashboardConfig.d.ts +7 -2
  32. package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/resolveDashboardConfig.d.ts.map +1 -1
  33. package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/resolveDashboardConfig.js +15 -3
  34. package/esm/model/commandHandlers/filterContext/attributeFilter/validation/filterDisplayFormValidation.d.ts.map +1 -1
  35. package/esm/model/commandHandlers/filterContext/attributeFilter/validation/filterDisplayFormValidation.js +10 -3
  36. package/esm/model/commandHandlers/filterContext/attributeFilter/validation/uniqueFiltersValidation.d.ts.map +1 -1
  37. package/esm/model/commandHandlers/filterContext/attributeFilter/validation/uniqueFiltersValidation.js +24 -14
  38. package/esm/model/commandHandlers/scheduledEmail/createScheduledEmailHandler.js +2 -2
  39. package/esm/model/commandHandlers/scheduledEmail/saveScheduledEmailHandler.js +2 -2
  40. package/esm/model/commandHandlers/widgets/attributeHierarchyModifiedHandler.d.ts.map +1 -1
  41. package/esm/model/commandHandlers/widgets/attributeHierarchyModifiedHandler.js +6 -0
  42. package/esm/model/commandHandlers/widgets/exportInsightWidgetHandler.d.ts.map +1 -1
  43. package/esm/model/commandHandlers/widgets/exportInsightWidgetHandler.js +2 -2
  44. package/esm/model/commandHandlers/widgets/exportRawInsightWidgetHandler.js +2 -2
  45. package/esm/model/queries/base.d.ts +1 -1
  46. package/esm/model/queries/base.d.ts.map +1 -1
  47. package/esm/model/queries/base.js +1 -1
  48. package/esm/model/queries/computedAttributeExpression.d.ts +27 -0
  49. package/esm/model/queries/computedAttributeExpression.d.ts.map +1 -0
  50. package/esm/model/queries/computedAttributeExpression.js +21 -0
  51. package/esm/model/queries/connectedAttributes.d.ts +19 -1
  52. package/esm/model/queries/connectedAttributes.d.ts.map +1 -1
  53. package/esm/model/queries/connectedAttributes.js +3 -1
  54. package/esm/model/queries/index.d.ts +2 -1
  55. package/esm/model/queries/index.d.ts.map +1 -1
  56. package/esm/model/queryServices/index.d.ts +1 -1
  57. package/esm/model/queryServices/index.d.ts.map +1 -1
  58. package/esm/model/queryServices/index.js +2 -0
  59. package/esm/model/queryServices/queryAttributeByDisplayForm.d.ts.map +1 -1
  60. package/esm/model/queryServices/queryAttributeByDisplayForm.js +12 -3
  61. package/esm/model/queryServices/queryAttributeDataset.d.ts.map +1 -1
  62. package/esm/model/queryServices/queryAttributeDataset.js +9 -1
  63. package/esm/model/queryServices/queryComputedAttributeExpression.d.ts +4 -0
  64. package/esm/model/queryServices/queryComputedAttributeExpression.d.ts.map +1 -0
  65. package/esm/model/queryServices/queryComputedAttributeExpression.js +17 -0
  66. package/esm/model/queryServices/queryConnectedAttributes.d.ts.map +1 -1
  67. package/esm/model/queryServices/queryConnectedAttributes.js +20 -5
  68. package/esm/model/queryServices/queryInsightAttributesMeta.d.ts.map +1 -1
  69. package/esm/model/queryServices/queryInsightAttributesMeta.js +20 -11
  70. package/esm/model/react/useIsWidgetRestricted.d.ts +9 -0
  71. package/esm/model/react/useIsWidgetRestricted.d.ts.map +1 -0
  72. package/esm/model/react/useIsWidgetRestricted.js +14 -0
  73. package/esm/model/store/catalog/catalogReducers.d.ts +2 -1
  74. package/esm/model/store/catalog/catalogReducers.d.ts.map +1 -1
  75. package/esm/model/store/catalog/catalogReducers.js +2 -1
  76. package/esm/model/store/catalog/catalogSelectors.d.ts +21 -1
  77. package/esm/model/store/catalog/catalogSelectors.d.ts.map +1 -1
  78. package/esm/model/store/catalog/catalogSelectors.js +26 -2
  79. package/esm/model/store/catalog/catalogState.d.ts +8 -1
  80. package/esm/model/store/catalog/catalogState.d.ts.map +1 -1
  81. package/esm/model/store/catalog/catalogState.js +1 -0
  82. package/esm/model/store/config/configSelectors.d.ts +11 -0
  83. package/esm/model/store/config/configSelectors.d.ts.map +1 -1
  84. package/esm/model/store/config/configSelectors.js +13 -0
  85. package/esm/model/store/insights/insightsSelectors.js +3 -3
  86. package/esm/model/store/tabs/filterContext/filterContextSelectors.d.ts.map +1 -1
  87. package/esm/model/store/tabs/filterContext/filterContextSelectors.js +8 -4
  88. package/esm/model/store/unavailableObjects/unavailableObjectsSelectors.d.ts +8 -0
  89. package/esm/model/store/unavailableObjects/unavailableObjectsSelectors.d.ts.map +1 -1
  90. package/esm/model/store/unavailableObjects/unavailableObjectsSelectors.js +8 -0
  91. package/esm/model/utils/displayFormResolver.d.ts.map +1 -1
  92. package/esm/model/utils/displayFormResolver.js +11 -1
  93. package/esm/plugins/customizationApis/customizationBuilder.d.ts.map +1 -1
  94. package/esm/plugins/customizationApis/customizationBuilder.js +1 -0
  95. package/esm/plugins/customizationApis/insightCustomizer.d.ts +4 -2
  96. package/esm/plugins/customizationApis/insightCustomizer.d.ts.map +1 -1
  97. package/esm/plugins/customizationApis/insightCustomizer.js +43 -3
  98. package/esm/plugins/customizer.d.ts +14 -1
  99. package/esm/plugins/customizer.d.ts.map +1 -1
  100. package/esm/presentation/automations/alerting/DefaultAlertingDialog/DefaultAlertingDialog.d.ts.map +1 -1
  101. package/esm/presentation/automations/alerting/DefaultAlertingDialog/DefaultAlertingDialog.js +1 -1
  102. package/esm/presentation/automations/alerting/state/AlertingDialogStateProvider.d.ts.map +1 -1
  103. package/esm/presentation/automations/alerting/state/AlertingDialogStateProvider.js +23 -58
  104. package/esm/presentation/automations/alerting/state/useAlertDraftFilterWrites.d.ts +33 -0
  105. package/esm/presentation/automations/alerting/state/useAlertDraftFilterWrites.d.ts.map +1 -0
  106. package/esm/presentation/automations/alerting/state/useAlertDraftFilterWrites.js +61 -0
  107. package/esm/presentation/automations/alerting/state/useAlertFiltersModel.d.ts +3 -17
  108. package/esm/presentation/automations/alerting/state/useAlertFiltersModel.d.ts.map +1 -1
  109. package/esm/presentation/automations/alerting/state/useAlertFiltersModel.js +3 -52
  110. package/esm/presentation/automations/alerting/state/useAlertFormState.js +1 -1
  111. package/esm/presentation/automations/connectors/hooks/useBuildAutomationsContext.js +2 -2
  112. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/DefaultScheduledEmailDialog.d.ts.map +1 -1
  113. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/DefaultScheduledEmailDialog.js +1 -1
  114. package/esm/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogShell.js +2 -5
  115. package/esm/presentation/automations/scheduledEmail/state/ScheduledEmailDialogStateProvider.d.ts.map +1 -1
  116. package/esm/presentation/automations/scheduledEmail/state/ScheduledEmailDialogStateProvider.js +22 -40
  117. package/esm/presentation/automations/scheduledEmail/state/useSaveScheduledEmailToBackend.d.ts.map +1 -1
  118. package/esm/presentation/automations/scheduledEmail/state/useSaveScheduledEmailToBackend.js +14 -3
  119. package/esm/presentation/automations/scheduledEmail/state/useScheduledEmailDraftFilterWrites.d.ts +27 -0
  120. package/esm/presentation/automations/scheduledEmail/state/useScheduledEmailDraftFilterWrites.d.ts.map +1 -0
  121. package/esm/presentation/automations/scheduledEmail/state/useScheduledEmailDraftFilterWrites.js +142 -0
  122. package/esm/presentation/automations/scheduledEmail/state/useScheduledEmailFiltersModel.d.ts +4 -6
  123. package/esm/presentation/automations/scheduledEmail/state/useScheduledEmailFiltersModel.d.ts.map +1 -1
  124. package/esm/presentation/automations/scheduledEmail/state/useScheduledEmailFiltersModel.js +9 -151
  125. package/esm/presentation/automations/shared/filters/conversions.d.ts +4 -0
  126. package/esm/presentation/automations/shared/filters/conversions.d.ts.map +1 -1
  127. package/esm/presentation/automations/shared/filters/conversions.js +28 -24
  128. package/esm/presentation/automations/shared/hooks/useShallowStable.d.ts +10 -0
  129. package/esm/presentation/automations/shared/hooks/useShallowStable.d.ts.map +1 -0
  130. package/esm/presentation/automations/shared/hooks/useShallowStable.js +18 -0
  131. package/esm/presentation/dashboard/DashboardSidebar/CreationPanel.d.ts.map +1 -1
  132. package/esm/presentation/dashboard/DashboardSidebar/CreationPanel.js +17 -4
  133. package/esm/presentation/dashboard/DashboardSidebar/SidebarCollapseToggle.d.ts +10 -0
  134. package/esm/presentation/dashboard/DashboardSidebar/SidebarCollapseToggle.d.ts.map +1 -0
  135. package/esm/presentation/dashboard/DashboardSidebar/SidebarCollapseToggle.js +19 -0
  136. package/esm/presentation/dashboard/DashboardSidebar/SidebarConfigurationPanel.d.ts.map +1 -1
  137. package/esm/presentation/dashboard/DashboardSidebar/SidebarConfigurationPanel.js +8 -2
  138. package/esm/presentation/dashboard/DashboardSidebar/SidebarResizeChrome.d.ts.map +1 -1
  139. package/esm/presentation/dashboard/DashboardSidebar/SidebarResizeChrome.js +4 -2
  140. package/esm/presentation/dashboard/DashboardSidebar/SidebarResizeContext.d.ts +8 -3
  141. package/esm/presentation/dashboard/DashboardSidebar/SidebarResizeContext.d.ts.map +1 -1
  142. package/esm/presentation/dashboard/DashboardSidebar/SidebarResizeContext.js +65 -25
  143. package/esm/presentation/dashboard/components/DashboardInner.d.ts.map +1 -1
  144. package/esm/presentation/dashboard/components/DashboardInner.js +4 -4
  145. package/esm/presentation/dashboard/components/DashboardRenderer.d.ts.map +1 -1
  146. package/esm/presentation/dashboard/components/DashboardRenderer.js +2 -2
  147. package/esm/presentation/dashboard/hooks/useDashboard.d.ts +2 -1
  148. package/esm/presentation/dashboard/hooks/useDashboard.d.ts.map +1 -1
  149. package/esm/presentation/dashboard/hooks/useDashboard.js +7 -1
  150. package/esm/presentation/dashboard/types.d.ts +14 -1
  151. package/esm/presentation/dashboard/types.d.ts.map +1 -1
  152. package/esm/presentation/dashboardContexts/DashboardComponentsContext.d.ts +2 -1
  153. package/esm/presentation/dashboardContexts/DashboardComponentsContext.d.ts.map +1 -1
  154. package/esm/presentation/dashboardContexts/DashboardComponentsContext.js +1 -0
  155. package/esm/presentation/dashboardContexts/types.d.ts +20 -0
  156. package/esm/presentation/dashboardContexts/types.d.ts.map +1 -1
  157. package/esm/presentation/dragAndDrop/draggableAttributeFilter/DefaultAttributeFilterDraggingComponent.d.ts.map +1 -1
  158. package/esm/presentation/dragAndDrop/draggableAttributeFilter/DefaultAttributeFilterDraggingComponent.js +4 -3
  159. package/esm/presentation/export/useExportData.js +2 -2
  160. package/esm/presentation/filterBar/attributeFilter/addAttributeFilter/attributeListItemTooltip/AttributeListItemTooltip.d.ts.map +1 -1
  161. package/esm/presentation/filterBar/attributeFilter/addAttributeFilter/attributeListItemTooltip/AttributeListItemTooltip.js +8 -2
  162. package/esm/presentation/filterBar/attributeFilter/addAttributeFilter/attributeListItemTooltip/AttributeListItemTooltipContent.d.ts +12 -1
  163. package/esm/presentation/filterBar/attributeFilter/addAttributeFilter/attributeListItemTooltip/AttributeListItemTooltipContent.d.ts.map +1 -1
  164. package/esm/presentation/filterBar/attributeFilter/addAttributeFilter/attributeListItemTooltip/AttributeListItemTooltipContent.js +19 -2
  165. package/esm/presentation/filterBar/attributeFilter/dashboardDropdownBody/configuration/displayForms/AttributeDisplayFormsDropdown.d.ts.map +1 -1
  166. package/esm/presentation/filterBar/attributeFilter/dashboardDropdownBody/configuration/displayForms/AttributeDisplayFormsDropdown.js +3 -2
  167. package/esm/presentation/filterBar/attributeFilter/dashboardDropdownBody/configuration/hooks/useComputedAttributeExpression.d.ts +14 -0
  168. package/esm/presentation/filterBar/attributeFilter/dashboardDropdownBody/configuration/hooks/useComputedAttributeExpression.d.ts.map +1 -0
  169. package/esm/presentation/filterBar/attributeFilter/dashboardDropdownBody/configuration/hooks/useComputedAttributeExpression.js +28 -0
  170. package/esm/presentation/filterBar/attributeFilter/dashboardDropdownBody/configuration/hooks/useDisplayFormConfiguration.js +2 -2
  171. package/esm/presentation/filterBar/attributeFilter/dashboardDropdownBody/configuration/hooks/useValidNeighbourAttributes.d.ts.map +1 -1
  172. package/esm/presentation/filterBar/attributeFilter/dashboardDropdownBody/configuration/hooks/useValidNeighbourAttributes.js +12 -2
  173. package/esm/presentation/filterBar/attributeFilter/dashboardDropdownBody/configuration/limitValues/shared/limitingItemsHook.d.ts.map +1 -1
  174. package/esm/presentation/filterBar/attributeFilter/dashboardDropdownBody/configuration/limitValues/shared/limitingItemsHook.js +6 -5
  175. package/esm/presentation/filterBar/attributeFilter/dashboardDropdownBody/configuration/parentFilters/ParentFiltersDisabledItem.js +2 -2
  176. package/esm/presentation/filterBar/filterBar/DefaultFilterBarItem.js +2 -2
  177. package/esm/presentation/filterBar/filterBar/useFiltersWithAddedPlaceholder.js +2 -2
  178. package/esm/presentation/filterBar/measureValueFilter/useDashboardMeasureValueFilterData.d.ts.map +1 -1
  179. package/esm/presentation/filterBar/measureValueFilter/useDashboardMeasureValueFilterData.js +55 -17
  180. package/esm/presentation/flexibleLayout/DashboardLayoutWidget.d.ts.map +1 -1
  181. package/esm/presentation/flexibleLayout/DashboardLayoutWidget.js +6 -1
  182. package/esm/presentation/localization/bundles/de-DE.localization-bundle.d.ts +5 -0
  183. package/esm/presentation/localization/bundles/de-DE.localization-bundle.d.ts.map +1 -1
  184. package/esm/presentation/localization/bundles/de-DE.localization-bundle.js +5 -0
  185. package/esm/presentation/localization/bundles/en-AU.localization-bundle.d.ts +5 -0
  186. package/esm/presentation/localization/bundles/en-AU.localization-bundle.d.ts.map +1 -1
  187. package/esm/presentation/localization/bundles/en-AU.localization-bundle.js +5 -0
  188. package/esm/presentation/localization/bundles/en-GB.localization-bundle.d.ts +5 -0
  189. package/esm/presentation/localization/bundles/en-GB.localization-bundle.d.ts.map +1 -1
  190. package/esm/presentation/localization/bundles/en-GB.localization-bundle.js +5 -0
  191. package/esm/presentation/localization/bundles/en-US.localization-bundle.d.ts +40 -0
  192. package/esm/presentation/localization/bundles/en-US.localization-bundle.d.ts.map +1 -1
  193. package/esm/presentation/localization/bundles/en-US.localization-bundle.js +40 -0
  194. package/esm/presentation/localization/bundles/es-419.localization-bundle.d.ts +5 -0
  195. package/esm/presentation/localization/bundles/es-419.localization-bundle.d.ts.map +1 -1
  196. package/esm/presentation/localization/bundles/es-419.localization-bundle.js +5 -0
  197. package/esm/presentation/localization/bundles/es-ES.localization-bundle.d.ts +5 -0
  198. package/esm/presentation/localization/bundles/es-ES.localization-bundle.d.ts.map +1 -1
  199. package/esm/presentation/localization/bundles/es-ES.localization-bundle.js +5 -0
  200. package/esm/presentation/localization/bundles/fi-FI.localization-bundle.d.ts +5 -0
  201. package/esm/presentation/localization/bundles/fi-FI.localization-bundle.d.ts.map +1 -1
  202. package/esm/presentation/localization/bundles/fi-FI.localization-bundle.js +5 -0
  203. package/esm/presentation/localization/bundles/fr-CA.localization-bundle.d.ts +5 -0
  204. package/esm/presentation/localization/bundles/fr-CA.localization-bundle.d.ts.map +1 -1
  205. package/esm/presentation/localization/bundles/fr-CA.localization-bundle.js +5 -0
  206. package/esm/presentation/localization/bundles/fr-FR.localization-bundle.d.ts +5 -0
  207. package/esm/presentation/localization/bundles/fr-FR.localization-bundle.d.ts.map +1 -1
  208. package/esm/presentation/localization/bundles/fr-FR.localization-bundle.js +5 -0
  209. package/esm/presentation/localization/bundles/id-ID.localization-bundle.d.ts +5 -0
  210. package/esm/presentation/localization/bundles/id-ID.localization-bundle.d.ts.map +1 -1
  211. package/esm/presentation/localization/bundles/id-ID.localization-bundle.js +5 -0
  212. package/esm/presentation/localization/bundles/it-IT.localization-bundle.d.ts +5 -0
  213. package/esm/presentation/localization/bundles/it-IT.localization-bundle.d.ts.map +1 -1
  214. package/esm/presentation/localization/bundles/it-IT.localization-bundle.js +5 -0
  215. package/esm/presentation/localization/bundles/ja-JP.localization-bundle.d.ts +5 -0
  216. package/esm/presentation/localization/bundles/ja-JP.localization-bundle.d.ts.map +1 -1
  217. package/esm/presentation/localization/bundles/ja-JP.localization-bundle.js +5 -0
  218. package/esm/presentation/localization/bundles/ko-KR.localization-bundle.d.ts +5 -0
  219. package/esm/presentation/localization/bundles/ko-KR.localization-bundle.d.ts.map +1 -1
  220. package/esm/presentation/localization/bundles/ko-KR.localization-bundle.js +5 -0
  221. package/esm/presentation/localization/bundles/nl-NL.localization-bundle.d.ts +5 -0
  222. package/esm/presentation/localization/bundles/nl-NL.localization-bundle.d.ts.map +1 -1
  223. package/esm/presentation/localization/bundles/nl-NL.localization-bundle.js +5 -0
  224. package/esm/presentation/localization/bundles/pl-PL.localization-bundle.d.ts +5 -0
  225. package/esm/presentation/localization/bundles/pl-PL.localization-bundle.d.ts.map +1 -1
  226. package/esm/presentation/localization/bundles/pl-PL.localization-bundle.js +5 -0
  227. package/esm/presentation/localization/bundles/pt-BR.localization-bundle.d.ts +5 -0
  228. package/esm/presentation/localization/bundles/pt-BR.localization-bundle.d.ts.map +1 -1
  229. package/esm/presentation/localization/bundles/pt-BR.localization-bundle.js +5 -0
  230. package/esm/presentation/localization/bundles/pt-PT.localization-bundle.d.ts +5 -0
  231. package/esm/presentation/localization/bundles/pt-PT.localization-bundle.d.ts.map +1 -1
  232. package/esm/presentation/localization/bundles/pt-PT.localization-bundle.js +5 -0
  233. package/esm/presentation/localization/bundles/ru-RU.localization-bundle.d.ts +5 -0
  234. package/esm/presentation/localization/bundles/ru-RU.localization-bundle.d.ts.map +1 -1
  235. package/esm/presentation/localization/bundles/ru-RU.localization-bundle.js +5 -0
  236. package/esm/presentation/localization/bundles/sl-SI.localization-bundle.d.ts +5 -0
  237. package/esm/presentation/localization/bundles/sl-SI.localization-bundle.d.ts.map +1 -1
  238. package/esm/presentation/localization/bundles/sl-SI.localization-bundle.js +5 -0
  239. package/esm/presentation/localization/bundles/th-TH.localization-bundle.d.ts +5 -0
  240. package/esm/presentation/localization/bundles/th-TH.localization-bundle.d.ts.map +1 -1
  241. package/esm/presentation/localization/bundles/th-TH.localization-bundle.js +5 -0
  242. package/esm/presentation/localization/bundles/tr-TR.localization-bundle.d.ts +5 -0
  243. package/esm/presentation/localization/bundles/tr-TR.localization-bundle.d.ts.map +1 -1
  244. package/esm/presentation/localization/bundles/tr-TR.localization-bundle.js +5 -0
  245. package/esm/presentation/localization/bundles/uk-UA.localization-bundle.d.ts +5 -0
  246. package/esm/presentation/localization/bundles/uk-UA.localization-bundle.d.ts.map +1 -1
  247. package/esm/presentation/localization/bundles/uk-UA.localization-bundle.js +5 -0
  248. package/esm/presentation/localization/bundles/vi-VN.localization-bundle.d.ts +5 -0
  249. package/esm/presentation/localization/bundles/vi-VN.localization-bundle.d.ts.map +1 -1
  250. package/esm/presentation/localization/bundles/vi-VN.localization-bundle.js +5 -0
  251. package/esm/presentation/localization/bundles/zh-HK.localization-bundle.d.ts +5 -0
  252. package/esm/presentation/localization/bundles/zh-HK.localization-bundle.d.ts.map +1 -1
  253. package/esm/presentation/localization/bundles/zh-HK.localization-bundle.js +5 -0
  254. package/esm/presentation/localization/bundles/zh-Hans.localization-bundle.d.ts +5 -0
  255. package/esm/presentation/localization/bundles/zh-Hans.localization-bundle.d.ts.map +1 -1
  256. package/esm/presentation/localization/bundles/zh-Hans.localization-bundle.js +5 -0
  257. package/esm/presentation/localization/bundles/zh-Hant.localization-bundle.d.ts +5 -0
  258. package/esm/presentation/localization/bundles/zh-Hant.localization-bundle.d.ts.map +1 -1
  259. package/esm/presentation/localization/bundles/zh-Hant.localization-bundle.js +5 -0
  260. package/esm/presentation/widget/common/RestrictedPlaceholder.d.ts +54 -0
  261. package/esm/presentation/widget/common/RestrictedPlaceholder.d.ts.map +1 -0
  262. package/esm/presentation/widget/common/RestrictedPlaceholder.js +49 -0
  263. package/esm/presentation/widget/common/configuration/DateDatasetFilter.d.ts +6 -1
  264. package/esm/presentation/widget/common/configuration/DateDatasetFilter.d.ts.map +1 -1
  265. package/esm/presentation/widget/common/configuration/DateDatasetFilter.js +2 -2
  266. package/esm/presentation/widget/common/configuration/DateFilterCheckbox.d.ts +6 -1
  267. package/esm/presentation/widget/common/configuration/DateFilterCheckbox.d.ts.map +1 -1
  268. package/esm/presentation/widget/common/configuration/DateFilterCheckbox.js +10 -3
  269. package/esm/presentation/widget/insight/DefaultInsightBody/DefaultInsightBody.js +2 -2
  270. package/esm/presentation/widget/insight/ViewModeDashboardInsight/InsightDrillDialog/DrillDialogInsight.js +2 -2
  271. package/esm/presentation/widget/insight/configuration/InsightDateDataSetFilter.d.ts.map +1 -1
  272. package/esm/presentation/widget/insight/configuration/InsightDateDataSetFilter.js +1 -1
  273. package/esm/presentation/widget/insight/configuration/InsightDrillConfigList.d.ts +6 -1
  274. package/esm/presentation/widget/insight/configuration/InsightDrillConfigList.d.ts.map +1 -1
  275. package/esm/presentation/widget/insight/configuration/InsightDrillConfigList.js +13 -2
  276. package/esm/presentation/widget/insight/configuration/InsightDrillConfigPanel/InsightDrillConfigPanel.d.ts.map +1 -1
  277. package/esm/presentation/widget/insight/configuration/InsightDrillConfigPanel/InsightDrillConfigPanel.js +5 -1
  278. package/esm/presentation/widget/insight/configuration/useDrillTargetTypeItems.d.ts +1 -1
  279. package/esm/presentation/widget/insight/configuration/useDrillTargetTypeItems.d.ts.map +1 -1
  280. package/esm/presentation/widget/insight/configuration/useDrillTargetTypeItems.js +2 -2
  281. package/esm/presentation/widget/richText/configuration/RichTextDateDataSetFilter.d.ts.map +1 -1
  282. package/esm/presentation/widget/richText/configuration/RichTextDateDataSetFilter.js +1 -1
  283. package/esm/presentation/widget/visualizationSwitcher/ViewModeDashboardVisualizationSwitcher.d.ts.map +1 -1
  284. package/esm/presentation/widget/visualizationSwitcher/ViewModeDashboardVisualizationSwitcher.js +8 -0
  285. package/esm/presentation/widget/visualizationSwitcher/ViewModeDashboardVisualizationSwitcherRestricted.d.ts +16 -0
  286. package/esm/presentation/widget/visualizationSwitcher/ViewModeDashboardVisualizationSwitcherRestricted.d.ts.map +1 -0
  287. package/esm/presentation/widget/visualizationSwitcher/ViewModeDashboardVisualizationSwitcherRestricted.js +19 -0
  288. package/esm/presentation/widget/widget/InsightWidget/DashboardWidgetInsightGuard.d.ts.map +1 -1
  289. package/esm/presentation/widget/widget/InsightWidget/DashboardWidgetInsightGuard.js +11 -1
  290. package/esm/presentation/widget/widget/InsightWidget/DefaultDashboardInsightWidget.js +2 -2
  291. package/esm/presentation/widget/widget/VisualizationSwitcherWidget/VisualizationSwitcherNavigationHeader.d.ts.map +1 -1
  292. package/esm/presentation/widget/widget/VisualizationSwitcherWidget/VisualizationSwitcherNavigationHeader.js +25 -12
  293. package/esm/sdk-ui-dashboard.d.ts +201 -3
  294. package/package.json +21 -21
  295. package/styles/css/configurationPanel.css +1 -5
  296. package/styles/css/configurationPanel.css.map +1 -1
  297. package/styles/css/filterBar.css +29 -0
  298. package/styles/css/filterBar.css.map +1 -1
  299. package/styles/css/main.css +203 -5
  300. package/styles/css/main.css.map +1 -1
  301. package/styles/css/sidebar.css +165 -0
  302. package/styles/css/sidebar.css.map +1 -1
  303. package/styles/css/visualizationSwitcherWidget.css +8 -0
  304. package/styles/css/visualizationSwitcherWidget.css.map +1 -1
  305. package/styles/scss/configurationPanel.scss +1 -7
  306. package/styles/scss/filterBar.scss +38 -0
  307. package/styles/scss/sidebar.scss +215 -0
  308. package/styles/scss/visualizationSwitcherWidget.scss +9 -0
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/presentation/dashboardContexts/types.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,OAAO,CAAC;AAE3C,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,EACH,KAAK,4BAA4B,EACjC,KAAK,UAAU,EACf,KAAK,oBAAoB,EACzB,KAAK,qBAAqB,EAC1B,KAAK,gBAAgB,EACrB,KAAK,4BAA4B,EACjC,KAAK,QAAQ,EACb,KAAK,cAAc,EACnB,KAAK,eAAe,EACpB,KAAK,4BAA4B,EACjC,KAAK,qBAAqB,EAC1B,KAAK,MAAM,EACd,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEtD,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,kCAAkC,CAAC;AACxE,OAAO,EAAE,KAAK,uBAAuB,EAA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AAG,gBAAgB,CAAC,wBAAwB,CAAC,CAAC;AAE1F;;GAEG;AACH,MAAM,MAAM,wBAAwB,GAAG,CAAC,KAAK,EAAE,aAAa,KAAK,aAAa,CAAC,aAAa,CAAC,CAAC;AAE9F;;GAEG;AACH,MAAM,MAAM,iCAAiC,GAAG,CAC5C,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,UAAU,KACvC,+BAA+B,CAAC;AAErC;;GAEG;AACH,MAAM,MAAM,yCAAyC,GAAG,gBAAgB,CAAC,iCAAiC,CAAC,CAAC;AAE5G;;GAEG;AACH,MAAM,WAAW,0BAA0B;IACvC;;;;;;OAMG;IACH,OAAO,CAAC,EAAE,kBAAkB,CAAC;IAE7B;;;;;;OAMG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;;;;;;;;OASG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,UAAU,CAAC;IAEzC;;;;;;;;OAQG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAE1B;;;;;OAKG;IACH,MAAM,CAAC,EAAE,eAAe,CAAC;IAEzB;;;;;;;OAOG;IACH,WAAW,CAAC,EAAE,qBAAqB,CAAC;CACvC;AACD;;GAEG;AACH,MAAM,MAAM,+BAA+B,GAAG,aAAa,CAAC,0BAA0B,CAAC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"DefaultAttributeFilterDraggingComponent.d.ts","sourceRoot":"","sources":["../../../../src/presentation/dragAndDrop/draggableAttributeFilter/DefaultAttributeFilterDraggingComponent.tsx"],"names":[],"mappings":"AAkBA,OAAO,EAAE,KAAK,sCAAsC,EAAE,MAAM,oCAAoC,CAAC;AAkBjG,wBAAgB,uCAAuC,CAAC,EAAE,IAAI,EAAE,EAAE,sCAAsC,kDAsBvG"}
1
+ {"version":3,"file":"DefaultAttributeFilterDraggingComponent.d.ts","sourceRoot":"","sources":["../../../../src/presentation/dragAndDrop/draggableAttributeFilter/DefaultAttributeFilterDraggingComponent.tsx"],"names":[],"mappings":"AAkBA,OAAO,EAAE,KAAK,sCAAsC,EAAE,MAAM,oCAAoC,CAAC;AAmBjG,wBAAgB,uCAAuC,CAAC,EAAE,IAAI,EAAE,EAAE,sCAAsC,kDAsBvG"}
@@ -5,12 +5,13 @@ import { areObjRefsEqual, dashboardAttributeFilterItemDisplayForm, idRef, uriRef
5
5
  import { IconDragHandle, ShortenedText } from "@gooddata/sdk-ui-kit";
6
6
  import { useTheme } from "@gooddata/sdk-ui-theme-provider";
7
7
  import { useDashboardSelector } from "../../../model/react/DashboardStoreProvider.js";
8
- import { selectCatalogAttributes } from "../../../model/store/catalog/catalogSelectors.js";
8
+ import { selectCatalogAttributesWithComputed } from "../../../model/store/catalog/catalogSelectors.js";
9
9
  function isDisplayFormEqual(displayForm, identifierOrUriRef) {
10
- return (areObjRefsEqual(idRef(displayForm.id, displayForm.type), identifierOrUriRef) ||
10
+ return (areObjRefsEqual(displayForm.ref, identifierOrUriRef) ||
11
+ areObjRefsEqual(idRef(displayForm.id, displayForm.type), identifierOrUriRef) ||
11
12
  areObjRefsEqual(uriRef(displayForm.uri), identifierOrUriRef));
12
13
  }
13
- const selectFilterAttribute = (filter) => createSelector(selectCatalogAttributes, (attributes) => attributes.find((attribute) => attribute.displayForms.some((displayForm) => isDisplayFormEqual(displayForm, dashboardAttributeFilterItemDisplayForm(filter)))));
14
+ const selectFilterAttribute = (filter) => createSelector(selectCatalogAttributesWithComputed, (attributes) => attributes.find((attribute) => attribute.displayForms.some((displayForm) => isDisplayFormEqual(displayForm, dashboardAttributeFilterItemDisplayForm(filter)))));
14
15
  export function DefaultAttributeFilterDraggingComponent({ item }) {
15
16
  const theme = useTheme();
16
17
  const filterAttribute = useDashboardSelector(selectFilterAttribute(item.filter));
@@ -2,7 +2,7 @@
2
2
  import { useMemo } from "react";
3
3
  import { areObjRefsEqual, attributeAlias, attributeDisplayFormRef, insightAttributes, insightMeasures, insightVisualizationType, measureAlias, measureTitle, } from "@gooddata/sdk-model";
4
4
  import { useDashboardSelector } from "../../model/react/DashboardStoreProvider.js";
5
- import { selectCatalogAttributes } from "../../model/store/catalog/catalogSelectors.js";
5
+ import { selectCatalogAttributesWithComputed } from "../../model/store/catalog/catalogSelectors.js";
6
6
  import { selectInsightByWidgetRef } from "../../model/store/insights/insightsSelectors.js";
7
7
  import { selectIsInExportMode } from "../../model/store/renderMode/renderModeSelectors.js";
8
8
  const getAttributeDisplayName = (attribute, catalogAttributes) => {
@@ -103,7 +103,7 @@ export const useSectionDescriptionExportData = (exportData, loading, error) => {
103
103
  export const useWidgetExportData = (widget) => {
104
104
  const insight = useDashboardSelector(selectInsightByWidgetRef(widget.ref));
105
105
  const isExportMode = useDashboardSelector(selectIsInExportMode);
106
- const catalogAttributes = useDashboardSelector(selectCatalogAttributes);
106
+ const catalogAttributes = useDashboardSelector(selectCatalogAttributesWithComputed);
107
107
  if (!isExportMode) {
108
108
  return undefined;
109
109
  }
@@ -1 +1 @@
1
- {"version":3,"file":"AttributeListItemTooltip.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/filterBar/attributeFilter/addAttributeFilter/attributeListItemTooltip/AttributeListItemTooltip.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAAY,MAAM,OAAO,CAAC;AAEjD,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAe7D,UAAU,8BAA8B;IACpC,IAAI,EAAE,iBAAiB,CAAC;CAC3B;AAED;;GAEG;AACH,wBAAgB,wBAAwB,CAAC,EAAE,IAAI,EAAE,EAAE,8BAA8B,GAAG,SAAS,CAqC5F"}
1
+ {"version":3,"file":"AttributeListItemTooltip.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/filterBar/attributeFilter/addAttributeFilter/attributeListItemTooltip/AttributeListItemTooltip.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAAY,MAAM,OAAO,CAAC;AAEjD,OAAO,EAAE,KAAK,iBAAiB,EAA0B,MAAM,qBAAqB,CAAC;AAgBrF,UAAU,8BAA8B;IACpC,IAAI,EAAE,iBAAiB,CAAC;CAC3B;AAED;;GAEG;AACH,wBAAgB,wBAAwB,CAAC,EAAE,IAAI,EAAE,EAAE,8BAA8B,GAAG,SAAS,CAkD5F"}
@@ -1,9 +1,11 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  // (C) 2023-2026 GoodData Corporation
3
3
  import { useState } from "react";
4
+ import { isComputedAttributeRef } from "@gooddata/sdk-model";
4
5
  import { Bubble, BubbleHoverTrigger } from "@gooddata/sdk-ui-kit";
5
6
  import { useAttributeDataSet } from "../../dashboardDropdownBody/configuration/hooks/useAttributeDataSet.js";
6
7
  import { useAttributeElements } from "../../dashboardDropdownBody/configuration/hooks/useAttributeElements.js";
8
+ import { useComputedAttributeExpression } from "../../dashboardDropdownBody/configuration/hooks/useComputedAttributeExpression.js";
7
9
  import { AttributeListItemTooltipContent } from "./AttributeListItemTooltipContent.js";
8
10
  const ATTR_ELEMENTS_LIMIT = 5;
9
11
  const bubbleAlignPoints = [
@@ -16,6 +18,10 @@ const bubbleAlignPoints = [
16
18
  export function AttributeListItemTooltip({ item }) {
17
19
  const [isHover, setIsHover] = useState(false);
18
20
  const { attributeElements, attributesElementsLoading } = useAttributeElements(item.defaultDisplayForm.ref, ATTR_ELEMENTS_LIMIT, isHover);
19
- const { attributeDataSet, attributesDataSetLoading } = useAttributeDataSet(item.attribute.ref, isHover);
20
- return (_jsx("div", { children: _jsxs(BubbleHoverTrigger, { showDelay: 0, hideDelay: 0, eventsOnBubble: true, className: "gd-attribute-item-tooltip-icon", children: [_jsx("span", { onMouseEnter: () => setIsHover(true), className: "gd-icon-circle-question gd-list-item-tooltip-icon s-attribute-dropdown-list-item-tooltip" }), _jsx(Bubble, { className: "gd-attribute-dropdown-list-item-details s-attribute-filter-details-bubble", alignPoints: bubbleAlignPoints, arrowStyle: { display: "none" }, children: _jsx(AttributeListItemTooltipContent, { item: item, attributesDataSetLoading: attributesDataSetLoading, attributesElementsLoading: attributesElementsLoading, attributeDataSet: attributeDataSet, attributeElements: attributeElements }) })] }) }));
21
+ // a computed attribute belongs to no dataset and additionally shows its MAQL definition,
22
+ // after the values
23
+ const isComputedAttribute = isComputedAttributeRef(item.attribute.ref);
24
+ const { attributeDataSet, attributesDataSetLoading } = useAttributeDataSet(item.attribute.ref, isHover && !isComputedAttribute);
25
+ const { expressionTokens, expressionTokensLoading } = useComputedAttributeExpression(item.attribute.ref, isHover && isComputedAttribute);
26
+ return (_jsx("div", { children: _jsxs(BubbleHoverTrigger, { showDelay: 0, hideDelay: 0, eventsOnBubble: true, className: "gd-attribute-item-tooltip-icon", children: [_jsx("span", { onMouseEnter: () => setIsHover(true), className: "gd-icon-circle-question gd-list-item-tooltip-icon s-attribute-dropdown-list-item-tooltip" }), _jsx(Bubble, { className: "gd-attribute-dropdown-list-item-details s-attribute-filter-details-bubble", alignPoints: bubbleAlignPoints, arrowStyle: { display: "none" }, children: _jsx(AttributeListItemTooltipContent, { item: item, hideDataSet: isComputedAttribute, attributesDataSetLoading: attributesDataSetLoading, attributesElementsLoading: attributesElementsLoading, attributeDataSet: attributeDataSet, attributeElements: attributeElements, expressionTokens: isComputedAttribute ? expressionTokens : undefined, expressionTokensLoading: isComputedAttribute ? expressionTokensLoading : undefined }) })] }) }));
21
27
  }
@@ -1,15 +1,26 @@
1
+ import { type IMeasureExpressionToken } from "@gooddata/sdk-backend-spi";
1
2
  import { type ICatalogAttribute, type IDataSetMetadataObject } from "@gooddata/sdk-model";
2
3
  import type { IUseAttributeElements } from "../../../../../model/types/attributeFilterTypes.js";
3
4
  interface IAttributeListItemTooltipContentProps {
4
5
  item: ICatalogAttribute;
6
+ /**
7
+ * Hide the data set section; a computed attribute belongs to no data set.
8
+ */
9
+ hideDataSet?: boolean;
5
10
  attributesDataSetLoading: boolean;
6
11
  attributesElementsLoading: boolean;
7
12
  attributeDataSet?: IDataSetMetadataObject;
8
13
  attributeElements?: IUseAttributeElements;
14
+ /**
15
+ * Tokenized MAQL expression; provided only for computed attributes, rendered after the values
16
+ * with the referenced objects resolved to their titles.
17
+ */
18
+ expressionTokens?: IMeasureExpressionToken[];
19
+ expressionTokensLoading?: boolean;
9
20
  }
10
21
  /**
11
22
  * @internal
12
23
  */
13
- export declare function AttributeListItemTooltipContent({ item, attributesDataSetLoading, attributesElementsLoading, attributeDataSet, attributeElements, }: IAttributeListItemTooltipContentProps): import("react/jsx-runtime").JSX.Element;
24
+ export declare function AttributeListItemTooltipContent({ item, hideDataSet, attributesDataSetLoading, attributesElementsLoading, attributeDataSet, attributeElements, expressionTokens, expressionTokensLoading, }: IAttributeListItemTooltipContentProps): import("react/jsx-runtime").JSX.Element;
14
25
  export {};
15
26
  //# sourceMappingURL=AttributeListItemTooltipContent.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"AttributeListItemTooltipContent.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/filterBar/attributeFilter/addAttributeFilter/attributeListItemTooltip/AttributeListItemTooltipContent.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,iBAAiB,EAAE,KAAK,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAE1F,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,oDAAoD,CAAC;AA2BhG,UAAU,qCAAqC;IAC3C,IAAI,EAAE,iBAAiB,CAAC;IACxB,wBAAwB,EAAE,OAAO,CAAC;IAClC,yBAAyB,EAAE,OAAO,CAAC;IACnC,gBAAgB,CAAC,EAAE,sBAAsB,CAAC;IAC1C,iBAAiB,CAAC,EAAE,qBAAqB,CAAC;CAC7C;AAED;;GAEG;AACH,wBAAgB,+BAA+B,CAAC,EAC5C,IAAI,EACJ,wBAAwB,EACxB,yBAAyB,EACzB,gBAAgB,EAChB,iBAAiB,GACpB,EAAE,qCAAqC,2CAyBvC"}
1
+ {"version":3,"file":"AttributeListItemTooltipContent.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/filterBar/attributeFilter/addAttributeFilter/attributeListItemTooltip/AttributeListItemTooltipContent.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACzE,OAAO,EAAE,KAAK,iBAAiB,EAAE,KAAK,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAE1F,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,oDAAoD,CAAC;AA4DhG,UAAU,qCAAqC;IAC3C,IAAI,EAAE,iBAAiB,CAAC;IACxB;;OAEG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,wBAAwB,EAAE,OAAO,CAAC;IAClC,yBAAyB,EAAE,OAAO,CAAC;IACnC,gBAAgB,CAAC,EAAE,sBAAsB,CAAC;IAC1C,iBAAiB,CAAC,EAAE,qBAAqB,CAAC;IAC1C;;;OAGG;IACH,gBAAgB,CAAC,EAAE,uBAAuB,EAAE,CAAC;IAC7C,uBAAuB,CAAC,EAAE,OAAO,CAAC;CACrC;AAED;;GAEG;AACH,wBAAgB,+BAA+B,CAAC,EAC5C,IAAI,EACJ,WAAW,EACX,wBAAwB,EACxB,yBAAyB,EACzB,gBAAgB,EAChB,iBAAiB,EACjB,gBAAgB,EAChB,uBAAuB,GAC1B,EAAE,qCAAqC,2CAiDvC"}
@@ -1,6 +1,22 @@
1
1
  import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  // (C) 2023-2026 GoodData Corporation
3
3
  import { FormattedMessage, useIntl } from "react-intl";
4
+ const PLAIN_TOKEN_TYPES = ["text", "quoted_text", "number", "comment", "bracket"];
5
+ function AttrTooltipExpression({ tokens }) {
6
+ const intl = useIntl();
7
+ return (_jsx(_Fragment, { children: tokens.map((token, idx) => {
8
+ if (PLAIN_TOKEN_TYPES.includes(token.type)) {
9
+ return _jsx("span", { children: token.value }, idx);
10
+ }
11
+ if (token.type === "attributeElement") {
12
+ const title = token.deleted
13
+ ? `(${intl.formatMessage({ id: "deleted_value" })})`
14
+ : token.value || `(${intl.formatMessage({ id: "empty_value" })})`;
15
+ return (_jsx("span", { className: "gd-maql-token-attribute-element", children: title }, idx));
16
+ }
17
+ return (_jsx("span", { className: `gd-maql-token-object gd-maql-token-${token.type}`, children: token.value }, idx));
18
+ }) }));
19
+ }
4
20
  function AttrTooltipElements({ elements, totalCount }) {
5
21
  const intl = useIntl();
6
22
  const remainingElementsCount = totalCount - elements.length;
@@ -9,6 +25,7 @@ function AttrTooltipElements({ elements, totalCount }) {
9
25
  /**
10
26
  * @internal
11
27
  */
12
- export function AttributeListItemTooltipContent({ item, attributesDataSetLoading, attributesElementsLoading, attributeDataSet, attributeElements, }) {
13
- return (_jsxs("div", { className: "gd-attribute-dropdown-list-tooltip-content s-attribute-dropdown-item-list-tooltip-content", children: [_jsx("h3", { className: "s-attribute-filter-tooltip-header", children: item.attribute.title }), _jsx("h4", { children: _jsx(FormattedMessage, { id: "attributesDropdown.details.dataset" }) }), _jsx("p", { className: "s-attribute-filter-tooltip-item-dataset", children: attributesDataSetLoading ? _jsx(FormattedMessage, { id: "loading" }) : attributeDataSet?.title }), _jsx("h4", { children: _jsx(FormattedMessage, { id: "attributesDropdown.details.values" }) }), _jsx("p", { className: "s-attribute-filter-tooltip-item-elements", children: attributesElementsLoading ? (_jsx(FormattedMessage, { id: "loading" })) : (_jsx(AttrTooltipElements, { elements: attributeElements.elements, totalCount: attributeElements.totalCount })) })] }));
28
+ export function AttributeListItemTooltipContent({ item, hideDataSet, attributesDataSetLoading, attributesElementsLoading, attributeDataSet, attributeElements, expressionTokens, expressionTokensLoading, }) {
29
+ const showExpression = expressionTokensLoading || expressionTokens !== undefined;
30
+ return (_jsxs("div", { className: "gd-attribute-dropdown-list-tooltip-content s-attribute-dropdown-item-list-tooltip-content", children: [_jsx("h3", { className: "s-attribute-filter-tooltip-header", children: item.attribute.title }), hideDataSet ? null : (_jsxs(_Fragment, { children: [_jsx("h4", { children: _jsx(FormattedMessage, { id: "attributesDropdown.details.dataset" }) }), _jsx("p", { className: "s-attribute-filter-tooltip-item-dataset", children: attributesDataSetLoading ? (_jsx(FormattedMessage, { id: "loading" })) : (attributeDataSet?.title) })] })), _jsx("h4", { children: _jsx(FormattedMessage, { id: "attributesDropdown.details.values" }) }), _jsx("p", { className: "s-attribute-filter-tooltip-item-elements", children: attributesElementsLoading ? (_jsx(FormattedMessage, { id: "loading" })) : attributeElements ? (_jsx(AttrTooltipElements, { elements: attributeElements.elements, totalCount: attributeElements.totalCount })) : null }), showExpression ? (_jsxs(_Fragment, { children: [_jsx("h4", { children: _jsx(FormattedMessage, { id: "attributesDropdown.details.definedAs" }) }), _jsx("p", { className: "s-attribute-filter-tooltip-item-maql", children: expressionTokensLoading ? (_jsx(FormattedMessage, { id: "loading" })) : (_jsx(AttrTooltipExpression, { tokens: expressionTokens })) })] })) : null] }));
14
31
  }
@@ -1 +1 @@
1
- {"version":3,"file":"AttributeDisplayFormsDropdown.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/filterBar/attributeFilter/dashboardDropdownBody/configuration/displayForms/AttributeDisplayFormsDropdown.tsx"],"names":[],"mappings":"AAEA,OAAO,EACH,KAAK,mCAAmC,EACxC,KAAK,MAAM,EAId,MAAM,qBAAqB,CAAC;AAM7B,UAAU,wCAAwC;IAC9C,YAAY,EAAE,mCAAmC,EAAE,CAAC;IACpD,mBAAmB,EAAE,MAAM,CAAC;IAC5B,QAAQ,EAAE,CAAC,WAAW,EAAE,MAAM,KAAK,IAAI,CAAC;CAC3C;AAeD,wBAAgB,6BAA6B,CAAC,EAC1C,YAAY,EACZ,mBAAmB,EACnB,QAAQ,GACX,EAAE,wCAAwC,2CAgD1C"}
1
+ {"version":3,"file":"AttributeDisplayFormsDropdown.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/filterBar/attributeFilter/dashboardDropdownBody/configuration/displayForms/AttributeDisplayFormsDropdown.tsx"],"names":[],"mappings":"AAEA,OAAO,EACH,KAAK,mCAAmC,EACxC,KAAK,MAAM,EAId,MAAM,qBAAqB,CAAC;AAM7B,UAAU,wCAAwC;IAC9C,YAAY,EAAE,mCAAmC,EAAE,CAAC;IACpD,mBAAmB,EAAE,MAAM,CAAC;IAC5B,QAAQ,EAAE,CAAC,WAAW,EAAE,MAAM,KAAK,IAAI,CAAC;CAC3C;AAeD,wBAAgB,6BAA6B,CAAC,EAC1C,YAAY,EACZ,mBAAmB,EACnB,QAAQ,GACX,EAAE,wCAAwC,2CAiD1C"}
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- // (C) 2022-2025 GoodData Corporation
2
+ // (C) 2022-2026 GoodData Corporation
3
3
  import { areObjRefsEqual, idRef, uriRef, } from "@gooddata/sdk-model";
4
4
  import { Dropdown, DropdownList } from "@gooddata/sdk-ui-kit";
5
5
  import { AttributeDisplayFormDropdownButton } from "./AttributeDisplayFormDropdownButton.js";
@@ -18,7 +18,8 @@ const ALIGN_POINTS = [
18
18
  ];
19
19
  export function AttributeDisplayFormsDropdown({ displayForms, selectedDisplayForm, onChange, }) {
20
20
  // try matching both uri and id in case the type of ref is different from what is in the ref field
21
- const selectedDisplayFormTitle = displayForms.find((df) => areObjRefsEqual(idRef(df.id, "displayForm"), selectedDisplayForm) ||
21
+ const selectedDisplayFormTitle = displayForms.find((df) => areObjRefsEqual(df.ref, selectedDisplayForm) ||
22
+ areObjRefsEqual(idRef(df.id, "displayForm"), selectedDisplayForm) ||
22
23
  areObjRefsEqual(uriRef(df.uri), selectedDisplayForm)).title;
23
24
  return (_jsx(Dropdown, { alignPoints: ALIGN_POINTS, renderButton: ({ isOpen, toggleDropdown }) => {
24
25
  return (_jsx(AttributeDisplayFormDropdownButton, { title: selectedDisplayFormTitle, isOpened: isOpen, toggleDropdown: toggleDropdown }));
@@ -0,0 +1,14 @@
1
+ import { type IMeasureExpressionToken } from "@gooddata/sdk-backend-spi";
2
+ import { type ObjRef } from "@gooddata/sdk-model";
3
+ /**
4
+ * Loads the tokenized MAQL expression of a computed attribute, with referenced objects resolved
5
+ * to their titles. Fires only when `loadQuery` is true and the ref points at a computed attribute.
6
+ *
7
+ * @internal
8
+ */
9
+ export declare function useComputedAttributeExpression(ref: ObjRef, loadQuery?: boolean): {
10
+ expressionTokens: IMeasureExpressionToken[] | undefined;
11
+ expressionTokensLoading: boolean;
12
+ expressionTokensLoadingError: import("@gooddata/sdk-ui").GoodDataSdkError | undefined;
13
+ };
14
+ //# sourceMappingURL=useComputedAttributeExpression.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useComputedAttributeExpression.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/filterBar/attributeFilter/dashboardDropdownBody/configuration/hooks/useComputedAttributeExpression.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACzE,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAQlD;;;;;GAKG;AACH,wBAAgB,8BAA8B,CAAC,GAAG,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,OAAO;;;;EA6B9E"}
@@ -0,0 +1,28 @@
1
+ // (C) 2026 GoodData Corporation
2
+ import { useEffect, useMemo } from "react";
3
+ import { queryComputedAttributeExpression, } from "../../../../../../model/queries/computedAttributeExpression.js";
4
+ import { useDashboardQueryProcessing } from "../../../../../../model/react/useDashboardQueryProcessing.js";
5
+ /**
6
+ * Loads the tokenized MAQL expression of a computed attribute, with referenced objects resolved
7
+ * to their titles. Fires only when `loadQuery` is true and the ref points at a computed attribute.
8
+ *
9
+ * @internal
10
+ */
11
+ export function useComputedAttributeExpression(ref, loadQuery) {
12
+ const { run: getExpressionTokens, result: expressionTokens, status: expressionTokensLoadingStatus, error: expressionTokensLoadingError, } = useDashboardQueryProcessing({
13
+ queryCreator: queryComputedAttributeExpression,
14
+ });
15
+ useEffect(() => {
16
+ if (loadQuery) {
17
+ getExpressionTokens(ref);
18
+ }
19
+ }, [ref, loadQuery, getExpressionTokens]);
20
+ const expressionTokensLoading = useMemo(() => {
21
+ return expressionTokensLoadingStatus === "pending" || expressionTokensLoadingStatus === "running";
22
+ }, [expressionTokensLoadingStatus]);
23
+ return {
24
+ expressionTokens,
25
+ expressionTokensLoading,
26
+ expressionTokensLoadingError,
27
+ };
28
+ }
@@ -4,9 +4,9 @@ import { areObjRefsEqual, } from "@gooddata/sdk-model";
4
4
  import { setDashboardAttributeFilterConfigDisplayAsLabel } from "../../../../../../model/commands/dashboard.js";
5
5
  import { useDashboardSelector } from "../../../../../../model/react/DashboardStoreProvider.js";
6
6
  import { useDashboardCommandProcessing } from "../../../../../../model/react/useDashboardCommandProcessing.js";
7
- import { selectCatalogAttributes } from "../../../../../../model/store/catalog/catalogSelectors.js";
7
+ import { selectCatalogAttributesWithComputed } from "../../../../../../model/store/catalog/catalogSelectors.js";
8
8
  export function useDisplayFormConfiguration(currentFilter, attributes, displayAsLabel) {
9
- const catalogAttributes = useDashboardSelector(selectCatalogAttributes);
9
+ const catalogAttributes = useDashboardSelector(selectCatalogAttributesWithComputed);
10
10
  const { run: changeDisplayAsLabel, status: displayAsLabelChangeStatus } = useDashboardCommandProcessing({
11
11
  commandCreator: setDashboardAttributeFilterConfigDisplayAsLabel,
12
12
  successEvent: "GDC.DASH/EVT.ATTRIBUTE_FILTER_CONFIG.DISPLAY_AS_LABEL_CHANGED",
@@ -1 +1 @@
1
- {"version":3,"file":"useValidNeighbourAttributes.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/filterBar/attributeFilter/dashboardDropdownBody/configuration/hooks/useValidNeighbourAttributes.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,MAAM,EAAmB,MAAM,qBAAqB,CAAC;AACnE,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAWzD,UAAU,kCAAkC;IACxC,wBAAwB,EAAE,MAAM,EAAE,CAAC;IACnC,+BAA+B,EAAE,OAAO,CAAC;IACzC,6BAA6B,EAAE,gBAAgB,GAAG,SAAS,CAAC;CAC/D;AAED;;;;GAIG;AACH,eAAO,MAAM,2BAA2B,+BACR,MAAM,+BACL,MAAM,EAAE,KACtC,kCA0DF,CAAC"}
1
+ {"version":3,"file":"useValidNeighbourAttributes.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/filterBar/attributeFilter/dashboardDropdownBody/configuration/hooks/useValidNeighbourAttributes.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,MAAM,EAAmB,MAAM,qBAAqB,CAAC;AACnE,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAYzD,UAAU,kCAAkC;IACxC,wBAAwB,EAAE,MAAM,EAAE,CAAC;IACnC,+BAA+B,EAAE,OAAO,CAAC;IACzC,6BAA6B,EAAE,gBAAgB,GAAG,SAAS,CAAC;CAC/D;AAED;;;;GAIG;AACH,eAAO,MAAM,2BAA2B,+BACR,MAAM,+BACL,MAAM,EAAE,KACtC,kCAmEF,CAAC"}
@@ -5,6 +5,7 @@ import { queryConnectedAttributes, } from "../../../../../../model/queries/conne
5
5
  import { useDashboardSelector } from "../../../../../../model/react/DashboardStoreProvider.js";
6
6
  import { useDashboardQueryProcessing } from "../../../../../../model/react/useDashboardQueryProcessing.js";
7
7
  import { selectSupportsSettingConnectingAttributes } from "../../../../../../model/store/backendCapabilities/backendCapabilitiesSelectors.js";
8
+ import { selectEnableComputedAttributes } from "../../../../../../model/store/config/configSelectors.js";
8
9
  import { selectAttributeFilterDisplayFormsMap } from "../../../../../../model/store/tabs/filterContext/filterContextSelectors.js";
9
10
  /**
10
11
  * Returns neighbor attribute filter display forms that have a valid connection in model with provided attribute display form.
@@ -13,6 +14,7 @@ import { selectAttributeFilterDisplayFormsMap } from "../../../../../../model/st
13
14
  */
14
15
  export const useValidNeighbourAttributes = (attributeFilterDisplayForm, neighbourFilterDisplayForms) => {
15
16
  const supportsSettingConnectingAttributes = useDashboardSelector(selectSupportsSettingConnectingAttributes);
17
+ const includeComputedAttributes = useDashboardSelector(selectEnableComputedAttributes);
16
18
  const shouldValidateNeighbourAttributes = !supportsSettingConnectingAttributes;
17
19
  const neighbourFilterDisplayFormsMap = useDashboardSelector(selectAttributeFilterDisplayFormsMap);
18
20
  const { run: getValidAttributes, result: validAttributes, status: validAttributesStatus, error: validAttributesError, } = useDashboardQueryProcessing({
@@ -20,9 +22,17 @@ export const useValidNeighbourAttributes = (attributeFilterDisplayForm, neighbou
20
22
  });
21
23
  useEffect(() => {
22
24
  if (shouldValidateNeighbourAttributes) {
23
- getValidAttributes(attributeFilterDisplayForm);
25
+ // computed attributes count among the valid neighbours; asking for them is gated by
26
+ // the enableComputedAttributes setting because a backend with the setting off refuses
27
+ // the computed-attributes flavour of the request outright
28
+ getValidAttributes(attributeFilterDisplayForm, { includeComputedAttributes });
24
29
  }
25
- }, [attributeFilterDisplayForm, getValidAttributes, shouldValidateNeighbourAttributes]);
30
+ }, [
31
+ attributeFilterDisplayForm,
32
+ getValidAttributes,
33
+ shouldValidateNeighbourAttributes,
34
+ includeComputedAttributes,
35
+ ]);
26
36
  const validAttributesLoading = useMemo(() => {
27
37
  return validAttributesStatus === "pending" || validAttributesStatus === "running";
28
38
  }, [validAttributesStatus]);
@@ -1 +1 @@
1
- {"version":3,"file":"limitingItemsHook.d.ts","sourceRoot":"","sources":["../../../../../../../../src/presentation/filterBar/attributeFilter/dashboardDropdownBody/configuration/limitValues/shared/limitingItemsHook.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;AAG5C,OAAO,EAGH,KAAK,mBAAmB,EACxB,KAAK,oBAAoB,EAGzB,KAAK,MAAM,EAId,MAAM,qBAAqB,CAAC;AAG7B,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,uDAAuD,CAAC;AAW9F,OAAO,EAAE,KAAK,mCAAmC,EAAE,MAAM,0DAA0D,CAAC;AACpH,OAAO,EAAE,KAAK,6BAA6B,EAAE,MAAM,qDAAqD,CAAC;AACzG,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE/D,MAAM,WAAW,4BAA4B;IACzC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,kBAAkB,CAAC;IACzB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,2BAA2B,CAAC,EAAE,OAAO,CAAC;CACzC;AAkED,eAAO,MAAM,kBAAkB,MACxB,4BAA4B,KAC5B,4BAA4B,KAChC,MAMF,CAAC;AAsBF,eAAO,MAAM,gBAAgB,kBACV,mCAAmC,EAAE,sBAChC,MAAM,EAAE,sBACR,MAAM,EAAE,mBACX,gBAAgB,wBACX,6BAA6B,EAAE,qBAClC,mBAAmB,EAAE,6CACG,OAAO,cACtC,OAAO,QACb,SAAS,KAChB,4BAA4B,EAoD9B,CAAC;AAEF,eAAO,MAAM,0BAA0B,2BACX,MAAM,EAAE,KACjC,4BAA4B,EAsB9B,CAAC;AAEF,eAAO,MAAM,cAAc,kBACR,mCAAmC,EAAE,sBAChC,MAAM,EAAE,wBACN,6BAA6B,EAAE,qBAClC,mBAAmB,EAAE,6BACb,oBAAoB,6CACJ,OAAO,cACtC,OAAO,QACb,SAAS,KAChB,4BAA4B,EAuD9B,CAAC;AAgEF,eAAO,MAAM,kBAAkB,sBACR,mBAAmB,EAAE,6BACb,oBAAoB,yBACxB,6BAA6B,EAAE,KACvD,4BAA4B,EAyB9B,CAAC;AAoBF,eAAO,MAAM,2BAA2B,YAC3B,MAAM,GAAG,SAAS,wBACL,6BAA6B,EAAE,KACtD,MAYF,CAAC"}
1
+ {"version":3,"file":"limitingItemsHook.d.ts","sourceRoot":"","sources":["../../../../../../../../src/presentation/filterBar/attributeFilter/dashboardDropdownBody/configuration/limitValues/shared/limitingItemsHook.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAA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AAoBF,eAAO,MAAM,2BAA2B,YAC3B,MAAM,GAAG,SAAS,wBACL,6BAA6B,EAAE,KACtD,MAYF,CAAC"}
@@ -3,7 +3,7 @@ import { useMemo } from "react";
3
3
  import { invariant } from "ts-invariant";
4
4
  import { areObjRefsEqual, isIdentifierRef, isUriRef, } from "@gooddata/sdk-model";
5
5
  import { useDashboardSelector } from "../../../../../../../model/react/DashboardStoreProvider.js";
6
- import { selectAllCatalogDateDatasetsMap, selectAllCatalogDisplayFormsMap, selectCatalogAttributes, selectCatalogFacts, selectCatalogMeasures, } from "../../../../../../../model/store/catalog/catalogSelectors.js";
6
+ import { selectAllCatalogDateDatasetsMap, selectAllCatalogDisplayFormsMap, selectCatalogAttributesWithComputed, selectCatalogFacts, selectCatalogMeasures, } from "../../../../../../../model/store/catalog/catalogSelectors.js";
7
7
  import { selectDateFilterConfigOverrides } from "../../../../../../../model/store/tabs/dateFilterConfig/dateFilterConfigSelectors.js";
8
8
  import { selectDateFilterConfigsOverrides } from "../../../../../../../model/store/tabs/dateFilterConfigs/dateFilterConfigsSelectors.js";
9
9
  const findAttributeByLabel = (labelRef, labels, attributes) => {
@@ -21,7 +21,7 @@ const findTitleForCatalogItem = (item, { metrics, facts }, attributes) => {
21
21
  if (item.type === "fact") {
22
22
  return facts.find((fact) => areObjRefsEqual(fact.fact.ref, item))?.fact.title;
23
23
  }
24
- if (item.type === "attribute") {
24
+ if (item.type === "attribute" || item.type === "computedAttribute") {
25
25
  return attributes.find((attribute) => areObjRefsEqual(attribute.attribute.ref, item))?.attribute
26
26
  .title;
27
27
  }
@@ -45,6 +45,7 @@ const getTypeOrder = (item) => {
45
45
  case "measure":
46
46
  return 1;
47
47
  case "attribute":
48
+ case "computedAttribute":
48
49
  return 2;
49
50
  case "fact":
50
51
  return 3;
@@ -70,7 +71,7 @@ const mapParentFilters = (parentFilters, validParentFilters, labels, attributes,
70
71
  };
71
72
  });
72
73
  export const useLimitingItems = (parentFilters, validParentFilters, validateElementsBy, metricsAndFacts, dependentDateFilters, availableDatasets, isEnabledKDAttributeFilterDatesValidation, isSelected, intl) => {
73
- const attributes = useDashboardSelector(selectCatalogAttributes);
74
+ const attributes = useDashboardSelector(selectCatalogAttributesWithComputed);
74
75
  const labels = useDashboardSelector(selectAllCatalogDisplayFormsMap);
75
76
  const dateDataSetsMap = useDashboardSelector(selectAllCatalogDateDatasetsMap);
76
77
  const filterConfig = useDashboardSelector(selectDateFilterConfigOverrides);
@@ -104,7 +105,7 @@ export const useLimitingItems = (parentFilters, validParentFilters, validateElem
104
105
  ]);
105
106
  };
106
107
  export const useSearchableLimitingItems = (currentlySelectedItems) => {
107
- const attributes = useDashboardSelector(selectCatalogAttributes);
108
+ const attributes = useDashboardSelector(selectCatalogAttributesWithComputed);
108
109
  const measures = useDashboardSelector(selectCatalogMeasures);
109
110
  const facts = useDashboardSelector(selectCatalogFacts);
110
111
  return useMemo(() => {
@@ -127,7 +128,7 @@ export const useSearchableLimitingItems = (currentlySelectedItems) => {
127
128
  };
128
129
  export const useFilterItems = (parentFilters, validParentFilters, dependentDateFilters, availableDatasets, dependentCommonDateFilter, isEnabledKDAttributeFilterDatesValidation, isSelected, intl) => {
129
130
  const labels = useDashboardSelector(selectAllCatalogDisplayFormsMap);
130
- const attributes = useDashboardSelector(selectCatalogAttributes);
131
+ const attributes = useDashboardSelector(selectCatalogAttributesWithComputed);
131
132
  const dateDataSetsMap = useDashboardSelector(selectAllCatalogDateDatasetsMap);
132
133
  const filterConfig = useDashboardSelector(selectDateFilterConfigOverrides);
133
134
  const filterConfigByDimension = useDashboardSelector(selectDateFilterConfigsOverrides);
@@ -6,7 +6,7 @@ import { areObjRefsEqual } from "@gooddata/sdk-model";
6
6
  import { Bubble, BubbleHoverTrigger } from "@gooddata/sdk-ui-kit";
7
7
  import { simplifyText } from "@gooddata/util";
8
8
  import { useDashboardSelector } from "../../../../../../model/react/DashboardStoreProvider.js";
9
- import { selectCatalogAttributes } from "../../../../../../model/store/catalog/catalogSelectors.js";
9
+ import { selectCatalogAttributesWithComputed } from "../../../../../../model/store/catalog/catalogSelectors.js";
10
10
  import { selectAttributeFilterDisplayFormByLocalId } from "../../../../../../model/store/tabs/filterContext/filterContextSelectors.js";
11
11
  const ALIGN_POINTS = [{ align: "bc tl" }, { align: "tc bl" }];
12
12
  const ARROW_OFFSET = {
@@ -15,7 +15,7 @@ const ARROW_OFFSET = {
15
15
  };
16
16
  export function ParentFiltersDisabledItem({ itemLocalId, itemTitle, hasConnectingAttributes, }) {
17
17
  const itemDisplayForm = useDashboardSelector(selectAttributeFilterDisplayFormByLocalId(itemLocalId || ""));
18
- const attributes = useDashboardSelector(selectCatalogAttributes);
18
+ const attributes = useDashboardSelector(selectCatalogAttributesWithComputed);
19
19
  const itemAttribute = attributes.find((attr) => attr.displayForms.some((df) => areObjRefsEqual(df.ref, itemDisplayForm)));
20
20
  const currentFilterTitle = itemAttribute?.attribute.title;
21
21
  invariant(itemTitle, "The parent filter title could not be fetched.");
@@ -4,7 +4,7 @@ import { DashboardAttributeFilterConfigModeValues, DashboardDateFilterConfigMode
4
4
  import { convertDashboardAttributeFilterElementsUrisToValues } from "../../../_staging/dashboard/legacyFilterConvertors.js";
5
5
  import { useDashboardSelector } from "../../../model/react/DashboardStoreProvider.js";
6
6
  import { selectSupportsElementUris } from "../../../model/store/backendCapabilities/backendCapabilitiesSelectors.js";
7
- import { selectCatalogAttributes, selectCatalogDateDatasets, selectCatalogMeasures, } from "../../../model/store/catalog/catalogSelectors.js";
7
+ import { selectCatalogAttributesWithComputed, selectCatalogDateDatasets, selectCatalogMeasures, } from "../../../model/store/catalog/catalogSelectors.js";
8
8
  import { selectEnableDashboardFilterGroups, selectIsApplyFiltersAllAtOnceEnabledAndSet, } from "../../../model/store/config/configSelectors.js";
9
9
  import { selectCrossFilteringFiltersLocalIdentifiers } from "../../../model/store/drill/drillSelectors.js";
10
10
  import { selectAttributeFilterConfigsDisplayAsLabelMap, selectEffectiveAttributeFiltersModeMap, } from "../../../model/store/tabs/attributeFilterConfigs/attributeFilterConfigsSelectors.js";
@@ -30,7 +30,7 @@ export function DefaultFilterBarItem(props) {
30
30
  const measureValueFiltersModeMap = useDashboardSelector(selectEffectiveMeasureValueFiltersModeMap);
31
31
  const dateFiltersModeMap = useDashboardSelector(selectEffectiveDateFiltersModeMap);
32
32
  const allDateDatasets = useDashboardSelector(selectCatalogDateDatasets);
33
- const attributes = useDashboardSelector(selectCatalogAttributes);
33
+ const attributes = useDashboardSelector(selectCatalogAttributesWithComputed);
34
34
  const measures = useDashboardSelector(selectCatalogMeasures);
35
35
  const { AttributeFilterComponentSet, DashboardDateFilterComponentProvider, DashboardMeasureValueFilterComponentProvider, DashboardFilterGroupComponentProvider, } = useDashboardComponentsContext();
36
36
  const supportElementUris = useDashboardSelector(selectSupportsElementUris);
@@ -5,7 +5,7 @@ import { areObjRefsEqual, dashboardAttributeFilterItemDisplayForm, dashboardFilt
5
5
  import { addAttributeFilter as addAttributeFilterAction, addDateFilter as addDateFilterAction, addMeasureValueFilter as addMeasureValueFilterAction, } from "../../../model/commands/filters.js";
6
6
  import { useDashboardDispatch, useDashboardSelector } from "../../../model/react/DashboardStoreProvider.js";
7
7
  import { dispatchAndWaitFor } from "../../../model/store/_infra/dispatchAndWaitFor.js";
8
- import { selectAllCatalogDateDatasetsMap, selectCatalogAttributes, } from "../../../model/store/catalog/catalogSelectors.js";
8
+ import { selectAllCatalogDateDatasetsMap, selectCatalogAttributesWithComputed, } from "../../../model/store/catalog/catalogSelectors.js";
9
9
  import { getFilterIdentifier } from "../../../model/store/tabs/filterContext/filterContextUtils.js";
10
10
  import { uiActions } from "../../../model/store/ui/index.js";
11
11
  import { selectSelectedFilterIndex } from "../../../model/store/ui/uiSelectors.js";
@@ -56,7 +56,7 @@ function isNotDashboardCommonDateFilter(obj) {
56
56
  export function useFiltersWithAddedPlaceholder(filters, workingFilters) {
57
57
  const dispatch = useDashboardDispatch();
58
58
  const selectedFilterIndex = useDashboardSelector(selectSelectedFilterIndex);
59
- const allAttributes = useDashboardSelector(selectCatalogAttributes);
59
+ const allAttributes = useDashboardSelector(selectCatalogAttributesWithComputed);
60
60
  const dateDatasetsMap = useDashboardSelector(selectAllCatalogDateDatasetsMap);
61
61
  const commonWorkingDateFilter = workingFilters?.find(isDashboardCommonDateFilter);
62
62
  const [draggableFilters, nonDraggableFilters] = partition(filters, isNotDashboardCommonDateFilter);
@@ -1 +1 @@
1
- {"version":3,"file":"useDashboardMeasureValueFilterData.d.ts","sourceRoot":"","sources":["../../../../src/presentation/filterBar/measureValueFilter/useDashboardMeasureValueFilterData.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,SAAS,EAAW,MAAM,YAAY,CAAC;AAErD,OAAO,EAKH,KAAK,eAAe,EACpB,KAAK,4BAA4B,EACjC,KAAK,mBAAmB,EACxB,KAAK,WAAW,EAChB,KAAK,2BAA2B,EAChC,KAAK,MAAM,EAMd,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,KAAK,mBAAmB,EAAuC,MAAM,0BAA0B,CAAC;AAmCzG;;;;;;;GAOG;AACH,wBAAgB,qCAAqC,CACjD,OAAO,EAAE,mBAAmB,GAAG,IAAI,GACpC,2BAA2B,EAAE,GAAG,SAAS,CAS3C;AA+ID;;;;;;;GAOG;AACH,MAAM,WAAW,gCAAgC;IAC7C,OAAO,EAAE,MAAM,CAAC;IAChB,eAAe,EAAE,MAAM,CAAC;IACxB,4CAA4C;IAC5C,WAAW,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC,6EAA6E;IAC7E,aAAa,EAAE,eAAe,GAAG,SAAS,CAAC;IAC3C,oGAAoG;IACpG,eAAe,EAAE,OAAO,CAAC;IACzB,kDAAkD;IAClD,kBAAkB,EAAE,MAAM,CAAC;IAC3B,6EAA6E;IAC7E,WAAW,EAAE,MAAM,CAAC;IACpB,6CAA6C;IAC7C,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,iDAAiD;IACjD,aAAa,EAAE,OA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CAAC;CACzB;AAED;;;;;GAKG;AACH,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,gCAAgC,GAAG,wBAAwB,CAmB3G"}
1
+ {"version":3,"file":"useDashboardMeasureValueFilterData.d.ts","sourceRoot":"","sources":["../../../../src/presentation/filterBar/measureValueFilter/useDashboardMeasureValueFilterData.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,SAAS,EAAW,MAAM,YAAY,CAAC;AAErD,OAAO,EAMH,KAAK,eAAe,EACpB,KAAK,4BAA4B,EACjC,KAAK,mBAAmB,EACxB,KAAK,WAAW,EAChB,KAAK,2BAA2B,EAChC,KAAK,MAAM,EAMd,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,KAAK,mBAAmB,EAAuC,MAAM,0BAA0B,CAAC;AAwCzG;;;;;;;GAOG;AACH,wBAAgB,qCAAqC,CACjD,OAAO,EAAE,mBAAmB,GAAG,IAAI,GACpC,2BAA2B,EAAE,GAAG,SAAS,CAS3C;AAyLD;;;;;;;GAOG;AACH,MAAM,WAAW,gCAAgC;IAC7C,OAAO,EAAE,MAAM,CAAC;IAChB,eAAe,EAAE,MAAM,CAAC;IACxB,4CAA4C;IAC5C,WAAW,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC,6EAA6E;IAC7E,aAAa,EAAE,eAAe,GAAG,SAAS,CAAC;IAC3C,oGAAoG;IACpG,eAAe,EAAE,OAAO,CAAC;IACzB,kDAAkD;IAClD,kBAAkB,EAAE,MAAM,CAAC;IAC3B,6EAA6E;IAC7E,WAAW,EAAE,MAAM,CAAC;IACpB,6CAA6C;IAC7C,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,iDAAiD;IACjD,aAAa,EAAE,OAAO,CAAC;IACvB,2EAA2E;IAC3E,UAAU,EAAE,2BAA2B,EAAE,GAAG,SAAS,CAAC;IACtD,qEAAqE;IACrE,cAAc,EAAE,MAAM,EAAE,GAAG,SAAS,CAAC;IACrC,gFAAgF;IAChF,mB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ef, newAttribute, newMeasure, objRefToString, } from "@gooddata/sdk-model";
5
5
  import { useBackendStrict, useWorkspaceStrict } from "@gooddata/sdk-ui";
6
6
  import { getMeasureValueFilterConditionLabel } from "@gooddata/sdk-ui-filters";
7
+ import { isComputedAttributesUnavailableError, mergeAttributesWithComputed, } from "../../../_staging/catalog/computedAttributes.js";
7
8
  import { useDashboardSelector } from "../../../model/react/DashboardStoreProvider.js";
8
- import { selectCatalogAttributes, selectCatalogDateDatasets, selectCatalogIsLoaded, selectCatalogMeasures, } from "../../../model/store/catalog/catalogSelectors.js";
9
- import { selectLocale, selectObjectAvailabilityConfig, selectSeparators, } from "../../../model/store/config/configSelectors.js";
9
+ import { selectCatalogAttributesWithComputed, selectCatalogDateDatasets, selectCatalogIsLoaded, selectCatalogMeasures, } from "../../../model/store/catalog/catalogSelectors.js";
10
+ import { selectEnableComputedAttributes, selectLocale, selectObjectAvailabilityConfig, selectSeparators, } from "../../../model/store/config/configSelectors.js";
10
11
  const PERCENT_FORMAT_REGEX = /%/;
11
12
  const SupportedCatalogGranularity = [
12
13
  "GDC.time.day_in_week",
@@ -86,19 +87,53 @@ function buildMeasureValueFilterAvailabilityItems(measure, dimensionality) {
86
87
  const dimensionalityAttributes = dimensionality.map((ref) => newAttribute(ref));
87
88
  return [newMeasure(measure), ...dimensionalityAttributes];
88
89
  }
89
- async function loadValidDimensionalityAttributes(backend, workspace, items, includeObjectsWithTags, excludeObjectsWithTags) {
90
- const catalog = await backend
91
- .workspace(workspace)
92
- .catalog()
93
- .withOptions({
94
- types: ["attribute"],
90
+ async function loadValidDimensionalityAttributes(backend, workspace, items, includeObjectsWithTags, excludeObjectsWithTags, locale, includeComputedAttributes) {
91
+ const tagOptions = {
95
92
  includeTags: (includeObjectsWithTags ?? []).map((tag) => idRef(tag)),
96
93
  excludeTags: (excludeObjectsWithTags ?? []).map((tag) => idRef(tag)),
97
- loadGroups: false,
98
- })
99
- .load();
100
- const availableCatalog = await catalog.availableItems().withOptions({ items }).load();
101
- return availableCatalog.availableAttributes();
94
+ };
95
+ const loadAvailableAttributes = async () => {
96
+ const catalog = await backend
97
+ .workspace(workspace)
98
+ .catalog()
99
+ .withOptions({ ...tagOptions, types: ["attribute"], loadGroups: false })
100
+ .load();
101
+ const availableCatalog = await catalog.availableItems().withOptions({ items }).load();
102
+ return availableCatalog.availableAttributes();
103
+ };
104
+ // Computed attributes count among the valid dimensionality. Their load is separate so it can
105
+ // never throw away the plain attributes loaded above, and it is skipped when the
106
+ // enableComputedAttributes setting is off - the backend then refuses the listing outright
107
+ // (400) and asking would only produce console noise. With the setting on, only an
108
+ // "unavailable" refusal degrades to none; a genuine failure is rethrown.
109
+ const loadAvailableComputedAttributes = async () => {
110
+ if (!includeComputedAttributes) {
111
+ return [];
112
+ }
113
+ try {
114
+ const catalog = await backend
115
+ .workspace(workspace)
116
+ .catalog()
117
+ .withOptions({ ...tagOptions, types: ["computedAttribute"], loadGroups: false })
118
+ .load();
119
+ const availableCatalog = await catalog.availableItems().withOptions({ items }).load();
120
+ return availableCatalog.availableComputedAttributes();
121
+ }
122
+ catch (error) {
123
+ // degrade only when computed attributes are not available (setting off refuses the
124
+ // listing outright); a genuine failure is rethrown so it is not silenced - and the
125
+ // plain attributes load above never swallows errors either
126
+ if (isComputedAttributesUnavailableError(error)) {
127
+ return [];
128
+ }
129
+ throw error;
130
+ }
131
+ };
132
+ const [availableAttributes, availableComputedAttributes] = await Promise.all([
133
+ loadAvailableAttributes(),
134
+ loadAvailableComputedAttributes(),
135
+ ]);
136
+ return mergeAttributesWithComputed(availableAttributes, availableComputedAttributes, locale);
102
137
  }
103
138
  async function loadAvailableDateDatasets(backend, workspace, items, includeObjectsWithTags, excludeObjectsWithTags) {
104
139
  const catalog = await backend
@@ -115,10 +150,10 @@ async function loadAvailableDateDatasets(backend, workspace, items, includeObjec
115
150
  const availableCatalog = await catalog.availableItems().withOptions({ items }).load();
116
151
  return availableCatalog.availableDateDatasets();
117
152
  }
118
- async function loadCatalogDimensionalityItems(backend, workspace, measure, dimensionality, allCatalogDimensionality, includeObjectsWithTags, excludeObjectsWithTags) {
153
+ async function loadCatalogDimensionalityItems(backend, workspace, measure, dimensionality, allCatalogDimensionality, includeObjectsWithTags, excludeObjectsWithTags, locale, includeComputedAttributes) {
119
154
  const availabilityItems = buildMeasureValueFilterAvailabilityItems(measure, dimensionality);
120
155
  const [attributes, dateDatasets] = await Promise.all([
121
- loadValidDimensionalityAttributes(backend, workspace, availabilityItems, includeObjectsWithTags, excludeObjectsWithTags),
156
+ loadValidDimensionalityAttributes(backend, workspace, availabilityItems, includeObjectsWithTags, excludeObjectsWithTags, locale, includeComputedAttributes),
122
157
  loadAvailableDateDatasets(backend, workspace, availabilityItems, includeObjectsWithTags, excludeObjectsWithTags),
123
158
  ]);
124
159
  const availableItems = [
@@ -140,12 +175,13 @@ export function useDashboardMeasureValueFilterData(filter, filterToDisplay) {
140
175
  const backend = useBackendStrict();
141
176
  const workspace = useWorkspaceStrict();
142
177
  const measures = useDashboardSelector(selectCatalogMeasures);
143
- const attributes = useDashboardSelector(selectCatalogAttributes);
178
+ const attributes = useDashboardSelector(selectCatalogAttributesWithComputed);
144
179
  const dateDatasets = useDashboardSelector(selectCatalogDateDatasets);
145
180
  const isCatalogLoaded = useDashboardSelector(selectCatalogIsLoaded);
146
181
  const objectAvailability = useDashboardSelector(selectObjectAvailabilityConfig);
147
182
  const separators = useDashboardSelector(selectSeparators);
148
183
  const locale = useDashboardSelector(selectLocale);
184
+ const includeComputedAttributes = useDashboardSelector(selectEnableComputedAttributes);
149
185
  const intl = useIntl();
150
186
  const { measure, localIdentifier, title: customTitle, dimensionality, } = filter.dashboardMeasureValueFilter;
151
187
  const effective = filterToDisplay ?? filter;
@@ -161,13 +197,15 @@ export function useDashboardMeasureValueFilterData(filter, filterToDisplay) {
161
197
  ...dateDatasets.flatMap(catalogDateDatasetToDimensionalityItems),
162
198
  ], [attributes, dateDatasets]);
163
199
  const dimensionalityItems = useMemo(() => (dimensionality ?? []).map((ref) => getDimensionalityItem(ref, allCatalogDimensionality)), [dimensionality, allCatalogDimensionality]);
164
- const loadCatalogDimensionality = useCallback((currentDimensionality) => loadCatalogDimensionalityItems(backend, workspace, measure, currentDimensionality, allCatalogDimensionality, objectAvailability?.includeObjectsWithTags, objectAvailability?.excludeObjectsWithTags), [
200
+ const loadCatalogDimensionality = useCallback((currentDimensionality) => loadCatalogDimensionalityItems(backend, workspace, measure, currentDimensionality, allCatalogDimensionality, objectAvailability?.includeObjectsWithTags, objectAvailability?.excludeObjectsWithTags, locale, includeComputedAttributes), [
165
201
  allCatalogDimensionality,
166
202
  backend,
167
203
  measure,
168
204
  objectAvailability?.excludeObjectsWithTags,
169
205
  objectAvailability?.includeObjectsWithTags,
170
206
  workspace,
207
+ locale,
208
+ includeComputedAttributes,
171
209
  ]);
172
210
  const conditionLabel = useMemo(() => getMeasureValueFilterConditionLabel(intl, conditions, { usePercentage, separators }), [intl, conditions, usePercentage, separators]);
173
211
  const dropdownFilter = useMemo(() => ({
@@ -1 +1 @@
1
- {"version":3,"file":"DashboardLayoutWidget.d.ts","sourceRoot":"","sources":["../../../src/presentation/flexibleLayout/DashboardLayoutWidget.tsx"],"names":[],"mappings":"AA0CA,OAAO,EACH,KAAK,uBAAuB,EAG/B,MAAM,kCAAkC,CAAC;AAW1C,OAAO,EAAE,KAAK,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAGvE,OAAO,EAAE,KAAK,iCAAiC,EAAE,MAAM,gDAAgD,CAAC;AAyDxG;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,EAClC,IAAI,EACJ,qBAAqB,EACrB,OAAO,EACP,eAAe,EACf,OAAO,EACP,mBAAmB,EACnB,QAAQ,GACX,EAAE,iCAAiC,CAAC,uBAAuB,CAAC,GACzD,IAAI,CAAC,qBAAqB,EAAE,SAAS,GAAG,SAAS,GAAG,iBAAiB,GAAG,UAAU,CAAC,2CA4JtF"}
1
+ {"version":3,"file":"DashboardLayoutWidget.d.ts","sourceRoot":"","sources":["../../../src/presentation/flexibleLayout/DashboardLayoutWidget.tsx"],"names":[],"mappings":"AA2CA,OAAO,EACH,KAAK,uBAAuB,EAG/B,MAAM,kCAAkC,CAAC;AAW1C,OAAO,EAAE,KAAK,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAGvE,OAAO,EAAE,KAAK,iCAAiC,EAAE,MAAM,gDAAgD,CAAC;AAyDxG;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,EAClC,IAAI,EACJ,qBAAqB,EACrB,OAAO,EACP,eAAe,EACf,OAAO,EACP,mBAAmB,EACnB,QAAQ,GACX,EAAE,iCAAiC,CAAC,uBAAuB,CAAC,GACzD,IAAI,CAAC,qBAAqB,EAAE,SAAS,GAAG,SAAS,GAAG,iBAAiB,GAAG,UAAU,CAAC,2CAgKtF"}