{"_id":"@artavil/ngx-international-phone-number","_rev":"1-f6ce1b7cd3e2f397e249ccbf1fef9d29","name":"@artavil/ngx-international-phone-number","dist-tags":{"latest":"1.0.8"},"versions":{"1.0.8":{"name":"@artavil/ngx-international-phone-number","version":"1.0.8","scripts":{"build":"gulp build","build:watch":"gulp","docs":"npm run docs:build","docs:build":"compodoc -p tsconfig.json -n ngx-international-phone-numbe -d docs --hideGenerator","docs:serve":"npm run docs:build -- -s","docs:watch":"npm run docs:build -- -s -w","lint":"tslint --type-check --project tsconfig.json src/**/*.ts","lite":"lite-server","playground:build":"tsc -p playground -w","playground":"concurrently \"npm run build:watch\" \"npm run playground:build\" \"npm run lite\"","test":"tsc && karma start"},"repository":{"type":"git","url":"git+https://github.com/nikhiln/ngx-international-phone-number.git"},"author":{"name":"ahmad pirzargar","email":"ahmad.pirzargar@gmail.com"},"keywords":["angular"],"license":"MIT","bugs":{"url":"https://github.com/nikhiln/ngx-international-phone-number/issues"},"devDependencies":{"@angular/common":"^7.1.3","@angular/compiler":"^7.1.3","@angular/compiler-cli":"^7.1.3","@angular/core":"^7.1.3","@angular/forms":"^7.1.3","@angular/platform-browser":"^7.1.3","@angular/platform-browser-dynamic":"^7.1.3","@compodoc/compodoc":"^1.1.11","@types/jasmine":"2.5.38","@types/node":"~6.0.60","angular-in-memory-web-api":"^0.7","codelyzer":"~4.5.0","concurrently":"^3.4.0","core-js":"^2.4.1","del":"^2.2.2","gulp":"^3.9.1","gulp-rename":"^1.2.2","gulp-rollup":"^2.15.0","jasmine-core":"~2.5.2","jasmine-spec-reporter":"~3.2.0","karma":"~1.4.1","karma-chrome-launcher":"~2.0.0","karma-cli":"~1.0.1","karma-coverage-istanbul-reporter":"^0.2.0","karma-jasmine":"~1.1.0","karma-jasmine-html-reporter":"^0.2.2","lite-server":"^2.3.0","node-sass":"^4.12.0","node-sass-tilde-importer":"^1.0.0","node-watch":"^0.5.2","protractor":"~5.1.0","rollup":"^0.49.3","run-sequence":"^1.2.2","rxjs":"^6.3.3","systemjs":"^0.20.12","ts-node":"~2.0.0","tslint":"~4.5.0","typescript":"~3.1.6","zone.js":"^0.8.4"},"engines":{"node":">=6.0.0"},"dependencies":{"google-libphonenumber":"^3.0.9","tsickle":"^0.34.0"},"gitHead":"ed65be0d6d66c7517ac9275e416244e9d12900c7","description":"A simple international telephone number input. Allows you to create a phone number field with country dropdown.","homepage":"https://github.com/nikhiln/ngx-international-phone-number#readme","_id":"@artavil/ngx-international-phone-number@1.0.8","_nodeVersion":"12.18.4","_npmVersion":"6.14.6","dist":{"integrity":"sha512-WvIbm6b9ZdYpuzkJth7tzPGl5hFRi+5Ag/UiOBicLwp1Pl8ybhZscZ5/KgYzO4Jl0Y7RVevUbfHhIj7KKYNnYQ==","shasum":"7c1e007a39c7583a7f1fac5d2f80b0602875b613","tarball":"https://registry.npmjs.org/@artavil/ngx-international-phone-number/-/ngx-international-phone-number-1.0.8.tgz","fileCount":12,"unpackedSize":26147,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfeexiCRA9TVsSAnZWagAAte4QAJ6Y90lsXP8AGX+D4XLz\nNqo6pqYEAHzIjYVRsZrAbb+tOC5dgsdt5VUJS5LCl4Q4rXSqTOaIcLW8oW5I\nHAb1vczY/6vZcVjN4d01qelEJVDcz1KV+hPZYC+sIpNFYm7bWVbgbk/Q1PQJ\nA/M481PaBEhzld3oQVqBHlb+SV4cspMK+qT+PT6sphPoivjwz9cBkRvvl29X\n3X11haEPe1oZNAgjOcIirncPrTsVtcCh6O7FVsAiaV9TjOQKYoPQtNK6HxDh\nFBEse2jskXYrYHPovEcGJIizNWYkV3LE8cRQGQ2dT8798B00ETSASkIROjLU\nfGHy503Sb/eXCj5VRzF98MW/vKF5Je49s7EiOrD6lf9HOAtSZfIderZBUxWf\nhebrCPWTEyfrxFoWzZJ6cF6FimvBcjwdF3uNjRzrAyxTBtnDTFhzHgFKp9FS\nqzohws4IGjnzZrt/eEkf/AtGfx8vvDt0tIBbxDwqlejSoN3RhDjYxIUW2XBd\nz8xVZ/OoDs2/E5Aanlmb4hx27MMDY+xpD4wblQb7VSxHklZISLuS5XfSAlQb\nsNZiouhr8tcA0Cs5q2QNqKRMXXjiG48lDO+OnX0lyZX87WV/pTC2YG1bQLk3\n3gSJSl8gsVbpDDF8A+I0dVSicQTuypCTRoj6Y+pzUNsWGtEI89bCNzGNeGsV\npPw3\r\n=c19G\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDYgHKnIAaxSJ7XOGrRBYBN5MTOCpI7juEQPyUB0lw2gwIgJzDZjpQlnOH3pVY2yZjsCE5Kuz019caQnPO2rijmOwE="}]},"maintainers":[{"name":"artavil","email":"ahmad.pirzargar@gmail.com"}],"_npmUser":{"name":"artavil","email":"ahmad.pirzargar@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ngx-international-phone-number_1.0.8_1601825890313_0.1253312058850371"},"_hasShrinkwrap":false}},"time":{"created":"2020-10-04T15:38:10.260Z","1.0.8":"2020-10-04T15:38:10.444Z","modified":"2022-04-04T15:36:06.154Z"},"maintainers":[{"name":"artavil","email":"ahmad.pirzargar@gmail.com"}],"description":"A simple international telephone number input. Allows you to create a phone number field with country dropdown.","homepage":"https://github.com/nikhiln/ngx-international-phone-number#readme","keywords":["angular"],"repository":{"type":"git","url":"git+https://github.com/nikhiln/ngx-international-phone-number.git"},"author":{"name":"ahmad pirzargar","email":"ahmad.pirzargar@gmail.com"},"bugs":{"url":"https://github.com/nikhiln/ngx-international-phone-number/issues"},"license":"MIT","readme":"# ngx-international-phone-number\nA simple international telephone number input. Allows you to create a phone number field with country dropdown. \n\nThis is re-written version (with enhancement) of [ng4-intl-phone](https://github.com/kondi0/ng4-intl-phone/). So credit should go to [kondi0](https://github.com/kondi0).\n\n## Installation\n\nTo install this library, run:\n\n```bash\n$ npm install ngx-international-phone-number --save\n```\n\n## Consuming your library\n\nOnce you have installed it you can import `InternationalPhoneNumberModule` from `ngx-international-phone-number` in any application module. E.g.\n\n```typescript\nimport { BrowserModule } from '@angular/platform-browser';\nimport { NgModule } from '@angular/core';\n\nimport { AppComponent } from './app.component';\n\n// Import your library\nimport { InternationalPhoneNumberModule } from 'ngx-international-phone-number';\n\n@NgModule({\n  declarations: [\n    AppComponent\n  ],\n  imports: [\n    BrowserModule,\n\n    // InternationalPhoneNumberModule module\n    InternationalPhoneNumberModule\n  ],\n  providers: [],\n  bootstrap: [AppComponent]\n})\nexport class AppModule { }\n```\n\nOnce it is imported, you can use `international-phone-number`:\n\n```xml\n<!-- app.component.html -->\n<form name=\"sample-form\" (ngSubmit)=\"submit()\" #f=\"ngForm\">\n <international-phone-number [(ngModel)]=\"model.phone_number\" placeholder=\"Enter phone number\" [maxlength]=\"20\" [defaultCountry]=\"'in'\" [required]=\"true\" #phoneNumber=\"ngModel\" name=\"phone_number\" [allowedCountries]=\"['in', 'ca', 'us']\"></international-phone-number>\n\n  <div *ngIf=\"f.submitted && !phoneNumber.valid\" class=\"help-block\">Phone number is required and should be valid</div>\n  <button type=\"submit\">Submit</button>\n</form>\n```\n\n### Attributes/Options:\n       defaultCountryCode : An ISO 3166 country code can be provided to set default country selected.\n       placeholder: A placeholder text which would be displayed in input widget\n       required: Indicates whether it's required or not\n       onlyNumber: Indicates whether the user can type only numbers or not in the input field. It defaults to true.\n       allowDropdown: Indicates whether to allow selecting country from dropdown\n       allowedCountries: A list of countries (iso codes) that would get display in country dropdown. E.g. [allowedCountries]=\"['in', 'ca', 'us']\" would only show Canada, India and US. If not provided, all the countries would get displayed.\n\n\n## Troubleshooting:\nIf you are getting error \"Can't resolve 'google-libphonenumber'\" while building with aot, try to install google-libphonenumber. Run npm install google-libphonenumber@3.0.9 --save\n\n\n## Authors\n    * Original Author: kondi0\n    * Author: nikhiln \n## License\n\nMIT\n","readmeFilename":"README.md"}