carriera-intern 1.1.111 → 1.1.112

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.
@@ -1454,7 +1454,9 @@ class NumberFormatDirective {
1454
1454
  * @param value - The new value to set (can be formatted or unformatted).
1455
1455
  */
1456
1456
  setRealValue(value) {
1457
- this.realValue = this.extractNumericValue(value || '');
1457
+ // Note: `value ?? ''` rather than `value || ''` so a numeric 0 is kept
1458
+ // and rendered as "0" instead of being treated as an empty input.
1459
+ this.realValue = this.extractNumericValue(value ?? '');
1458
1460
  this.updateDisplayValue();
1459
1461
  }
1460
1462
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.27", ngImport: i0, type: NumberFormatDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
@@ -3564,8 +3566,16 @@ class InputComponent {
3564
3566
  break;
3565
3567
  }
3566
3568
  }
3567
- this.value.set(value);
3568
- this.searchValue.set(value);
3569
+ // The display signals are string-based (that is what the typing path
3570
+ // produces via `realValueChange`). Numbers coming from the form control
3571
+ // are stringified so a 0 stays truthy for `hasText` and reaches the
3572
+ // number directive as "0" instead of being dropped as falsy.
3573
+ // `value` itself is left untouched: option matching below compares it
3574
+ // against the raw option values, which may legitimately be numbers.
3575
+ // NaN/Infinity are left alone so they keep behaving as "no value".
3576
+ const displayValue = Number.isFinite(value) ? String(value) : value;
3577
+ this.value.set(displayValue);
3578
+ this.searchValue.set(displayValue);
3569
3579
  const optionValue = this.config().optionValue;
3570
3580
  requestAnimationFrame(() => {
3571
3581
  if (value || value === 0) {