RonaldJerez / vue-input-facade

A lightweight and dependency free input masking library created specific for Vue
https://ronaldjerez.github.io/vue-input-facade/latest/
183 stars 27 forks source link

feat(core.js): allow for turning on and off the masking #47

Closed Umi8Umi closed 2 years ago

Umi8Umi commented 2 years ago

Description

Add a prop to use the maskedValue even when the mask is an empty string and maintains the cursor position

Coverage

---------------|----------|----------|----------|----------|-------------------|
File           |  % Stmts | % Branch |  % Funcs |  % Lines | Uncovered Line #s |
---------------|----------|----------|----------|----------|-------------------|
All files      |    99.38 |    94.66 |    96.88 |      100 |                   |
 component.vue |      100 |    91.67 |      100 |      100 |               103 |
 core.js       |      100 |    96.97 |     87.5 |      100 |           112,142 |
 directive.js  |      100 |      100 |      100 |      100 |                   |
 masker.js     |    98.39 |    91.49 |      100 |      100 |         12,63,105 |
 tokens.js     |      100 |      100 |      100 |      100 |                   |
---------------|----------|----------|----------|----------|-------------------|

Test Suites: 5 passed, 5 total
Tests:       62 passed, 62 total
Snapshots:   0 total
Time:        2.545s, estimated 3s
github-actions[bot] commented 2 years ago

:tada: This PR is included in version 1.4.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: