@recursyve/nice-ui-kit.v2 13.1.0-beta.87 → 13.1.0-beta.90
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/esm2020/lib/api/nice.api.mjs +1 -1
- package/esm2020/lib/components/async-typeahead/async-typeahead.component.mjs +8 -5
- package/fesm2015/recursyve-nice-ui-kit.v2.mjs +19 -14
- package/fesm2015/recursyve-nice-ui-kit.v2.mjs.map +1 -1
- package/fesm2020/recursyve-nice-ui-kit.v2.mjs +7 -4
- package/fesm2020/recursyve-nice-ui-kit.v2.mjs.map +1 -1
- package/lib/api/nice.api.d.ts +4 -1
- package/lib/components/async-typeahead/async-typeahead.component.d.ts +1 -1
- package/package.json +1 -1
|
@@ -2807,6 +2807,7 @@ class NiceAsyncTypeaheadComponent extends _BaseAsyncTypeaheadComponent {
|
|
|
2807
2807
|
this.focused = false;
|
|
2808
2808
|
this.stateChanges.next();
|
|
2809
2809
|
}
|
|
2810
|
+
this.changeDetectorRef.detectChanges();
|
|
2810
2811
|
}
|
|
2811
2812
|
get disabled() {
|
|
2812
2813
|
if (this.ngControl && this.ngControl.disabled !== null) {
|
|
@@ -2901,7 +2902,7 @@ class NiceAsyncTypeaheadComponent extends _BaseAsyncTypeaheadComponent {
|
|
|
2901
2902
|
this.updateErrorState();
|
|
2902
2903
|
}
|
|
2903
2904
|
}
|
|
2904
|
-
writeValue(value) {
|
|
2905
|
+
async writeValue(value) {
|
|
2905
2906
|
if (this._value === value || (isNullOrUndefined(this._value) && isNullOrUndefined(value))) {
|
|
2906
2907
|
return;
|
|
2907
2908
|
}
|
|
@@ -2909,12 +2910,14 @@ class NiceAsyncTypeaheadComponent extends _BaseAsyncTypeaheadComponent {
|
|
|
2909
2910
|
this.onRemove(null);
|
|
2910
2911
|
return;
|
|
2911
2912
|
}
|
|
2912
|
-
this.value = value;
|
|
2913
2913
|
if (value instanceof NiceTypeaheadNewValue) {
|
|
2914
2914
|
this.updateSearchInput();
|
|
2915
2915
|
return;
|
|
2916
2916
|
}
|
|
2917
|
-
|
|
2917
|
+
else {
|
|
2918
|
+
await this.service.setActiveId(this.resource, value, this.searchOptions).then(() => this.updateSearchInput());
|
|
2919
|
+
}
|
|
2920
|
+
this.value = value;
|
|
2918
2921
|
}
|
|
2919
2922
|
registerOnChange(propagate) {
|
|
2920
2923
|
this.propagate = propagate;
|
|
@@ -2967,7 +2970,7 @@ class NiceAsyncTypeaheadComponent extends _BaseAsyncTypeaheadComponent {
|
|
|
2967
2970
|
}
|
|
2968
2971
|
onRemove(event) {
|
|
2969
2972
|
if (event) {
|
|
2970
|
-
event.stopPropagation();
|
|
2973
|
+
// event.stopPropagation();
|
|
2971
2974
|
}
|
|
2972
2975
|
if (this.disabled) {
|
|
2973
2976
|
return;
|