@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
@@ -9,7 +9,7 @@ import { useDashboardSelector } from "../../../model/react/DashboardStoreProvide
9
9
  import { useDashboardCommandProcessing } from "../../../model/react/useDashboardCommandProcessing.js";
10
10
  import { selectAllCatalogDisplayFormsMap } from "../../../model/store/catalog/catalogSelectors.js";
11
11
  import { selectRestrictedDashboardFilterLocalIdentifiers } from "../../../model/store/filtering/dashboardFilterSelectors.js";
12
- import { selectFilterContextDateFilter, selectFilterContextDateFiltersWithDimension, selectOtherContextAttributeFilterItems, } from "../../../model/store/tabs/filterContext/filterContextSelectors.js";
12
+ import { selectFilterContextDateFilterOfAnyType, selectFilterContextDateFiltersWithDimensionOfAnyType, selectOtherContextAttributeFilterItems, } from "../../../model/store/tabs/filterContext/filterContextSelectors.js";
13
13
  import { useDependentDateFiltersConfiguration } from "./dashboardDropdownBody/configuration/hooks/useDependentDateFiltersConfiguration.js";
14
14
  import { useDisplayFormConfiguration } from "./dashboardDropdownBody/configuration/hooks/useDisplayFormConfiguration.js";
15
15
  import { useLimitingItemsConfiguration } from "./dashboardDropdownBody/configuration/hooks/useLimitingItemsConfiguration.js";
@@ -46,11 +46,11 @@ export function AttributeFilterParentFilteringProvider({ children, filterItem, a
46
46
  return filterObjRef(attributeFilter);
47
47
  }, [attributeFilter]);
48
48
  const allNeighborFilters = useDashboardSelector(selectOtherContextAttributeFilterItems(filterRef));
49
- const allNeighborDateFilters = useDashboardSelector(selectFilterContextDateFiltersWithDimension);
49
+ const allNeighborDateFilters = useDashboardSelector(selectFilterContextDateFiltersWithDimensionOfAnyType);
50
50
  const restrictedFilterLocalIdentifiers = useDashboardSelector(selectRestrictedDashboardFilterLocalIdentifiers);
51
51
  const neighborFilters = useMemo(() => allNeighborFilters.filter((filter) => !restrictedFilterLocalIdentifiers.has(dashboardAttributeFilterItemLocalIdentifier(filter) ?? "")), [allNeighborFilters, restrictedFilterLocalIdentifiers]);
52
52
  const neighborDateFilters = useMemo(() => allNeighborDateFilters.filter((filter) => !restrictedFilterLocalIdentifiers.has(dashboardFilterLocalIdentifier(filter) ?? "")), [allNeighborDateFilters, restrictedFilterLocalIdentifiers]);
53
- const commonDateFilter = useDashboardSelector(selectFilterContextDateFilter);
53
+ const commonDateFilter = useDashboardSelector(selectFilterContextDateFilterOfAnyType);
54
54
  const catalogDisplayFormsMap = useDashboardSelector(selectAllCatalogDisplayFormsMap);
55
55
  const getAttributeFilterDisplayFormFromMap = useAttributeFilterDisplayFormFromMap();
56
56
  const filterDisplayForm = getAttributeFilterDisplayFormFromMap(dashboardAttributeFilterItemDisplayForm(currentFilter));
@@ -1,8 +1,20 @@
1
- import { type IDashboardAttributeFilterByDate, type IDashboardDateFilter } from "@gooddata/sdk-model";
1
+ import { type DashboardDateFilterOfAnyType, type IDashboardAttributeFilterByDate } from "@gooddata/sdk-model";
2
2
  import { type IDashboardDependentDateFilter } from "../../../../../../model/types/dateFilterTypes.js";
3
3
  /**
4
4
  * @internal
5
5
  */
6
- export declare function useDependentDateFilterConfigurationState(neighborFilters: IDashboardDateFilter[], commonDateFilter?: IDashboardDateFilter, filterElementsByDate?: IDashboardAttributeFilterByDate[]): IDashboardDependentDateFilter[];
7
- export declare function useDependentCommonDateFilterConfigurationState(commonDateFilter?: IDashboardDateFilter): IDashboardDateFilter;
6
+ export declare function useDependentDateFilterConfigurationState(neighborFilters: DashboardDateFilterOfAnyType[], commonDateFilter?: DashboardDateFilterOfAnyType, filterElementsByDate?: IDashboardAttributeFilterByDate[]): IDashboardDependentDateFilter[];
7
+ export declare function useDependentCommonDateFilterConfigurationState(commonDateFilter?: DashboardDateFilterOfAnyType): DashboardDateFilterOfAnyType;
8
+ /**
9
+ * Returns the type and the range of a date filter for the parent filter configuration, All time when there is
10
+ * no filter, for example when the dashboard has no common date filter.
11
+ *
12
+ * @remarks
13
+ * The absolute date filter with granularity is described as an absolute one, its periods are not day dates
14
+ * and its granularity is not a date filter granularity, so they are left out. The parameterized date filter
15
+ * holds no period, it is described the same way.
16
+ *
17
+ * @internal
18
+ */
19
+ export declare function getDateFilterRange(dateFilter?: DashboardDateFilterOfAnyType): Pick<IDashboardDependentDateFilter, "type" | "granularity" | "from" | "to">;
8
20
  //# sourceMappingURL=useDependentDateFilterConfigurationState.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useDependentDateFilterConfigurationState.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/filterBar/attributeFilter/dashboardDropdownBody/configuration/hooks/useDependentDateFilterConfigurationState.ts"],"names":[],"mappings":"AAMA,OAAO,EACH,KAAK,+BAA+B,EACpC,KAAK,oBAAoB,EAG5B,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,KAAK,6BAA6B,EAAE,MAAM,kDAAkD,CAAC;AAEtG;;GAEG;AACH,wBAAgB,wCAAwC,CACpD,eAAe,EAAE,oBAAoB,EAAE,EACvC,gBAAgB,CAAC,EAAE,oBAAoB,EACvC,oBAAoB,CAAC,EAAE,+BAA+B,EAAE,mCAyE3D;AAED,wBAAgB,8CAA8C,CAC1D,gBAAgB,CAAC,EAAE,oBAAoB,GACxC,oBAAoB,CAWtB"}
1
+ {"version":3,"file":"useDependentDateFilterConfigurationState.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/filterBar/attributeFilter/dashboardDropdownBody/configuration/hooks/useDependentDateFilterConfigurationState.ts"],"names":[],"mappings":"AAMA,OAAO,EACH,KAAK,4BAA4B,EACjC,KAAK,+BAA+B,EAOvC,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,KAAK,6BAA6B,EAAE,MAAM,kDAAkD,CAAC;AAEtG;;GAEG;AACH,wBAAgB,wCAAwC,CACpD,eAAe,EAAE,4BAA4B,EAAE,EAC/C,gBAAgB,CAAC,EAAE,4BAA4B,EAC/C,oBAAoB,CAAC,EAAE,+BAA+B,EAAE,mCAmE3D;AAED,wBAAgB,8CAA8C,CAC1D,gBAAgB,CAAC,EAAE,4BAA4B,GAChD,4BAA4B,CAW9B;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,kBAAkB,CAC9B,UAAU,CAAC,EAAE,4BAA4B,GAC1C,IAAI,CAAC,6BAA6B,EAAE,MAAM,GAAG,aAAa,GAAG,MAAM,GAAG,IAAI,CAAC,CAa7E"}
@@ -1,19 +1,19 @@
1
1
  // (C) 2024-2026 GoodData Corporation
2
2
  import { useMemo } from "react";
3
3
  import { invariant } from "ts-invariant";
4
- import { isUriRef, } from "@gooddata/sdk-model";
4
+ import { dashboardFilterLocalIdentifier, dashboardFilterObjRef, isDashboardAbsoluteGranularityDateFilter, isDashboardParameterizedDateFilter, isUriRef, } from "@gooddata/sdk-model";
5
5
  /**
6
6
  * @internal
7
7
  */
