@sumaris-net/ngx-components 2.4.90-rc5 → 2.4.90
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/entity-editor-modal.class.mjs +1 -1
- package/esm2020/src/app/core/form/form.utils.mjs +2 -2
- package/esm2020/src/app/core/table/table.class.mjs +3 -2
- package/fesm2015/sumaris-net.ngx-components.mjs +3 -2
- package/fesm2015/sumaris-net.ngx-components.mjs.map +1 -1
- package/fesm2020/sumaris-net.ngx-components.mjs +3 -2
- package/fesm2020/sumaris-net.ngx-components.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -4711,7 +4711,7 @@ class AppFormArray extends UntypedFormArray {
|
|
|
4711
4711
|
// Clean all
|
|
4712
4712
|
this.resize(0, { emitEvent: options === null || options === void 0 ? void 0 : options.emitEvent });
|
|
4713
4713
|
// Recreate each control, with a default value
|
|
4714
|
-
(values ||
|
|
4714
|
+
(values || []).forEach(value => {
|
|
4715
4715
|
const control = this.createControl(value);
|
|
4716
4716
|
// Apply parent disabled state, before to push it into the array
|
|
4717
4717
|
// This is need to avoid parent form to be enabled, after calling AppFormArray.patchValue() (e.g. in table's row validator)
|
|
@@ -27885,8 +27885,9 @@ class AppTable {
|
|
|
27885
27885
|
deleteSelection(event, opts) {
|
|
27886
27886
|
return __awaiter(this, void 0, void 0, function* () {
|
|
27887
27887
|
const deleteCount = yield this.deleteRows(event, this.selection.selected, opts);
|
|
27888
|
-
if (deleteCount > 0)
|
|
27888
|
+
if (deleteCount > 0) {
|
|
27889
27889
|
this.selection.clear();
|
|
27890
|
+
}
|
|
27890
27891
|
return deleteCount;
|
|
27891
27892
|
});
|
|
27892
27893
|
}
|