├── .gitignore ├── LICENSE ├── README.md ├── dist ├── css │ └── app.2a0d66a1.css ├── favicon.ico ├── index.html └── js │ ├── app.bade70de.js │ ├── app.bade70de.js.map │ ├── chunk-vendors.b1b83085.js │ └── chunk-vendors.b1b83085.js.map ├── package-lock.json ├── package.json ├── public ├── favicon.ico └── index.html ├── src ├── App.vue ├── components │ ├── Demo.vue │ ├── Tests.vue │ └── testsList.js └── main.js ├── vue-r-mask ├── README.md ├── caretPos.js ├── index.js └── package.json └── vue.config.js /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | node_modules 3 | 4 | # local env files 5 | .env.local 6 | .env.*.local 7 | 8 | # Log files 9 | npm-debug.log* 10 | yarn-debug.log* 11 | yarn-error.log* 12 | 13 | # Editor directories and files 14 | .idea 15 | .vscode 16 | *.suo 17 | *.ntvs* 18 | *.njsproj 19 | *.sln 20 | *.sw* 21 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2024 raidan00 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # vue-r-mask 2 | ### mask directive for vue.js 3 | 4 | * Template similar to javascript regular expression. /\d{2}/ 5 | * Directive useful for your own input or textarea. 6 | * Arbitrary number of digits in template /\d{1,10}/ 7 | 8 | ### [Live Demo](https://raidan00.github.io/vue-r-mask/dist/index.html) 9 | ### [Live Demo Source](https://github.com/raidan00/vue-r-mask/blob/master/src/components/Demo.vue) 10 | ## Install in your project 11 | ``` 12 | npm install vue-r-mask 13 | ``` 14 | ## Run this demo repository 15 | ``` bash 16 | git clone https://github.com/raidan00/vue-r-mask.git 17 | cd vue-r-mask 18 | npm install 19 | npm run dev 20 | ``` 21 | -------------------------------------------------------------------------------- /dist/css/app.2a0d66a1.css: -------------------------------------------------------------------------------- 1 | input[data-v-4af81fda],textarea[data-v-4af81fda]{display:block;margin:auto;margin-bottom:20px;margin-top:5px;font-size:17px}.text[data-v-4af81fda]{font-weight:700;margin-bottom:5px}button[data-v-4af81fda]{display:block;margin:auto;margin-top:5px;font-size:15px}#app{font-family:Avenir,Helvetica,Arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-align:center;color:#2c3e50;margin-top:10px} -------------------------------------------------------------------------------- /dist/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raidan00/vue-r-mask/3899935c1bacdf844305b40a6ab583e63c59f7cb/dist/favicon.ico -------------------------------------------------------------------------------- /dist/index.html: -------------------------------------------------------------------------------- 1 | vue-r-mask
-------------------------------------------------------------------------------- /dist/js/app.bade70de.js: -------------------------------------------------------------------------------- 1 | (function(e){function t(t){for(var s,n,o=t[0],d=t[1],v=t[2],l=0,c=[];l{return{char:e,type:"char"}}),t={char:"",type:"pos"};e.splice(d.get(this),0,t);let a=[];e:for(let r=0;r=s[r].minLen&&"_"==e[0].char)continue e;a.push(e.shift())}else if("single"==s[r].type)a.push({char:s[r].char});else{if(t>=s[r].minLen)continue e;e.shift(),t--}else if("single"==s[r].type)a.push({char:s[r].char});else{if(t>=s[r].minLen)continue e;a.push({char:"_"})}this.value=a.map(e=>e.char).join(""),d.set(this,a.indexOf(t))}}var c=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticStyle:{"margin-bottom":"10px"}},["process"==e.info?a("div",{staticStyle:{"font-size":"20px"}},[e._v("\n\t\ttests in process\n\t")]):e._e(),"passed"==e.info?a("div",{staticStyle:{color:"green","font-size":"20px"}},[e._v("\n\t\tall tests passed\n\t")]):e._e(),"failed"==e.info?a("div",{staticStyle:{color:"red","font-size":"20px"}},[e._v("\n\t\ttest failed, info in console\n\t")]):e._e(),a("input",{directives:[{name:"mask",rawName:"v-mask",value:e.mask,expression:"mask"}],ref:"input"})])},m=[],u=[{setMask:/\d{0,100}/},{before:"1|",after:"1|"},{before:"12323|",after:"12323|"},{before:"123123123a|",after:"123123123|"},{before:"123123123%|",after:"123123123|"},{setMask:/[01]{0,100}/},{before:"4|",after:"|"},{before:"a|",after:"|"},{before:"0|",after:"0|"},{setMask:/\w{0,100}/},{before:"a|",after:"a|"},{before:"avv1|",after:"avv1|"},{before:"avv1@|",after:"avv1|"},{before:"avv1-|",after:"avv1|"},{setMask:/[a-zA-Z]{0,100}/},{before:"1|",after:"|"},{before:"asdd|",after:"asdd|"},{before:"asdd1|",after:"asdd|"},{before:"asdd!|",after:"asdd|"},{setMask:/[0-2]{1}\d{1}:[0-5]{1}\d{1}/},{before:"__1|:__",after:"__:1|_"},{before:"__:11|_",after:"__:11|"},{before:"__:4|1",after:"__:4|1"},{before:"2|11:11",after:"2|1:11"},{before:"21:8|11",after:"21:|11"},{before:"9|21:11",after:"|21:11"},{before:"21a|:11",after:"21:|11"},{before:"21:1s|1",after:"21:1|1"},{before:"2s|1:11",after:"2|1:11"},{before:"21:11@|",after:"21:11|"},{setMask:/\d{2}/},{before:"__1|",after:"__|"},{before:"1|__",after:"1|_"},{before:":8080|",after:"80|"},{before:"|_",after:"|__"},{before:"1a|2",after:"1|2"},{setMask:/\d{2}-\d{2}/},{before:"12|34",after:"12|-34"},{before:"121|-34",after:"12-1|3"},{before:"1a|2-13",after:"1|2-13"},{before:"__|__",after:"__|-__"},{before:"|",after:"|__-__"},{before:"aaaaaaaaaaa|",after:"|__-__"},{before:"_1|_-__",after:"_1|-__"},{setMask:/\d{2}\/\d{2}\/\d{2,4}/},{before:"__/__/__1|",after:"__/__/__1|"},{before:"123456789|",after:"12/34/5678|"},{before:"12/34/567|",after:"12/34/567|"},{before:"12/34/56|",after:"12/34/56|"},{before:"12/34/5|",after:"12/34/5|_"},{setMask:/\+1 \(\d{3}\) \d{4}-\d{2}/},{before:"123456789|",after:"+1 (234) 5678-9|_"},{before:"123456789123|",after:"+1 (234) 5678-91|"},{before:"+1 (234) 5678|91",after:"+1 (234) 5678|-91"},{before:"+11| (234) 5678-91",after:"+1 (1|23) 4567-89"},{before:"+1 (123) 45672|-89",after:"+1 (123) 4567-2|8"},{before:"|1 (123) 4567-28",after:"|+1 (123) 4567-28"},{before:"+1 (123|4567-28",after:"+1 (123|) 4567-28"},{before:"123456789012|",after:"+1 (234) 5678-90|"}],p={data(){return{info:"process",mask:/\d{2}/}},mounted(){let e=[...u],t=()=>{for(let a=0;ae(N)})},"64a9":function(e,t,a){}}); 2 | //# sourceMappingURL=app.bade70de.js.map -------------------------------------------------------------------------------- /dist/js/app.bade70de.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/App.vue?5b85","webpack:///./src/components/Demo.vue?45d2","webpack:///./src/App.vue?7711","webpack:///./src/components/Demo.vue?1dad","webpack:///./vue-r-mask/caretPos.js","webpack:///./vue-r-mask/index.js","webpack:///./src/components/Tests.vue?b2d8","webpack:///./src/components/testsList.js","webpack:///src/components/Tests.vue","webpack:///./src/components/Tests.vue?eddc","webpack:///./src/components/Tests.vue","webpack:///src/components/Demo.vue","webpack:///./src/components/Demo.vue?ca44","webpack:///./src/components/Demo.vue","webpack:///src/App.vue","webpack:///./src/App.vue?8b47","webpack:///./src/App.vue","webpack:///./src/main.js"],"names":["webpackJsonpCallback","data","moduleId","chunkId","chunkIds","moreModules","executeModules","i","resolves","length","installedChunks","push","Object","prototype","hasOwnProperty","call","modules","parentJsonpFunction","shift","deferredModules","apply","checkDeferredModules","result","deferredModule","fulfilled","j","depId","splice","__webpack_require__","s","installedModules","app","exports","module","l","m","c","d","name","getter","o","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","p","jsonpArray","window","oldJsonpFunction","slice","_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_css_loader_index_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_App_vue_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_0__","_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_css_loader_index_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_App_vue_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_0___default","_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_css_loader_index_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_Demo_vue_vue_type_style_index_0_id_4af81fda_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__","_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_css_loader_index_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_Demo_vue_vue_type_style_index_0_id_4af81fda_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default","render","_vm","this","_h","$createElement","_c","_self","attrs","id","staticRenderFns","Demovue_type_template_id_4af81fda_scoped_true_render","_e","staticClass","_v","directives","rawName","expression","_s","mask","toString","message","domProps","on","input","$event","target","composing","placeholder","changeableMask","click","setMask1","setMask2","rows","cols","Demovue_type_template_id_4af81fda_scoped_true_staticRenderFns","caretPos","CaretPos","selectionStart","document","selection","Sel","createRange","moveStart","text","set","pos","setSelectionRange","createTextRange","range","collapse","moveEnd","select","vue_r_mask","[object Object]","el","val","VNode","arguments","oldValue","removeEventListener","context","vueRmask","_wrapper","maskFunc","initMask","addEventListener","dispatchEvent","Event","match","frame","str","reg","exec","toPush","minLen","maxLen","type","char","RegExp","arr","split","map","e","newVal","mainLoop","k","undefined","join","indexOf","Testsvue_type_template_id_ca6ec168_render","staticStyle","margin-bottom","info","font-size","color","ref","Testsvue_type_template_id_ca6ec168_staticRenderFns","testsList","setMask","before","after","Testsvue_type_script_lang_js_","partialTest","setTimeout","$refs","replace","console","error","components_Testsvue_type_script_lang_js_","component","componentNormalizer","Tests","Demovue_type_script_lang_js_","components","dev","methods","components_Demovue_type_script_lang_js_","Demo_component","Demo","Appvue_type_script_lang_js_","src_Appvue_type_script_lang_js_","App_component","App","vue_runtime_esm","h"],"mappings":"aACA,SAAAA,EAAAC,GAQA,IAPA,IAMAC,EAAAC,EANAC,EAAAH,EAAA,GACAI,EAAAJ,EAAA,GACAK,EAAAL,EAAA,GAIAM,EAAA,EAAAC,EAAA,GACQD,EAAAH,EAAAK,OAAo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AmC,QACAoD,QAAAC,MAAA,gBAAAxJ,IAKA+C,KAAA0F,KAAA,UAEAW,WAAAD,EAAA,IAEAxF,WAAA,CACAI,KAAUkC,ICvDoLwD,EAAA,cCO9LC,EAAgBpK,OAAAqK,EAAA,KAAArK,CACdmK,EACAnB,EACAO,GACF,EACA,KACA,KACA,MAIee,EAAAF,UC8DAG,EAAA,CACfC,WAAA,CACEF,SAEF1D,OACA,OACAnC,KAAA,cACAE,QAAA,OACAQ,eAAA,SACAsF,KAAQ,IAGRC,QAAA,CACA9D,WACAnD,KAAA0B,eAAA,6BAEAyB,WACAnD,KAAA0B,eAAA,oBAGAd,WAAA,CACAI,KAAQkC,ICrGqLgE,EAAA,ECQzLC,aAAY5K,OAAAqK,EAAA,KAAArK,CACd2K,EACA1G,EACAwB,GACF,EACA,KACA,WACA,OAIeoF,EAAAD,UCVAE,EAAA,CACfpJ,KAAA,MACA8I,WAAA,CACIK,SCZkLE,EAAA,ECQlLC,aAAYhL,OAAAqK,EAAA,KAAArK,CACd+K,EACAxH,EACAS,GACF,EACA,KACA,KACA,OAIeiH,EAAAD,UChBf,IAAIE,EAAA,KAAG,CACPrE,GAAA,OACAtD,OAAA4H,KAAiBF","file":"js/app.bade70de.js","sourcesContent":[" \t// install a JSONP callback for chunk loading\n \tfunction webpackJsonpCallback(data) {\n \t\tvar chunkIds = data[0];\n \t\tvar moreModules = data[1];\n \t\tvar executeModules = data[2];\n\n \t\t// add \"moreModules\" to the modules object,\n \t\t// then flag all \"chunkIds\" as loaded and fire callback\n \t\tvar moduleId, chunkId, i = 0, resolves = [];\n \t\tfor(;i < chunkIds.length; i++) {\n \t\t\tchunkId = chunkIds[i];\n \t\t\tif(installedChunks[chunkId]) {\n \t\t\t\tresolves.push(installedChunks[chunkId][0]);\n \t\t\t}\n \t\t\tinstalledChunks[chunkId] = 0;\n \t\t}\n \t\tfor(moduleId in moreModules) {\n \t\t\tif(Object.prototype.hasOwnProperty.call(moreModules, moduleId)) {\n \t\t\t\tmodules[moduleId] = moreModules[moduleId];\n \t\t\t}\n \t\t}\n \t\tif(parentJsonpFunction) parentJsonpFunction(data);\n\n \t\twhile(resolves.length) {\n \t\t\tresolves.shift()();\n \t\t}\n\n \t\t// add entry modules from loaded chunk to deferred list\n \t\tdeferredModules.push.apply(deferredModules, executeModules || []);\n\n \t\t// run deferred modules when all chunks ready\n \t\treturn checkDeferredModules();\n \t};\n \tfunction checkDeferredModules() {\n \t\tvar result;\n \t\tfor(var i = 0; i < deferredModules.length; i++) {\n \t\t\tvar deferredModule = deferredModules[i];\n \t\t\tvar fulfilled = true;\n \t\t\tfor(var j = 1; j < deferredModule.length; j++) {\n \t\t\t\tvar depId = deferredModule[j];\n \t\t\t\tif(installedChunks[depId] !== 0) fulfilled = false;\n \t\t\t}\n \t\t\tif(fulfilled) {\n \t\t\t\tdeferredModules.splice(i--, 1);\n \t\t\t\tresult = __webpack_require__(__webpack_require__.s = deferredModule[0]);\n \t\t\t}\n \t\t}\n \t\treturn result;\n \t}\n\n \t// The module cache\n \tvar installedModules = {};\n\n \t// object to store loaded and loading chunks\n \t// undefined = chunk not loaded, null = chunk preloaded/prefetched\n \t// Promise = chunk loading, 0 = chunk loaded\n \tvar installedChunks = {\n \t\t\"app\": 0\n \t};\n\n \tvar deferredModules = [];\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"/vue-r-mask/dist/\";\n\n \tvar jsonpArray = window[\"webpackJsonp\"] = window[\"webpackJsonp\"] || [];\n \tvar oldJsonpFunction = jsonpArray.push.bind(jsonpArray);\n \tjsonpArray.push = webpackJsonpCallback;\n \tjsonpArray = jsonpArray.slice();\n \tfor(var i = 0; i < jsonpArray.length; i++) webpackJsonpCallback(jsonpArray[i]);\n \tvar parentJsonpFunction = oldJsonpFunction;\n\n\n \t// add entry module to deferred list\n \tdeferredModules.push([0,\"chunk-vendors\"]);\n \t// run deferred modules when ready\n \treturn checkDeferredModules();\n","import mod from \"-!../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../node_modules/css-loader/index.js??ref--6-oneOf-1-1!../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../node_modules/cache-loader/dist/cjs.js??ref--0-0!../node_modules/vue-loader/lib/index.js??vue-loader-options!./App.vue?vue&type=style&index=0&lang=css&\"; export default mod; export * from \"-!../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../node_modules/css-loader/index.js??ref--6-oneOf-1-1!../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../node_modules/cache-loader/dist/cjs.js??ref--0-0!../node_modules/vue-loader/lib/index.js??vue-loader-options!./App.vue?vue&type=style&index=0&lang=css&\"","import mod from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../node_modules/css-loader/index.js??ref--6-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Demo.vue?vue&type=style&index=0&id=4af81fda&scoped=true&lang=css&\"; export default mod; export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../node_modules/css-loader/index.js??ref--6-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Demo.vue?vue&type=style&index=0&id=4af81fda&scoped=true&lang=css&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{attrs:{\"id\":\"app\"}},[_c('demo')],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[(_vm.dev)?_c('tests'):_vm._e(),_c('div',[_c('div',{staticClass:\"text\"},[_vm._v(\"Simple mask\")]),_c('div',{staticClass:\"mask\"},[_vm._v(\"v-mask=\\\"/\\\\d{2}-\\\\w{5}/\\\"\")]),_c('input',{directives:[{name:\"mask\",rawName:\"v-mask\",value:(/\\d{2}-\\w{5}/),expression:\"/\\\\d{2}-\\\\w{5}/\"}]})]),_c('div',[_c('div',{staticClass:\"text\"},[_vm._v(\"Simple mask with v-model\")]),_c('div',{staticClass:\"mask\"},[_vm._v(\"v-mask=\\\"mask\\\"\")]),_c('div',{staticClass:\"mask\"},[_vm._v(\"v-model=\\\"message\\\"\")]),_c('div',{staticClass:\"mask\"},[_vm._v(\"mask: \"+_vm._s(_vm.mask.toString()))]),_c('div',{staticClass:\"mask\"},[_vm._v(\"message: \"+_vm._s(_vm.message))]),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.message),expression:\"message\"},{name:\"mask\",rawName:\"v-mask\",value:(_vm.mask),expression:\"mask\"}],domProps:{\"value\":(_vm.message)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.message=$event.target.value}}})]),_c('div',[_c('div',{staticClass:\"text\"},[_vm._v(\"Phone mask\")]),_c('div',{staticClass:\"mask\"},[_vm._v(\"v-mask=\\\"/\\\\+1 \\\\(\\\\d{3}\\\\) \\\\d{4}-\\\\d{2}/\\\"\")]),_c('input',{directives:[{name:\"mask\",rawName:\"v-mask\",value:(/\\+1 \\(\\d{3}\\) \\d{4}-\\d{2}/),expression:\"/\\\\+1 \\\\(\\\\d{3}\\\\) \\\\d{4}-\\\\d{2}/\"}]})]),_c('div',[_c('div',{staticClass:\"text\"},[_vm._v(\"Number of digits in year from 2 to 4\")]),_c('div',{staticClass:\"mask\"},[_vm._v(\"v-mask=\\\"/\\\\d{2}\\\\/\\\\d{2}\\\\/\\\\d{2,4}/\\\"\")]),_c('input',{directives:[{name:\"mask\",rawName:\"v-mask\",value:(/\\d{2}\\/\\d{2}\\/\\d{2,4}/),expression:\"/\\\\d{2}\\\\/\\\\d{2}\\\\/\\\\d{2,4}/\"}]})]),_c('div',[_c('div',{staticClass:\"text\"},[_vm._v(\"Input only numbers\")]),_c('div',{staticClass:\"mask\"},[_vm._v(\"v-mask=\\\"/\\\\d{0,100}/\\\"\")]),_c('input',{directives:[{name:\"mask\",rawName:\"v-mask\",value:(/\\d{0,100}/),expression:\"/\\\\d{0,100}/\"}]})]),_c('div',[_c('div',{staticClass:\"text\"},[_vm._v(\"Input only binary numbers\")]),_c('div',{staticClass:\"mask\"},[_vm._v(\"v-mask=\\\"/[01]{0,100}/\\\"\")]),_c('input',{directives:[{name:\"mask\",rawName:\"v-mask\",value:(/[01]{0,100}/),expression:\"/[01]{0,100}/\"}]})]),_c('div',[_c('div',{staticClass:\"text\"},[_vm._v(\"Input only word\")]),_c('div',{staticClass:\"mask\"},[_vm._v(\"v-mask=\\\"/\\\\w{0,100}/\\\"\")]),_c('input',{directives:[{name:\"mask\",rawName:\"v-mask\",value:(/\\w{0,100}/),expression:\"/\\\\w{0,100}/\"}]})]),_c('div',[_c('div',{staticClass:\"text\"},[_vm._v(\"Input only letters\")]),_c('div',{staticClass:\"mask\"},[_vm._v(\"v-mask=\\\"/[a-zA-Z]{0,100}/\\\"\")]),_c('input',{directives:[{name:\"mask\",rawName:\"v-mask\",value:(/[a-zA-Z]{0,100}/),expression:\"/[a-zA-Z]{0,100}/\"}]})]),_c('div',[_c('div',{staticClass:\"text\"},[_vm._v(\"First number in hour form 0 to 2\")]),_c('div',{staticClass:\"text\"},[_vm._v(\"First number in minute form 0 to 5\")]),_c('div',{staticClass:\"mask\"},[_vm._v(\"v-mask=\\\"/[0-2]{1}\\\\d{1}:[0-5]{1}\\\\d{1}/\\\"\")]),_c('input',{directives:[{name:\"mask\",rawName:\"v-mask\",value:(/[0-2]{1}\\d{1}:[0-5]{1}\\d{1}/),expression:\"/[0-2]{1}\\\\d{1}:[0-5]{1}\\\\d{1}/\"}]})]),_c('div',[_c('div',{staticClass:\"text\"},[_vm._v(\"Mask with placeholder\")]),_c('div',{staticClass:\"mask\"},[_vm._v(\"v-mask=\\\"/\\\\w{0,100}/\\\"\")]),_c('input',{directives:[{name:\"mask\",rawName:\"v-mask\",value:(/\\w{0,100}/),expression:\"/\\\\w{0,100}/\"}],attrs:{\"placeholder\":\"A placeholder\"}})]),_c('div',[_c('div',{staticClass:\"text\"},[_vm._v(\"Mask that appends text\")]),_c('div',{staticClass:\"mask\"},[_vm._v(\"v-mask=\\\"/\\\\w{0,30}@domain\\\\.com/\\\"\")]),_c('input',{directives:[{name:\"mask\",rawName:\"v-mask\",value:(/\\w{0,30}@domain\\.com/),expression:\"/\\\\w{0,30}@domain\\\\.com/\"}],attrs:{\"placeholder\":\"Choose email\"}})]),_c('div',[_c('div',{staticClass:\"text\"},[_vm._v(\"Change mask on the fly\")]),_c('div',{staticClass:\"mask\"},[_vm._v(\"v-mask=\\\"\"+_vm._s(_vm.changeableMask.toString())+\"\\\"\")]),_c('button',{on:{\"click\":_vm.setMask1}},[_vm._v(\"/\\\\+1 \\\\(\\\\d{3}\\\\) \\\\d{4}-\\\\d{2}/\")]),_c('button',{on:{\"click\":_vm.setMask2}},[_vm._v(\"/\\\\+1 \\\\d{3} \\\\d{6}/\")]),_c('input',{directives:[{name:\"mask\",rawName:\"v-mask\",value:(_vm.changeableMask),expression:\"changeableMask\"}]})]),_c('div',[_c('div',{staticClass:\"text\"},[_vm._v(\"Use in textarea\")]),_c('div',{staticClass:\"mask\"},[_vm._v(\"v-mask=\\\"/\\\\d{5} \\\\d{5} \\\\d{5} \\\\d{5} \\\\d{5} \\\\d{5} \\\\d{5} \\\\d{5}/\\\"\")]),_c('textarea',{directives:[{name:\"mask\",rawName:\"v-mask\",value:(/\\d{5} \\d{5} \\d{5} \\d{5} \\d{5} \\d{5} \\d{5} \\d{5}/),expression:\"/\\\\d{5} \\\\d{5} \\\\d{5} \\\\d{5} \\\\d{5} \\\\d{5} \\\\d{5} \\\\d{5}/\"}],attrs:{\"rows\":\"3\",\"cols\":\"25\"}})])],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","export default {\n\tget: function (input) {\n\t\tvar CaretPos = 0;\n\t\tif (input.selectionStart || input.selectionStart == 0) {// Standart.\n\t\t\tCaretPos = input.selectionStart;\n\t\t} else if (document.selection) {// Legacy IE\n\t\t\tvar Sel = document.selection.createRange ();\n\t\t\tSel.moveStart ('character', -input.value.length);\n\t\t\tCaretPos = Sel.text.length;\n\t\t} \n\t\treturn (CaretPos);\n\t},\n\tset: function (input, pos) {\n\t\tif (input.setSelectionRange) {\n\t\t\tinput.setSelectionRange(pos, pos);\n\t\t}\n\t\telse if (input.createTextRange) {\n\t\t\tvar range = input.createTextRange();\n\t\t\trange.collapse(true);\n\t\t\trange.moveEnd('character', pos);\n\t\t\trange.moveStart('character', pos);\n\t\t\trange.select();\n\t\t}\n\t}\n}\n\n\n","import caret from './caretPos.js';\n\nexport default {\n\tbind (el, val, VNode){\n\t\tbind(...arguments)\n\t},\n\tupdate (el, val, VNode){\n\t\tif( val.value.toString() == val.oldValue.toString()) return;\n\t\tel.removeEventListener('input', VNode.context.vueRmask)\n\t\tbind(...arguments);\n\t}\n}\nfunction bind (el, val, VNode){\n\tif(VNode.data.on && VNode.data.on.input && VNode.data.on.input._wrapper){\n\t\tel.removeEventListener('input', VNode.data.on.input._wrapper);\n\t}\n\tlet maskFunc = initMask(el, val);\n\tel.addEventListener('input', maskFunc);\n\tVNode.context.vueRmask = maskFunc;\n\tif(VNode.data.on && VNode.data.on.input && VNode.data.on.input._wrapper){\n\t\tel.addEventListener('input', VNode.data.on.input._wrapper);\n\t}\n\tel.dispatchEvent(new Event('input'));\n};\nfunction initMask (el, val){\n\tlet frame = [];\n\tlet str = val.value.toString().slice(1,-1);\n\tlet reg = /(?:((?:\\\\.)|(?:\\[.+?\\]))\\{[\\d,]+\\})|\\\\.|./g, match;\n\twhile(match = reg.exec(str)){\n\t\tlet toPush = {};\n\t\tif(match[0].length <= 2){\n\t\t\ttoPush.minLen = 1;\n\t\t\ttoPush.maxLen = 1;\n\t\t\ttoPush.type = 'single';\n\t\t\ttoPush.char = match[0][match[0].length-1];\n\t\t\ttoPush.reg = new RegExp(match[0]+'+');\n\t\t} else {\n\t\t\ttoPush.minLen = +/\\{(\\d+)/.exec(match[0])[1];\n\t\t\ttoPush.maxLen = +/(\\d+)\\}/.exec(match[0])[1];\n\t\t\ttoPush.reg = new RegExp('(_|' + match[1] + ')+');\n\t\t}\n\t\tframe.push(toPush);\n\t}\n\treturn function (){\n\t\t//let forTests = { before: this.value.slice(0, caret.get(this)) + '|' + this.value.slice( caret.get(this) )};\n\n\t\tif (this.value === '' && this.placeholder) { return }\n\n\t\tlet arr = this.value.split('').map((e)=>{return {char: e, type: 'char'}});\n\t\tlet pos = { char: '', type: 'pos' };\n\t\tarr.splice(caret.get(this), 0, pos);\n\t\tlet newVal = [];\n\t\tmainLoop: for(let i = 0; i < frame.length; i++){\n\t\t\tfor(let k = 0; k < frame[i].maxLen; k++){\n\t\t\t\tif(arr[0] && arr[0].type == 'pos'){\n\t\t\t\t\tnewVal.push(arr.shift());\n\t\t\t\t\tk--;\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tif(arr[0] == undefined){\n\t\t\t\t\tif(frame[i].type == 'single'){\n\t\t\t\t\t\tnewVal.push({char:frame[i].char});\n\t\t\t\t\t}else{\n\t\t\t\t\t\tif( k >= frame[i].minLen ){\n\t\t\t\t\t\t\tcontinue mainLoop;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tnewVal.push({char:'_'});\n\t\t\t\t\t}\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tif(frame[i].reg.exec(arr[0].char)){\n\t\t\t\t\tif( k >= frame[i].minLen && arr[0].char == '_') {\n\t\t\t\t\t\tcontinue mainLoop;\n\t\t\t\t\t}\n\t\t\t\t\tnewVal.push(arr.shift());\n\t\t\t\t}else{\n\t\t\t\t\tif(frame[i].type == 'single'){\n\t\t\t\t\t\tnewVal.push({char:frame[i].char});\n\t\t\t\t\t}else{\n\t\t\t\t\t\tif( k >= frame[i].minLen ) {\n\t\t\t\t\t\t\tcontinue mainLoop;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tarr.shift();\n\t\t\t\t\t\tk--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tthis.value = newVal.map((e)=>e.char).join('');\n\t\tcaret.set(this, newVal.indexOf(pos));\n\n\t\t//forTests.after = this.value.slice(0, caret.get(this)) + '|' + this.value.slice( caret.get(this) );\n\t\t//console.log(forTests);\n\t}\n};\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticStyle:{\"margin-bottom\":\"10px\"}},[(_vm.info == 'process')?_c('div',{staticStyle:{\"font-size\":\"20px\"}},[_vm._v(\"\\n\\t\\ttests in process\\n\\t\")]):_vm._e(),(_vm.info == 'passed')?_c('div',{staticStyle:{\"color\":\"green\",\"font-size\":\"20px\"}},[_vm._v(\"\\n\\t\\tall tests passed\\n\\t\")]):_vm._e(),(_vm.info == 'failed')?_c('div',{staticStyle:{\"color\":\"red\",\"font-size\":\"20px\"}},[_vm._v(\"\\n\\t\\ttest failed, info in console\\n\\t\")]):_vm._e(),_c('input',{directives:[{name:\"mask\",rawName:\"v-mask\",value:(_vm.mask),expression:\"mask\"}],ref:\"input\"})])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","export default [\n\n\t{ setMask: /\\d{0,100}/ },\n\t{ before: \"1|\", after: \"1|\"},\n\t{ before: \"12323|\", after: \"12323|\"},\n\t{ before: \"123123123a|\", after: \"123123123|\"},\n\t{ before: \"123123123%|\", after: \"123123123|\"},\n\n\t{ setMask: /[01]{0,100}/ },\n\t{ before: \"4|\", after: \"|\"},\n\t{ before: \"a|\", after: \"|\"},\n\t{ before: \"0|\", after: \"0|\"},\n\n\t{ setMask: /\\w{0,100}/ },\n\t{ before: \"a|\", after: \"a|\"},\n\t{ before: \"avv1|\", after: \"avv1|\"},\n\t{ before: \"avv1@|\", after: \"avv1|\"},\n\t{ before: \"avv1-|\", after: \"avv1|\"},\n\n\t{ setMask: /[a-zA-Z]{0,100}/ },\n\t{ before: \"1|\", after: \"|\"},\n\t{ before: \"asdd|\", after: \"asdd|\"},\n\t{ before: \"asdd1|\", after: \"asdd|\"},\n\t{ before: \"asdd!|\", after: \"asdd|\"},\n\n\t{ setMask: /[0-2]{1}\\d{1}:[0-5]{1}\\d{1}/ },\n\t{ before: \"__1|:__\", after: \"__:1|_\"},\n\t{ before: \"__:11|_\", after: \"__:11|\"},\n\t{ before: \"__:4|1\", after: \"__:4|1\"},\n\t{ before: \"2|11:11\", after: \"2|1:11\"},\n\t{ before: \"21:8|11\", after: \"21:|11\"},\n\t{ before: \"9|21:11\", after: \"|21:11\"},\n\t{ before: \"21a|:11\", after: \"21:|11\"},\n\t{ before: \"21:1s|1\", after: \"21:1|1\"},\n\t{ before: \"2s|1:11\", after: \"2|1:11\"},\n\t{ before: \"21:11@|\", after: \"21:11|\"},\n\n\t{ setMask: /\\d{2}/ },\n\t{ before: \"__1|\", after: \"__|\"},\n\t{ before: \"1|__\", after: \"1|_\"},\n\t{ before: \":8080|\", after: \"80|\"},\n\t{ before: \"|_\", after: \"|__\"},\n\t{ before: \"1a|2\", after: \"1|2\"},\n\n\t{ setMask: /\\d{2}-\\d{2}/ },\n\t{ before: \"12|34\", after: \"12|-34\"},\n\t{ before: \"121|-34\", after: \"12-1|3\"},\n\t{ before: \"1a|2-13\", after: \"1|2-13\"},\n\t{ before: \"__|__\", after: \"__|-__\"},\n\t{ before: \"|\", after: \"|__-__\"},\n\t{ before: \"aaaaaaaaaaa|\", after: \"|__-__\"},\n\t{ before: \"_1|_-__\", after: \"_1|-__\"},\n\n\t{ setMask: /\\d{2}\\/\\d{2}\\/\\d{2,4}/ },\n\t{ before: \"__/__/__1|\", after: \"__/__/__1|\"},\n\t{ before: \"123456789|\", after: \"12/34/5678|\"},\n\t{ before: \"12/34/567|\", after: \"12/34/567|\"},\n\t{ before: \"12/34/56|\", after: \"12/34/56|\"},\n\t{ before: \"12/34/5|\", after: \"12/34/5|_\"},\n\n\t{ setMask: /\\+1 \\(\\d{3}\\) \\d{4}-\\d{2}/ },\n\t{ before: \"123456789|\", after: \"+1 (234) 5678-9|_\"},\n\t{ before: \"123456789123|\", after: \"+1 (234) 5678-91|\"},\n\t{ before: \"+1 (234) 5678|91\", after: \"+1 (234) 5678|-91\"},\n\t{ before: \"+11| (234) 5678-91\", after: \"+1 (1|23) 4567-89\"},\n\t{ before: \"+1 (123) 45672|-89\", after: \"+1 (123) 4567-2|8\"},\n\t{ before: \"|1 (123) 4567-28\", after: \"|+1 (123) 4567-28\"},\n\t{ before: \"+1 (123|4567-28\", after: \"+1 (123|) 4567-28\"},\n\t{ before: \"123456789012|\", after: \"+1 (234) 5678-90|\"},\n]\n\n","\n\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Tests.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Tests.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Tests.vue?vue&type=template&id=ca6ec168&\"\nimport script from \"./Tests.vue?vue&type=script&lang=js&\"\nexport * from \"./Tests.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","\n\n\n\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Demo.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Demo.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Demo.vue?vue&type=template&id=4af81fda&scoped=true&\"\nimport script from \"./Demo.vue?vue&type=script&lang=js&\"\nexport * from \"./Demo.vue?vue&type=script&lang=js&\"\nimport style0 from \"./Demo.vue?vue&type=style&index=0&id=4af81fda&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"4af81fda\",\n null\n \n)\n\nexport default component.exports","\n\n\n\n\n","import mod from \"-!../node_modules/cache-loader/dist/cjs.js??ref--0-0!../node_modules/vue-loader/lib/index.js??vue-loader-options!./App.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../node_modules/cache-loader/dist/cjs.js??ref--0-0!../node_modules/vue-loader/lib/index.js??vue-loader-options!./App.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./App.vue?vue&type=template&id=8bdbd2a4&\"\nimport script from \"./App.vue?vue&type=script&lang=js&\"\nexport * from \"./App.vue?vue&type=script&lang=js&\"\nimport style0 from \"./App.vue?vue&type=style&index=0&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","import Vue from 'vue'\nimport App from './App.vue'\n\nnew Vue({\n el: '#app',\n render: h => h(App)\n})\n"],"sourceRoot":""} -------------------------------------------------------------------------------- /dist/js/chunk-vendors.b1b83085.js: -------------------------------------------------------------------------------- 1 | (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-vendors"],{2877:function(t,e,n){"use strict";function r(t,e,n,r,i,o,a,s){var c,u="function"===typeof t?t.options:t;if(e&&(u.render=e,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),a?(c=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},u._ssrRegister=c):i&&(c=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),c)if(u.functional){u._injectStyles=c;var l=u.render;u.render=function(t,e){return c.call(e),l(t,e)}}else{var f=u.beforeCreate;u.beforeCreate=f?[].concat(f,c):[c]}return{exports:t,options:u}}n.d(e,"a",function(){return r})},"2b0e":function(t,e,n){"use strict";(function(t){ 2 | /*! 3 | * Vue.js v2.6.8 4 | * (c) 2014-2019 Evan You 5 | * Released under the MIT License. 6 | */ 7 | var n=Object.freeze({});function r(t){return void 0===t||null===t}function i(t){return void 0!==t&&null!==t}function o(t){return!0===t}function a(t){return!1===t}function s(t){return"string"===typeof t||"number"===typeof t||"symbol"===typeof t||"boolean"===typeof t}function c(t){return null!==t&&"object"===typeof t}var u=Object.prototype.toString;function l(t){return"[object Object]"===u.call(t)}function f(t){return"[object RegExp]"===u.call(t)}function p(t){var e=parseFloat(String(t));return e>=0&&Math.floor(e)===e&&isFinite(t)}function d(t){return i(t)&&"function"===typeof t.then&&"function"===typeof t.catch}function v(t){return null==t?"":Array.isArray(t)||l(t)&&t.toString===u?JSON.stringify(t,null,2):String(t)}function h(t){var e=parseFloat(t);return isNaN(e)?t:e}function m(t,e){for(var n=Object.create(null),r=t.split(","),i=0;i-1)return t.splice(n,1)}}var _=Object.prototype.hasOwnProperty;function b(t,e){return _.call(t,e)}function w(t){var e=Object.create(null);return function(n){var r=e[n];return r||(e[n]=t(n))}}var C=/-(\w)/g,$=w(function(t){return t.replace(C,function(t,e){return e?e.toUpperCase():""})}),A=w(function(t){return t.charAt(0).toUpperCase()+t.slice(1)}),x=/\B([A-Z])/g,O=w(function(t){return t.replace(x,"-$1").toLowerCase()});function k(t,e){function n(n){var r=arguments.length;return r?r>1?t.apply(e,arguments):t.call(e,n):t.call(e)}return n._length=t.length,n}function S(t,e){return t.bind(e)}var E=Function.prototype.bind?S:k;function j(t,e){e=e||0;var n=t.length-e,r=new Array(n);while(n--)r[n]=t[n+e];return r}function T(t,e){for(var n in e)t[n]=e[n];return t}function I(t){for(var e={},n=0;n0,nt=Y&&Y.indexOf("edge/")>0,rt=(Y&&Y.indexOf("android"),Y&&/iphone|ipad|ipod|ios/.test(Y)||"ios"===Q),it=(Y&&/chrome\/\d+/.test(Y),Y&&/phantomjs/.test(Y),Y&&Y.match(/firefox\/(\d+)/)),ot={}.watch,at=!1;if(J)try{var st={};Object.defineProperty(st,"passive",{get:function(){at=!0}}),window.addEventListener("test-passive",null,st)}catch(Ca){}var ct=function(){return void 0===X&&(X=!J&&!Z&&"undefined"!==typeof t&&(t["process"]&&"server"===t["process"].env.VUE_ENV)),X},ut=J&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function lt(t){return"function"===typeof t&&/native code/.test(t.toString())}var ft,pt="undefined"!==typeof Symbol&<(Symbol)&&"undefined"!==typeof Reflect&<(Reflect.ownKeys);ft="undefined"!==typeof Set&<(Set)?Set:function(){function t(){this.set=Object.create(null)}return t.prototype.has=function(t){return!0===this.set[t]},t.prototype.add=function(t){this.set[t]=!0},t.prototype.clear=function(){this.set=Object.create(null)},t}();var dt=D,vt=0,ht=function(){this.id=vt++,this.subs=[]};ht.prototype.addSub=function(t){this.subs.push(t)},ht.prototype.removeSub=function(t){g(this.subs,t)},ht.prototype.depend=function(){ht.target&&ht.target.addDep(this)},ht.prototype.notify=function(){var t=this.subs.slice();for(var e=0,n=t.length;e-1)if(o&&!b(i,"default"))a=!1;else if(""===a||a===O(t)){var c=te(String,i.type);(c<0||s0&&(a=ke(a,(e||"")+"_"+n),Oe(a[0])&&Oe(u)&&(l[c]=Ct(u.text+a[0].text),a.shift()),l.push.apply(l,a)):s(a)?Oe(u)?l[c]=Ct(u.text+a):""!==a&&l.push(Ct(a)):Oe(a)&&Oe(u)?l[c]=Ct(u.text+a.text):(o(t._isVList)&&i(a.tag)&&r(a.key)&&i(e)&&(a.key="__vlist"+e+"_"+n+"__"),l.push(a)));return l}function Se(t){var e=t.$options.provide;e&&(t._provided="function"===typeof e?e.call(t):e)}function Ee(t){var e=je(t.$options.inject,t);e&&(Et(!1),Object.keys(e).forEach(function(n){Nt(t,n,e[n])}),Et(!0))}function je(t,e){if(t){for(var n=Object.create(null),r=pt?Reflect.ownKeys(t):Object.keys(t),i=0;i1?j(n):n;for(var r=j(arguments,1),i='event handler for "'+t+'"',o=0,a=n.length;oWn&&Un[n].id>t.id)n--;Un.splice(n+1,0,t)}else Un.push(t);Bn||(Bn=!0,ve(Gn))}}J&&Xn()>document.createEvent("Event").timeStamp&&(Xn=function(){return performance.now()});var tr=0,er=function(t,e,n,r,i){this.vm=t,i&&(t._watcher=this),t._watchers.push(this),r?(this.deep=!!r.deep,this.user=!!r.user,this.lazy=!!r.lazy,this.sync=!!r.sync,this.before=r.before):this.deep=this.user=this.lazy=this.sync=!1,this.cb=n,this.id=++tr,this.active=!0,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new ft,this.newDepIds=new ft,this.expression="","function"===typeof e?this.getter=e:(this.getter=K(e),this.getter||(this.getter=D)),this.value=this.lazy?void 0:this.get()};er.prototype.get=function(){var t;yt(this);var e=this.vm;try{t=this.getter.call(e,e)}catch(Ca){if(!this.user)throw Ca;ee(Ca,e,'getter for watcher "'+this.expression+'"')}finally{this.deep&&me(t),gt(),this.cleanupDeps()}return t},er.prototype.addDep=function(t){var e=t.id;this.newDepIds.has(e)||(this.newDepIds.add(e),this.newDeps.push(t),this.depIds.has(e)||t.addSub(this))},er.prototype.cleanupDeps=function(){var t=this.deps.length;while(t--){var e=this.deps[t];this.newDepIds.has(e.id)||e.removeSub(this)}var n=this.depIds;this.depIds=this.newDepIds,this.newDepIds=n,this.newDepIds.clear(),n=this.deps,this.deps=this.newDeps,this.newDeps=n,this.newDeps.length=0},er.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():Yn(this)},er.prototype.run=function(){if(this.active){var t=this.get();if(t!==this.value||c(t)||this.deep){var e=this.value;if(this.value=t,this.user)try{this.cb.call(this.vm,t,e)}catch(Ca){ee(Ca,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,t,e)}}},er.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},er.prototype.depend=function(){var t=this.deps.length;while(t--)this.deps[t].depend()},er.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||g(this.vm._watchers,this);var t=this.deps.length;while(t--)this.deps[t].removeSub(this);this.active=!1}};var nr={enumerable:!0,configurable:!0,get:D,set:D};function rr(t,e,n){nr.get=function(){return this[e][n]},nr.set=function(t){this[e][n]=t},Object.defineProperty(t,n,nr)}function ir(t){t._watchers=[];var e=t.$options;e.props&&or(t,e.props),e.methods&&dr(t,e.methods),e.data?ar(t):Dt(t._data={},!0),e.computed&&ur(t,e.computed),e.watch&&e.watch!==ot&&vr(t,e.watch)}function or(t,e){var n=t.$options.propsData||{},r=t._props={},i=t.$options._propKeys=[],o=!t.$parent;o||Et(!1);var a=function(o){i.push(o);var a=Jt(o,e,n,t);Nt(r,o,a),o in t||rr(t,"_props",o)};for(var s in e)a(s);Et(!0)}function ar(t){var e=t.$options.data;e=t._data="function"===typeof e?sr(e,t):e||{},l(e)||(e={});var n=Object.keys(e),r=t.$options.props,i=(t.$options.methods,n.length);while(i--){var o=n[i];0,r&&b(r,o)||z(o)||rr(t,"_data",o)}Dt(e,!0)}function sr(t,e){yt();try{return t.call(e,e)}catch(Ca){return ee(Ca,e,"data()"),{}}finally{gt()}}var cr={lazy:!0};function ur(t,e){var n=t._computedWatchers=Object.create(null),r=ct();for(var i in e){var o=e[i],a="function"===typeof o?o:o.get;0,r||(n[i]=new er(t,a||D,D,cr)),i in t||lr(t,i,o)}}function lr(t,e,n){var r=!ct();"function"===typeof n?(nr.get=r?fr(e):pr(n),nr.set=D):(nr.get=n.get?r&&!1!==n.cache?fr(e):pr(n.get):D,nr.set=n.set||D),Object.defineProperty(t,e,nr)}function fr(t){return function(){var e=this._computedWatchers&&this._computedWatchers[t];if(e)return e.dirty&&e.evaluate(),ht.target&&e.depend(),e.value}}function pr(t){return function(){return t.call(this,this)}}function dr(t,e){t.$options.props;for(var n in e)t[n]="function"!==typeof e[n]?D:E(e[n],t)}function vr(t,e){for(var n in e){var r=e[n];if(Array.isArray(r))for(var i=0;i-1)return this;var n=j(arguments,1);return n.unshift(this),"function"===typeof t.install?t.install.apply(t,n):"function"===typeof t&&t.apply(null,n),e.push(t),this}}function Ar(t){t.mixin=function(t){return this.options=Xt(this.options,t),this}}function xr(t){t.cid=0;var e=1;t.extend=function(t){t=t||{};var n=this,r=n.cid,i=t._Ctor||(t._Ctor={});if(i[r])return i[r];var o=t.name||n.options.name;var a=function(t){this._init(t)};return a.prototype=Object.create(n.prototype),a.prototype.constructor=a,a.cid=e++,a.options=Xt(n.options,t),a["super"]=n,a.options.props&&Or(a),a.options.computed&&kr(a),a.extend=n.extend,a.mixin=n.mixin,a.use=n.use,U.forEach(function(t){a[t]=n[t]}),o&&(a.options.components[o]=a),a.superOptions=n.options,a.extendOptions=t,a.sealedOptions=T({},a.options),i[r]=a,a}}function Or(t){var e=t.options.props;for(var n in e)rr(t.prototype,"_props",n)}function kr(t){var e=t.options.computed;for(var n in e)lr(t.prototype,n,e[n])}function Sr(t){U.forEach(function(e){t[e]=function(t,n){return n?("component"===e&&l(n)&&(n.name=n.name||t,n=this.options._base.extend(n)),"directive"===e&&"function"===typeof n&&(n={bind:n,update:n}),this.options[e+"s"][t]=n,n):this.options[e+"s"][t]}})}function Er(t){return t&&(t.Ctor.options.name||t.tag)}function jr(t,e){return Array.isArray(t)?t.indexOf(e)>-1:"string"===typeof t?t.split(",").indexOf(e)>-1:!!f(t)&&t.test(e)}function Tr(t,e){var n=t.cache,r=t.keys,i=t._vnode;for(var o in n){var a=n[o];if(a){var s=Er(a.componentOptions);s&&!e(s)&&Ir(n,o,r,i)}}}function Ir(t,e,n,r){var i=t[e];!i||r&&i.tag===r.tag||i.componentInstance.$destroy(),t[e]=null,g(n,e)}gr(Cr),mr(Cr),En(Cr),Dn(Cr),gn(Cr);var Dr=[String,RegExp,Array],Nr={name:"keep-alive",abstract:!0,props:{include:Dr,exclude:Dr,max:[String,Number]},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var t in this.cache)Ir(this.cache,t,this.keys)},mounted:function(){var t=this;this.$watch("include",function(e){Tr(t,function(t){return jr(e,t)})}),this.$watch("exclude",function(e){Tr(t,function(t){return!jr(e,t)})})},render:function(){var t=this.$slots.default,e=$n(t),n=e&&e.componentOptions;if(n){var r=Er(n),i=this,o=i.include,a=i.exclude;if(o&&(!r||!jr(o,r))||a&&r&&jr(a,r))return e;var s=this,c=s.cache,u=s.keys,l=null==e.key?n.Ctor.cid+(n.tag?"::"+n.tag:""):e.key;c[l]?(e.componentInstance=c[l].componentInstance,g(u,l),u.push(l)):(c[l]=e,u.push(l),this.max&&u.length>parseInt(this.max)&&Ir(c,u[0],u,this._vnode)),e.data.keepAlive=!0}return e||t&&t[0]}},Pr={KeepAlive:Nr};function Lr(t){var e={get:function(){return H}};Object.defineProperty(t,"config",e),t.util={warn:dt,extend:T,mergeOptions:Xt,defineReactive:Nt},t.set=Pt,t.delete=Lt,t.nextTick=ve,t.observable=function(t){return Dt(t),t},t.options=Object.create(null),U.forEach(function(e){t.options[e+"s"]=Object.create(null)}),t.options._base=t,T(t.options.components,Pr),$r(t),Ar(t),xr(t),Sr(t)}Lr(Cr),Object.defineProperty(Cr.prototype,"$isServer",{get:ct}),Object.defineProperty(Cr.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(Cr,"FunctionalRenderContext",{value:Ze}),Cr.version="2.6.8";var Mr=m("style,class"),Fr=m("input,textarea,option,select,progress"),Rr=function(t,e,n){return"value"===n&&Fr(t)&&"button"!==e||"selected"===n&&"option"===t||"checked"===n&&"input"===t||"muted"===n&&"video"===t},Ur=m("contenteditable,draggable,spellcheck"),Vr=m("events,caret,typing,plaintext-only"),Hr=function(t,e){return Kr(e)||"false"===e?"false":"contenteditable"===t&&Vr(e)?e:"true"},Br=m("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,translate,truespeed,typemustmatch,visible"),zr="http://www.w3.org/1999/xlink",Wr=function(t){return":"===t.charAt(5)&&"xlink"===t.slice(0,5)},qr=function(t){return Wr(t)?t.slice(6,t.length):""},Kr=function(t){return null==t||!1===t};function Xr(t){var e=t.data,n=t,r=t;while(i(r.componentInstance))r=r.componentInstance._vnode,r&&r.data&&(e=Gr(r.data,e));while(i(n=n.parent))n&&n.data&&(e=Gr(e,n.data));return Jr(e.staticClass,e.class)}function Gr(t,e){return{staticClass:Zr(t.staticClass,e.staticClass),class:i(t.class)?[t.class,e.class]:e.class}}function Jr(t,e){return i(t)||i(e)?Zr(t,Qr(e)):""}function Zr(t,e){return t?e?t+" "+e:t:e||""}function Qr(t){return Array.isArray(t)?Yr(t):c(t)?ti(t):"string"===typeof t?t:""}function Yr(t){for(var e,n="",r=0,o=t.length;r-1?ai[t]=e.constructor===window.HTMLUnknownElement||e.constructor===window.HTMLElement:ai[t]=/HTMLUnknownElement/.test(e.toString())}var ci=m("text,number,password,search,email,tel,url");function ui(t){if("string"===typeof t){var e=document.querySelector(t);return e||document.createElement("div")}return t}function li(t,e){var n=document.createElement(t);return"select"!==t?n:(e.data&&e.data.attrs&&void 0!==e.data.attrs.multiple&&n.setAttribute("multiple","multiple"),n)}function fi(t,e){return document.createElementNS(ei[t],e)}function pi(t){return document.createTextNode(t)}function di(t){return document.createComment(t)}function vi(t,e,n){t.insertBefore(e,n)}function hi(t,e){t.removeChild(e)}function mi(t,e){t.appendChild(e)}function yi(t){return t.parentNode}function gi(t){return t.nextSibling}function _i(t){return t.tagName}function bi(t,e){t.textContent=e}function wi(t,e){t.setAttribute(e,"")}var Ci=Object.freeze({createElement:li,createElementNS:fi,createTextNode:pi,createComment:di,insertBefore:vi,removeChild:hi,appendChild:mi,parentNode:yi,nextSibling:gi,tagName:_i,setTextContent:bi,setStyleScope:wi}),$i={create:function(t,e){Ai(e)},update:function(t,e){t.data.ref!==e.data.ref&&(Ai(t,!0),Ai(e))},destroy:function(t){Ai(t,!0)}};function Ai(t,e){var n=t.data.ref;if(i(n)){var r=t.context,o=t.componentInstance||t.elm,a=r.$refs;e?Array.isArray(a[n])?g(a[n],o):a[n]===o&&(a[n]=void 0):t.data.refInFor?Array.isArray(a[n])?a[n].indexOf(o)<0&&a[n].push(o):a[n]=[o]:a[n]=o}}var xi=new _t("",{},[]),Oi=["create","activate","update","remove","destroy"];function ki(t,e){return t.key===e.key&&(t.tag===e.tag&&t.isComment===e.isComment&&i(t.data)===i(e.data)&&Si(t,e)||o(t.isAsyncPlaceholder)&&t.asyncFactory===e.asyncFactory&&r(e.asyncFactory.error))}function Si(t,e){if("input"!==t.tag)return!0;var n,r=i(n=t.data)&&i(n=n.attrs)&&n.type,o=i(n=e.data)&&i(n=n.attrs)&&n.type;return r===o||ci(r)&&ci(o)}function Ei(t,e,n){var r,o,a={};for(r=e;r<=n;++r)o=t[r].key,i(o)&&(a[o]=r);return a}function ji(t){var e,n,a={},c=t.modules,u=t.nodeOps;for(e=0;eh?(f=r(n[g+1])?null:n[g+1].elm,$(t,f,n,v,g,o)):v>g&&x(t,e,p,h)}function S(t,e,n,r){for(var o=n;o-1?Vi(t,e,n):Br(e)?Kr(n)?t.removeAttribute(e):(n="allowfullscreen"===e&&"EMBED"===t.tagName?"true":e,t.setAttribute(e,n)):Ur(e)?t.setAttribute(e,Hr(e,n)):Wr(e)?Kr(n)?t.removeAttributeNS(zr,qr(e)):t.setAttributeNS(zr,e,n):Vi(t,e,n)}function Vi(t,e,n){if(Kr(n))t.removeAttribute(e);else{if(tt&&!et&&"TEXTAREA"===t.tagName&&"placeholder"===e&&""!==n&&!t.__ieph){var r=function(e){e.stopImmediatePropagation(),t.removeEventListener("input",r)};t.addEventListener("input",r),t.__ieph=!0}t.setAttribute(e,n)}}var Hi={create:Ri,update:Ri};function Bi(t,e){var n=e.elm,o=e.data,a=t.data;if(!(r(o.staticClass)&&r(o.class)&&(r(a)||r(a.staticClass)&&r(a.class)))){var s=Xr(e),c=n._transitionClasses;i(c)&&(s=Zr(s,Qr(c))),s!==n._prevClass&&(n.setAttribute("class",s),n._prevClass=s)}}var zi,Wi={create:Bi,update:Bi},qi="__r",Ki="__c";function Xi(t){if(i(t[qi])){var e=tt?"change":"input";t[e]=[].concat(t[qi],t[e]||[]),delete t[qi]}i(t[Ki])&&(t.change=[].concat(t[Ki],t.change||[]),delete t[Ki])}function Gi(t,e,n){var r=zi;return function i(){var o=e.apply(null,arguments);null!==o&&Qi(t,i,n,r)}}var Ji=ae&&!(it&&Number(it[1])<=53);function Zi(t,e,n,r){if(Ji){var i=Kn,o=e;e=o._wrapper=function(t){if(t.target===t.currentTarget||t.timeStamp>=i||0===t.timeStamp||t.target.ownerDocument!==document)return o.apply(this,arguments)}}zi.addEventListener(t,e,at?{capture:n,passive:r}:n)}function Qi(t,e,n,r){(r||zi).removeEventListener(t,e._wrapper||e,n)}function Yi(t,e){if(!r(t.data.on)||!r(e.data.on)){var n=e.data.on||{},i=t.data.on||{};zi=e.elm,Xi(n),be(n,i,Zi,Qi,Gi,e.context),zi=void 0}}var to,eo={create:Yi,update:Yi};function no(t,e){if(!r(t.data.domProps)||!r(e.data.domProps)){var n,o,a=e.elm,s=t.data.domProps||{},c=e.data.domProps||{};for(n in i(c.__ob__)&&(c=e.data.domProps=T({},c)),s)r(c[n])&&(a[n]="");for(n in c){if(o=c[n],"textContent"===n||"innerHTML"===n){if(e.children&&(e.children.length=0),o===s[n])continue;1===a.childNodes.length&&a.removeChild(a.childNodes[0])}if("value"===n&&"PROGRESS"!==a.tagName){a._value=o;var u=r(o)?"":String(o);ro(a,u)&&(a.value=u)}else if("innerHTML"===n&&ri(a.tagName)&&r(a.innerHTML)){to=to||document.createElement("div"),to.innerHTML=""+o+"";var l=to.firstChild;while(a.firstChild)a.removeChild(a.firstChild);while(l.firstChild)a.appendChild(l.firstChild)}else if(o!==s[n])try{a[n]=o}catch(Ca){}}}}function ro(t,e){return!t.composing&&("OPTION"===t.tagName||io(t,e)||oo(t,e))}function io(t,e){var n=!0;try{n=document.activeElement!==t}catch(Ca){}return n&&t.value!==e}function oo(t,e){var n=t.value,r=t._vModifiers;if(i(r)){if(r.number)return h(n)!==h(e);if(r.trim)return n.trim()!==e.trim()}return n!==e}var ao={create:no,update:no},so=w(function(t){var e={},n=/;(?![^(]*\))/g,r=/:(.+)/;return t.split(n).forEach(function(t){if(t){var n=t.split(r);n.length>1&&(e[n[0].trim()]=n[1].trim())}}),e});function co(t){var e=uo(t.style);return t.staticStyle?T(t.staticStyle,e):e}function uo(t){return Array.isArray(t)?I(t):"string"===typeof t?so(t):t}function lo(t,e){var n,r={};if(e){var i=t;while(i.componentInstance)i=i.componentInstance._vnode,i&&i.data&&(n=co(i.data))&&T(r,n)}(n=co(t.data))&&T(r,n);var o=t;while(o=o.parent)o.data&&(n=co(o.data))&&T(r,n);return r}var fo,po=/^--/,vo=/\s*!important$/,ho=function(t,e,n){if(po.test(e))t.style.setProperty(e,n);else if(vo.test(n))t.style.setProperty(O(e),n.replace(vo,""),"important");else{var r=yo(e);if(Array.isArray(n))for(var i=0,o=n.length;i-1?e.split(bo).forEach(function(e){return t.classList.add(e)}):t.classList.add(e);else{var n=" "+(t.getAttribute("class")||"")+" ";n.indexOf(" "+e+" ")<0&&t.setAttribute("class",(n+e).trim())}}function Co(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(bo).forEach(function(e){return t.classList.remove(e)}):t.classList.remove(e),t.classList.length||t.removeAttribute("class");else{var n=" "+(t.getAttribute("class")||"")+" ",r=" "+e+" ";while(n.indexOf(r)>=0)n=n.replace(r," ");n=n.trim(),n?t.setAttribute("class",n):t.removeAttribute("class")}}function $o(t){if(t){if("object"===typeof t){var e={};return!1!==t.css&&T(e,Ao(t.name||"v")),T(e,t),e}return"string"===typeof t?Ao(t):void 0}}var Ao=w(function(t){return{enterClass:t+"-enter",enterToClass:t+"-enter-to",enterActiveClass:t+"-enter-active",leaveClass:t+"-leave",leaveToClass:t+"-leave-to",leaveActiveClass:t+"-leave-active"}}),xo=J&&!et,Oo="transition",ko="animation",So="transition",Eo="transitionend",jo="animation",To="animationend";xo&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(So="WebkitTransition",Eo="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(jo="WebkitAnimation",To="webkitAnimationEnd"));var Io=J?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(t){return t()};function Do(t){Io(function(){Io(t)})}function No(t,e){var n=t._transitionClasses||(t._transitionClasses=[]);n.indexOf(e)<0&&(n.push(e),wo(t,e))}function Po(t,e){t._transitionClasses&&g(t._transitionClasses,e),Co(t,e)}function Lo(t,e,n){var r=Fo(t,e),i=r.type,o=r.timeout,a=r.propCount;if(!i)return n();var s=i===Oo?Eo:To,c=0,u=function(){t.removeEventListener(s,l),n()},l=function(e){e.target===t&&++c>=a&&u()};setTimeout(function(){c0&&(n=Oo,l=a,f=o.length):e===ko?u>0&&(n=ko,l=u,f=c.length):(l=Math.max(a,u),n=l>0?a>u?Oo:ko:null,f=n?n===Oo?o.length:c.length:0);var p=n===Oo&&Mo.test(r[So+"Property"]);return{type:n,timeout:l,propCount:f,hasTransform:p}}function Ro(t,e){while(t.length1}function Wo(t,e){!0!==e.data.show&&Vo(e)}var qo=J?{create:Wo,activate:Wo,remove:function(t,e){!0!==t.data.show?Ho(t,e):e()}}:{},Ko=[Hi,Wi,eo,ao,_o,qo],Xo=Ko.concat(Fi),Go=ji({nodeOps:Ci,modules:Xo});et&&document.addEventListener("selectionchange",function(){var t=document.activeElement;t&&t.vmodel&&ra(t,"input")});var Jo={inserted:function(t,e,n,r){"select"===n.tag?(r.elm&&!r.elm._vOptions?we(n,"postpatch",function(){Jo.componentUpdated(t,e,n)}):Zo(t,e,n.context),t._vOptions=[].map.call(t.options,ta)):("textarea"===n.tag||ci(t.type))&&(t._vModifiers=e.modifiers,e.modifiers.lazy||(t.addEventListener("compositionstart",ea),t.addEventListener("compositionend",na),t.addEventListener("change",na),et&&(t.vmodel=!0)))},componentUpdated:function(t,e,n){if("select"===n.tag){Zo(t,e,n.context);var r=t._vOptions,i=t._vOptions=[].map.call(t.options,ta);if(i.some(function(t,e){return!L(t,r[e])})){var o=t.multiple?e.value.some(function(t){return Yo(t,i)}):e.value!==e.oldValue&&Yo(e.value,i);o&&ra(t,"change")}}}};function Zo(t,e,n){Qo(t,e,n),(tt||nt)&&setTimeout(function(){Qo(t,e,n)},0)}function Qo(t,e,n){var r=e.value,i=t.multiple;if(!i||Array.isArray(r)){for(var o,a,s=0,c=t.options.length;s-1,a.selected!==o&&(a.selected=o);else if(L(ta(a),r))return void(t.selectedIndex!==s&&(t.selectedIndex=s));i||(t.selectedIndex=-1)}}function Yo(t,e){return e.every(function(e){return!L(e,t)})}function ta(t){return"_value"in t?t._value:t.value}function ea(t){t.target.composing=!0}function na(t){t.target.composing&&(t.target.composing=!1,ra(t.target,"input"))}function ra(t,e){var n=document.createEvent("HTMLEvents");n.initEvent(e,!0,!0),t.dispatchEvent(n)}function ia(t){return!t.componentInstance||t.data&&t.data.transition?t:ia(t.componentInstance._vnode)}var oa={bind:function(t,e,n){var r=e.value;n=ia(n);var i=n.data&&n.data.transition,o=t.__vOriginalDisplay="none"===t.style.display?"":t.style.display;r&&i?(n.data.show=!0,Vo(n,function(){t.style.display=o})):t.style.display=r?o:"none"},update:function(t,e,n){var r=e.value,i=e.oldValue;if(!r!==!i){n=ia(n);var o=n.data&&n.data.transition;o?(n.data.show=!0,r?Vo(n,function(){t.style.display=t.__vOriginalDisplay}):Ho(n,function(){t.style.display="none"})):t.style.display=r?t.__vOriginalDisplay:"none"}},unbind:function(t,e,n,r,i){i||(t.style.display=t.__vOriginalDisplay)}},aa={model:Jo,show:oa},sa={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function ca(t){var e=t&&t.componentOptions;return e&&e.Ctor.options.abstract?ca($n(e.children)):t}function ua(t){var e={},n=t.$options;for(var r in n.propsData)e[r]=t[r];var i=n._parentListeners;for(var o in i)e[$(o)]=i[o];return e}function la(t,e){if(/\d-keep-alive$/.test(e.tag))return t("keep-alive",{props:e.componentOptions.propsData})}function fa(t){while(t=t.parent)if(t.data.transition)return!0}function pa(t,e){return e.key===t.key&&e.tag===t.tag}var da=function(t){return t.tag||Cn(t)},va=function(t){return"show"===t.name},ha={name:"transition",props:sa,abstract:!0,render:function(t){var e=this,n=this.$slots.default;if(n&&(n=n.filter(da),n.length)){0;var r=this.mode;0;var i=n[0];if(fa(this.$vnode))return i;var o=ca(i);if(!o)return i;if(this._leaving)return la(t,i);var a="__transition-"+this._uid+"-";o.key=null==o.key?o.isComment?a+"comment":a+o.tag:s(o.key)?0===String(o.key).indexOf(a)?o.key:a+o.key:o.key;var c=(o.data||(o.data={})).transition=ua(this),u=this._vnode,l=ca(u);if(o.data.directives&&o.data.directives.some(va)&&(o.data.show=!0),l&&l.data&&!pa(o,l)&&!Cn(l)&&(!l.componentInstance||!l.componentInstance._vnode.isComment)){var f=l.data.transition=T({},c);if("out-in"===r)return this._leaving=!0,we(f,"afterLeave",function(){e._leaving=!1,e.$forceUpdate()}),la(t,i);if("in-out"===r){if(Cn(o))return u;var p,d=function(){p()};we(c,"afterEnter",d),we(c,"enterCancelled",d),we(f,"delayLeave",function(t){p=t})}}return i}}},ma=T({tag:String,moveClass:String},sa);delete ma.mode;var ya={props:ma,beforeMount:function(){var t=this,e=this._update;this._update=function(n,r){var i=Tn(t);t.__patch__(t._vnode,t.kept,!1,!0),t._vnode=t.kept,i(),e.call(t,n,r)}},render:function(t){for(var e=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),r=this.prevChildren=this.children,i=this.$slots.default||[],o=this.children=[],a=ua(this),s=0;s 1%", 25 | "last 2 versions", 26 | "not ie <= 8" 27 | ] 28 | } 29 | -------------------------------------------------------------------------------- /public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raidan00/vue-r-mask/3899935c1bacdf844305b40a6ab583e63c59f7cb/public/favicon.ico -------------------------------------------------------------------------------- /public/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | vue-r-mask 7 | 8 | 9 |
10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /src/App.vue: -------------------------------------------------------------------------------- 1 | 6 | 7 | 17 | 18 | 28 | -------------------------------------------------------------------------------- /src/components/Demo.vue: -------------------------------------------------------------------------------- 1 | 77 | 106 | 125 | 126 | -------------------------------------------------------------------------------- /src/components/Tests.vue: -------------------------------------------------------------------------------- 1 | 16 | 60 | -------------------------------------------------------------------------------- /src/components/testsList.js: -------------------------------------------------------------------------------- 1 | export default [ 2 | 3 | { setMask: /\d{0,100}/ }, 4 | { before: "1|", after: "1|"}, 5 | { before: "12323|", after: "12323|"}, 6 | { before: "123123123a|", after: "123123123|"}, 7 | { before: "123123123%|", after: "123123123|"}, 8 | 9 | { setMask: /[01]{0,100}/ }, 10 | { before: "4|", after: "|"}, 11 | { before: "a|", after: "|"}, 12 | { before: "0|", after: "0|"}, 13 | 14 | { setMask: /\w{0,100}/ }, 15 | { before: "a|", after: "a|"}, 16 | { before: "avv1|", after: "avv1|"}, 17 | { before: "avv1@|", after: "avv1|"}, 18 | { before: "avv1-|", after: "avv1|"}, 19 | 20 | { setMask: /[a-zA-Z]{0,100}/ }, 21 | { before: "1|", after: "|"}, 22 | { before: "asdd|", after: "asdd|"}, 23 | { before: "asdd1|", after: "asdd|"}, 24 | { before: "asdd!|", after: "asdd|"}, 25 | 26 | { setMask: /[0-2]{1}\d{1}:[0-5]{1}\d{1}/ }, 27 | { before: "__1|:__", after: "__:1|_"}, 28 | { before: "__:11|_", after: "__:11|"}, 29 | { before: "__:4|1", after: "__:4|1"}, 30 | { before: "2|11:11", after: "2|1:11"}, 31 | { before: "21:8|11", after: "21:|11"}, 32 | { before: "9|21:11", after: "|21:11"}, 33 | { before: "21a|:11", after: "21:|11"}, 34 | { before: "21:1s|1", after: "21:1|1"}, 35 | { before: "2s|1:11", after: "2|1:11"}, 36 | { before: "21:11@|", after: "21:11|"}, 37 | 38 | { setMask: /\d{2}/ }, 39 | { before: "__1|", after: "__|"}, 40 | { before: "1|__", after: "1|_"}, 41 | { before: ":8080|", after: "80|"}, 42 | { before: "|_", after: "|__"}, 43 | { before: "1a|2", after: "1|2"}, 44 | 45 | { setMask: /\d{2}-\d{2}/ }, 46 | { before: "12|34", after: "12|-34"}, 47 | { before: "121|-34", after: "12-1|3"}, 48 | { before: "1a|2-13", after: "1|2-13"}, 49 | { before: "__|__", after: "__|-__"}, 50 | { before: "|", after: "|__-__"}, 51 | { before: "aaaaaaaaaaa|", after: "|__-__"}, 52 | { before: "_1|_-__", after: "_1|-__"}, 53 | 54 | { setMask: /\d{2}\/\d{2}\/\d{2,4}/ }, 55 | { before: "__/__/__1|", after: "__/__/__1|"}, 56 | { before: "123456789|", after: "12/34/5678|"}, 57 | { before: "12/34/567|", after: "12/34/567|"}, 58 | { before: "12/34/56|", after: "12/34/56|"}, 59 | { before: "12/34/5|", after: "12/34/5|_"}, 60 | 61 | { setMask: /\+1 \(\d{3}\) \d{4}-\d{2}/ }, 62 | { before: "123456789|", after: "+1 (234) 5678-9|_"}, 63 | { before: "123456789123|", after: "+1 (234) 5678-91|"}, 64 | { before: "+1 (234) 5678|91", after: "+1 (234) 5678|-91"}, 65 | { before: "+11| (234) 5678-91", after: "+1 (1|23) 4567-89"}, 66 | { before: "+1 (123) 45672|-89", after: "+1 (123) 4567-2|8"}, 67 | { before: "|1 (123) 4567-28", after: "|+1 (123) 4567-28"}, 68 | { before: "+1 (123|4567-28", after: "+1 (123|) 4567-28"}, 69 | { before: "123456789012|", after: "+1 (234) 5678-90|"}, 70 | ] 71 | 72 | -------------------------------------------------------------------------------- /src/main.js: -------------------------------------------------------------------------------- 1 | import Vue from 'vue' 2 | import App from './App.vue' 3 | 4 | new Vue({ 5 | el: '#app', 6 | render: h => h(App) 7 | }) 8 | -------------------------------------------------------------------------------- /vue-r-mask/README.md: -------------------------------------------------------------------------------- 1 | ### [GitHub repository](https://github.com/raidan00/vue-r-mask) 2 | https://github.com/raidan00/vue-r-mask 3 | -------------------------------------------------------------------------------- /vue-r-mask/caretPos.js: -------------------------------------------------------------------------------- 1 | export default { 2 | get: function (input) { 3 | var CaretPos = 0; 4 | if (input.selectionStart || input.selectionStart == 0) {// Standart. 5 | CaretPos = input.selectionStart; 6 | } else if (document.selection) {// Legacy IE 7 | var Sel = document.selection.createRange (); 8 | Sel.moveStart ('character', -input.value.length); 9 | CaretPos = Sel.text.length; 10 | } 11 | return (CaretPos); 12 | }, 13 | set: function (input, pos) { 14 | if (input.setSelectionRange) { 15 | input.setSelectionRange(pos, pos); 16 | } 17 | else if (input.createTextRange) { 18 | var range = input.createTextRange(); 19 | range.collapse(true); 20 | range.moveEnd('character', pos); 21 | range.moveStart('character', pos); 22 | range.select(); 23 | } 24 | } 25 | } 26 | 27 | 28 | -------------------------------------------------------------------------------- /vue-r-mask/index.js: -------------------------------------------------------------------------------- 1 | import caret from './caretPos.js'; 2 | 3 | export default { 4 | bind (el, val, VNode){ 5 | bind(...arguments) 6 | }, 7 | update (el, val, VNode){ 8 | if( val.value.toString() == val.oldValue.toString()) return; 9 | el.removeEventListener('input', VNode.context.vueRmask) 10 | bind(...arguments); 11 | } 12 | } 13 | function bind (el, val, VNode){ 14 | if(VNode.data.on && VNode.data.on.input && VNode.data.on.input._wrapper){ 15 | el.removeEventListener('input', VNode.data.on.input._wrapper); 16 | } 17 | let maskFunc = initMask(el, val); 18 | el.addEventListener('input', maskFunc); 19 | VNode.context.vueRmask = maskFunc; 20 | if(VNode.data.on && VNode.data.on.input && VNode.data.on.input._wrapper){ 21 | el.addEventListener('input', VNode.data.on.input._wrapper); 22 | } 23 | el.dispatchEvent(new Event('input')); 24 | }; 25 | function initMask (el, val){ 26 | let frame = []; 27 | let str = val.value.toString().slice(1,-1); 28 | let reg = /(?:((?:\\.)|(?:\[.+?\]))\{[\d,]+\})|\\.|./g, match; 29 | while(match = reg.exec(str)){ 30 | let toPush = {}; 31 | if(match[0].length <= 2){ 32 | toPush.minLen = 1; 33 | toPush.maxLen = 1; 34 | toPush.type = 'single'; 35 | toPush.char = match[0][match[0].length-1]; 36 | toPush.reg = new RegExp(match[0]+'+'); 37 | } else { 38 | toPush.minLen = +/\{(\d+)/.exec(match[0])[1]; 39 | toPush.maxLen = +/(\d+)\}/.exec(match[0])[1]; 40 | toPush.reg = new RegExp('(_|' + match[1] + ')+'); 41 | } 42 | frame.push(toPush); 43 | } 44 | return function (){ 45 | //let forTests = { before: this.value.slice(0, caret.get(this)) + '|' + this.value.slice( caret.get(this) )}; 46 | 47 | if (this.value === '' && this.placeholder) { return } 48 | 49 | let arr = this.value.split('').map((e)=>{return {char: e, type: 'char'}}); 50 | let pos = { char: '', type: 'pos' }; 51 | arr.splice(caret.get(this), 0, pos); 52 | let newVal = []; 53 | mainLoop: for(let i = 0; i < frame.length; i++){ 54 | for(let k = 0; k < frame[i].maxLen; k++){ 55 | if(arr[0] && arr[0].type == 'pos'){ 56 | newVal.push(arr.shift()); 57 | k--; 58 | continue; 59 | } 60 | if(arr[0] == undefined){ 61 | if(frame[i].type == 'single'){ 62 | newVal.push({char:frame[i].char}); 63 | }else{ 64 | if( k >= frame[i].minLen ){ 65 | continue mainLoop; 66 | } 67 | newVal.push({char:'_'}); 68 | } 69 | continue; 70 | } 71 | if(frame[i].reg.exec(arr[0].char)){ 72 | if( k >= frame[i].minLen && arr[0].char == '_') { 73 | continue mainLoop; 74 | } 75 | newVal.push(arr.shift()); 76 | }else{ 77 | if(frame[i].type == 'single'){ 78 | newVal.push({char:frame[i].char}); 79 | }else{ 80 | if( k >= frame[i].minLen ) { 81 | continue mainLoop; 82 | } 83 | arr.shift(); 84 | k--; 85 | } 86 | } 87 | } 88 | } 89 | this.value = newVal.map((e)=>e.char).join(''); 90 | caret.set(this, newVal.indexOf(pos)); 91 | 92 | //forTests.after = this.value.slice(0, caret.get(this)) + '|' + this.value.slice( caret.get(this) ); 93 | //console.log(forTests); 94 | } 95 | }; 96 | -------------------------------------------------------------------------------- /vue-r-mask/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "vue-r-mask", 3 | "version": "1.2.3", 4 | "description": "Masked input directive for vue.js 2", 5 | "main": "index.js", 6 | "scripts": { 7 | "test": "echo \"Error: no test specified\" && exit 1" 8 | }, 9 | "keywords": [ 10 | "vue", 11 | "mask", 12 | "directive", 13 | "input", 14 | "textarea" 15 | ], 16 | "author": "raidan00", 17 | "license": "MIT" 18 | } 19 | -------------------------------------------------------------------------------- /vue.config.js: -------------------------------------------------------------------------------- 1 | // vue.config.js 2 | module.exports = { 3 | publicPath: 'vue-r-mask/dist' 4 | } 5 | --------------------------------------------------------------------------------