chrv-components 1.11.50 → 1.11.51

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.
Binary file
@@ -10,7 +10,7 @@ import { MatTooltipModule, MatTooltip } from '@angular/material/tooltip';
10
10
  import * as i1 from '@angular/common';
11
11
  import { CommonModule, AsyncPipe, DatePipe, DATE_PIPE_DEFAULT_OPTIONS, isPlatformBrowser, NgClass } from '@angular/common';
12
12
  import { MatDialogTitle, MatDialogContent, MatDialogActions, MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';
13
- import { Subject, Observable, map, BehaviorSubject, skip, debounceTime, distinctUntilChanged, startWith, combineLatestWith, filter, from, mergeMap, toArray, timer, of, catchError, forkJoin, take, skipWhile, tap, finalize as finalize$1, interval } from 'rxjs';
13
+ import { Subject, Observable, map, BehaviorSubject, skip, debounceTime, distinctUntilChanged, startWith, combineLatestWith, from, mergeMap, toArray, timer, of, catchError, forkJoin, take, skipWhile, tap, finalize as finalize$1, interval } from 'rxjs';
14
14
  import * as i1$1 from '@angular/forms';
15
15
  import { NG_VALIDATORS, Validators, NgControl, ReactiveFormsModule, FormsModule, FormBuilder, FormControl } from '@angular/forms';
16
16
  import * as i2$2 from '@angular/material/autocomplete';
@@ -2103,11 +2103,16 @@ class ChrDatetimeInputComponent extends ChrBaseInputComponent {
2103
2103
  if (parsed !== null) {
2104
2104
  this.onValueChange(parsed);
2105
2105
  }
2106
- this.valueSubject
2107
- .pipe(filter((v) => v !== null && v !== undefined))
2108
- .subscribe((v) => {
2109
- this.displayValue.set(this.dateToString(v));
2110
- });
2106
+ // this.valueSubject
2107
+ // .pipe(filter((v) => v !== null && v !== undefined))
2108
+ // .subscribe((v) => {
2109
+ // this.displayValue.set(this.dateToString(v));
2110
+ // });
2111
+ }
2112
+ writeValue(obj) {
2113
+ super.writeValue(obj);
2114
+ if (obj !== null && obj !== undefined)
2115
+ this.displayValue.set(this.dateToString(obj));
2111
2116
  }
2112
2117
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: ChrDatetimeInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
2113
2118
  static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.0.6", type: ChrDatetimeInputComponent, isStandalone: true, selector: "chr-datetime-input", inputs: { type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null } }, providers: [