@gooddata/sdk-ui-dashboard 11.70.0-alpha.4 → 11.70.0-alpha.5

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 (313) hide show
  1. package/NOTICE +49 -49
  2. package/esm/__version.d.ts +1 -1
  3. package/esm/__version.js +1 -1
  4. package/esm/_staging/automation/index.d.ts +1 -0
  5. package/esm/_staging/automation/index.d.ts.map +1 -1
  6. package/esm/_staging/automation/index.js +16 -5
  7. package/esm/_staging/dashboard/absoluteGranularityDateFilters.d.ts +9 -3
  8. package/esm/_staging/dashboard/absoluteGranularityDateFilters.d.ts.map +1 -1
  9. package/esm/_staging/dashboard/absoluteGranularityDateFilters.js +22 -13
  10. package/esm/_staging/dashboard/dashboardFilterContext.d.ts.map +1 -1
  11. package/esm/_staging/dashboard/dashboardFilterContext.js +11 -1
  12. package/esm/_staging/dashboard/dashboardFilterContextValidation.d.ts.map +1 -1
  13. package/esm/_staging/dashboard/dashboardFilterContextValidation.js +9 -9
  14. package/esm/_staging/dashboard/dashboardFilterConverter.d.ts +3 -3
  15. package/esm/_staging/dashboard/dashboardFilterConverter.d.ts.map +1 -1
  16. package/esm/_staging/dashboard/dashboardFilterConverter.js +14 -2
  17. package/esm/_staging/dashboard/parameterizedDateFilters.d.ts +9 -0
  18. package/esm/_staging/dashboard/parameterizedDateFilters.d.ts.map +1 -1
  19. package/esm/_staging/dashboard/parameterizedDateFilters.js +27 -0
  20. package/esm/_staging/exportUtils/filterUtils.d.ts.map +1 -1
  21. package/esm/_staging/exportUtils/filterUtils.js +5 -3
  22. package/esm/_staging/sharedHooks/useFiltersNamings.d.ts.map +1 -1
  23. package/esm/_staging/sharedHooks/useFiltersNamings.js +9 -7
  24. package/esm/index.d.ts +8 -8
  25. package/esm/index.d.ts.map +1 -1
  26. package/esm/index.js +5 -5
  27. package/esm/kdaDialog/dialog/KdaDialog.d.ts.map +1 -1
  28. package/esm/kdaDialog/dialog/KdaDialog.js +15 -11
  29. package/esm/kdaDialog/dialog/KdaDialogFloatingStatusBar.d.ts +17 -0
  30. package/esm/kdaDialog/dialog/KdaDialogFloatingStatusBar.d.ts.map +1 -1
  31. package/esm/kdaDialog/dialog/KdaDialogFloatingStatusBar.js +44 -2
  32. package/esm/model/DashboardTester.d.ts.map +1 -1
  33. package/esm/model/DashboardTester.js +0 -2
  34. package/esm/model/commandHandlers/common/validateDrillToCustomUrlParams.d.ts +2 -0
  35. package/esm/model/commandHandlers/common/validateDrillToCustomUrlParams.d.ts.map +1 -1
  36. package/esm/model/commandHandlers/common/validateDrillToCustomUrlParams.js +6 -1
  37. package/esm/model/commandHandlers/dashboard/changeDashboardDefinitionHandler.d.ts.map +1 -1
  38. package/esm/model/commandHandlers/dashboard/changeDashboardDefinitionHandler.js +7 -3
  39. package/esm/model/commandHandlers/dashboard/changeDateFilterTitleHandler.d.ts.map +1 -1
  40. package/esm/model/commandHandlers/dashboard/changeDateFilterTitleHandler.js +9 -4
  41. package/esm/model/commandHandlers/dashboard/common/filterViews.d.ts.map +1 -1
  42. package/esm/model/commandHandlers/dashboard/common/filterViews.js +23 -11
  43. package/esm/model/commandHandlers/dashboard/common/overrideFiltersAcrossTabs.d.ts.map +1 -1
  44. package/esm/model/commandHandlers/dashboard/common/overrideFiltersAcrossTabs.js +7 -8
  45. package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/index.d.ts.map +1 -1
  46. package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/index.js +6 -3
  47. package/esm/model/commandHandlers/drill/common/sourceDrillFilters.js +2 -2
  48. package/esm/model/commandHandlers/drill/drillToDashboardHandler.d.ts.map +1 -1
  49. package/esm/model/commandHandlers/drill/drillToDashboardHandler.js +18 -6
  50. package/esm/model/commandHandlers/filterContext/attributeFilter/addAttributeFilterHandler.d.ts.map +1 -1
  51. package/esm/model/commandHandlers/filterContext/attributeFilter/addAttributeFilterHandler.js +3 -5
  52. package/esm/model/commandHandlers/filterContext/attributeFilter/addTextAttributeFilterHandler.d.ts.map +1 -1
  53. package/esm/model/commandHandlers/filterContext/attributeFilter/addTextAttributeFilterHandler.js +3 -5
  54. package/esm/model/commandHandlers/filterContext/attributeFilter/removeAttributeFiltersHandler.d.ts.map +1 -1
  55. package/esm/model/commandHandlers/filterContext/attributeFilter/removeAttributeFiltersHandler.js +3 -5
  56. package/esm/model/commandHandlers/filterContext/changeFilterContextSelectionHandler.d.ts.map +1 -1
  57. package/esm/model/commandHandlers/filterContext/changeFilterContextSelectionHandler.js +21 -42
  58. package/esm/model/commandHandlers/filterContext/common.d.ts +2 -2
  59. package/esm/model/commandHandlers/filterContext/common.d.ts.map +1 -1
  60. package/esm/model/commandHandlers/filterContext/common.js +16 -1
  61. package/esm/model/commandHandlers/filterContext/dateFilter/changeDateFilterSelectionHandler.d.ts +2 -1
  62. package/esm/model/commandHandlers/filterContext/dateFilter/changeDateFilterSelectionHandler.d.ts.map +1 -1
  63. package/esm/model/commandHandlers/filterContext/dateFilter/changeDateFilterSelectionHandler.js +56 -34
  64. package/esm/model/commandHandlers/filterContext/filterViewHandler.d.ts.map +1 -1
  65. package/esm/model/commandHandlers/filterContext/filterViewHandler.js +8 -3
  66. package/esm/model/commandHandlers/filterContext/tabSync/tabSyncRules.d.ts +8 -0
  67. package/esm/model/commandHandlers/filterContext/tabSync/tabSyncRules.d.ts.map +1 -1
  68. package/esm/model/commandHandlers/filterContext/tabSync/tabSyncRules.js +42 -9
  69. package/esm/model/commandHandlers/filterContext/tabSync/writtenTargets.d.ts.map +1 -1
  70. package/esm/model/commandHandlers/filterContext/tabSync/writtenTargets.js +2 -1
  71. package/esm/model/commandHandlers/index.d.ts.map +1 -1
  72. package/esm/model/commandHandlers/index.js +6 -1
  73. package/esm/model/commandHandlers/layout/undoLayoutChangesHandler.d.ts.map +1 -1
  74. package/esm/model/commandHandlers/layout/undoLayoutChangesHandler.js +3 -1
  75. package/esm/model/commandHandlers/parameters/addParametersHandler.d.ts +6 -0
  76. package/esm/model/commandHandlers/parameters/addParametersHandler.d.ts.map +1 -0
  77. package/esm/model/commandHandlers/parameters/addParametersHandler.js +43 -0
  78. package/esm/model/commandHandlers/parameters/removeParametersHandler.d.ts +6 -0
  79. package/esm/model/commandHandlers/parameters/removeParametersHandler.d.ts.map +1 -0
  80. package/esm/model/commandHandlers/parameters/removeParametersHandler.js +29 -0
  81. package/esm/model/commandHandlers/scheduledEmail/initializeAutomationsHandler.d.ts.map +1 -1
  82. package/esm/model/commandHandlers/scheduledEmail/initializeAutomationsHandler.js +10 -4
  83. package/esm/model/commandHandlers/widgets/addVisualizationToSwitcherWidgetHandler.d.ts.map +1 -1
  84. package/esm/model/commandHandlers/widgets/addVisualizationToSwitcherWidgetHandler.js +3 -1
  85. package/esm/model/commandHandlers/widgets/changeInsightWidgetInsightHandler.d.ts.map +1 -1
  86. package/esm/model/commandHandlers/widgets/changeInsightWidgetInsightHandler.js +2 -0
  87. package/esm/model/commandHandlers/widgets/refreshInsightWidgetHandler.d.ts.map +1 -1
  88. package/esm/model/commandHandlers/widgets/refreshInsightWidgetHandler.js +2 -0
  89. package/esm/model/commands/base.d.ts +1 -1
  90. package/esm/model/commands/base.d.ts.map +1 -1
  91. package/esm/model/commands/filters.d.ts +88 -4
  92. package/esm/model/commands/filters.d.ts.map +1 -1
  93. package/esm/model/commands/filters.js +33 -21
  94. package/esm/model/commands/index.d.ts +3 -3
  95. package/esm/model/commands/index.d.ts.map +1 -1
  96. package/esm/model/commands/parameters.d.ts +78 -1
  97. package/esm/model/commands/parameters.d.ts.map +1 -1
  98. package/esm/model/commands/parameters.js +47 -0
  99. package/esm/model/events/base.d.ts +1 -1
  100. package/esm/model/events/base.d.ts.map +1 -1
  101. package/esm/model/events/filters.d.ts +70 -1
  102. package/esm/model/events/filters.d.ts.map +1 -1
  103. package/esm/model/events/filters.js +36 -0
  104. package/esm/model/events/index.d.ts +3 -3
  105. package/esm/model/events/index.d.ts.map +1 -1
  106. package/esm/model/events/parameters.d.ts +43 -1
  107. package/esm/model/events/parameters.d.ts.map +1 -1
  108. package/esm/model/events/parameters.js +26 -0
  109. package/esm/model/react/useDasboardScheduledEmails/useDashboardScheduledEmailsCommands.d.ts.map +1 -1
  110. package/esm/model/react/useDasboardScheduledEmails/useDashboardScheduledEmailsCommands.js +5 -0
  111. package/esm/model/react/useDashboardAlerting/useDashboardAlertsCommands.d.ts.map +1 -1
  112. package/esm/model/react/useDashboardAlerting/useDashboardAlertsCommands.js +5 -0
  113. package/esm/model/react/useInitializeDashboardStore.d.ts.map +1 -1
  114. package/esm/model/react/useInitializeDashboardStore.js +0 -2
  115. package/esm/model/react/useWidgetFilters.d.ts.map +1 -1
  116. package/esm/model/react/useWidgetFilters.js +5 -2
  117. package/esm/model/store/filtering/dashboardFilterSelectors.d.ts.map +1 -1
  118. package/esm/model/store/filtering/dashboardFilterSelectors.js +10 -2
  119. package/esm/model/store/meta/metaSelectors.js +3 -3
  120. package/esm/model/store/tabs/filterContext/filterContextReducers.d.ts +31 -2
  121. package/esm/model/store/tabs/filterContext/filterContextReducers.d.ts.map +1 -1
  122. package/esm/model/store/tabs/filterContext/filterContextReducers.js +66 -12
  123. package/esm/model/store/tabs/filterContext/filterContextSelectors.d.ts +29 -3
  124. package/esm/model/store/tabs/filterContext/filterContextSelectors.d.ts.map +1 -1
  125. package/esm/model/store/tabs/filterContext/filterContextSelectors.js +29 -3
  126. package/esm/model/store/tabs/filterContext/filterContextState.d.ts +2 -2
  127. package/esm/model/store/tabs/filterContext/filterContextState.d.ts.map +1 -1
  128. package/esm/model/store/tabs/filterContext/filterContextUtils.d.ts.map +1 -1
  129. package/esm/model/store/tabs/filterContext/filterContextUtils.js +80 -24
  130. package/esm/model/store/tabs/filterContext/filterSync.d.ts +7 -1
  131. package/esm/model/store/tabs/filterContext/filterSync.d.ts.map +1 -1
  132. package/esm/model/store/tabs/filterContext/filterSync.js +58 -21
  133. package/esm/model/store/tabs/layout/layoutSelectors.js +2 -2
  134. package/esm/model/utils/widgetFilters.js +2 -2
  135. package/esm/plugins/customizationApis/customizationBuilder.d.ts.map +1 -1
  136. package/esm/plugins/customizationApis/customizationBuilder.js +3 -1
  137. package/esm/plugins/customizationApis/dateFiltersCustomizer.d.ts +4 -3
  138. package/esm/plugins/customizationApis/dateFiltersCustomizer.d.ts.map +1 -1
  139. package/esm/plugins/customizationApis/dateFiltersCustomizer.js +23 -41
  140. package/esm/plugins/customizer.d.ts +16 -1
  141. package/esm/plugins/customizer.d.ts.map +1 -1
  142. package/esm/presentation/automations/connectors/AlertingConnector.d.ts.map +1 -1
  143. package/esm/presentation/automations/connectors/AlertingConnector.js +14 -1
  144. package/esm/presentation/automations/connectors/ScheduledEmailConnector.d.ts.map +1 -1
  145. package/esm/presentation/automations/connectors/ScheduledEmailConnector.js +14 -1
  146. package/esm/presentation/automations/connectors/hooks/useAbsoluteGranularityDateFilterBlocksAutomation.d.ts +8 -0
  147. package/esm/presentation/automations/connectors/hooks/useAbsoluteGranularityDateFilterBlocksAutomation.d.ts.map +1 -0
  148. package/esm/presentation/automations/connectors/hooks/useAbsoluteGranularityDateFilterBlocksAutomation.js +16 -0
  149. package/esm/presentation/automations/shared/components/AbsoluteGranularityDateFilterNotSupportedDialog.d.ts +13 -0
  150. package/esm/presentation/automations/shared/components/AbsoluteGranularityDateFilterNotSupportedDialog.d.ts.map +1 -0
  151. package/esm/presentation/automations/shared/components/AbsoluteGranularityDateFilterNotSupportedDialog.js +29 -0
  152. package/esm/presentation/automations/shared/exportUtils/filterUtils.d.ts.map +1 -1
  153. package/esm/presentation/automations/shared/exportUtils/filterUtils.js +4 -2
  154. package/esm/presentation/automations/shared/utils/automationUtils.d.ts.map +1 -1
  155. package/esm/presentation/automations/shared/utils/automationUtils.js +10 -4
  156. package/esm/presentation/componentDefinition/types.d.ts +3 -3
  157. package/esm/presentation/componentDefinition/types.d.ts.map +1 -1
  158. package/esm/presentation/dashboard/DashboardSidebar/DraggableInsightList/DeleteInsightDialog.d.ts.map +1 -1
  159. package/esm/presentation/dashboard/DashboardSidebar/DraggableInsightList/DeleteInsightDialog.js +56 -20
  160. package/esm/presentation/dashboard/components/DashboardRenderer.d.ts.map +1 -1
  161. package/esm/presentation/dashboard/components/DashboardRenderer.js +1 -1
  162. package/esm/presentation/dashboard/hooks/useDashboard.d.ts +2 -2
  163. package/esm/presentation/dashboard/hooks/useDashboard.d.ts.map +1 -1
  164. package/esm/presentation/dashboard/hooks/useDashboard.js +8 -3
  165. package/esm/presentation/dashboard/types.d.ts +12 -1
  166. package/esm/presentation/dashboard/types.d.ts.map +1 -1
  167. package/esm/presentation/dashboardContexts/DashboardComponentsContext.d.ts +2 -2
  168. package/esm/presentation/dashboardContexts/DashboardComponentsContext.d.ts.map +1 -1
  169. package/esm/presentation/dashboardContexts/DashboardComponentsContext.js +1 -1
  170. package/esm/presentation/dashboardContexts/types.d.ts +13 -2
  171. package/esm/presentation/dashboardContexts/types.d.ts.map +1 -1
  172. package/esm/presentation/dragAndDrop/draggableDateFilter/DraggableDateFilter.d.ts +4 -4
  173. package/esm/presentation/dragAndDrop/draggableDateFilter/DraggableDateFilter.d.ts.map +1 -1
  174. package/esm/presentation/dragAndDrop/useFilterDeleteDrop.d.ts.map +1 -1
  175. package/esm/presentation/dragAndDrop/useFilterDeleteDrop.js +6 -4
  176. package/esm/presentation/drill/DrillSelect/DrillSelectDropdown.d.ts.map +1 -1
  177. package/esm/presentation/drill/DrillSelect/DrillSelectDropdown.js +10 -2
  178. package/esm/presentation/drill/DrillSelect/WithDrillSelect.d.ts.map +1 -1
  179. package/esm/presentation/drill/DrillSelect/WithDrillSelect.js +15 -7
  180. package/esm/presentation/filterBar/attributeFilter/addAttributeFilter/AttributesDropdown.d.ts.map +1 -1
  181. package/esm/presentation/filterBar/attributeFilter/addAttributeFilter/AttributesDropdown.js +62 -6
  182. package/esm/presentation/filterBar/attributeFilter/useDependentDateFilters.d.ts.map +1 -1
  183. package/esm/presentation/filterBar/attributeFilter/useDependentDateFilters.js +3 -2
  184. package/esm/presentation/filterBar/dateFilter/DefaultDashboardDateFilter.d.ts +2 -2
  185. package/esm/presentation/filterBar/dateFilter/DefaultDashboardDateFilter.d.ts.map +1 -1
  186. package/esm/presentation/filterBar/dateFilter/DefaultDashboardDateFilter.js +30 -14
  187. package/esm/presentation/filterBar/dateFilter/DefaultDashboardDateFilterComponentSetFactory.d.ts +2 -2
  188. package/esm/presentation/filterBar/dateFilter/DefaultDashboardDateFilterComponentSetFactory.d.ts.map +1 -1
  189. package/esm/presentation/filterBar/dateFilter/dateFilterOfAnyTypeProvider.d.ts +7 -0
  190. package/esm/presentation/filterBar/dateFilter/dateFilterOfAnyTypeProvider.d.ts.map +1 -0
  191. package/esm/presentation/filterBar/dateFilter/dateFilterOfAnyTypeProvider.js +40 -0
  192. package/esm/presentation/filterBar/dateFilter/types.d.ts +43 -1
  193. package/esm/presentation/filterBar/dateFilter/types.d.ts.map +1 -1
  194. package/esm/presentation/filterBar/filterBar/DefaultFilterBar.d.ts.map +1 -1
  195. package/esm/presentation/filterBar/filterBar/DefaultFilterBar.js +13 -5
  196. package/esm/presentation/filterBar/filterBar/DefaultFilterBarContainer.d.ts.map +1 -1
  197. package/esm/presentation/filterBar/filterBar/DefaultFilterBarContainer.js +3 -1
  198. package/esm/presentation/filterBar/filterBar/DefaultFilterBarItem.js +2 -2
  199. package/esm/presentation/filterBar/filterBar/ShowAllFiltersButton.d.ts.map +1 -1
  200. package/esm/presentation/filterBar/filterBar/ShowAllFiltersButton.js +1 -1
  201. package/esm/presentation/filterBar/filterBar/hooks/useResetFiltersButton.d.ts.map +1 -1
  202. package/esm/presentation/filterBar/filterBar/hooks/useResetFiltersButton.js +21 -3
  203. package/esm/presentation/filterBar/filterBar/types.d.ts +3 -3
  204. package/esm/presentation/filterBar/filterBar/types.d.ts.map +1 -1
  205. package/esm/presentation/filterBar/filterBar/useFiltersWithAddedPlaceholder.d.ts +3 -3
  206. package/esm/presentation/filterBar/filterBar/useFiltersWithAddedPlaceholder.d.ts.map +1 -1
  207. package/esm/presentation/filterBar/filterBar/useFiltersWithAddedPlaceholder.js +3 -3
  208. package/esm/presentation/filterBar/parameterFilter/DashboardParameterPicker.d.ts.map +1 -1
  209. package/esm/presentation/filterBar/parameterFilter/DashboardParameterPicker.js +11 -13
  210. package/esm/presentation/insightEditor/filterContext/dateFilters.d.ts.map +1 -1
  211. package/esm/presentation/insightEditor/filterContext/dateFilters.js +2 -1
  212. package/esm/presentation/localization/bundles/de-DE.localization-bundle.d.ts +2 -0
  213. package/esm/presentation/localization/bundles/de-DE.localization-bundle.d.ts.map +1 -1
  214. package/esm/presentation/localization/bundles/de-DE.localization-bundle.js +2 -0
  215. package/esm/presentation/localization/bundles/en-AU.localization-bundle.d.ts +2 -0
  216. package/esm/presentation/localization/bundles/en-AU.localization-bundle.d.ts.map +1 -1
  217. package/esm/presentation/localization/bundles/en-AU.localization-bundle.js +2 -0
  218. package/esm/presentation/localization/bundles/en-GB.localization-bundle.d.ts +2 -0
  219. package/esm/presentation/localization/bundles/en-GB.localization-bundle.d.ts.map +1 -1
  220. package/esm/presentation/localization/bundles/en-GB.localization-bundle.js +2 -0
  221. package/esm/presentation/localization/bundles/en-US.localization-bundle.d.ts +52 -0
  222. package/esm/presentation/localization/bundles/en-US.localization-bundle.d.ts.map +1 -1
  223. package/esm/presentation/localization/bundles/en-US.localization-bundle.js +52 -0
  224. package/esm/presentation/localization/bundles/es-419.localization-bundle.d.ts +2 -0
  225. package/esm/presentation/localization/bundles/es-419.localization-bundle.d.ts.map +1 -1
  226. package/esm/presentation/localization/bundles/es-419.localization-bundle.js +2 -0
  227. package/esm/presentation/localization/bundles/es-ES.localization-bundle.d.ts +2 -0
  228. package/esm/presentation/localization/bundles/es-ES.localization-bundle.d.ts.map +1 -1
  229. package/esm/presentation/localization/bundles/es-ES.localization-bundle.js +2 -0
  230. package/esm/presentation/localization/bundles/fi-FI.localization-bundle.d.ts +2 -0
  231. package/esm/presentation/localization/bundles/fi-FI.localization-bundle.d.ts.map +1 -1
  232. package/esm/presentation/localization/bundles/fi-FI.localization-bundle.js +2 -0
  233. package/esm/presentation/localization/bundles/fr-CA.localization-bundle.d.ts +2 -0
  234. package/esm/presentation/localization/bundles/fr-CA.localization-bundle.d.ts.map +1 -1
  235. package/esm/presentation/localization/bundles/fr-CA.localization-bundle.js +2 -0
  236. package/esm/presentation/localization/bundles/fr-FR.localization-bundle.d.ts +2 -0
  237. package/esm/presentation/localization/bundles/fr-FR.localization-bundle.d.ts.map +1 -1
  238. package/esm/presentation/localization/bundles/fr-FR.localization-bundle.js +2 -0
  239. package/esm/presentation/localization/bundles/id-ID.localization-bundle.d.ts +2 -0
  240. package/esm/presentation/localization/bundles/id-ID.localization-bundle.d.ts.map +1 -1
  241. package/esm/presentation/localization/bundles/id-ID.localization-bundle.js +2 -0
  242. package/esm/presentation/localization/bundles/it-IT.localization-bundle.d.ts +2 -0
  243. package/esm/presentation/localization/bundles/it-IT.localization-bundle.d.ts.map +1 -1
  244. package/esm/presentation/localization/bundles/it-IT.localization-bundle.js +2 -0
  245. package/esm/presentation/localization/bundles/ja-JP.localization-bundle.d.ts +2 -0
  246. package/esm/presentation/localization/bundles/ja-JP.localization-bundle.d.ts.map +1 -1
  247. package/esm/presentation/localization/bundles/ja-JP.localization-bundle.js +2 -0
  248. package/esm/presentation/localization/bundles/ko-KR.localization-bundle.d.ts +2 -0
  249. package/esm/presentation/localization/bundles/ko-KR.localization-bundle.d.ts.map +1 -1
  250. package/esm/presentation/localization/bundles/ko-KR.localization-bundle.js +2 -0
  251. package/esm/presentation/localization/bundles/nl-NL.localization-bundle.d.ts +2 -0
  252. package/esm/presentation/localization/bundles/nl-NL.localization-bundle.d.ts.map +1 -1
  253. package/esm/presentation/localization/bundles/nl-NL.localization-bundle.js +2 -0
  254. package/esm/presentation/localization/bundles/pl-PL.localization-bundle.d.ts +2 -0
  255. package/esm/presentation/localization/bundles/pl-PL.localization-bundle.d.ts.map +1 -1
  256. package/esm/presentation/localization/bundles/pl-PL.localization-bundle.js +2 -0
  257. package/esm/presentation/localization/bundles/pt-BR.localization-bundle.d.ts +2 -0
  258. package/esm/presentation/localization/bundles/pt-BR.localization-bundle.d.ts.map +1 -1
  259. package/esm/presentation/localization/bundles/pt-BR.localization-bundle.js +2 -0
  260. package/esm/presentation/localization/bundles/pt-PT.localization-bundle.d.ts +2 -0
  261. package/esm/presentation/localization/bundles/pt-PT.localization-bundle.d.ts.map +1 -1
  262. package/esm/presentation/localization/bundles/pt-PT.localization-bundle.js +2 -0
  263. package/esm/presentation/localization/bundles/ru-RU.localization-bundle.d.ts +2 -0
  264. package/esm/presentation/localization/bundles/ru-RU.localization-bundle.d.ts.map +1 -1
  265. package/esm/presentation/localization/bundles/ru-RU.localization-bundle.js +2 -0
  266. package/esm/presentation/localization/bundles/sl-SI.localization-bundle.d.ts +2 -0
  267. package/esm/presentation/localization/bundles/sl-SI.localization-bundle.d.ts.map +1 -1
  268. package/esm/presentation/localization/bundles/sl-SI.localization-bundle.js +2 -0
  269. package/esm/presentation/localization/bundles/th-TH.localization-bundle.d.ts +2 -0
  270. package/esm/presentation/localization/bundles/th-TH.localization-bundle.d.ts.map +1 -1
  271. package/esm/presentation/localization/bundles/th-TH.localization-bundle.js +2 -0
  272. package/esm/presentation/localization/bundles/tr-TR.localization-bundle.d.ts +2 -0
  273. package/esm/presentation/localization/bundles/tr-TR.localization-bundle.d.ts.map +1 -1
  274. package/esm/presentation/localization/bundles/tr-TR.localization-bundle.js +2 -0
  275. package/esm/presentation/localization/bundles/uk-UA.localization-bundle.d.ts +2 -0
  276. package/esm/presentation/localization/bundles/uk-UA.localization-bundle.d.ts.map +1 -1
  277. package/esm/presentation/localization/bundles/uk-UA.localization-bundle.js +2 -0
  278. package/esm/presentation/localization/bundles/vi-VN.localization-bundle.d.ts +2 -0
  279. package/esm/presentation/localization/bundles/vi-VN.localization-bundle.d.ts.map +1 -1
  280. package/esm/presentation/localization/bundles/vi-VN.localization-bundle.js +2 -0
  281. package/esm/presentation/localization/bundles/zh-HK.localization-bundle.d.ts +2 -0
  282. package/esm/presentation/localization/bundles/zh-HK.localization-bundle.d.ts.map +1 -1
  283. package/esm/presentation/localization/bundles/zh-HK.localization-bundle.js +3 -1
  284. package/esm/presentation/localization/bundles/zh-Hans.localization-bundle.d.ts +2 -0
  285. package/esm/presentation/localization/bundles/zh-Hans.localization-bundle.d.ts.map +1 -1
  286. package/esm/presentation/localization/bundles/zh-Hans.localization-bundle.js +2 -0
  287. package/esm/presentation/localization/bundles/zh-Hant.localization-bundle.d.ts +2 -0
  288. package/esm/presentation/localization/bundles/zh-Hant.localization-bundle.d.ts.map +1 -1
  289. package/esm/presentation/localization/bundles/zh-Hant.localization-bundle.js +2 -0
  290. package/esm/presentation/topBar/menuButton/DefaultMenuButton.d.ts.map +1 -1
  291. package/esm/presentation/topBar/menuButton/DefaultMenuButton.js +33 -6
  292. package/esm/presentation/topBar/timezoneIndicator/TimezoneIndicator.d.ts.map +1 -1
  293. package/esm/presentation/topBar/timezoneIndicator/TimezoneIndicator.js +2 -2
  294. package/esm/presentation/widget/description/DescriptionClickTrigger.d.ts.map +1 -1
  295. package/esm/presentation/widget/description/DescriptionClickTrigger.js +19 -3
  296. package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/DashboardInsightMenu/DashboardInsightMenuItemButton.d.ts.map +1 -1
  297. package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/DashboardInsightMenu/DashboardInsightMenuItemButton.js +19 -1
  298. package/esm/presentation/widget/widget/VisualizationSwitcherWidget/VisualizationSwitcherNavigationHeader.d.ts.map +1 -1
  299. package/esm/presentation/widget/widget/VisualizationSwitcherWidget/VisualizationSwitcherNavigationHeader.js +12 -5
  300. package/esm/sdk-ui-dashboard.d.ts +451 -16
  301. package/package.json +23 -23
  302. package/styles/css/filterBar.css +5 -0
  303. package/styles/css/filterBar.css.map +1 -1
  304. package/styles/css/main.css +6 -3
  305. package/styles/css/main.css.map +1 -1
  306. package/styles/css/timezoneIndicator.css +1 -3
  307. package/styles/css/timezoneIndicator.css.map +1 -1
  308. package/styles/scss/filterBar.scss +4 -0
  309. package/styles/scss/timezoneIndicator.scss +1 -3
  310. package/esm/assets/timezone.svg +0 -1
  311. package/esm/model/commandHandlers/parameters/customUrlDrillParametersWorker.d.ts +0 -3
  312. package/esm/model/commandHandlers/parameters/customUrlDrillParametersWorker.d.ts.map +0 -1
  313. package/esm/model/commandHandlers/parameters/customUrlDrillParametersWorker.js +0 -26
