valtech-components 2.0.836 → 2.0.838

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.
@@ -1,8 +1,8 @@
1
- import { EventEmitter, OnInit, OnChanges, OnDestroy, SimpleChanges } from '@angular/core';
1
+ import { DoCheck, EventEmitter, OnInit, OnChanges, OnDestroy, SimpleChanges } from '@angular/core';
2
2
  import { FormControl } from '@angular/forms';
3
3
  import { PhoneInputMetadata, PhoneInputChangeEvent, CountryCode } from './types';
4
4
  import * as i0 from "@angular/core";
5
- export declare class PhoneInputComponent implements OnInit, OnChanges, OnDestroy {
5
+ export declare class PhoneInputComponent implements OnInit, OnChanges, OnDestroy, DoCheck {
6
6
  private presets;
7
7
  /**
8
8
  * Preset name to apply. Presets define reusable phone input configurations
@@ -31,8 +31,16 @@ export declare class PhoneInputComponent implements OnInit, OnChanges, OnDestroy
31
31
  internalNumberControl: FormControl<string>;
32
32
  private valueSubscription;
33
33
  private isInternalUpdate;
34
+ /** Último valor del control externo ya reflejado en el input. */
35
+ private lastSyncedValue;
34
36
  ngOnInit(): void;
35
37
  ngOnChanges(changes: SimpleChanges): void;
38
+ /**
39
+ * Refleja cambios del control externo que NO emiten `valueChanges` — p. ej.
40
+ * `patchValue(..., { emitEvent: false })` en una carga programática de datos.
41
+ * Sin esto el input quedaría vacío tras un `patchValue` silencioso.
42
+ */
43
+ ngDoCheck(): void;
36
44
  ngOnDestroy(): void;
37
45
  /**
38
46
  * Merge preset configuration with explicit props.
package/lib/version.d.ts CHANGED
@@ -2,4 +2,4 @@
2
2
  * Current version of valtech-components.
3
3
  * This is automatically updated during the publish process.
4
4
  */
5
- export declare const VERSION = "2.0.836";
5
+ export declare const VERSION = "2.0.838";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "valtech-components",
3
- "version": "2.0.836",
3
+ "version": "2.0.838",
4
4
  "private": false,
5
5
  "bin": {
6
6
  "valtech-firebase-config": "./src/lib/services/firebase/scripts/generate-sw-config.js"