tnx-shared 5.3.383 → 5.3.384
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 +17 -6
- 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/components/entity-picker/entity-picker-dialog/components/entity-picker-data/entity-picker-data.component.d.ts.map +1 -1
- package/components/entity-picker/entity-picker.component.d.ts.map +1 -1
- package/esm2015/components/entity-picker/entity-picker-dialog/components/entity-picker-data/entity-picker-data.component.js +6 -2
- package/esm2015/components/entity-picker/entity-picker.component.js +12 -5
- package/fesm2015/tnx-shared.js +16 -5
- package/fesm2015/tnx-shared.js.map +1 -1
- package/package.json +2 -2
|
@@ -47168,8 +47168,9 @@
|
|
|
47168
47168
|
this.onPickSelected.emit(data);
|
|
47169
47169
|
};
|
|
47170
47170
|
EntityPickerDataComponent.prototype.modifyGridInfo = function (gridInfo) {
|
|
47171
|
+
var _a;
|
|
47171
47172
|
return __awaiter(this, void 0, void 0, function () {
|
|
47172
|
-
var allow;
|
|
47173
|
+
var value, allow;
|
|
47173
47174
|
return __generator(this, function (_c) {
|
|
47174
47175
|
switch (_c.label) {
|
|
47175
47176
|
case 0:
|
|
@@ -47181,7 +47182,10 @@
|
|
|
47181
47182
|
}
|
|
47182
47183
|
else {
|
|
47183
47184
|
if (this._value) {
|
|
47184
|
-
|
|
47185
|
+
value = this._value;
|
|
47186
|
+
if (typeof (this._value) == 'object')
|
|
47187
|
+
value = this._value[(_a = this.control.valueField) !== null && _a !== void 0 ? _a : 'id'];
|
|
47188
|
+
gridInfo.filters.push(this.newFilter(this.control.valueField, exports.Operator.notEqual, value));
|
|
47185
47189
|
}
|
|
47186
47190
|
}
|
|
47187
47191
|
return [4 /*yield*/, appendDefaultFilter(gridInfo.filters, this.control.defaultFilters)];
|
|
@@ -48682,11 +48686,18 @@
|
|
|
48682
48686
|
}
|
|
48683
48687
|
}
|
|
48684
48688
|
};
|
|
48689
|
+
// Sang VV đã sửa
|
|
48685
48690
|
EntityPickerComponent.prototype.getObjSelectValueFromValue = function (value) {
|
|
48686
|
-
var temp = {
|
|
48687
|
-
|
|
48688
|
-
|
|
48689
|
-
|
|
48691
|
+
var temp = {};
|
|
48692
|
+
if (typeof (value) == 'object') {
|
|
48693
|
+
temp = Object.assign(Object.assign({}, value), { _dropdownvalue: this.control.valueField });
|
|
48694
|
+
}
|
|
48695
|
+
else {
|
|
48696
|
+
temp = {
|
|
48697
|
+
_dropdownvalue: this.control.valueField,
|
|
48698
|
+
};
|
|
48699
|
+
temp[this.control.valueField] = value;
|
|
48700
|
+
}
|
|
48690
48701
|
return temp;
|
|
48691
48702
|
};
|
|
48692
48703
|
EntityPickerComponent.prototype.registerOnChange = function (fn) {
|