@provoly/dashboard 0.21.8 → 0.21.10
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/esm2022/lib/core/store/search/search.service.mjs +3 -3
- package/esm2022/lib/dashboard/store/dashboard.actions.mjs +1 -1
- package/esm2022/lib/dashboard/store/dashboard.effects.mjs +3 -2
- package/esm2022/lib/dashboard/store/proxy.utils.mjs +11 -6
- package/fesm2022/provoly-dashboard.mjs +14 -8
- package/fesm2022/provoly-dashboard.mjs.map +1 -1
- package/lib/dashboard/store/dashboard.actions.d.ts +2 -0
- package/lib/dashboard/store/dashboard.effects.d.ts +1 -0
- package/package.json +31 -31
|
@@ -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 (
|
|
3961
|
-
return original
|
|
3960
|
+
if (prop === 'toJSON') {
|
|
3961
|
+
return () => original;
|
|
3962
3962
|
}
|
|
3963
3963
|
else {
|
|
3964
|
-
if (
|
|
3965
|
-
|
|
3966
|
-
|
|
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 {
|
|
@@ -4240,8 +4245,8 @@ class SearchService {
|
|
|
4240
4245
|
if (quickOrder[DEFAULT_NAMED_QUERY_ID]) {
|
|
4241
4246
|
params['order'] = `${quickOrder[DEFAULT_NAMED_QUERY_ID]?.attribute},${quickOrder[DEFAULT_NAMED_QUERY_ID]?.asc ?? ''}`;
|
|
4242
4247
|
}
|
|
4243
|
-
condition
|
|
4244
|
-
return this.httpClient.post(encodeURI(`${url}/items/search`),
|
|
4248
|
+
const _condition = { ...condition, limit: limits[DEFAULT_NAMED_QUERY_ID] ?? limits['default'] };
|
|
4249
|
+
return this.httpClient.post(encodeURI(`${url}/items/search`), _condition, { params });
|
|
4245
4250
|
}), map((rs) => this.applyTransformations(DEFAULT_NAMED_QUERY_ID, rs)));
|
|
4246
4251
|
}
|
|
4247
4252
|
/**
|
|
@@ -10761,7 +10766,8 @@ class DashboardEffects {
|
|
|
10761
10766
|
SearchActions.getDatasourceItems({
|
|
10762
10767
|
// @ts-ignore
|
|
10763
10768
|
id: action.id,
|
|
10764
|
-
|
|
10769
|
+
// @ts-ignore
|
|
10770
|
+
excludeGeo: action.excludeGeo != undefined ? action.excludeGeo : true,
|
|
10765
10771
|
from: 'DashboardEffects.assertResultSets$-2'
|
|
10766
10772
|
})
|
|
10767
10773
|
];
|