chrv-components 1.11.49 → 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';
@@ -2021,11 +2021,16 @@ class ChrDateInputComponent extends ChrBaseInputComponent {
2021
2021
  if (parsed !== null) {
2022
2022
  this.onValueChange(parsed);
2023
2023
  }
2024
- this.valueSubject
2025
- .pipe(filter((v) => v !== null && v !== undefined))
2026
- .subscribe((v) => {
2027
- this.displayValue.set(this.dateToString(v));
2028
- });
2024
+ // this.valueSubject
2025
+ // .pipe(filter((v) => v !== null && v !== undefined))
2026
+ // .subscribe((v) => {
2027
+ // this.displayValue.set(this.dateToString(v));
2028
+ // });
2029
+ }
2030
+ writeValue(obj) {
2031
+ super.writeValue(obj);
2032
+ if (obj !== null && obj !== undefined)
2033
+ this.displayValue.set(this.dateToString(obj));
2029
2034
  }
2030
2035
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: ChrDateInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
2031
2036
  static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.0.6", type: ChrDateInputComponent, isStandalone: true, selector: "chr-date-input", inputs: { type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null } }, providers: [
@@ -2098,11 +2103,16 @@ class ChrDatetimeInputComponent extends ChrBaseInputComponent {
2098
2103
  if (parsed !== null) {
2099
2104
  this.onValueChange(parsed);
2100
2105
  }
2101
- this.valueSubject
2102
- .pipe(filter((v) => v !== null && v !== undefined))
2103
- .subscribe((v) => {
2104
- this.displayValue.set(this.dateToString(v));
2105
- });
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));
2106
2116
  }
2107
2117
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: ChrDatetimeInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
2108
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: [