@pumpkin-tech/pumpkin-tech-ng 0.2.27 → 0.2.28
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.
|
@@ -5662,6 +5662,7 @@ class InputDateComponent extends BaseField {
|
|
|
5662
5662
|
timeZone;
|
|
5663
5663
|
emit = 'isoDate';
|
|
5664
5664
|
timeString = '';
|
|
5665
|
+
destroy$ = new Subject();
|
|
5665
5666
|
onChange = () => { };
|
|
5666
5667
|
onTouched = () => { };
|
|
5667
5668
|
get isDisabled() { return this.disabled || this.loading; }
|
|
@@ -5701,6 +5702,15 @@ class InputDateComponent extends BaseField {
|
|
|
5701
5702
|
super(el);
|
|
5702
5703
|
this.cdr = cdr;
|
|
5703
5704
|
}
|
|
5705
|
+
ngOnInit() {
|
|
5706
|
+
this.dateCtrl.valueChanges
|
|
5707
|
+
.pipe(takeUntil$1(this.destroy$))
|
|
5708
|
+
.subscribe(() => this.emitCombined());
|
|
5709
|
+
}
|
|
5710
|
+
ngOnDestroy() {
|
|
5711
|
+
this.destroy$.next();
|
|
5712
|
+
this.destroy$.complete();
|
|
5713
|
+
}
|
|
5704
5714
|
// SINCRONIZA disabled/loading -> FormControl
|
|
5705
5715
|
ngOnChanges(changes) {
|
|
5706
5716
|
if (('disabled' in changes) || ('loading' in changes)) {
|