@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
|
@@ -151,6 +151,27 @@ export declare const getCatalogParameters: ((state: IAppState) => readonly impor
|
|
|
151
151
|
memoize: typeof import("reselect").weakMapMemoize;
|
|
152
152
|
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
153
153
|
};
|
|
154
|
+
export declare const getCatalogDateRangeParameters: ((state: IAppState) => readonly import("@gooddata/sdk-model").IDateRangeParameterMetadataObject[]) & {
|
|
155
|
+
clearCache: () => void;
|
|
156
|
+
resultsCount: () => number;
|
|
157
|
+
resetResultsCount: () => void;
|
|
158
|
+
} & {
|
|
159
|
+
resultFunc: (resultFuncArgs_0: ICatalogState) => readonly import("@gooddata/sdk-model").IDateRangeParameterMetadataObject[];
|
|
160
|
+
memoizedResultFunc: ((resultFuncArgs_0: ICatalogState) => readonly import("@gooddata/sdk-model").IDateRangeParameterMetadataObject[]) & {
|
|
161
|
+
clearCache: () => void;
|
|
162
|
+
resultsCount: () => number;
|
|
163
|
+
resetResultsCount: () => void;
|
|
164
|
+
};
|
|
165
|
+
lastResult: () => readonly import("@gooddata/sdk-model").IDateRangeParameterMetadataObject[];
|
|
166
|
+
dependencies: [typeof getCatalogState];
|
|
167
|
+
recomputations: () => number;
|
|
168
|
+
resetRecomputations: () => void;
|
|
169
|
+
dependencyRecomputations: () => number;
|
|
170
|
+
resetDependencyRecomputations: () => void;
|
|
171
|
+
} & {
|
|
172
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
173
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
174
|
+
};
|
|
154
175
|
export declare const getCatalogItemById: (id: string) => ((state: IAppState) => CatalogItem | undefined) & {
|
|
155
176
|
clearCache: () => void;
|
|
156
177
|
resultsCount: () => number;
|
|
@@ -701,6 +722,7 @@ export declare const isLoadingGroups: ((state: IAppState) => boolean) & {
|
|
|
701
722
|
readonly loadingAvailability: boolean;
|
|
702
723
|
readonly availabilityError: unknown;
|
|
703
724
|
readonly firstLoaded: boolean;
|
|
725
|
+
readonly loadFailed: boolean;
|
|
704
726
|
readonly attributeHierarchiesChanged: boolean;
|
|
705
727
|
}) => boolean;
|
|
706
728
|
memoizedResultFunc: ((resultFuncArgs_0: {
|
|
@@ -709,6 +731,7 @@ export declare const isLoadingGroups: ((state: IAppState) => boolean) & {
|
|
|
709
731
|
readonly loadingAvailability: boolean;
|
|
710
732
|
readonly availabilityError: unknown;
|
|
711
733
|
readonly firstLoaded: boolean;
|
|
734
|
+
readonly loadFailed: boolean;
|
|
712
735
|
readonly attributeHierarchiesChanged: boolean;
|
|
713
736
|
}) => boolean) & {
|
|
714
737
|
clearCache: () => void;
|
|
@@ -722,6 +745,7 @@ export declare const isLoadingGroups: ((state: IAppState) => boolean) & {
|
|
|
722
745
|
readonly loadingAvailability: boolean;
|
|
723
746
|
readonly availabilityError: unknown;
|
|
724
747
|
readonly firstLoaded: boolean;
|
|
748
|
+
readonly loadFailed: boolean;
|
|
725
749
|
readonly attributeHierarchiesChanged: boolean;
|
|
726
750
|
}) & {
|
|
727
751
|
clearCache: () => void;
|
|
@@ -734,6 +758,7 @@ export declare const isLoadingGroups: ((state: IAppState) => boolean) & {
|
|
|
734
758
|
readonly loadingAvailability: boolean;
|
|
735
759
|
readonly availabilityError: unknown;
|
|
736
760
|
readonly firstLoaded: boolean;
|
|
761
|
+
readonly loadFailed: boolean;
|
|
737
762
|
readonly attributeHierarchiesChanged: boolean;
|
|
738
763
|
};
|
|
739
764
|
memoizedResultFunc: ((resultFuncArgs_0: ICatalogState) => {
|
|
@@ -742,6 +767,7 @@ export declare const isLoadingGroups: ((state: IAppState) => boolean) & {
|
|
|
742
767
|
readonly loadingAvailability: boolean;
|
|
743
768
|
readonly availabilityError: unknown;
|
|
744
769
|
readonly firstLoaded: boolean;
|
|
770
|
+
readonly loadFailed: boolean;
|
|
745
771
|
readonly attributeHierarchiesChanged: boolean;
|
|
746
772
|
}) & {
|
|
747
773
|
clearCache: () => void;
|
|
@@ -754,6 +780,7 @@ export declare const isLoadingGroups: ((state: IAppState) => boolean) & {
|
|
|
754
780
|
readonly loadingAvailability: boolean;
|
|
755
781
|
readonly availabilityError: unknown;
|
|
756
782
|
readonly firstLoaded: boolean;
|
|
783
|
+
readonly loadFailed: boolean;
|
|
757
784
|
readonly attributeHierarchiesChanged: boolean;
|
|
758
785
|
};
|
|
759
786
|
dependencies: [typeof getCatalogState];
|
|
@@ -785,6 +812,7 @@ export declare const isLoadingAvailability: ((state: IAppState) => boolean) & {
|
|
|
785
812
|
readonly loadingAvailability: boolean;
|
|
786
813
|
readonly availabilityError: unknown;
|
|
787
814
|
readonly firstLoaded: boolean;
|
|
815
|
+
readonly loadFailed: boolean;
|
|
788
816
|
readonly attributeHierarchiesChanged: boolean;
|
|
789
817
|
}) => boolean;
|
|
790
818
|
memoizedResultFunc: ((resultFuncArgs_0: {
|
|
@@ -793,6 +821,7 @@ export declare const isLoadingAvailability: ((state: IAppState) => boolean) & {
|
|
|
793
821
|
readonly loadingAvailability: boolean;
|
|
794
822
|
readonly availabilityError: unknown;
|
|
795
823
|
readonly firstLoaded: boolean;
|
|
824
|
+
readonly loadFailed: boolean;
|
|
796
825
|
readonly attributeHierarchiesChanged: boolean;
|
|
797
826
|
}) => boolean) & {
|
|
798
827
|
clearCache: () => void;
|
|
@@ -806,6 +835,7 @@ export declare const isLoadingAvailability: ((state: IAppState) => boolean) & {
|
|
|
806
835
|
readonly loadingAvailability: boolean;
|
|
807
836
|
readonly availabilityError: unknown;
|
|
808
837
|
readonly firstLoaded: boolean;
|
|
838
|
+
readonly loadFailed: boolean;
|
|
809
839
|
readonly attributeHierarchiesChanged: boolean;
|
|
810
840
|
}) & {
|
|
811
841
|
clearCache: () => void;
|
|
@@ -818,6 +848,7 @@ export declare const isLoadingAvailability: ((state: IAppState) => boolean) & {
|
|
|
818
848
|
readonly loadingAvailability: boolean;
|
|
819
849
|
readonly availabilityError: unknown;
|
|
820
850
|
readonly firstLoaded: boolean;
|
|
851
|
+
readonly loadFailed: boolean;
|
|
821
852
|
readonly attributeHierarchiesChanged: boolean;
|
|
822
853
|
};
|
|
823
854
|
memoizedResultFunc: ((resultFuncArgs_0: ICatalogState) => {
|
|
@@ -826,6 +857,7 @@ export declare const isLoadingAvailability: ((state: IAppState) => boolean) & {
|
|
|
826
857
|
readonly loadingAvailability: boolean;
|
|
827
858
|
readonly availabilityError: unknown;
|
|
828
859
|
readonly firstLoaded: boolean;
|
|
860
|
+
readonly loadFailed: boolean;
|
|
829
861
|
readonly attributeHierarchiesChanged: boolean;
|
|
830
862
|
}) & {
|
|
831
863
|
clearCache: () => void;
|
|
@@ -838,6 +870,7 @@ export declare const isLoadingAvailability: ((state: IAppState) => boolean) & {
|
|
|
838
870
|
readonly loadingAvailability: boolean;
|
|
839
871
|
readonly availabilityError: unknown;
|
|
840
872
|
readonly firstLoaded: boolean;
|
|
873
|
+
readonly loadFailed: boolean;
|
|
841
874
|
readonly attributeHierarchiesChanged: boolean;
|
|
842
875
|
};
|
|
843
876
|
dependencies: [typeof getCatalogState];
|
|
@@ -868,6 +901,7 @@ export declare const hasAvailabilityError: ((state: IAppState) => boolean) & {
|
|
|
868
901
|
readonly loadingAvailability: boolean;
|
|
869
902
|
readonly availabilityError: unknown;
|
|
870
903
|
readonly firstLoaded: boolean;
|
|
904
|
+
readonly loadFailed: boolean;
|
|
871
905
|
readonly attributeHierarchiesChanged: boolean;
|
|
872
906
|
}) => boolean;
|
|
873
907
|
memoizedResultFunc: ((resultFuncArgs_0: {
|
|
@@ -876,6 +910,7 @@ export declare const hasAvailabilityError: ((state: IAppState) => boolean) & {
|
|
|
876
910
|
readonly loadingAvailability: boolean;
|
|
877
911
|
readonly availabilityError: unknown;
|
|
878
912
|
readonly firstLoaded: boolean;
|
|
913
|
+
readonly loadFailed: boolean;
|
|
879
914
|
readonly attributeHierarchiesChanged: boolean;
|
|
880
915
|
}) => boolean) & {
|
|
881
916
|
clearCache: () => void;
|
|
@@ -889,6 +924,7 @@ export declare const hasAvailabilityError: ((state: IAppState) => boolean) & {
|
|
|
889
924
|
readonly loadingAvailability: boolean;
|
|
890
925
|
readonly availabilityError: unknown;
|
|
891
926
|
readonly firstLoaded: boolean;
|
|
927
|
+
readonly loadFailed: boolean;
|
|
892
928
|
readonly attributeHierarchiesChanged: boolean;
|
|
893
929
|
}) & {
|
|
894
930
|
clearCache: () => void;
|
|
@@ -901,6 +937,7 @@ export declare const hasAvailabilityError: ((state: IAppState) => boolean) & {
|
|
|
901
937
|
readonly loadingAvailability: boolean;
|
|
902
938
|
readonly availabilityError: unknown;
|
|
903
939
|
readonly firstLoaded: boolean;
|
|
940
|
+
readonly loadFailed: boolean;
|
|
904
941
|
readonly attributeHierarchiesChanged: boolean;
|
|
905
942
|
};
|
|
906
943
|
memoizedResultFunc: ((resultFuncArgs_0: ICatalogState) => {
|
|
@@ -909,6 +946,7 @@ export declare const hasAvailabilityError: ((state: IAppState) => boolean) & {
|
|
|
909
946
|
readonly loadingAvailability: boolean;
|
|
910
947
|
readonly availabilityError: unknown;
|
|
911
948
|
readonly firstLoaded: boolean;
|
|
949
|
+
readonly loadFailed: boolean;
|
|
912
950
|
readonly attributeHierarchiesChanged: boolean;
|
|
913
951
|
}) & {
|
|
914
952
|
clearCache: () => void;
|
|
@@ -921,6 +959,7 @@ export declare const hasAvailabilityError: ((state: IAppState) => boolean) & {
|
|
|
921
959
|
readonly loadingAvailability: boolean;
|
|
922
960
|
readonly availabilityError: unknown;
|
|
923
961
|
readonly firstLoaded: boolean;
|
|
962
|
+
readonly loadFailed: boolean;
|
|
924
963
|
readonly attributeHierarchiesChanged: boolean;
|
|
925
964
|
};
|
|
926
965
|
dependencies: [typeof getCatalogState];
|
|
@@ -951,6 +990,96 @@ export declare const hasCatalogFirstLoaded: ((state: IAppState) => boolean) & {
|
|
|
951
990
|
readonly loadingAvailability: boolean;
|
|
952
991
|
readonly availabilityError: unknown;
|
|
953
992
|
readonly firstLoaded: boolean;
|
|
993
|
+
readonly loadFailed: boolean;
|
|
994
|
+
readonly attributeHierarchiesChanged: boolean;
|
|
995
|
+
}) => boolean;
|
|
996
|
+
memoizedResultFunc: ((resultFuncArgs_0: {
|
|
997
|
+
readonly loadingGroups: boolean;
|
|
998
|
+
readonly loadingItems: boolean;
|
|
999
|
+
readonly loadingAvailability: boolean;
|
|
1000
|
+
readonly availabilityError: unknown;
|
|
1001
|
+
readonly firstLoaded: boolean;
|
|
1002
|
+
readonly loadFailed: boolean;
|
|
1003
|
+
readonly attributeHierarchiesChanged: boolean;
|
|
1004
|
+
}) => boolean) & {
|
|
1005
|
+
clearCache: () => void;
|
|
1006
|
+
resultsCount: () => number;
|
|
1007
|
+
resetResultsCount: () => void;
|
|
1008
|
+
};
|
|
1009
|
+
lastResult: () => boolean;
|
|
1010
|
+
dependencies: [((state: IAppState) => {
|
|
1011
|
+
readonly loadingGroups: boolean;
|
|
1012
|
+
readonly loadingItems: boolean;
|
|
1013
|
+
readonly loadingAvailability: boolean;
|
|
1014
|
+
readonly availabilityError: unknown;
|
|
1015
|
+
readonly firstLoaded: boolean;
|
|
1016
|
+
readonly loadFailed: boolean;
|
|
1017
|
+
readonly attributeHierarchiesChanged: boolean;
|
|
1018
|
+
}) & {
|
|
1019
|
+
clearCache: () => void;
|
|
1020
|
+
resultsCount: () => number;
|
|
1021
|
+
resetResultsCount: () => void;
|
|
1022
|
+
} & {
|
|
1023
|
+
resultFunc: (resultFuncArgs_0: ICatalogState) => {
|
|
1024
|
+
readonly loadingGroups: boolean;
|
|
1025
|
+
readonly loadingItems: boolean;
|
|
1026
|
+
readonly loadingAvailability: boolean;
|
|
1027
|
+
readonly availabilityError: unknown;
|
|
1028
|
+
readonly firstLoaded: boolean;
|
|
1029
|
+
readonly loadFailed: boolean;
|
|
1030
|
+
readonly attributeHierarchiesChanged: boolean;
|
|
1031
|
+
};
|
|
1032
|
+
memoizedResultFunc: ((resultFuncArgs_0: ICatalogState) => {
|
|
1033
|
+
readonly loadingGroups: boolean;
|
|
1034
|
+
readonly loadingItems: boolean;
|
|
1035
|
+
readonly loadingAvailability: boolean;
|
|
1036
|
+
readonly availabilityError: unknown;
|
|
1037
|
+
readonly firstLoaded: boolean;
|
|
1038
|
+
readonly loadFailed: boolean;
|
|
1039
|
+
readonly attributeHierarchiesChanged: boolean;
|
|
1040
|
+
}) & {
|
|
1041
|
+
clearCache: () => void;
|
|
1042
|
+
resultsCount: () => number;
|
|
1043
|
+
resetResultsCount: () => void;
|
|
1044
|
+
};
|
|
1045
|
+
lastResult: () => {
|
|
1046
|
+
readonly loadingGroups: boolean;
|
|
1047
|
+
readonly loadingItems: boolean;
|
|
1048
|
+
readonly loadingAvailability: boolean;
|
|
1049
|
+
readonly availabilityError: unknown;
|
|
1050
|
+
readonly firstLoaded: boolean;
|
|
1051
|
+
readonly loadFailed: boolean;
|
|
1052
|
+
readonly attributeHierarchiesChanged: boolean;
|
|
1053
|
+
};
|
|
1054
|
+
dependencies: [typeof getCatalogState];
|
|
1055
|
+
recomputations: () => number;
|
|
1056
|
+
resetRecomputations: () => void;
|
|
1057
|
+
dependencyRecomputations: () => number;
|
|
1058
|
+
resetDependencyRecomputations: () => void;
|
|
1059
|
+
} & {
|
|
1060
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
1061
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
1062
|
+
}];
|
|
1063
|
+
recomputations: () => number;
|
|
1064
|
+
resetRecomputations: () => void;
|
|
1065
|
+
dependencyRecomputations: () => number;
|
|
1066
|
+
resetDependencyRecomputations: () => void;
|
|
1067
|
+
} & {
|
|
1068
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
1069
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
1070
|
+
};
|
|
1071
|
+
export declare const hasCatalogLoadFailed: ((state: IAppState) => boolean) & {
|
|
1072
|
+
clearCache: () => void;
|
|
1073
|
+
resultsCount: () => number;
|
|
1074
|
+
resetResultsCount: () => void;
|
|
1075
|
+
} & {
|
|
1076
|
+
resultFunc: (resultFuncArgs_0: {
|
|
1077
|
+
readonly loadingGroups: boolean;
|
|
1078
|
+
readonly loadingItems: boolean;
|
|
1079
|
+
readonly loadingAvailability: boolean;
|
|
1080
|
+
readonly availabilityError: unknown;
|
|
1081
|
+
readonly firstLoaded: boolean;
|
|
1082
|
+
readonly loadFailed: boolean;
|
|
954
1083
|
readonly attributeHierarchiesChanged: boolean;
|
|
955
1084
|
}) => boolean;
|
|
956
1085
|
memoizedResultFunc: ((resultFuncArgs_0: {
|
|
@@ -959,6 +1088,7 @@ export declare const hasCatalogFirstLoaded: ((state: IAppState) => boolean) & {
|
|
|
959
1088
|
readonly loadingAvailability: boolean;
|
|
960
1089
|
readonly availabilityError: unknown;
|
|
961
1090
|
readonly firstLoaded: boolean;
|
|
1091
|
+
readonly loadFailed: boolean;
|
|
962
1092
|
readonly attributeHierarchiesChanged: boolean;
|
|
963
1093
|
}) => boolean) & {
|
|
964
1094
|
clearCache: () => void;
|
|
@@ -972,6 +1102,7 @@ export declare const hasCatalogFirstLoaded: ((state: IAppState) => boolean) & {
|
|
|
972
1102
|
readonly loadingAvailability: boolean;
|
|
973
1103
|
readonly availabilityError: unknown;
|
|
974
1104
|
readonly firstLoaded: boolean;
|
|
1105
|
+
readonly loadFailed: boolean;
|
|
975
1106
|
readonly attributeHierarchiesChanged: boolean;
|
|
976
1107
|
}) & {
|
|
977
1108
|
clearCache: () => void;
|
|
@@ -984,6 +1115,7 @@ export declare const hasCatalogFirstLoaded: ((state: IAppState) => boolean) & {
|
|
|
984
1115
|
readonly loadingAvailability: boolean;
|
|
985
1116
|
readonly availabilityError: unknown;
|
|
986
1117
|
readonly firstLoaded: boolean;
|
|
1118
|
+
readonly loadFailed: boolean;
|
|
987
1119
|
readonly attributeHierarchiesChanged: boolean;
|
|
988
1120
|
};
|
|
989
1121
|
memoizedResultFunc: ((resultFuncArgs_0: ICatalogState) => {
|
|
@@ -992,6 +1124,7 @@ export declare const hasCatalogFirstLoaded: ((state: IAppState) => boolean) & {
|
|
|
992
1124
|
readonly loadingAvailability: boolean;
|
|
993
1125
|
readonly availabilityError: unknown;
|
|
994
1126
|
readonly firstLoaded: boolean;
|
|
1127
|
+
readonly loadFailed: boolean;
|
|
995
1128
|
readonly attributeHierarchiesChanged: boolean;
|
|
996
1129
|
}) & {
|
|
997
1130
|
clearCache: () => void;
|
|
@@ -1004,6 +1137,7 @@ export declare const hasCatalogFirstLoaded: ((state: IAppState) => boolean) & {
|
|
|
1004
1137
|
readonly loadingAvailability: boolean;
|
|
1005
1138
|
readonly availabilityError: unknown;
|
|
1006
1139
|
readonly firstLoaded: boolean;
|
|
1140
|
+
readonly loadFailed: boolean;
|
|
1007
1141
|
readonly attributeHierarchiesChanged: boolean;
|
|
1008
1142
|
};
|
|
1009
1143
|
dependencies: [typeof getCatalogState];
|
|
@@ -1063,6 +1197,7 @@ export declare const hasAttributeHierarchiesChanged: ((state: IAppState) => bool
|
|
|
1063
1197
|
readonly loadingAvailability: boolean;
|
|
1064
1198
|
readonly availabilityError: unknown;
|
|
1065
1199
|
readonly firstLoaded: boolean;
|
|
1200
|
+
readonly loadFailed: boolean;
|
|
1066
1201
|
readonly attributeHierarchiesChanged: boolean;
|
|
1067
1202
|
}) => boolean;
|
|
1068
1203
|
memoizedResultFunc: ((resultFuncArgs_0: {
|
|
@@ -1071,6 +1206,7 @@ export declare const hasAttributeHierarchiesChanged: ((state: IAppState) => bool
|
|
|
1071
1206
|
readonly loadingAvailability: boolean;
|
|
1072
1207
|
readonly availabilityError: unknown;
|
|
1073
1208
|
readonly firstLoaded: boolean;
|
|
1209
|
+
readonly loadFailed: boolean;
|
|
1074
1210
|
readonly attributeHierarchiesChanged: boolean;
|
|
1075
1211
|
}) => boolean) & {
|
|
1076
1212
|
clearCache: () => void;
|
|
@@ -1084,6 +1220,7 @@ export declare const hasAttributeHierarchiesChanged: ((state: IAppState) => bool
|
|
|
1084
1220
|
readonly loadingAvailability: boolean;
|
|
1085
1221
|
readonly availabilityError: unknown;
|
|
1086
1222
|
readonly firstLoaded: boolean;
|
|
1223
|
+
readonly loadFailed: boolean;
|
|
1087
1224
|
readonly attributeHierarchiesChanged: boolean;
|
|
1088
1225
|
}) & {
|
|
1089
1226
|
clearCache: () => void;
|
|
@@ -1096,6 +1233,7 @@ export declare const hasAttributeHierarchiesChanged: ((state: IAppState) => bool
|
|
|
1096
1233
|
readonly loadingAvailability: boolean;
|
|
1097
1234
|
readonly availabilityError: unknown;
|
|
1098
1235
|
readonly firstLoaded: boolean;
|
|
1236
|
+
readonly loadFailed: boolean;
|
|
1099
1237
|
readonly attributeHierarchiesChanged: boolean;
|
|
1100
1238
|
};
|
|
1101
1239
|
memoizedResultFunc: ((resultFuncArgs_0: ICatalogState) => {
|
|
@@ -1104,6 +1242,7 @@ export declare const hasAttributeHierarchiesChanged: ((state: IAppState) => bool
|
|
|
1104
1242
|
readonly loadingAvailability: boolean;
|
|
1105
1243
|
readonly availabilityError: unknown;
|
|
1106
1244
|
readonly firstLoaded: boolean;
|
|
1245
|
+
readonly loadFailed: boolean;
|
|
1107
1246
|
readonly attributeHierarchiesChanged: boolean;
|
|
1108
1247
|
}) & {
|
|
1109
1248
|
clearCache: () => void;
|
|
@@ -1116,6 +1255,7 @@ export declare const hasAttributeHierarchiesChanged: ((state: IAppState) => bool
|
|
|
1116
1255
|
readonly loadingAvailability: boolean;
|
|
1117
1256
|
readonly availabilityError: unknown;
|
|
1118
1257
|
readonly firstLoaded: boolean;
|
|
1258
|
+
readonly loadFailed: boolean;
|
|
1119
1259
|
readonly attributeHierarchiesChanged: boolean;
|
|
1120
1260
|
};
|
|
1121
1261
|
dependencies: [typeof getCatalogState];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"catalog_selector.d.ts","sourceRoot":"","sources":["../../../src/store/catalog/catalog_selector.ts"],"names":[],"mappings":"AAIA,OAAO,EACH,KAAK,wBAA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMhC,CAAC;AAEF,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAI5B,CAAC"}
|
|
@@ -5,7 +5,7 @@ import { enableHLL, enableUnavailableItemsVisibility } from "../../selectors/fea
|
|
|
5
5
|
import { getLocale } from "../../selectors/intl_selector.js";
|
|
6
6
|
import { DateDatasetsService } from "../../services/date_datasets_service.js";
|
|
7
7
|
import { getAvailableDateDatasets } from "../date_datasets/date_datasets_selectors.js";
|
|
8
|
-
import { catalogAttributeHierarchies, catalogDateHierarchies, catalogStateAvailableItemsUris, catalogStateFlags, catalogStateGroups, catalogStateItems, catalogStateParameters, catalogStateTooltipDetails, } from "./catalog_reducer.js";
|
|
8
|
+
import { catalogAttributeHierarchies, catalogDateHierarchies, catalogStateAvailableItemsUris, catalogStateDateRangeParameters, catalogStateFlags, catalogStateGroups, catalogStateItems, catalogStateParameters, catalogStateTooltipDetails, } from "./catalog_reducer.js";
|
|
9
9
|
const getCatalogState = (state) => state.data.catalog;
|
|
10
10
|
const getCatalogGroups = createSelector(getCatalogState, catalogStateGroups);
|
|
11
11
|
export const getSortedCatalogGroups = createSelector(getCatalogGroups, getLocale, (groups, locale) => {
|
|
@@ -19,6 +19,7 @@ export const getCatalogItems = createSelector(getCatalogState, catalogStateItems
|
|
|
19
19
|
export const getDateHierarchies = createSelector(getCatalogState, catalogDateHierarchies);
|
|
20
20
|
export const getAttributeHierarchies = createSelector(getCatalogState, catalogAttributeHierarchies);
|
|
21
21
|
export const getCatalogParameters = createSelector(getCatalogState, catalogStateParameters);
|
|
22
|
+
export const getCatalogDateRangeParameters = createSelector(getCatalogState, catalogStateDateRangeParameters);
|
|
22
23
|
export const getCatalogItemById = (id) => createSelector(getCatalogItems, (items) => items.find((item) => {
|
|
23
24
|
if (isCatalogAttribute(item)) {
|
|
24
25
|
return item.attribute.id === id || item.defaultDisplayForm.id === id;
|
|
@@ -99,6 +100,7 @@ export const isLoadingItems = (state) => !DateDatasetsService.isDateDatasetsLoad
|
|
|
99
100
|
export const isLoadingAvailability = createSelector(getCatalogFlags, (flags) => !!flags.loadingAvailability);
|
|
100
101
|
export const hasAvailabilityError = createSelector(getCatalogFlags, (flags) => !!flags.availabilityError);
|
|
101
102
|
export const hasCatalogFirstLoaded = createSelector(getCatalogFlags, (flags) => flags.firstLoaded);
|
|
103
|
+
export const hasCatalogLoadFailed = createSelector(getCatalogFlags, (flags) => flags.loadFailed);
|
|
102
104
|
export const getAllTooltipDetails = createSelector(getCatalogState, catalogStateTooltipDetails);
|
|
103
105
|
export const hasAttributeHierarchiesChanged = createSelector(getCatalogFlags, (flags) => !!flags.attributeHierarchiesChanged);
|
|
104
106
|
export const getItemTooltipDetails = (state, itemId) => {
|
|
@@ -1,11 +1,13 @@
|
|
|
1
|
-
import { type CatalogItem, type ICatalogAttributeHierarchy, type ICatalogDateAttributeHierarchy, type ICatalogGroup
|
|
1
|
+
import { type CatalogItem, type ICatalogAttributeHierarchy, type ICatalogDateAttributeHierarchy, type ICatalogGroup } from "@gooddata/sdk-model";
|
|
2
2
|
import { type IOrganizedCatalogTooltipDetails } from "../../typings/catalog.js";
|
|
3
|
-
|
|
3
|
+
import { type ICatalogState } from "./catalog_types.js";
|
|
4
|
+
export type CatalogAction = ISetCatalogItemsAction | ISetCatalogGroupsAction | ISetCatalogLoadingFlagAction | ISetCatalogItemsAvailabilityAction | ISetCatalogAvailabilityErrorFlagAction | ISetCatalogFirstLoadedFlagAction | ISetCatalogLoadFailedFlagAction | ISetItemTooltipDetailsAction | ISetUpdatedItemsCountAction | IResetTooltipDetailsAction | ISetIsWorkspaceEmptyAction | IToggleUnavailableItemsVisibilityAction | ISetDateHierarchies | ISetAttributeHierarchies | ISetCatalogAttributeHierarchiesHasChanged | ISetCatalogParameters;
|
|
4
5
|
export declare enum CatalogActionTypeKeys {
|
|
5
6
|
STORE_SET_CATALOG_ITEMS = "STORE/SET_CATALOG_ITEMS",
|
|
6
7
|
STORE_SET_CATALOG_GROUPS = "STORE/SET_CATALOG_GROUPS",
|
|
7
8
|
STORE_SET_CATALOG_ITEMS_AVAILABILITY = "STORE/SET_CATALOG_ITEMS_AVAILABILITY",
|
|
8
9
|
STORE_SET_CATALOG_FIRST_LOADED = "STORE/SET_CATALOG_FIRST_LOADED",
|
|
10
|
+
STORE_SET_CATALOG_LOAD_FAILED = "STORE/SET_CATALOG_LOAD_FAILED",
|
|
9
11
|
STORE_SET_LOADING_ITEMS = "STORE/SET_LOADING_ITEMS",
|
|
10
12
|
STORE_SET_LOADING_GROUPS = "STORE/SET_LOADING_GROUPS",
|
|
11
13
|
STORE_SET_LOADING_AVAILABILITY = "STORE/SET_LOADING_AVAILABILITY",
|
|
@@ -59,6 +61,10 @@ export declare const setCatalogFirstLoaded: import("@reduxjs/toolkit").ActionCre
|
|
|
59
61
|
firstLoaded: boolean;
|
|
60
62
|
}, CatalogActionTypeKeys.STORE_SET_CATALOG_FIRST_LOADED, never, never>;
|
|
61
63
|
export type ISetCatalogFirstLoadedFlagAction = ReturnType<typeof setCatalogFirstLoaded>;
|
|
64
|
+
export declare const setCatalogLoadFailed: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[loadFailed: boolean], {
|
|
65
|
+
loadFailed: boolean;
|
|
66
|
+
}, CatalogActionTypeKeys.STORE_SET_CATALOG_LOAD_FAILED, never, never>;
|
|
67
|
+
export type ISetCatalogLoadFailedFlagAction = ReturnType<typeof setCatalogLoadFailed>;
|
|
62
68
|
export declare const setItemTooltipDetails: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[itemId: string, details: IOrganizedCatalogTooltipDetails], {
|
|
63
69
|
itemId: string;
|
|
64
70
|
details: IOrganizedCatalogTooltipDetails;
|
|
@@ -86,8 +92,6 @@ export declare const setAttributeHierarchies: import("@reduxjs/toolkit").ActionC
|
|
|
86
92
|
attributeHierarchies: ICatalogAttributeHierarchy[];
|
|
87
93
|
}, CatalogActionTypeKeys.STORE_SET_ATTRIBUTE_HIERARCHIES, never, never>;
|
|
88
94
|
export type ISetAttributeHierarchies = ReturnType<typeof setAttributeHierarchies>;
|
|
89
|
-
export declare const setCatalogParameters: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[
|
|
90
|
-
parameters: readonly IScalarParameterMetadataObject[];
|
|
91
|
-
}, CatalogActionTypeKeys.STORE_SET_CATALOG_PARAMETERS, never, never>;
|
|
95
|
+
export declare const setCatalogParameters: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[lists: Pick<ICatalogState, "dateRangeParameters" | "parameters">], Pick<ICatalogState, "dateRangeParameters" | "parameters">, CatalogActionTypeKeys.STORE_SET_CATALOG_PARAMETERS, never, never>;
|
|
92
96
|
export type ISetCatalogParameters = ReturnType<typeof setCatalogParameters>;
|
|
93
97
|
//# sourceMappingURL=catalog_store_actions.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"catalog_store_actions.d.ts","sourceRoot":"","sources":["../../../src/store/catalog/catalog_store_actions.ts"],"names":[],"mappings":"AAIA,OAAO,EACH,KAAK,WAAW,EAChB,KAAK,0BAA0B,EAC/B,KAAK,8BAA8B,EACnC,KAAK,aAAa,
|
|
1
|
+
{"version":3,"file":"catalog_store_actions.d.ts","sourceRoot":"","sources":["../../../src/store/catalog/catalog_store_actions.ts"],"names":[],"mappings":"AAIA,OAAO,EACH,KAAK,WAAW,EAChB,KAAK,0BAA0B,EAC/B,KAAK,8BAA8B,EACnC,KAAK,aAAa,EACrB,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,KAAK,+BAA+B,EAAE,MAAM,0BAA0B,CAAC;AAEhF,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAExD,MAAM,MAAM,aAAa,GACnB,sBAAsB,GACtB,uBAAuB,GACvB,4BAA4B,GAC5B,kCAAkC,GA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AG,UAAU,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAElF,eAAO,MAAM,oBAAoB,8PAGhC,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG,UAAU,CAAC,OAAO,oBAAoB,CAAC,CAAC"}
|
|
@@ -6,6 +6,7 @@ export var CatalogActionTypeKeys;
|
|
|
6
6
|
CatalogActionTypeKeys["STORE_SET_CATALOG_GROUPS"] = "STORE/SET_CATALOG_GROUPS";
|
|
7
7
|
CatalogActionTypeKeys["STORE_SET_CATALOG_ITEMS_AVAILABILITY"] = "STORE/SET_CATALOG_ITEMS_AVAILABILITY";
|
|
8
8
|
CatalogActionTypeKeys["STORE_SET_CATALOG_FIRST_LOADED"] = "STORE/SET_CATALOG_FIRST_LOADED";
|
|
9
|
+
CatalogActionTypeKeys["STORE_SET_CATALOG_LOAD_FAILED"] = "STORE/SET_CATALOG_LOAD_FAILED";
|
|
9
10
|
CatalogActionTypeKeys["STORE_SET_LOADING_ITEMS"] = "STORE/SET_LOADING_ITEMS";
|
|
10
11
|
CatalogActionTypeKeys["STORE_SET_LOADING_GROUPS"] = "STORE/SET_LOADING_GROUPS";
|
|
11
12
|
CatalogActionTypeKeys["STORE_SET_LOADING_AVAILABILITY"] = "STORE/SET_LOADING_AVAILABILITY";
|
|
@@ -29,6 +30,7 @@ export const setLoadingAvailability = createAction(CatalogActionTypeKeys.STORE_S
|
|
|
29
30
|
export const setAttributeHierarchiesChanged = createAction(CatalogActionTypeKeys.STORE_SET_ATTRIBUTE_HIERARCHIES_CHANGED, (hasChanged) => ({ payload: { attributeHierarchiesChanged: hasChanged } }));
|
|
30
31
|
export const setAvailabilityError = createAction(CatalogActionTypeKeys.STORE_SET_AVAILABILITY_ERROR, (error) => ({ payload: { error } }));
|
|
31
32
|
export const setCatalogFirstLoaded = createAction(CatalogActionTypeKeys.STORE_SET_CATALOG_FIRST_LOADED, (firstLoaded) => ({ payload: { firstLoaded } }));
|
|
33
|
+
export const setCatalogLoadFailed = createAction(CatalogActionTypeKeys.STORE_SET_CATALOG_LOAD_FAILED, (loadFailed) => ({ payload: { loadFailed } }));
|
|
32
34
|
export const setItemTooltipDetails = createAction(CatalogActionTypeKeys.STORE_SET_TOOLTIP_DETAILS, (itemId, details) => ({ payload: { itemId, details } }));
|
|
33
35
|
export const setUpdatedItemsCount = createAction(CatalogActionTypeKeys.STORE_SET_UPDATED_ITEMS_COUNT, (count) => ({ payload: { count } }));
|
|
34
36
|
export const resetTooltipDetails = createAction(CatalogActionTypeKeys.STORE_RESET_TOOLTIP_DETAILS);
|
|
@@ -36,4 +38,4 @@ export const setIsWorkspaceEmpty = createAction(CatalogActionTypeKeys.STORE_SET_
|
|
|
36
38
|
export const toggleUnavailableItemsVisibility = createAction(CatalogActionTypeKeys.STORE_TOGGLE_UNAVAILABLE_ITEMS_VISIBILITY, (showUnavailableItems) => ({ payload: { showUnavailableItems } }));
|
|
37
39
|
export const setDateHierarchies = createAction(CatalogActionTypeKeys.STORE_SET_DATE_HIERARCHIES, (dateHierarchies) => ({ payload: { dateHierarchies } }));
|
|
38
40
|
export const setAttributeHierarchies = createAction(CatalogActionTypeKeys.STORE_SET_ATTRIBUTE_HIERARCHIES, (attributeHierarchies) => ({ payload: { attributeHierarchies } }));
|
|
39
|
-
export const setCatalogParameters = createAction(CatalogActionTypeKeys.STORE_SET_CATALOG_PARAMETERS, (
|
|
41
|
+
export const setCatalogParameters = createAction(CatalogActionTypeKeys.STORE_SET_CATALOG_PARAMETERS, (lists) => ({ payload: lists }));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type CatalogItem, type ICatalogAttributeHierarchy, type ICatalogDateAttributeHierarchy, type ICatalogGroup, type IScalarParameterMetadataObject } from "@gooddata/sdk-model";
|
|
1
|
+
import { type CatalogItem, type ICatalogAttributeHierarchy, type ICatalogDateAttributeHierarchy, type ICatalogGroup, type IDateRangeParameterMetadataObject, type IScalarParameterMetadataObject } from "@gooddata/sdk-model";
|
|
2
2
|
import { type IOrganizedCatalogTooltipDetails } from "../../typings/catalog.js";
|
|
3
3
|
export interface ICatalogState {
|
|
4
4
|
readonly items: ReadonlyArray<CatalogItem>;
|
|
@@ -12,6 +12,8 @@ export interface ICatalogState {
|
|
|
12
12
|
/** the caught availability error — only its truthiness is read */
|
|
13
13
|
readonly availabilityError: unknown;
|
|
14
14
|
readonly firstLoaded: boolean;
|
|
15
|
+
/** the last catalog load failed; reset when a new load starts */
|
|
16
|
+
readonly loadFailed: boolean;
|
|
15
17
|
readonly attributeHierarchiesChanged: boolean;
|
|
16
18
|
};
|
|
17
19
|
tooltipDetails: {
|
|
@@ -22,5 +24,6 @@ export interface ICatalogState {
|
|
|
22
24
|
readonly dateHierarchies: ReadonlyArray<ICatalogDateAttributeHierarchy>;
|
|
23
25
|
readonly attributeHierarchies: ReadonlyArray<ICatalogAttributeHierarchy>;
|
|
24
26
|
readonly parameters: ReadonlyArray<IScalarParameterMetadataObject>;
|
|
27
|
+
readonly dateRangeParameters: ReadonlyArray<IDateRangeParameterMetadataObject>;
|
|
25
28
|
}
|
|
26
29
|
//# sourceMappingURL=catalog_types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"catalog_types.d.ts","sourceRoot":"","sources":["../../../src/store/catalog/catalog_types.ts"],"names":[],"mappings":"AAEA,OAAO,EACH,KAAK,WAAW,EAChB,KAAK,0BAA0B,EAC/B,KAAK,8BAA8B,EACnC,KAAK,aAAa,EAClB,KAAK,8BAA8B,EACtC,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,KAAK,+BAA+B,EAAE,MAAM,0BAA0B,CAAC;AAEhF,MAAM,WAAW,aAAa;IAC1B,QAAQ,CAAC,KAAK,EAAE,aAAa,CAAC,WAAW,CAAC,CAAC;IAC3C,QAAQ,CAAC,MAAM,EAAE,aAAa,CAAC,aAAa,CAAC,CAAC;IAC9C,QAAQ,CAAC,kBAAkB,EAAE,aAAa,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC;IAC1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G,IAAI,CAAC;IAC1D,QAAQ,CAAC,iBAAiB,EAAE,MAAM,CAAC;IACnC,QAAQ,CAAC,KAAK,EAAE;QACZ,QAAQ,CAAC,aAAa,EAAE,OAAO,CAAC;QAChC,QAAQ,CAAC,YAAY,EAAE,OAAO,CAAC;QAC/B,QAAQ,CAAC,mBAAmB,EAAE,OAAO,CAAC;QACtC,kEAAkE;QAClE,QAAQ,CAAC,iBAAiB,EAAE,OAAO,CAAC;QACpC,QAAQ,CAAC,WAAW,EAAE,OAAO,CAAC;QAC9B,iEAAiE;QACjE,QAAQ,CAAC,UAAU,EAAE,OAAO,CAAC;QAC7B,QAAQ,CAAC,2BAA2B,EAAE,OAAO,CAAC;KACjD,CAAC;IACF,cAAc,EAAE;QACZ,CAAC,cAAc,EAAE,MAAM,GAAG,+BAA+B,CAAC;KAC7D,CAAC;IACF,gBAAgB,EAAE,OAAO,CAAC;IAC1B,oBAAoB,EAAE,OAAO,CAAC;IAC9B,QAAQ,CAAC,eAAe,EAAE,aAAa,CAAC,8BAA8B,CAAC,CAAC;IACxE,QAAQ,CAAC,oBAAoB,EAAE,aAAa,CAAC,0BAA0B,CAAC,CAAC;IACzE,QAAQ,CAAC,UAAU,EAAE,aAAa,CAAC,8BAA8B,CAAC,CAAC;IACnE,QAAQ,CAAC,mBAAmB,EAAE,aAAa,CAAC,iCAAiC,CAAC,CAAC;CAClF"}
|
|
@@ -6,7 +6,7 @@ import { type IDateDatasetRefWithGranularities } from "../../typings/datasets.js
|
|
|
6
6
|
import { type ICatalogEntry } from "../../typings/state_objects.js";
|
|
7
7
|
import { type IRefPointFiltersBucket } from "../reference_point/reference_point_state.js";
|
|
8
8
|
import { type IFilterBarState } from "./filter_bar_state.js";
|
|
9
|
-
import { type EmptyDateValuesFilterMode, type IAttributeElement, type IAttributeFilter, type IAttributeFilterConfig, type IDateFilter, type IDateFilterConfig, type IFilter, type IMeasureValueFilter, type IRankingFilter, type TextModeFilterData } from "./filter_bar_types.js";
|
|
9
|
+
import { type EmptyDateValuesFilterMode, type IAttributeElement, type IAttributeFilter, type IAttributeFilterConfig, type IDateFilter, type IDateFilterConfig, type IFilter, type IMeasureValueFilter, type IParameterizedDateFilterConfig, type IRankingFilter, type TextModeFilterData } from "./filter_bar_types.js";
|
|
10
10
|
import { type IParameterFilter } from "./parameter_filter_types.js";
|
|
11
11
|
/**
|
|
12
12
|
* All a date-dataset attribute has to expose for the additional-date-filter matching: the display
|
|
@@ -89,7 +89,7 @@ export declare const setParameterItems: (filterBar: IFilterBarState, parameterIt
|
|
|
89
89
|
export declare const setMigratedAdditionalFilters: (filterBar: IFilterBarState, filterLocalIdentifiers: string[]) => IFilterBarState;
|
|
90
90
|
export declare const updateDateFilter: (filterBar: IFilterBarState, { localIdentifier, filterConfig, overTimeComparisonType, dateDatasetRef, emptyDateValuesFilter, }: {
|
|
91
91
|
localIdentifier: string;
|
|
92
|
-
filterConfig?: IDateFilterConfig;
|
|
92
|
+
filterConfig?: IDateFilterConfig | IParameterizedDateFilterConfig;
|
|
93
93
|
overTimeComparisonType?: OverTimeComparisonType;
|
|
94
94
|
dateDatasetRef?: ObjRef;
|
|
95
95
|
emptyDateValuesFilter?: EmptyDateValuesFilterMode;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filter_bar_helpers.d.ts","sourceRoot":"","sources":["../../../src/store/filter_bar/filter_bar_helpers.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,uBAAuB,EAAE,KAAK,MAAM,EAA0B,MAAM,qBAAqB,CAAC;AACxG,OAAO,EAAE,KAAK,sBAAsB,EAAE,MAAM,kBAAkB,CAAC;AAC/D,OAAO,EACH,KAAK,QAAQ,EAShB,MAAM,+BAA+B,CAAC;AAMvC,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAChE,OAAO,EACH,KAAK,gCAAgC,EAExC,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,gCA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M,0BAA0B,cACxB,eAAe,qBACP,MAAM,iCACM,gCAAgC,EAAE,KAClE,eA0BF,CAAC;AAmHF;;;;;;GAMG;AACH,eAAO,MAAM,kCAAkC,4BAClB,QAAQ,GAAG,sBAAsB,KAC3D,aAAa,CAAC,OAAO,CA2BvB,CAAC"}
|
|
@@ -6,7 +6,7 @@ import { isAttributeFilter, isDateFilter, isMeasureValueFilter, } from "@gooddat
|
|
|
6
6
|
import { _isEqual } from "@gooddata/util";
|
|
7
7
|
import { generateBucketItemIdentifier } from "../../models/bucket_item_identifier.js";
|
|
8
8
|
import { DATE_DATASET_ATTRIBUTE } from "../../models/date_item.js";
|
|
9
|
-
import { FilterBar, normalizeMeasureValueFilterConditions, } from "./filter_bar_types.js";
|
|
9
|
+
import { FilterBar, isParameterizedDateFilterConfig, normalizeMeasureValueFilterConditions, } from "./filter_bar_types.js";
|
|
10
10
|
/**
|
|
11
11
|
* Finds the best matching bucket measure for a catalog metric.
|
|
12
12
|
* Prefers master measures over derived ones. When multiple masters match, returns the first one.
|
|
@@ -407,19 +407,28 @@ export const resetAdditionalDateFilters = (filterBar, newDateDatasetRef, dateDat
|
|
|
407
407
|
return setMigratedAdditionalFilters(updatedFilterBar, union(filterBar.migratedAdditionalFilters, removedFilters));
|
|
408
408
|
};
|
|
409
409
|
// --- the extended-reference-point filter converters ----------------------------------------------
|
|
410
|
+
const convertToDateFilterConfig = (interval) => {
|
|
411
|
+
if (!interval) {
|
|
412
|
+
return undefined;
|
|
413
|
+
}
|
|
414
|
+
// a period passes through the visualization as it is: rebuilding it from the range fields would drop the
|
|
415
|
+
// period's ref and the stored local identifier
|
|
416
|
+
if (isParameterizedDateFilterConfig(interval)) {
|
|
417
|
+
return interval;
|
|
418
|
+
}
|
|
419
|
+
return {
|
|
420
|
+
interval: interval.interval,
|
|
421
|
+
name: interval.name,
|
|
422
|
+
granularity: interval.granularity,
|
|
423
|
+
type: interval.type,
|
|
424
|
+
...(interval.boundedFilter ? { boundedFilter: interval.boundedFilter } : {}),
|
|
425
|
+
};
|
|
426
|
+
};
|
|
410
427
|
const convertToDateFilter = (filter, localIdentifier, dateDatasetRef) => ({
|
|
411
428
|
localIdentifier,
|
|
412
429
|
type: "date",
|
|
413
430
|
cacheItemIdentifier: filter.attribute,
|
|
414
|
-
filterConfig: filter.interval
|
|
415
|
-
? {
|
|
416
|
-
interval: filter.interval.interval,
|
|
417
|
-
name: filter.interval.name,
|
|
418
|
-
granularity: filter.interval.granularity,
|
|
419
|
-
type: filter.interval.type,
|
|
420
|
-
...(filter.interval.boundedFilter ? { boundedFilter: filter.interval.boundedFilter } : {}),
|
|
421
|
-
}
|
|
422
|
-
: undefined,
|
|
431
|
+
filterConfig: convertToDateFilterConfig(filter.interval),
|
|
423
432
|
overTimeComparisonType: filter.overTimeComparisonType,
|
|
424
433
|
emptyDateValuesFilter: filter.emptyDateValuesFilter,
|
|
425
434
|
dateDatasetRef,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filter_bar_selector.d.ts","sourceRoot":"","sources":["../../../src/store/filter_bar/filter_bar_selector.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,sBAAsB,EAAkB,MAAM,qBAAqB,CAAC;AAQlF,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,aAAa,CAAC;AAgB7C,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAC7D,OAAO,EAEH,KAAK,qBAAqB,EAC1B,KAAK,gBAAgB,EACrB,KAAK,WAAW,EAChB,KAAK,OAAO,EACZ,KAAK,gBAAgB,EACrB,KAAK,mBAAmB,EACxB,KAAK,cAAc,
|
|
1
|
+
{"version":3,"file":"filter_bar_selector.d.ts","sourceRoot":"","sources":["../../../src/store/filter_bar/filter_bar_selector.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,sBAAsB,EAAkB,MAAM,qBAAqB,CAAC;AAQlF,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,aAAa,C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ChB,CAAC;AAEvD,eAAO,MAAM,uBAAuB,UAAW,SAAS,KAAG,OACT,CAAC"}
|
|
@@ -5,7 +5,7 @@ import { ALL_TIME } from "../../constants/presets.js";
|
|
|
5
5
|
import { DateDatasetsMetaService } from "../../services/date_datasets_meta_service.js";
|
|
6
6
|
import { getExtendedReferencePointFilters, getUiConfigBuckets, } from "../reference_point/extended_reference_point_selectors.js";
|
|
7
7
|
import { dateFilterExistsIn, findAttributeFilter, findDateFilter, findDateFilterIndex, findFirstDateFilter, findMeasureValueFilter, findMeasureValueFilterForMeasure, findMeasureValueFilters, findRankingFilter, flattenDateDatasetAttributes, pickAdditionalDateAttributeFilters, removeAdditionalDateAttributeFilters, } from "./filter_bar_helpers.js";
|
|
8
|
-
import { FilterBar, } from "./filter_bar_types.js";
|
|
8
|
+
import { FilterBar, isParameterizedDateFilterConfig, } from "./filter_bar_types.js";
|
|
9
9
|
import { isParameterOverridden } from "./parameter_filter_types.js";
|
|
10
10
|
export const getFilterBarState = (state) => state.data.filterBar;
|
|
11
11
|
export const getFilterItems = createSelector(getFilterBarState, (filterBarState) => filterBarState.items);
|
|
@@ -14,7 +14,8 @@ export const getActiveParameterRefKeys = createSelector(getParameterFilters, (fi
|
|
|
14
14
|
export const getAttributeFilterConfigs = createSelector(getFilterBarState, (filterBarState) => filterBarState.attributeFilterConfigs ?? {});
|
|
15
15
|
export const getAdditionalDateAttributeFilters = createSelector(getFilterItems, DateDatasetsMetaService.getDateDatasetsMetaItems, (filterItems, dateDatasetItems) => pickAdditionalDateAttributeFilters(filterItems, flattenDateDatasetAttributes(dateDatasetItems)));
|
|
16
16
|
export const getFilterItemsWithoutAdditionalDateAttributes = createSelector(getFilterItems, DateDatasetsMetaService.getDateDatasetsMetaItems, (filterItems, dateDatasetItems) => removeAdditionalDateAttributeFilters(filterItems, flattenDateDatasetAttributes(dateDatasetItems)));
|
|
17
|
-
const isDateFilterSetUp = (filter) => filter.filterConfig
|
|
17
|
+
const isDateFilterSetUp = (filter) => isParameterizedDateFilterConfig(filter.filterConfig) ||
|
|
18
|
+
(filter.filterConfig && filter.filterConfig.name !== ALL_TIME);
|
|
18
19
|
const isMeasureValueFilterSetUp = (filter) => (filter.conditions?.length ?? 0) > 0;
|
|
19
20
|
const isAttributeFilterSetUp = (filter) => filter.textModeFilter !== undefined ||
|
|
20
21
|
(filter.filterConfig && filter.filterConfig.selectedElements.length > 0);
|