ngx-mask 22.2.2 → 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/fesm2022/ngx-mask.mjs +81 -19
- package/fesm2022/ngx-mask.mjs.map +1 -1
- package/package.json +1 -1
- package/types/ngx-mask.d.ts +16 -1
package/package.json
CHANGED
package/types/ngx-mask.d.ts
CHANGED
|
@@ -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
|
|
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.
|