@sumaris-net/ngx-components 18.12.11 → 18.12.13
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/doc/changelog.md +6 -0
- package/esm2022/src/app/core/form/form-container.class.mjs +5 -4
- package/esm2022/src/app/core/table/async-table.class.mjs +5 -3
- package/esm2022/src/app/core/table/table.class.mjs +5 -3
- package/fesm2022/sumaris-net.ngx-components.mjs +12 -7
- package/fesm2022/sumaris-net.ngx-components.mjs.map +1 -1
- package/package.json +1 -1
- package/src/app/shared/inputs.d.ts +1 -1
- package/src/assets/manifest.json +1 -1
|
@@ -35265,8 +35265,10 @@ class AppTable {
|
|
|
35265
35265
|
}
|
|
35266
35266
|
// If the row exists (has an id)
|
|
35267
35267
|
else {
|
|
35268
|
-
//
|
|
35269
|
-
if
|
|
35268
|
+
// Call cancel function ,
|
|
35269
|
+
// - if confirmation will be called before
|
|
35270
|
+
// - or if row is pristine (not dirty)
|
|
35271
|
+
if (this.confirmBeforeCancel || !row.dirty) {
|
|
35270
35272
|
this.cancelExistingRow(event, row, { keepEditing: false });
|
|
35271
35273
|
return;
|
|
35272
35274
|
}
|
|
@@ -38030,8 +38032,10 @@ class AppAsyncTable {
|
|
|
38030
38032
|
}
|
|
38031
38033
|
// If the row exists (has an id)
|
|
38032
38034
|
else {
|
|
38033
|
-
//
|
|
38034
|
-
if
|
|
38035
|
+
// Call cancel function ,
|
|
38036
|
+
// - if confirmation will be called before
|
|
38037
|
+
// - or if row is pristine (not dirty)
|
|
38038
|
+
if (this.confirmBeforeCancel || !row.dirty) {
|
|
38035
38039
|
await this.cancelExistingRow(event, row, { keepEditing: false });
|
|
38036
38040
|
return;
|
|
38037
38041
|
}
|
|
@@ -39522,14 +39526,15 @@ class AppFormContainer {
|
|
|
39522
39526
|
if (!form)
|
|
39523
39527
|
throw new Error('Trying to register an undefined child form');
|
|
39524
39528
|
this._children = this._children || [];
|
|
39529
|
+
this._childrenPath = this._childrenPath || [];
|
|
39525
39530
|
if (typeof form === 'function') {
|
|
39526
39531
|
this._children.push(new AppFormProvider(form));
|
|
39532
|
+
this._childrenPath.push(path ?? null);
|
|
39527
39533
|
}
|
|
39528
|
-
else {
|
|
39534
|
+
else if (!this._children.includes(form)) {
|
|
39529
39535
|
this._children.push(form);
|
|
39536
|
+
this._childrenPath.push(path ?? null);
|
|
39530
39537
|
}
|
|
39531
|
-
this._childrenPath = this._childrenPath || [];
|
|
39532
|
-
this._childrenPath.push(path || null);
|
|
39533
39538
|
}
|
|
39534
39539
|
addForms(forms) {
|
|
39535
39540
|
(forms || []).forEach((form) => this.addForm(null, form));
|