@sumaris-net/ngx-components 2.4.90-rc4 → 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 +2 -2
- package/esm2020/src/app/core/form/entity/entity-editor.class.mjs +3 -3
- package/esm2020/src/app/core/form/form.utils.mjs +2 -2
- package/esm2020/src/app/core/graphql/graphql.service.mjs +2 -2
- package/esm2020/src/app/core/table/table.class.mjs +3 -2
- package/fesm2015/sumaris-net.ngx-components.mjs +7 -6
- package/fesm2015/sumaris-net.ngx-components.mjs.map +1 -1
- package/fesm2020/sumaris-net.ngx-components.mjs +7 -6
- 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)
|
|
@@ -17235,7 +17235,7 @@ class GraphqlService extends StartableService {
|
|
|
17235
17235
|
const appError = Object.assign({ code: error.code, message: (typeof message === 'string') ? message : undefined }, this.createAppErrorByCode(error.code));
|
|
17236
17236
|
if (appError.code !== error.code || appError.message !== error.message) {
|
|
17237
17237
|
// Store original error in details
|
|
17238
|
-
appError.details =
|
|
17238
|
+
appError.details = error;
|
|
17239
17239
|
return appError;
|
|
17240
17240
|
}
|
|
17241
17241
|
// Keep error (with details, if any)
|
|
@@ -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
|
}
|
|
@@ -29986,8 +29987,8 @@ class AppEntityEditor extends AppTabEditor {
|
|
|
29986
29987
|
}
|
|
29987
29988
|
catch (err) {
|
|
29988
29989
|
this.submitted = true;
|
|
29990
|
+
this.selectedTabIndex = 0; // Can be override by subclasses, using setError()
|
|
29989
29991
|
this.setError(err);
|
|
29990
|
-
this.selectedTabIndex = 0;
|
|
29991
29992
|
this.scrollToTop(); // Scroll to top (to show error)
|
|
29992
29993
|
this.markAsDirty();
|
|
29993
29994
|
this.enable();
|
|
@@ -30056,8 +30057,8 @@ class AppEntityEditor extends AppTabEditor {
|
|
|
30056
30057
|
}
|
|
30057
30058
|
catch (err) {
|
|
30058
30059
|
this.submitted = true;
|
|
30059
|
-
this.setError(err);
|
|
30060
30060
|
this.selectedTabIndex = 0;
|
|
30061
|
+
this.setError(err);
|
|
30061
30062
|
this.markAsSaved();
|
|
30062
30063
|
this.enable();
|
|
30063
30064
|
return false;
|
|
@@ -30582,8 +30583,8 @@ class AppEntityEditorModal extends AppTabEditor {
|
|
|
30582
30583
|
}
|
|
30583
30584
|
catch (err) {
|
|
30584
30585
|
this.submitted = true;
|
|
30586
|
+
this.selectedTabIndex = 0; // Can by override by subclasses, using setError()
|
|
30585
30587
|
this.setError(err);
|
|
30586
|
-
this.selectedTabIndex = 0;
|
|
30587
30588
|
this.scrollToTop(); // Scroll to top (to show error)
|
|
30588
30589
|
this.markAsDirty();
|
|
30589
30590
|
this.enable();
|