tnx-shared 5.3.238 → 5.3.240
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 +9 -8
- 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 +3 -2
- package/esm2015/components/common-search-form/common-search-form.component.js +3 -3
- package/fesm2015/tnx-shared.js +4 -3
- package/fesm2015/tnx-shared.js.map +1 -1
- package/package.json +2 -2
- package/tnx-shared.metadata.json +1 -1
|
@@ -18427,6 +18427,7 @@
|
|
|
18427
18427
|
_this.saving = false;
|
|
18428
18428
|
_this.getDetailPlusUrl = null;
|
|
18429
18429
|
_this.insertPlusUrl = null;
|
|
18430
|
+
_this.updatePlusUrl = null;
|
|
18430
18431
|
_this.dynamicControl = {};
|
|
18431
18432
|
_this.setValidateForm = true;
|
|
18432
18433
|
_this.haveEntityMetadataAPI = true;
|
|
@@ -19207,7 +19208,7 @@
|
|
|
19207
19208
|
DataFormBase.prototype.handleUpdateError = function () {
|
|
19208
19209
|
};
|
|
19209
19210
|
DataFormBase.prototype.getPromiseActionUpdate = function () {
|
|
19210
|
-
return this.setting.baseService.put(this.model.data.id.toString(), this.model.data);
|
|
19211
|
+
return this.setting.baseService.put(this.model.data.id.toString(), this.model.data, this.updatePlusUrl);
|
|
19211
19212
|
};
|
|
19212
19213
|
DataFormBase.prototype.setDefaultValue = function (model) {
|
|
19213
19214
|
var _a, _b;
|
|
@@ -32182,7 +32183,7 @@
|
|
|
32182
32183
|
var result = [];
|
|
32183
32184
|
var totalControlPerRow = 12 / this.mdWidth;
|
|
32184
32185
|
columns.forEach(function (column) {
|
|
32185
|
-
var _a;
|
|
32186
|
+
var _a, _b;
|
|
32186
32187
|
if (!column.isInTable || !column.includeSelect) {
|
|
32187
32188
|
_this.lstControlNotIn.push(column.field);
|
|
32188
32189
|
}
|
|
@@ -32226,7 +32227,7 @@
|
|
|
32226
32227
|
}
|
|
32227
32228
|
}
|
|
32228
32229
|
else {
|
|
32229
|
-
var addColumn = Object.assign(Object.assign({}, column), { placeholder: column.label, showLabel: false, defaultValue: [undefined, undefined], mdWidth: _this.mdWidth });
|
|
32230
|
+
var addColumn = Object.assign(Object.assign({}, column), { placeholder: (_b = column.placeholder) !== null && _b !== void 0 ? _b : "Ch\u1ECDn " + column.label, showLabel: false, defaultValue: [undefined, undefined], mdWidth: _this.mdWidth });
|
|
32230
32231
|
switch (column.dataType) {
|
|
32231
32232
|
case exports.DataType.date:
|
|
32232
32233
|
case exports.DataType.datetime:
|
|
@@ -32375,14 +32376,14 @@
|
|
|
32375
32376
|
return __awaiter(this, void 0, void 0, function () {
|
|
32376
32377
|
var promises;
|
|
32377
32378
|
var _this = this;
|
|
32378
|
-
return __generator(this, function (
|
|
32379
|
-
switch (
|
|
32379
|
+
return __generator(this, function (_c) {
|
|
32380
|
+
switch (_c.label) {
|
|
32380
32381
|
case 0:
|
|
32381
32382
|
promises = [];
|
|
32382
32383
|
this.lstControlLazyLoad.forEach(function (control) { return promises.push(_this.formControls[control]._component._getDataSource()); });
|
|
32383
32384
|
return [4 /*yield*/, Promise.all(promises)];
|
|
32384
32385
|
case 1:
|
|
32385
|
-
|
|
32386
|
+
_c.sent();
|
|
32386
32387
|
this.lstControlLazyLoad = [];
|
|
32387
32388
|
return [2 /*return*/];
|
|
32388
32389
|
}
|
|
@@ -32391,14 +32392,14 @@
|
|
|
32391
32392
|
};
|
|
32392
32393
|
CommonSearchFormComponent.prototype.onFormInitialized = function (formEvent) {
|
|
32393
32394
|
return __awaiter(this, void 0, void 0, function () {
|
|
32394
|
-
return __generator(this, function (
|
|
32395
|
+
return __generator(this, function (_c) {
|
|
32395
32396
|
return [2 /*return*/];
|
|
32396
32397
|
});
|
|
32397
32398
|
});
|
|
32398
32399
|
};
|
|
32399
32400
|
CommonSearchFormComponent.prototype.modifyDetailData = function (data) {
|
|
32400
32401
|
return __awaiter(this, void 0, void 0, function () {
|
|
32401
|
-
return __generator(this, function (
|
|
32402
|
+
return __generator(this, function (_c) {
|
|
32402
32403
|
return [2 /*return*/];
|
|
32403
32404
|
});
|
|
32404
32405
|
});
|