@open-rlb/ng-bootstrap 3.0.0 → 3.0.2
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.
|
@@ -7240,7 +7240,6 @@ class AbstractAutocompleteComponent extends AbstractComponent {
|
|
|
7240
7240
|
update(ev) {
|
|
7241
7241
|
const t = ev;
|
|
7242
7242
|
const inputValue = t?.value || '';
|
|
7243
|
-
// this.value = inputValue as any;
|
|
7244
7243
|
const valueToPropagate = inputValue === '' ? { text: '', value: '' } : { text: inputValue, value: inputValue };
|
|
7245
7244
|
this.setValue(valueToPropagate);
|
|
7246
7245
|
if (this.control && this.control.control) {
|
|
@@ -7252,7 +7251,7 @@ class AbstractAutocompleteComponent extends AbstractComponent {
|
|
|
7252
7251
|
}
|
|
7253
7252
|
this.typingTimeout = setTimeout(() => {
|
|
7254
7253
|
if (!this.disabled) {
|
|
7255
|
-
this.getSuggestions(inputValue);
|
|
7254
|
+
this.getSuggestions(inputValue);
|
|
7256
7255
|
}
|
|
7257
7256
|
}, 500);
|
|
7258
7257
|
}
|
|
@@ -8710,14 +8709,15 @@ class AutocompleteCountryDialCodeComponent extends AbstractAutocompleteComponent
|
|
|
8710
8709
|
}
|
|
8711
8710
|
}
|
|
8712
8711
|
getItemText(data) {
|
|
8712
|
+
const valueToFind = typeof data === 'object' ? data?.value : data;
|
|
8713
8713
|
const h = this.getCountries().find(c => {
|
|
8714
8714
|
if (typeof c === 'object') {
|
|
8715
8715
|
const _c = c;
|
|
8716
|
-
return _c.value ===
|
|
8716
|
+
return _c.value === valueToFind;
|
|
8717
8717
|
}
|
|
8718
8718
|
return false;
|
|
8719
8719
|
});
|
|
8720
|
-
return (typeof h === 'object' ? h.text : '');
|
|
8720
|
+
return (typeof h === 'object' ? h.text : (typeof data === 'string' ? data : ''));
|
|
8721
8721
|
}
|
|
8722
8722
|
getCountries() {
|
|
8723
8723
|
if (this.enableFlagIcons) {
|
|
@@ -9040,14 +9040,15 @@ class AutocompleteCountryComponent extends AbstractAutocompleteComponent {
|
|
|
9040
9040
|
}
|
|
9041
9041
|
}
|
|
9042
9042
|
getItemText(data) {
|
|
9043
|
+
const valueToFind = typeof data === 'object' ? data?.value : data;
|
|
9043
9044
|
const h = this.getCountries().find(c => {
|
|
9044
9045
|
if (typeof c === 'object') {
|
|
9045
9046
|
const _c = c;
|
|
9046
|
-
return _c.value ===
|
|
9047
|
+
return _c.value === valueToFind;
|
|
9047
9048
|
}
|
|
9048
9049
|
return false;
|
|
9049
9050
|
});
|
|
9050
|
-
return (typeof h === 'object' ? h.text : '');
|
|
9051
|
+
return (typeof h === 'object' ? h.text : (typeof data === 'string' ? data : ''));
|
|
9051
9052
|
}
|
|
9052
9053
|
getCountries() {
|
|
9053
9054
|
if (this.enableFlagIcons) {
|
|
@@ -9176,7 +9177,7 @@ class AutocompleteTimezonesComponent extends AbstractAutocompleteComponent {
|
|
|
9176
9177
|
return data.text || '';
|
|
9177
9178
|
}
|
|
9178
9179
|
else if (typeof data === 'string') {
|
|
9179
|
-
return data
|
|
9180
|
+
return data;
|
|
9180
9181
|
}
|
|
9181
9182
|
return '';
|
|
9182
9183
|
}
|