@sumaris-net/ngx-components 1.12.8 → 1.12.11
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 +8 -3
- 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/core/table/table.class.js +6 -2
- package/esm2015/src/app/shared/functions.js +3 -2
- package/esm2015/src/app/shared/pipes/form.pipes.js +1 -1
- package/fesm2015/sumaris-net.ngx-components.js +7 -2
- package/fesm2015/sumaris-net.ngx-components.js.map +1 -1
- package/package.json +1 -1
- package/src/app/shared/functions.d.ts +1 -1
- package/src/app/shared/pipes/form.pipes.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
|
}
|
|
@@ -25686,6 +25687,8 @@
|
|
|
25686
25687
|
case 1:
|
|
25687
25688
|
_e.sent();
|
|
25688
25689
|
row = this.dataSource.getRow(id);
|
|
25690
|
+
if (!row)
|
|
25691
|
+
return [2 /*return*/, false];
|
|
25689
25692
|
return [2 /*return*/, this.clickRow(null, row)];
|
|
25690
25693
|
}
|
|
25691
25694
|
});
|
|
@@ -25711,7 +25714,9 @@
|
|
|
25711
25714
|
case 2:
|
|
25712
25715
|
row = ((_e.sent()) || [])
|
|
25713
25716
|
.find(function (row) { return _this.equals(row.currentData, data); });
|
|
25714
|
-
|
|
25717
|
+
if (!row)
|
|
25718
|
+
return [2 /*return*/, false];
|
|
25719
|
+
return [2 /*return*/, this.clickRow(null, row)];
|
|
25715
25720
|
}
|
|
25716
25721
|
});
|
|
25717
25722
|
});
|