tnx-shared 5.1.486 → 5.1.487

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.
@@ -42364,7 +42364,8 @@ class AutoCompletePickerComponent extends ComponentBase {
42364
42364
  }
42365
42365
  writeValue(obj) {
42366
42366
  this.hasValue = false;
42367
- this.getDataSelectedValue(obj)
42367
+ let value = !isLiteralObject(obj) ? obj : obj[this.control.valueField];
42368
+ this.getDataSelectedValue(value)
42368
42369
  .then(res => {
42369
42370
  this.updateSelectedValue();
42370
42371
  this.checkFireReady();
@@ -52454,7 +52455,8 @@ class UserPickerComponent extends ComponentBase {
52454
52455
  }
52455
52456
  else {
52456
52457
  if (obj != null) {
52457
- this.controlPicker.baseService.getDataDropdownByFilter([this.newFilter(this.controlPicker.valueField, Operator.equal, obj)], this.getDropdownOptions()).then((res) => __awaiter(this, void 0, void 0, function* () {
52458
+ let value = !isLiteralObject(obj) ? obj : obj[this.controlPicker.valueField];
52459
+ this.controlPicker.baseService.getDataDropdownByFilter([this.newFilter(this.controlPicker.valueField, Operator.equal, value)], this.getDropdownOptions()).then((res) => __awaiter(this, void 0, void 0, function* () {
52458
52460
  if (res.length > 0) {
52459
52461
  yield this.reStructureDataSource(res);
52460
52462
  this.results = this.dataSource;