@gooddata/sdk-ui-dashboard 11.71.0-alpha.0 → 11.71.0-alpha.2

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 (312) 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/dashboard/absoluteGranularityDateFilters.d.ts +0 -7
  5. package/esm/_staging/dashboard/absoluteGranularityDateFilters.d.ts.map +1 -1
  6. package/esm/_staging/dashboard/absoluteGranularityDateFilters.js +0 -17
  7. package/esm/_staging/dashboard/dashboardFilterContext.d.ts.map +1 -1
  8. package/esm/_staging/dashboard/dashboardFilterContext.js +9 -1
  9. package/esm/_staging/dashboard/dashboardFilterConverter.d.ts.map +1 -1
  10. package/esm/_staging/dashboard/dashboardFilterConverter.js +13 -5
  11. package/esm/_staging/dashboard/parameterizedDateFilters.d.ts +1 -6
  12. package/esm/_staging/dashboard/parameterizedDateFilters.d.ts.map +1 -1
  13. package/esm/_staging/dashboard/parameterizedDateFilters.js +1 -13
  14. package/esm/_staging/dateFilterConfig/periodPresets.d.ts +11 -0
  15. package/esm/_staging/dateFilterConfig/periodPresets.d.ts.map +1 -0
  16. package/esm/_staging/dateFilterConfig/periodPresets.js +15 -0
  17. package/esm/_staging/sharedHooks/useDateFiltersTitles.d.ts +2 -2
  18. package/esm/_staging/sharedHooks/useDateFiltersTitles.d.ts.map +1 -1
  19. package/esm/_staging/sharedHooks/useDateFiltersTitles.js +7 -5
  20. package/esm/_staging/sharedHooks/useFiltersNamings.d.ts.map +1 -1
  21. package/esm/_staging/sharedHooks/useFiltersNamings.js +18 -10
  22. package/esm/index.d.ts +4 -4
  23. package/esm/index.d.ts.map +1 -1
  24. package/esm/index.js +3 -3
  25. package/esm/kdaDialog/components/KdaSummaryHeadline.d.ts.map +1 -1
  26. package/esm/kdaDialog/components/KdaSummaryHeadline.js +3 -1
  27. package/esm/kdaDialog/components/bars/DateBar.js +1 -1
  28. package/esm/kdaDialog/composition/KeyDriversPanel.d.ts.map +1 -1
  29. package/esm/kdaDialog/composition/KeyDriversPanel.js +5 -2
  30. package/esm/kdaDialog/dialog/KdaDialog.d.ts.map +1 -1
  31. package/esm/kdaDialog/dialog/KdaDialog.js +4 -3
  32. package/esm/kdaDialog/dialog/KdaDialogActionButtons.d.ts +5 -1
  33. package/esm/kdaDialog/dialog/KdaDialogActionButtons.d.ts.map +1 -1
  34. package/esm/kdaDialog/dialog/KdaDialogActionButtons.js +33 -5
  35. package/esm/kdaDialog/dialog/KdaDialogFloatingStatusBar.d.ts +5 -1
  36. package/esm/kdaDialog/dialog/KdaDialogFloatingStatusBar.d.ts.map +1 -1
  37. package/esm/kdaDialog/dialog/KdaDialogFloatingStatusBar.js +2 -2
  38. package/esm/kdaDialog/dialog/KdaReplaceConfirmationDialog.d.ts.map +1 -1
  39. package/esm/kdaDialog/dialog/KdaReplaceConfirmationDialog.js +9 -1
  40. package/esm/kdaDialog/utils.d.ts +6 -1
  41. package/esm/kdaDialog/utils.d.ts.map +1 -1
  42. package/esm/kdaDialog/utils.js +7 -2
  43. package/esm/model/commandHandlers/dashboard/changeDashboardDefinitionHandler.d.ts.map +1 -1
  44. package/esm/model/commandHandlers/dashboard/changeDashboardDefinitionHandler.js +5 -10
  45. package/esm/model/commandHandlers/dashboard/changeDateFilterTitleHandler.d.ts.map +1 -1
  46. package/esm/model/commandHandlers/dashboard/changeDateFilterTitleHandler.js +8 -6
  47. package/esm/model/commandHandlers/dashboard/changeDateFilterWithDimensionModeHandler.d.ts.map +1 -1
  48. package/esm/model/commandHandlers/dashboard/changeDateFilterWithDimensionModeHandler.js +10 -6
  49. package/esm/model/commandHandlers/dashboard/common/filterViews.d.ts.map +1 -1
  50. package/esm/model/commandHandlers/dashboard/common/filterViews.js +28 -29
  51. package/esm/model/commandHandlers/dashboard/common/stateInitializers.d.ts.map +1 -1
  52. package/esm/model/commandHandlers/dashboard/common/stateInitializers.js +7 -8
  53. package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/index.d.ts.map +1 -1
  54. package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/index.js +0 -6
  55. package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/loadDashboardParameters.d.ts +1 -2
  56. package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/loadDashboardParameters.d.ts.map +1 -1
  57. package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/loadDashboardParameters.js +1 -2
  58. package/esm/model/commandHandlers/drill/crossFilteringHandler.d.ts.map +1 -1
  59. package/esm/model/commandHandlers/drill/crossFilteringHandler.js +1 -0
  60. package/esm/model/commandHandlers/drill/drillToDashboardHandler.js +5 -6
  61. package/esm/model/commandHandlers/filterContext/changeFilterContextSelectionHandler.d.ts.map +1 -1
  62. package/esm/model/commandHandlers/filterContext/changeFilterContextSelectionHandler.js +81 -64
  63. package/esm/model/commandHandlers/filterContext/dateFilter/addDateFilterHandler.js +2 -2
  64. package/esm/model/commandHandlers/filterContext/dateFilter/changeDateFilterSelectionHandler.d.ts.map +1 -1
  65. package/esm/model/commandHandlers/filterContext/dateFilter/changeDateFilterSelectionHandler.js +2 -6
  66. package/esm/model/commandHandlers/filterContext/dateFilter/moveDateFilterHandler.d.ts.map +1 -1
  67. package/esm/model/commandHandlers/filterContext/dateFilter/moveDateFilterHandler.js +8 -4
  68. package/esm/model/commandHandlers/filterContext/dateFilter/removeDateFiltersHandler.d.ts.map +1 -1
  69. package/esm/model/commandHandlers/filterContext/dateFilter/removeDateFiltersHandler.js +21 -17
  70. package/esm/model/commandHandlers/filterContext/dateFilter/validation/uniqueFiltersValidation.d.ts +2 -2
  71. package/esm/model/commandHandlers/filterContext/dateFilter/validation/uniqueFiltersValidation.d.ts.map +1 -1
  72. package/esm/model/commandHandlers/filterContext/dateFilter/validation/uniqueFiltersValidation.js +2 -2
  73. package/esm/model/commandHandlers/filterContext/filterViewHandler.d.ts.map +1 -1
  74. package/esm/model/commandHandlers/filterContext/filterViewHandler.js +1 -11
  75. package/esm/model/commandHandlers/filterContext/removeRestrictedFiltersHandler.d.ts.map +1 -1
  76. package/esm/model/commandHandlers/filterContext/removeRestrictedFiltersHandler.js +3 -3
  77. package/esm/model/commandHandlers/filterContext/tabSync/tabSyncRules.d.ts.map +1 -1
  78. package/esm/model/commandHandlers/filterContext/tabSync/tabSyncRules.js +13 -6
  79. package/esm/model/commandHandlers/widgets/changeInsightWidgetFilterSettingsHandler.d.ts.map +1 -1
  80. package/esm/model/commandHandlers/widgets/changeInsightWidgetFilterSettingsHandler.js +2 -2
  81. package/esm/model/commandHandlers/widgets/changeRichTextWidgetFilterSettingsHandler.d.ts.map +1 -1
  82. package/esm/model/commandHandlers/widgets/changeRichTextWidgetFilterSettingsHandler.js +2 -2
  83. package/esm/model/commandHandlers/widgets/common/filterOperations.d.ts +3 -3
  84. package/esm/model/commandHandlers/widgets/common/filterOperations.d.ts.map +1 -1
  85. package/esm/model/commandHandlers/widgets/common/filterOperations.js +14 -14
  86. package/esm/model/commandHandlers/widgets/common/filterReferences.d.ts +2 -2
  87. package/esm/model/commandHandlers/widgets/common/filterReferences.d.ts.map +1 -1
  88. package/esm/model/commandHandlers/widgets/common/filterReferences.js +1 -1
  89. package/esm/model/commandHandlers/widgets/validation/filterValidation.d.ts +2 -2
  90. package/esm/model/commandHandlers/widgets/validation/filterValidation.d.ts.map +1 -1
  91. package/esm/model/commandHandlers/widgets/validation/filterValidation.js +4 -4
  92. package/esm/model/commands/filters.d.ts +1 -2
  93. package/esm/model/commands/filters.d.ts.map +1 -1
  94. package/esm/model/events/base.d.ts +1 -1
  95. package/esm/model/events/base.d.ts.map +1 -1
  96. package/esm/model/events/filters.d.ts +107 -0
  97. package/esm/model/events/filters.d.ts.map +1 -1
  98. package/esm/model/events/filters.js +54 -0
  99. package/esm/model/events/index.d.ts +2 -2
  100. package/esm/model/events/index.d.ts.map +1 -1
  101. package/esm/model/events/insight.d.ts +12 -2
  102. package/esm/model/events/insight.d.ts.map +1 -1
  103. package/esm/model/events/insight.js +2 -1
  104. package/esm/model/events/richText.d.ts +12 -2
  105. package/esm/model/events/richText.d.ts.map +1 -1
  106. package/esm/model/events/richText.js +2 -1
  107. package/esm/model/react/useWidgetFilters.d.ts.map +1 -1
  108. package/esm/model/react/useWidgetFilters.js +8 -10
  109. package/esm/model/store/config/configSelectors.d.ts +6 -0
  110. package/esm/model/store/config/configSelectors.d.ts.map +1 -1
  111. package/esm/model/store/config/configSelectors.js +8 -0
  112. package/esm/model/store/filtering/dashboardFilterSelectors.d.ts.map +1 -1
  113. package/esm/model/store/filtering/dashboardFilterSelectors.js +20 -39
  114. package/esm/model/store/insights/insightsSelectors.d.ts.map +1 -1
  115. package/esm/model/store/insights/insightsSelectors.js +9 -3
  116. package/esm/model/store/meta/metaSelectors.js +3 -3
  117. package/esm/model/store/tabs/filterContext/filterContextReducers.d.ts +28 -2
  118. package/esm/model/store/tabs/filterContext/filterContextReducers.d.ts.map +1 -1
  119. package/esm/model/store/tabs/filterContext/filterContextReducers.js +36 -25
  120. package/esm/model/store/tabs/filterContext/filterContextSelectors.d.ts +43 -3
  121. package/esm/model/store/tabs/filterContext/filterContextSelectors.d.ts.map +1 -1
  122. package/esm/model/store/tabs/filterContext/filterContextSelectors.js +53 -9
  123. package/esm/model/store/tabs/filterContext/filterContextUtils.d.ts.map +1 -1
  124. package/esm/model/store/tabs/filterContext/filterContextUtils.js +18 -20
  125. package/esm/model/store/tabs/filterContext/filterSync.d.ts +7 -0
  126. package/esm/model/store/tabs/filterContext/filterSync.d.ts.map +1 -1
  127. package/esm/model/store/tabs/filterContext/filterSync.js +32 -44
  128. package/esm/model/utils/widgetFilters.d.ts.map +1 -1
  129. package/esm/model/utils/widgetFilters.js +4 -3
  130. package/esm/presentation/automations/connectors/AlertingConnector.d.ts.map +1 -1
  131. package/esm/presentation/automations/connectors/AlertingConnector.js +6 -0
  132. package/esm/presentation/automations/connectors/ScheduledEmailConnector.d.ts.map +1 -1
  133. package/esm/presentation/automations/connectors/ScheduledEmailConnector.js +6 -0
  134. package/esm/presentation/automations/connectors/hooks/useAutomationManagementEditRouting.d.ts +1 -0
  135. package/esm/presentation/automations/connectors/hooks/useAutomationManagementEditRouting.d.ts.map +1 -1
  136. package/esm/presentation/automations/connectors/hooks/useAutomationManagementEditRouting.js +56 -2
  137. package/esm/presentation/automations/connectors/hooks/useBuildAutomationsContext.d.ts.map +1 -1
  138. package/esm/presentation/automations/connectors/hooks/useBuildAutomationsContext.js +4 -1
  139. package/esm/presentation/automations/connectors/hooks/useParameterizedDateFilterBlocksAutomation.d.ts +10 -0
  140. package/esm/presentation/automations/connectors/hooks/useParameterizedDateFilterBlocksAutomation.d.ts.map +1 -0
  141. package/esm/presentation/automations/connectors/hooks/useParameterizedDateFilterBlocksAutomation.js +20 -0
  142. package/esm/presentation/automations/contexts/AutomationsContext.d.ts +2 -0
  143. package/esm/presentation/automations/contexts/AutomationsContext.d.ts.map +1 -1
  144. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailManagementDialog/DefaultScheduledEmailManagementDialogContent.d.ts.map +1 -1
  145. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailManagementDialog/DefaultScheduledEmailManagementDialogContent.js +5 -3
  146. package/esm/presentation/automations/shared/automationFilters/components/AutomationFiltersSelect.d.ts.map +1 -1
  147. package/esm/presentation/automations/shared/automationFilters/components/AutomationFiltersSelect.js +6 -4
  148. package/esm/presentation/automations/shared/automationFilters/useAutomationFilters.d.ts +2 -1
  149. package/esm/presentation/automations/shared/automationFilters/useAutomationFilters.d.ts.map +1 -1
  150. package/esm/presentation/automations/shared/automationFilters/useAutomationFilters.js +43 -7
  151. package/esm/presentation/automations/shared/components/ParameterizedDateFilterNotSupportedDialog.d.ts +12 -0
  152. package/esm/presentation/automations/shared/components/ParameterizedDateFilterNotSupportedDialog.d.ts.map +1 -0
  153. package/esm/presentation/automations/shared/components/ParameterizedDateFilterNotSupportedDialog.js +31 -0
  154. package/esm/presentation/automations/shared/hooks/useFiltersNamings.d.ts.map +1 -1
  155. package/esm/presentation/automations/shared/hooks/useFiltersNamings.js +1 -0
  156. package/esm/presentation/constants/automations.d.ts +1 -0
  157. package/esm/presentation/constants/automations.d.ts.map +1 -1
  158. package/esm/presentation/constants/automations.js +19 -0
  159. package/esm/presentation/dashboard/components/DashboardInner.d.ts.map +1 -1
  160. package/esm/presentation/dashboard/components/DashboardInner.js +18 -10
  161. package/esm/presentation/dragAndDrop/draggableDateFilter/DefaultDateFilterDraggingComponent.d.ts.map +1 -1
  162. package/esm/presentation/dragAndDrop/draggableDateFilter/DefaultDateFilterDraggingComponent.js +3 -2
  163. package/esm/presentation/dragAndDrop/draggableDateFilter/DraggableDateFilter.d.ts +3 -3
  164. package/esm/presentation/dragAndDrop/draggableDateFilter/DraggableDateFilter.d.ts.map +1 -1
  165. package/esm/presentation/dragAndDrop/draggableDateFilter/DraggableDateFilter.js +1 -1
  166. package/esm/presentation/dragAndDrop/draggableFilterDropZone/DraggableFilterDropZoneHint.d.ts.map +1 -1
  167. package/esm/presentation/dragAndDrop/draggableFilterDropZone/DraggableFilterDropZoneHint.js +2 -2
  168. package/esm/presentation/dragAndDrop/types.d.ts +2 -2
  169. package/esm/presentation/dragAndDrop/types.d.ts.map +1 -1
  170. package/esm/presentation/dragAndDrop/useFilterDeleteDrop.d.ts.map +1 -1
  171. package/esm/presentation/dragAndDrop/useFilterDeleteDrop.js +2 -2
  172. package/esm/presentation/filterBar/attributeFilter/AttributeFilterParentFilteringContext.d.ts.map +1 -1
  173. package/esm/presentation/filterBar/attributeFilter/AttributeFilterParentFilteringContext.js +3 -3
  174. package/esm/presentation/filterBar/attributeFilter/dashboardDropdownBody/configuration/hooks/useDependentDateFilterConfigurationState.d.ts +15 -3
  175. package/esm/presentation/filterBar/attributeFilter/dashboardDropdownBody/configuration/hooks/useDependentDateFilterConfigurationState.d.ts.map +1 -1
  176. package/esm/presentation/filterBar/attributeFilter/dashboardDropdownBody/configuration/hooks/useDependentDateFilterConfigurationState.js +27 -31
  177. package/esm/presentation/filterBar/attributeFilter/dashboardDropdownBody/configuration/hooks/useDependentDateFiltersConfiguration.d.ts +3 -3
  178. package/esm/presentation/filterBar/attributeFilter/dashboardDropdownBody/configuration/hooks/useDependentDateFiltersConfiguration.d.ts.map +1 -1
  179. package/esm/presentation/filterBar/attributeFilter/dashboardDropdownBody/configuration/hooks/useDependentDateFiltersConfiguration.js +3 -2
  180. package/esm/presentation/filterBar/attributeFilter/dashboardDropdownBody/configuration/limitValues/LimitValuesConfiguration.d.ts +2 -2
  181. package/esm/presentation/filterBar/attributeFilter/dashboardDropdownBody/configuration/limitValues/LimitValuesConfiguration.d.ts.map +1 -1
  182. package/esm/presentation/filterBar/attributeFilter/dashboardDropdownBody/configuration/limitValues/dialog/AddLimitingItemDialog.d.ts +2 -2
  183. package/esm/presentation/filterBar/attributeFilter/dashboardDropdownBody/configuration/limitValues/dialog/AddLimitingItemDialog.d.ts.map +1 -1
  184. package/esm/presentation/filterBar/attributeFilter/dashboardDropdownBody/configuration/limitValues/dialog/DateFiltersPage.d.ts +2 -2
  185. package/esm/presentation/filterBar/attributeFilter/dashboardDropdownBody/configuration/limitValues/dialog/DateFiltersPage.d.ts.map +1 -1
  186. package/esm/presentation/filterBar/attributeFilter/dashboardDropdownBody/configuration/limitValues/dialog/DateFiltersPage.js +1 -1
  187. package/esm/presentation/filterBar/attributeFilter/dashboardDropdownBody/configuration/limitValues/dialog/ParentFiltersPage.d.ts +2 -2
  188. package/esm/presentation/filterBar/attributeFilter/dashboardDropdownBody/configuration/limitValues/dialog/ParentFiltersPage.d.ts.map +1 -1
  189. package/esm/presentation/filterBar/attributeFilter/dashboardDropdownBody/configuration/limitValues/shared/limitingItemsHook.d.ts +3 -3
  190. package/esm/presentation/filterBar/attributeFilter/dashboardDropdownBody/configuration/limitValues/shared/limitingItemsHook.d.ts.map +1 -1
  191. package/esm/presentation/filterBar/attributeFilter/dashboardDropdownBody/configuration/limitValues/shared/limitingItemsHook.js +2 -4
  192. package/esm/presentation/filterBar/attributeFilter/useDependentDateFilters.d.ts.map +1 -1
  193. package/esm/presentation/filterBar/attributeFilter/useDependentDateFilters.js +42 -20
  194. package/esm/presentation/filterBar/dateFilter/DefaultDashboardDateFilter.d.ts.map +1 -1
  195. package/esm/presentation/filterBar/dateFilter/DefaultDashboardDateFilter.js +10 -7
  196. package/esm/presentation/filterBar/filterBar/DefaultFilterBar.d.ts.map +1 -1
  197. package/esm/presentation/filterBar/filterBar/DefaultFilterBar.js +3 -3
  198. package/esm/presentation/filterBar/filterBar/DefaultFilterBarContainer.d.ts.map +1 -1
  199. package/esm/presentation/filterBar/filterBar/DefaultFilterBarContainer.js +13 -4
  200. package/esm/presentation/filterBar/filterBar/DefaultFilterBarItem.d.ts.map +1 -1
  201. package/esm/presentation/filterBar/filterBar/DefaultFilterBarItem.js +9 -8
  202. package/esm/presentation/filterBar/filterBar/filterGroupUtils.js +3 -3
  203. package/esm/presentation/filterBar/filterBar/filterViews/FilterViews.d.ts.map +1 -1
  204. package/esm/presentation/filterBar/filterBar/filterViews/FilterViews.js +13 -2
  205. package/esm/presentation/filterBar/filterBar/hooks/useResetFiltersButton.d.ts.map +1 -1
  206. package/esm/presentation/filterBar/filterBar/hooks/useResetFiltersButton.js +5 -1
  207. package/esm/presentation/filterBar/filterBar/useFiltersWithAddedPlaceholder.d.ts +3 -3
  208. package/esm/presentation/filterBar/filterBar/useFiltersWithAddedPlaceholder.d.ts.map +1 -1
  209. package/esm/presentation/filterBar/filterBar/useFiltersWithAddedPlaceholder.js +9 -9
  210. package/esm/presentation/filterBar/utils.d.ts.map +1 -1
  211. package/esm/presentation/filterBar/utils.js +2 -2
  212. package/esm/presentation/localization/bundles/de-DE.localization-bundle.d.ts +13 -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 +20 -7
  215. package/esm/presentation/localization/bundles/en-AU.localization-bundle.d.ts +13 -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 +13 -0
  218. package/esm/presentation/localization/bundles/en-GB.localization-bundle.d.ts +13 -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 +15 -2
  221. package/esm/presentation/localization/bundles/en-US.localization-bundle.d.ts +20 -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 +20 -0
  224. package/esm/presentation/localization/bundles/es-419.localization-bundle.d.ts +13 -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 +14 -1
  227. package/esm/presentation/localization/bundles/es-ES.localization-bundle.d.ts +13 -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 +15 -2
  230. package/esm/presentation/localization/bundles/fi-FI.localization-bundle.d.ts +13 -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 +13 -0
  233. package/esm/presentation/localization/bundles/fr-CA.localization-bundle.d.ts +13 -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 +16 -3
  236. package/esm/presentation/localization/bundles/fr-FR.localization-bundle.d.ts +13 -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 +16 -3
  239. package/esm/presentation/localization/bundles/id-ID.localization-bundle.d.ts +13 -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 +13 -0
  242. package/esm/presentation/localization/bundles/it-IT.localization-bundle.d.ts +13 -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 +17 -4
  245. package/esm/presentation/localization/bundles/ja-JP.localization-bundle.d.ts +13 -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 +13 -0
  248. package/esm/presentation/localization/bundles/ko-KR.localization-bundle.d.ts +13 -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 +14 -1
  251. package/esm/presentation/localization/bundles/nl-NL.localization-bundle.d.ts +13 -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 +17 -4
  254. package/esm/presentation/localization/bundles/pl-PL.localization-bundle.d.ts +13 -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 +13 -0
  257. package/esm/presentation/localization/bundles/pt-BR.localization-bundle.d.ts +13 -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 +15 -2
  260. package/esm/presentation/localization/bundles/pt-PT.localization-bundle.d.ts +13 -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 +20 -7
  263. package/esm/presentation/localization/bundles/ru-RU.localization-bundle.d.ts +13 -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 +13 -0
  266. package/esm/presentation/localization/bundles/sl-SI.localization-bundle.d.ts +13 -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 +13 -0
  269. package/esm/presentation/localization/bundles/th-TH.localization-bundle.d.ts +13 -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 +13 -0
  272. package/esm/presentation/localization/bundles/tr-TR.localization-bundle.d.ts +13 -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 +13 -0
  275. package/esm/presentation/localization/bundles/uk-UA.localization-bundle.d.ts +13 -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 +13 -0
  278. package/esm/presentation/localization/bundles/vi-VN.localization-bundle.d.ts +13 -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 +13 -0
  281. package/esm/presentation/localization/bundles/zh-HK.localization-bundle.d.ts +13 -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 +22 -9
  284. package/esm/presentation/localization/bundles/zh-Hans.localization-bundle.d.ts +13 -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 +14 -1
  287. package/esm/presentation/localization/bundles/zh-Hant.localization-bundle.d.ts +13 -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 +17 -4
  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/widget/common/configuration/DateDatasetFilter.js +2 -2
  293. package/esm/presentation/widget/common/configuration/FilterConfiguration.d.ts.map +1 -1
  294. package/esm/presentation/widget/common/configuration/FilterConfiguration.js +5 -4
  295. package/esm/presentation/widget/insight/ViewModeDashboardInsight/InsightDrillDialog/DrillDialogInsight.d.ts.map +1 -1
  296. package/esm/presentation/widget/insight/ViewModeDashboardInsight/InsightDrillDialog/DrillDialogInsight.js +9 -2
  297. package/esm/presentation/widget/insight/ViewModeDashboardInsight/InsightDrillDialog/InsightDrillDialog.d.ts.map +1 -1
  298. package/esm/presentation/widget/insight/ViewModeDashboardInsight/InsightDrillDialog/InsightDrillDialog.js +3 -21
  299. package/esm/presentation/widget/insight/ViewModeDashboardInsight/InsightDrillDialog/getDrillDialogInsightDescription.d.ts +6 -0
  300. package/esm/presentation/widget/insight/ViewModeDashboardInsight/InsightDrillDialog/getDrillDialogInsightDescription.d.ts.map +1 -0
  301. package/esm/presentation/widget/insight/ViewModeDashboardInsight/InsightDrillDialog/getDrillDialogInsightDescription.js +24 -0
  302. package/esm/presentation/widget/insight/configuration/DrillFilters/drillFiltersConfigUtils.d.ts.map +1 -1
  303. package/esm/presentation/widget/insight/configuration/DrillFilters/drillFiltersConfigUtils.js +3 -3
  304. package/esm/presentation/widget/insight/configuration/DrillFilters/optionMappings/mapDashboardFilterToOption.d.ts.map +1 -1
  305. package/esm/presentation/widget/insight/configuration/DrillFilters/optionMappings/mapDashboardFilterToOption.js +5 -4
  306. package/esm/sdk-ui-dashboard.d.ts +231 -14
  307. package/package.json +23 -23
  308. package/styles/css/kdaDialog.css +7 -0
  309. package/styles/css/kdaDialog.css.map +1 -1
  310. package/styles/css/main.css +17 -0
  311. package/styles/css/main.css.map +1 -1
  312. package/styles/scss/kdaDialog.scss +11 -0
