ngx-mask 22.2.1 → 22.2.3

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ngx-mask",
3
- "version": "22.2.1",
3
+ "version": "22.2.3",
4
4
  "description": "Input masking for modern Angular — Reactive, template-driven and Signal Forms, zoneless and SSR ready. Dates, numbers, separators, custom patterns.",
5
5
  "keywords": [
6
6
  "ng2-mask",
@@ -31,7 +31,7 @@
31
31
  "homepage": "https://github.com/NepipenkoIgor/ngx-mask",
32
32
  "repository": {
33
33
  "type": "git",
34
- "url": "git@github.com:NepipenkoIgor/ngx-mask.git"
34
+ "url": "git+https://github.com/NepipenkoIgor/ngx-mask.git"
35
35
  },
36
36
  "bugs": {
37
37
  "url": "https://github.com/NepipenkoIgor/ngx-mask/issues"
@@ -220,6 +220,12 @@ declare class NgxMaskService extends NgxMaskApplierService {
220
220
  clearIfNotMatchFn(): void;
221
221
  set formElementProperty([name, value]: [string, string | boolean]);
222
222
  checkDropSpecialCharAmount(mask: string): number;
223
+ /**
224
+ * Consumes a pending `maskChanged` once a render has handled the reconfiguration, unless
225
+ * `triggerOnMaskChange` still needs it to emit the re-masked value (formControlResult clears
226
+ * it then).
227
+ */
228
+ _clearMaskChangedUnlessTriggered(): void;
223
229
  removeMask(inputValue: string): string;
224
230
  private _checkForIp;
225
231
  private _checkForCpfCnpj;
@@ -353,7 +359,8 @@ declare class NgxMaskDirective implements ControlValueAccessor, OnChanges, Valid
353
359
  * originated from the view. Re-masking that unmasked echo is at best a redundant re-render
354
360
  * and at worst destructive for masks whose unmasked form is ambiguous (e.g. IP:
355
361
  * '192168178' cannot reconstruct the typed dots of '192.168.1.78'). `writeValue()` consumes
356
- * this marker to skip exactly that echo. `null` = no pending propagation.
362
+ * this marker to skip exactly that echo; ngOnChanges reads it to recognise a `[value]`
363
+ * binding echo of it (#1671). `null` = no pending propagation.
357
364
  */
358
365
  private _lastPropagatedValue;
359
366
  /**
@@ -508,6 +515,14 @@ declare class NgxMaskDirective implements ControlValueAccessor, OnChanges, Valid
508
515
  * not bounce back through the value effect and overwrite the raw `_inputValue`.
509
516
  */
510
517
  private _propagateToValueModel;
518
+ /**
519
+ * Whether the `value`-model effect will render `value` itself via writeValue(): only in
520
+ * standalone `[(value)]` / Signal Forms mode (Angular's writeValue owns rendering in CVA mode), not for
521
+ * the model echo of our own onChange propagation (`_skipNextValueEffect`), and only when it
522
+ * differs from what is already rendered. Shared with ngOnChanges (#1671), which must leave
523
+ * exactly that render to the effect.
524
+ */
525
+ private _valueEffectWillWrite;
511
526
  /**
512
527
  * Focus the input element.
513
528
  * Required by FormValueControl interface for Signal Forms.
@@ -581,7 +596,8 @@ declare class NgxMaskDirective implements ControlValueAccessor, OnChanges, Valid
581
596
 
582
597
  declare class NgxMaskPipe implements PipeTransform {
583
598
  private readonly defaultOptions;
584
- private readonly _maskService;
599
+ private readonly _environmentInjector;
600
+ private _maskService;
585
601
  private _maskExpressionArray;
586
602
  private mask;
587
603
  transform(value: string | number, mask: string, { patterns, maskAliases, ...config }?: Partial<NgxMaskConfig>): string;