2
0
mirror of https://github.com/tenrok/maska.git synced 2026-05-15 11:59:38 +03:00
Commit Graph

176 Commits

Author SHA1 Message Date
Alexander Shabunevich 00f7caede8 fix: check input value on every update
For better handling value change without directive, like vanilla case
2024-03-30 15:08:44 +03:00
Alexander Shabunevich 816c49c466 style: code formating 2024-03-30 15:07:31 +03:00
Alexander Shabunevich cd1e9f3564 feat!: rework for v3
- new directive format: pass options as value, bound as argument with modifiers
- update and checkValue methods in MaskInput
2024-03-30 12:39:22 +03:00
Alexander Shabunevich fe2dc8a766 Merge pull request #204 from IlyaSemenov/replace_binded_bound
Replace "binded" with "bound"
2024-03-30 12:02:34 +03:00
Ilya Semenov a38e8a2512 Replace "binded" with "bound" 2024-02-13 13:56:56 +07:00
Alexander Shabunevich 18191d23ef 2.1.11 2024-01-10 22:41:49 +03:00
Alexander Shabunevich 08c17dc5be Merge pull request #199 from asselin/master
Fix #183 Multiple modifier breaks other custom tokens
2024-01-10 20:47:49 +03:00
Andre Asselin 222f2df70a Fix #183 Multiple modifier breaks other custom tokens
When a token with multiple:true does not match the next character, we need to determine if it matched any previous characters or not.
If it hasn't matched any characters yet, then we skip the invalid input character and remain on the same token.
If it has matched 1 or more input characters, then we advance to the next token, but stay on the same input character.

The old code had several issues with this.  I replaced it with a simple flag (multipleMatched) that is set to true whenever a token with multiple==true matches an input character, and can then be tested when a token with multiple==true doesn't match an input character.
2024-01-09 18:27:18 -05:00
Alexander Shabunevich 716c38e501 docs: example and known issues
- add example of set options with bind
- add known issues
2023-12-25 21:31:05 +03:00
Alexander Shabunevich ffe70ecaef 2.1.10 2023-08-01 18:40:09 +03:00
Alexander Shabunevich b0174bcf0a Merge pull request #177 from hiddenLadder/patch-1
Return null if input type equals file
2023-08-01 18:36:07 +03:00
Ilya Machnev 7ad5792858 Update directive.ts 2023-08-01 10:49:55 +08:00
Ilya Machnev c8998d6bf5 Return if input type equals file
Direcitve doesnt work on inputs with type set to 'file', it throws error when value changes
2023-08-01 10:45:01 +08:00
Alexander Shabunevich d718a16509 Fixed tests 2023-07-10 23:30:42 +03:00
Alexander Shabunevich a44f0c7e91 Changes in build script 2023-07-10 22:13:27 +03:00
Alexander Shabunevich 21155a07c2 Added notice in docs about options object 2023-07-10 22:10:59 +03:00
Alexander Shabunevich 1df3e61460 Removed package-lock.json 2023-07-10 21:48:53 +03:00
Alexander Shabunevich 5d155917db 2.1.9 2023-05-01 19:59:58 +03:00
Alexander Shabunevich cc5eac46ec Add types ref to package.json exports 2023-05-01 19:41:59 +03:00
Alexander Shabunevich 893e31c466 Updated vitest config reference 2023-05-01 15:09:30 +03:00
Alexander Shabunevich 3440f74e11 Updated deps 2023-05-01 15:03:56 +03:00
Alexander Shabunevich f73c21b5fa Revert "allow custom escape character"
This reverts commit e078efd695.
2023-04-21 14:27:47 +03:00
Alexander Shabunevich 593c111acb Add example of usage as Nuxt plugin 2023-04-21 00:47:08 +03:00
Alexander Shabunevich a6833d32b4 Merge pull request #147 from killroyboy/master
allow custom escape character
2023-04-20 23:37:03 +03:00
Dan Wilson e078efd695 allow custom escape character 2023-04-18 14:00:50 -06:00
Alexander Shabunevich e965d15c81 2.1.8 2023-04-10 22:53:45 +03:00
Alexander Shabunevich c12b5c3840 Code format 2023-04-10 22:26:11 +03:00
Alexander Shabunevich e1092fcb4b Merge pull request #144 from killroyboy/master
avoid re-rendering input and therefore entering infinite update loop
2023-04-10 22:24:39 +03:00
Dan Wilson f0e638c804 avoid re-rendering input and therefore entering infinite update loop 2023-04-04 16:32:40 -06:00
Alexander Shabunevich d0dbffe0ed 2.1.7 2023-02-11 16:13:21 +03:00
Alexander Shabunevich 359f446d72 Make directive change async for correct eager mode
Fix #133 where eager mask used with v-model
2023-02-11 16:12:15 +03:00
Alexander Shabunevich df99482c70 Rename needUpdate method to needUpdateOptions 2023-02-11 16:04:57 +03:00
Alexander Shabunevich aeb57a001d npm up 2023-02-11 16:04:21 +03:00
Alexander Shabunevich b39e37001b 2.1.6 2023-01-29 17:21:34 +03:00
Alexander Shabunevich 526cf38a4f npm up 2023-01-29 17:01:02 +03:00
Alexander Shabunevich 056b6fb855 Fix eager mask bug #128 2023-01-29 16:59:24 +03:00
Alexander Shabunevich ea47223566 Fix bug with onMaska detail payload 2023-01-29 16:27:58 +03:00
Alexander Shabunevich e30084d232 Demo of money format simplified 2023-01-23 15:59:52 +03:00
Alexander Shabunevich ced89d1373 Updated links in README 2023-01-21 12:50:53 +03:00
Alexander Shabunevich f29c2c21b5 2.1.5 2023-01-21 12:32:47 +03:00
Alexander Shabunevich 6e45981618 npm up 2023-01-21 12:30:52 +03:00
Alexander Shabunevich 80b41d9d29 Demo styles fixes 2023-01-21 12:30:47 +03:00
Alexander Shabunevich f06bbf529a Demo updated: add example with number format 2023-01-21 12:30:36 +03:00
Alexander Shabunevich 8325a46f8f Tests code formating 2023-01-21 12:29:27 +03:00
Alexander Shabunevich b97c7c3165 Fix bug with hooks order 2023-01-21 12:29:09 +03:00
Alexander Shabunevich c053e4d888 TS in docs code blocks 2023-01-21 11:13:08 +03:00
Alexander Shabunevich 4300883a93 Code format 2023-01-21 00:25:31 +03:00
Alexander Shabunevich 1c7e5473f5 2.1.4 2023-01-13 00:08:32 +03:00
Alexander Shabunevich 6135d0a193 Fix setSelectionRange error for inputs of some types 2023-01-12 23:55:43 +03:00
Alexander Shabunevich d7bb09b16c npm up 2023-01-10 09:44:04 +03:00