@gooddata/sdk-ui-analytical-designer 11.71.0-alpha.2 → 11.71.0-alpha.4

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 (205) hide show
  1. package/NOTICE +47 -47
  2. package/esm/components/buckets/MeasureDateFilter.d.ts +4 -2
  3. package/esm/components/buckets/MeasureDateFilter.d.ts.map +1 -1
  4. package/esm/components/buckets/MeasureDateFilter.js +5 -3
  5. package/esm/components/buckets/MeasureDateFilterPicker.d.ts +4 -2
  6. package/esm/components/buckets/MeasureDateFilterPicker.d.ts.map +1 -1
  7. package/esm/components/buckets/MeasureDateFilterPicker.js +2 -2
  8. package/esm/components/filterBar/dateFilter/Buttons/applyButtonHook.d.ts.map +1 -1
  9. package/esm/components/filterBar/dateFilter/Buttons/applyButtonHook.js +32 -17
  10. package/esm/components/filterBar/dateFilter/DateFilter.d.ts.map +1 -1
  11. package/esm/components/filterBar/dateFilter/DateFilter.js +3 -4
  12. package/esm/components/filterBar/dateFilter/PresetSection/DatePresetsDropdown.d.ts +8 -4
  13. package/esm/components/filterBar/dateFilter/PresetSection/DatePresetsDropdown.d.ts.map +1 -1
  14. package/esm/components/filterBar/dateFilter/PresetSection/DatePresetsDropdown.js +13 -6
  15. package/esm/components/filterBar/dateFilter/PresetSection/DatePresetsDropdownButton.d.ts +4 -3
  16. package/esm/components/filterBar/dateFilter/PresetSection/DatePresetsDropdownButton.d.ts.map +1 -1
  17. package/esm/components/filterBar/dateFilter/PresetSection/DatePresetsDropdownButton.js +2 -2
  18. package/esm/components/filterBar/dateFilter/PresetSection/PresetsSection.d.ts +6 -2
  19. package/esm/components/filterBar/dateFilter/PresetSection/PresetsSection.d.ts.map +1 -1
  20. package/esm/components/filterBar/dateFilter/PresetSection/PresetsSection.js +16 -5
  21. package/esm/components/filterBar/dateFilter/TimeComparisonSection/TimeComparisonSection.d.ts +4 -2
  22. package/esm/components/filterBar/dateFilter/TimeComparisonSection/TimeComparisonSection.d.ts.map +1 -1
  23. package/esm/components/filterBar/dateFilter/TimeComparisonSection/TimeComparisonSection.js +2 -2
  24. package/esm/components/filterBar/dateFilter/TimeComparisonSection/TimeComparisonTypesDropdown.d.ts +4 -2
  25. package/esm/components/filterBar/dateFilter/TimeComparisonSection/TimeComparisonTypesDropdown.d.ts.map +1 -1
  26. package/esm/components/filterBar/dateFilter/TimeComparisonSection/TimeComparisonTypesDropdown.js +2 -2
  27. package/esm/components/filterBar/dateFilter/TimeComparisonSection/TimeComparisonTypesDropdownItem.d.ts +4 -2
  28. package/esm/components/filterBar/dateFilter/TimeComparisonSection/TimeComparisonTypesDropdownItem.d.ts.map +1 -1
  29. package/esm/components/filterBar/dateFilter/TimeComparisonSection/TimeComparisonTypesDropdownItem.js +11 -11
  30. package/esm/components/filterBar/dateFilter/dateFilterOptionFactory.d.ts +6 -1
  31. package/esm/components/filterBar/dateFilter/dateFilterOptionFactory.d.ts.map +1 -1
  32. package/esm/components/filterBar/dateFilter/dateFilterOptionFactory.js +14 -0
  33. package/esm/components/filterBar/dateFilter/selectors.d.ts +94 -3
  34. package/esm/components/filterBar/dateFilter/selectors.d.ts.map +1 -1
  35. package/esm/components/filterBar/dateFilter/selectors.js +3 -0
  36. package/esm/components/filterBar/dateFilter/types.d.ts +3 -1
  37. package/esm/components/filterBar/dateFilter/types.d.ts.map +1 -1
  38. package/esm/models/metadata.d.ts.map +1 -1
  39. package/esm/models/metadata.js +3 -9
  40. package/esm/models/period.d.ts +6 -0
  41. package/esm/models/period.d.ts.map +1 -1
  42. package/esm/models/period.js +14 -0
  43. package/esm/postMessageApi/sagas/control_filtering_saga.d.ts +2 -2
  44. package/esm/postMessageApi/sagas/control_filtering_saga.d.ts.map +1 -1
  45. package/esm/postMessageApi/sagas/control_filtering_saga.js +22 -5
  46. package/esm/sagas/catalog/catalog_saga.d.ts.map +1 -1
  47. package/esm/sagas/catalog/catalog_saga.js +3 -8
  48. package/esm/sagas/open_report_sagas.d.ts.map +1 -1
  49. package/esm/sagas/open_report_sagas.js +2 -6
  50. package/esm/selectors/feature_flag_selector.d.ts +2 -23
  51. package/esm/selectors/feature_flag_selector.d.ts.map +1 -1
  52. package/esm/selectors/feature_flag_selector.js +0 -2
  53. package/esm/selectors/report_visualization_selector.d.ts +0 -12
  54. package/esm/selectors/report_visualization_selector.d.ts.map +1 -1
  55. package/esm/store/bucket_filters/bucket_filters_operations.d.ts.map +1 -1
  56. package/esm/store/bucket_filters/bucket_filters_operations.js +9 -8
  57. package/esm/translations/en-US.json +12 -0
  58. package/package.json +21 -21
  59. package/esm/components/dialog_utils.d.ts +0 -19
  60. package/esm/components/dialog_utils.d.ts.map +0 -1
  61. package/esm/components/dialog_utils.js +0 -25
  62. package/esm/components/filterBar/__mocks__/DraggableFilterItem.d.ts +0 -3
  63. package/esm/components/filterBar/__mocks__/DraggableFilterItem.d.ts.map +0 -1
  64. package/esm/components/filterBar/__mocks__/DraggableFilterItem.js +0 -4
  65. package/esm/components/filterBar/__mocks__/FilterBarList.d.ts +0 -3
  66. package/esm/components/filterBar/__mocks__/FilterBarList.d.ts.map +0 -1
  67. package/esm/components/filterBar/__mocks__/FilterBarList.js +0 -4
  68. package/esm/components/filterBar/dateFilter/AdditionalFiltersSection/fragments/AdditionalDateAttributes.d.ts +0 -22
  69. package/esm/components/filterBar/dateFilter/AdditionalFiltersSection/fragments/AdditionalDateAttributes.d.ts.map +0 -1
  70. package/esm/components/filterBar/dateFilter/AdditionalFiltersSection/fragments/AdditionalDateAttributes.js +0 -85
  71. package/esm/components/filterBar/filterBarDropdown/__mocks__/FilterBarDropdown.d.ts +0 -2
  72. package/esm/components/filterBar/filterBarDropdown/__mocks__/FilterBarDropdown.d.ts.map +0 -1
  73. package/esm/components/filterBar/filterBarDropdown/__mocks__/FilterBarDropdown.js +0 -6
  74. package/esm/components/filterBar/rankingFilter/RankingFilter.test.helpers.d.ts +0 -19
  75. package/esm/components/filterBar/rankingFilter/RankingFilter.test.helpers.d.ts.map +0 -1
  76. package/esm/components/filterBar/rankingFilter/RankingFilter.test.helpers.js +0 -70
  77. package/esm/components/report/report.test.helpers.d.ts +0 -4
  78. package/esm/components/report/report.test.helpers.d.ts.map +0 -1
  79. package/esm/components/report/report.test.helpers.js +0 -15
  80. package/esm/components/sort/fragments/ChartSortFragment.d.ts +0 -24
  81. package/esm/components/sort/fragments/ChartSortFragment.d.ts.map +0 -1
  82. package/esm/components/sort/fragments/ChartSortFragment.js +0 -49
  83. package/esm/models/item_cache.d.ts +0 -10
  84. package/esm/models/item_cache.d.ts.map +0 -1
  85. package/esm/models/item_cache.js +0 -19
  86. package/esm/models/metadata.test.helpers.d.ts +0 -8
  87. package/esm/models/metadata.test.helpers.d.ts.map +0 -1
  88. package/esm/models/metadata.test.helpers.js +0 -276
  89. package/esm/postMessageApi/sagas/mocks.test.helpers.d.ts +0 -3
  90. package/esm/postMessageApi/sagas/mocks.test.helpers.d.ts.map +0 -1
  91. package/esm/postMessageApi/sagas/mocks.test.helpers.js +0 -11
  92. package/esm/sagas/properties_saga_mock.d.ts +0 -22
  93. package/esm/sagas/properties_saga_mock.d.ts.map +0 -1
  94. package/esm/sagas/properties_saga_mock.js +0 -18007
  95. package/esm/selectors/bucket.test.helpers.d.ts +0 -12
  96. package/esm/selectors/bucket.test.helpers.d.ts.map +0 -1
  97. package/esm/selectors/bucket.test.helpers.js +0 -83
  98. package/esm/selectors/date_dataset.test.helpers.d.ts +0 -7
  99. package/esm/selectors/date_dataset.test.helpers.d.ts.map +0 -1
  100. package/esm/selectors/date_dataset.test.helpers.js +0 -347
  101. package/esm/selectors/test_helpers.d.ts +0 -6
  102. package/esm/selectors/test_helpers.d.ts.map +0 -1
  103. package/esm/selectors/test_helpers.js +0 -66
  104. package/esm/services/buckets_service.test.helpers.d.ts +0 -3
  105. package/esm/services/buckets_service.test.helpers.d.ts.map +0 -1
  106. package/esm/services/buckets_service.test.helpers.js +0 -94
  107. package/esm/services/decorated_buckets_service.test.helpers.d.ts +0 -4
  108. package/esm/services/decorated_buckets_service.test.helpers.d.ts.map +0 -1
  109. package/esm/services/decorated_buckets_service.test.helpers.js +0 -175
  110. package/esm/services/telemetry/tracking_state.test.helpers.d.ts +0 -9
  111. package/esm/services/telemetry/tracking_state.test.helpers.d.ts.map +0 -1
  112. package/esm/services/telemetry/tracking_state.test.helpers.js +0 -28
  113. package/esm/store/bucket_filters/bucket_filters.test.helpers.d.ts +0 -4
  114. package/esm/store/bucket_filters/bucket_filters.test.helpers.d.ts.map +0 -1
  115. package/esm/store/bucket_filters/bucket_filters.test.helpers.js +0 -12
  116. package/esm/store/filter_bar/cache_item.test.helpers.d.ts +0 -3
  117. package/esm/store/filter_bar/cache_item.test.helpers.d.ts.map +0 -1
  118. package/esm/store/filter_bar/cache_item.test.helpers.js +0 -13
  119. package/esm/store/filter_bar/invalid_type_guard.test.helpers.d.ts +0 -7
  120. package/esm/store/filter_bar/invalid_type_guard.test.helpers.d.ts.map +0 -1
  121. package/esm/store/filter_bar/invalid_type_guard.test.helpers.js +0 -19
  122. package/esm/store/metric_editor/metric_editor.test.helpers.d.ts +0 -6
  123. package/esm/store/metric_editor/metric_editor.test.helpers.d.ts.map +0 -1
  124. package/esm/store/metric_editor/metric_editor.test.helpers.js +0 -17
  125. package/esm/tests/DateDatasetWithGranularities.test.helpers.d.ts +0 -7
  126. package/esm/tests/DateDatasetWithGranularities.test.helpers.d.ts.map +0 -1
  127. package/esm/tests/DateDatasetWithGranularities.test.helpers.js +0 -641
  128. package/esm/tests/bucket_item.test.helpers.d.ts +0 -3
  129. package/esm/tests/bucket_item.test.helpers.d.ts.map +0 -1
  130. package/esm/tests/bucket_item.test.helpers.js +0 -37
  131. package/esm/tests/buckets_builder.test.helpers.d.ts +0 -33
  132. package/esm/tests/buckets_builder.test.helpers.d.ts.map +0 -1
  133. package/esm/tests/buckets_builder.test.helpers.js +0 -89
  134. package/esm/tests/catalog.test.helpers.d.ts +0 -18
  135. package/esm/tests/catalog.test.helpers.d.ts.map +0 -1
  136. package/esm/tests/catalog.test.helpers.js +0 -37
  137. package/esm/tests/catalog_attribute_hierarchy.test.helpers.d.ts +0 -3
  138. package/esm/tests/catalog_attribute_hierarchy.test.helpers.d.ts.map +0 -1
  139. package/esm/tests/catalog_attribute_hierarchy.test.helpers.js +0 -37
  140. package/esm/tests/catalog_components.test.helpers.d.ts +0 -7
  141. package/esm/tests/catalog_components.test.helpers.d.ts.map +0 -1
  142. package/esm/tests/catalog_components.test.helpers.js +0 -53
  143. package/esm/tests/chart_sort.test.helpers.d.ts +0 -28
  144. package/esm/tests/chart_sort.test.helpers.d.ts.map +0 -1
  145. package/esm/tests/chart_sort.test.helpers.js +0 -80
  146. package/esm/tests/constants.test.helpers.d.ts +0 -230
  147. package/esm/tests/constants.test.helpers.d.ts.map +0 -1
  148. package/esm/tests/constants.test.helpers.js +0 -1930
  149. package/esm/tests/dashboard.test.helpers.d.ts +0 -5
  150. package/esm/tests/dashboard.test.helpers.d.ts.map +0 -1
  151. package/esm/tests/dashboard.test.helpers.js +0 -65
  152. package/esm/tests/data_layer.test.helpers.d.ts +0 -5
  153. package/esm/tests/data_layer.test.helpers.d.ts.map +0 -1
  154. package/esm/tests/data_layer.test.helpers.js +0 -106
  155. package/esm/tests/date_datasets_meta.test.helpers.d.ts +0 -5
  156. package/esm/tests/date_datasets_meta.test.helpers.d.ts.map +0 -1
  157. package/esm/tests/date_datasets_meta.test.helpers.js +0 -323
  158. package/esm/tests/decorated_bucket.test.helpers.d.ts +0 -5
  159. package/esm/tests/decorated_bucket.test.helpers.d.ts.map +0 -1
  160. package/esm/tests/decorated_bucket.test.helpers.js +0 -12
  161. package/esm/tests/extended_reference_point_builder.test.helpers.d.ts +0 -47
  162. package/esm/tests/extended_reference_point_builder.test.helpers.d.ts.map +0 -1
  163. package/esm/tests/extended_reference_point_builder.test.helpers.js +0 -36
  164. package/esm/tests/feature_flags.test.helpers.d.ts +0 -4
  165. package/esm/tests/feature_flags.test.helpers.d.ts.map +0 -1
  166. package/esm/tests/feature_flags.test.helpers.js +0 -10
  167. package/esm/tests/filter.test.helpers.d.ts +0 -22
  168. package/esm/tests/filter.test.helpers.d.ts.map +0 -1
  169. package/esm/tests/filter.test.helpers.js +0 -329
  170. package/esm/tests/insightMocking.test.helpers.d.ts +0 -3
  171. package/esm/tests/insightMocking.test.helpers.d.ts.map +0 -1
  172. package/esm/tests/insightMocking.test.helpers.js +0 -13
  173. package/esm/tests/measure_date_datasets.test.helpers.d.ts +0 -17
  174. package/esm/tests/measure_date_datasets.test.helpers.d.ts.map +0 -1
  175. package/esm/tests/measure_date_datasets.test.helpers.js +0 -40
  176. package/esm/tests/parameter.test.helpers.d.ts +0 -5
  177. package/esm/tests/parameter.test.helpers.d.ts.map +0 -1
  178. package/esm/tests/parameter.test.helpers.js +0 -16
  179. package/esm/tests/reference_point.test.helpers.d.ts +0 -9
  180. package/esm/tests/reference_point.test.helpers.d.ts.map +0 -1
  181. package/esm/tests/reference_point.test.helpers.js +0 -29
  182. package/esm/tests/reference_point_builder.test.helpers.d.ts +0 -20
  183. package/esm/tests/reference_point_builder.test.helpers.d.ts.map +0 -1
  184. package/esm/tests/reference_point_builder.test.helpers.js +0 -22
  185. package/esm/tests/report_builder.test.helpers.d.ts +0 -22
  186. package/esm/tests/report_builder.test.helpers.d.ts.map +0 -1
  187. package/esm/tests/report_builder.test.helpers.js +0 -28
  188. package/esm/tests/route.test.helpers.d.ts +0 -15
  189. package/esm/tests/route.test.helpers.d.ts.map +0 -1
  190. package/esm/tests/route.test.helpers.js +0 -9
  191. package/esm/tests/state.test.helpers.d.ts +0 -3
  192. package/esm/tests/state.test.helpers.d.ts.map +0 -1
  193. package/esm/tests/state.test.helpers.js +0 -8
  194. package/esm/tests/state_builder.test.helpers.d.ts +0 -10
  195. package/esm/tests/state_builder.test.helpers.d.ts.map +0 -1
  196. package/esm/tests/state_builder.test.helpers.js +0 -46
  197. package/esm/tests/visualization_class.test.helpers.d.ts +0 -7
  198. package/esm/tests/visualization_class.test.helpers.d.ts.map +0 -1
  199. package/esm/tests/visualization_class.test.helpers.js +0 -16
  200. package/esm/utils/drilling/executeAfmToAfm.test.helpers.d.ts +0 -32
  201. package/esm/utils/drilling/executeAfmToAfm.test.helpers.d.ts.map +0 -1
  202. package/esm/utils/drilling/executeAfmToAfm.test.helpers.js +0 -390
  203. package/esm/utils/sdkModelToADRep/ReferenceConverter.test.helpers.d.ts +0 -13
  204. package/esm/utils/sdkModelToADRep/ReferenceConverter.test.helpers.d.ts.map +0 -1
  205. package/esm/utils/sdkModelToADRep/ReferenceConverter.test.helpers.js +0 -200
