tnx-shared 5.1.233 → 5.1.234
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 +16 -1
- 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/autocomplete-picker/autocomplete-picker.component.d.ts +2 -0
- package/components/autocomplete-picker/autocomplete-picker.component.d.ts.map +1 -1
- package/esm2015/components/autocomplete-picker/autocomplete-picker.component.js +15 -2
- package/fesm2015/tnx-shared.js +14 -1
- package/fesm2015/tnx-shared.js.map +1 -1
- package/package.json +2 -2
- package/tnx-shared.metadata.json +1 -1
|
@@ -25857,6 +25857,9 @@
|
|
|
25857
25857
|
this.setDefaultSetting();
|
|
25858
25858
|
this.buildFilterKeyword();
|
|
25859
25859
|
this.buildSettingEntityPicker();
|
|
25860
|
+
if (this.readOnlyValues) {
|
|
25861
|
+
this.funcCheckReadonlyItem = this._funcCheckReadonlyItem;
|
|
25862
|
+
}
|
|
25860
25863
|
};
|
|
25861
25864
|
AutoCompletePickerComponent.prototype.setDefaultSetting = function () {
|
|
25862
25865
|
var _this = this;
|
|
@@ -26134,9 +26137,21 @@
|
|
|
26134
26137
|
AutoCompletePickerComponent.prototype.getValueReturn = function () {
|
|
26135
26138
|
return this.funcReturnValue(this.selectedValue);
|
|
26136
26139
|
};
|
|
26140
|
+
AutoCompletePickerComponent.prototype._funcCheckReadonlyItem = function (item) {
|
|
26141
|
+
var _this = this;
|
|
26142
|
+
if (this.readOnlyValues.some(function (q) { return q == item[_this.control.valueField]; })) {
|
|
26143
|
+
item._disabled = true;
|
|
26144
|
+
}
|
|
26145
|
+
};
|
|
26137
26146
|
AutoCompletePickerComponent.prototype.updateSelectedValue = function () {
|
|
26147
|
+
var _this = this;
|
|
26138
26148
|
if (this.control.multiple) {
|
|
26139
|
-
|
|
26149
|
+
var selectedValue_1 = [];
|
|
26150
|
+
this.selectedValueObject.forEach(function (item) {
|
|
26151
|
+
selectedValue_1.push(item.value);
|
|
26152
|
+
_this.funcCheckReadonlyItem(item.value);
|
|
26153
|
+
});
|
|
26154
|
+
this.selectedValue = selectedValue_1;
|
|
26140
26155
|
this.tooltip = null;
|
|
26141
26156
|
}
|
|
26142
26157
|
else {
|