8
8
  export function useDependentDateFilterConfigurationState(neighborFilters, commonDateFilter, filterElementsByDate) {
9
9
  const neighborDateFiltersWithDimensions = useMemo(() => {
10
10
  return neighborFilters.map((neighborFilter) => {
11
- const neighborDataSet = neighborFilter.dateFilter.dataSet;
11
+ const neighborDataSet = dashboardFilterObjRef(neighborFilter);
12
12
  invariant(!isUriRef(neighborDataSet));
13
13
  // Prefer the filter's own localIdentifier over the dataset identifier so that multiple date
14
14
  // filters backed by the same dataset can be told apart. Falls back to the dataset identifier
15
15
  // for date filters that don't carry a localIdentifier (e.g. older backend records).
16
- const filterLocalIdentifier = neighborFilter.dateFilter.localIdentifier ?? neighborDataSet?.identifier;
16
+ const filterLocalIdentifier = dashboardFilterLocalIdentifier(neighborFilter) ?? neighborDataSet?.identifier;
17
17
  const isSelected = filterElementsByDate?.some((by) =>
18
18
  // Match against both the new (localIdentifier) and legacy (dataset identifier)
19
19
  // formats: dashboards saved before this change store the dataset identifier in
@@ -23,19 +23,16 @@ export function useDependentDateFilterConfigurationState(neighborFilters, common
23
23
  !by.isCommonDate) || false;
24
24
  invariant(filterLocalIdentifier, "Cannot initialize the attribute filter configuration panel, neighbor date filter has missing 'localIdentifier' property.");
25
25
  return {
26
+ ...getDateFilterRange(neighborFilter),
26
27
  localIdentifier: filterLocalIdentifier,
27
28
  isSelected,
28
- dataSet: neighborFilter.dateFilter.dataSet,
29
- from: neighborFilter.dateFilter.from,
30
- to: neighborFilter.dateFilter.to,
31
- granularity: neighborFilter.dateFilter.granularity,
32
- type: neighborFilter.dateFilter.type,
29
+ dataSet: neighborDataSet,
33
30
  isCommonDate: false,
34
31
  };
35
32
  });
36
33
  }, [neighborFilters, filterElementsByDate]);
37
34
  const commonDateFilters = useMemo(() => {
38
- const commonDate = parseCommonDateFilter(commonDateFilter);
35
+ const commonDateRange = getDateFilterRange(commonDateFilter);
39
36
  return (filterElementsByDate ?? [])
40
37
  .filter((parent) => parent.isCommonDate)
41
38
  .map((parent) => {
@@ -49,13 +46,10 @@ export function useDependentDateFilterConfigurationState(neighborFilters, common
49
46
  };
50
47
  invariant(!isUriRef(dimension));
51
48
  return {
49
+ ...commonDateRange,
52
50
  localIdentifier: dimension.identifier,
53
51
  isSelected: true,
54
52
  dataSet: dimension,
55
- from: commonDate.from,
56
- to: commonDate.to,
57
- granularity: commonDate.granularity,
58
- type: commonDate.type,
59
53
  isCommonDate: true,
60
54
  };
61
55
  });
@@ -75,23 +69,25 @@ export function useDependentCommonDateFilterConfigurationState(commonDateFilter)
75
69
  };
76
70
  }
77
71
  }
78
- const parseCommonDateFilter = (commonDate) => {
79
- if (commonDate) {
80
- return {
81
- from: commonDate.dateFilter.from,
82
- to: commonDate.dateFilter.to,
83
- granularity: commonDate.dateFilter.granularity,
84
- type: commonDate.dateFilter.type,
85
- localIdentifier: "commonDate",
86
- isCommonDate: true,
87
- };
72
+ /**
73
+ * Returns the type and the range of a date filter for the parent filter configuration, All time when there is
74
+ * no filter, for example when the dashboard has no common date filter.
75
+ *
76
+ * @remarks
77
+ * The absolute date filter with granularity is described as an absolute one, its periods are not day dates
78
+ * and its granularity is not a date filter granularity, so they are left out. The parameterized date filter
79
+ * holds no period, it is described the same way.
80
+ *
81
+ * @internal
82
+ */
83
+ export function getDateFilterRange(dateFilter) {
84
+ if (!dateFilter) {
85
+ return { granularity: "GDC.time.date", type: "relative" };
88
86
  }
89
- else {
90
- return {
91
- granularity: "GDC.time.date",
92
- type: "relative",
93
- localIdentifier: "commonDate",
94
- isCommonDate: true,
95
- };
87
+ if (isDashboardAbsoluteGranularityDateFilter(dateFilter) ||
88
+ isDashboardParameterizedDateFilter(dateFilter)) {
89
+ return { type: "absolute" };
96
90
  }
97
- };
91
+ const { from, to, granularity, type } = dateFilter.dateFilter;
92
+ return { from, to, granularity, type };
93
+ }
@@ -1,8 +1,8 @@
1
- import { type IDashboardAttributeFilter, type IDashboardDateFilter } from "@gooddata/sdk-model";
1
+ import { type DashboardDateFilterOfAnyType, type IDashboardAttributeFilter } from "@gooddata/sdk-model";
2
2
  import { type IDashboardDependentDateFilter } from "../../../../../../model/types/dateFilterTypes.js";
3
- export declare function useDependentDateFiltersConfiguration(neighborDateFilters: IDashboardDateFilter[], currentFilter: IDashboardAttributeFilter, commonDateFilter?: IDashboardDateFilter): {
3
+ export declare function useDependentDateFiltersConfiguration(neighborDateFilters: DashboardDateFilterOfAnyType[], currentFilter: IDashboardAttributeFilter, commonDateFilter?: DashboardDateFilterOfAnyType): {
4
4
  dependentDateFilters: IDashboardDependentDateFilter[];
5
- dependentCommonDateFilter: IDashboardDateFilter;
5
+ dependentCommonDateFilter: DashboardDateFilterOfAnyType;
6
6
  onDependentDateFiltersSelect: (item: IDashboardDependentDateFilter, isSelected: boolean, isCommonDate: boolean) => void;
7
7
  onConfigurationClose: () => void;
8
8
  onDependentDateFiltersConfigurationChanged: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"useDependentDateFiltersConfiguration.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/filterBar/attributeFilter/dashboardDropdownBody/configuration/hooks/useDependentDateFiltersConfiguration.ts"],"names":[],"mappings":"AAOA,OAAO,EACH,KAAK,yBAAyB,EAE9B,KAAK,oBAAoB,EAE5B,MAAM,qBAAqB,CAAC;AAK7B,OAAO,EAAE,KAAK,6BAA6B,EAAE,MAAM,kDAAkD,CAAC;AAOtG,wBAAgB,oCAAoC,CAChD,mBAAmB,EAAE,oBAAoB,EAAE,EAC3C,aAAa,EAAE,yBAAyB,EACxC,gBAAgB,CAAC,EAAE,oBAAoB;;;yCA6B7B,6BAA6B,cACvB,OAAO,gBACL,OAAO;;;;EAmG5B"}
1
+ {"version":3,"file":"useDependentDateFiltersConfiguration.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/filterBar/attributeFilter/dashboardDropdownBody/configuration/hooks/useDependentDateFiltersConfiguration.ts"],"names":[],"mappings":"AAOA,OAAO,EACH,KAAK,4BAA4B,EACjC,KAAK,yBAAyB,EAIjC,MAAM,qBAAqB,CAAC;AAK7B,OAAO,EAAE,KAAK,6BAA6B,EAAE,MAAM,kDAAkD,CAAC;AAOtG,wBAAgB,oCAAoC,CAChD,mBAAmB,EAAE,4BAA4B,EAAE,EACnD,aAAa,EAAE,yBAAyB,EACxC,gBAAgB,CAAC,EAAE,4BAA4B;;;yCA6BrC,6BAA6B,cACvB,OAAO,gBACL,OAAO;;;;EAoG5B"}
@@ -2,7 +2,7 @@
2
2
  import { useCallback, useMemo, useState } from "react";
3
3
  import { invariant } from "ts-invariant";
4
4
  import { generateDateFilterLocalIdentifier } from "@gooddata/sdk-backend-base";
5
- import { isUriRef, } from "@gooddata/sdk-model";
5
+ import { dashboardFilterLocalIdentifier, isUriRef, } from "@gooddata/sdk-model";
6
6
  import { _isEqual } from "@gooddata/util";
7
7
  import { setAttributeFilterDependentDateFilters } from "../../../../../../model/commands/filters.js";
8
8
  import { useDispatchDashboardCommand } from "../../../../../../model/react/useDispatchDashboardCommand.js";
@@ -51,7 +51,8 @@ export function useDependentDateFiltersConfiguration(neighborDateFilters, curren
51
51
  // localIdentifier (falling back to the canonical common-date id) and carry the chosen
52
52
  // dimension in the separate `dataSet` field. Specific date filters are referenced by their
53
53
  // localIdentifier and need no dataSet (it is derived from the referenced filter).
54
- const commonDateLocalId = commonDateFilter?.dateFilter.localIdentifier ?? generateDateFilterLocalIdentifier(0);
54
+ const commonDateLocalId = (commonDateFilter && dashboardFilterLocalIdentifier(commonDateFilter)) ??
55
+ generateDateFilterLocalIdentifier(0);
55
56
  // the command replaces the whole list, so carry over date filters the panel cannot show
56
57
  const shownLocalIds = new Set([
57
58
  commonDateLocalId,
@@ -1,5 +1,5 @@
1
1
  import { type IntlShape } from "react-intl";
2
- import { type ICatalogDateDataset, type IDashboardDateFilter, type ObjRef } from "@gooddata/sdk-model";
2
+ import { type DashboardDateFilterOfAnyType, type ICatalogDateDataset, type ObjRef } from "@gooddata/sdk-model";
3
3
  import { type IMetricsAndFacts } from "../../../../../../model/queries/metricsAndFacts.js";
4
4
  import { type IDashboardAttributeFilterParentItem } from "../../../../../../model/types/attributeFilterTypes.js";
5
5
  import { type IDashboardDependentDateFilter } from "../../../../../../model/types/dateFilterTypes.js";
@@ -11,7 +11,7 @@ interface ILimitValuesConfigurationProps {
11
11
  metricsAndFacts: IMetricsAndFacts;
12
12
  availableDatasets: ICatalogDateDataset[];
13
13
  dependentDateFilters: IDashboardDependentDateFilter[];
14
- dependentCommonDateFilter: IDashboardDateFilter;
14
+ dependentCommonDateFilter: DashboardDateFilterOfAnyType;
15
15
  onLimitingItemUpdate: (items: ObjRef[]) => void;
16
16
  onParentFilterUpdate: (localId: string, isSelected: boolean, overAttributes?: ObjRef[]) => void;
17
17
  onDependentDateFilterUpdate: (item: IDashboardDependentDateFilter, isSelected: boolean, isCommonDate: boolean) => void;
@@ -1 +1 @@
1
- {"version":3,"file":"LimitValuesConfiguration.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/filterBar/attributeFilter/dashboardDropdownBody/configuration/limitValues/LimitValuesConfiguration.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAoB,KAAK,SAAS,EAAW,MAAM,YAAY,CAAC;AAEvE,OAAO,EACH,KAAK,mBAAmB,EACxB,KAAK,oBAAoB,EACzB,KAAK,MAAM,EAId,MAAM,qBAAqB,CAAC;AAK7B,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,oDAAoD,CAAC;AAI3F,OAAO,EAAE,KAAK,mCAAmC,EAAE,MAAM,uDAAuD,CAAC;AACjH,OAAO,EACH,KAAK,6BAA6B,EAErC,MAAM,kDAAkD,CAAC;AAW1D,UAAU,8BAA8B;IACpC,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,aAAa,EAAE,mCAAmC,EAAE,CAAC;IACrD,kBAAkB,EAAE,MAAM,EAAE,CAAC;IAC7B,kBAAkB,EAAE,MAAM,EAAE,CAAC;IAC7B,eAAe,EAAE,gBAAgB,CAAC;IAClC,iBAAiB,EAAE,mBAAmB,EAAE,CAAC;IACzC,oBAAoB,EAAE,6BAA6B,EAAE,CAAC;IACtD,yBAAyB,EAAE,oBAAoB,CAAC;IAChD,oBAAoB,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;IAChD,oBAAoB,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,cAAc,CAAC,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;IAChG,2BAA2B,EAAE,CACzB,IAAI,EAAE,6BAA6B,EACnC,UAAU,EAAE,OAAO,EACnB,YAAY,EAAE,OAAO,KACpB,IAAI,CAAC;CACb;AA6GD,MAAM,MAAM,sCAAsC,GAAG,8BAA8B,GAAG;IAAE,IAAI,EAAE,SAAS,CAAA;CAAE,CAAC;AAE1G,wBAAgB,iCAAiC,CAAC,KAAK,EAAE,sCAAsC,kDAU9F"}
1
+ {"version":3,"file":"LimitValuesConfiguration.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/filterBar/attributeFilter/dashboardDropdownBody/configuration/limitValues/LimitValuesConfiguration.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAoB,KAAK,SAAS,EAAW,MAAM,YAAY,CAAC;AAEvE,OAAO,EACH,KAAK,4BAA4B,EACjC,KAAK,mBAAmB,EACxB,KAAK,MAAM,EAId,MAAM,qBAAqB,CAAC;AAK7B,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,oDAAoD,CAAC;AAI3F,OAAO,EAAE,KAAK,mCAAmC,EAAE,MAAM,uDAAuD,CAAC;AACjH,OAAO,EACH,KAAK,6BAA6B,EAErC,MAAM,kDAAkD,CAAC;AAW1D,UAAU,8BAA8B;IACpC,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,aAAa,EAAE,mCAAmC,EAAE,CAAC;IACrD,kBAAkB,EAAE,MAAM,EAAE,CAAC;IAC7B,kBAAkB,EAAE,MAAM,EAAE,CAAC;IAC7B,eAAe,EAAE,gBAAgB,CAAC;IAClC,iBAAiB,EAAE,mBAAmB,EAAE,CAAC;IACzC,oBAAoB,EAAE,6BAA6B,EAAE,CAAC;IACtD,yBAAyB,EAAE,4BAA4B,CAAC;IACxD,oBAAoB,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;IAChD,oBAAoB,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,cAAc,CAAC,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;IAChG,2BAA2B,EAAE,CACzB,IAAI,EAAE,6BAA6B,EACnC,UAAU,EAAE,OAAO,EACnB,YAAY,EAAE,OAAO,KACpB,IAAI,CAAC;CACb;AA6GD,MAAM,MAAM,sCAAsC,GAAG,8BAA8B,GAAG;IAAE,IAAI,EAAE,SAAS,CAAA;CAAE,CAAC;AAE1G,wBAAgB,iCAAiC,CAAC,KAAK,EAAE,sCAAsC,kDAU9F"}
@@ -1,4 +1,4 @@
1
- import { type ICatalogDateDataset, type IDashboardDateFilter, type ObjRef } from "@gooddata/sdk-model";
1
+ import { type DashboardDateFilterOfAnyType, type ICatalogDateDataset, type ObjRef } from "@gooddata/sdk-model";
2
2
  import { type IDashboardAttributeFilterParentItem } from "../../../../../../../model/types/attributeFilterTypes.js";
3
3
  import { type IDashboardDependentDateFilter } from "../../../../../../../model/types/dateFilterTypes.js";
4
4
  import { type ValuesLimitingItem } from "../../../../types.js";
@@ -9,7 +9,7 @@ export interface IAddLimitingItemDialogProps {
9
9
  currentlySelectedItems: ObjRef[];
10
10
  dependentDateFilters: IDashboardDependentDateFilter[];
11
11
  availableDatasets: ICatalogDateDataset[];
12
- dependentCommonDateFilter: IDashboardDateFilter;
12
+ dependentCommonDateFilter: DashboardDateFilterOfAnyType;
13
13
  commonDateFilterTitle: string;
14
14
  onSelect: (item: ValuesLimitingItem) => void;
15
15
  onClose: () => void;
@@ -1 +1 @@
1
- {"version":3,"file":"AddLimitingItemDialog.d.ts","sourceRoot":"","sources":["../../../../../../../../src/presentation/filterBar/attributeFilter/dashboardDropdownBody/configuration/limitValues/dialog/AddLimitingItemDialog.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,mBAAmB,EAAE,KAAK,oBAAoB,EAAE,KAAK,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAGvG,OAAO,EAAE,KAAK,mCAAmC,EAAE,MAAM,0DAA0D,CAAC;AACpH,OAAO,EAAE,KAAK,6BAA6B,EAAE,MAAM,qDAAqD,CAAC;AAEzG,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAkB/D,MAAM,WAAW,2BAA2B;IACxC,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,aAAa,EAAE,mCAAmC,EAAE,CAAC;IACrD,kBAAkB,EAAE,MAAM,EAAE,CAAC;IAC7B,sBAAsB,EAAE,MAAM,EAAE,CAAC;IACjC,oBAAoB,EAAE,6BAA6B,EAAE,CAAC;IACtD,iBAAiB,EAAE,mBAAmB,EAAE,CAAC;IACzC,yBAAyB,EAAE,oBAAoB,CAAC;IAChD,qBAAqB,EAAE,MAAM,CAAC;IAC9B,QAAQ,EAAE,CAAC,IAAI,EAAE,kBAAkB,KAAK,IAAI,CAAC;IAC7C,OAAO,EAAE,MAAM,IAAI,CAAC;CACvB;AAID,wBAAgB,qBAAqB,CAAC,EAClC,cAAc,EACd,sBAAsB,EACtB,aAAa,EACb,kBAAkB,EAClB,oBAAoB,EACpB,yBAAyB,EACzB,iBAAiB,EACjB,qBAAqB,EACrB,QAAQ,EACR,OAAO,GACV,EAAE,2BAA2B,2CAoD7B"}
1
+ {"version":3,"file":"AddLimitingItemDialog.d.ts","sourceRoot":"","sources":["../../../../../../../../src/presentation/filterBar/attributeFilter/dashboardDropdownBody/configuration/limitValues/dialog/AddLimitingItemDialog.tsx"],"names":[],"mappings":"AAIA,OAAO,EACH,KAAK,4BAA4B,EACjC,KAAK,mBAAmB,EACxB,KAAK,MAAM,EACd,MAAM,qBAAqB,CAAC;AAG7B,OAAO,EAAE,KAAK,mCAAmC,EAAE,MAAM,0DAA0D,CAAC;AACpH,OAAO,EAAE,KAAK,6BAA6B,EAAE,MAAM,qDAAqD,CAAC;AAEzG,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAkB/D,MAAM,WAAW,2BAA2B;IACxC,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,aAAa,EAAE,mCAAmC,EAAE,CAAC;IACrD,kBAAkB,EAAE,MAAM,EAAE,CAAC;IAC7B,sBAAsB,EAAE,MAAM,EAAE,CAAC;IACjC,oBAAoB,EAAE,6BAA6B,EAAE,CAAC;IACtD,iBAAiB,EAAE,mBAAmB,EAAE,CAAC;IACzC,yBAAyB,EAAE,4BAA4B,CAAC;IACxD,qBAAqB,EAAE,MAAM,CAAC;IAC9B,QAAQ,EAAE,CAAC,IAAI,EAAE,kBAAkB,KAAK,IAAI,CAAC;IAC7C,OAAO,EAAE,MAAM,IAAI,CAAC;CACvB;AAID,wBAAgB,qBAAqB,CAAC,EAClC,cAAc,EACd,sBAAsB,EACtB,aAAa,EACb,kBAAkB,EAClB,oBAAoB,EACpB,yBAAyB,EACzB,iBAAiB,EACjB,qBAAqB,EACrB,QAAQ,EACR,OAAO,GACV,EAAE,2BAA2B,2CAoD7B"}
@@ -1,10 +1,10 @@
1
- import { type ICatalogDateDataset, type IDashboardDateFilter } from "@gooddata/sdk-model";
1
+ import { type DashboardDateFilterOfAnyType, type ICatalogDateDataset } from "@gooddata/sdk-model";
2
2
  import { type IDashboardDependentDateFilter } from "../../../../../../../model/types/dateFilterTypes.js";
3
3
  import { type ValuesLimitingItem } from "../../../../types.js";
4
4
  import { type IValuesLimitingItemWithTitle } from "../shared/limitingItemsHook.js";
5
5
  export interface IDateFiltersPageProps {
6
6
  availableDatasets: ICatalogDateDataset[];
7
- dependentCommonDateFilter: IDashboardDateFilter;
7
+ dependentCommonDateFilter: DashboardDateFilterOfAnyType;
8
8
  dependentDateFilters: IDashboardDependentDateFilter[];
9
9
  onSelect: (item: ValuesLimitingItem) => void;
10
10
  onGoBack: () => void;
@@ -1 +1 @@
1
- {"version":3,"file":"DateFiltersPage.d.ts","sourceRoot":"","sources":["../../../../../../../../src/presentation/filterBar/attributeFilter/dashboardDropdownBody/configuration/limitValues/dialog/DateFiltersPage.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,KAAK,mBAAmB,EAAE,KAAK,oBAAoB,EAAmB,MAAM,qBAAqB,CAAC;AAM3G,OAAO,EACH,KAAK,6BAA6B,EAErC,MAAM,qDAAqD,CAAC;AAC7D,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE/D,OAAO,EACH,KAAK,4BAA4B,EAGpC,MAAM,gCAAgC,CAAC;AAKxC,MAAM,WAAW,qBAAqB;IAClC,iBAAiB,EAAE,mBAAmB,EAAE,CAAC;IACzC,yBAAyB,EAAE,oBAAoB,CAAC;IAChD,oBAAoB,EAAE,6BAA6B,EAAE,CAAC;IACtD,QAAQ,EAAE,CAAC,IAAI,EAAE,kBAAkB,KAAK,IAAI,CAAC;IAC7C,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,OAAO,EAAE,MAAM,IAAI,CAAC;CACvB;AAED,UAAU,uBAAuB;IAC7B,IAAI,EAAE,4BAA4B,CAAC;IACnC,oBAAoB,EAAE,6BAA6B,EAAE,CAAC;IACtD,QAAQ,EAAE,CAAC,IAAI,EAAE,kBAAkB,KAAK,IAAI,CAAC;IAC7C,OAAO,EAAE,MAAM,IAAI,CAAC;CACvB;AAED,wBAAgB,qBAAqB,CAAC,EAClC,IAAI,EAAE,EAAE,IAAI,EAAE,UAAU,EAAE,KAAK,EAAE,EACjC,oBAAoB,EACpB,QAAQ,EACR,OAAO,GACV,EAAE,uBAAuB,2CAsCzB;AAED,wBAAgB,eAAe,CAAC,EAC5B,iBAAiB,EACjB,yBAAyB,EACzB,oBAAoB,EACpB,QAAQ,EACR,QAAQ,EACR,OAAO,GACV,EAAE,qBAAqB,2CAkCvB"}
1
+ {"version":3,"file":"DateFiltersPage.d.ts","sourceRoot":"","sources":["../../../../../../../../src/presentation/filterBar/attributeFilter/dashboardDropdownBody/configuration/limitValues/dialog/DateFiltersPage.tsx"],"names":[],"mappings":"AAOA,OAAO,EACH,KAAK,4BAA4B,EACjC,KAAK,mBAAmB,EAE3B,MAAM,qBAAqB,CAAC;AAM7B,OAAO,EACH,KAAK,6BAA6B,EAErC,MAAM,qDAAqD,CAAC;AAC7D,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE/D,OAAO,EACH,KAAK,4BAA4B,EAGpC,MAAM,gCAAgC,CAAC;AAKxC,MAAM,WAAW,qBAAqB;IAClC,iBAAiB,EAAE,mBAAmB,EAAE,CAAC;IACzC,yBAAyB,EAAE,4BAA4B,CAAC;IACxD,oBAAoB,EAAE,6BAA6B,EAAE,CAAC;IACtD,QAAQ,EAAE,CAAC,IAAI,EAAE,kBAAkB,KAAK,IAAI,CAAC;IAC7C,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,OAAO,EAAE,MAAM,IAAI,CAAC;CACvB;AAED,UAAU,uBAAuB;IAC7B,IAAI,EAAE,4BAA4B,CAAC;IACnC,oBAAoB,EAAE,6BAA6B,EAAE,CAAC;IACtD,QAAQ,EAAE,CAAC,IAAI,EAAE,kBAAkB,KAAK,IAAI,CAAC;IAC7C,OAAO,EAAE,MAAM,IAAI,CAAC;CACvB;AAED,wBAAgB,qBAAqB,CAAC,EAClC,IAAI,EAAE,EAAE,IAAI,EAAE,UAAU,EAAE,KAAK,EAAE,EACjC,oBAAoB,EACpB,QAAQ,EACR,OAAO,GACV,EAAE,uBAAuB,2CAsCzB;AAED,wBAAgB,eAAe,CAAC,EAC5B,iBAAiB,EACjB,yBAAyB,EACzB,oBAAoB,EACpB,QAAQ,EACR,QAAQ,EACR,OAAO,GACV,EAAE,qBAAqB,2CAkCvB"}
@@ -3,7 +3,7 @@ import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-run
3
3
  import { useMemo } from "react";
4
4
  import cx from "classnames";
5
5
  import { FormattedMessage, useIntl } from "react-intl";
6
- import { serializeObjRef } from "@gooddata/sdk-model";
6
+ import { serializeObjRef, } from "@gooddata/sdk-model";
7
7
  import { DropdownList, ShortenedText } from "@gooddata/sdk-ui-kit";
8
8
  import { simplifyText } from "@gooddata/util";
9
9
  import { messages } from "../../../../../../../locales.js";
@@ -1,4 +1,4 @@
1
- import { type ICatalogDateDataset, type IDashboardDateFilter, type ObjRef } from "@gooddata/sdk-model";
1
+ import { type DashboardDateFilterOfAnyType, type ICatalogDateDataset, type ObjRef } from "@gooddata/sdk-model";
2
2
  import { type IDashboardAttributeFilterParentItem } from "../../../../../../../model/types/attributeFilterTypes.js";
3
3
  import { type IDashboardDependentDateFilter } from "../../../../../../../model/types/dateFilterTypes.js";
4
4
  import { type ValuesLimitingItem } from "../../../../types.js";
@@ -8,7 +8,7 @@ export interface IParentFiltersPageProps {
8
8
  validParentFilters: ObjRef[];
9
9
  dependentDateFilters: IDashboardDependentDateFilter[];
10
10
  availableDatasets: ICatalogDateDataset[];
11
- dependentCommonDateFilter: IDashboardDateFilter;
11
+ dependentCommonDateFilter: DashboardDateFilterOfAnyType;
12
12
  commonDateFilterTitle: string;
13
13
  onSelect: (item: ValuesLimitingItem) => void;
14
14
  onGoBack: () => void;
@@ -1 +1 @@
1
- {"version":3,"file":"ParentFiltersPage.d.ts","sourceRoot":"","sources":["../../../../../../../../src/presentation/filterBar/attributeFilter/dashboardDropdownBody/configuration/limitValues/dialog/ParentFiltersPage.tsx"],"names":[],"mappings":"AAOA,OAAO,EACH,KAAK,mBAAmB,EACxB,KAAK,oBAAoB,EACzB,KAAK,MAAM,EAEd,MAAM,qBAAqB,CAAC;AAM7B,OAAO,EAAE,KAAK,mCAAmC,EAAE,MAAM,0DAA0D,CAAC;AACpH,OAAO,EACH,KAAK,6BAA6B,EAErC,MAAM,qDAAqD,CAAC;AAC7D,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAO/D,MAAM,WAAW,uBAAuB;IACpC,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,aAAa,EAAE,mCAAmC,EAAE,CAAC;IACrD,kBAAkB,EAAE,MAAM,EAAE,CAAC;IAC7B,oBAAoB,EAAE,6BAA6B,EAAE,CAAC;IACtD,iBAAiB,EAAE,mBAAmB,EAAE,CAAC;IACzC,yBAAyB,EAAE,oBAAoB,CAAC;IAChD,qBAAqB,EAAE,MAAM,CAAC;IAC9B,QAAQ,EAAE,CAAC,IAAI,EAAE,kBAAkB,KAAK,IAAI,CAAC;IAC7C,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,kBAAkB,EAAE,MAAM,IAAI,CAAC;CAClC;AAuGD,wBAAgB,iBAAiB,CAAC,EAC9B,cAAc,EACd,aAAa,EACb,kBAAkB,EAClB,oBAAoB,EACpB,yBAAyB,EACzB,iBAAiB,EACjB,qBAAqB,EACrB,QAAQ,EACR,QAAQ,EACR,OAAO,EACP,kBAAkB,GACrB,EAAE,uBAAuB,2CA0CzB"}
1
+ {"version":3,"file":"ParentFiltersPage.d.ts","sourceRoot":"","sources":["../../../../../../../../src/presentation/filterBar/attributeFilter/dashboardDropdownBody/configuration/limitValues/dialog/ParentFiltersPage.tsx"],"names":[],"mappings":"AAOA,OAAO,EACH,KAAK,4BAA4B,EACjC,KAAK,mBAAmB,EACxB,KAAK,MAAM,EAEd,MAAM,qBAAqB,CAAC;AAM7B,OAAO,EAAE,KAAK,mCAAmC,EAAE,MAAM,0DAA0D,CAAC;AACpH,OAAO,EACH,KAAK,6BAA6B,EAErC,MAAM,qDAAqD,CAAC;AAC7D,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAO/D,MAAM,WAAW,uBAAuB;IACpC,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,aAAa,EAAE,mCAAmC,EAAE,CAAC;IACrD,kBAAkB,EAAE,MAAM,EAAE,CAAC;IAC7B,oBAAoB,EAAE,6BAA6B,EAAE,CAAC;IACtD,iBAAiB,EAAE,mBAAmB,EAAE,CAAC;IACzC,yBAAyB,EAAE,4BAA4B,CAAC;IACxD,qBAAqB,EAAE,MAAM,CAAC;IAC9B,QAAQ,EAAE,CAAC,IAAI,EAAE,kBAAkB,KAAK,IAAI,CAAC;IAC7C,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,kBAAkB,EAAE,MAAM,IAAI,CAAC;CAClC;AAuGD,wBAAgB,iBAAiB,CAAC,EAC9B,cAAc,EACd,aAAa,EACb,kBAAkB,EAClB,oBAAoB,EACpB,yBAAyB,EACzB,iBAAiB,EACjB,qBAAqB,EACrB,QAAQ,EACR,QAAQ,EACR,OAAO,EACP,kBAAkB,GACrB,EAAE,uBAAuB,2CA0CzB"}
@@ -1,5 +1,5 @@
1
1
  import { type IntlShape } from "react-intl";
2
- import { type ICatalogDateDataset, type IDashboardDateFilter, type ObjRef } from "@gooddata/sdk-model";
2
+ import { type DashboardDateFilterOfAnyType, type ICatalogDateDataset, type ObjRef } from "@gooddata/sdk-model";
3
3
  import { type IMetricsAndFacts } from "../../../../../../../model/queries/metricsAndFacts.js";
4
4
  import { type IDashboardAttributeFilterParentItem } from "../../../../../../../model/types/attributeFilterTypes.js";
5
5
  import { type IDashboardDependentDateFilter } from "../../../../../../../model/types/dateFilterTypes.js";
@@ -14,7 +14,7 @@ export interface IValuesLimitingItemWithTitle {
14
14
  export declare const sortByTypeAndTitle: (a: IValuesLimitingItemWithTitle, b: IValuesLimitingItemWithTitle) => number;
15
15
  export declare const useLimitingItems: (parentFilters: IDashboardAttributeFilterParentItem[], validParentFilters: ObjRef[], validateElementsBy: ObjRef[], metricsAndFacts: IMetricsAndFacts, dependentDateFilters: IDashboardDependentDateFilter[], availableDatasets: ICatalogDateDataset[], isEnabledKDAttributeFilterDatesValidation: boolean, isSelected: boolean, intl: IntlShape) => IValuesLimitingItemWithTitle[];
16
16
  export declare const useSearchableLimitingItems: (currentlySelectedItems: ObjRef[]) => IValuesLimitingItemWithTitle[];
17
- export declare const useFilterItems: (parentFilters: IDashboardAttributeFilterParentItem[], validParentFilters: ObjRef[], dependentDateFilters: IDashboardDependentDateFilter[], availableDatasets: ICatalogDateDataset[], dependentCommonDateFilter: IDashboardDateFilter, isEnabledKDAttributeFilterDatesValidation: boolean, isSelected: boolean, intl: IntlShape) => IValuesLimitingItemWithTitle[];
18
- export declare const useCommonDateItems: (availableDatasets: ICatalogDateDataset[], dependentCommonDateFilter: IDashboardDateFilter, dependentDateFilters?: IDashboardDependentDateFilter[]) => IValuesLimitingItemWithTitle[];
17
+ export declare const useFilterItems: (parentFilters: IDashboardAttributeFilterParentItem[], validParentFilters: ObjRef[], dependentDateFilters: IDashboardDependentDateFilter[], availableDatasets: ICatalogDateDataset[], dependentCommonDateFilter: DashboardDateFilterOfAnyType, isEnabledKDAttributeFilterDatesValidation: boolean, isSelected: boolean, intl: IntlShape) => IValuesLimitingItemWithTitle[];
18
+ export declare const useCommonDateItems: (availableDatasets: ICatalogDateDataset[], dependentCommonDateFilter: DashboardDateFilterOfAnyType, dependentDateFilters?: IDashboardDependentDateFilter[]) => IValuesLimitingItemWithTitle[];
19
19
  export declare const useDependentDateFilterTitle: (dataSet: ObjRef | undefined, dependentDateFilters: IDashboardDependentDateFilter[]) => string;
20
20
  //# sourceMappingURL=limitingItemsHook.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"limitingItemsHook.d.ts","sourceRoot":"","sources":["../../../../../../../../src/presentation/filterBar/attributeFilter/dashboardDropdownBody/configuration/limitValues/shared/limitingItemsHook.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;AAG5C,OAAO,EAGH,KAAK,mBAAmB,EACxB,KAAK,oBAAoB,EAGzB,KAAK,MAAM,EAId,MAAM,qBAAqB,CAAC;AAG7B,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,uDAAuD,CAAC;AAW9F,OAAO,EAAE,KAAK,mCAAmC,EAAE,MAAM,0DAA0D,CAAC;AACpH,OAAO,EAAE,KAAK,6BAA6B,EAAE,MAAM,qDAAqD,CAAC;AACzG,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE/D,MAAM,WAAW,4BAA4B;IACzC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,kBAAkB,CAAC;IACzB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,2BAA2B,CAAC,EAAE,OAAO,CAAC;CACzC;AAmED,eAAO,MAAM,kBAAkB,MACxB,4BAA4B,KAC5B,4BAA4B,KAChC,MAMF,CAAC;AAsBF,eAAO,MAAM,gBAAgB,kBACV,mCAAmC,EAAE,sBAChC,MAAM,EAAE,sBACR,MAAM,EAAE,mBACX,gBAAgB,wBACX,6BAA6B,EAAE,qBAClC,mBAAmB,EAAE,6CACG,OAAO,cACtC,OAAO,QACb,SAAS,KAChB,4BAA4B,EAoD9B,CAAC;AAEF,eAAO,MAAM,0BAA0B,2BACX,MAAM,EAAE,KACjC,4BAA4B,EAsB9B,CAAC;AAEF,eAAO,MAAM,cAAc,kBACR,mCAAmC,EAAE,sBAChC,MAAM,EAAE,wBACN,6BAA6B,EAAE,qBAClC,mBAAmB,EAAE,6BACb,oBAAoB,6CACJ,OAAO,cACtC,OAAO,QACb,SAAS,KAChB,4BAA4B,EAuD9B,CAAC;AAgEF,eAAO,MAAM,kBAAkB,sBACR,mBAAmB,EAAE,6BACb,oBAAoB,yBACxB,6BAA6B,EAAE,KACvD,4BAA4B,EAyB9B,CAAC;AAoBF,eAAO,MAAM,2BAA2B,YAC3B,MAAM,GAAG,SAAS,wBACL,6BAA6B,EAAE,KACtD,MAYF,CAAC"}
1
+ {"version":3,"file":"limitingItemsHook.d.ts","sourceRoot":"","sources":["../../../../../../../../src/presentation/filterBar/attributeFilter/dashboardDropdownBody/configuration/limitValues/shared/limitingItemsHook.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;AAG5C,OAAO,EACH,KAAK,4BAA4B,EAGjC,KAAK,mBAAmB,EAGxB,KAAK,MAAM,EAId,MAAM,qBAAqB,CAAC;AAG7B,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,uDAAuD,CAAC;AAW9F,OAAO,EAAE,KAAK,mCAAmC,EAAE,MAAM,0DAA0D,CAAC;AACpH,OAAO,EAAE,KAAK,6BAA6B,EAAE,MAAM,qDAAqD,CAAC;AACzG,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAG/D,MAAM,WAAW,4BAA4B;IACzC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,kBAAkB,CAAC;IACzB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,2BAA2B,CAAC,EAAE,OAAO,CAAC;CACzC;AAmED,eAAO,MAAM,kBAAkB,MACxB,4BAA4B,KAC5B,4BAA4B,KAChC,MAMF,CAAC;AAsBF,eAAO,MAAM,gBAAgB,kBACV,mCAAmC,EAAE,sBAChC,MAAM,EAAE,sBACR,MAAM,EAAE,mBACX,gBAAgB,wBACX,6BAA6B,EAAE,qBAClC,mBAAmB,EAAE,6CACG,OAAO,cACtC,OAAO,QACb,SAAS,KAChB,4BAA4B,EAoD9B,CAAC;AAEF,eAAO,MAAM,0BAA0B,2BACX,MAAM,EAAE,KACjC,4BAA4B,EAsB9B,CAAC;AAEF,eAAO,MAAM,cAAc,kBACR,mCAAmC,EAAE,sBAChC,MAAM,EAAE,wBACN,6BAA6B,EAAE,qBAClC,mBAAmB,EAAE,6BACb,4BAA4B,6CACZ,OAAO,cACtC,OAAO,QACb,SAAS,KAChB,4BAA4B,EAuD9B,CAAC;AAgEF,eAAO,MAAM,kBAAkB,sBACR,mBAAmB,EAAE,6BACb,4BAA4B,yBAChC,6BAA6B,EAAE,KACvD,4BAA4B,EAyB9B,CAAC;AAiBF,eAAO,MAAM,2BAA2B,YAC3B,MAAM,GAAG,SAAS,wBACL,6BAA6B,EAAE,KACtD,MAYF,CAAC"}
@@ -6,6 +6,7 @@ import { useDashboardSelector } from "../../../../../../../model/react/Dashboard
6
6
  import { selectAllCatalogDateDatasetsMap, selectAllCatalogDisplayFormsMap, selectCatalogAttributesWithComputed, selectCatalogFacts, selectCatalogMeasures, } from "../../../../../../../model/store/catalog/catalogSelectors.js";
7
7
  import { selectDateFilterConfigOverrides } from "../../../../../../../model/store/tabs/dateFilterConfig/dateFilterConfigSelectors.js";
8
8
  import { selectDateFilterConfigsOverrides } from "../../../../../../../model/store/tabs/dateFilterConfigs/dateFilterConfigsSelectors.js";
9
+ import { getDateFilterRange } from "../../hooks/useDependentDateFilterConfigurationState.js";
9
10
  const findAttributeByLabel = (labelRef, labels, attributes) => {
10
11
  const attributeRef = labels.get(labelRef)?.attribute;
11
12
  return attributes.find((attribute) => areObjRefsEqual(attribute.attribute.ref, attributeRef));
@@ -214,10 +215,7 @@ export const useCommonDateItems = (availableDatasets, dependentCommonDateFilter,
214
215
  const parseCommonDateFilter = (commonDate, dataSet) => {
215
216
  invariant(!isUriRef(dataSet));
216
217
  return {
217
- from: commonDate.dateFilter.from,
218
- to: commonDate.dateFilter.to,
219
- granularity: commonDate.dateFilter.granularity,
220
- type: commonDate.dateFilter.type,
218
+ ...getDateFilterRange(commonDate),
221
219
  localIdentifier: dataSet?.identifier ?? "commonDate",
222
220
  isSelected: true,
223
221
  dataSet: dataSet,
@@ -1 +1 @@
1
- {"version":3,"file":"useDependentDateFilters.d.ts","sourceRoot":"","sources":["../../../../src/presentation/filterBar/attributeFilter/useDependentDateFilters.ts"],"names":[],"mappings":"AAMA,OAAO,EACH,KAAK,4BAA4B,EAOpC,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,KAAK,yBAAyB,EAAE,MAAM,0BAA0B,CAAC;AAe1E;;;;GAIG;AACH,MAAM,MAAM,sBAAsB,GAAG,IAAI,CAAC,yBAAyB,EAAE,sBAAsB,CAAC,CAAC;AAE7F;;;;;;;GAOG;AACH,eAAO,MAAM,uBAAuB,WACxB,4BAA4B,UAC5B,MAAM,KACf,sBAiFF,CAAC"}
1
+ {"version":3,"file":"useDependentDateFilters.d.ts","sourceRoot":"","sources":["../../../../src/presentation/filterBar/attributeFilter/useDependentDateFilters.ts"],"names":[],"mappings":"AAMA,OAAO,EACH,KAAK,4BAA4B,EAUpC,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,KAAK,yBAAyB,EAAE,MAAM,0BAA0B,CAAC;AAe1E;;;;GAIG;AACH,MAAM,MAAM,sBAAsB,GAAG,IAAI,CAAC,yBAAyB,EAAE,sBAAsB,CAAC,CAAC;AAE7F;;;;;;;GAOG;AACH,eAAO,MAAM,uBAAuB,WACxB,4BAA4B,UAC5B,MAAM,KACf,sBAyEF,CAAC"}
@@ -1,10 +1,10 @@
1
1
  // (C) 2024-2026 GoodData Corporation
2
2
  import { useMemo } from "react";
3
3
  import { invariant } from "ts-invariant";
4
- import { dashboardAttributeFilterItemFilterElementsByDate, isDashboardDateFilter, objRefToString, } from "@gooddata/sdk-model";
4
+ import { dashboardAttributeFilterItemFilterElementsByDate, dashboardFilterLocalIdentifier, dashboardFilterObjRef, isDashboardAbsoluteGranularityDateFilter, isDashboardParameterizedDateFilter, objRefToString, } from "@gooddata/sdk-model";
5
5
  import { useDashboardSelector } from "../../../model/react/DashboardStoreProvider.js";
6
6
  import { selectIsApplyFiltersAllAtOnceEnabledAndSet } from "../../../model/store/config/configSelectors.js";
7
- import { selectFilterContextDateFilter, selectFilterContextDateFilterForTab, selectFilterContextDateFiltersWithDimension, selectFilterContextDateFiltersWithDimensionForTab, selectWorkingFilterContextDateFilter, selectWorkingFilterContextDateFilterForTab, selectWorkingFilterContextDateFiltersWithDimension, selectWorkingFilterContextDateFiltersWithDimensionForTab, } from "../../../model/store/tabs/filterContext/filterContextSelectors.js";
7
+ import { selectFilterContextDateFilterForTab, selectFilterContextDateFilterOfAnyType, selectFilterContextDateFiltersWithDimensionForTab, selectFilterContextDateFiltersWithDimensionOfAnyType, selectWorkingFilterContextDateFilterForTab, selectWorkingFilterContextDateFilterOfAnyType, selectWorkingFilterContextDateFiltersWithDimensionForTab, selectWorkingFilterContextDateFiltersWithDimensionOfAnyType, } from "../../../model/store/tabs/filterContext/filterContextSelectors.js";
8
8
  /**
9
9
  * Returns depdent date filtering input props for {@link @gooddata/sdk-ui-filters#AttributeFilter} for particular dashboard attribute filter.
10
10
  *
@@ -18,19 +18,20 @@ export const useDependentDateFilters = (filter, tabId) => {
18
18
  // Use tab-specific selectors when tabId is provided
19
19
  const allAppliedDateFilters = useDashboardSelector(tabId
20
20
  ? selectFilterContextDateFiltersWithDimensionForTab(tabId)
21
- : selectFilterContextDateFiltersWithDimension);
21
+ : selectFilterContextDateFiltersWithDimensionOfAnyType);
22
22
  const allWorkingDateFilters = useDashboardSelector(tabId
23
23
  ? selectWorkingFilterContextDateFiltersWithDimensionForTab(tabId)
24
- : selectWorkingFilterContextDateFiltersWithDimension);
24
+ : selectWorkingFilterContextDateFiltersWithDimensionOfAnyType);
25
25
  const allDateFilters = isApplyAllAtOnceEnabledAndSet ? allWorkingDateFilters : allAppliedDateFilters;
26
26
  // Use tab-specific selectors for common date filter when tabId is provided
27
- const commonAppliedDateFilter = useDashboardSelector(tabId ? selectFilterContextDateFilterForTab(tabId) : selectFilterContextDateFilter);
28
- const commonWorkingDateFilter = useDashboardSelector(tabId ? selectWorkingFilterContextDateFilterForTab(tabId) : selectWorkingFilterContextDateFilter);
27
+ const commonAppliedDateFilter = useDashboardSelector(tabId ? selectFilterContextDateFilterForTab(tabId) : selectFilterContextDateFilterOfAnyType);
28
+ const commonWorkingDateFilter = useDashboardSelector(tabId
29
+ ? selectWorkingFilterContextDateFilterForTab(tabId)
30
+ : selectWorkingFilterContextDateFilterOfAnyType);
29
31
  const commonDateFilter = isApplyAllAtOnceEnabledAndSet
30
32
  ? commonWorkingDateFilter
31
33
  : commonAppliedDateFilter;
32
- // Whole periods of the common date filter do not limit the values of a dependent filter yet.
33
- const commonDateFilterWithAllTime = getCommonDateFilterWithAllTime(isDashboardDateFilter(commonDateFilter) ? commonDateFilter : undefined);
34
+ const commonDateFilterWithAllTime = getCommonDateFilterWithAllTime(commonDateFilter);
34
35
  const filterElementsByDate = dashboardAttributeFilterItemFilterElementsByDate(filter);
35
36
  const dependentDateFilters = useMemo(() => {
36
37
  return filterElementsByDate?.map((dependentDateFilter) => {
@@ -43,16 +44,7 @@ export const useDependentDateFilters = (filter, tabId) => {
43
44
  identifier: dependentDateFilter.filterLocalIdentifier,
44
45
  type: "dataSet",
45
46
  };
46
- const commonDashboardDateFilter = {
47
- dateFilter: {
48
- type: commonDateFilterWithAllTime?.dateFilter.type,
49
- granularity: commonDateFilterWithAllTime?.dateFilter.granularity,
50
- from: commonDateFilterWithAllTime?.dateFilter.from,
51
- to: commonDateFilterWithAllTime?.dateFilter.to,
52
- dataSet,
53
- },
54
- };
55
- return commonDashboardDateFilter;
47
+ return applyCommonDateFilterToDataSet(commonDateFilterWithAllTime, dataSet);
56
48
  }
57
49
  else {
58
50
  // Try localIdentifier first (new format), then fall back to dataset identifier
@@ -60,8 +52,9 @@ export const useDependentDateFilters = (filter, tabId) => {
60
52
  // NOTE: If a filter's localIdentifier happens to equal another filter's dataset
61
53
  // identifier the wrong filter could be matched — this is an accepted theoretical
62
54
  // risk given the practical namespace separation between the two.
63
- const matchingFilter = allDateFilters.find((filter) => filter.dateFilter.localIdentifier === dependentDateFilter.filterLocalIdentifier ||
64
- objRefToString(filter.dateFilter.dataSet) ===
55
+ const matchingFilter = allDateFilters.find((filter) => dashboardFilterLocalIdentifier(filter) ===
56
+ dependentDateFilter.filterLocalIdentifier ||
57
+ objRefToString(dashboardFilterObjRef(filter)) ===
65
58
  dependentDateFilter.filterLocalIdentifier);
66
59
  invariant(matchingFilter); // if this blows up, the state is inconsistent
67
60
  return matchingFilter;
@@ -72,6 +65,35 @@ export const useDependentDateFilters = (filter, tabId) => {
72
65
  dependentDateFilters,
73
66
  };
74
67
  };
68
+ /**
69
+ * Applies the range of the common date filter through the given date dataset.
70
+ */
71
+ const applyCommonDateFilterToDataSet = (commonDateFilter, dataSet) => {
72
+ if (isDashboardAbsoluteGranularityDateFilter(commonDateFilter)) {
73
+ // granularity and the period range, the range may be open on one side
74
+ const { dataSet: _dataSet, localIdentifier: _localIdentifier, emptyValueHandling: _emptyValueHandling, ...periodRange } = commonDateFilter.dashboardAbsoluteGranularityDateFilter;
75
+ return {
76
+ dashboardAbsoluteGranularityDateFilter: {
77
+ ...periodRange,
78
+ dataSet,
79
+ },
80
+ };
81
+ }
82
+ if (isDashboardParameterizedDateFilter(commonDateFilter)) {
83
+ const { parameter } = commonDateFilter.dashboardParameterizedDateFilter;
84
+ return { dashboardParameterizedDateFilter: { parameter, dataSet } };
85
+ }
86
+ const { type, granularity, from, to } = commonDateFilter.dateFilter;
87
+ return {
88
+ dateFilter: {
89
+ type,
90
+ granularity,
91
+ from,
92
+ to,
93
+ dataSet,
94
+ },
95
+ };
96
+ };
75
97
  const getCommonDateFilterWithAllTime = (commonDate) => {
76
98
  if (commonDate) {
77
99
  return commonDate;
@@ -1 +1 @@
1
- {"version":3,"file":"DefaultDashboardDateFilter.d.ts","sourceRoot":"","sources":["../../../../src/presentation/filterBar/dateFilter/DefaultDashboardDateFilter.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,YAAY,EAAkC,MAAM,OAAO,CAAC;AAwC1E,OAAO,EAAE,KAAK,gCAAgC,EAAE,MAAM,YAAY,CAAC;AAmBnE;;;;;;GAMG;AACH,wBAAgB,0BAA0B,CAAC,KAAK,EAAE,gCAAgC,GAAG,YAAY,CAmNhG"}
1
+ {"version":3,"file":"DefaultDashboardDateFilter.d.ts","sourceRoot":"","sources":["../../../../src/presentation/filterBar/dateFilter/DefaultDashboardDateFilter.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,YAAY,EAAkC,MAAM,OAAO,CAAC;AA4C1E,OAAO,EAAE,KAAK,gCAAgC,EAAE,MAAM,YAAY,CAAC;AAmBnE;;;;;;GAMG;AACH,wBAAgB,0BAA0B,CAAC,KAAK,EAAE,gCAAgC,GAAG,YAAY,CAoNhG"}
@@ -6,9 +6,10 @@ import { DashboardDateFilterConfigModeValues, areObjRefsEqual, dashboardFilterLo
6
6
  import { DateFilter, getLocalizedIcuDateFormatPattern, } from "@gooddata/sdk-ui-filters";
7
7
  import { dateFilterOptionToDashboardDateFilter } from "../../../_staging/dashboard/dashboardFilterConverter.js";
8
8
  import { matchDateFilterToDateFilterOptionWithPreference } from "../../../_staging/dateFilterConfig/dateFilterOptionMapping.js";
9
+ import { periodPresetsForButton } from "../../../_staging/dateFilterConfig/periodPresets.js";
9
10
  import { useDashboardSelector } from "../../../model/react/DashboardStoreProvider.js";
10
11
  import { selectBackendCapabilities } from "../../../model/store/backendCapabilities/backendCapabilitiesSelectors.js";
11
- import { selectCatalogDateDatasets } from "../../../model/store/catalog/catalogSelectors.js";
12
+ import { selectCatalogDateDatasets, selectCatalogDateRangeParameters, } from "../../../model/store/catalog/catalogSelectors.js";
12
13
  import { selectActiveCalendars, selectIsApplyFiltersAllAtOnceEnabledAndSet, selectLocale, selectSettings, selectWeekStart, } from "../../../model/store/config/configSelectors.js";
13
14
  import { selectIsInEditMode } from "../../../model/store/renderMode/renderModeSelectors.js";
14
15
  import { useCurrentDateFilterConfig } from "../../dragAndDrop/useCurrentDateFilterConfig.js";
@@ -62,6 +63,7 @@ export function DefaultDashboardDateFilter(props) {
62
63
  const enableEmptyDateValues = config.dateFilterOptions.emptyValues?.visible ?? true;
63
64
  const isAbsoluteDateFilterGranularityEnabled = !!settings.enableAbsoluteDateFilterGranularity && !!onAnyTypeFilterChanged;
64
65
  const allDateDatasets = useDashboardSelector(selectCatalogDateDatasets);
66
+ const dateRangeParameters = useDashboardSelector(selectCatalogDateRangeParameters);
65
67
  let defaultDateFilterName;
66
68
  if (dataSet) {
67
69
  const dateDataSetName = allDateDatasets.find((ds) => areObjRefsEqual(ds.dataSet.ref, dataSet))
@@ -75,12 +77,13 @@ export function DefaultDashboardDateFilter(props) {
75
77
  const { title, mode } = useCurrentDateFilterConfig(dataSet, defaultDateFilterName, tabId);
76
78
  const [lastSelectedOptionId, setLastSelectedOptionId] = useState("");
77
79
  const dateFilterOptions = useMemo(() => {
78
- if (enableEmptyDateValues) {
79
- return config.dateFilterOptions;
80
- }
81
- const { emptyValues: _emptyValues, ...rest } = config.dateFilterOptions;
82
- return rest;
83
- }, [config.dateFilterOptions, enableEmptyDateValues]);
80
+ const { emptyValues, ...rest } = config.dateFilterOptions;
81
+ return {
82
+ ...rest,
83
+ ...(enableEmptyDateValues && emptyValues ? { emptyValues } : {}),
84
+ periodPreset: periodPresetsForButton(dateRangeParameters),
85
+ };
86
+ }, [config.dateFilterOptions, enableEmptyDateValues, dateRangeParameters]);
84
87
  const { dateFilterOption, excludeCurrentPeriod } = useMemo(() => matchDateFilterToDateFilterOptionWithPreference(filter, dateFilterOptions, lastSelectedOptionId), [filter, dateFilterOptions, lastSelectedOptionId]);
85
88
  const { dateFilterOption: workingFilterOption, excludeCurrentPeriod: workingExcludeCurrentPeriod } = useMemo(() => matchDateFilterToDateFilterOptionWithPreference(workingFilter, dateFilterOptions, lastSelectedOptionId), [workingFilter, dateFilterOptions, lastSelectedOptionId]);
86
89
  const onApply = useCallback((option, exclude) => {
@@ -1 +1 @@
1
- {"version":3,"file":"DefaultFilterBar.d.ts","sourceRoot":"","sources":["../../../../src/presentation/filterBar/filterBar/DefaultFilterBar.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,YAAY,EAAe,MAAM,OAAO,CAAC;AAqFvD,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,YAAY,CAAC;AAGlD;;GAEG;AACH,eAAO,MAAM,iBAAiB,QAAO,eA+PpC,CAAC;AAEF;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,eAAe,GAAG,YAAY,CA+IrE"}
1
+ {"version":3,"file":"DefaultFilterBar.d.ts","sourceRoot":"","sources":["../../../../src/presentation/filterBar/filterBar/DefaultFilterBar.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,YAAY,EAAe,MAAM,OAAO,CAAC;AAsFvD,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,YAAY,CAAC;AAGlD;;GAEG;AACH,eAAO,MAAM,iBAAiB,QAAO,eA+PpC,CAAC;AAEF;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,eAAe,GAAG,YAAY,CA+IrE"}
@@ -3,7 +3,7 @@ import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-run
3
3
  import { useCallback } from "react";
4
4
  import classNames from "classnames";
5
5
  import { generateDateFilterLocalIdentifier } from "@gooddata/sdk-backend-base";
6
- import { DashboardDateFilterConfigModeValues, DashboardParameterModeValues, areObjRefsEqual, dashboardAttributeFilterItemDisplayForm, dashboardAttributeFilterItemLocalIdentifier, dashboardFilterLocalIdentifier, isAllTimeDashboardDateFilter, isDashboardAbsoluteGranularityDateFilter, isDashboardAttributeFilter, isDashboardAttributeFilterItem, isDashboardDateFilter, isDashboardMeasureValueFilter, isDashboardParameterizedDateFilter, objRefToString, } from "@gooddata/sdk-model";
6
+ import { DashboardDateFilterConfigModeValues, DashboardParameterModeValues, areObjRefsEqual, dashboardAttributeFilterItemDisplayForm, dashboardAttributeFilterItemLocalIdentifier, dashboardFilterLocalIdentifier, dashboardFilterObjRef, isAllTimeDashboardDateFilter, isDashboardAbsoluteGranularityDateFilter, isDashboardAttributeFilter, isDashboardAttributeFilterItem, isDashboardDateFilterOfAnyType, isDashboardMeasureValueFilter, isDashboardParameterizedDateFilter, objRefToString, } from "@gooddata/sdk-model";
7
7
  import { convertDashboardAttributeFilterElementsValuesToUris } from "../../../_staging/dashboard/legacyFilterConvertors.js";
8
8
  import { setDashboardAttributeFilterConfigDisplayAsLabel } from "../../../model/commands/dashboard.js";
9
9
  import { changeAttributeFilterSelection, changeDateFilterSelection, changeDateFilterSelectionOfAnyType, changeMeasureValueFilterCondition, changeMigratedAttributeFilterSelection, changeWorkingAttributeFilterSelection, changeWorkingMeasureValueFilterCondition, clearDateFilterSelection, removeRestrictedFilters, replaceAttributeFilterItemSelection, replaceWorkingAttributeFilterItemSelection, setAttributeFilterDisplayForm, } from "../../../model/commands/filters.js";
@@ -133,8 +133,8 @@ export const useFilterBarProps = () => {
133
133
  else {
134
134
  const { type, granularity, from, to, dataSet, localIdentifier, boundedFilter, emptyValueHandling, } = filter.dateFilter;
135
135
  const filterIndex = filters
136
- .filter(isDashboardDateFilter)
137
- .findIndex((filter) => areObjRefsEqual(filter.dateFilter.dataSet, dataSet));
136
+ .filter(isDashboardDateFilterOfAnyType)
137
+ .findIndex((filter) => areObjRefsEqual(dashboardFilterObjRef(filter), dataSet));
138
138
  const sanitizedFilterIndex = filterIndex < 0 ? 0 : filterIndex;
139
139
  const newLocalIdentifier = generateDateFilterLocalIdentifier(sanitizedFilterIndex, dataSet);
140
140
  dispatch(changeDateFilterSelection(type, granularity, from, to, dateFilterOptionLocalId, undefined, dataSet, isWorkingSelectionChange && isApplyAllAtOnceEnabledAndSet, localIdentifier ?? newLocalIdentifier, boundedFilter, emptyValueHandling));
@@ -1 +1 @@
1
- {"version":3,"file":"DefaultFilterBarContainer.d.ts","sourceRoot":"","sources":["../../../../src/presentation/filterBar/filterBar/DefaultFilterBarContainer.tsx"],"names":[],"mappings":"AAEA,OAAO,EAGH,KAAK,SAAS,EAOjB,MAAM,OAAO,CAAC;AAqff;;GAEG;AACH,wBAAgB,yBAAyB,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,CAAC,EAAE,SAAS,CAAA;CAAE,2CAQ/E"}
1
+ {"version":3,"file":"DefaultFilterBarContainer.d.ts","sourceRoot":"","sources":["../../../../src/presentation/filterBar/filterBar/DefaultFilterBarContainer.tsx"],"names":[],"mappings":"AAEA,OAAO,EAGH,KAAK,SAAS,EAOjB,MAAM,OAAO,CAAC;AA+ff;;GAEG;AACH,wBAAgB,yBAAyB,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,CAAC,EAAE,SAAS,CAAA;CAAE,2CAQ/E"}