@vsn-ux/ngx-gaia 0.12.0 → 0.12.1
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.
|
@@ -1694,6 +1694,7 @@ class GaDatepickerInputDirective {
|
|
|
1694
1694
|
disabled = linkedSignal(() => !!this.disabledInput(), ...(ngDevMode ? [{ debugName: "disabled" }] : []));
|
|
1695
1695
|
lastValueValid = signal(false, ...(ngDevMode ? [{ debugName: "lastValueValid" }] : []));
|
|
1696
1696
|
lastDateChangeEmittedValue = signal(null, ...(ngDevMode ? [{ debugName: "lastDateChangeEmittedValue" }] : []));
|
|
1697
|
+
focused = false;
|
|
1697
1698
|
onNgChangeFn;
|
|
1698
1699
|
onNgTouchedFn;
|
|
1699
1700
|
constructor() {
|
|
@@ -1706,6 +1707,9 @@ class GaDatepickerInputDirective {
|
|
|
1706
1707
|
});
|
|
1707
1708
|
});
|
|
1708
1709
|
}
|
|
1710
|
+
onFocus() {
|
|
1711
|
+
this.focused = true;
|
|
1712
|
+
}
|
|
1709
1713
|
onInput(event) {
|
|
1710
1714
|
const target = event.target;
|
|
1711
1715
|
// Parse the input value
|
|
@@ -1720,6 +1724,7 @@ class GaDatepickerInputDirective {
|
|
|
1720
1724
|
this.onNgChangeFn?.(newValue);
|
|
1721
1725
|
}
|
|
1722
1726
|
onBlur() {
|
|
1727
|
+
this.focused = false;
|
|
1723
1728
|
if (this.dateStruct()) {
|
|
1724
1729
|
this.formatValue();
|
|
1725
1730
|
}
|
|
@@ -1751,7 +1756,7 @@ class GaDatepickerInputDirective {
|
|
|
1751
1756
|
}
|
|
1752
1757
|
// ControlValueAccessor implementation
|
|
1753
1758
|
writeValue(value) {
|
|
1754
|
-
this.updateValue(value, { updateView:
|
|
1759
|
+
this.updateValue(value, { updateView: !this.focused });
|
|
1755
1760
|
}
|
|
1756
1761
|
registerOnChange(fn) {
|
|
1757
1762
|
this.onNgChangeFn = fn;
|
|
@@ -1786,7 +1791,7 @@ class GaDatepickerInputDirective {
|
|
|
1786
1791
|
return null;
|
|
1787
1792
|
}
|
|
1788
1793
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: GaDatepickerInputDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
1789
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.0", type: GaDatepickerInputDirective, isStandalone: true, selector: "input[gaDatepickerInput]", inputs: { valueInput: { classPropertyName: "valueInput", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, disabledInput: { classPropertyName: "disabledInput", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, min: { classPropertyName: "min", publicName: "min", isSignal: true, isRequired: false, transformFunction: null }, max: { classPropertyName: "max", publicName: "max", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { dateInput: "dateInput", dateChange: "dateChange" }, host: { listeners: { "blur": "onBlur()", "input": "onInput($event)" }, properties: { "disabled": "disabled()" } }, providers: [
|
|
1794
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.0", type: GaDatepickerInputDirective, isStandalone: true, selector: "input[gaDatepickerInput]", inputs: { valueInput: { classPropertyName: "valueInput", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, disabledInput: { classPropertyName: "disabledInput", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, min: { classPropertyName: "min", publicName: "min", isSignal: true, isRequired: false, transformFunction: null }, max: { classPropertyName: "max", publicName: "max", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { dateInput: "dateInput", dateChange: "dateChange" }, host: { listeners: { "focus": "onFocus()", "blur": "onBlur()", "input": "onInput($event)" }, properties: { "disabled": "disabled()" } }, providers: [
|
|
1790
1795
|
{
|
|
1791
1796
|
provide: NG_VALUE_ACCESSOR,
|
|
1792
1797
|
useExisting: forwardRef(() => GaDatepickerInputDirective),
|
|
@@ -1818,6 +1823,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImpor
|
|
|
1818
1823
|
],
|
|
1819
1824
|
host: {
|
|
1820
1825
|
'[disabled]': 'disabled()',
|
|
1826
|
+
'(focus)': 'onFocus()',
|
|
1821
1827
|
'(blur)': 'onBlur()',
|
|
1822
1828
|
'(input)': 'onInput($event)',
|
|
1823
1829
|
},
|