@gooddata/sdk-ui-analytical-designer 11.70.0-alpha.2 → 11.70.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.
- package/NOTICE +47 -47
- package/esm/actions/open_actions.d.ts +1 -1
- package/esm/actions/open_actions.d.ts.map +1 -1
- package/esm/components/Report.d.ts +4 -1
- package/esm/components/Report.d.ts.map +1 -1
- package/esm/components/Report.js +5 -3
- package/esm/components/buckets/MeasureDateFilterPicker.d.ts +0 -4
- package/esm/components/buckets/MeasureDateFilterPicker.d.ts.map +1 -1
- package/esm/components/buckets/MeasureDateFilterPicker.js +11 -5
- package/esm/components/buckets/MeasureDateFilterTitle.d.ts.map +1 -1
- package/esm/components/buckets/MeasureDateFilterTitle.js +8 -14
- package/esm/components/buckets/measureDateFilterOption.d.ts +3 -2
- package/esm/components/buckets/measureDateFilterOption.d.ts.map +1 -1
- package/esm/components/buckets/measureDateFilterOption.js +10 -3
- package/esm/components/filterBar/AttributeFilterItem.d.ts +6 -0
- package/esm/components/filterBar/AttributeFilterItem.d.ts.map +1 -1
- package/esm/components/filterBar/dateFilter/AdditionalFiltersSection/AdditionalDateAttributes.d.ts +2 -1
- package/esm/components/filterBar/dateFilter/AdditionalFiltersSection/AdditionalDateAttributes.d.ts.map +1 -1
- package/esm/components/filterBar/dateFilter/AdditionalFiltersSection/AdditionalDateAttributes.js +6 -2
- package/esm/components/filterBar/dateFilter/AdditionalFiltersSection/AdditionalDateFilters.d.ts +2 -1
- package/esm/components/filterBar/dateFilter/AdditionalFiltersSection/AdditionalDateFilters.d.ts.map +1 -1
- package/esm/components/filterBar/dateFilter/AdditionalFiltersSection/AdditionalDateFilters.js +2 -2
- package/esm/components/filterBar/dateFilter/AdditionalFiltersSection/EmptyDateValuesFilter.d.ts +6 -1
- package/esm/components/filterBar/dateFilter/AdditionalFiltersSection/EmptyDateValuesFilter.d.ts.map +1 -1
- package/esm/components/filterBar/dateFilter/AdditionalFiltersSection/EmptyDateValuesFilter.js +2 -2
- package/esm/components/filterBar/dateFilter/Buttons/applyButtonHook.d.ts +2 -3
- package/esm/components/filterBar/dateFilter/Buttons/applyButtonHook.d.ts.map +1 -1
- package/esm/components/filterBar/dateFilter/Buttons/applyButtonHook.js +21 -12
- package/esm/components/filterBar/dateFilter/DateFilter.d.ts.map +1 -1
- package/esm/components/filterBar/dateFilter/DateFilter.js +22 -6
- package/esm/components/filterBar/dateFilter/DateFilterItem.d.ts.map +1 -1
- package/esm/components/filterBar/dateFilter/DateFilterItem.js +2 -2
- package/esm/components/filterBar/dateFilter/FilterButton/FilterButtonLabel.d.ts.map +1 -1
- package/esm/components/filterBar/dateFilter/FilterButton/FilterButtonLabel.js +2 -2
- package/esm/components/filterBar/dateFilter/FilterButton/SelectedPresetName.d.ts +1 -1
- package/esm/components/filterBar/dateFilter/FilterButton/SelectedPresetName.d.ts.map +1 -1
- package/esm/components/filterBar/dateFilter/FilterButton/SelectedPresetName.js +16 -19
- package/esm/components/filterBar/dateFilter/PresetSection/DatePresetsDropdown.d.ts +2 -0
- package/esm/components/filterBar/dateFilter/PresetSection/DatePresetsDropdown.d.ts.map +1 -1
- package/esm/components/filterBar/dateFilter/PresetSection/DatePresetsDropdown.js +6 -3
- package/esm/components/filterBar/dateFilter/PresetSection/DatePresetsDropdownButton.d.ts +3 -1
- package/esm/components/filterBar/dateFilter/PresetSection/DatePresetsDropdownButton.d.ts.map +1 -1
- package/esm/components/filterBar/dateFilter/PresetSection/DatePresetsDropdownButton.js +2 -2
- package/esm/components/filterBar/dateFilter/PresetSection/PresetsSection.d.ts.map +1 -1
- package/esm/components/filterBar/dateFilter/PresetSection/PresetsSection.js +5 -3
- package/esm/components/filterBar/dateFilter/PresetSection/supportedPresetsHook.d.ts +12 -0
- package/esm/components/filterBar/dateFilter/PresetSection/supportedPresetsHook.d.ts.map +1 -1
- package/esm/components/filterBar/dateFilter/PresetSection/supportedPresetsHook.js +22 -0
- package/esm/components/filterBar/dateFilter/dateFilterOptionFactory.d.ts +15 -1
- package/esm/components/filterBar/dateFilter/dateFilterOptionFactory.d.ts.map +1 -1
- package/esm/components/filterBar/dateFilter/dateFilterOptionFactory.js +8 -0
- package/esm/components/filterBar/dateFilter/selectors.d.ts +130 -9
- package/esm/components/filterBar/dateFilter/selectors.d.ts.map +1 -1
- package/esm/components/filterBar/dateFilter/selectors.js +11 -3
- package/esm/components/filterBar/dateFilter/types.d.ts +3 -1
- package/esm/components/filterBar/dateFilter/types.d.ts.map +1 -1
- package/esm/components/filterBar/rankingFilter/RankingFilterItem.d.ts +22 -2
- package/esm/components/filterBar/rankingFilter/RankingFilterItem.d.ts.map +1 -1
- package/esm/components/report/ReportLoadFailed.d.ts +8 -0
- package/esm/components/report/ReportLoadFailed.d.ts.map +1 -0
- package/esm/components/report/ReportLoadFailed.js +14 -0
- package/esm/components/sort/ChartSort.d.ts +22 -2
- package/esm/components/sort/ChartSort.d.ts.map +1 -1
- package/esm/components/sort/chart_sort_bucket_items.d.ts +44 -4
- package/esm/components/sort/chart_sort_bucket_items.d.ts.map +1 -1
- package/esm/convertors/fromBackend/VisualizationConverter.d.ts.map +1 -1
- package/esm/convertors/fromBackend/VisualizationConverter.js +18 -1
- package/esm/convertors/toBackend/FilterConverter.d.ts.map +1 -1
- package/esm/convertors/toBackend/FilterConverter.js +15 -1
- package/esm/models/date_dataset.d.ts +3 -1
- package/esm/models/date_dataset.d.ts.map +1 -1
- package/esm/models/date_filter.d.ts +5 -6
- package/esm/models/date_filter.d.ts.map +1 -1
- package/esm/models/date_filter.js +12 -15
- package/esm/models/decorated_bucket_item.d.ts.map +1 -1
- package/esm/models/decorated_bucket_item.js +1 -1
- package/esm/models/empty_date_values_title.d.ts +15 -0
- package/esm/models/empty_date_values_title.d.ts.map +1 -0
- package/esm/models/empty_date_values_title.js +25 -0
- package/esm/models/granularity.d.ts +6 -1
- package/esm/models/granularity.d.ts.map +1 -1
- package/esm/models/granularity.js +5 -0
- package/esm/models/metadata.d.ts +15 -7
- package/esm/models/metadata.d.ts.map +1 -1
- package/esm/models/metadata.js +129 -34
- package/esm/models/period.d.ts +9 -0
- package/esm/models/period.d.ts.map +1 -0
- package/esm/models/period.js +13 -0
- package/esm/postMessageApi/sagas/api_token_origin_check.d.ts +23 -0
- package/esm/postMessageApi/sagas/api_token_origin_check.d.ts.map +1 -0
- package/esm/postMessageApi/sagas/api_token_origin_check.js +58 -0
- package/esm/postMessageApi/sagas/api_token_received_saga.d.ts +10 -2
- package/esm/postMessageApi/sagas/api_token_received_saga.d.ts.map +1 -1
- package/esm/postMessageApi/sagas/api_token_received_saga.js +19 -2
- package/esm/postMessageApi/sagas/command_received_saga.d.ts +0 -6
- package/esm/postMessageApi/sagas/command_received_saga.d.ts.map +1 -1
- package/esm/postMessageApi/sagas/command_received_saga.js +14 -3
- package/esm/postMessageApi/sagas/incoming_command_sagas.d.ts +0 -3
- package/esm/postMessageApi/sagas/incoming_command_sagas.d.ts.map +1 -1
- package/esm/postMessageApi/state/selectors/post_message_context_selector.d.ts +44 -4
- package/esm/postMessageApi/state/selectors/post_message_context_selector.d.ts.map +1 -1
- package/esm/sagas/catalog/catalog_saga.d.ts +7 -3
- package/esm/sagas/catalog/catalog_saga.d.ts.map +1 -1
- package/esm/sagas/catalog/catalog_saga.js +29 -19
- package/esm/sagas/date_datasets/date_datasets_sagas.d.ts.map +1 -1
- package/esm/sagas/date_datasets/date_datasets_sagas.js +8 -1
- package/esm/sagas/open_report_sagas.d.ts +36 -11
- package/esm/sagas/open_report_sagas.d.ts.map +1 -1
- package/esm/sagas/open_report_sagas.js +110 -18
- package/esm/sagas/sagas.d.ts +0 -3
- package/esm/sagas/sagas.d.ts.map +1 -1
- package/esm/selectors/buckets_selector.d.ts +132 -12
- package/esm/selectors/buckets_selector.d.ts.map +1 -1
- package/esm/selectors/date_datasets_selector.d.ts +88 -8
- package/esm/selectors/date_datasets_selector.d.ts.map +1 -1
- package/esm/selectors/date_filter_selector.d.ts +6 -0
- package/esm/selectors/date_filter_selector.d.ts.map +1 -1
- package/esm/selectors/export_button_selector.d.ts +88 -8
- package/esm/selectors/export_button_selector.d.ts.map +1 -1
- package/esm/selectors/export_selector.d.ts +22 -2
- package/esm/selectors/export_selector.d.ts.map +1 -1
- package/esm/selectors/feature_flag_selector.d.ts +23 -2
- package/esm/selectors/feature_flag_selector.d.ts.map +1 -1
- package/esm/selectors/feature_flag_selector.js +2 -0
- package/esm/selectors/insight_selectors.d.ts +176 -16
- package/esm/selectors/insight_selectors.d.ts.map +1 -1
- package/esm/selectors/options_menu_selector.d.ts +132 -12
- package/esm/selectors/options_menu_selector.d.ts.map +1 -1
- package/esm/selectors/recommendations_selector.d.ts +17 -17
- package/esm/selectors/recommendations_selector.d.ts.map +1 -1
- package/esm/selectors/recommendations_selector.js +15 -6
- package/esm/selectors/report_selector.d.ts +105 -13
- package/esm/selectors/report_selector.d.ts.map +1 -1
- package/esm/selectors/report_selector.js +4 -0
- package/esm/selectors/report_visualization_selector.d.ts +38 -10
- package/esm/selectors/report_visualization_selector.d.ts.map +1 -1
- package/esm/selectors/save_report_selector.d.ts +2 -0
- package/esm/selectors/save_report_selector.d.ts.map +1 -1
- package/esm/selectors/save_report_selector.js +8 -6
- package/esm/selectors/selected_date_datasets_selector.d.ts +22 -2
- package/esm/selectors/selected_date_datasets_selector.d.ts.map +1 -1
- package/esm/selectors/selected_date_datasets_selector.js +3 -1
- package/esm/services/reference_point_service.d.ts.map +1 -1
- package/esm/services/reference_point_service.js +8 -5
- package/esm/store/bucket_filters/bucket_filters_actions.d.ts +2 -2
- package/esm/store/bucket_filters/bucket_filters_actions.d.ts.map +1 -1
- package/esm/store/bucket_filters/bucket_filters_sagas.d.ts +5 -1
- package/esm/store/bucket_filters/bucket_filters_sagas.d.ts.map +1 -1
- package/esm/store/bucket_filters/bucket_filters_sagas.js +13 -2
- package/esm/store/catalog/catalog_reducer.d.ts +2 -1
- package/esm/store/catalog/catalog_reducer.d.ts.map +1 -1
- package/esm/store/catalog/catalog_reducer.js +10 -0
- package/esm/store/catalog/catalog_selector.d.ts +140 -0
- package/esm/store/catalog/catalog_selector.d.ts.map +1 -1
- package/esm/store/catalog/catalog_selector.js +3 -1
- package/esm/store/catalog/catalog_store_actions.d.ts +9 -5
- package/esm/store/catalog/catalog_store_actions.d.ts.map +1 -1
- package/esm/store/catalog/catalog_store_actions.js +3 -1
- package/esm/store/catalog/catalog_types.d.ts +4 -1
- package/esm/store/catalog/catalog_types.d.ts.map +1 -1
- package/esm/store/filter_bar/filter_bar_helpers.d.ts +2 -2
- package/esm/store/filter_bar/filter_bar_helpers.d.ts.map +1 -1
- package/esm/store/filter_bar/filter_bar_helpers.js +19 -10
- package/esm/store/filter_bar/filter_bar_selector.d.ts.map +1 -1
- package/esm/store/filter_bar/filter_bar_selector.js +3 -2
- package/esm/store/filter_bar/filter_bar_types.d.ts +20 -1
- package/esm/store/filter_bar/filter_bar_types.d.ts.map +1 -1
- package/esm/store/filter_bar/filter_bar_types.js +6 -0
- package/esm/store/metric_editor/metric_editor_sagas.d.ts.map +1 -1
- package/esm/store/metric_editor/metric_editor_sagas.js +10 -2
- package/esm/store/reference_point/reference_point_state.d.ts +2 -2
- package/esm/store/reference_point/reference_point_state.d.ts.map +1 -1
- package/esm/store/report/open_report_operation.d.ts +3 -1
- package/esm/store/report/open_report_operation.d.ts.map +1 -1
- package/esm/store/report/open_report_operation.js +1 -0
- package/esm/store/report/report_state.d.ts +15 -1
- package/esm/store/report/report_state.d.ts.map +1 -1
- package/esm/store/report/report_state.js +10 -0
- package/esm/translations/en-US.json +12 -0
- package/esm/typings/bear/bearTypes.d.ts +16 -1
- package/esm/typings/bear/bearTypes.d.ts.map +1 -1
- package/esm/typings/bear/bearTypes.js +4 -0
- package/esm/utils/api.d.ts +13 -0
- package/esm/utils/api.d.ts.map +1 -1
- package/esm/utils/api.js +14 -3
- package/esm/utils/custom_mouse_backend.d.ts.map +1 -1
- package/esm/utils/custom_mouse_backend.js +9 -2
- package/esm/utils/sdkModelToADRep/FilterConverter.d.ts.map +1 -1
- package/esm/utils/sdkModelToADRep/FilterConverter.js +15 -1
- package/package.json +21 -21
|
@@ -46,8 +46,8 @@ export declare const getAttributeItems: ((state: import("../../store/types.js").
|
|
|
46
46
|
resultsCount: () => number;
|
|
47
47
|
resetResultsCount: () => void;
|
|
48
48
|
} & {
|
|
49
|
-
resultFunc: (resultFuncArgs_0: import("../../models/date_dataset.js").IDecoratedDateDatasets, resultFuncArgs_1: import("../../models/date_datasets_meta_item.js").IMeasureDateDatasetsMetaItems, resultFuncArgs_2: import("../../models/date_datasets_meta_item.js").IDateDatasetsMetaItem[]) => import("../../models/date_dataset.js").ISelectedDateDatasets;
|
|
50
|
-
memoizedResultFunc: ((resultFuncArgs_0: import("../../models/date_dataset.js").IDecoratedDateDatasets, resultFuncArgs_1: import("../../models/date_datasets_meta_item.js").IMeasureDateDatasetsMetaItems, resultFuncArgs_2: import("../../models/date_datasets_meta_item.js").IDateDatasetsMetaItem[]) => import("../../models/date_dataset.js").ISelectedDateDatasets) & {
|
|
49
|
+
resultFunc: (resultFuncArgs_0: import("../../models/date_dataset.js").IDecoratedDateDatasets, resultFuncArgs_1: import("../../models/date_datasets_meta_item.js").IMeasureDateDatasetsMetaItems, resultFuncArgs_2: import("../../models/date_datasets_meta_item.js").IDateDatasetsMetaItem[], resultFuncArgs_3: readonly import("@gooddata/sdk-model").IDateRangeParameterMetadataObject[]) => import("../../models/date_dataset.js").ISelectedDateDatasets;
|
|
50
|
+
memoizedResultFunc: ((resultFuncArgs_0: import("../../models/date_dataset.js").IDecoratedDateDatasets, resultFuncArgs_1: import("../../models/date_datasets_meta_item.js").IMeasureDateDatasetsMetaItems, resultFuncArgs_2: import("../../models/date_datasets_meta_item.js").IDateDatasetsMetaItem[], resultFuncArgs_3: readonly import("@gooddata/sdk-model").IDateRangeParameterMetadataObject[]) => import("../../models/date_dataset.js").ISelectedDateDatasets) & {
|
|
51
51
|
clearCache: () => void;
|
|
52
52
|
resultsCount: () => number;
|
|
53
53
|
resetResultsCount: () => void;
|
|
@@ -173,6 +173,26 @@ export declare const getAttributeItems: ((state: import("../../store/types.js").
|
|
|
173
173
|
} & {
|
|
174
174
|
memoize: typeof import("reselect").weakMapMemoize;
|
|
175
175
|
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
176
|
+
}, ((state: import("../../store/types.js").IAppState) => readonly import("@gooddata/sdk-model").IDateRangeParameterMetadataObject[]) & {
|
|
177
|
+
clearCache: () => void;
|
|
178
|
+
resultsCount: () => number;
|
|
179
|
+
resetResultsCount: () => void;
|
|
180
|
+
} & {
|
|
181
|
+
resultFunc: (resultFuncArgs_0: import("../../store/catalog/catalog_types.js").ICatalogState) => readonly import("@gooddata/sdk-model").IDateRangeParameterMetadataObject[];
|
|
182
|
+
memoizedResultFunc: ((resultFuncArgs_0: import("../../store/catalog/catalog_types.js").ICatalogState) => readonly import("@gooddata/sdk-model").IDateRangeParameterMetadataObject[]) & {
|
|
183
|
+
clearCache: () => void;
|
|
184
|
+
resultsCount: () => number;
|
|
185
|
+
resetResultsCount: () => void;
|
|
186
|
+
};
|
|
187
|
+
lastResult: () => readonly import("@gooddata/sdk-model").IDateRangeParameterMetadataObject[];
|
|
188
|
+
dependencies: [(state: import("../../store/types.js").IAppState) => import("../../store/catalog/catalog_types.js").ICatalogState];
|
|
189
|
+
recomputations: () => number;
|
|
190
|
+
resetRecomputations: () => void;
|
|
191
|
+
dependencyRecomputations: () => number;
|
|
192
|
+
resetDependencyRecomputations: () => void;
|
|
193
|
+
} & {
|
|
194
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
195
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
176
196
|
}];
|
|
177
197
|
recomputations: () => number;
|
|
178
198
|
resetRecomputations: () => void;
|
|
@@ -508,8 +528,8 @@ export declare const getBucketItemNames: ((state: import("../../store/types.js")
|
|
|
508
528
|
resultsCount: () => number;
|
|
509
529
|
resetResultsCount: () => void;
|
|
510
530
|
} & {
|
|
511
|
-
resultFunc: (resultFuncArgs_0: import("../../models/date_dataset.js").IDecoratedDateDatasets, resultFuncArgs_1: import("../../models/date_datasets_meta_item.js").IMeasureDateDatasetsMetaItems, resultFuncArgs_2: import("../../models/date_datasets_meta_item.js").IDateDatasetsMetaItem[]) => import("../../models/date_dataset.js").ISelectedDateDatasets;
|
|
512
|
-
memoizedResultFunc: ((resultFuncArgs_0: import("../../models/date_dataset.js").IDecoratedDateDatasets, resultFuncArgs_1: import("../../models/date_datasets_meta_item.js").IMeasureDateDatasetsMetaItems, resultFuncArgs_2: import("../../models/date_datasets_meta_item.js").IDateDatasetsMetaItem[]) => import("../../models/date_dataset.js").ISelectedDateDatasets) & {
|
|
531
|
+
resultFunc: (resultFuncArgs_0: import("../../models/date_dataset.js").IDecoratedDateDatasets, resultFuncArgs_1: import("../../models/date_datasets_meta_item.js").IMeasureDateDatasetsMetaItems, resultFuncArgs_2: import("../../models/date_datasets_meta_item.js").IDateDatasetsMetaItem[], resultFuncArgs_3: readonly import("@gooddata/sdk-model").IDateRangeParameterMetadataObject[]) => import("../../models/date_dataset.js").ISelectedDateDatasets;
|
|
532
|
+
memoizedResultFunc: ((resultFuncArgs_0: import("../../models/date_dataset.js").IDecoratedDateDatasets, resultFuncArgs_1: import("../../models/date_datasets_meta_item.js").IMeasureDateDatasetsMetaItems, resultFuncArgs_2: import("../../models/date_datasets_meta_item.js").IDateDatasetsMetaItem[], resultFuncArgs_3: readonly import("@gooddata/sdk-model").IDateRangeParameterMetadataObject[]) => import("../../models/date_dataset.js").ISelectedDateDatasets) & {
|
|
513
533
|
clearCache: () => void;
|
|
514
534
|
resultsCount: () => number;
|
|
515
535
|
resetResultsCount: () => void;
|
|
@@ -635,6 +655,26 @@ export declare const getBucketItemNames: ((state: import("../../store/types.js")
|
|
|
635
655
|
} & {
|
|
636
656
|
memoize: typeof import("reselect").weakMapMemoize;
|
|
637
657
|
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
658
|
+
}, ((state: import("../../store/types.js").IAppState) => readonly import("@gooddata/sdk-model").IDateRangeParameterMetadataObject[]) & {
|
|
659
|
+
clearCache: () => void;
|
|
660
|
+
resultsCount: () => number;
|
|
661
|
+
resetResultsCount: () => void;
|
|
662
|
+
} & {
|
|
663
|
+
resultFunc: (resultFuncArgs_0: import("../../store/catalog/catalog_types.js").ICatalogState) => readonly import("@gooddata/sdk-model").IDateRangeParameterMetadataObject[];
|
|
664
|
+
memoizedResultFunc: ((resultFuncArgs_0: import("../../store/catalog/catalog_types.js").ICatalogState) => readonly import("@gooddata/sdk-model").IDateRangeParameterMetadataObject[]) & {
|
|
665
|
+
clearCache: () => void;
|
|
666
|
+
resultsCount: () => number;
|
|
667
|
+
resetResultsCount: () => void;
|
|
668
|
+
};
|
|
669
|
+
lastResult: () => readonly import("@gooddata/sdk-model").IDateRangeParameterMetadataObject[];
|
|
670
|
+
dependencies: [(state: import("../../store/types.js").IAppState) => import("../../store/catalog/catalog_types.js").ICatalogState];
|
|
671
|
+
recomputations: () => number;
|
|
672
|
+
resetRecomputations: () => void;
|
|
673
|
+
dependencyRecomputations: () => number;
|
|
674
|
+
resetDependencyRecomputations: () => void;
|
|
675
|
+
} & {
|
|
676
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
677
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
638
678
|
}];
|
|
639
679
|
recomputations: () => number;
|
|
640
680
|
resetRecomputations: () => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chart_sort_bucket_items.d.ts","sourceRoot":"","sources":["../../../src/components/sort/chart_sort_bucket_items.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;AAG5C,OAAO,EAAE,KAAK,qBAAqB,EAAE,KAAK,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;AAI/F,OAAO,EAEH,KAAK,kBAAkB,EAE1B,MAAM,6BAA6B,CAAC;AAQr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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuB3B,CAAC;AAEF,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAM9B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VisualizationConverter.d.ts","sourceRoot":"","sources":["../../../src/convertors/fromBackend/VisualizationConverter.ts"],"names":[],"mappings":"AAEA,OAAO,EAMH,KAAK,OAAO,EACZ,KAAK,OAAO,EACZ,KAAK,QAAQ,
|
|
1
|
+
{"version":3,"file":"VisualizationConverter.d.ts","sourceRoot":"","sources":["../../../src/convertors/fromBackend/VisualizationConverter.ts"],"names":[],"mappings":"AAEA,OAAO,EAMH,KAAK,OAAO,EACZ,KAAK,OAAO,EACZ,KAAK,QAAQ,EAQb,KAAK,KAAK,EAIb,MAAM,qBAAqB,CAAC;AAG7B,OAAO,EAEH,KAAK,OAAO,IAAI,WAAW,EAC3B,KAAK,cAAc,EAWnB,KAAK,iCAAiC,EAiBzC,MAAM,iCAAiC,CAAC;AAwHzC,eAAO,MAAM,aAAa,WAAY,iCAAiC,KAAG,OAmBzE,CAAC;AAmIF;;GAEG;AACH,eAAO,MAAM,aAAa,WAAY,WAAW,KAAG,OAMnD,CAAC;AA+BF;;;GAGG;AACH,eAAO,MAAM,oBAAoB,kBACd,cAAc,yBACN,MAAM,YACnB,GAAG,CAAC,MAAM,EAAE,KAAK,CAAC,KAC7B,QA8BF,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// (C) 2019-2026 GoodData Corporation
|
|
2
2
|
import { isComputedAttributeRef, uriRef, } from "@gooddata/sdk-model";
|
|
3
3
|
import { _compact, _isEmpty, _omit } from "@gooddata/util";
|
|
4
|
-
import { isVisualizationObjectAbsoluteDateFilter, isVisualizationObjectArbitraryAttributeFilter, isVisualizationObjectArithmeticMeasureDefinition, isVisualizationObjectAttributeFilter, isVisualizationObjectMatchAttributeFilter, isVisualizationObjectMeasure, isVisualizationObjectMeasureValueFilter, isVisualizationObjectNegativeAttributeFilter, isVisualizationObjectPoPMeasureDefinition, isVisualizationObjectPositiveAttributeFilter, isVisualizationObjectPreviousPeriodMeasureDefinition, isVisualizationObjectRankingFilter, isVisualizationObjectRelativeDateFilter, } from "../../typings/bear/bearTypes.js";
|
|
4
|
+
import { isVisualizationObjectAbsoluteDateFilter, isVisualizationObjectArbitraryAttributeFilter, isVisualizationObjectArithmeticMeasureDefinition, isVisualizationObjectAttributeFilter, isVisualizationObjectMatchAttributeFilter, isVisualizationObjectMeasure, isVisualizationObjectMeasureValueFilter, isVisualizationObjectNegativeAttributeFilter, isVisualizationObjectParameterizedDateFilter, isVisualizationObjectPoPMeasureDefinition, isVisualizationObjectPositiveAttributeFilter, isVisualizationObjectPreviousPeriodMeasureDefinition, isVisualizationObjectRankingFilter, isVisualizationObjectRelativeDateFilter, } from "../../typings/bear/bearTypes.js";
|
|
5
5
|
import { fromBearRef, fromScopedBearRef } from "./ObjRefConverter.js";
|
|
6
6
|
import { deserializeProperties, serializeProperties } from "./PropertiesConverter.js";
|
|
7
7
|
import { convertReferencesToUris } from "./ReferenceConverter.js";
|
|
@@ -85,6 +85,17 @@ const convertRankingFilter = (filter) => {
|
|
|
85
85
|
},
|
|
86
86
|
};
|
|
87
87
|
};
|
|
88
|
+
const convertParameterizedDateFilter = (filter) => {
|
|
89
|
+
const { localIdentifier, dataSet, parameter, emptyValueHandling } = filter.parameterizedDateFilter;
|
|
90
|
+
return {
|
|
91
|
+
parameterizedDateFilter: {
|
|
92
|
+
...(localIdentifier ? { localIdentifier } : {}),
|
|
93
|
+
dataSet: fromBearRef(dataSet, "dataSet"),
|
|
94
|
+
parameter: fromBearRef(parameter, "parameter"),
|
|
95
|
+
...(emptyValueHandling ? { emptyValueHandling } : {}),
|
|
96
|
+
},
|
|
97
|
+
};
|
|
98
|
+
};
|
|
88
99
|
export const convertFilter = (filter) => {
|
|
89
100
|
if (isVisualizationObjectMeasureValueFilter(filter)) {
|
|
90
101
|
return convertMeasureValueFilter(filter);
|
|
@@ -101,6 +112,9 @@ export const convertFilter = (filter) => {
|
|
|
101
112
|
else if (isVisualizationObjectAttributeFilter(filter)) {
|
|
102
113
|
return convertMeasureFilter(filter);
|
|
103
114
|
}
|
|
115
|
+
else if (isVisualizationObjectParameterizedDateFilter(filter)) {
|
|
116
|
+
return convertParameterizedDateFilter(filter);
|
|
117
|
+
}
|
|
104
118
|
else if (isVisualizationObjectAbsoluteDateFilter(filter)) {
|
|
105
119
|
return convertMeasureFilter(filter);
|
|
106
120
|
}
|
|
@@ -136,6 +150,9 @@ const convertMeasureFilter = (filter) => {
|
|
|
136
150
|
};
|
|
137
151
|
}
|
|
138
152
|
}
|
|
153
|
+
else if (isVisualizationObjectParameterizedDateFilter(filter)) {
|
|
154
|
+
return convertParameterizedDateFilter(filter);
|
|
155
|
+
}
|
|
139
156
|
else if (isVisualizationObjectAbsoluteDateFilter(filter)) {
|
|
140
157
|
const { emptyValueHandling } = filter.absoluteDateFilter;
|
|
141
158
|
return {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FilterConverter.d.ts","sourceRoot":"","sources":["../../../src/convertors/toBackend/FilterConverter.ts"],"names":[],"mappings":"AAEA,OAAO,EAGH,KAAK,OAAO,EAEZ,KAAK,cAAc,
|
|
1
|
+
{"version":3,"file":"FilterConverter.d.ts","sourceRoot":"","sources":["../../../src/convertors/toBackend/FilterConverter.ts"],"names":[],"mappings":"AAEA,OAAO,EAGH,KAAK,OAAO,EAEZ,KAAK,cAAc,EAwBtB,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAUH,KAAK,iCAAiC,EACtC,KAAK,yBAAyB,EACjC,MAAM,iCAAiC,CAAC;AA+EzC;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACnC;;;;;OAKG;IACH,iCAAiC,CAAC,EAAE,OAAO,CAAC;CAC/C;AA8DD,eAAO,MAAM,qBAAqB,WACtB,OAAO,YACL,sBAAsB,KACjC,iCAkBF,CAAC;AAEF,eAAO,MAAM,aAAa,WACd,cAAc,YACZ,sBAAsB,KACjC,yBAiBF,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// (C) 2019-2026 GoodData Corporation
|
|
2
|
-
import { absoluteDateFilterValues, filterAttributeElements, filterObjRef, isAbsoluteDateFilter, isArbitraryAttributeFilter, isAttributeElementsByRef, isMatchAttributeFilter, isMeasureValueFilter, isNegativeAttributeFilter, isPositiveAttributeFilter, isRankingFilter, isRelativeBoundedDateFilter, isRelativeDateFilter, measureValueFilterConditions, measureValueFilterMeasure, relativeDateFilterValues, } from "@gooddata/sdk-model";
|
|
2
|
+
import { absoluteDateFilterValues, filterAttributeElements, filterObjRef, isAbsoluteDateFilter, isArbitraryAttributeFilter, isAttributeElementsByRef, isMatchAttributeFilter, isMeasureValueFilter, isNegativeAttributeFilter, isParameterizedDateFilter, isPositiveAttributeFilter, isRankingFilter, isRelativeBoundedDateFilter, isRelativeDateFilter, measureValueFilterConditions, measureValueFilterMeasure, relativeDateFilterValues, } from "@gooddata/sdk-model";
|
|
3
3
|
import { toBearRef } from "./ObjRefConverter.js";
|
|
4
4
|
import { assertNoNulls } from "./utils.js";
|
|
5
5
|
const convertMeasureValueFilter = (filter) => {
|
|
@@ -57,6 +57,17 @@ const convertAbsoluteDateFilter = (filter) => {
|
|
|
57
57
|
},
|
|
58
58
|
};
|
|
59
59
|
};
|
|
60
|
+
const convertParameterizedDateFilter = (filter) => {
|
|
61
|
+
const { localIdentifier, dataSet, parameter, emptyValueHandling } = filter.parameterizedDateFilter;
|
|
62
|
+
return {
|
|
63
|
+
parameterizedDateFilter: {
|
|
64
|
+
...(localIdentifier ? { localIdentifier } : {}),
|
|
65
|
+
dataSet: toBearRef(dataSet),
|
|
66
|
+
parameter: toBearRef(parameter),
|
|
67
|
+
...(emptyValueHandling ? { emptyValueHandling } : {}),
|
|
68
|
+
},
|
|
69
|
+
};
|
|
70
|
+
};
|
|
60
71
|
const convertArbitraryAttributeFilter = (filter) => ({
|
|
61
72
|
arbitraryAttributeFilter: {
|
|
62
73
|
displayForm: toBearRef(filter.arbitraryAttributeFilter.label),
|
|
@@ -137,5 +148,8 @@ export const convertFilter = (filter, options) => {
|
|
|
137
148
|
else if (isRelativeDateFilter(filter)) {
|
|
138
149
|
return convertRelativeDateFilter(filter);
|
|
139
150
|
}
|
|
151
|
+
else if (isParameterizedDateFilter(filter)) {
|
|
152
|
+
return convertParameterizedDateFilter(filter);
|
|
153
|
+
}
|
|
140
154
|
throw new Error("Unsupported filter type");
|
|
141
155
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type ObjRef } from "@gooddata/sdk-model";
|
|
1
|
+
import { type IDateRangeParameterMetadataObject, type ObjRef } from "@gooddata/sdk-model";
|
|
2
2
|
import { type IDateDatasetAttribute } from "../typings/dataset_attribute.js";
|
|
3
3
|
import { type IDateDataset } from "../typings/datasets.js";
|
|
4
4
|
import { type IDateDatasetsMetaItem, type IMeasureDateDatasetsMetaItems } from "./date_datasets_meta_item.js";
|
|
@@ -31,6 +31,8 @@ export interface ISelectedDateDatasets {
|
|
|
31
31
|
measureDateDatasets: IMeasureDateDatasetsMetaItems;
|
|
32
32
|
/** every date dataset's meta, for the metric date filters that name their own dataset */
|
|
33
33
|
dateDatasetsMeta?: ReadonlyArray<IDateDatasetsMetaItem>;
|
|
34
|
+
/** the catalog's periods, for the title of a metric date filter that references one */
|
|
35
|
+
dateRangeParameters?: ReadonlyArray<IDateRangeParameterMetadataObject>;
|
|
34
36
|
}
|
|
35
37
|
export declare function decoratedDateDataset(item: IDateDataset): IDecoratedDateDatasetItem;
|
|
36
38
|
export declare function decoratedDateDatasetMeta(item: IDateDatasetsMetaItem): IDecoratedDateDatasetMeta;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"date_dataset.d.ts","sourceRoot":"","sources":["../../src/models/date_dataset.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"date_dataset.d.ts","sourceRoot":"","sources":["../../src/models/date_dataset.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,iCAAiC,EAAE,KAAK,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAE1F,OAAO,EAAE,KAAK,qBAAqB,EAAE,MAAM,iCAAiC,CAAC;AAC7E,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAE3D,OAAO,EAAE,KAAK,qBAAqB,EAAE,KAAK,6BAA6B,EAAE,MAAM,8BAA8B,CAAC;AAC9G,OAAO,EAAuB,KAAK,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAEhF,0FAA0F;AAC1F,MAAM,MAAM,8BAA8B,GAAG,qBAAqB,GAC9D,IAAI,CAAC,kBAAkB,EAAE,OAAO,GAAG,0BA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,GAAG,sBAAsB,CAUzB"}
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import { type IntlShape } from "react-intl";
|
|
2
|
+
import { type IDateRangeParameterMetadataObject } from "@gooddata/sdk-model";
|
|
2
3
|
import { type IBucketsMetaState } from "../store/buckets/buckets_meta_state.js";
|
|
3
4
|
import { type IBucketItemMetricFilter } from "../typings/bucket_item_filter.js";
|
|
4
5
|
import { type IDecoratedDateDatasetMeta } from "./date_dataset.js";
|
|
5
6
|
import { type IDecoratedPresetItem } from "./preset_item.js";
|
|
6
7
|
export interface IDecoratedDateFilter {
|
|
7
8
|
interval: IDecoratedPresetItem;
|
|
9
|
+
/** the title of the period the filter references, or its id when the catalog does not have it */
|
|
10
|
+
periodTitle?: string;
|
|
8
11
|
/**
|
|
9
12
|
* The raw bucket filter, as stored in `data.buckets[i].items[j].filters[k]`. Write-back paths
|
|
10
13
|
* dispatch it verbatim.
|
|
@@ -15,11 +18,7 @@ export interface IDecoratedDateFilter {
|
|
|
15
18
|
isDate: true;
|
|
16
19
|
}
|
|
17
20
|
declare function getAttributeTitle(filter: IDecoratedDateFilter): string | undefined;
|
|
18
|
-
|
|
19
|
-
* Words the empty date values mode like the metric date filter chip and the filter bar's button:
|
|
20
|
-
* "Empty values" for only, "All time except Empty values" for exclude on All time.
|
|
21
|
-
*/
|
|
22
|
-
declare function getIntervalTitle(filter: IDecoratedDateFilter, intl: IntlShape, formatLocale?: string): string | null;
|
|
21
|
+
declare function getIntervalTitle(filter: IDecoratedDateFilter, intl: IntlShape, formatLocale?: string): string;
|
|
23
22
|
declare function getTitle(filter: IDecoratedDateFilter, intl: IntlShape, formatLocale?: string): string;
|
|
24
23
|
declare function isAllTime(filter: IDecoratedDateFilter): boolean;
|
|
25
24
|
export declare const DecoratedDateFilter: {
|
|
@@ -28,6 +27,6 @@ export declare const DecoratedDateFilter: {
|
|
|
28
27
|
getIntervalTitle: typeof getIntervalTitle;
|
|
29
28
|
isAllTime: typeof isAllTime;
|
|
30
29
|
};
|
|
31
|
-
export declare function createDecoratedDateFilter(filter: IBucketItemMetricFilter | null, dateDataset: IDecoratedDateDatasetMeta | null, bucketsMeta?: Partial<IBucketsMetaState> | undefined, isMeasure?: boolean): IDecoratedDateFilter;
|
|
30
|
+
export declare function createDecoratedDateFilter(filter: IBucketItemMetricFilter | null, dateDataset: IDecoratedDateDatasetMeta | null, bucketsMeta?: Partial<IBucketsMetaState> | undefined, isMeasure?: boolean, dateRangeParameters?: ReadonlyArray<IDateRangeParameterMetadataObject> | undefined): IDecoratedDateFilter;
|
|
32
31
|
export {};
|
|
33
32
|
//# sourceMappingURL=date_filter.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"date_filter.d.ts","sourceRoot":"","sources":["../../src/models/date_filter.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"date_filter.d.ts","sourceRoot":"","sources":["../../src/models/date_filter.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;AAE5C,OAAO,EAAE,KAAK,iCAAiC,EAAE,MAAM,qBAAqB,CAAC;AAG7E,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,wCAAwC,CAAC;AAEhF,OAAO,EAAE,KAAK,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAEhF,OAAO,EAAE,KAAK,yBAAyB,EAAE,MAAM,mBAAmB,CAAC;AAGnE,OAAO,EAEH,KAAK,oBAAoB,EAI5B,MAAM,kBAAkB,CAAC;AAE1B,MAAM,WAAW,oBAAoB;IACjC,QAAQ,EAAE,oBAAoB,CAAC;IAC/B,iGAAiG;IACjG,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;OAGG;IACH,QAAQ,EAAE,uBAAuB,GAAG,IAAI,CAAC;IACzC,WAAW,EAAE,yBAAyB,GAAG,IAAI,CAAC;IAC9C,UAAU,EAAE,OAAO,CAAC;IACpB,MAAM,EAAE,IAAI,CAAC;CAChB;AAED,iBAAS,iBAAiB,CAAC,MAAM,EAAE,oBAAoB,sBAEtD;AAED,iBAAS,gBAAgB,CAAC,MAAM,EAAE,oBAAoB,EAAE,IAAI,EAAE,SAAS,EAAE,YAAY,CAAC,EAAE,MAAM,UAW7F;AAED,iBAAS,QAAQ,CAAC,MAAM,EAAE,oBAAoB,EAAE,IAAI,EAAE,SAAS,EAAE,YAAY,CAAC,EAAE,MAAM,UAErF;AAED,iBAAS,SAAS,CAAC,MAAM,EAAE,oBAAoB,WAE9C;AAED,eAAO,MAAM,mBAAmB;;;;;CAK/B,CAAC;AAEF,wBAAgB,yBAAyB,CACrC,MAAM,EAAE,uBAAuB,GAAG,IAAI,EACtC,WAAW,EAAE,yBAAyB,GAAG,IAAI,EAC7C,WAAW,GAAE,OAAO,CAAC,iBAAiB,CAAC,GAAG,SAAqB,EAC/D,SAAS,UAAQ,EACjB,mBAAmB,GAAE,aAAa,CAAC,iCAAiC,CAAC,GAAG,SAAqB,GAC9F,oBAAoB,CAYtB"}
|
|
@@ -1,24 +1,17 @@
|
|
|
1
1
|
// (C) 2007-2026 GoodData Corporation
|
|
2
2
|
import { ALL_TIME } from "../constants/presets.js";
|
|
3
|
+
import { isParameterizedDateFilterConfig } from "../store/filter_bar/filter_bar_types.js";
|
|
4
|
+
import { getPeriodTitleWithEmptyValues } from "./empty_date_values_title.js";
|
|
5
|
+
import { getPeriodTitle } from "./period.js";
|
|
3
6
|
import { DecoratedPresetItem, LOCAL_TIMEZONE_OFFSET, PRESETS, createDecoratedPresetItem, } from "./preset_item.js";
|
|
4
7
|
function getAttributeTitle(filter) {
|
|
5
8
|
return filter.dateDataset?.attributeTitle;
|
|
6
9
|
}
|
|
7
|
-
/**
|
|
8
|
-
* Words the empty date values mode like the metric date filter chip and the filter bar's button:
|
|
9
|
-
* "Empty values" for only, "All time except Empty values" for exclude on All time.
|
|
10
|
-
*/
|
|
11
10
|
function getIntervalTitle(filter, intl, formatLocale) {
|
|
12
|
-
|
|
13
|
-
const
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
}
|
|
17
|
-
const periodTitle = DecoratedPresetItem.getTitle(filter.interval, intl, 0, LOCAL_TIMEZONE_OFFSET, formatLocale);
|
|
18
|
-
if (mode === "exclude" && isAllTime(filter)) {
|
|
19
|
-
return `${periodTitle} ${intl.formatMessage({ id: "gs.list.except" })} ${emptyValuesLabel()}`;
|
|
20
|
-
}
|
|
21
|
-
return periodTitle;
|
|
11
|
+
// a period (DATE_RANGE parameter) is titled by the catalog, then worded like any other period
|
|
12
|
+
const periodTitle = filter.periodTitle ??
|
|
13
|
+
DecoratedPresetItem.getTitle(filter.interval, intl, 0, LOCAL_TIMEZONE_OFFSET, formatLocale);
|
|
14
|
+
return getPeriodTitleWithEmptyValues(periodTitle, isAllTime(filter), filter.original?.emptyDateValuesFilter, intl);
|
|
22
15
|
}
|
|
23
16
|
function getTitle(filter, intl, formatLocale) {
|
|
24
17
|
return `${getAttributeTitle(filter)}: ${getIntervalTitle(filter, intl, formatLocale)}`;
|
|
@@ -32,10 +25,14 @@ export const DecoratedDateFilter = {
|
|
|
32
25
|
getIntervalTitle,
|
|
33
26
|
isAllTime,
|
|
34
27
|
};
|
|
35
|
-
export function createDecoratedDateFilter(filter, dateDataset, bucketsMeta = undefined, isMeasure = false) {
|
|
28
|
+
export function createDecoratedDateFilter(filter, dateDataset, bucketsMeta = undefined, isMeasure = false, dateRangeParameters = undefined) {
|
|
29
|
+
const period = filter?.interval;
|
|
36
30
|
return {
|
|
37
31
|
original: filter,
|
|
38
32
|
interval: createDecoratedPresetItem(filter?.interval || PRESETS[0]),
|
|
33
|
+
...(isParameterizedDateFilterConfig(period)
|
|
34
|
+
? { periodTitle: getPeriodTitle(period.parameterRef, dateRangeParameters) }
|
|
35
|
+
: {}),
|
|
39
36
|
isModified: isMeasure ? true : bucketsMeta?.modified?.[filter?.attribute],
|
|
40
37
|
dateDataset,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entifier = item?.localIdentifier;
|
|
249
249
|
const decoratedDateDataset = getDateFilterDateDatasetMetaItem(localIdentifier, selectedDateDatasets, filter.dimension);
|
|
250
250
|
const emptyBucketsMeta = {};
|
|
251
|
-
return createDecoratedDateFilter(filter, decoratedDateDataset, emptyBucketsMeta, isMeasure);
|
|
251
|
+
return createDecoratedDateFilter(filter, decoratedDateDataset, emptyBucketsMeta, isMeasure, selectedDateDatasets.dateRangeParameters);
|
|
252
252
|
}
|
|
253
253
|
return createDecoratedMetricAttributeFilter(filter, itemCache, bucketsMeta, isMeasure, attributeFilterConfigs, selectedDateDatasets.dateDatasetsMeta);
|
|
254
254
|
});
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { type IntlShape } from "react-intl";
|
|
2
|
+
import { type EmptyDateValuesFilterMode } from "../store/filter_bar/filter_bar_types.js";
|
|
3
|
+
/**
|
|
4
|
+
* Words the empty date values mode into a date filter title, the same on the filter bar's button and the
|
|
5
|
+
* metric date filter: "Empty values" for only, "All time except Empty values" for exclude on All time,
|
|
6
|
+
* "<period>, empty values" for include with a period. Other combinations are the default for the period,
|
|
7
|
+
* so the period title is returned unchanged.
|
|
8
|
+
*
|
|
9
|
+
* @param periodTitle - the formatted period, e.g. "Last 4 quarters"
|
|
10
|
+
* @param isAllTime - whether the period is All time
|
|
11
|
+
* @param mode - the empty date values mode
|
|
12
|
+
* @param intl - AD intl, which holds the empty values translations
|
|
13
|
+
*/
|
|
14
|
+
export declare function getPeriodTitleWithEmptyValues(periodTitle: string, isAllTime: boolean, mode: EmptyDateValuesFilterMode | undefined, intl: IntlShape): string;
|
|
15
|
+
//# sourceMappingURL=empty_date_values_title.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"empty_date_values_title.d.ts","sourceRoot":"","sources":["../../src/models/empty_date_values_title.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;AAE5C,OAAO,EAAE,KAAK,yBAAyB,EAAE,MAAM,yCAAyC,CAAC;AAEzF;;;;;;;;;;GAUG;AACH,wBAAgB,6BAA6B,CACzC,WAAW,EAAE,MAAM,EACnB,SAAS,EAAE,OAAO,EAClB,IAAI,EAAE,yBAAyB,GAAG,SAAS,EAC3C,IAAI,EAAE,SAAS,GAChB,MAAM,CAYR"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
// (C) 2026 GoodData Corporation
|
|
2
|
+
/**
|
|
3
|
+
* Words the empty date values mode into a date filter title, the same on the filter bar's button and the
|
|
4
|
+
* metric date filter: "Empty values" for only, "All time except Empty values" for exclude on All time,
|
|
5
|
+
* "<period>, empty values" for include with a period. Other combinations are the default for the period,
|
|
6
|
+
* so the period title is returned unchanged.
|
|
7
|
+
*
|
|
8
|
+
* @param periodTitle - the formatted period, e.g. "Last 4 quarters"
|
|
9
|
+
* @param isAllTime - whether the period is All time
|
|
10
|
+
* @param mode - the empty date values mode
|
|
11
|
+
* @param intl - AD intl, which holds the empty values translations
|
|
12
|
+
*/
|
|
13
|
+
export function getPeriodTitleWithEmptyValues(periodTitle, isAllTime, mode, intl) {
|
|
14
|
+
const emptyValuesLabel = () => intl.formatMessage({ id: "filter.date.additional_filter.empty_values" });
|
|
15
|
+
if (mode === "only") {
|
|
16
|
+
return emptyValuesLabel();
|
|
17
|
+
}
|
|
18
|
+
if (mode === "exclude" && isAllTime) {
|
|
19
|
+
return `${periodTitle} ${intl.formatMessage({ id: "gs.list.except" })} ${emptyValuesLabel()}`;
|
|
20
|
+
}
|
|
21
|
+
if (mode === "include" && !isAllTime) {
|
|
22
|
+
return intl.formatMessage({ id: "filter.date.empty_values.include.title" }, { title: periodTitle });
|
|
23
|
+
}
|
|
24
|
+
return periodTitle;
|
|
25
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type IntlShape } from "react-intl";
|
|
2
|
-
import { type DateAttributeGranularity } from "@gooddata/sdk-model";
|
|
2
|
+
import { type DateAttributeGranularity, type DateRangeParameterGranularity } from "@gooddata/sdk-model";
|
|
3
3
|
/**
|
|
4
4
|
* Model granularities Analytical Designer intentionally does NOT handle: the ISO/EU-week variants
|
|
5
5
|
* (the `GDC.time.week` alias, `euweek_*`, `day_in_euweek`).
|
|
@@ -58,6 +58,11 @@ export declare const GRANULARITY: {
|
|
|
58
58
|
readonly FISCAL_QUARTER: "GDC.time.fiscal_quarter";
|
|
59
59
|
readonly FISCAL_YEAR: "GDC.time.fiscal_year";
|
|
60
60
|
};
|
|
61
|
+
/**
|
|
62
|
+
* The granularity of a period (a DATE_RANGE parameter) in Analytical Designer's terms. A period's week is
|
|
63
|
+
* `GDC.time.week`, which AD names by the week attribute it filters, `GDC.time.week_us`.
|
|
64
|
+
*/
|
|
65
|
+
export declare const periodGranularityToGranularity: (granularity: DateRangeParameterGranularity) => Granularity;
|
|
61
66
|
export declare const isFiscalGranularity: (granularity: Granularity | string | undefined) => boolean;
|
|
62
67
|
export declare const isStandardGranularity: (granularity: Granularity | string | undefined) => boolean;
|
|
63
68
|
export declare const GRANULARITY_OPTIONS: IGranularityOption[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"granularity.d.ts","sourceRoot":"","sources":["../../src/models/granularity.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAAiB,MAAM,YAAY,CAAC;AAE3D,OAAO,EACH,KAAK,wBAAwB,
|
|
1
|
+
{"version":3,"file":"granularity.d.ts","sourceRoot":"","sources":["../../src/models/granularity.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAAiB,MAAM,YAAY,CAAC;AAE3D,OAAO,EACH,KAAK,wBAAwB,EAC7B,KAAK,6BAA6B,EAKrC,MAAM,qBAAqB,CAAC;AAE7B;;;GAGG;AACH,KAAK,wBAAwB,GACvB,eAAe,GACf,yBAAyB,GACzB,4BAA4B,GAC5B,wBAAwB,CAAC;AAE/B;;;;GAIG;AACH,MAAM,MAAM,WAAW,GAAG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AAM,GAAG,SAAS,KAAG,OAC7C,CAAC;AAEtC;;;GAGG;AACH,eAAO,MAAM,mBAAmB,gBAAiB,MAAM,QAAQ,SAAS,KAAG,MAG1E,CAAC"}
|
|
@@ -43,6 +43,11 @@ export const GRANULARITY = {
|
|
|
43
43
|
FISCAL_QUARTER: "GDC.time.fiscal_quarter",
|
|
44
44
|
FISCAL_YEAR: "GDC.time.fiscal_year",
|
|
45
45
|
};
|
|
46
|
+
/**
|
|
47
|
+
* The granularity of a period (a DATE_RANGE parameter) in Analytical Designer's terms. A period's week is
|
|
48
|
+
* `GDC.time.week`, which AD names by the week attribute it filters, `GDC.time.week_us`.
|
|
49
|
+
*/
|
|
50
|
+
export const periodGranularityToGranularity = (granularity) => granularity === "GDC.time.week" ? GRANULARITY.WEEK : granularity;
|
|
46
51
|
export const isFiscalGranularity = (granularity) => isSdkFiscalGranularity(granularity);
|
|
47
52
|
export const isStandardGranularity = (granularity) => isSdkStandardGranularity(granularity);
|
|
48
53
|
/**
|
package/esm/models/metadata.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type EmptyValues, type IActiveCalendars, type IAttributeFilterConfigs, type IInsightParameterValue, type ObjRef } from "@gooddata/sdk-model";
|
|
1
|
+
import { type EmptyValues, type IActiveCalendars, type IAttributeFilterConfigs, type IDateRangeParameterMetadataObject, type IInsightParameterValue, type ObjRef } from "@gooddata/sdk-model";
|
|
2
2
|
import { type OverTimeComparisonType } from "@gooddata/sdk-ui";
|
|
3
3
|
import { type EmptyDateValuesFilterMode, type IFilter } from "../store/filter_bar/filter_bar_types.js";
|
|
4
4
|
import { type IParameterFilter } from "../store/filter_bar/parameter_filter_types.js";
|
|
@@ -10,11 +10,11 @@ import { type ILoadedReportItems } from "../typings/report.js";
|
|
|
10
10
|
import { type ICatalogEntries, type ICatalogEntry } from "../typings/state_objects.js";
|
|
11
11
|
export declare function pickValid<T extends object>(object: T): Partial<T>;
|
|
12
12
|
/**
|
|
13
|
-
* The `emptyValueHandling` a date filter stores for the empty date values mode.
|
|
14
|
-
*
|
|
15
|
-
* the
|
|
13
|
+
* The `emptyValueHandling` a date filter stores for the empty date values mode. Exclude and only are
|
|
14
|
+
* always stored. Include is stored only with a period, where the backend default is exclude; on All time
|
|
15
|
+
* it is the backend default, so it is dropped to keep a single stored shape.
|
|
16
16
|
*/
|
|
17
|
-
export declare function emptyValueHandlingToMd(emptyDateValuesFilter: EmptyDateValuesFilterMode | undefined): {
|
|
17
|
+
export declare function emptyValueHandlingToMd(emptyDateValuesFilter: EmptyDateValuesFilterMode | undefined, isAllTime: boolean): {
|
|
18
18
|
emptyValueHandling?: EmptyValues;
|
|
19
19
|
};
|
|
20
20
|
/** The additional data `constructVisualizationMDObj` threads into the buckets → MD transform. */
|
|
@@ -45,6 +45,8 @@ export interface IAdditionalData {
|
|
|
45
45
|
filterItems: ILoadedReportItems["filterItems"];
|
|
46
46
|
dateDatasets: IDateDatasets;
|
|
47
47
|
properties: IStoredVisualizationProperties;
|
|
48
|
+
/** the catalog's periods, for the granularity of a period a date filter references */
|
|
49
|
+
dateRangeParameters?: ReadonlyArray<IDateRangeParameterMetadataObject>;
|
|
48
50
|
}
|
|
49
51
|
export declare function findItemInCache(uriOrId: string, cache: ICatalogEntries | undefined,
|
|
50
52
|
/**
|
|
@@ -58,11 +60,17 @@ ref?: ObjRef): ICatalogEntry | undefined;
|
|
|
58
60
|
* - a legacy `""` attribute filter becomes the empty values mode of its date filter, as when the insight
|
|
59
61
|
* is loaded,
|
|
60
62
|
* - every All time filter becomes `ALL_TIME_GRANULARITY` from 0 to 0, however it is stored,
|
|
61
|
-
* - the
|
|
63
|
+
* - the `include` mode is dropped on All time, where it is the default, as when the insight is saved,
|
|
64
|
+
* and also with a period when the writer cannot store it there (`isIncludeWithPeriodKept` is false).
|
|
62
65
|
*
|
|
63
66
|
* Used only to compare stored content; the result is never saved.
|
|
67
|
+
*
|
|
68
|
+
* @param visualizationFilters - the stored filters
|
|
69
|
+
* @param dateDatasets - date datasets, used to recognize the legacy `""` attribute filter
|
|
70
|
+
* @param isIncludeWithPeriodKept - whether the writer keeps `include` with a period: the filter bar only
|
|
71
|
+
* with the `enableImprovedMetricDateFilter` flag, metric date filters always.
|
|
64
72
|
*/
|
|
65
|
-
export declare function normalizeEmptyDateValuesFilters(visualizationFilters: ReadonlyArray<VisualizationObjectExtendedFilter>, dateDatasets: IDateDatasets | undefined): VisualizationObjectExtendedFilter[];
|
|
73
|
+
export declare function normalizeEmptyDateValuesFilters(visualizationFilters: ReadonlyArray<VisualizationObjectExtendedFilter>, dateDatasets: IDateDatasets | undefined, isIncludeWithPeriodKept: boolean): VisualizationObjectExtendedFilter[];
|
|
66
74
|
export declare function isMeasureShowOnSecondaryAxis(item: IVisualizationObjectMeasure, properties: IStoredVisualizationProperties | undefined): boolean;
|
|
67
75
|
export declare function isATotalMeasure(item: IVisualizationObjectMeasure, properties: IStoredVisualizationProperties | undefined): boolean;
|
|
68
76
|
export declare function isThresholdMeasure(item: IVisualizationObjectMeasure, properties: IStoredVisualizationProperties | undefined): boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"metadata.d.ts","sourceRoot":"","sources":["../../src/models/metadata.ts"],"names":[],"mappings":"AAKA,OAAO,EAEH,KAAK,WAAW,EAChB,KAAK,gBAAgB,EACrB,KAAK,uBAAuB,EAC5B,KAAK,sBAAsB,EAG3B,KAAK,MAAM,
|
|
1
|
+
{"version":3,"file":"metadata.d.ts","sourceRoot":"","sources":["../../src/models/metadata.ts"],"names":[],"mappings":"AAKA,OAAO,EAEH,KAAK,WAAW,EAChB,KAAK,gBAAgB,EACrB,KAAK,uBAAuB,EAC5B,KAAK,iCAAiC,EACtC,KAAK,sBAAsB,EAG3B,KAAK,MAAM,EAQd,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAEH,KAAK,sBAAsB,EAG9B,MAAM,kBAAkB,CAAC;AAO1B,OAAO,EACH,KAAK,yBAAyB,EAO9B,KAAK,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