ngx-mask 15.1.5 → 15.2.0
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 +18 -2
- package/esm2020/lib/ngx-mask-applier.service.mjs +220 -135
- package/esm2020/lib/ngx-mask-expression.enum.mjs +2 -0
- package/esm2020/lib/ngx-mask.config.mjs +21 -12
- package/esm2020/lib/ngx-mask.directive.mjs +474 -187
- package/esm2020/lib/ngx-mask.pipe.mjs +69 -1
- package/esm2020/lib/ngx-mask.service.mjs +216 -74
- package/fesm2015/ngx-mask.mjs +990 -405
- package/fesm2015/ngx-mask.mjs.map +1 -1
- package/fesm2020/ngx-mask.mjs +993 -402
- package/fesm2020/ngx-mask.mjs.map +1 -1
- package/lib/ngx-mask-applier.service.d.ts +9 -1
- package/lib/ngx-mask-expression.enum.d.ts +42 -0
- package/lib/ngx-mask.config.d.ts +14 -3
- package/lib/ngx-mask.directive.d.ts +13 -11
- package/lib/ngx-mask.pipe.d.ts +3 -0
- package/lib/ngx-mask.service.d.ts +10 -2
- package/package.json +1 -1
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 [
|
|
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
|
-
###
|
|
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
|