tnx-shared 5.3.253 → 5.3.254
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/tnx-shared.umd.js +5 -2
- package/bundles/tnx-shared.umd.js.map +1 -1
- package/bundles/tnx-shared.umd.min.js +1 -1
- package/bundles/tnx-shared.umd.min.js.map +1 -1
- package/classes/base/data-form-base.d.ts +1 -0
- package/classes/base/data-form-base.d.ts.map +1 -1
- package/esm2015/classes/base/data-form-base.js +6 -3
- package/fesm2015/tnx-shared.js +5 -2
- package/fesm2015/tnx-shared.js.map +1 -1
- package/package.json +2 -2
- package/tnx-shared.metadata.json +1 -1
|
@@ -18442,6 +18442,7 @@
|
|
|
18442
18442
|
_this.setValidateForm = true;
|
|
18443
18443
|
_this.haveEntityMetadataAPI = true;
|
|
18444
18444
|
_this.isBaseModel = true;
|
|
18445
|
+
_this.autoGenerateId = true;
|
|
18445
18446
|
_this.__isFormView = false;
|
|
18446
18447
|
var moduleConfigService = _injector.get(ModuleConfigService);
|
|
18447
18448
|
_this.environment = moduleConfigService.getConfig().environment;
|
|
@@ -19064,8 +19065,10 @@
|
|
|
19064
19065
|
DataFormBase.prototype.onAfterSave = function (response) {
|
|
19065
19066
|
};
|
|
19066
19067
|
DataFormBase.prototype._onAfterSave = function () {
|
|
19067
|
-
|
|
19068
|
-
|
|
19068
|
+
var _a;
|
|
19069
|
+
var _b;
|
|
19070
|
+
if (!this.isCloseForm && this.autoGenerateId) {
|
|
19071
|
+
(_a = (_b = this.model.data).id) !== null && _a !== void 0 ? _a : (_b.id = this._commonService.guid());
|
|
19069
19072
|
}
|
|
19070
19073
|
};
|
|
19071
19074
|
DataFormBase.prototype.onAfterGetDetail = function (data) {
|