@vsn-ux/ngx-gaia 0.9.12 → 0.9.13
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.
|
@@ -1729,6 +1729,7 @@ class GaDatepickerInputDirective {
|
|
|
1729
1729
|
updateValue(value, { updateView, emitToNgModel, } = {}) {
|
|
1730
1730
|
this.value.set(value);
|
|
1731
1731
|
this.lastValueValid.set(true);
|
|
1732
|
+
this.lastDateChangeEmittedValue.set(this.dateStruct());
|
|
1732
1733
|
if (updateView) {
|
|
1733
1734
|
this.formatValue();
|
|
1734
1735
|
}
|
|
@@ -1742,7 +1743,6 @@ class GaDatepickerInputDirective {
|
|
|
1742
1743
|
// ControlValueAccessor implementation
|
|
1743
1744
|
writeValue(value) {
|
|
1744
1745
|
this.updateValue(value, { updateView: true });
|
|
1745
|
-
this.lastDateChangeEmittedValue.set(this.dateStruct());
|
|
1746
1746
|
}
|
|
1747
1747
|
registerOnChange(fn) {
|
|
1748
1748
|
this.onNgChangeFn = fn;
|
|
@@ -4009,6 +4009,17 @@ class GaSelectComponent {
|
|
|
4009
4009
|
this.connectedOverlay()?.overlayRef?.updatePosition();
|
|
4010
4010
|
});
|
|
4011
4011
|
});
|
|
4012
|
+
effect(() => {
|
|
4013
|
+
// update the overlayPosition since it may change size when selecting/deselecting options
|
|
4014
|
+
this.value();
|
|
4015
|
+
untracked(() => {
|
|
4016
|
+
if (this.multiple()) {
|
|
4017
|
+
setTimeout(() => {
|
|
4018
|
+
this.connectedOverlay()?.overlayRef?.updatePosition();
|
|
4019
|
+
});
|
|
4020
|
+
}
|
|
4021
|
+
});
|
|
4022
|
+
});
|
|
4012
4023
|
}
|
|
4013
4024
|
ngAfterContentInit() {
|
|
4014
4025
|
effect(() => {
|
|
@@ -4110,8 +4121,9 @@ class GaSelectComponent {
|
|
|
4110
4121
|
this.inputSearch()?.nativeElement !== document.activeElement) {
|
|
4111
4122
|
this._onTouched?.();
|
|
4112
4123
|
}
|
|
4113
|
-
this.
|
|
4114
|
-
this.
|
|
4124
|
+
const value = this.multiple() ? [] : null;
|
|
4125
|
+
this.value.set(value);
|
|
4126
|
+
this._onModelChanged?.(value);
|
|
4115
4127
|
this.autoClose();
|
|
4116
4128
|
}
|
|
4117
4129
|
onInputKeyDown(event) {
|