chrv-components 1.12.147 → 1.12.148

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
@@ -4159,6 +4159,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
4159
4159
  }], propDecorators: { chrPopover: [{ type: i0.Input, args: [{ isSignal: true, alias: "chrPopover", required: true }] }], chrPopoverPosition: [{ type: i0.Input, args: [{ isSignal: true, alias: "chrPopoverPosition", required: false }] }], chrPopoverData: [{ type: i0.Input, args: [{ isSignal: true, alias: "chrPopoverData", required: false }] }], chrPopoverOnHover: [{ type: i0.Input, args: [{ isSignal: true, alias: "chrPopoverOnHover", required: false }] }] } });
4160
4160
 
4161
4161
  class ChrInputComponent {
4162
+ // public valueChanges = output<any>();
4163
+ /* CODE */
4162
4164
  constructor() {
4163
4165
  /**
4164
4166
  * Label of the input
@@ -4448,9 +4450,18 @@ class ChrInputComponent {
4448
4450
  };
4449
4451
  this.ngControl.set(inject(NgControl, { optional: true, self: true }));
4450
4452
  this.ensureNgControl();
4453
+ effect(() => {
4454
+ const value = this.value();
4455
+ const ngControl = this.ngControl();
4456
+ if (ngControl != null)
4457
+ return;
4458
+ const isFocused = this.isFocused();
4459
+ if (!isFocused) {
4460
+ const formatted = this.formatValue(value);
4461
+ this.displayValue.set(formatted);
4462
+ }
4463
+ });
4451
4464
  }
4452
- // public valueChanges = output<any>();
4453
- /* CODE */
4454
4465
  ngOnInit() {
4455
4466
  this.configureDebouncing();
4456
4467
  this.configureEventListeners();