@gooddata/sdk-ui-analytical-designer 11.70.0-alpha.3 → 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.map +1 -1
- package/esm/components/buckets/MeasureDateFilterPicker.js +4 -3
- package/esm/components/buckets/MeasureDateFilterTitle.d.ts.map +1 -1
- package/esm/components/buckets/MeasureDateFilterTitle.js +5 -2
- 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/Buttons/applyButtonHook.d.ts +1 -2
- package/esm/components/filterBar/dateFilter/Buttons/applyButtonHook.d.ts.map +1 -1
- package/esm/components/filterBar/dateFilter/Buttons/applyButtonHook.js +10 -9
- package/esm/components/filterBar/dateFilter/DateFilter.d.ts.map +1 -1
- package/esm/components/filterBar/dateFilter/DateFilter.js +16 -8
- 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.map +1 -1
- package/esm/components/filterBar/dateFilter/FilterButton/SelectedPresetName.js +8 -5
- 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 +4 -1
- package/esm/models/date_filter.d.ts.map +1 -1
- package/esm/models/date_filter.js +10 -2
- package/esm/models/decorated_bucket_item.d.ts.map +1 -1
- package/esm/models/decorated_bucket_item.js +1 -1
- 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 +3 -1
- package/esm/models/metadata.d.ts.map +1 -1
- package/esm/models/metadata.js +99 -17
- 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/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 +5 -0
- package/esm/sagas/catalog/catalog_saga.d.ts.map +1 -1
- package/esm/sagas/catalog/catalog_saga.js +3 -1
- 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/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/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 +34 -10
- package/esm/selectors/report_visualization_selector.d.ts.map +1 -1
- 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.map +1 -1
- package/esm/store/catalog/catalog_reducer.js +7 -0
- package/esm/store/catalog/catalog_selector.d.ts +119 -103
- package/esm/store/catalog/catalog_selector.d.ts.map +1 -1
- package/esm/store/catalog/catalog_selector.js +2 -4
- package/esm/store/catalog/catalog_store_actions.d.ts +6 -1
- package/esm/store/catalog/catalog_store_actions.d.ts.map +1 -1
- package/esm/store/catalog/catalog_store_actions.js +2 -0
- package/esm/store/catalog/catalog_types.d.ts +2 -0
- 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/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 +4 -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/sdkModelToADRep/FilterConverter.d.ts.map +1 -1
- package/esm/utils/sdkModelToADRep/FilterConverter.js +12 -1
- package/package.json +21 -21
|
@@ -172,109 +172,6 @@ export declare const getCatalogDateRangeParameters: ((state: IAppState) => reado
|
|
|
172
172
|
memoize: typeof import("reselect").weakMapMemoize;
|
|
173
173
|
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
174
174
|
};
|
|
175
|
-
export declare const getCatalogDateRangeParameterByRef: (ref: ObjRef) => ((state: IAppState) => import("@gooddata/sdk-model").IDateRangeParameterMetadataObject | undefined) & {
|
|
176
|
-
clearCache: () => void;
|
|
177
|
-
resultsCount: () => number;
|
|
178
|
-
resetResultsCount: () => void;
|
|
179
|
-
} & {
|
|
180
|
-
resultFunc: (resultFuncArgs_0: readonly import("@gooddata/sdk-model").IDateRangeParameterMetadataObject[]) => import("@gooddata/sdk-model").IDateRangeParameterMetadataObject | undefined;
|
|
181
|
-
memoizedResultFunc: ((resultFuncArgs_0: readonly import("@gooddata/sdk-model").IDateRangeParameterMetadataObject[]) => import("@gooddata/sdk-model").IDateRangeParameterMetadataObject | undefined) & {
|
|
182
|
-
clearCache: () => void;
|
|
183
|
-
resultsCount: () => number;
|
|
184
|
-
resetResultsCount: () => void;
|
|
185
|
-
};
|
|
186
|
-
lastResult: () => import("@gooddata/sdk-model").IDateRangeParameterMetadataObject | undefined;
|
|
187
|
-
dependencies: [((state: IAppState) => readonly import("@gooddata/sdk-model").IDateRangeParameterMetadataObject[]) & {
|
|
188
|
-
clearCache: () => void;
|
|
189
|
-
resultsCount: () => number;
|
|
190
|
-
resetResultsCount: () => void;
|
|
191
|
-
} & {
|
|
192
|
-
resultFunc: (resultFuncArgs_0: ICatalogState) => readonly import("@gooddata/sdk-model").IDateRangeParameterMetadataObject[];
|
|
193
|
-
memoizedResultFunc: ((resultFuncArgs_0: ICatalogState) => readonly import("@gooddata/sdk-model").IDateRangeParameterMetadataObject[]) & {
|
|
194
|
-
clearCache: () => void;
|
|
195
|
-
resultsCount: () => number;
|
|
196
|
-
resetResultsCount: () => void;
|
|
197
|
-
};
|
|
198
|
-
lastResult: () => readonly import("@gooddata/sdk-model").IDateRangeParameterMetadataObject[];
|
|
199
|
-
dependencies: [typeof getCatalogState];
|
|
200
|
-
recomputations: () => number;
|
|
201
|
-
resetRecomputations: () => void;
|
|
202
|
-
dependencyRecomputations: () => number;
|
|
203
|
-
resetDependencyRecomputations: () => void;
|
|
204
|
-
} & {
|
|
205
|
-
memoize: typeof import("reselect").weakMapMemoize;
|
|
206
|
-
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
207
|
-
}];
|
|
208
|
-
recomputations: () => number;
|
|
209
|
-
resetRecomputations: () => void;
|
|
210
|
-
dependencyRecomputations: () => number;
|
|
211
|
-
resetDependencyRecomputations: () => void;
|
|
212
|
-
} & {
|
|
213
|
-
memoize: typeof import("reselect").weakMapMemoize;
|
|
214
|
-
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
215
|
-
};
|
|
216
|
-
/** Title of the date range parameter `ref` points to, with the id fallbacks of `getParameterTitle`. */
|
|
217
|
-
export declare const getCatalogDateRangeParameterTitle: (ref: ObjRef) => ((state: IAppState) => string) & {
|
|
218
|
-
clearCache: () => void;
|
|
219
|
-
resultsCount: () => number;
|
|
220
|
-
resetResultsCount: () => void;
|
|
221
|
-
} & {
|
|
222
|
-
resultFunc: (resultFuncArgs_0: import("@gooddata/sdk-model").IDateRangeParameterMetadataObject | undefined) => string;
|
|
223
|
-
memoizedResultFunc: ((resultFuncArgs_0: import("@gooddata/sdk-model").IDateRangeParameterMetadataObject | undefined) => string) & {
|
|
224
|
-
clearCache: () => void;
|
|
225
|
-
resultsCount: () => number;
|
|
226
|
-
resetResultsCount: () => void;
|
|
227
|
-
};
|
|
228
|
-
lastResult: () => string;
|
|
229
|
-
dependencies: [((state: IAppState) => import("@gooddata/sdk-model").IDateRangeParameterMetadataObject | undefined) & {
|
|
230
|
-
clearCache: () => void;
|
|
231
|
-
resultsCount: () => number;
|
|
232
|
-
resetResultsCount: () => void;
|
|
233
|
-
} & {
|
|
234
|
-
resultFunc: (resultFuncArgs_0: readonly import("@gooddata/sdk-model").IDateRangeParameterMetadataObject[]) => import("@gooddata/sdk-model").IDateRangeParameterMetadataObject | undefined;
|
|
235
|
-
memoizedResultFunc: ((resultFuncArgs_0: readonly import("@gooddata/sdk-model").IDateRangeParameterMetadataObject[]) => import("@gooddata/sdk-model").IDateRangeParameterMetadataObject | undefined) & {
|
|
236
|
-
clearCache: () => void;
|
|
237
|
-
resultsCount: () => number;
|
|
238
|
-
resetResultsCount: () => void;
|
|
239
|
-
};
|
|
240
|
-
lastResult: () => import("@gooddata/sdk-model").IDateRangeParameterMetadataObject | undefined;
|
|
241
|
-
dependencies: [((state: IAppState) => readonly import("@gooddata/sdk-model").IDateRangeParameterMetadataObject[]) & {
|
|
242
|
-
clearCache: () => void;
|
|
243
|
-
resultsCount: () => number;
|
|
244
|
-
resetResultsCount: () => void;
|
|
245
|
-
} & {
|
|
246
|
-
resultFunc: (resultFuncArgs_0: ICatalogState) => readonly import("@gooddata/sdk-model").IDateRangeParameterMetadataObject[];
|
|
247
|
-
memoizedResultFunc: ((resultFuncArgs_0: ICatalogState) => readonly import("@gooddata/sdk-model").IDateRangeParameterMetadataObject[]) & {
|
|
248
|
-
clearCache: () => void;
|
|
249
|
-
resultsCount: () => number;
|
|
250
|
-
resetResultsCount: () => void;
|
|
251
|
-
};
|
|
252
|
-
lastResult: () => readonly import("@gooddata/sdk-model").IDateRangeParameterMetadataObject[];
|
|
253
|
-
dependencies: [typeof getCatalogState];
|
|
254
|
-
recomputations: () => number;
|
|
255
|
-
resetRecomputations: () => void;
|
|
256
|
-
dependencyRecomputations: () => number;
|
|
257
|
-
resetDependencyRecomputations: () => void;
|
|
258
|
-
} & {
|
|
259
|
-
memoize: typeof import("reselect").weakMapMemoize;
|
|
260
|
-
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
261
|
-
}];
|
|
262
|
-
recomputations: () => number;
|
|
263
|
-
resetRecomputations: () => void;
|
|
264
|
-
dependencyRecomputations: () => number;
|
|
265
|
-
resetDependencyRecomputations: () => void;
|
|
266
|
-
} & {
|
|
267
|
-
memoize: typeof import("reselect").weakMapMemoize;
|
|
268
|
-
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
269
|
-
}];
|
|
270
|
-
recomputations: () => number;
|
|
271
|
-
resetRecomputations: () => void;
|
|
272
|
-
dependencyRecomputations: () => number;
|
|
273
|
-
resetDependencyRecomputations: () => void;
|
|
274
|
-
} & {
|
|
275
|
-
memoize: typeof import("reselect").weakMapMemoize;
|
|
276
|
-
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
277
|
-
};
|
|
278
175
|
export declare const getCatalogItemById: (id: string) => ((state: IAppState) => CatalogItem | undefined) & {
|
|
279
176
|
clearCache: () => void;
|
|
280
177
|
resultsCount: () => number;
|
|
@@ -825,6 +722,7 @@ export declare const isLoadingGroups: ((state: IAppState) => boolean) & {
|
|
|
825
722
|
readonly loadingAvailability: boolean;
|
|
826
723
|
readonly availabilityError: unknown;
|
|
827
724
|
readonly firstLoaded: boolean;
|
|
725
|
+
readonly loadFailed: boolean;
|
|
828
726
|
readonly attributeHierarchiesChanged: boolean;
|
|
829
727
|
}) => boolean;
|
|
830
728
|
memoizedResultFunc: ((resultFuncArgs_0: {
|
|
@@ -833,6 +731,7 @@ export declare const isLoadingGroups: ((state: IAppState) => boolean) & {
|
|
|
833
731
|
readonly loadingAvailability: boolean;
|
|
834
732
|
readonly availabilityError: unknown;
|
|
835
733
|
readonly firstLoaded: boolean;
|
|
734
|
+
readonly loadFailed: boolean;
|
|
836
735
|
readonly attributeHierarchiesChanged: boolean;
|
|
837
736
|
}) => boolean) & {
|
|
838
737
|
clearCache: () => void;
|
|
@@ -846,6 +745,7 @@ export declare const isLoadingGroups: ((state: IAppState) => boolean) & {
|
|
|
846
745
|
readonly loadingAvailability: boolean;
|
|
847
746
|
readonly availabilityError: unknown;
|
|
848
747
|
readonly firstLoaded: boolean;
|
|
748
|
+
readonly loadFailed: boolean;
|
|
849
749
|
readonly attributeHierarchiesChanged: boolean;
|
|
850
750
|
}) & {
|
|
851
751
|
clearCache: () => void;
|
|
@@ -858,6 +758,7 @@ export declare const isLoadingGroups: ((state: IAppState) => boolean) & {
|
|
|
858
758
|
readonly loadingAvailability: boolean;
|
|
859
759
|
readonly availabilityError: unknown;
|
|
860
760
|
readonly firstLoaded: boolean;
|
|
761
|
+
readonly loadFailed: boolean;
|
|
861
762
|
readonly attributeHierarchiesChanged: boolean;
|
|
862
763
|
};
|
|
863
764
|
memoizedResultFunc: ((resultFuncArgs_0: ICatalogState) => {
|
|
@@ -866,6 +767,7 @@ export declare const isLoadingGroups: ((state: IAppState) => boolean) & {
|
|
|
866
767
|
readonly loadingAvailability: boolean;
|
|
867
768
|
readonly availabilityError: unknown;
|
|
868
769
|
readonly firstLoaded: boolean;
|
|
770
|
+
readonly loadFailed: boolean;
|
|
869
771
|
readonly attributeHierarchiesChanged: boolean;
|
|
870
772
|
}) & {
|
|
871
773
|
clearCache: () => void;
|
|
@@ -878,6 +780,7 @@ export declare const isLoadingGroups: ((state: IAppState) => boolean) & {
|
|
|
878
780
|
readonly loadingAvailability: boolean;
|
|
879
781
|
readonly availabilityError: unknown;
|
|
880
782
|
readonly firstLoaded: boolean;
|
|
783
|
+
readonly loadFailed: boolean;
|
|
881
784
|
readonly attributeHierarchiesChanged: boolean;
|
|
882
785
|
};
|
|
883
786
|
dependencies: [typeof getCatalogState];
|
|
@@ -909,6 +812,7 @@ export declare const isLoadingAvailability: ((state: IAppState) => boolean) & {
|
|
|
909
812
|
readonly loadingAvailability: boolean;
|
|
910
813
|
readonly availabilityError: unknown;
|
|
911
814
|
readonly firstLoaded: boolean;
|
|
815
|
+
readonly loadFailed: boolean;
|
|
912
816
|
readonly attributeHierarchiesChanged: boolean;
|
|
913
817
|
}) => boolean;
|
|
914
818
|
memoizedResultFunc: ((resultFuncArgs_0: {
|
|
@@ -917,6 +821,7 @@ export declare const isLoadingAvailability: ((state: IAppState) => boolean) & {
|
|
|
917
821
|
readonly loadingAvailability: boolean;
|
|
918
822
|
readonly availabilityError: unknown;
|
|
919
823
|
readonly firstLoaded: boolean;
|
|
824
|
+
readonly loadFailed: boolean;
|
|
920
825
|
readonly attributeHierarchiesChanged: boolean;
|
|
921
826
|
}) => boolean) & {
|
|
922
827
|
clearCache: () => void;
|
|
@@ -930,6 +835,7 @@ export declare const isLoadingAvailability: ((state: IAppState) => boolean) & {
|
|
|
930
835
|
readonly loadingAvailability: boolean;
|
|
931
836
|
readonly availabilityError: unknown;
|
|
932
837
|
readonly firstLoaded: boolean;
|
|
838
|
+
readonly loadFailed: boolean;
|
|
933
839
|
readonly attributeHierarchiesChanged: boolean;
|
|
934
840
|
}) & {
|
|
935
841
|
clearCache: () => void;
|
|
@@ -942,6 +848,7 @@ export declare const isLoadingAvailability: ((state: IAppState) => boolean) & {
|
|
|
942
848
|
readonly loadingAvailability: boolean;
|
|
943
849
|
readonly availabilityError: unknown;
|
|
944
850
|
readonly firstLoaded: boolean;
|
|
851
|
+
readonly loadFailed: boolean;
|
|
945
852
|
readonly attributeHierarchiesChanged: boolean;
|
|
946
853
|
};
|
|
947
854
|
memoizedResultFunc: ((resultFuncArgs_0: ICatalogState) => {
|
|
@@ -950,6 +857,7 @@ export declare const isLoadingAvailability: ((state: IAppState) => boolean) & {
|
|
|
950
857
|
readonly loadingAvailability: boolean;
|
|
951
858
|
readonly availabilityError: unknown;
|
|
952
859
|
readonly firstLoaded: boolean;
|
|
860
|
+
readonly loadFailed: boolean;
|
|
953
861
|
readonly attributeHierarchiesChanged: boolean;
|
|
954
862
|
}) & {
|
|
955
863
|
clearCache: () => void;
|
|
@@ -962,6 +870,7 @@ export declare const isLoadingAvailability: ((state: IAppState) => boolean) & {
|
|
|
962
870
|
readonly loadingAvailability: boolean;
|
|
963
871
|
readonly availabilityError: unknown;
|
|
964
872
|
readonly firstLoaded: boolean;
|
|
873
|
+
readonly loadFailed: boolean;
|
|
965
874
|
readonly attributeHierarchiesChanged: boolean;
|
|
966
875
|
};
|
|
967
876
|
dependencies: [typeof getCatalogState];
|
|
@@ -992,6 +901,7 @@ export declare const hasAvailabilityError: ((state: IAppState) => boolean) & {
|
|
|
992
901
|
readonly loadingAvailability: boolean;
|
|
993
902
|
readonly availabilityError: unknown;
|
|
994
903
|
readonly firstLoaded: boolean;
|
|
904
|
+
readonly loadFailed: boolean;
|
|
995
905
|
readonly attributeHierarchiesChanged: boolean;
|
|
996
906
|
}) => boolean;
|
|
997
907
|
memoizedResultFunc: ((resultFuncArgs_0: {
|
|
@@ -1000,6 +910,7 @@ export declare const hasAvailabilityError: ((state: IAppState) => boolean) & {
|
|
|
1000
910
|
readonly loadingAvailability: boolean;
|
|
1001
911
|
readonly availabilityError: unknown;
|
|
1002
912
|
readonly firstLoaded: boolean;
|
|
913
|
+
readonly loadFailed: boolean;
|
|
1003
914
|
readonly attributeHierarchiesChanged: boolean;
|
|
1004
915
|
}) => boolean) & {
|
|
1005
916
|
clearCache: () => void;
|
|
@@ -1013,6 +924,7 @@ export declare const hasAvailabilityError: ((state: IAppState) => boolean) & {
|
|
|
1013
924
|
readonly loadingAvailability: boolean;
|
|
1014
925
|
readonly availabilityError: unknown;
|
|
1015
926
|
readonly firstLoaded: boolean;
|
|
927
|
+
readonly loadFailed: boolean;
|
|
1016
928
|
readonly attributeHierarchiesChanged: boolean;
|
|
1017
929
|
}) & {
|
|
1018
930
|
clearCache: () => void;
|
|
@@ -1025,6 +937,7 @@ export declare const hasAvailabilityError: ((state: IAppState) => boolean) & {
|
|
|
1025
937
|
readonly loadingAvailability: boolean;
|
|
1026
938
|
readonly availabilityError: unknown;
|
|
1027
939
|
readonly firstLoaded: boolean;
|
|
940
|
+
readonly loadFailed: boolean;
|
|
1028
941
|
readonly attributeHierarchiesChanged: boolean;
|
|
1029
942
|
};
|
|
1030
943
|
memoizedResultFunc: ((resultFuncArgs_0: ICatalogState) => {
|
|
@@ -1033,6 +946,7 @@ export declare const hasAvailabilityError: ((state: IAppState) => boolean) & {
|
|
|
1033
946
|
readonly loadingAvailability: boolean;
|
|
1034
947
|
readonly availabilityError: unknown;
|
|
1035
948
|
readonly firstLoaded: boolean;
|
|
949
|
+
readonly loadFailed: boolean;
|
|
1036
950
|
readonly attributeHierarchiesChanged: boolean;
|
|
1037
951
|
}) & {
|
|
1038
952
|
clearCache: () => void;
|
|
@@ -1045,6 +959,7 @@ export declare const hasAvailabilityError: ((state: IAppState) => boolean) & {
|
|
|
1045
959
|
readonly loadingAvailability: boolean;
|
|
1046
960
|
readonly availabilityError: unknown;
|
|
1047
961
|
readonly firstLoaded: boolean;
|
|
962
|
+
readonly loadFailed: boolean;
|
|
1048
963
|
readonly attributeHierarchiesChanged: boolean;
|
|
1049
964
|
};
|
|
1050
965
|
dependencies: [typeof getCatalogState];
|
|
@@ -1075,6 +990,96 @@ export declare const hasCatalogFirstLoaded: ((state: IAppState) => boolean) & {
|
|
|
1075
990
|
readonly loadingAvailability: boolean;
|
|
1076
991
|
readonly availabilityError: unknown;
|
|
1077
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;
|
|
1078
1083
|
readonly attributeHierarchiesChanged: boolean;
|
|
1079
1084
|
}) => boolean;
|
|
1080
1085
|
memoizedResultFunc: ((resultFuncArgs_0: {
|
|
@@ -1083,6 +1088,7 @@ export declare const hasCatalogFirstLoaded: ((state: IAppState) => boolean) & {
|
|
|
1083
1088
|
readonly loadingAvailability: boolean;
|
|
1084
1089
|
readonly availabilityError: unknown;
|
|
1085
1090
|
readonly firstLoaded: boolean;
|
|
1091
|
+
readonly loadFailed: boolean;
|
|
1086
1092
|
readonly attributeHierarchiesChanged: boolean;
|
|
1087
1093
|
}) => boolean) & {
|
|
1088
1094
|
clearCache: () => void;
|
|
@@ -1096,6 +1102,7 @@ export declare const hasCatalogFirstLoaded: ((state: IAppState) => boolean) & {
|
|
|
1096
1102
|
readonly loadingAvailability: boolean;
|
|
1097
1103
|
readonly availabilityError: unknown;
|
|
1098
1104
|
readonly firstLoaded: boolean;
|
|
1105
|
+
readonly loadFailed: boolean;
|
|
1099
1106
|
readonly attributeHierarchiesChanged: boolean;
|
|
1100
1107
|
}) & {
|
|
1101
1108
|
clearCache: () => void;
|
|
@@ -1108,6 +1115,7 @@ export declare const hasCatalogFirstLoaded: ((state: IAppState) => boolean) & {
|
|
|
1108
1115
|
readonly loadingAvailability: boolean;
|
|
1109
1116
|
readonly availabilityError: unknown;
|
|
1110
1117
|
readonly firstLoaded: boolean;
|
|
1118
|
+
readonly loadFailed: boolean;
|
|
1111
1119
|
readonly attributeHierarchiesChanged: boolean;
|
|
1112
1120
|
};
|
|
1113
1121
|
memoizedResultFunc: ((resultFuncArgs_0: ICatalogState) => {
|
|
@@ -1116,6 +1124,7 @@ export declare const hasCatalogFirstLoaded: ((state: IAppState) => boolean) & {
|
|
|
1116
1124
|
readonly loadingAvailability: boolean;
|
|
1117
1125
|
readonly availabilityError: unknown;
|
|
1118
1126
|
readonly firstLoaded: boolean;
|
|
1127
|
+
readonly loadFailed: boolean;
|
|
1119
1128
|
readonly attributeHierarchiesChanged: boolean;
|
|
1120
1129
|
}) & {
|
|
1121
1130
|
clearCache: () => void;
|
|
@@ -1128,6 +1137,7 @@ export declare const hasCatalogFirstLoaded: ((state: IAppState) => boolean) & {
|
|
|
1128
1137
|
readonly loadingAvailability: boolean;
|
|
1129
1138
|
readonly availabilityError: unknown;
|
|
1130
1139
|
readonly firstLoaded: boolean;
|
|
1140
|
+
readonly loadFailed: boolean;
|
|
1131
1141
|
readonly attributeHierarchiesChanged: boolean;
|
|
1132
1142
|
};
|
|
1133
1143
|
dependencies: [typeof getCatalogState];
|
|
@@ -1187,6 +1197,7 @@ export declare const hasAttributeHierarchiesChanged: ((state: IAppState) => bool
|
|
|
1187
1197
|
readonly loadingAvailability: boolean;
|
|
1188
1198
|
readonly availabilityError: unknown;
|
|
1189
1199
|
readonly firstLoaded: boolean;
|
|
1200
|
+
readonly loadFailed: boolean;
|
|
1190
1201
|
readonly attributeHierarchiesChanged: boolean;
|
|
1191
1202
|
}) => boolean;
|
|
1192
1203
|
memoizedResultFunc: ((resultFuncArgs_0: {
|
|
@@ -1195,6 +1206,7 @@ export declare const hasAttributeHierarchiesChanged: ((state: IAppState) => bool
|
|
|
1195
1206
|
readonly loadingAvailability: boolean;
|
|
1196
1207
|
readonly availabilityError: unknown;
|
|
1197
1208
|
readonly firstLoaded: boolean;
|
|
1209
|
+
readonly loadFailed: boolean;
|
|
1198
1210
|
readonly attributeHierarchiesChanged: boolean;
|
|
1199
1211
|
}) => boolean) & {
|
|
1200
1212
|
clearCache: () => void;
|
|
@@ -1208,6 +1220,7 @@ export declare const hasAttributeHierarchiesChanged: ((state: IAppState) => bool
|
|
|
1208
1220
|
readonly loadingAvailability: boolean;
|
|
1209
1221
|
readonly availabilityError: unknown;
|
|
1210
1222
|
readonly firstLoaded: boolean;
|
|
1223
|
+
readonly loadFailed: boolean;
|
|
1211
1224
|
readonly attributeHierarchiesChanged: boolean;
|
|
1212
1225
|
}) & {
|
|
1213
1226
|
clearCache: () => void;
|
|
@@ -1220,6 +1233,7 @@ export declare const hasAttributeHierarchiesChanged: ((state: IAppState) => bool
|
|
|
1220
1233
|
readonly loadingAvailability: boolean;
|
|
1221
1234
|
readonly availabilityError: unknown;
|
|
1222
1235
|
readonly firstLoaded: boolean;
|
|
1236
|
+
readonly loadFailed: boolean;
|
|
1223
1237
|
readonly attributeHierarchiesChanged: boolean;
|
|
1224
1238
|
};
|
|
1225
1239
|
memoizedResultFunc: ((resultFuncArgs_0: ICatalogState) => {
|
|
@@ -1228,6 +1242,7 @@ export declare const hasAttributeHierarchiesChanged: ((state: IAppState) => bool
|
|
|
1228
1242
|
readonly loadingAvailability: boolean;
|
|
1229
1243
|
readonly availabilityError: unknown;
|
|
1230
1244
|
readonly firstLoaded: boolean;
|
|
1245
|
+
readonly loadFailed: boolean;
|
|
1231
1246
|
readonly attributeHierarchiesChanged: boolean;
|
|
1232
1247
|
}) & {
|
|
1233
1248
|
clearCache: () => void;
|
|
@@ -1240,6 +1255,7 @@ export declare const hasAttributeHierarchiesChanged: ((state: IAppState) => bool
|
|
|
1240
1255
|
readonly loadingAvailability: boolean;
|
|
1241
1256
|
readonly availabilityError: unknown;
|
|
1242
1257
|
readonly firstLoaded: boolean;
|
|
1258
|
+
readonly loadFailed: boolean;
|
|
1243
1259
|
readonly attributeHierarchiesChanged: boolean;
|
|
1244
1260
|
};
|
|
1245
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,wBAAwB,EAC7B,KAAK,WAAW,EAChB,KAAK,iBAAiB,EACtB,KAAK,aAAa,EAClB,KAAK,MAAM,
|
|
1
|
+
{"version":3,"file":"catalog_selector.d.ts","sourceRoot":"","sources":["../../../src/store/catalog/catalog_selector.ts"],"names":[],"mappings":"AAIA,OAAO,EACH,KAAK,wBAAwB,EAC7B,KAAK,WAAW,EAChB,KAAK,iBAAiB,EACtB,KAAK,aAAa,EAClB,KAAK,MAAM,EAQd,MAAM,qBAAqB,CAAC;AAG7B,OAAO,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAE7D,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,EAAE,wBAAwB,EAAE,MAAM,6CAA6C,CAAC;AACvF,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,aAAa,CAAC;AAa7C,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAExD,QAAA,MAAM,eAAe,UAAW,SAAS,KAAG,aAAmC,CAAC;AAIhF,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CASlC,CAAC;AAEF,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;CAAkE,CAAC;AAE5G,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;CAAqD,CAAC;AAElF,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;CAA0D,CAAC;AAE1F,eAAO,MAAM,uBAAuB;;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3C,CAAC;AAEF,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMhC,CAAC;AAEF,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAI5B,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// (C) 2007-2026 GoodData Corporation
|
|
2
2
|
import { createSelector } from "reselect";
|
|
3
|
-
import { areObjRefsEqual, catalogItemMetadataObject,
|
|
3
|
+
import { areObjRefsEqual, catalogItemMetadataObject, isCatalogAttribute, isCatalogComputedAttribute, isCatalogFact, isCatalogMeasure, isIdentifierRef, } from "@gooddata/sdk-model";
|
|
4
4
|
import { enableHLL, enableUnavailableItemsVisibility } from "../../selectors/feature_flag_selector.js";
|
|
5
5
|
import { getLocale } from "../../selectors/intl_selector.js";
|
|
6
6
|
import { DateDatasetsService } from "../../services/date_datasets_service.js";
|
|
@@ -20,9 +20,6 @@ export const getDateHierarchies = createSelector(getCatalogState, catalogDateHie
|
|
|
20
20
|
export const getAttributeHierarchies = createSelector(getCatalogState, catalogAttributeHierarchies);
|
|
21
21
|
export const getCatalogParameters = createSelector(getCatalogState, catalogStateParameters);
|
|
22
22
|
export const getCatalogDateRangeParameters = createSelector(getCatalogState, catalogStateDateRangeParameters);
|
|
23
|
-
export const getCatalogDateRangeParameterByRef = (ref) => createSelector(getCatalogDateRangeParameters, (parameters) => parameters.find((parameter) => areObjRefsEqual(parameter.ref, ref)));
|
|
24
|
-
/** Title of the date range parameter `ref` points to, with the id fallbacks of `getParameterTitle`. */
|
|
25
|
-
export const getCatalogDateRangeParameterTitle = (ref) => createSelector(getCatalogDateRangeParameterByRef(ref), (parameter) => getParameterTitle(ref, parameter));
|
|
26
23
|
export const getCatalogItemById = (id) => createSelector(getCatalogItems, (items) => items.find((item) => {
|
|
27
24
|
if (isCatalogAttribute(item)) {
|
|
28
25
|
return item.attribute.id === id || item.defaultDisplayForm.id === id;
|
|
@@ -103,6 +100,7 @@ export const isLoadingItems = (state) => !DateDatasetsService.isDateDatasetsLoad
|
|
|
103
100
|
export const isLoadingAvailability = createSelector(getCatalogFlags, (flags) => !!flags.loadingAvailability);
|
|
104
101
|
export const hasAvailabilityError = createSelector(getCatalogFlags, (flags) => !!flags.availabilityError);
|
|
105
102
|
export const hasCatalogFirstLoaded = createSelector(getCatalogFlags, (flags) => flags.firstLoaded);
|
|
103
|
+
export const hasCatalogLoadFailed = createSelector(getCatalogFlags, (flags) => flags.loadFailed);
|
|
106
104
|
export const getAllTooltipDetails = createSelector(getCatalogState, catalogStateTooltipDetails);
|
|
107
105
|
export const hasAttributeHierarchiesChanged = createSelector(getCatalogFlags, (flags) => !!flags.attributeHierarchiesChanged);
|
|
108
106
|
export const getItemTooltipDetails = (state, itemId) => {
|
|
@@ -1,12 +1,13 @@
|
|
|
1
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 | ISetItemTooltipDetailsAction | ISetUpdatedItemsCountAction | IResetTooltipDetailsAction | ISetIsWorkspaceEmptyAction | IToggleUnavailableItemsVisibilityAction | ISetDateHierarchies | ISetAttributeHierarchies | ISetCatalogAttributeHierarchiesHasChanged | ISetCatalogParameters;
|
|
4
|
+
export type CatalogAction = ISetCatalogItemsAction | ISetCatalogGroupsAction | ISetCatalogLoadingFlagAction | ISetCatalogItemsAvailabilityAction | ISetCatalogAvailabilityErrorFlagAction | ISetCatalogFirstLoadedFlagAction | ISetCatalogLoadFailedFlagAction | ISetItemTooltipDetailsAction | ISetUpdatedItemsCountAction | IResetTooltipDetailsAction | ISetIsWorkspaceEmptyAction | IToggleUnavailableItemsVisibilityAction | ISetDateHierarchies | ISetAttributeHierarchies | ISetCatalogAttributeHierarchiesHasChanged | ISetCatalogParameters;
|
|
5
5
|
export declare enum CatalogActionTypeKeys {
|
|
6
6
|
STORE_SET_CATALOG_ITEMS = "STORE/SET_CATALOG_ITEMS",
|
|
7
7
|
STORE_SET_CATALOG_GROUPS = "STORE/SET_CATALOG_GROUPS",
|
|
8
8
|
STORE_SET_CATALOG_ITEMS_AVAILABILITY = "STORE/SET_CATALOG_ITEMS_AVAILABILITY",
|
|
9
9
|
STORE_SET_CATALOG_FIRST_LOADED = "STORE/SET_CATALOG_FIRST_LOADED",
|
|
10
|
+
STORE_SET_CATALOG_LOAD_FAILED = "STORE/SET_CATALOG_LOAD_FAILED",
|
|
10
11
|
STORE_SET_LOADING_ITEMS = "STORE/SET_LOADING_ITEMS",
|
|
11
12
|
STORE_SET_LOADING_GROUPS = "STORE/SET_LOADING_GROUPS",
|
|
12
13
|
STORE_SET_LOADING_AVAILABILITY = "STORE/SET_LOADING_AVAILABILITY",
|
|
@@ -60,6 +61,10 @@ export declare const setCatalogFirstLoaded: import("@reduxjs/toolkit").ActionCre
|
|
|
60
61
|
firstLoaded: boolean;
|
|
61
62
|
}, CatalogActionTypeKeys.STORE_SET_CATALOG_FIRST_LOADED, never, never>;
|
|
62
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>;
|
|
63
68
|
export declare const setItemTooltipDetails: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[itemId: string, details: IOrganizedCatalogTooltipDetails], {
|
|
64
69
|
itemId: string;
|
|
65
70
|
details: IOrganizedCatalogTooltipDetails;
|
|
@@ -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,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,GAClC,sCAAsC,GACtC,gCAAgC,GAChC,4BAA4B,GAC5B,2BAA2B,GAC3B,0BAA0B,GAC1B,0BAA0B,GAC1B,uCAAuC,GACvC,mBAAmB,GACnB,wBAAwB,GACxB,yCAAyC,GACzC,qBAAqB,CAAC;AAE5B,oBAAY,qBAAqB;IAC7B,uBAAuB,4BAA4B;IACnD,wBAAwB,6BAA6B;IACrD,oCAAoC,yCAAyC;IAC7E,8BAA8B,mCAAmC;IACjE,uBAAuB,4BAA4B;IACnD,wBAAwB,6BAA6B;IACrD,8BAA8B,mCAAmC;IACjE,4BAA4B,iCAAiC;IAC7D,yBAAyB,8BAA8B;IACvD,6BAA6B,kCAAkC;IAC/D,2BAA2B,gCAAgC;IAC3D,4BAA4B,iCAAiC;IAC7D,yCAAyC,8CAA8C;IACvF,0BAA0B,+BAA+B;IACzD,+BAA+B,oCAAoC;IACnE,uCAAuC,4CAA4C;IACnF,4BAA4B,iCAAiC;CAChE;AAED,eAAO,MAAM,eAAe;;+DAG3B,CAAC;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
|
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);
|
|
@@ -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: {
|
|
@@ -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,iCAAiC,EACtC,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;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,C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AQ,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,gCAAgC,CAAC;AACpE,OAAO,EAEH,KAAK,sBAAsB,EAC9B,MAAM,6CAA6C,CAAC;AAErD,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAC7D,OAAO,EACH,KAAK,yBAAyB,EAE9B,KAAK,iBAAiB,EACtB,K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
|
|
@@ -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,
|