@klippa/ngx-enhancy-forms 14.11.6 → 14.12.0
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/elements/select/select.component.mjs +11 -7
- package/fesm2015/klippa-ngx-enhancy-forms.mjs +13 -7
- package/fesm2015/klippa-ngx-enhancy-forms.mjs.map +1 -1
- package/fesm2020/klippa-ngx-enhancy-forms.mjs +10 -6
- package/fesm2020/klippa-ngx-enhancy-forms.mjs.map +1 -1
- package/lib/elements/select/select.component.d.ts +2 -1
- package/package.json +1 -1
|
@@ -945,6 +945,9 @@ class SelectComponent extends ValueAccessorBase {
|
|
|
945
945
|
this.focus = () => {
|
|
946
946
|
this.ngSelect.focus();
|
|
947
947
|
};
|
|
948
|
+
this.open = () => {
|
|
949
|
+
this.ngSelect.open();
|
|
950
|
+
};
|
|
948
951
|
this.close = () => {
|
|
949
952
|
this.ngSelect.close();
|
|
950
953
|
};
|
|
@@ -962,15 +965,16 @@ class SelectComponent extends ValueAccessorBase {
|
|
|
962
965
|
container.insertBefore(newNode, container.children[0]);
|
|
963
966
|
}
|
|
964
967
|
}
|
|
965
|
-
ngOnChanges(changes) {
|
|
968
|
+
async ngOnChanges(changes) {
|
|
966
969
|
if (isValueSet(changes.options)) {
|
|
967
970
|
this.lastItemIndexReached = -1;
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
971
|
+
// waiting for the thing to render until we fire the event
|
|
972
|
+
await awaitableForNextCycle();
|
|
973
|
+
await this.setWidthBasedOnOptionsWidths();
|
|
974
|
+
}
|
|
975
|
+
if (changes.dropdownPosition) {
|
|
976
|
+
this.dropdownPositionToUse = this.dropdownPosition;
|
|
972
977
|
}
|
|
973
|
-
this.dropdownPositionToUse = this.dropdownPosition;
|
|
974
978
|
}
|
|
975
979
|
getDefaultTranslation(key) {
|
|
976
980
|
switch (key) {
|