package/NOTICE CHANGED
@@ -3,11 +3,11 @@ Copyright (c) 2017-2026 GoodData Corporation
3
3
  This product includes a number of subcomponents with separate copyright notices and license terms below. Your use of these subcomponents is subject to the terms and conditions of the subcomponent's license. This GoodData project does not necessarily use all the open source software referred to below and may also only use portions of a given package. With respect to the open source software listed in this document, if you (i) have any questions, (ii) wish to receive source code for packages under licenses that require their source code to be made available (such as the GNU Lesser Public License), or (iii) discover any errors or omissions in the licensing information provided, please contact us at legal@gooddata.com. Please identify in source code requests: (i) the packages for which you are requesting corresponding source, (ii) the GoodData product (including any available version) with which the package was provided; and (iii) an email address (if available) or postal address at which GoodData may contact you.
4
4
 
5
5
  --------------------------------------------------------------------------------
6
- Attribution Notice for @gooddata/sdk-ui-analytical-designer (11.71.0-alpha.2)
6
+ Attribution Notice for @gooddata/sdk-ui-analytical-designer (11.71.0-alpha.4)
7
7
  Package License: LicenseRef-LICENSE
8
8
  Own License File: LICENSE
9
- Date generated: 2026-11-26
10
- Revision ID: 1aaf7ef288f526d951745da40d2197de7be258fe
9
+ Date generated: 2026-11-30
10
+ Revision ID: a5f8cfcc754f077a2408c082b22b89c160a3fe78
11
11
 
12
12
  This notice lists the components that @gooddata/sdk-ui-analytical-designer depends on, directly or through other
13
13
  packages, with the license and copyright information reported for each of them.
@@ -19,28 +19,28 @@ change those terms.
19
19
  Dependencies
20
20
 
21
21
  Local GoodData SDK components
22
- - @gooddata/api-client-tiger (11.71.0-alpha.2) [MIT] — Transitive
23
- - @gooddata/sdk-backend-base (11.71.0-alpha.2) [MIT] — Direct
24
- - @gooddata/sdk-backend-spi (11.71.0-alpha.2) [MIT] — Direct
25
- - @gooddata/sdk-backend-tiger (11.71.0-alpha.2) [MIT] — Direct
26
- - @gooddata/sdk-code-convertors (11.71.0-alpha.2) [MIT] — Transitive
27
- - @gooddata/sdk-code-schemas (11.71.0-alpha.2) [MIT] — Transitive
28
- - @gooddata/sdk-embedding (11.71.0-alpha.2) [MIT] — Direct
29
- - @gooddata/sdk-maql-language-server (11.71.0-alpha.2) [MIT] — Transitive
30
- - @gooddata/sdk-model (11.71.0-alpha.2) [MIT] — Direct
31
- - @gooddata/sdk-pluggable-application-model (11.71.0-alpha.2) [MIT] — Direct
32
- - @gooddata/sdk-ui (11.71.0-alpha.2) [MIT] — Direct
33
- - @gooddata/sdk-ui-charts (11.71.0-alpha.2) [LicenseRef-LICENSE] — Transitive
34
- - @gooddata/sdk-ui-ext (11.71.0-alpha.2) [LicenseRef-LICENSE] — Direct
35
- - @gooddata/sdk-ui-filters (11.71.0-alpha.2) [MIT] — Direct
36
- - @gooddata/sdk-ui-geo (11.71.0-alpha.2) [LicenseRef-LICENSE] — Transitive
37
- - @gooddata/sdk-ui-kit (11.71.0-alpha.2) [MIT] — Direct
38
- - @gooddata/sdk-ui-metric-component (11.71.0-alpha.2) [LicenseRef-LICENSE] — Direct
39
- - @gooddata/sdk-ui-pivot (11.71.0-alpha.2) [LicenseRef-LICENSE] — Direct
40
- - @gooddata/sdk-ui-semantic-search (11.71.0-alpha.2) [MIT] — Direct
41
- - @gooddata/sdk-ui-theme-provider (11.71.0-alpha.2) [MIT] — Direct
42
- - @gooddata/sdk-ui-vis-commons (11.71.0-alpha.2) [MIT] — Transitive
43
- - @gooddata/util (11.71.0-alpha.2) [MIT] — Direct
22
+ - @gooddata/api-client-tiger (11.71.0-alpha.4) [MIT] — Transitive
23
+ - @gooddata/sdk-backend-base (11.71.0-alpha.4) [MIT] — Direct
24
+ - @gooddata/sdk-backend-spi (11.71.0-alpha.4) [MIT] — Direct
25
+ - @gooddata/sdk-backend-tiger (11.71.0-alpha.4) [MIT] — Direct
26
+ - @gooddata/sdk-code-convertors (11.71.0-alpha.4) [MIT] — Transitive
27
+ - @gooddata/sdk-code-schemas (11.71.0-alpha.4) [MIT] — Transitive
28
+ - @gooddata/sdk-embedding (11.71.0-alpha.4) [MIT] — Direct
29
+ - @gooddata/sdk-maql-language-server (11.71.0-alpha.4) [MIT] — Transitive
30
+ - @gooddata/sdk-model (11.71.0-alpha.4) [MIT] — Direct
31
+ - @gooddata/sdk-pluggable-application-model (11.71.0-alpha.4) [MIT] — Direct
32
+ - @gooddata/sdk-ui (11.71.0-alpha.4) [MIT] — Direct
33
+ - @gooddata/sdk-ui-charts (11.71.0-alpha.4) [LicenseRef-LICENSE] — Transitive
34
+ - @gooddata/sdk-ui-ext (11.71.0-alpha.4) [LicenseRef-LICENSE] — Direct
35
+ - @gooddata/sdk-ui-filters (11.71.0-alpha.4) [MIT] — Direct
36
+ - @gooddata/sdk-ui-geo (11.71.0-alpha.4) [LicenseRef-LICENSE] — Transitive
37
+ - @gooddata/sdk-ui-kit (11.71.0-alpha.4) [MIT] — Direct
38
+ - @gooddata/sdk-ui-metric-component (11.71.0-alpha.4) [LicenseRef-LICENSE] — Direct
39
+ - @gooddata/sdk-ui-pivot (11.71.0-alpha.4) [LicenseRef-LICENSE] — Direct
40
+ - @gooddata/sdk-ui-semantic-search (11.71.0-alpha.4) [MIT] — Direct
41
+ - @gooddata/sdk-ui-theme-provider (11.71.0-alpha.4) [MIT] — Direct
42
+ - @gooddata/sdk-ui-vis-commons (11.71.0-alpha.4) [MIT] — Transitive
43
+ - @gooddata/util (11.71.0-alpha.4) [MIT] — Direct
44
44
 
