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
package/fesm2015/tnx-shared.js
CHANGED
|
@@ -15475,6 +15475,7 @@ class DataFormBase extends ComponentBaseWithButton {
|
|
|
15475
15475
|
this.saving = false;
|
|
15476
15476
|
this.getDetailPlusUrl = null;
|
|
15477
15477
|
this.insertPlusUrl = null;
|
|
15478
|
+
this.updatePlusUrl = null;
|
|
15478
15479
|
this.dynamicControl = {};
|
|
15479
15480
|
this.setValidateForm = true;
|
|
15480
15481
|
this.haveEntityMetadataAPI = true;
|
|
@@ -16053,7 +16054,7 @@ class DataFormBase extends ComponentBaseWithButton {
|
|
|
16053
16054
|
handleUpdateError() {
|
|
16054
16055
|
}
|
|
16055
16056
|
getPromiseActionUpdate() {
|
|
16056
|
-
return this.setting.baseService.put(this.model.data.id.toString(), this.model.data);
|
|
16057
|
+
return this.setting.baseService.put(this.model.data.id.toString(), this.model.data, this.updatePlusUrl);
|
|
16057
16058
|
}
|
|
16058
16059
|
setDefaultValue(model) {
|
|
16059
16060
|
var _a, _b;
|
|
@@ -21970,7 +21971,7 @@ class CommonSearchFormComponent extends DataFormBase {
|
|
|
21970
21971
|
const result = [];
|
|
21971
21972
|
const totalControlPerRow = 12 / this.mdWidth;
|
|
21972
21973
|
columns.forEach(column => {
|
|
21973
|
-
var _a;
|
|
21974
|
+
var _a, _b;
|
|
21974
21975
|
if (!column.isInTable || !column.includeSelect) {
|
|
21975
21976
|
this.lstControlNotIn.push(column.field);
|
|
21976
21977
|
}
|
|
@@ -22014,7 +22015,7 @@ class CommonSearchFormComponent extends DataFormBase {
|
|
|
22014
22015
|
}
|
|
22015
22016
|
}
|
|
22016
22017
|
else {
|
|
22017
|
-
const addColumn = Object.assign(Object.assign({}, column), { placeholder: column.label
|
|
22018
|
+
const addColumn = Object.assign(Object.assign({}, column), { placeholder: (_b = column.placeholder) !== null && _b !== void 0 ? _b : `Chọn ${column.label}`, showLabel: false, defaultValue: [undefined, undefined], mdWidth: this.mdWidth });
|
|
22018
22019
|
switch (column.dataType) {
|
|
22019
22020
|
case DataType.date:
|
|
22020
22021
|
case DataType.datetime:
|