{"_id":"@almuz/vue-tel-input","_rev":"4-a00c11acd4cd4dba91dafa61d9ce652b","name":"@almuz/vue-tel-input","dist-tags":{"latest":"1.0.4"},"versions":{"1.0.0":{"name":"@almuz/vue-tel-input","version":"1.0.0","keywords":["vue","telephone","phone","vue-tel-input","phone input","telephone input","input","international phone"],"author":{"name":"Steven Dao","email":"iamstevendao@gmail.com"},"license":"MIT","_id":"@almuz/vue-tel-input@1.0.0","maintainers":[{"name":"almuz","email":"almuz@inbox.lv"}],"homepage":"https://github.com/AlMuz/vue-tel-input","bugs":{"url":"https://github.com/AlMuz/vue-tel-input/issues"},"dist":{"shasum":"6eeb779a79c76513c78d8e82bd15f5a24de0d3ae","tarball":"https://registry.npmjs.org/@almuz/vue-tel-input/-/vue-tel-input-1.0.0.tgz","fileCount":11,"integrity":"sha512-hpZ8TB52teYkDILLqNcbIQqmE5OLp7NJ5Ikg+EwnEWNFvGL9u4iwXmzbqoFAGkkAdwU2BEDFEArq+HCx92mYMg==","signatures":[{"sig":"MEQCIF+BDPfdZeKTvNydYQOLp8S+B6VHNpwvftKtReeYKoVpAiBqFf4BRk4V0jmg4umV7RSvCJVnKt+s7JMTXftBf5h8Ww==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":4022823},"main":"dist/vue-tel-input.umd.js","unpkg":"dist/vue-tel-input.min.js","module":"dist/vue-tel-input.esm.js","gitHead":"7dfb33dcd3ea3932791313b399702a4bce812b30","scripts":{"dev":"vue-cli-service serve","demo":"vue-cli-service build","lint":"vue-cli-service lint","build":"vue-cli-service build --target lib src/index.js --dest dist","test:unit":"vue-cli-service test:unit"},"_npmUser":{"name":"almuz","email":"almuz@inbox.lv"},"repository":{"url":"git+https://github.com/AlMuz/vue-tel-input.git","type":"git"},"_npmVersion":"10.2.3","description":"International Telephone Input with Vue","directories":{},"_nodeVersion":"20.10.0","browserslist":["> 1%","last 2 versions"],"dependencies":{"core-js":"^3.38.1","@babel/runtime":"^7.25.6","libphonenumber-js":"^1.11.8"},"_hasShrinkwrap":false,"devDependencies":{"vue":"^2.7.16","eslint":"^8.56.0","cross-env":"^7.0.3","babel-core":"7.0.0-bridge.0","babel-jest":"^29.7.0","lint-staged":"^8.2.1","@vue/test-utils":"1.0.0-beta.29","@vue/cli-service":"5.0.8","@babel/preset-env":"^7.25.4","eslint-plugin-vue":"^9.28.0","eslint-plugin-jest":"^28.8.3","@babel/eslint-parser":"^7.25.1","@vue/cli-plugin-babel":"5.0.8","vue-template-compiler":"^2.7.16","@vue/cli-plugin-eslint":"5.0.8","@rushstack/eslint-patch":"1.10.4","@vue/cli-plugin-unit-jest":"5.0.8","@vue/eslint-config-airbnb":"^8.0.0","@babel/plugin-proposal-object-rest-spread":"^7.20.7"},"_npmOperationalInternal":{"tmp":"tmp/vue-tel-input_1.0.0_1726050107693_0.02757411282626321","host":"s3://npm-registry-packages"}},"1.0.1":{"name":"@almuz/vue-tel-input","version":"1.0.1","keywords":["vue","telephone","phone","vue-tel-input","phone input","telephone input","input","international phone"],"author":{"name":"almuz"},"license":"MIT","_id":"@almuz/vue-tel-input@1.0.1","maintainers":[{"name":"almuz","email":"almuz@inbox.lv"}],"homepage":"https://github.com/AlMuz/vue-tel-input","bugs":{"url":"https://github.com/AlMuz/vue-tel-input/issues"},"dist":{"shasum":"4926f2ba701cf8255779b8567af6ade4038e638e","tarball":"https://registry.npmjs.org/@almuz/vue-tel-input/-/vue-tel-input-1.0.1.tgz","fileCount":11,"integrity":"sha512-E7GyrwazXS4l5uCoj72UqQ4YiAbFXRTdx6mP48FGKukRSgiX/le7BjjOqf5soq6JOx7ImbZrHh7aAFd9kKZvkw==","signatures":[{"sig":"MEUCIQDYaGuefsLxCbbFhTsC2ImQMG96JQUknFcDkDM+41uvkAIgMkpk+eclMcjOAeMb7hBlF9OnIavPwqRq7bXKT1VudSg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":4013835},"main":"dist/vue-tel-input.umd.js","unpkg":"dist/vue-tel-input.min.js","module":"dist/vue-tel-input.esm.js","gitHead":"7dfb33dcd3ea3932791313b399702a4bce812b30","scripts":{"dev":"vue-cli-service serve","demo":"vue-cli-service build","lint":"vue-cli-service lint","build":"vue-cli-service build --target lib src/index.js --dest dist","test:unit":"vue-cli-service test:unit"},"_npmUser":{"name":"almuz","email":"almuz@inbox.lv"},"repository":{"url":"git+https://github.com/AlMuz/vue-tel-input.git","type":"git"},"_npmVersion":"10.2.3","description":"Improved International Telephone Input with Vue.","directories":{},"_nodeVersion":"20.10.0","browserslist":["> 1%","last 2 versions"],"dependencies":{"core-js":"^3.38.1","@babel/runtime":"^7.25.6","libphonenumber-js":"^1.11.8"},"_hasShrinkwrap":false,"devDependencies":{"vue":"^2.7.16","eslint":"^8.56.0","vue-jest":"^3.0.7","cross-env":"^7.0.3","babel-core":"7.0.0-bridge.0","babel-jest":"^29.7.0","lint-staged":"^8.2.1","@vue/test-utils":"1.0.0-beta.29","@vue/cli-service":"5.0.8","@babel/preset-env":"^7.25.4","eslint-plugin-vue":"^9.28.0","eslint-plugin-jest":"^28.8.3","@babel/eslint-parser":"^7.25.1","@vue/cli-plugin-babel":"5.0.8","vue-template-compiler":"^2.7.16","@vue/cli-plugin-eslint":"5.0.8","@rushstack/eslint-patch":"1.10.4","@vue/cli-plugin-unit-jest":"5.0.8","@vue/eslint-config-airbnb":"^8.0.0","@babel/plugin-proposal-object-rest-spread":"^7.20.7"},"_npmOperationalInternal":{"tmp":"tmp/vue-tel-input_1.0.1_1726054992802_0.8049727862588321","host":"s3://npm-registry-packages"}},"1.0.2":{"name":"@almuz/vue-tel-input","version":"1.0.2","keywords":["vue","telephone","phone","vue-tel-input","phone input","telephone input","input","international phone"],"author":{"name":"almuz"},"license":"MIT","_id":"@almuz/vue-tel-input@1.0.2","maintainers":[{"name":"almuz","email":"almuz@inbox.lv"}],"homepage":"https://github.com/AlMuz/vue-tel-input","bugs":{"url":"https://github.com/AlMuz/vue-tel-input/issues"},"dist":{"shasum":"eb6778bc6ea3f8261d87627694b55aaae18f3fbf","tarball":"https://registry.npmjs.org/@almuz/vue-tel-input/-/vue-tel-input-1.0.2.tgz","fileCount":11,"integrity":"sha512-rf74LwEvR0aXfpP2s/LTYqWMxzJ1su6s0cOHCTP2qYRtmC4qdWKNSFRjsZN1qK46QDVJc5fJGX1gEFemMoLw2w==","signatures":[{"sig":"MEQCIH5M1K9ugGH5uA1lHrpXPBw+rl5xDYr/js/rjlQsEz/QAiB9Ouv2MjkeKPBsBO/bdi2JIsz1LFMSQk9UAjgwo2ZqWw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":4712387},"main":"dist/vue-tel-input.umd.js","unpkg":"dist/vue-tel-input.min.js","module":"dist/vue-tel-input.esm.js","gitHead":"7d4fd9630b92c1ffa8826f8f53ef7159363db5e4","scripts":{"dev":"vue-cli-service serve","demo":"vue-cli-service build","lint":"vue-cli-service lint","build":"vue-cli-service build --target lib src/index.js --dest dist","test:unit":"vue-cli-service test:unit"},"_npmUser":{"name":"almuz","email":"almuz@inbox.lv"},"repository":{"url":"git+https://github.com/AlMuz/vue-tel-input.git","type":"git"},"_npmVersion":"10.2.3","description":"Improved International Telephone Input with Vue.","directories":{},"_nodeVersion":"20.10.0","browserslist":["> 1%","last 2 versions"],"dependencies":{"core-js":"^3.38.1","@babel/runtime":"^7.25.6","awesome-phonenumber":"^7.0.1"},"_hasShrinkwrap":false,"devDependencies":{"vue":"^2.7.16","eslint":"^8.56.0","vue-jest":"^3.0.7","cross-env":"^7.0.3","babel-core":"7.0.0-bridge.0","babel-jest":"^29.7.0","lint-staged":"^8.2.1","@vue/test-utils":"1.0.0-beta.29","@vue/cli-service":"5.0.8","@babel/preset-env":"^7.25.4","eslint-plugin-vue":"^9.28.0","eslint-plugin-jest":"^28.8.3","@babel/eslint-parser":"^7.25.1","@vue/cli-plugin-babel":"5.0.8","vue-template-compiler":"^2.7.16","@vue/cli-plugin-eslint":"5.0.8","@rushstack/eslint-patch":"1.10.4","@vue/cli-plugin-unit-jest":"5.0.8","@vue/eslint-config-airbnb":"^8.0.0","@babel/plugin-proposal-object-rest-spread":"^7.20.7"},"_npmOperationalInternal":{"tmp":"tmp/vue-tel-input_1.0.2_1726137196405_0.4334551985728725","host":"s3://npm-registry-packages"}},"1.0.3":{"name":"@almuz/vue-tel-input","version":"1.0.3","keywords":["vue","telephone","phone","vue-tel-input","phone input","telephone input","input","international phone"],"author":{"name":"almuz"},"license":"MIT","_id":"@almuz/vue-tel-input@1.0.3","maintainers":[{"name":"almuz","email":"almuz@inbox.lv"}],"homepage":"https://github.com/AlMuz/vue-tel-input","bugs":{"url":"https://github.com/AlMuz/vue-tel-input/issues"},"dist":{"shasum":"f77bd1b2b8227e7f99052df64d36cd1baf6aa5fa","tarball":"https://registry.npmjs.org/@almuz/vue-tel-input/-/vue-tel-input-1.0.3.tgz","fileCount":12,"integrity":"sha512-FKf1W9mp+ulqWRvbqwbOxPPcQxN9+l4XLZFD15iOoLgIuRuW+906sbo2zqgtq28op0T6wAyrhI+AHYwuxFX+6w==","signatures":[{"sig":"MEQCIDsUpM9rCOvTwUvLa5/8m7wrKJjeDb2fdxsc7JwZhSWxAiB2jWqba1i1v9TXtaiAqXiJtt/e9tetORMGHA5MjkOSmQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":5024788},"main":"dist/vue-tel-input.umd.js","unpkg":"dist/vue-tel-input.min.js","module":"dist/vue-tel-input.esm.js","gitHead":"92356c05a18f59f759a1dfba2473fe025b3cd11e","scripts":{"dev":"vue-cli-service serve","demo":"vue-cli-service build","lint":"vue-cli-service lint","build":"vue-cli-service build --target lib src/index.js --dest dist","analyze":"vue-cli-service build --analyze","test:unit":"vue-cli-service test:unit"},"_npmUser":{"name":"almuz","email":"almuz@inbox.lv"},"repository":{"url":"git+https://github.com/AlMuz/vue-tel-input.git","type":"git"},"_npmVersion":"10.2.3","description":"Improved International Telephone Input with Vue.","directories":{},"_nodeVersion":"20.10.0","browserslist":["> 1%","last 2 versions"],"dependencies":{"core-js":"^3.38.1","@babel/runtime":"^7.25.6","awesome-phonenumber":"^7.0.1","vue-cli-plugin-webpack-bundle-analyzer":"^4.0.0"},"_hasShrinkwrap":false,"devDependencies":{"vue":"^2.7.16","eslint":"^8.56.0","vue-jest":"^3.0.7","cross-env":"^7.0.3","babel-core":"7.0.0-bridge.0","babel-jest":"^29.7.0","lint-staged":"^8.2.1","@vue/test-utils":"1.0.0-beta.29","@vue/cli-service":"5.0.8","@babel/preset-env":"^7.25.4","eslint-plugin-vue":"^9.28.0","eslint-plugin-jest":"^28.8.3","@babel/eslint-parser":"^7.25.1","@vue/cli-plugin-babel":"5.0.8","vue-template-compiler":"^2.7.16","@vue/cli-plugin-eslint":"5.0.8","@rushstack/eslint-patch":"1.10.4","@vue/cli-plugin-unit-jest":"5.0.8","@vue/eslint-config-airbnb":"^8.0.0","@babel/plugin-proposal-object-rest-spread":"^7.20.7"},"_npmOperationalInternal":{"tmp":"tmp/vue-tel-input_1.0.3_1726140292655_0.6817529343931952","host":"s3://npm-registry-packages"}},"1.0.4":{"name":"@almuz/vue-tel-input","version":"1.0.4","description":"Improved International Telephone Input with Vue.","author":{"name":"almuz"},"license":"MIT","homepage":"https://github.com/AlMuz/vue-tel-input","repository":{"type":"git","url":"git+https://github.com/AlMuz/vue-tel-input.git"},"scripts":{"dev":"vue-cli-service serve","analyze":"vue-cli-service build --analyze","demo":"vue-cli-service build","build":"vue-cli-service build --target lib src/index.js --dest dist  && rm ./dist/demo.html","lint":"vue-cli-service lint","test:unit":"vue-cli-service test:unit"},"main":"dist/vue-tel-input.umd.js","module":"dist/vue-tel-input.esm.js","unpkg":"dist/vue-tel-input.min.js","dependencies":{"@babel/runtime":"^7.25.6","awesome-phonenumber":"^7.0.1","core-js":"^3.38.1"},"devDependencies":{"@babel/eslint-parser":"^7.25.1","@babel/plugin-proposal-object-rest-spread":"^7.20.7","@babel/preset-env":"^7.25.4","@rushstack/eslint-patch":"1.10.4","@vue/cli-plugin-babel":"5.0.8","@vue/cli-plugin-eslint":"5.0.8","@vue/cli-plugin-unit-jest":"5.0.8","@vue/cli-service":"5.0.8","@vue/eslint-config-airbnb":"^8.0.0","@vue/test-utils":"1.0.0-beta.29","babel-core":"7.0.0-bridge.0","babel-jest":"^29.7.0","cross-env":"^7.0.3","eslint":"^8.56.0","eslint-plugin-jest":"^28.8.3","eslint-plugin-vue":"^9.28.0","lint-staged":"^8.2.1","vue":"^2.7.16","vue-jest":"^3.0.7","vue-template-compiler":"^2.7.16"},"browserslist":["> 1%","last 2 versions"],"keywords":["vue","telephone","phone","vue-tel-input","phone input","telephone input","input","international phone"],"_id":"@almuz/vue-tel-input@1.0.4","gitHead":"92356c05a18f59f759a1dfba2473fe025b3cd11e","bugs":{"url":"https://github.com/AlMuz/vue-tel-input/issues"},"_nodeVersion":"20.10.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-AGha0JDX3DgGgsanXz1dBlIphL8uuWRGp4M0RarWE/edzE1chOYbe+hyU0LHU+UNCVrmI2tC4kKP5Zlhl81yJA==","shasum":"674a99cfcc4cd0d823e87e399d69721727581297","tarball":"https://registry.npmjs.org/@almuz/vue-tel-input/-/vue-tel-input-1.0.4.tgz","fileCount":7,"unpackedSize":1802301,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC+OTxhp5WvtzefcGBQuGe1klMkLD/gijwyQOFbKixjTAIgb6oN2ZOJlNKzlzhAlMJvg7iW+0KloS8zXve092FoNg8="}]},"_npmUser":{"name":"almuz","email":"almuz@inbox.lv"},"directories":{},"maintainers":[{"name":"almuz","email":"almuz@inbox.lv"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/vue-tel-input_1.0.4_1726141039611_0.8130093388035808"},"_hasShrinkwrap":false}},"time":{"created":"2024-09-11T10:21:47.588Z","modified":"2024-09-12T11:37:20.022Z","1.0.0":"2024-09-11T10:21:48.046Z","1.0.1":"2024-09-11T11:43:13.035Z","1.0.2":"2024-09-12T10:33:16.659Z","1.0.3":"2024-09-12T11:24:52.908Z","1.0.4":"2024-09-12T11:37:19.841Z"},"bugs":{"url":"https://github.com/AlMuz/vue-tel-input/issues"},"author":{"name":"almuz"},"license":"MIT","homepage":"https://github.com/AlMuz/vue-tel-input","keywords":["vue","telephone","phone","vue-tel-input","phone input","telephone input","input","international phone"],"repository":{"type":"git","url":"git+https://github.com/AlMuz/vue-tel-input.git"},"description":"Improved International Telephone Input with Vue.","maintainers":[{"name":"almuz","email":"almuz@inbox.lv"}],"readme":"# @almuz/vue-tel-input\n\nImproved International Telephone Input with Vue.\n\n**Useful Links**\n\n- [Changelog](https://github.com/AlMuz/vue-tel-input/releases)\n\n**Table of Contents**\n\n- [Getting started](#getting-started)\n- [Installation](#installation)\n  - [npm](#npm)\n  - [Browser](#browser)\n- [Usage](#usage)\n  - [Props](#props)\n  - [Events](#events)\n  - [Slots](#slots)\n- [Typescript Support](#typescript-support)\n- [Credits & Contributors](#credits-&-contributors)\n\n## Installation\n\n- **yarn**:\n  ```bash\n    yarn add @almuz/vue-tel-input\n  ```\n- **npm**:\n  ```bash\n    npm i --save @almuz/vue-tel-input\n  ```\n\n## Usage\n\n- Import default `CSS` to your project:\n\n  ```js\n  import '@almuz/vue-tel-input/dist/vue-tel-input.css'\n  ```\n\n- In your component:\n\n  ```html\n  <template>\n    ...\n    <vue-tel-input v-model=\"phone\"></vue-tel-input>\n    ...\n    <template>\n      <script>\n        import VueTelInput from 'vue-tel-input'\n\n        export default {\n          components: {\n            VueTelInput\n          },\n          data() {\n            return {\n              phone: ''\n            }\n          }\n        }\n      </script>\n    </template>\n  </template>\n  ```\n\n### Props\n\n| Property              | Type                                    | Default value                              | Description                                                                                                                                             |\n| --------------------- | --------------------------------------- | ------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| `defaultCountry`      | `String`                                | `''`                                       | Default country                                                                                                                                         |\n| `disabled`            | `Boolean`                               | `false`                                    | Disable input field                                                                                                                                     |\n| `disabledFormatting`  | `Boolean`                               | `false`                                    | Disable formatting the phone number in the input, the formatted result still be accessible by `formattedNumber` returned from `onInput` event           |\n| `placeholder`         | `String`                                | Enter a phone number                       | Placeholder for the input                                                                                                                               |\n| `required`            | `Boolean`                               | `false`                                    | Required property for HTML5 required attribute                                                                                                          |\n| `enabledCountryCode`  | `Boolean`                               | `false`                                    | Enable country code in the input                                                                                                                        |\n| `enabledFlags`        | `Boolean`                               | `true`                                     | Enable flags in the input                                                                                                                               |\n| `preferredCountries`  | `Array`                                 | `[]`                                       | Preferred countries list, will be on top of the dropdown. ie `['AU', 'BR']`                                                                             |\n| `onlyCountries`       | `Array`                                 | `[]`                                       | List of countries will be shown on the dropdown. ie `['AU', 'BR']`                                                                                      |\n| `ignoredCountries`    | `Array`                                 | `[]`                                       | List of countries will NOT be shown on the dropdown. ie `['AU', 'BR']`                                                                                  |\n| `autocomplete`        | `String`                                | `'on'`                                     | Native input 'autocomplete' attribute                                                                                                                   |\n| `name`                | `String`                                | `'telephone'`                              | Native input 'name' attribute                                                                                                                           |\n| `maxLen`              | `Number`                                | `25`                                       | Native input 'maxlength' attribute                                                                                                                      |\n| `wrapperClasses`      | `String` &#124; `Array` &#124; `Object` | `''`                                       | Custom classes for the wrapper                                                                                                                          |\n| `inputClasses`        | `String` &#124; `Array` &#124; `Object` | `''`                                       | Custom classes for the `input`                                                                                                                          |\n| `inputId`             | `String`                                | `''`                                       | Custom 'id' for the `input`                                                                                                                             |\n| `dropdownOptions`     | `Object`                                | `{ disabledDialCode: false, tabindex: 0 }` | Options for dropdown, supporting `disabledDialCode` and `tabindex`                                                                                      |\n| `inputOptions`        | `Object`                                | `{ showDialCode: false, tabindex: 0 }`     | Options for input, supporting `showDialCode` (always show dial code in the input) and `tabindex`                                                        |\n| `validCharactersOnly` | `Boolean`                               | `false`                                    | Only allow valid characters in a phone number (will also verify in `mounted`, so phone number with invalid characters will be shown as an empty string) |\n\n### Events\n\n| Event             | Arguments          | Description                                                                                                                                                    | Notes                   |\n| ----------------- | ------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------- |\n| `input`           | `String`, `Object` | Fires when the input changes with the argument is the object includes `{ number, isValid, country }`                                                           | `onInput` deprecated    |\n| `validate`        | `Object`           | Fires when the correctness of the phone number changes (from `true` to `false` or vice-versa) and when the component is mounted `{ number, isValid, country }` | `onValidate` deprecated |\n| `blur`            |                    | Fires on blur event                                                                                                                                            | `onBlur` deprecated     |\n| `space`           |                    | Fires on keyup.space event                                                                                                                                     | `onSpace` deprecated    |\n| `enter`           |                    | Fires on keyup.enter event                                                                                                                                     | `onEnter` deprecated    |\n| `open`            |                    | Fires when the flags dropdown opens                                                                                                                            |                         |\n| `close`           |                    | Fires when the flags dropdown closes                                                                                                                           |                         |\n| `country-changed` | `Object`           | Fires when country changed (even for the first time)                                                                                                           | Available from `v2.4.2` |\n\n### Slots\n\n| Slot         | Description                                                        | Notes |\n| ------------ | ------------------------------------------------------------------ | ----- |\n| `arrow-icon` | Replace the arrow next to the flag with a component of your choice |       |\n\n## Demo Usage\n\n```bash\n\n# install dependencies\n$ yarn/npm install\n\n# compile demo for development\n$ yarn/npm dev\n\n# open Browser and start serving in demo\n$ yarn/npm demo:open\n\n# compile dist demo\n$ yarn/npm dist:demo\n\n# compile dist\n$ yarn/npm dist\n\n```\n\n## Typescript Support\n\nIf you working with typescript will need declaration requirements.\n\n```bash\nnpm install --save-dev @types/vue-tel-input\n```\n","readmeFilename":"README.md"}