45
45
  External components
46
46
  - @aaronhayes/react-use-hubspot-form (2.1.2) [MIT] — Transitive
@@ -480,7 +480,7 @@ Local GoodData SDK components
480
480
  ================================================================================
481
481
 
482
482
  --------------------------------------------------------------------------------
483
- Package Title: @gooddata/api-client-tiger (11.71.0-alpha.2)
483
+ Package Title: @gooddata/api-client-tiger (11.71.0-alpha.4)
484
484
  Package Source: Local workspace
485
485
  Package Depth: Transitive
486
486
  --------------------------------------------------------------------------------
@@ -498,7 +498,7 @@ The above copyright notice and this permission notice shall be included in all c
498
498
  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
499
499
 
500
500
  --------------------------------------------------------------------------------
501
- Package Title: @gooddata/sdk-backend-base (11.71.0-alpha.2)
501
+ Package Title: @gooddata/sdk-backend-base (11.71.0-alpha.4)
502
502
  Package Source: Local workspace
503
503
  Package Depth: Direct
504
504
  --------------------------------------------------------------------------------
@@ -516,7 +516,7 @@ The above copyright notice and this permission notice shall be included in all c
516
516
  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
517
517
 
518
518
  --------------------------------------------------------------------------------
519
- Package Title: @gooddata/sdk-backend-spi (11.71.0-alpha.2)
519
+ Package Title: @gooddata/sdk-backend-spi (11.71.0-alpha.4)
520
520
  Package Source: Local workspace
521
521
  Package Depth: Direct
522
522
  --------------------------------------------------------------------------------
@@ -534,7 +534,7 @@ The above copyright notice and this permission notice shall be included in all c
534
534
  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
535
535
 
536
536
  --------------------------------------------------------------------------------
537
- Package Title: @gooddata/sdk-backend-tiger (11.71.0-alpha.2)
537
+ Package Title: @gooddata/sdk-backend-tiger (11.71.0-alpha.4)
538
538
  Package Source: Local workspace
539
539
  Package Depth: Direct
540
540
  --------------------------------------------------------------------------------
@@ -552,7 +552,7 @@ The above copyright notice and this permission notice shall be included in all c
552
552
  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
553
553
 
554
554
  --------------------------------------------------------------------------------
555
- Package Title: @gooddata/sdk-code-convertors (11.71.0-alpha.2)
555
+ Package Title: @gooddata/sdk-code-convertors (11.71.0-alpha.4)
556
556
  Package Source: Local workspace
557
557
  Package Depth: Transitive
558
558
  --------------------------------------------------------------------------------
@@ -570,7 +570,7 @@ The above copyright notice and this permission notice shall be included in all c
570
570
  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
571
571
 
572
572
  --------------------------------------------------------------------------------
573
- Package Title: @gooddata/sdk-code-schemas (11.71.0-alpha.2)
573
+ Package Title: @gooddata/sdk-code-schemas (11.71.0-alpha.4)
574
574
  Package Source: Local workspace
575
575
  Package Depth: Transitive
576
576
  --------------------------------------------------------------------------------
@@ -600,7 +600,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
600
600
  SOFTWARE.
601
601
 
602
602
  --------------------------------------------------------------------------------
603
- Package Title: @gooddata/sdk-embedding (11.71.0-alpha.2)
603
+ Package Title: @gooddata/sdk-embedding (11.71.0-alpha.4)
604
604
  Package Source: Local workspace
605
605
  Package Depth: Direct
606
606
  --------------------------------------------------------------------------------
@@ -618,7 +618,7 @@ The above copyright notice and this permission notice shall be included in all c
618
618
  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
619
619
 
620
620
  --------------------------------------------------------------------------------
621
- Package Title: @gooddata/sdk-maql-language-server (11.71.0-alpha.2)
621
+ Package Title: @gooddata/sdk-maql-language-server (11.71.0-alpha.4)
622
622
  Package Source: Local workspace
623
623
  Package Depth: Transitive
624
624
  --------------------------------------------------------------------------------
@@ -636,7 +636,7 @@ The above copyright notice and this permission notice shall be included in all c
636
636
  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
637
637
 
638
638
  --------------------------------------------------------------------------------
639
- Package Title: @gooddata/sdk-model (11.71.0-alpha.2)
639
+ Package Title: @gooddata/sdk-model (11.71.0-alpha.4)
640
640
  Package Source: Local workspace
641
641
  Package Depth: Direct
642
642
  --------------------------------------------------------------------------------
@@ -654,7 +654,7 @@ The above copyright notice and this permission notice shall be included in all c
654
654
  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
655
655
 
656
656
  --------------------------------------------------------------------------------
657
- Package Title: @gooddata/sdk-pluggable-application-model (11.71.0-alpha.2)
657
+ Package Title: @gooddata/sdk-pluggable-application-model (11.71.0-alpha.4)
658
658
  Package Source: Local workspace
659
659
  Package Depth: Direct
660
660
  --------------------------------------------------------------------------------
@@ -684,7 +684,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
684
684
  SOFTWARE.
685
685
 
686
686
  --------------------------------------------------------------------------------
687
- Package Title: @gooddata/sdk-ui (11.71.0-alpha.2)
687
+ Package Title: @gooddata/sdk-ui (11.71.0-alpha.4)
688
688
  Package Source: Local workspace
689
689
  Package Depth: Direct
690
690
  --------------------------------------------------------------------------------
@@ -702,7 +702,7 @@ The above copyright notice and this permission notice shall be included in all c
702
702
  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
703
703
 
704
704
  --------------------------------------------------------------------------------
705
- Package Title: @gooddata/sdk-ui-charts (11.71.0-alpha.2)
705
+ Package Title: @gooddata/sdk-ui-charts (11.71.0-alpha.4)
706
706
  Package Source: Local workspace
707
707
  Package Depth: Transitive
708
708
  --------------------------------------------------------------------------------
@@ -742,7 +742,7 @@ THE FOREGOING LIMITATIONS SHALL APPLY TO THE MAXIMUM EXTENT PERMITTED BY APPLICA
742
742
  10. Governing Law These terms are governed by the laws of the State of California and the United States of America without regard to conflict of laws principles. You may not assign any part of this Agreement without the prior written consent of GoodData. Any attempted assignment without consent shall be void. These terms constitute the entire agreement between you and GoodData with respect to the Library and supersede all prior written or oral communications, understandings and agreements. Any waiver of these terms must be in writing to be effective. If any provision of these terms is found to be invalid or unenforceable, the remaining terms will continue to be valid and enforceable to the fullest extent permitted by law.
743
743
 
744
744
  --------------------------------------------------------------------------------
745
- Package Title: @gooddata/sdk-ui-ext (11.71.0-alpha.2)
745
+ Package Title: @gooddata/sdk-ui-ext (11.71.0-alpha.4)
746
746
  Package Source: Local workspace
747
747
  Package Depth: Direct
748
748
  --------------------------------------------------------------------------------
@@ -782,7 +782,7 @@ THE FOREGOING LIMITATIONS SHALL APPLY TO THE MAXIMUM EXTENT PERMITTED BY APPLICA
782
782
  10. Governing Law These terms are governed by the laws of the State of California and the United States of America without regard to conflict of laws principles. You may not assign any part of this Agreement without the prior written consent of GoodData. Any attempted assignment without consent shall be void. These terms constitute the entire agreement between you and GoodData with respect to the Library and supersede all prior written or oral communications, understandings and agreements. Any waiver of these terms must be in writing to be effective. If any provision of these terms is found to be invalid or unenforceable, the remaining terms will continue to be valid and enforceable to the fullest extent permitted by law.
783
783
 
784
784
  --------------------------------------------------------------------------------
785
- Package Title: @gooddata/sdk-ui-filters (11.71.0-alpha.2)
785
+ Package Title: @gooddata/sdk-ui-filters (11.71.0-alpha.4)
786
786
  Package Source: Local workspace
787
787
  Package Depth: Direct
788
788
  --------------------------------------------------------------------------------
@@ -800,7 +800,7 @@ The above copyright notice and this permission notice shall be included in all c
800
800
  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
801
801
 
802
802
  --------------------------------------------------------------------------------
803
- Package Title: @gooddata/sdk-ui-geo (11.71.0-alpha.2)
803
+ Package Title: @gooddata/sdk-ui-geo (11.71.0-alpha.4)
804
804
  Package Source: Local workspace
805
805
  Package Depth: Transitive
806
806
  --------------------------------------------------------------------------------
@@ -840,7 +840,7 @@ THE FOREGOING LIMITATIONS SHALL APPLY TO THE MAXIMUM EXTENT PERMITTED BY APPLICA
840
840
  10. Governing Law These terms are governed by the laws of the State of California and the United States of America without regard to conflict of laws principles. You may not assign any part of this Agreement without the prior written consent of GoodData. Any attempted assignment without consent shall be void. These terms constitute the entire agreement between you and GoodData with respect to the Library and supersede all prior written or oral communications, understandings and agreements. Any waiver of these terms must be in writing to be effective. If any provision of these terms is found to be invalid or unenforceable, the remaining terms will continue to be valid and enforceable to the fullest extent permitted by law.
841
841
 
842
842
  --------------------------------------------------------------------------------
843
- Package Title: @gooddata/sdk-ui-kit (11.71.0-alpha.2)
843
+ Package Title: @gooddata/sdk-ui-kit (11.71.0-alpha.4)
844
844
  Package Source: Local workspace
845
845
  Package Depth: Direct
846
846
  --------------------------------------------------------------------------------
@@ -858,7 +858,7 @@ The above copyright notice and this permission notice shall be included in all c
858
858
  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
859
859
 
860
860
  --------------------------------------------------------------------------------
861
- Package Title: @gooddata/sdk-ui-metric-component (11.71.0-alpha.2)
861
+ Package Title: @gooddata/sdk-ui-metric-component (11.71.0-alpha.4)
862
862
  Package Source: Local workspace
863
863
  Package Depth: Direct
864
864
  --------------------------------------------------------------------------------
@@ -898,7 +898,7 @@ THE FOREGOING LIMITATIONS SHALL APPLY TO THE MAXIMUM EXTENT PERMITTED BY APPLICA
898
898
  10. Governing Law These terms are governed by the laws of the State of California and the United States of America without regard to conflict of laws principles. You may not assign any part of this Agreement without the prior written consent of GoodData. Any attempted assignment without consent shall be void. These terms constitute the entire agreement between you and GoodData with respect to the Library and supersede all prior written or oral communications, understandings and agreements. Any waiver of these terms must be in writing to be effective. If any provision of these terms is found to be invalid or unenforceable, the remaining terms will continue to be valid and enforceable to the fullest extent permitted by law.
899
899
 
900
900
  --------------------------------------------------------------------------------
901
- Package Title: @gooddata/sdk-ui-pivot (11.71.0-alpha.2)
901
+ Package Title: @gooddata/sdk-ui-pivot (11.71.0-alpha.4)
902
902
  Package Source: Local workspace
903
903
  Package Depth: Direct
