@sumaris-net/ngx-components 2.6.17 → 2.6.18
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/esm2020/src/app/core/form/entity/editor.class.mjs +3 -2
- package/esm2020/src/app/shared/services/memory-entity-service.class.mjs +3 -3
- package/fesm2015/sumaris-net.ngx-components.mjs +4 -3
- package/fesm2015/sumaris-net.ngx-components.mjs.map +1 -1
- package/fesm2020/sumaris-net.ngx-components.mjs +4 -3
- package/fesm2020/sumaris-net.ngx-components.mjs.map +1 -1
- package/package.json +1 -1
- package/src/app/shared/services/memory-entity-service.class.d.ts +3 -1
- package/src/assets/manifest.json +1 -1
|
@@ -23123,7 +23123,7 @@ class InMemoryEntitiesService extends StartableObservableService {
|
|
|
23123
23123
|
const res = { data, total };
|
|
23124
23124
|
const nextOffset = size > 0 ? (offset || 0) + size : total;
|
|
23125
23125
|
if (nextOffset < total) {
|
|
23126
|
-
res.fetchMore = () => this.loadAll(nextOffset, size, sortBy, sortDirection, filter, opts)
|
|
23126
|
+
res.fetchMore = () => this.loadAll(nextOffset, size, sortBy, sortDirection, filter, { ...opts, updateHiddenData: false })
|
|
23127
23127
|
.then(res => {
|
|
23128
23128
|
// Update hidden data (remove new fetched item)
|
|
23129
23129
|
if (res.data?.length) {
|
|
@@ -23136,7 +23136,7 @@ class InMemoryEntitiesService extends StartableObservableService {
|
|
|
23136
23136
|
}
|
|
23137
23137
|
finally {
|
|
23138
23138
|
// Remember hidden data
|
|
23139
|
-
if (
|
|
23139
|
+
if (opts?.updateHiddenData !== false) {
|
|
23140
23140
|
this._hiddenData = !excludedDataByPagination ? excludedDataByFilter : excludedDataByFilter.concat(...excludedDataByPagination);
|
|
23141
23141
|
}
|
|
23142
23142
|
}
|
|
@@ -30800,7 +30800,8 @@ class AppEditor {
|
|
|
30800
30800
|
}
|
|
30801
30801
|
}
|
|
30802
30802
|
setError(value, opts) {
|
|
30803
|
-
|
|
30803
|
+
// Compare using '!=' to detect null and undefined as same value
|
|
30804
|
+
if (this.errorSubject.value != value) {
|
|
30804
30805
|
this.errorSubject.next(value);
|
|
30805
30806
|
if (!opts || opts.emitEvent !== false)
|
|
30806
30807
|
this.markForCheck();
|