tnx-shared 5.1.467 → 5.1.468
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 +10 -5
- 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 +10 -4
- package/fesm2015/tnx-shared.js +8 -2
- package/fesm2015/tnx-shared.js.map +1 -1
- package/package.json +2 -2
- package/tnx-shared.metadata.json +1 -1
|
@@ -17869,6 +17869,7 @@
|
|
|
17869
17869
|
return [4 /*yield*/, this.initDataAdd(event)];
|
|
17870
17870
|
case 9:
|
|
17871
17871
|
_a.sent();
|
|
17872
|
+
this.initDefaultSettingFileControl(event);
|
|
17872
17873
|
this.crudForm.initControlDefaultValueFromExternal();
|
|
17873
17874
|
this.crudForm.fireModelChanged();
|
|
17874
17875
|
_a.label = 10;
|
|
@@ -17900,6 +17901,7 @@
|
|
|
17900
17901
|
return [4 /*yield*/, this.initDataAdd(event)];
|
|
17901
17902
|
case 16:
|
|
17902
17903
|
_a.sent();
|
|
17904
|
+
this.initDefaultSettingFileControl(event);
|
|
17903
17905
|
this.crudForm.initControlDefaultValueFromExternal();
|
|
17904
17906
|
this.crudForm.fireModelChanged();
|
|
17905
17907
|
_a.label = 17;
|
|
@@ -17909,11 +17911,14 @@
|
|
|
17909
17911
|
});
|
|
17910
17912
|
};
|
|
17911
17913
|
DataFormBase.prototype.initDataAdd = function (evt) {
|
|
17912
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
17913
|
-
return
|
|
17914
|
-
|
|
17915
|
-
|
|
17916
|
-
|
|
17914
|
+
return __awaiter(this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
17915
|
+
return [2 /*return*/];
|
|
17916
|
+
}); });
|
|
17917
|
+
};
|
|
17918
|
+
DataFormBase.prototype.initDefaultSettingFileControl = function (evt) {
|
|
17919
|
+
if (!evt.rootModel.id && this.setting.schema.some(function (p) { return (p instanceof FileManagerControlSchema); })) {
|
|
17920
|
+
evt.rootModel.id = this._commonService.guid();
|
|
17921
|
+
}
|
|
17917
17922
|
};
|
|
17918
17923
|
/**
|
|
17919
17924
|
* Phải gọi hàm này khi override getDetail
|