904
904
  --------------------------------------------------------------------------------
@@ -938,7 +938,7 @@ THE FOREGOING LIMITATIONS SHALL APPLY TO THE MAXIMUM EXTENT PERMITTED BY APPLICA
938
938
  10. Governing Law These terms are governed by the laws of the State of California and the United States of America without regard to conflict of laws principles. You may not assign any part of this Agreement without the prior written consent of GoodData. Any attempted assignment without consent shall be void. These terms constitute the entire agreement between you and GoodData with respect to the Library and supersede all prior written or oral communications, understandings and agreements. Any waiver of these terms must be in writing to be effective. If any provision of these terms is found to be invalid or unenforceable, the remaining terms will continue to be valid and enforceable to the fullest extent permitted by law.
939
939
 
940
940
  --------------------------------------------------------------------------------
941
- Package Title: @gooddata/sdk-ui-semantic-search (11.71.0-alpha.2)
941
+ Package Title: @gooddata/sdk-ui-semantic-search (11.71.0-alpha.4)
942
942
  Package Source: Local workspace
943
943
  Package Depth: Direct
944
944
  --------------------------------------------------------------------------------
@@ -956,7 +956,7 @@ The above copyright notice and this permission notice shall be included in all c
956
956
  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
957
957
 
958
958
  --------------------------------------------------------------------------------
959
- Package Title: @gooddata/sdk-ui-theme-provider (11.71.0-alpha.2)
959
+ Package Title: @gooddata/sdk-ui-theme-provider (11.71.0-alpha.4)
960
960
  Package Source: Local workspace
961
961
  Package Depth: Direct
962
962
  --------------------------------------------------------------------------------
@@ -974,7 +974,7 @@ The above copyright notice and this permission notice shall be included in all c
974
974
  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
975
975
 
976
976
  --------------------------------------------------------------------------------
977
- Package Title: @gooddata/sdk-ui-vis-commons (11.71.0-alpha.2)
977
+ Package Title: @gooddata/sdk-ui-vis-commons (11.71.0-alpha.4)
978
978
  Package Source: Local workspace
979
979
  Package Depth: Transitive
980
980
  --------------------------------------------------------------------------------
@@ -992,7 +992,7 @@ The above copyright notice and this permission notice shall be included in all c
992
992
  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
993
993
 
994
994
  --------------------------------------------------------------------------------
995
- Package Title: @gooddata/util (11.71.0-alpha.2)
995
+ Package Title: @gooddata/util (11.71.0-alpha.4)
996
996
  Package Source: Local workspace
997
997
  Package Depth: Direct
998
998
  --------------------------------------------------------------------------------
@@ -1,6 +1,6 @@
1
1
  import { type ReactElement } from "react";
2
2
  import { type IActiveCalendars, type WeekStart } from "@gooddata/sdk-model";
3
- import { type DateFilterRelativeOptionGroup } from "@gooddata/sdk-ui-filters";
3
+ import { type DateFilterRelativeOptionGroup, type IUiPeriodPreset } from "@gooddata/sdk-ui-filters";
4
4
  import { type measureDateDatasetsRequested } from "../../actions/measure_date_datasets_actions.js";
5
5
  import { type IDecoratedDateFilter } from "../../models/date_filter.js";
6
6
  import { type IDecoratedDateDataset } from "../../models/decorated_date_dataset.js";