@@ -1,6 +1,6 @@
1
1
  // (C) 2021-2026 GoodData Corporation
2
2
  import { invariant } from "ts-invariant";
3
- import { areObjRefsEqual, attributeElementsIsEmpty, dashboardAttributeFilterItemDisplayForm, dashboardAttributeFilterItemLocalIdentifier, dashboardFilterLocalIdentifier, isAttributeElementsByRef, isDashboardArbitraryAttributeFilter, isDashboardAttributeFilter, isDashboardAttributeFilterItem, isDashboardCommonDateFilter, isDashboardDateFilter, isDashboardDateFilterWithDimension, isDashboardMatchAttributeFilter, isDashboardMeasureValueFilter, isIdentifierRef, newAllTimeDashboardDateFilter, } from "@gooddata/sdk-model";
3
+ import { areObjRefsEqual, attributeElementsIsEmpty, dashboardAttributeFilterItemDisplayForm, dashboardAttributeFilterItemLocalIdentifier, dashboardFilterLocalIdentifier, dashboardFilterObjRef, isAttributeElementsByRef, isDashboardAbsoluteGranularityDateFilter, isDashboardArbitraryAttributeFilter, isDashboardAttributeFilter, isDashboardAttributeFilterItem, isDashboardCommonDateFilterOfAnyType, isDashboardDateFilter, isDashboardDateFilterOfAnyType, isDashboardDateFilterWithDimension, isDashboardMatchAttributeFilter, isDashboardMeasureValueFilter, isIdentifierRef, newAllTimeDashboardDateFilter, } from "@gooddata/sdk-model";
4
4
  import { _cloneDeep } from "@gooddata/util";
