@brggroup/share-lib 0.0.19 → 0.0.20
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.
|
@@ -2145,7 +2145,13 @@ class ExtendSelectComponent {
|
|
|
2145
2145
|
get cssHeight() {
|
|
2146
2146
|
return this.inputHeight ? +this.inputHeight.replaceAll('px', '') - 1 + 'px' : null;
|
|
2147
2147
|
}
|
|
2148
|
-
ngOnInit() {
|
|
2148
|
+
ngOnInit() {
|
|
2149
|
+
if (this.formData && this.controlName) {
|
|
2150
|
+
this.formData.controls[this.controlName].valueChanges.subscribe((val) => {
|
|
2151
|
+
this.itemChange.emit(this.lstItem.find((x) => x[this.valueField] == val));
|
|
2152
|
+
});
|
|
2153
|
+
}
|
|
2154
|
+
}
|
|
2149
2155
|
getDisplay(item) {
|
|
2150
2156
|
if (this.displayField) {
|
|
2151
2157
|
return item[this.displayField];
|
|
@@ -2164,7 +2170,7 @@ class ExtendSelectComponent {
|
|
|
2164
2170
|
this._ngModel = val;
|
|
2165
2171
|
this._ngModelChange.emit(val);
|
|
2166
2172
|
if (this.valueField) {
|
|
2167
|
-
this.itemChange.emit(this.lstItem.find(x => x[this.valueField] == val));
|
|
2173
|
+
this.itemChange.emit(this.lstItem.find((x) => x[this.valueField] == val));
|
|
2168
2174
|
}
|
|
2169
2175
|
}
|
|
2170
2176
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.7", ngImport: i0, type: ExtendSelectComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|