@@ -24,6 +24,8 @@ export interface IMeasureDateFilterStateProps {
24
24
  dateDatasetRefsWithGranularities: IDateDatasetRefWithGranularities[];
25
25
  isImprovedMetricDateFilterEnabled?: boolean;
26
26
  relativeDateFilterPresets?: DateFilterRelativeOptionGroup;
27
+ /** the periods (DATE_RANGE parameters) the period select lists; none with the setting off */
28
+ periodPresets?: readonly IUiPeriodPreset[];
27
29
  isTimeForAbsoluteRangeEnabled?: boolean;
28
30
  isSecondsGranularityEnabled?: boolean;
29
31
  weekStart?: WeekStart;
@@ -68,7 +70,7 @@ export interface IMeasureDateFilterOwnProps {
68
70
  onDropdownClosed?: () => void;
69
71
  }
70
72
  export type IMeasureDateFilterProps = IMeasureDateFilterStateProps & IMeasureDateFilterOwnProps;
71
- export declare function MeasureDateFilterBase({ filter, projectTimezoneOffset, dateDatasetsList, dateDatasetsIsLoading, dateDatasetsUnavailableCount, dateFormat, selectedDateDataset: propsSelectedDateDataset, isDisabled: propsIsDisabled, isDateDatasetsDropdownLoaded, formatLocale, enableUnavailableItemsVisibility, bucketLocalIdentifier, bucketItem, onAdd, onUpdate, onRemove, selectDateDataset, selectDateDatasetWithoutTimeTravel, requestMeasureDateDatasets, callLoadDateDatasetsToDateDropdown, activeCalendars, dateDatasetRefsWithGranularities, isImprovedMetricDateFilterEnabled, relativeDateFilterPresets, isTimeForAbsoluteRangeEnabled, isSecondsGranularityEnabled, weekStart, areAdditionalDateFiltersSupported: areAdditionalDateFiltersSupportedProp, isPrimaryDateFilter, dateAttributes, additionalDateFilters, onApply, autoOpen, onDropdownClosed, }: IMeasureDateFilterProps): ReactElement;
73
+ export declare function MeasureDateFilterBase({ filter, projectTimezoneOffset, dateDatasetsList, dateDatasetsIsLoading, dateDatasetsUnavailableCount, dateFormat, selectedDateDataset: propsSelectedDateDataset, isDisabled: propsIsDisabled, isDateDatasetsDropdownLoaded, formatLocale, enableUnavailableItemsVisibility, bucketLocalIdentifier, bucketItem, onAdd, onUpdate, onRemove, selectDateDataset, selectDateDatasetWithoutTimeTravel, requestMeasureDateDatasets, callLoadDateDatasetsToDateDropdown, activeCalendars, dateDatasetRefsWithGranularities, isImprovedMetricDateFilterEnabled, relativeDateFilterPresets, periodPresets, isTimeForAbsoluteRangeEnabled, isSecondsGranularityEnabled, weekStart, areAdditionalDateFiltersSupported: areAdditionalDateFiltersSupportedProp, isPrimaryDateFilter, dateAttributes, additionalDateFilters, onApply, autoOpen, onDropdownClosed, }: IMeasureDateFilterProps): ReactElement;
72
74
  export declare const MeasureDateFilter: import("react-redux").ConnectedComponent<typeof MeasureDateFilterBase, {
73
75
  context?: import("react").Context<import("react-redux").ReactReduxContextValue<any, import("redux").UnknownAction> | null>;
74
76
  store?: import("redux").Store;
@@ -1 +1 @@
1
- {"version":3,"file":"MeasureDateFilter.d.ts","sourceRoot":"","sources":["../../../src/components/buckets/MeasureDateFilter.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,YAAY,EAAqD,MAAM,OAAO,CAAC;AAM7F,OAAO,EAEH,KAAK,gBAAgB,EAGrB,KAAK,SAAS,EAGjB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAEH,KAAK,6BAA6B,EAIrC,MAAM,0BAA0B,CAAC;AAKlC,OAAO,EAEH,KAAK,4BAA4B,EACpC,MAAM,gDAAgD,CAAC;AAExD,OAAO,EAAuB,KAAK,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AAE7F,OAAO,EAAE,KAAK,qBAAqB,EAAE,MAAM,wCAAwC,CAAC;AAiBpF,OAAO,EAAE,KAAK,6BAA6B,EAAE,MAAM,sDAAsD,CAAC;AAQ1G,OAAO,EAAE,KAAK,uBAAuB,EAAE,MAAM,qCAAqC,CAAC;AACnF,OAAO,EAAE,KAAK,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AACrE,OAAO,EAAE,KAAK,gCAAgC,EAAE,MAAM,2BAA2B,CAAC;AAmBlF,OAAO,EACH,KAAK,+BAA+B,EAEvC,MAAM,wCAAwC,CAAC;AA8BhD,MAAM,WAAW,4BAA4B;IACzC,qBAAqB,EAAE,MAAM,CAAC;IAC9B,gBAAgB,EAAE,aAAa,CAAC,qBAAqB,CAAC,CAAC;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AU,EACV,KAAK,EACL,QAAQ,EACR,QAAQ,EACR,iBAAiB,EACjB,kCAAkC,EAClC,0BAA0B,EAC1B,kCAAkC,EAClC,eAAe,EACf,gCAAgC,EAChC,iCAAyC,EACzC,yBAAyB,EACzB,aAAiC,EACjC,6BAAqC,EACrC,2BAAmC,EACnC,SAAS,EACT,iCAAiC,EAAE,qCAA6C,EAChF,mBAA0B,EAC1B,cAAmC,EACnC,qBAAkD,EAClD,OAAO,EACP,QAAgB,EAChB,gBAAgB,GACnB,EAAE,uBAAuB,GAAG,YAAY,CAq4BxC;AAiBD,eAAO,MAAM,iBAAiB;;;aA//BjB,oBAAoB;2BACN,MAAM;gBACjB,oBAAoB;WACzB,CAAC,UAAU,EAAE,oBAAoB,EAAE,6BAA6B,EAAE,MAAM,KAAK,IAAI;cAC9E,CAAC,MAAM,EAAE,oBAAoB,EAAE,UAAU,EAAE,oBAAoB,KAAK,IAAI;cACxE,CAAC,YAAY,EAAE,uBAAuB,EAAE,2BAA2B,CAAC,EAAE,OAAO,KAAK,IAAI;wBAC5E,CAAC,iBAAiB,EAAE,MAAM,EAAE,sBAAsB,EAAE,MAAM,KAAK,IAAI;yCAClD,CACjC,iBAAiB,EAAE,MAAM,EACzB,6BAA6B,EAAE,MAAM,KACpC,IAAI;iCACoB,CAAC,UAAU,EAAE,MAAM,KAAK,UAAU,CAAC,OAAO,4BAA4B,CAAC;yCAC/D,CAAC,iBAAiB,EAAE,OAAO,KAAK,IAAI;4BAKjD,uBAAuB,EAAE;cAKvC,CAAC,OAAO,EAAE,6BAA6B,KAAK,IAAI;0BAMpC,OAAO;+BACF,MAAM;eAKtB,OAAO;uBAEC,MAAM,IAAI;EAm+BT,CAAC"}
@@ -26,7 +26,7 @@ import { getIsoDate } from "../../utils/timers.js";
26
26
  import { DateFilterPresets } from "../DateFilterPresets.js";
27
27
  import { ALL_TIME_FILTER_OPTION } from "../filterBar/dateFilter/defaultFilterOptions.js";
28
28
  import { FilterDropdownOverlay } from "../filterBar/dateFilter/FilterDropdown/FilterDropdownOverlay.js";
29
- import { selectIsSecondsGranularityEnabled, selectRelativeDateFilterPresets, } from "../filterBar/dateFilter/selectors.js";
29
+ import { selectIsSecondsGranularityEnabled, selectPeriodPresets, selectRelativeDateFilterPresets, } from "../filterBar/dateFilter/selectors.js";
30
30
  import { LoadingDropdown } from "../shared/LoadingDropdown.js";
31
31
  import { DateDatasetsDropdown } from "./categories/DateDatasetsDropdown.js";
32
32
  import { buildMeasureAdditionalDateFilterLabels, } from "./measureAdditionalDateFilterLabels.js";
@@ -44,6 +44,7 @@ const LOADING_PLACEHOLDER_DATE_DATASET = {
44
44
  };
45
45
  const NO_DATE_ATTRIBUTES = [];
46
46
  const NO_ADDITIONAL_DATE_FILTERS = [];
47
+ const NO_PERIOD_PRESETS = [];
47
48
  const DROPDOWN_HEADER_HEIGHT = 43;
48
49
  const DROPDOWN_ITEM_HEIGHT = 23;
49
50
  // A filter/preset value is "unset" while it is still the {} default; once selected it carries
@@ -68,7 +69,7 @@ const actions = {
68
69
  selectDateDatasetWithoutTimeTravel: MeasureDateDatasetsActions.selectDateDatasetWithoutTimeTravel,
69
70
  callLoadDateDatasetsToDateDropdown: loadDateDatasetsToDateDropdown,
70
71
  };
71
- export function MeasureDateFilterBase({ filter = {}, projectTimezoneOffset, dateDatasetsList, dateDatasetsIsLoading, dateDatasetsUnavailableCount, dateFormat, selectedDateDataset: propsSelectedDateDataset, isDisabled: propsIsDisabled, isDateDatasetsDropdownLoaded, formatLocale, enableUnavailableItemsVisibility, bucketLocalIdentifier, bucketItem, onAdd, onUpdate, onRemove, selectDateDataset, selectDateDatasetWithoutTimeTravel, requestMeasureDateDatasets, callLoadDateDatasetsToDateDropdown, activeCalendars, dateDatasetRefsWithGranularities, isImprovedMetricDateFilterEnabled = false, relativeDateFilterPresets, isTimeForAbsoluteRangeEnabled = false, isSecondsGranularityEnabled = false, weekStart, areAdditionalDateFiltersSupported: areAdditionalDateFiltersSupportedProp = false, isPrimaryDateFilter = true, dateAttributes = NO_DATE_ATTRIBUTES, additionalDateFilters = NO_ADDITIONAL_DATE_FILTERS, onApply, autoOpen = false, onDropdownClosed, }) {
72
+ export function MeasureDateFilterBase({ filter = {}, projectTimezoneOffset, dateDatasetsList, dateDatasetsIsLoading, dateDatasetsUnavailableCount, dateFormat, selectedDateDataset: propsSelectedDateDataset, isDisabled: propsIsDisabled, isDateDatasetsDropdownLoaded, formatLocale, enableUnavailableItemsVisibility, bucketLocalIdentifier, bucketItem, onAdd, onUpdate, onRemove, selectDateDataset, selectDateDatasetWithoutTimeTravel, requestMeasureDateDatasets, callLoadDateDatasetsToDateDropdown, activeCalendars, dateDatasetRefsWithGranularities, isImprovedMetricDateFilterEnabled = false, relativeDateFilterPresets, periodPresets = NO_PERIOD_PRESETS, isTimeForAbsoluteRangeEnabled = false, isSecondsGranularityEnabled = false, weekStart, areAdditionalDateFiltersSupported: areAdditionalDateFiltersSupportedProp = false, isPrimaryDateFilter = true, dateAttributes = NO_DATE_ATTRIBUTES, additionalDateFilters = NO_ADDITIONAL_DATE_FILTERS, onApply, autoOpen = false, onDropdownClosed, }) {
72
73
  const intl = useIntl();
73
74
  const [state, setState] = useState(initialState);
74
75
  const subscribersRef = useRef([]);
@@ -572,7 +573,7 @@ export function MeasureDateFilterBase({ filter = {}, projectTimezoneOffset, date
572
573
  // While the date datasets load, the picker renders what it will show once they arrive (the stored
573
574
  // period, or All time for a new filter) under a spinner layer, so the dropdown gets its final size
574
575
  // up front instead of jumping. The key remounts it after loading, dropping state built meanwhile.
575
- return (_jsxs("div", { className: "adi-metric-date-filter-content", "aria-busy": dateDatasetsIsLoading, children: [dateDatasetsIsLoading ? (_jsx("div", { className: "adi-metric-date-filter-loading-layer s-metric-date-filter-loading", children: _jsx("div", { className: "dropdown-loading" }) })) : null, _jsx(MeasureDateFilterPicker, { filter: measureDateFilterToOption(filter), dateDataset: state.selectedDateDataset ?? LOADING_PLACEHOLDER_DATE_DATASET, appliedDateDataset: propsSelectedDateDataset, dateDatasets: { items: dateDatasetsList, unavailable: dateDatasetsUnavailableCount }, onDateDatasetChange: onDateDatasetChange, loadDateDatasets: () => callLoadDateDatasetsToDateDropdown(false), isDateDatasetsDropdownLoaded: isDateDatasetsDropdownLoaded, enableUnavailableItemsVisibility: enableUnavailableItemsVisibility, relativeDateFilterPresets: relativeDateFilterPresets, dateDatasetRefsWithGranularities: dateDatasetRefsWithGranularities, dateFormat: dateFormat, isTimeForAbsoluteRangeEnabled: isTimeForAbsoluteRangeEnabled, isSecondsGranularityEnabled: isSecondsGranularityEnabled, weekStart: weekStart, activeCalendars: activeCalendars, additionalDateAttributeFilters: storedAdditionalDateFilters, areAdditionalDateFiltersSupported: areAdditionalDateFiltersSupported, emptyDateValuesFilter: filter?.original?.emptyDateValuesFilter, onApply: applyDateFilterOption, onCancel: closeDropdown }, dateDatasetsIsLoading ? "loading" : "loaded")] }));
576
+ return (_jsxs("div", { className: "adi-metric-date-filter-content", "aria-busy": dateDatasetsIsLoading, children: [dateDatasetsIsLoading ? (_jsx("div", { className: "adi-metric-date-filter-loading-layer s-metric-date-filter-loading", children: _jsx("div", { className: "dropdown-loading" }) })) : null, _jsx(MeasureDateFilterPicker, { filter: measureDateFilterToOption(filter), dateDataset: state.selectedDateDataset ?? LOADING_PLACEHOLDER_DATE_DATASET, appliedDateDataset: propsSelectedDateDataset, dateDatasets: { items: dateDatasetsList, unavailable: dateDatasetsUnavailableCount }, onDateDatasetChange: onDateDatasetChange, loadDateDatasets: () => callLoadDateDatasetsToDateDropdown(false), isDateDatasetsDropdownLoaded: isDateDatasetsDropdownLoaded, enableUnavailableItemsVisibility: enableUnavailableItemsVisibility, relativeDateFilterPresets: relativeDateFilterPresets, periodPresets: periodPresets, dateDatasetRefsWithGranularities: dateDatasetRefsWithGranularities, dateFormat: dateFormat, isTimeForAbsoluteRangeEnabled: isTimeForAbsoluteRangeEnabled, isSecondsGranularityEnabled: isSecondsGranularityEnabled, weekStart: weekStart, activeCalendars: activeCalendars, additionalDateAttributeFilters: storedAdditionalDateFilters, areAdditionalDateFiltersSupported: areAdditionalDateFiltersSupported, emptyDateValuesFilter: filter?.original?.emptyDateValuesFilter, onApply: applyDateFilterOption, onCancel: closeDropdown }, dateDatasetsIsLoading ? "loading" : "loaded")] }));
576
577
  };
577
578
  const renderContent = () => {
578
579
  if (isImprovedMetricDateFilterEnabled) {
@@ -632,6 +633,7 @@ const mapStateToProps = (state, ownProps) => ({
632
633
  ...measureDateFilterSelector(state, ownProps),
633
634
  isImprovedMetricDateFilterEnabled: enableImprovedMetricDateFilter(state),
634
635
  relativeDateFilterPresets: selectRelativeDateFilterPresets(state),
636
+ periodPresets: selectPeriodPresets(state),
635
637
  isTimeForAbsoluteRangeEnabled: supportsTimeGranularities(),
636
638
  isSecondsGranularityEnabled: selectIsSecondsGranularityEnabled(state),
637
639
  weekStart: getWeekStart(state),
@@ -1,5 +1,5 @@
1
1
  import { type IActiveCalendars, type WeekStart } from "@gooddata/sdk-model";
2
- import { type DateFilterRelativeOptionGroup } from "@gooddata/sdk-ui-filters";
2
+ import { type DateFilterRelativeOptionGroup, type IUiPeriodPreset } from "@gooddata/sdk-ui-filters";
3
3
  import { type IDecoratedDateDataset } from "../../models/decorated_date_dataset.js";
4
4
  import { type IDecoratedDateDatasets } from "../../models/decorated_date_datasets.js";
5
5
  import { type EmptyDateValuesFilterMode, type IAttributeFilter } from "../../store/filter_bar/filter_bar_types.js";
@@ -24,6 +24,8 @@ export interface IMeasureDateFilterPickerProps {
24
24
  isDateDatasetsDropdownLoaded: boolean;
25
25
  enableUnavailableItemsVisibility: boolean;
26
26
  relativeDateFilterPresets: DateFilterRelativeOptionGroup;
27
+ /** the periods (DATE_RANGE parameters) the period select lists; none with the setting off */
28
+ periodPresets: readonly IUiPeriodPreset[];
27
29
  dateDatasetRefsWithGranularities: IDateDatasetRefWithGranularities[];
28
30
  dateFormat: string;
29
31
  isTimeForAbsoluteRangeEnabled: boolean;
@@ -48,5 +50,5 @@ export interface IMeasureDateFilterPickerProps {
48
50
  onApply: (filter: IDateFilterOption, additionalDateAttributeFilters: IAttributeFilter[], emptyDateValuesFilter: EmptyDateValuesFilterMode | undefined) => void;
49
51
  onCancel: () => void;
50
52
  }
51
- export declare function MeasureDateFilterPicker({ filter, dateDataset, appliedDateDataset, dateDatasets, onDateDatasetChange, loadDateDatasets, isDateDatasetsDropdownLoaded, enableUnavailableItemsVisibility, relativeDateFilterPresets, dateDatasetRefsWithGranularities, dateFormat, isTimeForAbsoluteRangeEnabled, isSecondsGranularityEnabled, weekStart, activeCalendars, additionalDateAttributeFilters, areAdditionalDateFiltersSupported, emptyDateValuesFilter, onApply, onCancel, }: IMeasureDateFilterPickerProps): import("react/jsx-runtime").JSX.Element;
53
+ export declare function MeasureDateFilterPicker({ filter, dateDataset, appliedDateDataset, dateDatasets, onDateDatasetChange, loadDateDatasets, isDateDatasetsDropdownLoaded, enableUnavailableItemsVisibility, relativeDateFilterPresets, periodPresets, dateDatasetRefsWithGranularities, dateFormat, isTimeForAbsoluteRangeEnabled, isSecondsGranularityEnabled, weekStart, activeCalendars, additionalDateAttributeFilters, areAdditionalDateFiltersSupported, emptyDateValuesFilter, onApply, onCancel, }: IMeasureDateFilterPickerProps): import("react/jsx-runtime").JSX.Element;
52
54
  //# sourceMappingURL=MeasureDateFilterPicker.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"MeasureDateFilterPicker.d.ts","sourceRoot":"","sources":["../../../src/components/buckets/MeasureDateFilterPicker.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,gBAAgB,EAAE,KAAK,SAAS,EAAmB,MAAM,qBAAqB,CAAC;AAE7F,OAAO,EAAE,KAAK,6BAA6B,EAAE,MAAM,0BAA0B,CAAC;AAE9E,OAAO,EAAE,KAAK,qBAAqB,EAAE,MAAM,wCAAwC,CAAC;AACpF,OAAO,EAAE,KAAK,sBAAsB,EAAE,MAAM,yCAAyC,CAAC;AACtF,OAAO,EACH,KAAK,yBAA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Y,EACZ,mBAAmB,EACnB,gBAAgB,EAChB,4BAA4B,EAC5B,gCAAgC,EAChC,yBAAyB,EACzB,gCAAgC,EAChC,UAAU,EACV,6BAA6B,EAC7B,2BAA2B,EAC3B,SAAS,EACT,eAAe,EACf,8BAAsD,EACtD,iCAAyC,EACzC,qBAAqB,EACrB,OAAO,EACP,QAAQ,GACX,EAAE,6BAA6B,2CAkI/B"}
1
+ {"version":3,"file":"MeasureDateFilterPicker.d.ts","sourceRoot":"","sources":["../../../src/components/buckets/MeasureDateFilterPicker.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,gBAAgB,EAAE,KAAK,SAAS,EAAmB,MAAM,qBAAqB,CAAC;AAE7F,OAAO,EAAE,KAAK,6BAA6B,EAAE,KAAK,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAEpG,OAAO,EAAE,KAAK,qBAAqB,EAAE,MAAM,wCAAwC,CAAC;AACpF,OAAO,EAAE,KAAK,sBAAsB,EAAE,MAAM,yCAAyC,CAAC;AACtF,OAAO,EACH,KAAK,yBAAyB,EAC9B,KAAK,gBAAgB,EACxB,MAAM,4CAA4C,CAAC;AACpD,OAAO,EAAE,KAAK,gCAAgC,EAAE,MAAM,2BAA2B,CAAC;AAWlF,OAAO,EAAE,KAAK,iBAAiB,EAAmB,MAAM,oDAAoD,CAAC;AAU7G,MAAM,WAAW,6BAA6B;IAC1C;;OAEG;IACH,MAAM,EAAE,iBAAiB,GAAG,SAAS,CAAC;IACtC;;OAEG;IACH,WAAW,EAAE,qBAAqB,CAAC;IACnC;;OAEG;IACH,kBAAkB,EAAE,qBAAqB,GAAG,SAAS,CAAC;IACtD,YAAY,EAAE,sBAAsB,CAAC;IACrC,mBAAmB,EAAE,CAAC,WAAW,EAAE,qBAAqB,KAAK,IAAI,CAAC;IAClE,gBAAgB,EAAE,MAAM,IAAI,CAAC;IAC7B,4BAA4B,EAAE,OAAO,CAAC;IACtC,gCAAgC,EAAE,OAAO,CAAC;IAC1C,yBAAyB,EAAE,6BAA6B,CAAC;IACzD,6FAA6F;IAC7F,aAAa,EAAE,SAAS,eAAe,EAAE,CAAC;IAC1C,gCAAgC,EAAE,gCAAgC,EAAE,CAAC;IACrE,UAAU,EAAE,MAAM,CAAC;IACnB,6BAA6B,EAAE,OAAO,CAAC;IACvC,2BAA2B,EAAE,OAAO,CAAC;IACrC,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,eAAe,CAAC,EAAE,gBAAgB,CAAC;IACnC;;;OAGG;IACH,8BAA8B,CAAC,EAAE,gBAAgB,EAAE,CAAC;IACpD;;;OAGG;IACH,iCAAiC,CAAC,EAAE,OAAO,CAAC;IAC5C;;;OAGG;IACH,qBAAqB,CAAC,EAAE,yBAAyB,CAAC;IAClD,OAAO,EAAE,CACL,MAAM,EAAE,iBAAiB,EACzB,8BAA8B,EAAE,gBAAgB,EAAE,EAClD,qBAAqB,EAAE,yBAAyB,GAAG,SAAS,KAC3D,IAAI,CAAC;IACV,QAAQ,EAAE,MAAM,IAAI,CAAC;CACxB;AAYD,wBAAgB,uBAAuB,CAAC,EACpC,MAAM,EACN,WAAW,EACX,kBAAkB,EAClB,YAAY,EACZ,mBAAmB,EACnB,gBAAgB,EAChB,4BAA4B,EAC5B,gCAAgC,EAChC,yBAAyB,EACzB,aAAa,EACb,gCAAgC,EAChC,UAAU,EACV,6BAA6B,EAC7B,2BAA2B,EAC3B,SAAS,EACT,eAAe,EACf,8BAAsD,EACtD,iCAAyC,EACzC,qBAAqB,EACrB,OAAO,EACP,QAAQ,GACX,EAAE,6BAA6B,2CAoI/B"}
@@ -26,7 +26,7 @@ const NO_ADDITIONAL_FILTERS = [];
26
26
  * date filter's own handling, executed with include on any period.
27
27
  */
28
28
  const IS_INCLUDE_WITH_PERIOD_ALLOWED = true;
29
- export function MeasureDateFilterPicker({ filter, dateDataset, appliedDateDataset, dateDatasets, onDateDatasetChange, loadDateDatasets, isDateDatasetsDropdownLoaded, enableUnavailableItemsVisibility, relativeDateFilterPresets, dateDatasetRefsWithGranularities, dateFormat, isTimeForAbsoluteRangeEnabled, isSecondsGranularityEnabled, weekStart, activeCalendars, additionalDateAttributeFilters = NO_ADDITIONAL_FILTERS, areAdditionalDateFiltersSupported = false, emptyDateValuesFilter, onApply, onCancel, }) {
29
+ export function MeasureDateFilterPicker({ filter, dateDataset, appliedDateDataset, dateDatasets, onDateDatasetChange, loadDateDatasets, isDateDatasetsDropdownLoaded, enableUnavailableItemsVisibility, relativeDateFilterPresets, periodPresets, dateDatasetRefsWithGranularities, dateFormat, isTimeForAbsoluteRangeEnabled, isSecondsGranularityEnabled, weekStart, activeCalendars, additionalDateAttributeFilters = NO_ADDITIONAL_FILTERS, areAdditionalDateFiltersSupported = false, emptyDateValuesFilter, onApply, onCancel, }) {
30
30
  const originalFilter = filter ?? NO_PERIOD;
31
31
  const [selectedFilter, setSelectedFilter] = useState(originalFilter);
32
32
  const { selectedAdditionalDateFilters, setSelectedAdditionalDateFilters, selectedEmptyDateValuesFilterMode, setSelectedEmptyDateValuesFilterMode, currentMigratedFilters, isOtherFiltersDisabled, migrateToDateDataset, dismissMigratedFilters, } = useAdditionalDateFiltersState({
@@ -65,5 +65,5 @@ export function MeasureDateFilterPicker({ filter, dateDataset, appliedDateDatase
65
65
  dismissMigratedFilters();
66
66
  }
67
67
  };
68
- return (_jsxs(_Fragment, { children: [_jsx(DateDatasetSection, { selectedDateDataset: dateDataset, dateDatasets: dateDatasets, onChange: handleDateDatasetChange, loadDateDatasets: loadDateDatasets, isDateDatasetsDropdownLoaded: isDateDatasetsDropdownLoaded, enableUnavailableItemsVisibility: enableUnavailableItemsVisibility }), _jsxs("div", { className: "adi-date-filter-body s-adi-date-filter-body", children: [_jsx(PresetsSection, { filter: selectedFilter, onChange: setSelectedFilter, onEdit: dismissMigratedFilters, relativeDateFilterPresets: relativeDateFilterPresets, dateDataset: dateDataset, dateDatasetRefsWithGranularities: dateDatasetRefsWithGranularities, dateFormat: dateFormat, isTimeForAbsoluteRangeEnabled: isTimeForAbsoluteRangeEnabled, isSecondsForAbsoluteRangeEnabled: isSecondsForAbsoluteRangeEnabled, isSecondsGranularityEnabled: isSecondsGranularityEnabled, weekStart: weekStart, submitForm: apply, isDisabled: isOtherFiltersDisabled, activeCalendars: activeCalendars }), areAdditionalDateFiltersSupported ? (_jsx(AdditionalDateFilters, { dateDataset: dateDataset, dateDatasetRefsWithGranularities: dateDatasetRefsWithGranularities, additionalDateAttributeFilters: selectedAdditionalDateFilters, migratedAdditionalFilters: currentMigratedFilters, emptyDateValuesFilterMode: selectedEmptyDateValuesFilterMode, onFiltersUpdate: setSelectedAdditionalDateFilters, onMigratedFiltersDismiss: dismissMigratedFilters, onEmptyDateValuesFilterModeChange: handleEmptyDateValuesFilterModeChange, isDisabled: isOtherFiltersDisabled, isAllTime: isAllTime, isIncludeWithPeriodAllowed: IS_INCLUDE_WITH_PERIOD_ALLOWED, showDateGranularities: true })) : null] }), _jsxs("div", { className: "filter-picker-buttons", children: [_jsx(CancelButton, { onClick: onCancel }), _jsx(ApplyButton, { onClick: apply, isEnabled: isApplyEnabled, tooltip: applyButtonTooltip })] })] }));
68
+ return (_jsxs(_Fragment, { children: [_jsx(DateDatasetSection, { selectedDateDataset: dateDataset, dateDatasets: dateDatasets, onChange: handleDateDatasetChange, loadDateDatasets: loadDateDatasets, isDateDatasetsDropdownLoaded: isDateDatasetsDropdownLoaded, enableUnavailableItemsVisibility: enableUnavailableItemsVisibility }), _jsxs("div", { className: "adi-date-filter-body s-adi-date-filter-body", children: [_jsx(PresetsSection, { filter: selectedFilter, storedPeriodLocalIdentifier: originalFilter.period?.config.localIdentifier, onChange: setSelectedFilter, onEdit: dismissMigratedFilters, relativeDateFilterPresets: relativeDateFilterPresets, periodPresets: periodPresets, dateDataset: dateDataset, dateDatasetRefsWithGranularities: dateDatasetRefsWithGranularities, dateFormat: dateFormat, isTimeForAbsoluteRangeEnabled: isTimeForAbsoluteRangeEnabled, isSecondsForAbsoluteRangeEnabled: isSecondsForAbsoluteRangeEnabled, isSecondsGranularityEnabled: isSecondsGranularityEnabled, weekStart: weekStart, submitForm: apply, isDisabled: isOtherFiltersDisabled, activeCalendars: activeCalendars }), areAdditionalDateFiltersSupported ? (_jsx(AdditionalDateFilters, { dateDataset: dateDataset, dateDatasetRefsWithGranularities: dateDatasetRefsWithGranularities, additionalDateAttributeFilters: selectedAdditionalDateFilters, migratedAdditionalFilters: currentMigratedFilters, emptyDateValuesFilterMode: selectedEmptyDateValuesFilterMode, onFiltersUpdate: setSelectedAdditionalDateFilters, onMigratedFiltersDismiss: dismissMigratedFilters, onEmptyDateValuesFilterModeChange: handleEmptyDateValuesFilterModeChange, isDisabled: isOtherFiltersDisabled, isAllTime: isAllTime, isIncludeWithPeriodAllowed: IS_INCLUDE_WITH_PERIOD_ALLOWED, showDateGranularities: true })) : null] }), _jsxs("div", { className: "filter-picker-buttons", children: [_jsx(CancelButton, { onClick: onCancel }), _jsx(ApplyButton, { onClick: apply, isEnabled: isApplyEnabled, tooltip: applyButtonTooltip })] })] }));
69
69
  }
@@ -1 +1 @@
1
- {"version":3,"file":"applyButtonHook.d.ts","sourceRoot":"","sources":["../../../../../src/components/filterBar/dateFilter/Buttons/applyButtonHook.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,sBAAsB,EAA2B,MAAM,kBAAkB,CAAC;AAQxF,OAAO,EAAE,KAAK,qBAAqB,EAAE,MAAM,8CAA8C,CAAC;AAC1F,OAAO,EACH,KAAK,yBAAyB,EAC9B,KAAK,gBAAgB,EACxB,MAAM,kDAAkD,CAAC;AAC1D,OAAO,EAAE,KAAK,iBAAiB,EAAmB,MAAM,+BAA+B,CAAC;AAoFxF,eAAO,MAAM,qBAAqB,mBACd,iBAAiB,kBACjB,iBAAiB,uBACZ,qBAAqB,uBACrB,qBAAqB,8BACd,sBAAsB,8BACtB,sBAAsB,8BACtB,MAAM,EAAE,8BACR,MAAM,EAAE,yBACb,gBAAgB,EAAE,iCACV,gBAAgB,EAAE,sBAC7B,OAAO,sCACS,yBAAyB,sCACzB,yBAAyB,kDAoChE,CAAC;AAEF,eAAO,MAAM,6BAA6B,mBACtB,iBAAiB,8BACL,sBAAsB,sBAC9B,OAAO,sCACS,yBAAyB,6DA6BhE,CAAC"}
1
+ {"version":3,"file":"applyButtonHook.d.ts","sourceRoot":"","sources":["../../../../../src/components/filterBar/dateFilter/Buttons/applyButtonHook.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,sBAAsB,EAA2B,MAAM,kBAAkB,CAAC;AAQxF,OAAO,EAAE,KAAK,qBAAqB,EAAE,MAAM,8CAA8C,CAAC;AAC1F,OAAO,EACH,KAAK,yBAAyB,EAC9B,KAAK,gBAAgB,EACxB,MAAM,kDAAkD,CAAC;AAC1D,OAAO,EACH,KAAK,iBAAiB,EAIzB,MAAM,+BAA+B,CAAC;AA8GvC,eAAO,MAAM,qBAAqB,mBACd,iBAAiB,kBACjB,iBAAiB,uBACZ,qBAAqB,uBACrB,qBAAqB,8BACd,sBAAsB,8BACtB,sBAAsB,8BACtB,MAAM,EAAE,8BACR,MAAM,EAAE,yBACb,gBAAgB,EAAE,iCACV,gBAAgB,EAAE,sBAC7B,OAAO,sCACS,yBAAyB,sCACzB,yBAAyB,kDAkChE,CAAC;AAEF,eAAO,MAAM,6BAA6B,mBACtB,iBAAiB,8BACL,sBAAsB,sBAC9B,OAAO,sCACS,yBAAyB,6DAwBhE,CAAC"}
@@ -1,14 +1,37 @@
1
1
  // (C) 2022-2026 GoodData Corporation
2
2
  import moment from "moment";
3
- import { useIntl } from "react-intl";
3
+ import { defineMessage, useIntl } from "react-intl";
4
4
  import { areObjRefsEqual } from "@gooddata/sdk-model";
5
5
  import { OverTimeComparisonTypes } from "@gooddata/sdk-ui";
6
6
  import { isAbsoluteDateFilterOption, isRelativeDateFilterOption, } from "@gooddata/sdk-ui-filters";
7
7
  import { _isEqual } from "@gooddata/util";
8
- import { isAllTimeOption } from "../dateFilterOptionFactory.js";
9
- const isAllTimeSelectedAndTimeComparisonApplied = (selectedFilter, selectedTimeComparisonType) => isAllTimeOption(selectedFilter) &&
10
- (OverTimeComparisonTypes.PREVIOUS_PERIOD === selectedTimeComparisonType ||
11
- OverTimeComparisonTypes.SAME_PERIOD_PREVIOUS_YEAR === selectedTimeComparisonType);
8
+ import { getUncomparableDateFilter, isAllTimeOption, } from "../dateFilterOptionFactory.js";
9
+ /** The comparisons each date filter without a previous period blocks, with the reason Apply tells. */
10
+ const UNCOMPARABLE_DATE_FILTER_APPLY_TOOLTIPS = {
11
+ allTime: {
12
+ [OverTimeComparisonTypes.PREVIOUS_PERIOD]: defineMessage({
13
+ id: "filter.compare.previous_period.all_time_not_supported",
14
+ }),
15
+ [OverTimeComparisonTypes.SAME_PERIOD_PREVIOUS_YEAR]: defineMessage({
16
+ id: "filter.compare.same_period_previous_year.all_time_not_supported",
17
+ }),
18
+ },
19
+ period: {
20
+ [OverTimeComparisonTypes.PREVIOUS_PERIOD]: defineMessage({
21
+ id: "filter.compare.previous_period.named_period_not_supported",
22
+ }),
23
+ [OverTimeComparisonTypes.SAME_PERIOD_PREVIOUS_YEAR]: defineMessage({
24
+ id: "filter.compare.same_period_previous_year.named_period_not_supported",
25
+ }),
26
+ },
27
+ };
28
+ /** Why the selected date filter cannot have the selected comparison, undefined when it can. */
29
+ const getUncomparableDateFilterApplyTooltip = (selectedFilter, selectedTimeComparisonType) => {
30
+ const uncomparableDateFilter = getUncomparableDateFilter(selectedFilter);
31
+ return uncomparableDateFilter
32
+ ? UNCOMPARABLE_DATE_FILTER_APPLY_TOOLTIPS[uncomparableDateFilter][selectedTimeComparisonType]
33
+ : undefined;
34
+ };
12
35
  const areSameMeasuresSelected = (selectedComparisonMeasures, originalComparisonMeasures) => _isEqual(selectedComparisonMeasures.slice().sort(), originalComparisonMeasures.slice().sort());
13
36
  /**
14
37
  * Include with a period works only as the date filter's own empty values handling; the legacy
@@ -47,32 +70,24 @@ export const useApplyButtonEnabled = (selectedFilter, originalFilter, selectedDa
47
70
  const { filterOption } = selectedFilter;
48
71
  const isSelectionDifferent = isDialogStateChanged(selectedFilter, originalFilter, selectedDateDataset, originalDateDataset, selectedTimeComparisonType, originalTimeComparisonType, selectedComparisonMeasures, originalComparisonMeasures, additionalDateFilters, originalAdditionalDateFilters, selectedEmptyDateValuesFilterMode, originalEmptyDateValuesFilterMode);
49
72
  const ignoreTimeComparison = selectedTimeComparisonType === OverTimeComparisonTypes.NOTHING;
50
- const isValidTimeComparison = isAllTimeSelectedAndTimeComparisonApplied(selectedFilter, selectedTimeComparisonType);
73
+ const isUncomparableDateFilterCompared = getUncomparableDateFilterApplyTooltip(selectedFilter, selectedTimeComparisonType) !== undefined;
51
74
  const isInvalidEmptyValuesInclude = isEmptyValuesIncludeInvalid(selectedFilter, selectedEmptyDateValuesFilterMode, isIncludeWithPeriodAllowed);
52
75
  return (isSelectionDifferent &&
53
76
  isValidAbsoluteDateRange(filterOption) &&
54
77
  isValidFloatingDateRange(filterOption) &&
55
78
  (ignoreTimeComparison || isValidDateDataset) &&
56
- !isValidTimeComparison &&
79
+ !isUncomparableDateFilterCompared &&
57
80
  !isInvalidEmptyValuesInclude);
58
81
  };
59
82
  export const useDisabledApplyButtonTooltip = (selectedFilter, selectedTimeComparisonType, isValidDateDataset, selectedEmptyDateValuesFilterMode, isIncludeWithPeriodAllowed = false) => {
60
83
  const intl = useIntl();
61
84
  const ignoreTimeComparison = selectedTimeComparisonType === OverTimeComparisonTypes.NOTHING;
62
- const isAllTime = isAllTimeOption(selectedFilter);
85
+ const uncomparableDateFilterTooltip = getUncomparableDateFilterApplyTooltip(selectedFilter, selectedTimeComparisonType);
63
86
  if (isEmptyValuesIncludeInvalid(selectedFilter, selectedEmptyDateValuesFilterMode, isIncludeWithPeriodAllowed)) {
64
87
  return intl.formatMessage({ id: "filter.date.empty_values.include.disabled_apply_tooltip" });
65
88
  }
66
89
  if (!isValidDateDataset && !ignoreTimeComparison) {
67
90
  return intl.formatMessage({ id: "filter.compare.type.dropdown.disabled_for_pop_apply" });
68
91
  }
69
- if (isAllTime && selectedTimeComparisonType === OverTimeComparisonTypes.PREVIOUS_PERIOD) {
70
- return intl.formatMessage({ id: "filter.compare.previous_period.all_time_not_supported" });
71
- }
72
- if (isAllTime && selectedTimeComparisonType === OverTimeComparisonTypes.SAME_PERIOD_PREVIOUS_YEAR) {
73
- return intl.formatMessage({
74
- id: "filter.compare.same_period_previous_year.all_time_not_supported",
75
- });
76
- }
77
- return undefined;
92
+ return uncomparableDateFilterTooltip ? intl.formatMessage(uncomparableDateFilterTooltip) : undefined;
78
93
  };
@@ -1 +1 @@
1
- {"version":3,"file":"DateFilter.d.ts","sourceRoot":"","sources":["../../../../src/components/filterBar/dateFilter/DateFilter.tsx"],"names":[],"mappings":"AAiCA,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAcnD,wBAAgB,UAAU,CAAC,QAAQ,EAAE,gBAAgB,2CAgUpD"}
1
+ {"version":3,"file":"DateFilter.d.ts","sourceRoot":"","sources":["../../../../src/components/filterBar/dateFilter/DateFilter.tsx"],"names":[],"mappings":"AAiCA,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAcnD,wBAAgB,UAAU,CAAC,QAAQ,EAAE,gBAAgB,2CA+TpD"}
@@ -18,7 +18,7 @@ import { CancelButton } from "./Buttons/CancelButton.js";
18
18
  import { STATIC_DATE_RANGE_BUTTON_LABEL_FORMAT } from "./constants.js";
19
19
  import { datasetRefWithGranularitiesHasSeconds } from "./dateDatasetGranularities.js";
20
20
  import { DateDatasetSection } from "./DateDatasetSection/DateDatasetSection.js";
21
- import { isAllTimeOption } from "./dateFilterOptionFactory.js";
21
+ import { getUncomparableDateFilter, isAllTimeOption } from "./dateFilterOptionFactory.js";
22
22
  import { ALL_TIME_FILTER_OPTION } from "./defaultFilterOptions.js";
23
23
  import { FilterDropdown } from "./FilterDropdown/FilterDropdown.js";
24
24
  import { PresetsSection } from "./PresetSection/PresetsSection.js";
@@ -31,7 +31,7 @@ const isValidDateDatasetSelected = (selectedDateDataset, dateBucketItemDateDatas
31
31
  };
32
32
  export function DateFilter(ownProps) {
33
33
  const { onApply, onClose, className, isDragged, isAutoOpen = false } = ownProps;
34
- const { filter, relativeDateFilterPresets, dateDataset, dateDatasets, dateDatasetRefsWithGranularities, dateFormat, timeComparisonMeasures, supportedTimeComparisonTypes, timeComparisonType, timeComparisonCompatibleMeasures, isUsedByInsight, dateBucketItemDateDatasetRefs, isDateDatasetsDropdownLoaded, areGenericDateAttributeElementsSupported, additionalDateAttributeFilters, additionalDateFilterLabels, migratedAdditionalFilters, isTimeForAbsoluteRangeEnabled, isSecondsGranularityEnabled, formatLocale, weekStart, enableUnavailableItemsVisibility, storedEmptyDateValuesFilter, isFirstDateFilter, activeCalendars, } = useSelector((state) => selectDateFilterProps(state, ownProps), shallowEqual);
34
+ const { filter, relativeDateFilterPresets, periodPresets, dateDataset, dateDatasets, dateDatasetRefsWithGranularities, dateFormat, timeComparisonMeasures, supportedTimeComparisonTypes, timeComparisonType, timeComparisonCompatibleMeasures, isUsedByInsight, dateBucketItemDateDatasetRefs, isDateDatasetsDropdownLoaded, areGenericDateAttributeElementsSupported, additionalDateAttributeFilters, additionalDateFilterLabels, migratedAdditionalFilters, isTimeForAbsoluteRangeEnabled, isSecondsGranularityEnabled, formatLocale, weekStart, enableUnavailableItemsVisibility, storedEmptyDateValuesFilter, isFirstDateFilter, activeCalendars, } = useSelector((state) => selectDateFilterProps(state, ownProps), shallowEqual);
35
35
  // the flag writes the empty values mode as the date filter's own handling, which supports include
36
36
  // with any period
37
37
  const isImprovedMetricDateFilterEnabled = useSelector(enableImprovedMetricDateFilter);
@@ -68,7 +68,6 @@ export function DateFilter(ownProps) {
68
68
  const isSecondsForAppliedFilterButton = isSecondsGranularityEnabled &&
69
69
  datasetRefWithGranularitiesHasSeconds(dateDatasetRefsWithGranularities, dateDataset?.ref);
70
70
  const isAllTime = isAllTimeOption(selectedFilter);
71
- // AD does not offer the comparison over time with a period
72
71
  const isPeriodSelected = !!selectedFilter.period;
73
72
  // a filter with a period always carries its empty values mode itself, so it keeps include without the flag
74
73
  const isIncludeWithPeriodAllowed = isImprovedMetricDateFilterEnabled || isPeriodSelected;
@@ -163,5 +162,5 @@ export function DateFilter(ownProps) {
163
162
  compatibleMeasuresCount: timeComparisonCompatibleMeasures.length,
164
163
  selectedMeasuresCount: timeComparisonMeasures.length,
165
164
  }
166
- : null, additionalDateFilterLabels: additionalDateFilterLabels, emptyDateValuesFilterMode: buttonEmptyDateValuesFilterMode, isDragged: isDragged, datasetTitle: dateDataset?.title, isUsedByInsight: isUsedByInsight, migratedAdditionalFilters: migratedAdditionalFilters, dateFormat: filterDropdownDateFormat, isTimeForAbsoluteRangeEnabled: isTimeForAbsoluteRangeEnabled, isSecondsForAbsoluteRangeEnabled: isSecondsForAppliedFilterButton, children: [_jsx(DateDatasetSection, { selectedDateDataset: selectedDateDataset, dateDatasets: dateDatasets, onChange: handleOnDateDataset, loadDateDatasets: loadDateDatasets, isDateDatasetsDropdownLoaded: isDateDatasetsDropdownLoaded, enableUnavailableItemsVisibility: enableUnavailableItemsVisibility }), _jsxs("div", { className: "adi-date-filter-body s-adi-date-filter-body", children: [_jsx(PresetsSection, { filter: selectedFilter, onChange: setSelectedFilter, onEdit: onMigratedFiltersDismiss, relativeDateFilterPresets: relativeDateFilterPresets, dateDataset: selectedDateDataset, dateDatasetRefsWithGranularities: dateDatasetRefsWithGranularities, dateFormat: dateFormat, isTimeForAbsoluteRangeEnabled: isTimeForAbsoluteRangeEnabled, isSecondsForAbsoluteRangeEnabled: isSecondsForAbsoluteRangeEnabled, isSecondsGranularityEnabled: isSecondsGranularityEnabled, weekStart: weekStart, submitForm: handleOnApply, isDisabled: isOtherFiltersDisabled, activeCalendars: activeCalendars }), areGenericDateAttributeElementsSupported ? (_jsx(AdditionalDateFilters, { dateDataset: selectedDateDataset, dateDatasetRefsWithGranularities: dateDatasetRefsWithGranularities, additionalDateAttributeFilters: isFirstDateFilter ? selectedAdditionalDateFilters : [], migratedAdditionalFilters: currentMigratedFilters, emptyDateValuesFilterMode: selectedEmptyDateValuesFilterMode, onFiltersUpdate: setSelectedAdditionalDateFilters, onMigratedFiltersDismiss: onMigratedFiltersDismiss, onEmptyDateValuesFilterModeChange: handleEmptyDateValuesFilterModeChange, isDisabled: isOtherFiltersDisabled, isAllTime: isAllTime, isIncludeWithPeriodAllowed: isIncludeWithPeriodAllowed, showDateGranularities: isFirstDateFilter })) : null, isPeriodSelected ? null : (_jsx(TimeComparisonSection, { selectedType: selectedTimeComparison, selectedMeasureIds: selectedTimeComparisonMeasures, onTypeSelected: handleTimeComparisonTypeSelected, onMeasuresSelected: handleTimeComparisonMeasuresSelected, compatibleMeasures: timeComparisonCompatibleMeasures, supportedTypes: supportedTimeComparisonTypes, isAllTimeDateFilter: isAllTime, isPoPAvailable: isValidDateDataset, isSectionHidden: !isFirstDateFilter, isDisabled: isOtherFiltersDisabled }))] }), _jsxs("div", { className: "filter-picker-buttons", children: [_jsx(CancelButton, { onClick: handleOnClose }), _jsx(ApplyButton, { onClick: handleOnApply, isEnabled: isApplyEnabled, tooltip: applyButtonTooltip })] })] }));
165
+ : null, additionalDateFilterLabels: additionalDateFilterLabels, emptyDateValuesFilterMode: buttonEmptyDateValuesFilterMode, isDragged: isDragged, datasetTitle: dateDataset?.title, isUsedByInsight: isUsedByInsight, migratedAdditionalFilters: migratedAdditionalFilters, dateFormat: filterDropdownDateFormat, isTimeForAbsoluteRangeEnabled: isTimeForAbsoluteRangeEnabled, isSecondsForAbsoluteRangeEnabled: isSecondsForAppliedFilterButton, children: [_jsx(DateDatasetSection, { selectedDateDataset: selectedDateDataset, dateDatasets: dateDatasets, onChange: handleOnDateDataset, loadDateDatasets: loadDateDatasets, isDateDatasetsDropdownLoaded: isDateDatasetsDropdownLoaded, enableUnavailableItemsVisibility: enableUnavailableItemsVisibility }), _jsxs("div", { className: "adi-date-filter-body s-adi-date-filter-body", children: [_jsx(PresetsSection, { filter: selectedFilter, storedPeriodLocalIdentifier: filter.period?.config.localIdentifier, onChange: setSelectedFilter, onEdit: onMigratedFiltersDismiss, relativeDateFilterPresets: relativeDateFilterPresets, periodPresets: periodPresets, dateDataset: selectedDateDataset, dateDatasetRefsWithGranularities: dateDatasetRefsWithGranularities, dateFormat: dateFormat, isTimeForAbsoluteRangeEnabled: isTimeForAbsoluteRangeEnabled, isSecondsForAbsoluteRangeEnabled: isSecondsForAbsoluteRangeEnabled, isSecondsGranularityEnabled: isSecondsGranularityEnabled, weekStart: weekStart, submitForm: handleOnApply, isDisabled: isOtherFiltersDisabled, activeCalendars: activeCalendars }), areGenericDateAttributeElementsSupported ? (_jsx(AdditionalDateFilters, { dateDataset: selectedDateDataset, dateDatasetRefsWithGranularities: dateDatasetRefsWithGranularities, additionalDateAttributeFilters: isFirstDateFilter ? selectedAdditionalDateFilters : [], migratedAdditionalFilters: currentMigratedFilters, emptyDateValuesFilterMode: selectedEmptyDateValuesFilterMode, onFiltersUpdate: setSelectedAdditionalDateFilters, onMigratedFiltersDismiss: onMigratedFiltersDismiss, onEmptyDateValuesFilterModeChange: handleEmptyDateValuesFilterModeChange, isDisabled: isOtherFiltersDisabled, isAllTime: isAllTime, isIncludeWithPeriodAllowed: isIncludeWithPeriodAllowed, showDateGranularities: isFirstDateFilter })) : null, _jsx(TimeComparisonSection, { selectedType: selectedTimeComparison, selectedMeasureIds: selectedTimeComparisonMeasures, onTypeSelected: handleTimeComparisonTypeSelected, onMeasuresSelected: handleTimeComparisonMeasuresSelected, compatibleMeasures: timeComparisonCompatibleMeasures, supportedTypes: supportedTimeComparisonTypes, uncomparableDateFilter: getUncomparableDateFilter(selectedFilter), isPoPAvailable: isValidDateDataset, isSectionHidden: !isFirstDateFilter, isDisabled: isOtherFiltersDisabled })] }), _jsxs("div", { className: "filter-picker-buttons", children: [_jsx(CancelButton, { onClick: handleOnClose }), _jsx(ApplyButton, { onClick: handleOnApply, isEnabled: isApplyEnabled, tooltip: applyButtonTooltip })] })] }));
167
166
  }
@@ -1,10 +1,14 @@
1
- import { type IActiveCalendars } from "@gooddata/sdk-model";
2
- import { type CalendarTabType, type DateFilterOption, type DateFilterRelativeOptionGroup } from "@gooddata/sdk-ui-filters";
1
+ import { type IActiveCalendars, type WeekStart } from "@gooddata/sdk-model";
2
+ import { type CalendarTabType, type DateFilterOption, type DateFilterRelativeOptionGroup, type IUiPeriodPreset } from "@gooddata/sdk-ui-filters";
3
+ import { type IDateFilterOptionPeriod } from "../dateFilterOptionFactory.js";
3
4
  export interface IDatePresetsDropdownProps {
4
5
  selectedPreset: DateFilterOption;
5
- /** the title of the period the filter references; no preset is selected then */
6
- selectedPeriodTitle?: string;
6
+ /** the period the filter references; no preset is selected then */
7
+ selectedPeriod?: IDateFilterOptionPeriod;
7
8
  relativeDateFilterPresets: DateFilterRelativeOptionGroup;
9
+ /** the periods to list, each in the group of the presets of its granularity when that group is listed */
10
+ periodPresets: readonly IUiPeriodPreset[];
11
+ weekStart?: WeekStart;
8
12
  onChange: (filter: DateFilterOption) => void;
9
13
  dateFormat: string;
10
14
  contextWindow?: Window;
@@ -1 +1 @@
1
- {"version":3,"file":"DatePresetsDropdown.d.ts","sourceRoot":"","sources":["../../../../../src/components/filterBar/dateFilter/PresetSection/DatePresetsDropdown.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAE5D,OAAO,EACH,KAAK,eAAe,EACpB,KAAK,gBAAgB,EACrB,KAAK,6BAA6B,EAGrC,MAAM,0BAA0B,CAAC;AAelC,MAAM,WAAW,yBAAyB;IACtC,cAAc,EAAE,gBAAgB,CAAC;IACjC,gFAAgF;IAChF,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,yBAAyB,EAAE,6BAA6B,CAAC;IACzD,QAAQ,EAAE,CAAC,MAAM,EAAE,gBAAgB,KAAK,IAAI,CAAC;IAC7C,UAAU,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,WAAW,CAAC,EAAE,eAAe,CAAC;IAC9B,WAAW,CAAC,EAAE,CAAC,GAAG,EAAE,eAAe,KAAK,IAAI,CAAC;IAC7C,eAAe,CAAC,EAAE,gBAAgB,CAAC;CACtC;AA2ED,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,yBAAyB,2CA2BnE"}
1
+ {"version":3,"file":"DatePresetsDropdown.d.ts","sourceRoot":"","sources":["../../../../../src/components/filterBar/dateFilter/PresetSection/DatePresetsDropdown.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,gBAAgB,EAAE,KAAK,SAAS,EAAmB,MAAM,qBAAqB,CAAC;AAE7F,OAAO,EACH,KAAK,eAAe,EACpB,KAAK,gBAAgB,EACrB,KAAK,6BAA6B,EAClC,KAAK,eAAe,EAGvB,MAAM,0BAA0B,CAAC;AAOlC,OAAO,EAAE,KAAK,uBAAuB,EAAE,MAAM,+BAA+B,CAAC;AAU7E,MAAM,WAAW,yBAAyB;IACtC,cAAc,EAAE,gBAAgB,CAAC;IACjC,mEAAmE;IACnE,cAAc,CAAC,EAAE,uBAAuB,CAAC;IACzC,yBAAyB,EAAE,6BAA6B,CAAC;IACzD,yGAAyG;IACzG,aAAa,EAAE,SAAS,eAAe,EAAE,CAAC;IAC1C,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,QAAQ,EAAE,CAAC,MAAM,EAAE,gBAAgB,KAAK,IAAI,CAAC;IAC7C,UAAU,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,WAAW,CAAC,EAAE,eAAe,CAAC;IAC9B,WAAW,CAAC,EAAE,CAAC,GAAG,EAAE,eAAe,KAAK,IAAI,CAAC;IAC7C,eAAe,CAAC,EAAE,gBAAgB,CAAC;CACtC;AAyFD,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,yBAAyB,2CA2BnE"}