5
5
  import { isDisplayFormMetadataReferencedBy } from "../../../utils/attributeFilterMatching.js";
6
6
  import { generateFilterLocalIdentifier, generateMeasureValueFilterLocalIdentifier, } from "../../_infra/generators.js";
@@ -108,6 +108,29 @@ const setPreloadedAttributesWithReferences = (state, action) => {
108
108
  // The payload already contains merged attributes from all filters across all tabs
109
109
  state.attributesWithReferences = action.payload;
110
110
  };
111
+ /**
112
+ * The date data set of the upserted date filter, undefined for the common date filter.
113
+ *
114
+ * @internal
115
+ */
116
+ export function upsertDateFilterPayloadDataSet(payload) {
117
+ return payload.type === "absoluteGranularity" ? undefined : payload.dataSet;
118
+ }
119
+ function newDashboardAbsoluteGranularityDateFilter(payload, localIdentifier) {
120
+ const { granularity, from, to, emptyValueHandling } = payload;
121
+ return {
122
+ dashboardAbsoluteGranularityDateFilter: {
123
+ granularity,
124
+ ...(from === undefined
125
+ ? { to }
126
+ : to === undefined
127
+ ? { from }
128
+ : { from, to }),
129
+ ...(localIdentifier ? { localIdentifier } : {}),
130
+ ...(emptyValueHandling ? { emptyValueHandling } : {}),
131
+ },
132
+ };
133
+ }
111
134
  const upsertDateFilter = (state, action) => {
112
135
  const tab = getTabOrActive(state, action.payload.tabLocalIdentifier);
113
136
  if (!tab) {
@@ -123,21 +146,38 @@ function upsertDateFilterOnTab(targetTab, payload) {
123
146
  ? targetTab.filterContext.workingFilterContextDefinition
124
147
  : targetTab.filterContext.filterContextDefinition;
125
148
  invariant(filterContextDefinition?.filters, "Attempt to edit uninitialized filter context");
126
- const dateDataSet = payload.dataSet;
149
+ const dateDataSet = upsertDateFilterPayloadDataSet(payload);
127
150
  let existingFilterIndex = -1;
128
151
  if (dateDataSet) {
129
152
  existingFilterIndex = filterContextDefinition.filters.findIndex((item) => isDashboardDateFilter(item) && areObjRefsEqual(item.dateFilter.dataSet, dateDataSet));
130
153
  }
131
154
  else {
132
- existingFilterIndex = filterContextDefinition.filters.findIndex((item) => isDashboardCommonDateFilter(item));
155
+ existingFilterIndex = filterContextDefinition.filters.findIndex((item) => isDashboardCommonDateFilterOfAnyType(item));
133
156
  }
134
- if (payload.isWorkingSelectionChange && payload.type === "allTime") {
157
+ // A change of the type of the common date filter keeps its local identifier.
158
+ const existingFilter = filterContextDefinition.filters[existingFilterIndex];
159
+ const existingLocalIdentifier = isDashboardAbsoluteGranularityDateFilter(existingFilter) || isDashboardDateFilter(existingFilter)
160
+ ? dashboardFilterLocalIdentifier(existingFilter)
161
+ : undefined;
162
+ if (payload.type === "absoluteGranularity") {
163
+ const dateFilter = newDashboardAbsoluteGranularityDateFilter(payload, payload.localIdentifier ?? existingLocalIdentifier);
164
+ if (existingFilterIndex >= 0) {
165
+ filterContextDefinition.filters[existingFilterIndex] = dateFilter;
166
+ }
167
+ else {
168
+ filterContextDefinition.filters.unshift(dateFilter);
169
+ }
170
+ }
171
+ else if (payload.isWorkingSelectionChange && payload.type === "allTime") {
135
172
  // we need to allways set working filter to distinguish between "not changed" and "all time" filter
136
173
  if (existingFilterIndex >= 0) {
137
174
  const dateFilter = filterContextDefinition.filters[existingFilterIndex];
138
175
  if (isDashboardDateFilter(dateFilter)) {
139
176
  filterContextDefinition.filters[existingFilterIndex] = newAllTimeDashboardDateFilter(dateFilter.dateFilter.dataSet, dateFilter.dateFilter.localIdentifier, payload.emptyValueHandling);
140
177
  }
178
+ else if (isDashboardAbsoluteGranularityDateFilter(dateFilter)) {
179
+ filterContextDefinition.filters[existingFilterIndex] = newAllTimeDashboardDateFilter(undefined, existingLocalIdentifier, payload.emptyValueHandling);
180
+ }
141
181
  }
142
182
  else {
143
183
  filterContextDefinition.filters.unshift(newAllTimeDashboardDateFilter(payload.dataSet, payload.localIdentifier, payload.emptyValueHandling));
@@ -154,7 +194,7 @@ function upsertDateFilterOnTab(targetTab, payload) {
154
194
  else {
155
195
  if (payload.emptyValueHandling) {
156
196
  // Preserve all-time common DF when it carries additional config (e.g. emptyValueHandling).
157
- filterContextDefinition.filters[existingFilterIndex] = newAllTimeDashboardDateFilter(undefined, payload.localIdentifier, payload.emptyValueHandling);
197
+ filterContextDefinition.filters[existingFilterIndex] = newAllTimeDashboardDateFilter(undefined, payload.localIdentifier ?? existingLocalIdentifier, payload.emptyValueHandling);
158
198
  }
159
199
  else {
160
200
  // if allTime common DF remove the date filter altogether
@@ -191,6 +231,20 @@ function upsertDateFilterOnTab(targetTab, payload) {
191
231
  delete dateFilter.dateFilter.emptyValueHandling;
192
232
  }
193
233
  }
234
+ else if (isDashboardAbsoluteGranularityDateFilter(dateFilter)) {
235
+ const filterLocalIdentifier = localIdentifier ?? existingLocalIdentifier;
236
+ filterContextDefinition.filters[existingFilterIndex] = {
237
+ dateFilter: {
238
+ granularity,
239
+ type,
240
+ from,
241
+ to,
242
+ ...(filterLocalIdentifier ? { localIdentifier: filterLocalIdentifier } : {}),
243
+ ...(boundedFilter ? { boundedFilter } : {}),
244
+ ...(emptyValueHandling ? { emptyValueHandling } : {}),
245
+ },
246
+ };
247
+ }
194
248
  }
195
249
  else {
196
250
  const { type, granularity, from, to, dataSet, localIdentifier, boundedFilter, emptyValueHandling } = payload;
@@ -674,7 +728,7 @@ const addDateFilter = (state, action) => {
674
728
  },
675
729
  };
676
730
  // Only draggable filters are indexed, if DateFilter is present should be always first item
677
- const isCommonDateFilterPresent = definition.filters.findIndex(isDashboardCommonDateFilter) >= 0;
731
+ const isCommonDateFilterPresent = definition.filters.findIndex(isDashboardCommonDateFilterOfAnyType) >= 0;
678
732
  if (index === -1) {
679
733
  definition.filters.push(filter);
680
734
  }
@@ -698,7 +752,7 @@ const addMeasureValueFilter = (state, action) => {
698
752
  title,
699
753
  },
700
754
  };
701
- const isCommonDateFilterPresent = definition.filters.findIndex(isDashboardCommonDateFilter) >= 0;
755
+ const isCommonDateFilterPresent = definition.filters.findIndex(isDashboardCommonDateFilterOfAnyType) >= 0;
702
756
  if (index === -1) {
703
757
  definition.filters.push(filter);
704
758
  }
@@ -730,7 +784,7 @@ const moveMeasureValueFilter = (state, action) => {
730
784
  invariant(currentFilterIndex >= 0, "Attempt to move non-existing measure value filter");
731
785
  const filter = filters[currentFilterIndex];
732
786
  filters.splice(currentFilterIndex, 1);
733
- const isCommonDateFilterPresent = filters.findIndex(isDashboardCommonDateFilter) >= 0;
787
+ const isCommonDateFilterPresent = filters.findIndex(isDashboardCommonDateFilterOfAnyType) >= 0;
734
788
  if (index === -1) {
735
789
  filters.push(filter);
736
790
  }
@@ -805,7 +859,7 @@ const moveDateFilter = (state, action) => {
805
859
  const filter = filters[currentFilterIndex];
806
860
  filters.splice(currentFilterIndex, 1);
807
861
  // Filters are indexed just for attribute filters, if DateFilter is present should be always first item
808
- const isCommonDateFilterPresent = filters.findIndex(isDashboardCommonDateFilter) >= 0;
862
+ const isCommonDateFilterPresent = filters.findIndex(isDashboardCommonDateFilterOfAnyType) >= 0;
809
863
  if (index === -1) {
810
864
  filters.push(filter);
811
865
  }
@@ -960,8 +1014,8 @@ const changeMeasureValueFilterTitle = (state, action) => {
960
1014
  };
961
1015
  };
962
1016
  function isWrittenFilter(filter, written) {
963
- if (isDashboardDateFilter(filter)) {
964
- const { dataSet } = filter.dateFilter;
1017
+ if (isDashboardDateFilterOfAnyType(filter)) {
1018
+ const dataSet = dashboardFilterObjRef(filter);
965
1019
  return dataSet
966
1020
  ? written.dateDataSets.some((writtenDataSet) => areObjRefsEqual(writtenDataSet, dataSet))
967
1021
  : written.commonDateFilter;
@@ -1019,7 +1073,7 @@ const adoptAppliedFiltersAsOriginal = (state, action) => {
1019
1073
  if (matchedOriginals.has(original) || isWrittenFilter(original, written)) {
1020
1074
  continue;
1021
1075
  }
1022
- if (isDashboardCommonDateFilter(original)) {
1076
+ if (isDashboardCommonDateFilterOfAnyType(original)) {
1023
1077
  adopted.unshift(_cloneDeep(original));
1024
1078
  }
1025
1079
  else {
@@ -1,5 +1,5 @@
1
1
  import { type IAttributeWithReferences } from "@gooddata/sdk-backend-spi";
2
- import { type DashboardAttributeFilterItem, type FilterContextItem, type IAttributeDisplayFormMetadataObject, type IDashboardAttributeFilter, type IDashboardDateFilter, type IDashboardMeasureValueFilter, type IDashboardObjectIdentity, type IFilterContextDefinition, type ObjRef } from "@gooddata/sdk-model";
2
+ import { type DashboardAttributeFilterItem, type DashboardDateFilterOfAnyType, type FilterContextItem, type IAttributeDisplayFormMetadataObject, type IDashboardAttributeFilter, type IDashboardDateFilter, type IDashboardMeasureValueFilter, type IDashboardObjectIdentity, type IFilterContextDefinition, type ObjRef } from "@gooddata/sdk-model";
3
3
  import { type ObjRefMap } from "../../../../_staging/metadata/objRefMap.js";
4
4
  import { type DashboardSelector, type DashboardState } from "../../types.js";
5
5
  import { type FilterContextState, type IWorkingFilterContextDefinition } from "./filterContextState.js";
@@ -629,6 +629,32 @@ export declare const selectFilterContextDateFilter: DashboardSelector<IDashboard
629
629
  * @public
630
630
  */
631
631
  export declare const selectWorkingFilterContextDateFilter: DashboardSelector<IDashboardDateFilter | undefined>;
632
+ /**
633
+ * This selector returns dashboard's applied filter context common date filter of any type.
634
+ *
635
+ * @remarks
636
+ * Unlike {@link selectFilterContextDateFilter}, it also returns the common date filter that selects whole
637
+ * weeks, months, quarters or years.
638
+ *
639
+ * It is expected that the selector is called only after the filter context state is correctly initialized.
640
+ * Invocations before initialization lead to invariant errors.
641
+ *
642
+ * @alpha
643
+ */
644
+ export declare const selectFilterContextDateFilterOfAnyType: DashboardSelector<DashboardDateFilterOfAnyType | undefined>;
645
+ /**
646
+ * This selector returns dashboard's working filter context common date filter of any type.
647
+ *
648
+ * @remarks
649
+ * Unlike {@link selectWorkingFilterContextDateFilter}, it also returns the common date filter that selects
650
+ * whole weeks, months, quarters or years.
651
+ *
652
+ * It is expected that the selector is called only after the filter context state is correctly initialized.
653
+ * Invocations before initialization lead to invariant errors.
654
+ *
655
+ * @alpha
656
+ */
657
+ export declare const selectWorkingFilterContextDateFilterOfAnyType: DashboardSelector<DashboardDateFilterOfAnyType | undefined>;
632
658
  /**
633
659
  * This selector returns dashboard's filter context draggable filters (element-based attribute filters and date filters).
634
660
  *
@@ -738,7 +764,7 @@ export declare const selectFilterContextDateFiltersWithDimensionForTab: (tabLoca
738
764
  *
739
765
  * @internal
740
766
  */
741
- export declare const selectFilterContextDateFilterForTab: (tabLocalIdentifier: string) => DashboardSelector<IDashboardDateFilter | undefined>;
767
+ export declare const selectFilterContextDateFilterForTab: (tabLocalIdentifier: string) => DashboardSelector<DashboardDateFilterOfAnyType | undefined>;
742
768
  /**
743
769
  * Creates a selector for selecting date filter by its dataset from a specific tab.
744
770
  *
@@ -1030,7 +1056,7 @@ export declare const selectWorkingFilterContextDateFiltersWithDimensionForTab: (
1030
1056
  *
1031
1057
  * @internal
1032
1058
  */
1033
- export declare const selectWorkingFilterContextDateFilterForTab: (tabLocalIdentifier: string) => DashboardSelector<IDashboardDateFilter | undefined>;
1059
+ export declare const selectWorkingFilterContextDateFilterForTab: (tabLocalIdentifier: string) => DashboardSelector<DashboardDateFilterOfAnyType | undefined>;
1034
1060
  /**
1035
1061
  * Returns information whether attribute filter from a specific tab's filter context has some dependencies.
1036
1062
  *
@@ -1 +1 @@
1
- {"version":3,"file":"filterContextSelectors.d.ts","sourceRoot":"","sources":["../../../../../src/model/store/tabs/filterContext/filterContextSelectors.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,wBAAwB,EAAE,MAAM,2BAA2B,CAAC;AAC1E,OAAO,EACH,KAAK,4BAA4B,EACjC,KAAK,iBAAiB,EACtB,KAAK,mCAAmC,EACxC,KAAK,yBAAyB,EAC9B,KAAK,oBAAoB,EACzB,KAAK,4BAA4B,EACjC,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,EAC7B,KAAK,MAAM,EAgBd,MAAM,qBAAqB,CAAC;AAG7B,OAAO,EAAE,KAAK,SAAS,EAAqB,MAAM,4CAA4C,CAAC;AAM/F,OAAO,EAAE,KAAK,iBAAiB,EAAE,KAAK,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAI7E,OAAO,EACH,KAAK,kBAAkB,EACvB,KAAK,+BAA+B,EAEvC,MAAM,yBAAyB,CAAC;AAajC;;;;GAIG;AACH,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAUzC,CAAC;AAEH;;;;GAIG;A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D,EAAE,CACnE,kBAAkB,EAAE,MAAM,KACzB,iBAAiB,CAAC,oBAAoB,EAAE,CAI5C,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,0CAA0C,EAAE,CACrD,kBAAkB,EAAE,MAAM,KACzB,iBAAiB,CAAC,oBAAoB,GAAG,SAAS,CAQtD,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,uDAAuD,EAAE,CAClE,8BAA8B,EAAE,MAAM,EACtC,kBAAkB,EAAE,MAAM,KACzB,iBAAiB,CAAC,OAAO,CAiB7B,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,uCAAuC,EAAE,iBAAiB,CACnE,wBAAwB,EAAE,GAAG,SAAS,CAGxC,CAAC;AAEH;;;;;;;;;GASG;AACH,eAAO,MAAM,wCAAwC,EAAE,iBAAiB,CAAC,MAAM,EAAE,CAiDhF,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,4BAA4B,EAAE,iBAAiB,CAAC,iBAAiB,EAAE,GAAG,SAAS,CACrB,CAAC"}
1
+ {"version":3,"file":"filterContextSelectors.d.ts","sourceRoot":"","sources":["../../../../../src/model/store/tabs/filterContext/filterContextSelectors.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,wBAAwB,EAAE,MAAM,2BAA2B,CAAC;AAC1E,OAAO,EACH,KAAK,4BAA4B,EACjC,KAAK,4BAA4B,EACjC,KAAK,iBAAiB,EACtB,KAAK,mCAAmC,EACxC,KAAK,yBAAyB,EAC9B,KAAK,oBAAoB,EACzB,KAAK,4BAA4B,EACjC,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,EAC7B,KAAK,MAAM,EAiBd,MAAM,qBAAqB,CAAC;AAG7B,OAAO,EAAE,KAAK,SAAS,EAAqB,MAAM,4CAA4C,CAAC;AAM/F,OAAO,EAAE,KAAK,iBAAiB,EAAE,KAAK,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAI7E,OAAO,EACH,KAAK,kBAAkB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AE,CACrC,kBAAkB,EAAE,MAAM,KACzB,iBAAiB,CAAC,iBAAiB,EAAE,CAOzC,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,gDAAgD,EAAE,CAC3D,kBAAkB,EAAE,MAAM,KACzB,iBAAiB,CAAC,yBAAyB,EAAE,CAIjD,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,oDAAoD,EAAE,CAC/D,kBAAkB,EAAE,MAAM,KACzB,iBAAiB,CAAC,4BAA4B,EAAE,CAQpD,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,wDAAwD,EAAE,CACnE,kBAAkB,EAAE,MAAM,KACzB,iBAAiB,CAAC,oBAAoB,EAAE,CAI5C,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,0CAA0C,EAAE,CACrD,kBAAkB,EAAE,MAAM,KACzB,iBAAiB,CAAC,4BAA4B,GAAG,SAAS,CAQ9D,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,uDAAuD,EAAE,CAClE,8BAA8B,EAAE,MAAM,EACtC,kBAAkB,EAAE,MAAM,KACzB,iBAAiB,CAAC,OAAO,CAiB7B,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,uCAAuC,EAAE,iBAAiB,CACnE,wBAAwB,EAAE,GAAG,SAAS,CAGxC,CAAC;AAEH;;;;;;;;;GASG;AACH,eAAO,MAAM,wCAAwC,EAAE,iBAAiB,CAAC,MAAM,EAAE,CAiDhF,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,4BAA4B,EAAE,iBAAiB,CAAC,iBAAiB,EAAE,GAAG,SAAS,CACrB,CAAC"}
@@ -2,7 +2,7 @@
2
2
  import { createSelector } from "@reduxjs/toolkit";
3
3
  import { keyBy } from "lodash-es";
4
4
  import { invariant } from "ts-invariant";
5
- import { areObjRefsEqual, dashboardAttributeFilterItemDisplayForm, dashboardAttributeFilterItemFilterElementsBy, dashboardAttributeFilterItemFilterElementsByDate, dashboardAttributeFilterItemLocalIdentifier, dashboardAttributeFilterItemTitle, dashboardFilterLocalIdentifier, getAttributeElementsItems, isDashboardAttributeFilter, isDashboardAttributeFilterItem, isDashboardCommonDateFilter, isDashboardDateFilterWithDimension, isDashboardMeasureValueFilter, isDashboardTextAttributeFilter, isObjRef, } from "@gooddata/sdk-model";
5
+ import { areObjRefsEqual, dashboardAttributeFilterItemDisplayForm, dashboardAttributeFilterItemFilterElementsBy, dashboardAttributeFilterItemFilterElementsByDate, dashboardAttributeFilterItemLocalIdentifier, dashboardAttributeFilterItemTitle, dashboardFilterLocalIdentifier, getAttributeElementsItems, isDashboardAttributeFilter, isDashboardAttributeFilterItem, isDashboardCommonDateFilter, isDashboardCommonDateFilterOfAnyType, isDashboardDateFilterWithDimension, isDashboardMeasureValueFilter, isDashboardTextAttributeFilter, isObjRef, } from "@gooddata/sdk-model";
6
6
  import { _compact, _isEmpty, _isEqual, _sortBy } from "@gooddata/util";
7
7
  import { newDisplayFormMap } from "../../../../_staging/metadata/objRefMap.js";
8
8
  import { isDisplayFormMetadataReferencedBy } from "../../../utils/attributeFilterMatching.js";
@@ -357,6 +357,32 @@ export const selectFilterContextDateFilter = createSelector(selectFilterContextF
357
357
  * @public
358
358
  */
359
359
  export const selectWorkingFilterContextDateFilter = createSelector(selectWorkingFilterContextFilters, (filters) => filters.find(isDashboardCommonDateFilter));
360
+ /**
361
+ * This selector returns dashboard's applied filter context common date filter of any type.
362
+ *
363
+ * @remarks
364
+ * Unlike {@link selectFilterContextDateFilter}, it also returns the common date filter that selects whole
365
+ * weeks, months, quarters or years.
366
+ *
367
+ * It is expected that the selector is called only after the filter context state is correctly initialized.
368
+ * Invocations before initialization lead to invariant errors.
369
+ *
370
+ * @alpha
371
+ */
372
+ export const selectFilterContextDateFilterOfAnyType = createSelector(selectFilterContextFilters, (filters) => filters.find(isDashboardCommonDateFilterOfAnyType));
373
+ /**
374
+ * This selector returns dashboard's working filter context common date filter of any type.
375
+ *
376
+ * @remarks
377
+ * Unlike {@link selectWorkingFilterContextDateFilter}, it also returns the common date filter that selects
378
+ * whole weeks, months, quarters or years.
379
+ *
380
+ * It is expected that the selector is called only after the filter context state is correctly initialized.
381
+ * Invocations before initialization lead to invariant errors.
382
+ *
383
+ * @alpha
384
+ */
385
+ export const selectWorkingFilterContextDateFilterOfAnyType = createSelector(selectWorkingFilterContextFilters, (filters) => filters.find(isDashboardCommonDateFilterOfAnyType));
360
386
  /**
361
387
  * This selector returns dashboard's filter context draggable filters (element-based attribute filters and date filters).
362
388
  *
@@ -479,7 +505,7 @@ export const selectFilterContextDateFiltersWithDimensionForTab = createMemoizedS
479
505
  */
480
506
  export const selectFilterContextDateFilterForTab = createMemoizedSelector((tabLocalIdentifier) => createSelector(selectFiltersByTab, (filtersByTab) => {
481
507
  const filters = filtersByTab[tabLocalIdentifier] ?? [];
482
- return filters.find(isDashboardCommonDateFilter);
508
+ return filters.find(isDashboardCommonDateFilterOfAnyType);
483
509
  }));
484
510
  /**
485
511
  * Creates a selector for selecting date filter by its dataset from a specific tab.
@@ -875,7 +901,7 @@ export const selectWorkingFilterContextDateFiltersWithDimensionForTab = createMe
875
901
  * @internal
876
902
  */
877
903
  export const selectWorkingFilterContextDateFilterForTab = createMemoizedSelector((tabLocalIdentifier) => createSelector(selectWorkingFiltersForTab(tabLocalIdentifier), (filters) => {
878
- return filters.find(isDashboardCommonDateFilter);
904
+ return filters.find(isDashboardCommonDateFilterOfAnyType);
879
905
  }));
880
906
  /**
881
907
  * Returns information whether attribute filter from a specific tab's filter context has some dependencies.
@@ -1,5 +1,5 @@
1
1
  import { type IAttributeWithReferences } from "@gooddata/sdk-backend-spi";
2
- import { type FilterContextItem, type IAttributeDisplayFormMetadataObject, type IDashboardAttributeFilter, type IDashboardDateFilter, type IDashboardObjectIdentity, type IFilterContextDefinition, type MeasureValueFilterCondition, type ObjRef } from "@gooddata/sdk-model";
2
+ import { type FilterContextItem, type IAttributeDisplayFormMetadataObject, type IDashboardAbsoluteGranularityDateFilter, type IDashboardAttributeFilter, type IDashboardDateFilter, type IDashboardObjectIdentity, type IDashboardParameterizedDateFilter, type IFilterContextDefinition, type MeasureValueFilterCondition, type ObjRef } from "@gooddata/sdk-model";
3
3
  /**
4
4
  * Partial working attribute filter used in working filter context.
5
5
  *
@@ -25,7 +25,7 @@ export type WorkingDashboardMeasureValueFilter = {
25
25
  *
26
26
  * @alpha
27
27
  */
28
- export type WorkingFilterContextItem = WorkingDashboardAttributeFilter | IDashboardDateFilter | WorkingDashboardMeasureValueFilter;
28
+ export type WorkingFilterContextItem = WorkingDashboardAttributeFilter | IDashboardDateFilter | IDashboardAbsoluteGranularityDateFilter | IDashboardParameterizedDateFilter | WorkingDashboardMeasureValueFilter;
29
29
  /**
30
30
  * Working filter context.
31
31
  *
@@ -1 +1 @@
1
- {"version":3,"file":"filterContextState.d.ts","sourceRoot":"","sources":["../../../../../src/model/store/tabs/filterContext/filterContextState.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,wBAAwB,EAAE,MAAM,2BAA2B,CAAC;AAC1E,OAAO,EACH,KAAK,iBAAiB,EACtB,KAAK,mCAAmC,EACxC,KAAK,yBAAyB,EAC9B,KAAK,oBAAoB,EACzB,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,EAC7B,KAAK,2BAA2B,EAChC,KAAK,MAAM,EACd,MAAM,qBAAqB,CAAC;AAE7B;;;;GAIG;AACH,MAAM,MAAM,+BAA+B,GAAG;IAC1C,eAAe,EAAE,OAAO,CAAC,yBAAyB,CAAC,iBAAiB,CAAC,CAAC,CAAC;CAC1E,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,kCAAkC,GAAG;IAC7C,2BAA2B,EAAE;QACzB,eAAe,EAAE,MAAM,CAAC;QACxB,UAAU,CAAC,EAAE,2BAA2B,EAAE,CAAC;QAC3C,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;KAC7B,CAAC;CACL,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,wBAAwB,GAC9B,+BAA+B,GAC/B,oBAAoB,GACpB,kCAAkC,CAAC;AAEzC;;;;GAIG;AACH,MAAM,WAAW,+BAA+B;IAC5C;;OAEG;IACH,QAAQ,CAAC,OAAO,EAAE,wBAAwB,EAAE,CAAC;CAChD;AAED;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAC7B;;;;OAIG;IACH,2BAA2B,EAAE,MAAM,EAAE,CAAC;IAEtC;;;;OAIG;IACH,uBAAuB,CAAC,EAAE,wBAAwB,CAAC;IAEnD;;;;;;;;;;;;;;OAcG;IACH,8BAA8B,CAAC,EAAE,+BAA+B,CAAC;IAEjE;;;OAGG;IACH,+BAA+B,CAAC,EAAE,wBAAwB,CAAC;IAE3D;;;;;;;;;;;;;;;OAeG;IACH,qBAAqB,CAAC,EAAE,wBAAwB,CAAC;IAEjD;;;OAGG;IACH,2BAA2B,CAAC,EAAE,mCAAmC,EAAE,CAAC;IAEpE;;;OAGG;IACH,wBAAwB,CAAC,EAAE,wBAAwB,EAAE,CAAC;IAEtD;;;;OAIG;IACH,sBAAsB,CAAC,EAAE,iBAAiB,EAAE,CAAC;CAChD,CAAC;AAEF,eAAO,MAAM,yBAAyB,EAAE,kBAQvC,CAAC"}
1
+ {"version":3,"file":"filterContextState.d.ts","sourceRoot":"","sources":["../../../../../src/model/store/tabs/filterContext/filterContextState.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,wBAAwB,EAAE,MAAM,2BAA2B,CAAC;AAC1E,OAAO,EACH,KAAK,iBAAiB,EACtB,KAAK,mCAAmC,EACxC,KAAK,uCAAuC,EAC5C,KAAK,yBAAyB,EAC9B,KAAK,oBAAoB,EACzB,KAAK,wBAAwB,EAC7B,KAAK,iCAAiC,EACtC,KAAK,wBAAwB,EAC7B,KAAK,2BAA2B,EAChC,KAAK,MAAM,EACd,MAAM,qBAAqB,CAAC;AAE7B;;;;GAIG;AACH,MAAM,MAAM,+BAA+B,GAAG;IAC1C,eAAe,EAAE,OAAO,CAAC,yBAAyB,CAAC,iBAAiB,CAAC,CAAC,CAAC;CAC1E,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,kCAAkC,GAAG;IAC7C,2BAA2B,EAAE;QACzB,eAAe,EAAE,MAAM,CAAC;QACxB,UAAU,CAAC,EAAE,2BAA2B,EAAE,CAAC;QAC3C,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;KAC7B,CAAC;CACL,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,wBAAwB,GAC9B,+BAA+B,GAC/B,oBAAoB,GACpB,uCAAuC,GACvC,iCAAiC,GACjC,kCAAkC,CAAC;AAEzC;;;;GAIG;AACH,MAAM,WAAW,+BAA+B;IAC5C;;OAEG;IACH,QAAQ,CAAC,OAAO,EAAE,wBAAwB,EAAE,CAAC;CAChD;AAED;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAC7B;;;;OAIG;IACH,2BAA2B,EAAE,MAAM,EAAE,CAAC;IAEtC;;;;OAIG;IACH,uBAAuB,CAAC,EAAE,wBAAwB,CAAC;IAEnD;;;;;;;;;;;;;;OAcG;IACH,8BAA8B,CAAC,EAAE,+BAA+B,CAAC;IAEjE;;;OAGG;IACH,+BAA+B,CAAC,EAAE,wBAAwB,CAAC;IAE3D;;;;;;;;;;;;;;;OAeG;IACH,qBAAqB,CAAC,EAAE,wBAAwB,CAAC;IAEjD;;;OAGG;IACH,2BAA2B,CAAC,EAAE,mCAAmC,EAAE,CAAC;IAEpE;;;OAGG;IACH,wBAAwB,CAAC,EAAE,wBAAwB,EAAE,CAAC;IAEtD;;;;OAIG;IACH,sBAAsB,CAAC,EAAE,iBAAiB,EAAE,CAAC;CAChD,CAAC;AAEF,eAAO,MAAM,yBAAyB,EAAE,kBAQvC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"filterContextUtils.d.ts","sourceRoot":"","sources":["../../../../../src/model/store/tabs/filterContext/filterContextUtils.ts"],"names":[],"mappings":"AAEA,OAAO,EACH,KAAK,iBAAiB,EACtB,KAAK,mCAAmC,EAGxC,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,EAchC,MAAM,qBAAqB,CAAC;AAK7B,OAAO,KAAK,EAAE,kBAAkB,EAAE,+BAA+B,EAAE,MAAM,yBAAyB,CAAC;AAEnG;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAC9B,aAAa,EAAE,wBAAwB,EACvC,oBAAoB,EAAE,+BAA+B,GAAG,SAAS,EACjE,qDAAqD,CAAC,EAAE,OAAO,GAChE,wBAAwB,CAgI1B;AAED;;;;;;;GAOG;AACH,wBAAgB,iCAAiC,CAC7C,uBAAuB,EAAE,wBAAwB,GAClD,wBAAwB,CAiD1B;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,uBAAuB,CACnC,uBAAuB,EAAE,wBAAwB,EACjD,+BAA+B,CAAC,EAAE,wBAAwB,EAC1D,2BAA2B,CAAC,EAAE,mCAAmC,EAAE,EACnE,qBAAqB,CAAC,EAAE,wBAAwB,GACjD,kBAAkB,CAYpB;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,iBAAiB,GAAG,MAAM,CA2BrE"}
1
+ {"version":3,"file":"filterContextUtils.d.ts","sourceRoot":"","sources":["../../../../../src/model/store/tabs/filterContext/filterContextUtils.ts"],"names":[],"mappings":"AAEA,OAAO,EAEH,KAAK,iBAAiB,EACtB,KAAK,mCAAmC,EAGxC,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,EAgBhC,MAAM,qBAAqB,CAAC;AAK7B,OAAO,KAAK,EAAE,kBAAkB,EAAE,+BAA+B,EAAE,MAAM,yBAAyB,CAAC;AAoEnG;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAC9B,aAAa,EAAE,wBAAwB,EACvC,oBAAoB,EAAE,+BAA+B,GAAG,SAAS,EACjE,qDAAqD,CAAC,EAAE,OAAO,GAChE,wBAAwB,CAkH1B;AAED;;;;;;;GAOG;AACH,wBAAgB,iCAAiC,CAC7C,uBAAuB,EAAE,wBAAwB,GAClD,wBAAwB,CAoD1B;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,uBAAuB,CACnC,uBAAuB,EAAE,wBAAwB,EACjD,+BAA+B,CAAC,EAAE,wBAAwB,EAC1D,2BAA2B,CAAC,EAAE,mCAAmC,EAAE,EACnE,qBAAqB,CAAC,EAAE,wBAAwB,GACjD,kBAAkB,CAYpB;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,iBAAiB,GAAG,MAAM,CAmCrE"}
@@ -1,7 +1,63 @@
1
1
  // (C) 2021-2026 GoodData Corporation
2
- import { areObjRefsEqual, dashboardAttributeFilterItemLocalIdentifier, dashboardFilterLocalIdentifier, dashboardMeasureValueFilterLocalIdentifier, isDashboardArbitraryAttributeFilter, isDashboardAttributeFilter, isDashboardAttributeFilterItem, isDashboardCommonDateFilter, isDashboardDateFilter, isDashboardMatchAttributeFilter, isDashboardMeasureValueFilter, isNoopAllTimeDashboardDateFilter, objRefToString, } from "@gooddata/sdk-model";
3
- import { _partition } from "@gooddata/util";
2
+ import { areObjRefsEqual, dashboardAttributeFilterItemLocalIdentifier, dashboardFilterLocalIdentifier, dashboardMeasureValueFilterLocalIdentifier, isDashboardAbsoluteGranularityDateFilter, isDashboardArbitraryAttributeFilter, isDashboardAttributeFilter, isDashboardAttributeFilterItem, isDashboardCommonDateFilterOfAnyType, isDashboardDateFilter, isDashboardMatchAttributeFilter, isDashboardMeasureValueFilter, isDashboardParameterizedDateFilter, isNoopAllTimeDashboardDateFilter, objRefToString, } from "@gooddata/sdk-model";
3
+ import { _omitBy, _partition } from "@gooddata/util";
4
4
  import { generateFilterLocalIdentifier } from "../../_infra/generators.js";
5
+ /**
6
+ * The working common date filter replaces the applied one, also when its type differs. The applied local
7
+ * identifier is kept.
8
+ */
9
+ function mergeCommonDateFilter(appliedFilter, workingFilter) {
10
+ const localIdentifier = dashboardFilterLocalIdentifier(appliedFilter);
11
+ if (isDashboardAbsoluteGranularityDateFilter(workingFilter)) {
12
+ return {
13
+ dashboardAbsoluteGranularityDateFilter: {
14
+ ...workingFilter.dashboardAbsoluteGranularityDateFilter,
15
+ ...(localIdentifier ? { localIdentifier } : {}),
16
+ },
17
+ };
18
+ }
19
+ if (isDashboardParameterizedDateFilter(workingFilter)) {
20
+ return {
21
+ dashboardParameterizedDateFilter: {
22
+ ...workingFilter.dashboardParameterizedDateFilter,
23
+ ...(localIdentifier ? { localIdentifier } : {}),
24
+ },
25
+ };
26
+ }
27
+ if (isDashboardAbsoluteGranularityDateFilter(appliedFilter) ||
28
+ isDashboardParameterizedDateFilter(appliedFilter)) {
29
+ const { type, granularity, ...rest } = workingFilter.dateFilter;
30
+ // a stored filter has no keys with undefined values
31
+ return {
32
+ dateFilter: {
33
+ ..._omitBy(rest, (value) => value === undefined),
34
+ type,
35
+ granularity,
36
+ ...(localIdentifier ? { localIdentifier } : {}),
37
+ },
38
+ };
39
+ }
40
+ return mergeDateFilter(appliedFilter, workingFilter);
41
+ }
42
+ function mergeDateFilter(appliedFilter, workingFilter) {
43
+ const dateFilter = {
44
+ dateFilter: {
45
+ ...appliedFilter.dateFilter,
46
+ type: workingFilter.dateFilter.type,
47
+ granularity: workingFilter.dateFilter.granularity,
48
+ from: workingFilter.dateFilter.from,
49
+ to: workingFilter.dateFilter.to,
50
+ boundedFilter: workingFilter.dateFilter.boundedFilter,
51
+ emptyValueHandling: workingFilter.dateFilter.emptyValueHandling,
52
+ },
53
+ };
54
+ const { from, to } = dateFilter.dateFilter;
55
+ if (from === undefined && to === undefined) {
56
+ delete dateFilter.dateFilter.from;
57
+ delete dateFilter.dateFilter.to;
58
+ }
59
+ return dateFilter;
60
+ }
5
61
  /**
6
62
  * Deeply merges partial working filter context into filter context definition.
7
63
  * @returns full working filter context.
@@ -48,31 +104,23 @@ export function applyFilterContext(filterContext, workingFilterContext, enableIm
48
104
  dashboardAttributeFilterItemLocalIdentifier(item) === appliedLocalId);
49
105
  return (workingFilter ?? appliedFilter);
50
106
  }
107
+ else if (isDashboardCommonDateFilterOfAnyType(appliedFilter)) {
108
+ const workingFilter = workingFilterContext?.filters.find(isDashboardCommonDateFilterOfAnyType);
109
+ return workingFilter ? mergeCommonDateFilter(appliedFilter, workingFilter) : appliedFilter;
110
+ }
51
111
  else if (isDashboardDateFilter(appliedFilter)) {
52
112
  const workingFilter = workingFilterContext?.filters
53
113
  ?.filter(isDashboardDateFilter)
54
- .find((item) => areObjRefsEqual(item.dateFilter.dataSet, appliedFilter.dateFilter.dataSet) ||
55
- (!item.dateFilter.dataSet && !appliedFilter.dateFilter.dataSet));
114
+ .find((item) => areObjRefsEqual(item.dateFilter.dataSet, appliedFilter.dateFilter.dataSet));
56
115
  if (!workingFilter?.dateFilter) {
57
116
  return appliedFilter;
58
117
  }
59
- const dateFilter = {
60
- dateFilter: {
61
- ...appliedFilter.dateFilter,
62
- type: workingFilter.dateFilter.type,
63
- granularity: workingFilter.dateFilter.granularity,
64
- from: workingFilter.dateFilter.from,
65
- to: workingFilter.dateFilter.to,
66
- boundedFilter: workingFilter.dateFilter.boundedFilter,
67
- emptyValueHandling: workingFilter.dateFilter.emptyValueHandling,
68
- },
69
- };
70
- const { from, to } = dateFilter.dateFilter;
71
- if (from === undefined && to === undefined) {
72
- delete dateFilter.dateFilter.from;
73
- delete dateFilter.dateFilter.to;
74
- }
75
- return dateFilter;
118
+ return mergeDateFilter(appliedFilter, workingFilter);
119
+ }
120
+ else if (isDashboardAbsoluteGranularityDateFilter(appliedFilter) ||
121
+ isDashboardParameterizedDateFilter(appliedFilter)) {
122
+ // TODO MC-5776: date filters with a dimension are not merged yet, the dashboard rejects them.
123
+ return appliedFilter;
76
124
  }
77
125
  else if (isDashboardMeasureValueFilter(appliedFilter)) {
78
126
  const workingFilter = workingFilterContext?.filters
@@ -93,8 +141,8 @@ export function applyFilterContext(filterContext, workingFilterContext, enableIm
93
141
  throw new Error("Unknown filter type");
94
142
  }
95
143
  });
96
- const appliedCommonDateFilter = filterContext.filters.find(isDashboardCommonDateFilter);
97
- const workingCommonDateFilter = workingFilterContext?.filters.find(isDashboardCommonDateFilter);
144
+ const appliedCommonDateFilter = filterContext.filters.find(isDashboardCommonDateFilterOfAnyType);
145
+ const workingCommonDateFilter = workingFilterContext?.filters.find(isDashboardCommonDateFilterOfAnyType);
98
146
  if (appliedCommonDateFilter ||
99
147
  !workingCommonDateFilter ||
100
148
  // Drop the working common date filter only when it is a true no-op All time filter.
@@ -155,7 +203,7 @@ export function initializeFilterContextDefinition(filterContextDefinition) {
155
203
  // (when DateFilter is set to all time it's missing in filterContextDefinition and originalFilterContextDefinition)
156
204
  // We have to keep order of rest of array (attributeFilters and date filters with dimension)
157
205
  // it represents order of filters in filter bar
158
- const [commonDateFilter, otherFilters] = _partition(filtersWithLocalId, isDashboardCommonDateFilter);
206
+ const [commonDateFilter, otherFilters] = _partition(filtersWithLocalId, isDashboardCommonDateFilterOfAnyType);
159
207
  const filters = [...commonDateFilter, ...otherFilters];
160
208
  return {
161
209
  ...filterContextDefinition,
@@ -207,6 +255,14 @@ export function getFilterIdentifier(filter) {
207
255
  if (isDashboardDateFilter(filter)) {
208
256
  return ((filter.dateFilter.dataSet && objRefToString(filter.dateFilter.dataSet)) ?? "default_date_filter");
209
257
  }
258
+ if (isDashboardAbsoluteGranularityDateFilter(filter)) {
259
+ const { dataSet } = filter.dashboardAbsoluteGranularityDateFilter;
260
+ return (dataSet && objRefToString(dataSet)) ?? "default_date_filter";
261
+ }
262
+ if (isDashboardParameterizedDateFilter(filter)) {
263
+ const { dataSet } = filter.dashboardParameterizedDateFilter;
264
+ return (dataSet && objRefToString(dataSet)) ?? "default_date_filter";
265
+ }
210
266
  if (isDashboardMeasureValueFilter(filter)) {
211
267
  return dashboardMeasureValueFilterLocalIdentifier(filter);
212
268
  }
@@ -1,5 +1,5 @@
1
1
  import { type IAttributeWithReferences } from "@gooddata/sdk-backend-spi";
2
- import { type DashboardAttributeFilterItem, type FilterContextItem, type ObjRef, type ParameterValue } from "@gooddata/sdk-model";
2
+ import { type DashboardAttributeFilterItem, type DashboardDateFilterOfAnyType, type FilterContextItem, type ObjRef, type ParameterValue } from "@gooddata/sdk-model";
3
3
  import { type ITabState } from "../tabsState.js";
4
4
  import { type WorkingFilterContextItem } from "./filterContextState.js";
5
5
  type StagedFilter = FilterContextItem | WorkingFilterContextItem;
@@ -40,6 +40,12 @@ export declare function isCrossFilteringVirtualFilter(tab: ITabState, localIdent
40
40
  * @internal
41
41
  */
42
42
  export declare function findCounterpartFilter(sourceTab: ITabState, sourceFilter: FilterContextItem, targetTab: ITabState, attributesWithReferences?: IAttributeWithReferences[], options?: IFindCounterpartOptions): FilterContextItem | undefined;
43
+ /**
44
+ * The common date filter with the local identifier, also when the identifier is undefined.
45
+ *
46
+ * @internal
47
+ */
48
+ export declare function withCommonDateFilterLocalIdentifier(filter: DashboardDateFilterOfAnyType, localIdentifier: string | undefined): DashboardDateFilterOfAnyType;
43
49
  /**
44
50
  * The saved initial filter on `tab` that corresponds to `appliedFilter`.
45
51
  * Same-tab `localIdentifier` wins; identity matching is the fallback.
@@ -1 +1 @@
1
- {"version":3,"file":"filterSync.d.ts","sourceRoot":"","sources":["../../../../../src/model/store/tabs/filterContext/filterSync.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,wBAAwB,EAAE,MAAM,2BAA2B,CAAC;AAC1E,OAAO,EACH,KAAK,4BAA4B,EACjC,KAAK,iBAAiB,EAItB,KAAK,MAAM,EACX,KAAK,cAAc,EAgBtB,MAAM,qBAAqB,CAAC;AAI7B,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAEjD,OAAO,EAAE,KAAK,wBAAwB,EAAE,MAAM,yBAAyB,CAAC;AAExE,KAAK,YAAY,GAAG,iBAAiB,GAAG,wBAAwB,CAAC;AAEjE;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACpC;;OAEG;IACH,QAAQ,CAAC,2BAA2B,CAAC,EAAE,2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AAC;IACrB,QAAQ,CAAC,KAAK,EAAE,cAAc,GAAG,SAAS,CAAC;CAC9C;AAED;;;;;;;GAOG;AACH,wBAAgB,sBAAsB,CAAC,GAAG,EAAE,SAAS,EAAE,SAAS,EAAE,kBAAkB,GAAG,IAAI,CAuB1F;AAED;;;;GAIG;AACH,wBAAgB,0BAA0B,CACtC,GAAG,EAAE,SAAS,EACd,MAAM,EAAE,YAAY,GACrB,iBAAiB,GAAG,SAAS,CAiB/B;AA4GD;;;;;;;;;;;;;GAaG;AACH,wBAAgB,iCAAiC,CAC7C,SAAS,EAAE,SAAS,EACpB,YAAY,EAAE,4BAA4B,EAC1C,KAAK,EAAE,4BAA4B,GACpC,OAAO,CAiBT"}
1
+ {"version":3,"file":"filterSync.d.ts","sourceRoot":"","sources":["../../../../../src/model/store/tabs/filterContext/filterSync.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,wBAAwB,EAAE,MAAM,2BAA2B,CAAC;AAC1E,OAAO,EACH,KAAK,4BAA4B,EACjC,KAAK,4BAA4B,EACjC,KAAK,iBAAiB,EAItB,KAAK,MAAM,EACX,KAAK,cAAc,EAmBtB,MAAM,qBAAqB,CAAC;AAI7B,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAEjD,OAAO,EAAE,KAAK,wBAAwB,EAAE,MAAM,yBAAyB,CAAC;AAExE,KAAK,YAAY,GAAG,iBAAiB,GAAG,wBAAwB,CAAC;AAKjE;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACpC;;OAEG;IACH,QAAQ,CAAC,2BAA2B,CAAC,EAAE,2BAA2B,CAAC;CACtE;AAED;;;;;GAKG;AACH,MAAM,MAAM,2BAA2B,GAAG,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,CAAC,CAAC,CAAC;AAEtF;;;;;GAKG;AACH,wBAAgB,6BAA6B,CACzC,GAAG,EAAE,SAAS,EACd,eAAe,EAAE,MAAM,GAAG,S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