@sumaris-net/ngx-components 1.12.8 → 1.12.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.
- package/bundles/sumaris-net.ngx-components.umd.js +3 -2
- package/bundles/sumaris-net.ngx-components.umd.js.map +1 -1
- package/bundles/sumaris-net.ngx-components.umd.min.js +1 -1
- package/bundles/sumaris-net.ngx-components.umd.min.js.map +1 -1
- package/esm2015/src/app/shared/functions.js +3 -2
- package/fesm2015/sumaris-net.ngx-components.js +2 -1
- package/fesm2015/sumaris-net.ngx-components.js.map +1 -1
- package/package.json +1 -1
- package/src/app/shared/functions.d.ts +1 -1
|
@@ -566,7 +566,7 @@
|
|
|
566
566
|
var nextOffset = (opts && opts.offset || 0) + pageData.length;
|
|
567
567
|
if (nextOffset < total) {
|
|
568
568
|
result.fetchMore = function (_) { return __awaiter(_this, void 0, void 0, function () {
|
|
569
|
-
return __generator(this, function (
|
|
569
|
+
return __generator(this, function (_b) {
|
|
570
570
|
return [2 /*return*/, suggestFromArray(filteredItems, undefined /*OPTIMISATION: already applied*/, Object.assign(Object.assign({}, opts), { offset: nextOffset, skipSort: true, excludedIds: undefined // OPTIMISATION: already filtered
|
|
571
571
|
}))];
|
|
572
572
|
});
|
|
@@ -738,7 +738,8 @@
|
|
|
738
738
|
}
|
|
739
739
|
function splitByProperty(array, propertyName) {
|
|
740
740
|
return (array || []).reduce(function (res, value) {
|
|
741
|
-
var
|
|
741
|
+
var _a;
|
|
742
|
+
var key = (_a = value) === null || _a === void 0 ? void 0 : _a[propertyName];
|
|
742
743
|
if (isNotNil(key)) {
|
|
743
744
|
res[key] = value;
|
|
744
745
|
}
|