tnx-shared 5.1.466 → 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 +19 -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/components/crud/crud-list/crud-list.component.d.ts.map +1 -1
- package/esm2015/classes/base/data-form-base.js +10 -4
- package/esm2015/components/crud/crud-list/crud-list.component.js +10 -1
- package/fesm2015/tnx-shared.js +17 -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
|
|
@@ -24497,9 +24502,18 @@
|
|
|
24497
24502
|
return _this;
|
|
24498
24503
|
}
|
|
24499
24504
|
CrudListComponent.prototype.ngOnInit = function () {
|
|
24505
|
+
var _a;
|
|
24500
24506
|
if (this.environment.customizeUi) {
|
|
24501
24507
|
this.setting.showExportWordSelectedItems = this.environment.customizeUi.showExportWordSelectedItems;
|
|
24502
24508
|
}
|
|
24509
|
+
if ((_a = this.rootContext.data) === null || _a === void 0 ? void 0 : _a.currentAppMetadata) {
|
|
24510
|
+
if (this.rootContext.data.currentAppMetadata.setting) {
|
|
24511
|
+
var setting = this.rootContext.data.currentAppMetadata.setting;
|
|
24512
|
+
for (var key in setting) {
|
|
24513
|
+
this.setting[key] = setting[key];
|
|
24514
|
+
}
|
|
24515
|
+
}
|
|
24516
|
+
}
|
|
24503
24517
|
_super.prototype.ngOnInit.call(this);
|
|
24504
24518
|
};
|
|
24505
24519
|
CrudListComponent.prototype.adjustPositionLoadingMask = function () {
|