tnx-shared 5.2.15 → 5.2.16
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 +10 -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/components/entity-picker/entity-picker.component.d.ts +1 -0
- package/components/entity-picker/entity-picker.component.d.ts.map +1 -1
- package/esm2015/components/entity-picker/entity-picker.component.js +11 -9
- package/fesm2015/tnx-shared.js +10 -8
- package/fesm2015/tnx-shared.js.map +1 -1
- package/package.json +2 -2
- package/tnx-shared.metadata.json +1 -1
|
@@ -47774,13 +47774,7 @@
|
|
|
47774
47774
|
if (obj) {
|
|
47775
47775
|
if (obj instanceof Array) {
|
|
47776
47776
|
// this.selectedValue = obj;
|
|
47777
|
-
this.selectedValue = obj.map(function (x) {
|
|
47778
|
-
var temp = {
|
|
47779
|
-
_dropdownvalue: _this.control.valueField,
|
|
47780
|
-
};
|
|
47781
|
-
temp[_this.control.valueField] = x;
|
|
47782
|
-
return temp;
|
|
47783
|
-
});
|
|
47777
|
+
this.selectedValue = obj.map(function (x) { return _this.getObjSelectValueFromValue(x); });
|
|
47784
47778
|
this._triggerProcessData();
|
|
47785
47779
|
}
|
|
47786
47780
|
}
|
|
@@ -47788,10 +47782,18 @@
|
|
|
47788
47782
|
else {
|
|
47789
47783
|
this.selectedValue = null;
|
|
47790
47784
|
if (obj) {
|
|
47791
|
-
this.selectedValue = obj;
|
|
47785
|
+
this.selectedValue = this.getObjSelectValueFromValue(obj);
|
|
47786
|
+
this._triggerProcessData();
|
|
47792
47787
|
}
|
|
47793
47788
|
}
|
|
47794
47789
|
};
|
|
47790
|
+
EntityPickerComponent.prototype.getObjSelectValueFromValue = function (value) {
|
|
47791
|
+
var temp = {
|
|
47792
|
+
_dropdownvalue: this.control.valueField,
|
|
47793
|
+
};
|
|
47794
|
+
temp[this.control.valueField] = value;
|
|
47795
|
+
return temp;
|
|
47796
|
+
};
|
|
47795
47797
|
EntityPickerComponent.prototype.registerOnChange = function (fn) {
|
|
47796
47798
|
this.onChange = fn;
|
|
47797
47799
|
};
|