@@ -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, isDashboardCommonDateFilterOfAnyType, isDashboardDateFilterWithDimension, isDashboardMeasureValueFilter, isDashboardTextAttributeFilter, isObjRef, } from "@gooddata/sdk-model";
5
+ import { areObjRefsEqual, dashboardAttributeFilterItemDisplayForm, dashboardAttributeFilterItemFilterElementsBy, dashboardAttributeFilterItemFilterElementsByDate, dashboardAttributeFilterItemLocalIdentifier, dashboardAttributeFilterItemTitle, dashboardFilterLocalIdentifier, dashboardFilterObjRef, getAttributeElementsItems, isDashboardAttributeFilter, isDashboardAttributeFilterItem, isDashboardCommonDateFilter, isDashboardCommonDateFilterOfAnyType, isDashboardDateFilterWithDimension, isDashboardDateFilterWithDimensionOfAnyType, 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";
@@ -411,6 +411,19 @@ export const selectFilterContextDraggableFilters = createSelector(selectFilterCo
411
411
  export const selectFilterContextDraggableFilterItems = createSelector(selectFilterContextFilters, (filters) => filters.filter((f) => isDashboardDateFilterWithDimension(f) ||
412
412
  isDashboardAttributeFilterItem(f) ||
413
413
  isDashboardMeasureValueFilter(f)));
414
+ /**
415
+ * This selector returns all dashboard's filter context draggable filters, like
416
+ * {@link selectFilterContextDraggableFilterItems}, with date filters with a dimension of any type.
417
+ *
418
+ * @remarks
419
+ * It is expected that the selector is called only after the filter context state is correctly initialized.
420
+ * Invocations before initialization lead to invariant errors.
421
+ *
422
+ * @alpha
423
+ */
424
+ export const selectFilterContextDraggableFilterItemsOfAnyType = createSelector(selectFilterContextFilters, (filters) => filters.filter((f) => isDashboardDateFilterWithDimensionOfAnyType(f) ||
425
+ isDashboardAttributeFilterItem(f) ||
426
+ isDashboardMeasureValueFilter(f)));
414
427
  /**
415
428
  * This selector returns dashboard's applied filter context measure value filters.
416
429
  *
@@ -461,6 +474,26 @@ export const selectFilterContextDateFiltersWithDimension = createSelector(select
461
474
  * @public
462
475
  */
463
476
  export const selectWorkingFilterContextDateFiltersWithDimension = createSelector(selectWorkingFilterContextFilters, (filters) => filters.filter(isDashboardDateFilterWithDimension));
477
+ /**
478
+ * This selector returns dashboard's filter context date filters with dimension specified, of any type.
479
+ *
480
+ * @remarks
481
+ * It is expected that the selector is called only after the filter context state is correctly initialized.
482
+ * Invocations before initialization lead to invariant errors.
483
+ *
484
+ * @alpha
485
+ */
486
+ export const selectFilterContextDateFiltersWithDimensionOfAnyType = createSelector(selectFilterContextFilters, (filters) => filters.filter(isDashboardDateFilterWithDimensionOfAnyType));
487
+ /**
488
+ * This selector returns dashboard's working filter context date filters with dimension specified, of any type.
489
+ *
490
+ * @remarks
491
+ * It is expected that the selector is called only after the filter context state is correctly initialized.
492
+ * Invocations before initialization lead to invariant errors.
493
+ *
494
+ * @alpha
495
+ */
496
+ export const selectWorkingFilterContextDateFiltersWithDimensionOfAnyType = createSelector(selectWorkingFilterContextFilters, (filters) => filters.filter(isDashboardDateFilterWithDimensionOfAnyType));
464
497
  /**
465
498
  * Creates a selector for selecting date filter by its dataset {@link @gooddata/sdk-model#ObjRef}.
466
499
  *
@@ -472,6 +505,17 @@ export const selectWorkingFilterContextDateFiltersWithDimension = createSelector
472
505
  export const selectFilterContextDateFilterByDataSet = createMemoizedSelector((dataSet) => createSelector(selectFilterContextDateFiltersWithDimension, (dateFilters) => {
473
506
  return dateFilters.find((filter) => areObjRefsEqual(filter.dateFilter.dataSet, dataSet));
474
507
  }));
508
+ /**
509
+ * Creates a selector for selecting date filter of any type by its dataset {@link @gooddata/sdk-model#ObjRef}.
510
+ *
511
+ * @remarks
512
+ * Invocations before initialization lead to invariant errors.
513
+ *
514
+ * @alpha
515
+ */
516
+ export const selectFilterContextDateFilterOfAnyTypeByDataSet = createMemoizedSelector((dataSet) => createSelector(selectFilterContextDateFiltersWithDimensionOfAnyType, (dateFilters) => {
517
+ return dateFilters.find((filter) => areObjRefsEqual(dashboardFilterObjRef(filter), dataSet));
518
+ }));
475
519
  /**
476
520
  * Creates a selector for selecting date filter's index by its dataset {@link @gooddata/sdk-model#ObjRef}.
477
521
  *
@@ -480,8 +524,8 @@ export const selectFilterContextDateFilterByDataSet = createMemoizedSelector((da
480
524
  *
481
525
  * @public
482
526
  */
483
- export const selectFilterContextDateFilterIndexByDataSet = createMemoizedSelector((dataSet) => createSelector(selectFilterContextDateFiltersWithDimension, (dateFilters) => {
484
- return dateFilters.findIndex((filter) => areObjRefsEqual(filter.dateFilter.dataSet, dataSet));
527
+ export const selectFilterContextDateFilterIndexByDataSet = createMemoizedSelector((dataSet) => createSelector(selectFilterContextDateFiltersWithDimensionOfAnyType, (dateFilters) => {
528
+ return dateFilters.findIndex((filter) => areObjRefsEqual(dashboardFilterObjRef(filter), dataSet));
485
529
  }));
486
530
  /**
487
531
  * Returns date filters with dimension for a specific tab.
@@ -493,7 +537,7 @@ export const selectFilterContextDateFilterIndexByDataSet = createMemoizedSelecto
493
537
  */
494
538
  export const selectFilterContextDateFiltersWithDimensionForTab = createMemoizedSelector((tabLocalIdentifier) => createSelector(selectFiltersByTab, (filtersByTab) => {
495
539
  const filters = filtersByTab[tabLocalIdentifier] ?? [];
496
- return filters.filter(isDashboardDateFilterWithDimension);
540
+ return filters.filter(isDashboardDateFilterWithDimensionOfAnyType);
497
541
  }));
498
542
  /**
499
543
  * Returns the common date filter for a specific tab.
@@ -517,7 +561,7 @@ export const selectFilterContextDateFilterForTab = createMemoizedSelector((tabLo
517
561
  * @internal
518
562
  */
519
563
  export const selectFilterContextDateFilterByDataSetForTab = createMemoizedSelector((dataSet, tabLocalIdentifier) => createSelector(selectFilterContextDateFiltersWithDimensionForTab(tabLocalIdentifier), (dateFilters) => {
520
- return dateFilters.find((filter) => areObjRefsEqual(filter.dateFilter.dataSet, dataSet));
564
+ return dateFilters.find((filter) => areObjRefsEqual(dashboardFilterObjRef(filter), dataSet));
521
565
  }));
522
566
  /**
523
567
  * Creates a selector for selecting draggable filter's index by its ref:
@@ -531,8 +575,8 @@ export const selectFilterContextDateFilterByDataSetForTab = createMemoizedSelect
531
575
  */
532
576
  export const selectFilterContextDraggableFilterIndexByRef = createMemoizedSelector((ref) => createSelector(selectFilterContextFilters, (filters) => {
533
577
  return filters.findIndex((filter) => {
534
- if (isDashboardDateFilterWithDimension(filter) && isObjRef(ref)) {
535
- return areObjRefsEqual(filter.dateFilter.dataSet, ref);
578
+ if (isDashboardDateFilterWithDimensionOfAnyType(filter) && isObjRef(ref)) {
579
+ return areObjRefsEqual(dashboardFilterObjRef(filter), ref);
536
580
  }
537
581
  if (isDashboardAttributeFilterItem(filter) && typeof ref === "string") {
538
582
  return dashboardAttributeFilterItemLocalIdentifier(filter) === ref;
@@ -791,7 +835,7 @@ const MAX_DRAGGABLE_FILTERS_COUNT = 30;
791
835
  * @public
792
836
  * @deprecated use selectCanAddMoreFilters instead
793
837
  */
794
- export const selectCanAddMoreAttributeFilters = createSelector(selectFilterContextAttributeFilterItems, selectFilterContextMeasureValueFilters, selectFilterContextDateFiltersWithDimension, selectCrossFilteringFiltersLocalIdentifiers, (attributeFilterItems, measureValueFilters, dateFiltersWithDimension, crossFilters) => {
838
+ export const selectCanAddMoreAttributeFilters = createSelector(selectFilterContextAttributeFilterItems, selectFilterContextMeasureValueFilters, selectFilterContextDateFiltersWithDimensionOfAnyType, selectCrossFilteringFiltersLocalIdentifiers, (attributeFilterItems, measureValueFilters, dateFiltersWithDimension, crossFilters) => {
795
839
  return (attributeFilterItems.length +
796
840
  measureValueFilters.length +
797
841
  dateFiltersWithDimension.length -
@@ -890,7 +934,7 @@ export const selectWorkingFilterContextAttributeFilterItemsForTab = createMemoiz
890
934
  * @internal
891
935
  */
892
936
  export const selectWorkingFilterContextDateFiltersWithDimensionForTab = createMemoizedSelector((tabLocalIdentifier) => createSelector(selectWorkingFiltersForTab(tabLocalIdentifier), (filters) => {
893
- return filters.filter(isDashboardDateFilterWithDimension);
937
+ return filters.filter(isDashboardDateFilterWithDimensionOfAnyType);
894
938
  }));
895
939
  /**
896
940
  * Returns the working common date filter for a specific tab.
@@ -1 +1 @@
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
+ {"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,EAmBhC,MAAM,qBAAqB,CAAC;AAK7B,OAAO,KAAK,EAAE,kBAAkB,EAAE,+BAA+B,EAAE,MAAM,yBAAyB,CAAC;AAyEnG;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAC9B,aAAa,EAAE,wBAAwB,EACvC,oBAAoB,EAAE,+BAA+B,GAAG,SAAS,EACjE,qDAAqD,CAAC,EAAE,OAAO,GAChE,wBAAwB,CAyG1B;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,18 +1,23 @@
1
1
  // (C) 2021-2026 GoodData Corporation
2
- import { areObjRefsEqual, dashboardAttributeFilterItemLocalIdentifier, dashboardFilterLocalIdentifier, dashboardMeasureValueFilterLocalIdentifier, isDashboardAbsoluteGranularityDateFilter, isDashboardArbitraryAttributeFilter, isDashboardAttributeFilter, isDashboardAttributeFilterItem, isDashboardCommonDateFilterOfAnyType, isDashboardDateFilter, isDashboardMatchAttributeFilter, isDashboardMeasureValueFilter, isDashboardParameterizedDateFilter, isNoopAllTimeDashboardDateFilter, objRefToString, } from "@gooddata/sdk-model";
2
+ import { areObjRefsEqual, dashboardAttributeFilterItemLocalIdentifier, dashboardFilterLocalIdentifier, dashboardFilterObjRef, dashboardMeasureValueFilterLocalIdentifier, isDashboardAbsoluteGranularityDateFilter, isDashboardArbitraryAttributeFilter, isDashboardAttributeFilter, isDashboardAttributeFilterItem, isDashboardCommonDateFilterOfAnyType, isDashboardDateFilter, isDashboardDateFilterOfAnyType, isDashboardDateFilterWithDimensionOfAnyType, isDashboardMatchAttributeFilter, isDashboardMeasureValueFilter, isDashboardParameterizedDateFilter, isNoopAllTimeDashboardDateFilter, objRefToString, } from "@gooddata/sdk-model";
3
3
  import { _omitBy, _partition } from "@gooddata/util";
4
4
  import { generateFilterLocalIdentifier } from "../../_infra/generators.js";
5
5
  /**
6
- * The working common date filter replaces the applied one, also when its type differs. The applied local
7
- * identifier is kept.
6
+ * The working date filter replaces the applied one, also when its type differs. The applied local
7
+ * identifier and date dataset are kept.
8
8
  */
9
- function mergeCommonDateFilter(appliedFilter, workingFilter) {
9
+ function mergeDateFilterOfAnyType(appliedFilter, workingFilter) {
10
10
  const localIdentifier = dashboardFilterLocalIdentifier(appliedFilter);
11
+ const dataSet = dashboardFilterObjRef(appliedFilter);
12
+ const identity = {
13
+ ...(dataSet ? { dataSet } : {}),
14
+ ...(localIdentifier ? { localIdentifier } : {}),
15
+ };
11
16
  if (isDashboardAbsoluteGranularityDateFilter(workingFilter)) {
12
17
  return {
13
18
  dashboardAbsoluteGranularityDateFilter: {
14
19
  ...workingFilter.dashboardAbsoluteGranularityDateFilter,
15
- ...(localIdentifier ? { localIdentifier } : {}),
20
+ ...identity,
16
21
  },
17
22
  };
18
23
  }
@@ -20,7 +25,7 @@ function mergeCommonDateFilter(appliedFilter, workingFilter) {
20
25
  return {
21
26
  dashboardParameterizedDateFilter: {
22
27
  ...workingFilter.dashboardParameterizedDateFilter,
23
- ...(localIdentifier ? { localIdentifier } : {}),
28
+ ...identity,
24
29
  },
25
30
  };
26
31
  }
@@ -33,7 +38,7 @@ function mergeCommonDateFilter(appliedFilter, workingFilter) {
33
38
  ..._omitBy(rest, (value) => value === undefined),
34
39
  type,
35
40
  granularity,
36
- ...(localIdentifier ? { localIdentifier } : {}),
41
+ ...identity,
37
42
  },
38
43
  };
39
44
  }
@@ -106,21 +111,14 @@ export function applyFilterContext(filterContext, workingFilterContext, enableIm
106
111
  }
107
112
  else if (isDashboardCommonDateFilterOfAnyType(appliedFilter)) {
108
113
  const workingFilter = workingFilterContext?.filters.find(isDashboardCommonDateFilterOfAnyType);
109
- return workingFilter ? mergeCommonDateFilter(appliedFilter, workingFilter) : appliedFilter;
114
+ return workingFilter ? mergeDateFilterOfAnyType(appliedFilter, workingFilter) : appliedFilter;
110
115
  }
111
- else if (isDashboardDateFilter(appliedFilter)) {
116
+ else if (isDashboardDateFilterOfAnyType(appliedFilter)) {
117
+ const dataSet = dashboardFilterObjRef(appliedFilter);
112
118
  const workingFilter = workingFilterContext?.filters
113
- ?.filter(isDashboardDateFilter)
114
- .find((item) => areObjRefsEqual(item.dateFilter.dataSet, appliedFilter.dateFilter.dataSet));
115
- if (!workingFilter?.dateFilter) {
116
- return appliedFilter;
117
- }
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;
119
+ ?.filter(isDashboardDateFilterWithDimensionOfAnyType)
120
+ .find((item) => areObjRefsEqual(dashboardFilterObjRef(item), dataSet));
121
+ return workingFilter ? mergeDateFilterOfAnyType(appliedFilter, workingFilter) : appliedFilter;
124
122
  }
125
123
  else if (isDashboardMeasureValueFilter(appliedFilter)) {
126
124
  const workingFilter = workingFilterContext?.filters
@@ -46,6 +46,13 @@ export declare function findCounterpartFilter(sourceTab: ITabState, sourceFilter
46
46
  * @internal
47
47
  */
48
48
  export declare function withCommonDateFilterLocalIdentifier(filter: DashboardDateFilterOfAnyType, localIdentifier: string | undefined): DashboardDateFilterOfAnyType;
49
+ /**
50
+ * The value of the date filter with the identity of another one: its local identifier and its date dataset,
51
+ * also when they are undefined.
52
+ *
53
+ * @internal
54
+ */
55
+ export declare function withDateFilterIdentity(filter: DashboardDateFilterOfAnyType, localIdentifier: string | undefined, dataSet: ObjRef | undefined): DashboardDateFilterOfAnyType;
49
56
  /**
50
57
  * The saved initial filter on `tab` that corresponds to `appliedFilter`.
51
58
  * 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,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,SAAS,EACnC,2BAA2B,EAAE,2BAA2B,GAAG,SAAS,GACrE,OAAO,CAKT;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,qBAAqB,CACjC,SAAS,EAAE,SAAS,EACpB,YAAY,EAAE,iBAAiB,EAC/B,SAAS,EAAE,SAAS,EACpB,wBAAwB,CAAC,EAAE,wBAAwB,EAAE,EACrD,OAAO,CAAC,EAAE,uBAAuB,GAClC,iBAAiB,GAAG,SAAS,CA2C/B;AAED;;;;GAIG;AACH,wBAAgB,mCAAmC,CAC/C,MAAM,EAAE,4BAA4B,EACpC,eAAe,EAAE,MAAM,GAAG,SAAS,GACpC,4BAA4B,CA6B9B;AAED;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAC9B,GAAG,EAAE,SAAS,EACd,aAAa,EAAE,iBAAiB,GACjC,iBAAiB,GAAG,SAAS,CAyB/B;AAED;;;;GAIG;AACH,wBAAgB,2BAA2B,CACvC,MAAM,EAAE,4BAA4B,EACpC,eAAe,EAAE,MAAM,GACxB,4BAA4B,CAuB9B;AAED;;;;GAIG;AACH,wBAAgB,0BAA0B,CACtC,QAAQ,EAAE,4BAA4B,EACtC,WAAW,EAAE,4BAA4B,GAC1C,4BAA4B,CA6B9B;AAED;;;;;;GAMG;AACH,wBAAgB,wBAAwB,CACpC,MAAM,EAAE,iBAAiB,EACzB,MAAM,EAAE,iBAAiB,GAC1B,iBAAiB,CA6DnB;AAED;;;;;GAKG;AACH,MAAM,WAAW,kBAAkB;IAC/B,QAAQ,CAAC,OAAO,EAAE,SAAS,iBAAiB,EAAE,CAAC;IAC/C,QAAQ,CAAC,UAAU,EAAE,SAAS,uBAAuB,EAAE,CAAC;CAC3D;AAED;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACpC,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;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;AAgHD;;;;;;;;;;;;;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,EAGtB,KAAK,MAAM,EACX,KAAK,cAAc,EAoBtB,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,SAAS,EACnC,2BAA2B,EAAE,2BAA2B,GAAG,SAAS,GACrE,OAAO,CAKT;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,qBAAqB,CACjC,SAAS,EAAE,SAAS,EACpB,YAAY,EAAE,iBAAiB,EAC/B,SAAS,EAAE,SAAS,EACpB,wBAAwB,CAAC,EAAE,wBAAwB,EAAE,EACrD,OAAO,CAAC,EAAE,uBAAuB,GAClC,iBAAiB,GAAG,SAAS,CA2C/B;AAED;;;;GAIG;AACH,wBAAgB,mCAAmC,CAC/C,MAAM,EAAE,4BAA4B,EACpC,eAAe,EAAE,MAAM,GAAG,SAAS,GACpC,4BAA4B,CAE9B;AAED;;;;;GAKG;AACH,wBAAgB,sBAAsB,CAClC,MAAM,EAAE,4BAA4B,EACpC,eAAe,EAAE,MAAM,GAAG,SAAS,EACnC,OAAO,EAAE,MAAM,GAAG,SAAS,GAC5B,4BAA4B,CAuB9B;AAED;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAC9B,GAAG,EAAE,SAAS,EACd,aAAa,EAAE,iBAAiB,GACjC,iBAAiB,GAAG,SAAS,CAyB/B;AAED;;;;GAIG;AACH,wBAAgB,2BAA2B,CACvC,MAAM,EAAE,4BAA4B,EACpC,eAAe,EAAE,MAAM,GACxB,4BAA4B,CAuB9B;AAED;;;;GAIG;AACH,wBAAgB,0BAA0B,CACtC,QAAQ,EAAE,4BAA4B,EACtC,WAAW,EAAE,4BAA4B,GAC1C,4BAA4B,CA6B9B;AAED;;;;;;GAMG;AACH,wBAAgB,wBAAwB,CACpC,MAAM,EAAE,iBAAiB,EACzB,MAAM,EAAE,iBAAiB,GAC1B,iBAAiB,CAoDnB;AAED;;;;;GAKG;AACH,MAAM,WAAW,kBAAkB;IAC/B,QAAQ,CAAC,OAAO,EAAE,SAAS,iBAAiB,EAAE,CAAC;IAC/C,QAAQ,CAAC,UAAU,EAAE,SAAS,uBAAuB,EAAE,CAAC;CAC3D;AAED;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACpC,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;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,CAkB/B;AAkHD;;;;;;;;;;;;;GAaG;AACH,wBAAgB,iCAAiC,CAC7C,SAAS,EAAE,SAAS,EACpB,YAAY,EAAE,4BAA4B,EAC1C,KAAK,EAAE,4BAA4B,GACpC,OAAO,CAiBT"}
@@ -1,5 +1,5 @@
1
1
  // (C) 2026 GoodData Corporation
2
- import { areObjRefsEqual, dashboardAttributeFilterItemDisplayForm, dashboardAttributeFilterItemFilterElementsBy, dashboardAttributeFilterItemFilterElementsByDate, dashboardAttributeFilterItemLocalIdentifier, dashboardAttributeFilterItemValidateElementsBy, dashboardFilterLocalIdentifier, isDashboardAbsoluteGranularityDateFilter, isDashboardArbitraryAttributeFilter, isDashboardAttributeFilter, isDashboardAttributeFilterItem, isDashboardCommonDateFilterOfAnyType, isDashboardDateFilter, isDashboardDateFilterOfAnyType, isDashboardMatchAttributeFilter, isDashboardMeasureValueFilter, isDashboardParameterizedDateFilter, isSingleSelectionFilter, } from "@gooddata/sdk-model";
2
+ import { areObjRefsEqual, dashboardAttributeFilterItemDisplayForm, dashboardAttributeFilterItemFilterElementsBy, dashboardAttributeFilterItemFilterElementsByDate, dashboardAttributeFilterItemLocalIdentifier, dashboardAttributeFilterItemValidateElementsBy, dashboardFilterLocalIdentifier, dashboardFilterObjRef, isDashboardAbsoluteGranularityDateFilter, isDashboardArbitraryAttributeFilter, isDashboardAttributeFilter, isDashboardAttributeFilterItem, isDashboardCommonDateFilterOfAnyType, isDashboardDateFilterOfAnyType, isDashboardDateFilterWithDimensionOfAnyType, isDashboardMatchAttributeFilter, isDashboardMeasureValueFilter, isDashboardParameterizedDateFilter, isSingleSelectionFilter, } from "@gooddata/sdk-model";
3
3
  import { findAttributeFilterCounterpart } from "../../../utils/attributeFilterMatching.js";
4
4
  import { canApplyFilterTypeToTarget } from "../../../utils/attributeFilterSelectionTypeCompatibility.js";
5
5
  // Not a type guard, so that a false result does not narrow out the date filters with a data set.
@@ -63,26 +63,29 @@ export function findCounterpartFilter(sourceTab, sourceFilter, targetTab, attrib
63
63
  * @internal
64
64
  */
65
65
  export function withCommonDateFilterLocalIdentifier(filter, localIdentifier) {
66
+ return withDateFilterIdentity(filter, localIdentifier, undefined);
67
+ }
68
+ /**
69
+ * The value of the date filter with the identity of another one: its local identifier and its date dataset,
70
+ * also when they are undefined.
71
+ *
72
+ * @internal
73
+ */
74
+ export function withDateFilterIdentity(filter, localIdentifier, dataSet) {
75
+ const identity = {
76
+ ...(dataSet ? { dataSet } : {}),
77
+ ...(localIdentifier ? { localIdentifier } : {}),
78
+ };
66
79
  if (isDashboardAbsoluteGranularityDateFilter(filter)) {
67
80
  const { localIdentifier: _localIdentifier, dataSet: _dataSet, ...body } = filter.dashboardAbsoluteGranularityDateFilter;
68
- return {
69
- dashboardAbsoluteGranularityDateFilter: {
70
- ...body,
71
- ...(localIdentifier ? { localIdentifier } : {}),
72
- },
73
- };
81
+ return { dashboardAbsoluteGranularityDateFilter: { ...body, ...identity } };
74
82
  }
75
83
  if (isDashboardParameterizedDateFilter(filter)) {
76
84
  const { localIdentifier: _localIdentifier, dataSet: _dataSet, ...body } = filter.dashboardParameterizedDateFilter;
77
- return {
78
- dashboardParameterizedDateFilter: {
79
- ...body,
80
- ...(localIdentifier ? { localIdentifier } : {}),
81
- },
82
- };
85
+ return { dashboardParameterizedDateFilter: { ...body, ...identity } };
83
86
  }
84
87
  const { localIdentifier: _localIdentifier, dataSet: _dataSet, ...body } = filter.dateFilter;
85
- return { dateFilter: { ...body, ...(localIdentifier ? { localIdentifier } : {}) } };
88
+ return { dateFilter: { ...body, ...identity } };
86
89
  }
87
90
  /**
88
91
  * The saved initial filter on `tab` that corresponds to `appliedFilter`.
@@ -200,23 +203,8 @@ export function applyMirroredFilterValue(source, target) {
200
203
  if (isDashboardCommonDateFilterOfAnyType(source) && isDashboardCommonDateFilterOfAnyType(target)) {
201
204
  return withCommonDateFilterLocalIdentifier(source, dashboardFilterLocalIdentifier(target));
202
205
  }
203
- if (isDashboardDateFilter(source) && isDashboardDateFilter(target)) {
204
- const dateFilter = {
205
- ...source.dateFilter,
206
- };
207
- if (target.dateFilter.localIdentifier) {
208
- dateFilter.localIdentifier = target.dateFilter.localIdentifier;
209
- }
210
- else {
211
- delete dateFilter.localIdentifier;
212
- }
213
- if (target.dateFilter.dataSet) {
214
- dateFilter.dataSet = target.dateFilter.dataSet;
215
- }
216
- else {
217
- delete dateFilter.dataSet;
218
- }
219
- return { dateFilter };
206
+ if (isDashboardDateFilterOfAnyType(source) && isDashboardDateFilterOfAnyType(target)) {
207
+ return withDateFilterIdentity(source, dashboardFilterLocalIdentifier(target), dashboardFilterObjRef(target));
220
208
  }
221
209
  if (isDashboardMeasureValueFilter(source) && isDashboardMeasureValueFilter(target)) {
222
210
  const { measure, localIdentifier, title, dimensionality } = target.dashboardMeasureValueFilter;
@@ -280,9 +268,10 @@ export function findAppliedFilterForStaged(tab, staged) {
280
268
  if (isCommonDateFilter(staged)) {
281
269
  return filters.find(isDashboardCommonDateFilterOfAnyType);
282
270
  }
283
- if ("dateFilter" in staged && staged.dateFilter) {
284
- return filters.find((filter) => isDashboardDateFilter(filter) &&
285
- areObjRefsEqual(filter.dateFilter.dataSet, staged.dateFilter.dataSet));
271
+ if (isDashboardDateFilterWithDimensionOfAnyType(staged)) {
272
+ const dataSet = dashboardFilterObjRef(staged);
273
+ return filters.find((filter) => isDashboardDateFilterWithDimensionOfAnyType(filter) &&
274
+ areObjRefsEqual(dashboardFilterObjRef(filter), dataSet));
286
275
  }
287
276
  const localIdentifier = stagedLocalIdentifier(staged);
288
277
  if (!localIdentifier) {
@@ -312,10 +301,9 @@ function dropStagedOverlay(tab, applied) {
312
301
  }
313
302
  const overlays = isDashboardCommonDateFilterOfAnyType(applied)
314
303
  ? (item) => isDashboardCommonDateFilterOfAnyType(item)
315
- : isDashboardDateFilter(applied)
316
- ? (item) => "dateFilter" in item &&
317
- !!item.dateFilter &&
318
- areObjRefsEqual(item.dateFilter.dataSet, applied.dateFilter.dataSet)
304
+ : isDashboardDateFilterWithDimensionOfAnyType(applied)
305
+ ? (item) => isDashboardDateFilterWithDimensionOfAnyType(item) &&
306
+ areObjRefsEqual(dashboardFilterObjRef(item), dashboardFilterObjRef(applied))
319
307
  : (item) => !isDashboardDateFilterOfAnyType(item) &&
320
308
  stagedLocalIdentifier(item) !== undefined &&
321
309
  stagedLocalIdentifier(item) === dashboardFilterLocalIdentifier(applied);
@@ -349,6 +337,9 @@ function stagedLocalIdentifier(item) {
349
337
  if ("dashboardAbsoluteGranularityDateFilter" in item && item.dashboardAbsoluteGranularityDateFilter) {
350
338
  return item.dashboardAbsoluteGranularityDateFilter.localIdentifier;
351
339
  }
340
+ if ("dashboardParameterizedDateFilter" in item && item.dashboardParameterizedDateFilter) {
341
+ return item.dashboardParameterizedDateFilter.localIdentifier;
342
+ }
352
343
  if ("dashboardMeasureValueFilter" in item && item.dashboardMeasureValueFilter) {
353
344
  return item.dashboardMeasureValueFilter.localIdentifier;
354
345
  }
@@ -411,12 +402,9 @@ function findDateCounterpart(sourceFilter, targets) {
411
402
  if (isCommonDateFilter(sourceFilter)) {
412
403
  return targets.find(isDashboardCommonDateFilterOfAnyType);
413
404
  }
414
- if (isDashboardAbsoluteGranularityDateFilter(sourceFilter) ||
415
- isDashboardParameterizedDateFilter(sourceFilter)) {
416
- return undefined;
417
- }
418
- const dataSet = sourceFilter.dateFilter.dataSet;
419
- return targets.find((filter) => isDashboardDateFilter(filter) && areObjRefsEqual(filter.dateFilter.dataSet, dataSet));
405
+ const dataSet = dashboardFilterObjRef(sourceFilter);
406
+ return targets.find((filter) => isDashboardDateFilterWithDimensionOfAnyType(filter) &&
407
+ areObjRefsEqual(dashboardFilterObjRef(filter), dataSet));
420
408
  }
421
409
  function findMeasureValueCounterpart(sourceFilter, targets) {
422
410
  const compatible = targets.filter((filter) => isDashboardMeasureValueFilter(filter) &&
@@ -1 +1 @@
1
- {"version":3,"file":"widgetFilters.d.ts","sourceRoot":"","sources":["../../../src/model/utils/widgetFilters.ts"],"names":[],"mappings":"AAEA,OAAO,EACH,KAAK,4BAA4B,EACjC,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,gBAAgB,EACrB,KAAK,OAAO,EACZ,KAAK,mBAAmB,EACxB,KAAK,MAAM,EAkBd,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,KAAK,uBAAuB,EAAE,KAAK,yBAAyB,EAAE,MAAM,yBAAyB,CAAC;AAEvG;;GAEG;AACH,wBAAgB,0BAA0B,CACtC,OAAO,EAAE,iBAAiB,EAAE,EAC5B,MAAM,EAAE,uBAAuB,GAAG,SAAS,uBAkC9C;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,iBAAiB,EAAE,GAAG,4BAA4B,EAAE,CAEhG;AAED;;;;GAIG;AACH,MAAM,WAAW,sBAAsB;IACnC,MAAM,EAAE,mBAAmB,CAAC;IAC5B,eAAe,EAAE,MAAM,GAAG,SAAS,CAAC;CACvC;AAED;;;;GAIG;AACH,wBAAgB,gCAAgC,CAAC,OAAO,EAAE,mBAAmB,EAAE,GAAG,sBAAsB,EAAE,CAOzG;AAwFD;;;;GAIG;AACH,MAAM,WAAW,uBAAuB;IACpC,WAAW,EAAE,sBAAsB,EAAE,CAAC;IACtC,gBAAgB,EAAE,gBAAgB,EAAE,CAAC;IACrC,mBAAmB,EAAE,mBAAmB,EAAE,CAAC;CAC9C;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,6BAA6B,CACzC,MAAM,EAAE,yBAAyB,EACjC,CAAC,iBAAiB,EAAE,YAAY,CAAC,EAAE,CAAC,OAAO,EAAE,EAAE,OAAO,EAAE,CAAC,EACzD,iBAAiB,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,EACtC,cAAc,GAAE,OAAO,EAAO,GAC/B,uBAAuB,CAgBzB"}
1
+ {"version":3,"file":"widgetFilters.d.ts","sourceRoot":"","sources":["../../../src/model/utils/widgetFilters.ts"],"names":[],"mappings":"AAEA,OAAO,EACH,KAAK,4BAA4B,EACjC,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,gBAAgB,EACrB,KAAK,OAAO,EACZ,KAAK,mBAAmB,EACxB,KAAK,MAAM,EAkBd,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,KAAK,uBAAuB,EAAE,KAAK,yBAAyB,EAAE,MAAM,yBAAyB,CAAC;AAEvG;;GAEG;AACH,wBAAgB,0BAA0B,CACtC,OAAO,EAAE,iBAAiB,EAAE,EAC5B,MAAM,EAAE,uBAAuB,GAAG,SAAS,uBAqC9C;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,iBAAiB,EAAE,GAAG,4BAA4B,EAAE,CAEhG;AAED;;;;GAIG;AACH,MAAM,WAAW,sBAAsB;IACnC,MAAM,EAAE,mBAAmB,CAAC;IAC5B,eAAe,EAAE,MAAM,GAAG,SAAS,CAAC;CACvC;AAED;;;;GAIG;AACH,wBAAgB,gCAAgC,CAAC,OAAO,EAAE,mBAAmB,EAAE,GAAG,sBAAsB,EAAE,CAOzG;AAwFD;;;;GAIG;AACH,MAAM,WAAW,uBAAuB;IACpC,WAAW,EAAE,sBAAsB,EAAE,CAAC;IACtC,gBAAgB,EAAE,gBAAgB,EAAE,CAAC;IACrC,mBAAmB,EAAE,mBAAmB,EAAE,CAAC;CAC9C;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,6BAA6B,CACzC,MAAM,EAAE,yBAAyB,EACjC,CAAC,iBAAiB,EAAE,YAAY,CAAC,EAAE,CAAC,OAAO,EAAE,EAAE,OAAO,EAAE,CAAC,EACzD,iBAAiB,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,EACtC,cAAc,GAAE,OAAO,EAAO,GAC/B,uBAAuB,CAgBzB"}
@@ -1,5 +1,5 @@
1
1
  // (C) 2025-2026 GoodData Corporation
2
- import { areObjRefsEqual, dashboardAttributeFilterItemDisplayForm, dashboardFilterObjRef, filterLocalIdentifier, filterObjRef, isAttributeFilter, isDashboardAttributeFilterItem, isDashboardAttributeFilterReference, isDashboardCommonDateFilterOfAnyType, isDashboardDateFilter, isDashboardDateFilterReference, isDashboardMeasureValueFilter, isDashboardMeasureValueFilterReference, isDateFilterOfAnyType, isInsightWidget, isMeasureValueFilter, isRankingFilter, } from "@gooddata/sdk-model";
2
+ import { areObjRefsEqual, dashboardAttributeFilterItemDisplayForm, dashboardFilterObjRef, filterLocalIdentifier, filterObjRef, isAttributeFilter, isDashboardAttributeFilterItem, isDashboardAttributeFilterReference, isDashboardCommonDateFilterOfAnyType, isDashboardDateFilterReference, isDashboardDateFilterWithDimensionOfAnyType, isDashboardMeasureValueFilter, isDashboardMeasureValueFilterReference, isDateFilterOfAnyType, isInsightWidget, isMeasureValueFilter, isRankingFilter, } from "@gooddata/sdk-model";
3
3
  /**
4
4
  * @internal
5
5
  */
@@ -10,8 +10,9 @@ export function removeIgnoredWidgetFilters(filters, widget) {
10
10
  return filters.filter((filter) => isDashboardCommonDateFilterOfAnyType(filter)
11
11
  ? !!widget.dateDataSet
12
12
  : !widget.ignoreDashboardFilters.some((ignoredFilter) => {
13
- if (isDashboardDateFilter(filter) && ignoredFilter.type === "dateFilterReference") {
14
- return areObjRefsEqual(ignoredFilter.dataSet, filter.dateFilter.dataSet);
13
+ if (isDashboardDateFilterWithDimensionOfAnyType(filter) &&
14
+ ignoredFilter.type === "dateFilterReference") {
15
+ return areObjRefsEqual(ignoredFilter.dataSet, dashboardFilterObjRef(filter));
15
16
  }
16
17
  if (isDashboardAttributeFilterItem(filter) &&
17
18
  ignoredFilter.type === "attributeFilterReference") {
@@ -1 +1 @@
1
- {"version":3,"file":"AlertingConnector.d.ts","sourceRoot":"","sources":["../../../../src/presentation/automations/connectors/AlertingConnector.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AA6B1D;;;;;;GAMG;AACH,wBAAgB,2BAA2B,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,SAAS,CAAA;CAAE,GAAG,YAAY,CAQ/F;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,iBAAiB,IAAI,YAAY,GAAG,IAAI,CAMvD"}
1
+ {"version":3,"file":"AlertingConnector.d.ts","sourceRoot":"","sources":["../../../../src/presentation/automations/connectors/AlertingConnector.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AA+B1D;;;;;;GAMG;AACH,wBAAgB,2BAA2B,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,SAAS,CAAA;CAAE,GAAG,YAAY,CAQ/F;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,iBAAiB,IAAI,YAAY,GAAG,IAAI,CAMvD"}
@@ -8,11 +8,13 @@ import { AlertingDialogContextProvider } from "../contexts/AlertingDialogContext
8
8
  import { AlertingManagementDialogContextProvider } from "../contexts/AlertingManagementDialogContext.js";
9
9
  import { AutomationsContextProvider } from "../contexts/AutomationsContext.js";
10
10
  import { AbsoluteGranularityDateFilterNotSupportedDialog } from "../shared/components/AbsoluteGranularityDateFilterNotSupportedDialog.js";
11
+ import { ParameterizedDateFilterNotSupportedDialog } from "../shared/components/ParameterizedDateFilterNotSupportedDialog.js";
11
12
  import { useAbsoluteGranularityDateFilterBlocksAutomation } from "./hooks/useAbsoluteGranularityDateFilterBlocksAutomation.js";
12
13
  import { useAutomationManagementEditRouting } from "./hooks/useAutomationManagementEditRouting.js";
13
14
  import { useBuildAlertingDialogContext } from "./hooks/useBuildAlertingDialogContext.js";
14
15
  import { useBuildAlertingManagementDialogContext } from "./hooks/useBuildAlertingManagementDialogContext.js";
15
16
  import { useBuildAutomationsContext } from "./hooks/useBuildAutomationsContext.js";
17
+ import { useParameterizedDateFilterBlocksAutomation } from "./hooks/useParameterizedDateFilterBlocksAutomation.js";
16
18
  /**
17
19
  * Provides AutomationsContext to its children, built from dashboard Redux state, with the
18
20
  * resolved context decorator mounted directly inside — so everything in the alerting dialog
@@ -75,9 +77,13 @@ function AlertingConnectorWithData({ alerts }) {
75
77
  */
76
78
  function AlertingCreateEditConnector(props) {
77
79
  const isBlocked = useAbsoluteGranularityDateFilterBlocksAutomation(false);
80
+ const isBlockedByPeriod = useParameterizedDateFilterBlocksAutomation(false, props.widget);
78
81
  if (isBlocked) {
79
82
  return (_jsx(AbsoluteGranularityDateFilterNotSupportedDialog, { automationType: "alert", onCancel: props.onCancel }));
80
83
  }
84
+ if (isBlockedByPeriod) {
85
+ return _jsx(ParameterizedDateFilterNotSupportedDialog, { automationType: "alert", onCancel: props.onCancel });
86
+ }
81
87
  return _jsx(AlertingCreateEditDialogConnector, { ...props });
82
88
  }
83
89
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"ScheduledEmailConnector.d.ts","sourceRoot":"","sources":["../../../../src/presentation/automations/connectors/ScheduledEmailConnector.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,SAAS,EAAW,MAAM,OAAO,CAAC;AAyCnE;;;;;;GAMG;AACH,wBAAgB,iCAAiC,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,SAAS,CAAA;CAAE,GAAG,YAAY,CAQrG;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,uBAAuB,IAAI,YAAY,GAAG,IAAI,CAM7D"}
1
+ {"version":3,"file":"ScheduledEmailConnector.d.ts","sourceRoot":"","sources":["../../../../src/presentation/automations/connectors/ScheduledEmailConnector.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,SAAS,EAAW,MAAM,OAAO,CAAC;AA2CnE;;;;;;GAMG;AACH,wBAAgB,iCAAiC,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,SAAS,CAAA;CAAE,GAAG,YAAY,CAQrG;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,uBAAuB,IAAI,YAAY,GAAG,IAAI,CAM7D"}
@@ -13,12 +13,14 @@ import { ScheduledEmailManagementDialogContextProvider } from "../contexts/Sched
13
13
  import { ScheduledEmailDialog } from "../scheduledEmail/ScheduledEmailDialog.js";
14
14
  import { ScheduledEmailManagementDialog } from "../scheduledEmail/ScheduledEmailManagementDialog.js";
15
15
  import { AbsoluteGranularityDateFilterNotSupportedDialog } from "../shared/components/AbsoluteGranularityDateFilterNotSupportedDialog.js";
16
+ import { ParameterizedDateFilterNotSupportedDialog } from "../shared/components/ParameterizedDateFilterNotSupportedDialog.js";
16
17
  import { getAppliedDashboardFilters } from "../shared/filters/index.js";
17
18
  import { useAbsoluteGranularityDateFilterBlocksAutomation } from "./hooks/useAbsoluteGranularityDateFilterBlocksAutomation.js";
18
19
  import { useAutomationManagementEditRouting } from "./hooks/useAutomationManagementEditRouting.js";
19
20
  import { useBuildAutomationsContext } from "./hooks/useBuildAutomationsContext.js";
20
21
  import { useBuildScheduledEmailDialogContext } from "./hooks/useBuildScheduledEmailDialogContext.js";
21
22
  import { useBuildScheduledEmailManagementDialogContext } from "./hooks/useBuildScheduledEmailManagementDialogContext.js";
23
+ import { useParameterizedDateFilterBlocksAutomation } from "./hooks/useParameterizedDateFilterBlocksAutomation.js";
22
24
  import { useWidgetAutomationFilters } from "./hooks/useWidgetAutomationFilters.js";
23
25
  /**
24
26
  * Provides AutomationsContext to its children, built from dashboard Redux state, with the
@@ -93,9 +95,13 @@ function ScheduledEmailConnectorWithData({ se }) {
93
95
  */
94
96
  function ScheduledEmailCreateEditConnector(props) {
95
97
  const isBlocked = useAbsoluteGranularityDateFilterBlocksAutomation(!props.widget);
98
+ const isBlockedByPeriod = useParameterizedDateFilterBlocksAutomation(!props.widget, props.widget);
96
99
  if (isBlocked) {
97
100
  return (_jsx(AbsoluteGranularityDateFilterNotSupportedDialog, { automationType: "scheduledExport", onCancel: props.onCancel }));
98
101
  }
102
+ if (isBlockedByPeriod) {
103
+ return (_jsx(ParameterizedDateFilterNotSupportedDialog, { automationType: "scheduledExport", onCancel: props.onCancel }));
104
+ }
99
105
  return _jsx(ScheduledEmailCreateEditDialogConnector, { ...props });
100
106
  }
101
107
  /**
@@ -3,6 +3,7 @@ import { type IAutomationMetadataObject } from "@gooddata/sdk-model";
3
3
  * Handles cross-dashboard edit routing for automation management dialogs.
4
4
  *
5
5
  * When the automation belongs to a different dashboard, navigates there directly.
6
+ * In embedded mode, embed params of the current route (e.g. hideControl) are carried over to the target URL.
6
7
  * Otherwise falls back to `onLocalEdit`.
7
8
  *
8
9
  * @internal
@@ -1 +1 @@
1
- {"version":3,"file":"useAutomationManagementEditRouting.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/automations/connectors/hooks/useAutomationManagementEditRouting.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,yBAAyB,EAAE,MAAM,qBAAqB,CAAC;AAOrE;;;;;;;GAOG;AACH,wBAAgB,kCAAkC,CAC9C,WAAW,EAAE,CAAC,UAAU,EAAE,yBAAyB,KAAK,IAAI,GAC7D,CAAC,UAAU,EAAE,yBAAyB,KAAK,IAAI,CA4BjD"}
1
+ {"version":3,"file":"useAutomationManagementEditRouting.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/automations/connectors/hooks/useAutomationManagementEditRouting.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,yBAAyB,EAAE,MAAM,qBAAqB,CAAC;AA2DrE;;;;;;;;GAQG;AACH,wBAAgB,kCAAkC,CAC9C,WAAW,EAAE,CAAC,UAAU,EAAE,yBAAyB,KAAK,IAAI,GAC7D,CAAC,UAAU,EAAE,yBAAyB,KAAK,IAAI,CA4BjD"}
@@ -4,10 +4,62 @@ import { buildAutomationUrl, navigate, useWorkspaceStrict } from "@gooddata/sdk-
4
4
  import { useDashboardSelector } from "../../../../model/react/DashboardStoreProvider.js";
5
5
  import { selectExternalRecipient, selectIsEmbedded } from "../../../../model/store/config/configSelectors.js";
6
6
  import { selectDashboardId } from "../../../../model/store/meta/metaSelectors.js";
7
+ /**
8
+ * Mirrors QUERY_PARAM_WHITELIST of gdc-dashboards-runtime without aiBuilder and conversationId.
9
+ * The runtime reads these from the route, so they must survive cross-dashboard navigation.
10
+ */
11
+ const EMBED_QUERY_PARAMS = new Set([
12
+ "initialcontent",
13
+ "hidecontrol",
14
+ "redirect-drill-url-to-message",
15
+ "shownavigation",
16
+ "sidebarcollapsed",
17
+ "sidebarwidth",
18
+ "exportid",
19
+ "includeobjectswithtags",
20
+ "excludeobjectswithtags",
21
+ "preventdefault",
22
+ "disableadexploremode",
23
+ "disableadeditmode",
24
+ "hidefilters",
25
+ "showembedbutton",
26
+ "crossfiltering",
27
+ "filtersreset",
28
+ "filterssave",
29
+ "showassistant",
30
+ "hideassistanttrigger",
31
+ "apitokenauthentication",
32
+ "externalproviderid",
33
+ ]);
34
+ function getEmbedQueryString(hash) {
35
+ const queryStart = hash.indexOf("?");
36
+ if (queryStart < 0) {
37
+ return "";
38
+ }
39
+ return hash
40
+ .slice(queryStart + 1)
41
+ .split("&")
42
+ .filter((part) => {
43
+ if (!part) {
44
+ return false;
45
+ }
46
+ const rawKey = part.split("=")[0];
47
+ let key = rawKey;
48
+ try {
49
+ key = decodeURIComponent(rawKey);
50
+ }
51
+ catch {
52
+ // keep the raw key
53
+ }
54
+ return EMBED_QUERY_PARAMS.has(key.toLowerCase());
55
+ })
56
+ .join("&");
57
+ }
7
58
  /**
8
59
  * Handles cross-dashboard edit routing for automation management dialogs.
9
60
  *
10
61
  * When the automation belongs to a different dashboard, navigates there directly.
62
+ * In embedded mode, embed params of the current route (e.g. hideControl) are carried over to the target URL.
11
63
  * Otherwise falls back to `onLocalEdit`.
12
64
  *
13
65
  * @internal
@@ -20,7 +72,7 @@ export function useAutomationManagementEditRouting(onLocalEdit) {
20
72
  return useCallback((automation) => {
21
73
  const targetDashboardId = automation.dashboard?.id;
22
74
  if (targetDashboardId && targetDashboardId !== dashboardId) {
23
- navigate(buildAutomationUrl({
75
+ const url = buildAutomationUrl({
24
76
  workspaceId: workspace,
25
77
  dashboardId: targetDashboardId,
26
78
  automationId: automation.id,
@@ -28,7 +80,9 @@ export function useAutomationManagementEditRouting(onLocalEdit) {
28
80
  queryParams: externalRecipientOverride
29
81
  ? { recipient: externalRecipientOverride }
30
82
  : undefined,
31
- }));
83
+ });
84
+ const embedQuery = isEmbedded ? getEmbedQueryString(window.location.hash) : "";
85
+ navigate(url && embedQuery ? url + (url.includes("?") ? "&" : "?") + embedQuery : url);
32
86
  return;
33
87
  }
34
88
  onLocalEdit(automation);
@@ -1 +1 @@
1
- {"version":3,"file":"useBuildAutomationsContext.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/automations/connectors/hooks/useBuildAutomationsContext.ts"],"names":[],"mappings":"AA8FA,OAAO,KAAK,EACR,wBAAwB,EAG3B,MAAM,sCAAsC,CAAC;AAI9C,wBAAgB,0BAA0B,IAAI,wBAAwB,CAmRrE"}
1
+ {"version":3,"file":"useBuildAutomationsContext.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/automations/connectors/hooks/useBuildAutomationsContext.ts"],"names":[],"mappings":"AA+FA,OAAO,KAAK,EACR,wBAAwB,EAG3B,MAAM,sCAAsC,CAAC;AAI9C,wBAAgB,0BAA0B,IAAI,wBAAwB,CAwRrE"}
@@ -2,7 +2,7 @@
2
2
  import { useCallback, useMemo } from "react";
3
3
  import { useDashboardSelector } from "../../../../model/react/DashboardStoreProvider.js";
4
4
  import { selectAllCatalogAttributesMap, selectAllCatalogDisplayFormsMap, selectCatalogAttributesWithComputed, selectCatalogDateDatasets, selectCatalogMeasures, selectCatalogParameters, selectCatalogParametersIsLoaded, } from "../../../../model/store/catalog/catalogSelectors.js";
5
- import { selectEnableAlertOncePerInterval, selectEnableAnomalyDetectionAlert, selectEnableAutomationEvaluationMode, selectEnableParameters, selectEnableSlideshowExports, selectEnableStringParameters, selectEnableTimezoneChange, selectExternalRecipient, selectIsApplyFiltersAllAtOnceEnabledAndSet, selectIsWhiteLabeled, selectLocale, selectSeparators, selectSettings, selectTimezone, selectWeekStart, } from "../../../../model/store/config/configSelectors.js";
5
+ import { selectEnableAlertOncePerInterval, selectEnableAnomalyDetectionAlert, selectEnableAutomationEvaluationMode, selectEnableParameters, selectEnableScheduledExportMultipleAttachments, selectEnableSlideshowExports, selectEnableStringParameters, selectEnableTimezoneChange, selectExternalRecipient, selectIsApplyFiltersAllAtOnceEnabledAndSet, selectIsWhiteLabeled, selectLocale, selectSeparators, selectSettings, selectTimezone, selectWeekStart, } from "../../../../model/store/config/configSelectors.js";
6
6
  import { selectEntitlementMinimumRecurrenceMinutes, selectMaxAutomationRecipients, } from "../../../../model/store/entitlements/entitlementsSelectors.js";
7
7
  import { selectAllDashboardFiltersWithoutCrossFiltering, selectAutomationAvailableDashboardFilters, selectAutomationCommonDateFilterId, selectAutomationDefaultSelectedFilters, selectAutomationFiltersByTab, selectDashboardHiddenFilters, selectDashboardLockedFilters, selectRestrictedDashboardFilterLocalIdentifiers, selectRestrictedDashboardFilterLocalIdentifiersByTab, } from "../../../../model/store/filtering/dashboardFilterSelectors.js";
8
8
  import { isDashboardFilterCopyRestricted } from "../../../../model/store/filtering/restrictedFilterUtils.js";
@@ -83,6 +83,7 @@ export function useBuildAutomationsContext() {
83
83
  const canManageWorkspace = useDashboardSelector(selectCanManageWorkspace);
84
84
  const enableSlideshowExports = useDashboardSelector(selectEnableSlideshowExports);
85
85
  const enableAutomationEvaluationMode = useDashboardSelector(selectEnableAutomationEvaluationMode);
86
+ const enableScheduledExportMultipleAttachments = useDashboardSelector(selectEnableScheduledExportMultipleAttachments);
86
87
  const maxAutomationsRecipients = useDashboardSelector(selectMaxAutomationRecipients);
87
88
  const minimumRecurrenceMinutesEntitlement = useDashboardSelector(selectEntitlementMinimumRecurrenceMinutes);
88
89
  const allowHourlyRecurrence = parseInt(minimumRecurrenceMinutesEntitlement?.value ?? DEFAULT_MIN_RECURRENCE_MINUTES, 10) === 60;
@@ -136,6 +137,7 @@ export function useBuildAutomationsContext() {
136
137
  canManageWorkspace,
137
138
  enableSlideshowExports,
138
139
  enableAutomationEvaluationMode,
140
+ enableScheduledExportMultipleAttachments,
139
141
  }), [
140
142
  canCreateAutomation,
141
143
  enableAlertOncePerInterval,
@@ -144,6 +146,7 @@ export function useBuildAutomationsContext() {
144
146
  canManageWorkspace,
145
147
  enableSlideshowExports,
146
148
  enableAutomationEvaluationMode,
149
+ enableScheduledExportMultipleAttachments,
147
150
  ]);
148
151
  return useMemo(() => ({
149
152
  locale,
@@ -0,0 +1,10 @@
1
+ import { type ExtendedDashboardWidget } from "../../../../model/types/layoutTypes.js";
2
+ /**
3
+ * Whether the filters the automation dialog would use contain a date filter set to a period, which
4
+ * automations do not support yet. A widget automation uses the active tab without the filters its widget
5
+ * ignores, a dashboard export any tab.
6
+ *
7
+ * @internal
8
+ */
9
+ export declare function useParameterizedDateFilterBlocksAutomation(isDashboardExport: boolean, widget?: ExtendedDashboardWidget): boolean;
10
+ //# sourceMappingURL=useParameterizedDateFilterBlocksAutomation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useParameterizedDateFilterBlocksAutomation.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/automations/connectors/hooks/useParameterizedDateFilterBlocksAutomation.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,KAAK,uBAAuB,EAAE,MAAM,wCAAwC,CAAC;AAGtF;;;;;;GAMG;AACH,wBAAgB,0CAA0C,CACtD,iBAAiB,EAAE,OAAO,EAC1B,MAAM,CAAC,EAAE,uBAAuB,GACjC,OAAO,CAQT"}