@provoly/dashboard 0.21.7 → 0.21.9

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.
@@ -3957,13 +3957,18 @@ class ProxyUtils {
3957
3957
  metadata: item.metadata,
3958
3958
  attributes: new Proxy(JSON.parse(JSON.stringify(item.attributes)), {
3959
3959
  get: (original, prop, proxy) => {
3960
- if (original[prop]) {
3961
- return original[prop];
3960
+ if (prop === 'toJSON') {
3961
+ return () => JSON.stringify(original);
3962
3962
  }
3963
3963
  else {
3964
- if (!this.currentlyLoading.includes(rsId) && this.requested[prop] !== false) {
3965
- this.requested[prop] = false;
3966
- this.store.dispatch(SearchActions.getDatasourceItems({ id: rsId, excludeGeo: false, from: 'ProxyUtils.Item()' }));
3964
+ if (original[prop]) {
3965
+ return original[prop];
3966
+ }
3967
+ else {
3968
+ if (!this.currentlyLoading.includes(rsId) && this.requested[prop] !== false) {
3969
+ this.requested[prop] = false;
3970
+ this.store.dispatch(SearchActions.getDatasourceItems({ id: rsId, excludeGeo: false, from: 'ProxyUtils.Item()' }));
3971
+ }
3967
3972
  }
3968
3973
  }
3969
3974
  return {
@@ -4967,7 +4972,7 @@ class SearchEffects {
4967
4972
  id: props.id,
4968
4973
  params: this.searchService.getItemsSerializedParams(props.id, quickOrder)
4969
4974
  })), catchError$1((error) => [SearchActions.searchFailure({ error, id: props.id })])))));
4970
- this.search$ = createEffect(() => this.actions$.pipe(ofType(SearchActions.search), mergeMap((props) => this.searchService.search(props.payload).pipe(map((resultSet) => SearchActions.searchSuccess({ resultSet, id: props.id })), catchError$1((error) => [SearchActions.searchFailure({ error })])))));
4975
+ this.search$ = createEffect(() => this.actions$.pipe(ofType(SearchActions.search), mergeMap((props) => this.searchService.search(props.payload).pipe(map((resultSet) => SearchActions.searchSuccess({ resultSet, id: props.id })), catchError$1((error) => [SearchActions.searchFailure({ error, id: props.id })])))));
4971
4976
  this.searchSuccess$ = createEffect(() => this.actions$.pipe(ofType(SearchActions.searchSuccess), map((action) => DashboardActions.updateResultSet({
4972
4977
  id: action.id ?? DEFAULT_NAMED_QUERY_ID,
4973
4978
  resultSet: action.resultSet,
@@ -10761,7 +10766,8 @@ class DashboardEffects {
10761
10766
  SearchActions.getDatasourceItems({
10762
10767
  // @ts-ignore
10763
10768
  id: action.id,
10764
- excludeGeo: true,
10769
+ // @ts-ignore
10770
+ excludeGeo: action.excludeGeo != undefined ? action.excludeGeo : true,
10765
10771
  from: 'DashboardEffects.assertResultSets$-2'
10766
10772
  })
10767
10773
  ];