ngx-mask 15.1.5 → 15.2.1

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/README.md CHANGED
@@ -19,7 +19,7 @@
19
19
  You can also try our NGX LOADER INDICATOR [check](https://www.npmjs.com/package/ngx-loader-indicator).
20
20
  You can also try our NGX COPYPASTE [check](https://www.npmjs.com/package/ngx-copypaste).
21
21
 
22
- ### You can try live [demo](https://jsdaddy.github.io/ngx-mask/) with examples
22
+ ### You can try live [documentation](https://jsdaddy.github.io/ngx-mask/) with examples
23
23
 
24
24
 
25
25
  ## Installing
@@ -452,6 +452,18 @@ Masked value: 1.234
452
452
  Input value: 1234.56
453
453
  Masked value: 1,234
454
454
  ```
455
+ ```html
456
+ <input type="text" mask="separator.2" [leadZero]="true" />
457
+ ```
458
+ To add zeros to the model at the end
459
+
460
+ ```text
461
+ Input value: 12
462
+ Masked value: 12.00
463
+
464
+ Input value: 12.1
465
+ Masked value: 12.10
466
+ ```
455
467
 
456
468
  ```html
457
469
  <input type="text" mask="separator.2" separatorLimit="1000" />
@@ -554,7 +566,7 @@ You can hide symbols in input field and get the actual value in `formcontrol`.
554
566
  <input mask="CPF_CNPJ" />
555
567
  ```
556
568
 
557
- ### Dynamic valid mask
569
+ ### Allow few mask in one expression
558
570
 
559
571
  #### Usage
560
572
 
@@ -568,6 +580,10 @@ You can pass into mask pattern with `||`.
568
580
  <input mask="(00) 0000-0000||(00) 0 0000-0000" />
569
581
  ```
570
582
 
583
+ ```html
584
+ <input mask="00||SS" />
585
+ ```
586
+
571
587
  ### Function maskFilled
572
588
 
573
589
  #### Usage