{"_id":"@ashishpatel/ngx-intl-tel-input","_rev":"2-b4ac0643bc71552444671c9bdf2fd2c1","name":"@ashishpatel/ngx-intl-tel-input","dist-tags":{"latest":"1.0.2"},"versions":{"1.0.0":{"name":"@ashishpatel/ngx-intl-tel-input","version":"1.0.0","_id":"@ashishpatel/ngx-intl-tel-input@1.0.0","maintainers":[{"name":"ashishpatel","email":"ashish.tripleclicks@gmail.com"}],"dist":{"shasum":"f365a5dfa719f8cc790d2877fe5b23bb415bf17d","tarball":"https://registry.npmjs.org/@ashishpatel/ngx-intl-tel-input/-/ngx-intl-tel-input-1.0.0.tgz","fileCount":21,"integrity":"sha512-khct5ClCOlycTJ6G0PdeR6UcbiLiBBzuUL6XBV6SudalcQJS7K5BjN9CIv3M84ox02EsrFdmnAIrLylUdSZqpw==","signatures":[{"sig":"MEYCIQCeB+192b93TuKtX8lIlNqj01Xbo8IKMA0euDcj0v0bGwIhAKoJAtiTh8fQYPnZgD4jXERQw0uRXiiYxPDhJJT6mCbL","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":60435},"gitHead":"945978c9ced142f5f5985548bbcd10cf6ecdb630","_npmUser":{"name":"ashishpatel","email":"ashish.tripleclicks@gmail.com"},"_npmVersion":"9.6.7","description":"An Angular package for entering and validating international telephone numbers","directories":{},"sideEffects":false,"_nodeVersion":"18.17.1","dependencies":{"tslib":"^2.3.0"},"_hasShrinkwrap":false,"devDependencies":{"@types/google-libphonenumber":"^7.4.17"},"peerDependencies":{"@angular/core":"^16.2.0","ngx-bootstrap":"6.x - 12.x","@angular/forms":"^16.2.0","intl-tel-input":"^17.0.3","@angular/common":"^16.2.0","google-libphonenumber":"^3.2.3"},"_npmOperationalInternal":{"tmp":"tmp/ngx-intl-tel-input_1.0.0_1725616549224_0.7808731147884163","host":"s3://npm-registry-packages"}},"1.0.1":{"name":"@ashishpatel/ngx-intl-tel-input","version":"1.0.1","_id":"@ashishpatel/ngx-intl-tel-input@1.0.1","maintainers":[{"name":"ashishpatel","email":"ashish.tripleclicks@gmail.com"}],"dist":{"shasum":"83385dcac8d178ce78c7c54a8f4fc720915a67b6","tarball":"https://registry.npmjs.org/@ashishpatel/ngx-intl-tel-input/-/ngx-intl-tel-input-1.0.1.tgz","fileCount":21,"integrity":"sha512-HRnIuZr+OmzT2YMKO+qTr6cVLjBvI58jklzONoJ2x7DIUe/P6welv/FK2oijeH8Y6bGWE+ykYMQFNRn7QntB4Q==","signatures":[{"sig":"MEUCIBquhu58iZZDz7fekne+xszLHwHHRmc5zHEe6XlVhUGrAiEAvYS1OJjNQNpergS8jH8ZOW6d1N3jZEHCRfDfq55bAKU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":60430},"gitHead":"945978c9ced142f5f5985548bbcd10cf6ecdb630","_npmUser":{"name":"ashishpatel","email":"ashish.tripleclicks@gmail.com"},"_npmVersion":"9.6.7","description":"An Angular package for entering and validating international telephone numbers","directories":{},"sideEffects":false,"_nodeVersion":"18.17.1","dependencies":{"tslib":"^2.3.0"},"_hasShrinkwrap":false,"devDependencies":{"@types/google-libphonenumber":"^7.4.17"},"peerDependencies":{"@angular/core":"^16.2.0","ngx-bootstrap":"^11.0.2","@angular/forms":"^16.2.0","intl-tel-input":"^17.0.3","@angular/common":"^16.2.0","libphonenumber-js":"^1.10.49"},"_npmOperationalInternal":{"tmp":"tmp/ngx-intl-tel-input_1.0.1_1725618730949_0.3794439827039977","host":"s3://npm-registry-packages"}},"1.0.2":{"name":"@ashishpatel/ngx-intl-tel-input","version":"1.0.2","description":"An Angular package for entering and validating international telephone numbers","peerDependencies":{"@angular/common":"^16.2.0","@angular/core":"^16.2.0","@angular/forms":"^16.2.0","intl-tel-input":"^17.0.3","libphonenumber-js":"^1.10.49","ngx-bootstrap":"^11.0.2"},"dependencies":{"tslib":"^2.3.0"},"sideEffects":false,"module":"fesm2022/ashishpatel-ngx-intl-tel-input.mjs","typings":"index.d.ts","exports":{"./package.json":{"default":"./package.json"},".":{"types":"./index.d.ts","esm2022":"./esm2022/ashishpatel-ngx-intl-tel-input.mjs","esm":"./esm2022/ashishpatel-ngx-intl-tel-input.mjs","default":"./fesm2022/ashishpatel-ngx-intl-tel-input.mjs"}},"gitHead":"945978c9ced142f5f5985548bbcd10cf6ecdb630","_id":"@ashishpatel/ngx-intl-tel-input@1.0.2","_nodeVersion":"18.17.1","_npmVersion":"9.6.7","dist":{"integrity":"sha512-tSwwKuN84bhrNuf0dpzDwoaw3+5737Da+f8SWBJVHW1+93eDC//Ytj4TcouRlXB5DJxLd85DOdel1OsW7auMhQ==","shasum":"c576e1eedfa5bd3a4cd10cbf0628914d6b54cc68","tarball":"https://registry.npmjs.org/@ashishpatel/ngx-intl-tel-input/-/ngx-intl-tel-input-1.0.2.tgz","fileCount":28,"unpackedSize":421583,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDgGh+d1wH4Ybl8jC8aXBj8wsPryzGus9UUqessxO8mCQIhAPMMlXo9NsOGsj6ud/5Eo3pmG8HBS7yPYr7U+33aOViC"}]},"_npmUser":{"name":"ashishpatel","email":"ashish.tripleclicks@gmail.com"},"directories":{},"maintainers":[{"name":"ashishpatel","email":"ashish.tripleclicks@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ngx-intl-tel-input_1.0.2_1725618956178_0.7776776839132797"},"_hasShrinkwrap":false}},"time":{"created":"2024-09-06T09:55:49.115Z","modified":"2024-09-06T10:35:56.518Z","1.0.0":"2024-09-06T09:55:49.450Z","1.0.1":"2024-09-06T10:32:11.124Z","1.0.2":"2024-09-06T10:35:56.339Z"},"description":"An Angular package for entering and validating international telephone numbers","maintainers":[{"name":"ashishpatel","email":"ashish.tripleclicks@gmail.com"}],"readme":"# International Telephone Input for Angular\n\nAn Angular package for entering and validating international telephone numbers. It adds a flag dropdown to any input, detects the user's country, displays a relevant placeholder and provides formatting/validation methods.\n\n**Compatibility:**\n\nValidation with [google-libphonenumber](https://github.com/ruimarinho/google-libphonenumber)\n\n| ngx-intl-tel-input-gg | Angular        | ngx-bootstrap |\n| --------------------- | -------------- | ------------- |\n| 1.x.x                 | 9.x.x - 17.x.x | 6.0.0         |\n\n## Installation\n\n### Install Dependencies\n\n`$ npm install intl-tel-input@17.0.3 --save`\n\n`$ npm install google-libphonenumber --save`\n\n`$ ng add ngx-bootstrap`\n\nIf you do not wish to use Bootstrap's global CSS, we now package the project with only the relevant\nbootstrap styling needed for the dropdown. As such, you can remove the bootstrap styling from `angular.json`.\n\nFurther, Angular CLI should tree-shake the rest of Ngx-Boostrap away if you don't utilize other dependencies from\nthe bootstrap package. This should keep this dependency a lean feature-add\n\n### Add Dependency Style\n\nAdd _'intl-tel-input'_ style file:\n\n`./node_modules/intl-tel-input/build/css/intlTelInput.css`\n\nto **angular.json** styles array:\n\n```json\n\n\"styles\": [\n  \"./node_modules/intl-tel-input/build/css/intlTelInput.css\",\n  \"src/styles.css\"\n],\n\n```\n\n### Install This Library\n\n`$ npm install @ashishpatel/ngx-intl-tel-input --save`\n\n## Usage\n\n### Import\n\nAdd `NgxIntlTelInputModule` to your module file:\n\n```javascript\nimports: [NgxIntlTelInputModule];\n```\n\n## Example\n\nRefer to main app in this repository for working example.\n\n```html\n<form #f=\"ngForm\" [formGroup]=\"phoneForm\">\n  <ngx-intl-tel-input\n    [cssClass]=\"'custom'\"\n    [preferredCountries]=\"[CountryISO.UnitedStates, CountryISO.UnitedKingdom]\"\n    [enableAutoCountrySelect]=\"false\"\n    [enablePlaceholder]=\"true\"\n    [searchCountryFlag]=\"true\"\n    [searchCountryField]=\"[SearchCountryField.Iso2, SearchCountryField.Name]\"\n    [selectFirstCountry]=\"false\"\n    [selectedCountryISO]=\"CountryISO.India\"\n    [maxLength]=\"15\"\n    [phoneValidation]=\"true\"\n    [inputId]=\"my-input-id\"\n    name=\"phone\"\n    formControlName=\"phone\"\n  ></ngx-intl-tel-input>\n</form>\n```\n\n## Options\n\n| Options                  | Type                     | Default                           | Description                                                                                                   |\n| ------------------------ | ------------------------ | --------------------------------- | ------------------------------------------------------------------------------------------------------------- |\n| cssClass                 | `string`                 | `control-form`                    | Bootstrap input css class or your own custom one.                                                             |\n| preferredCountries       | `<CountryISO>[]`         | `[]`                              | List of countries, which will appear at the top.                                                              |\n| onlyCountries            | `<CountryISO>[]`         | `[]`                              | List of manually selected countries, which will appear in the dropdown.                                       |\n| enableAutoCountrySelect  | `boolean`                | `true`                            | Toggle automatic country (flag) selection based on user input.                                                |\n| enablePlaceholder        | `boolean`                | `true`                            | Input placeholder text, which adapts to the country selected.                                                 |\n| customPlaceholder        | `string`                 | `None`                            | Custom string to be inserted as a placeholder.                                                                |\n| numberFormat             | `<PhoneNumberFormat>`    | `PhoneNumberFormat.International` | Custom string to be inserted as a placeholder.                                                                |\n| searchCountryFlag        | `boolean`                | `false`                           | Enables input search box for countries in the flag dropdown.                                                  |\n| searchCountryField       | `<SearchCountryField>[]` | `[SearchCountryField.All]`        | Customize which fields to search in, if `searchCountryFlag` is enabled. Use `SearchCountryField` helper enum. |\n| searchCountryPlaceholder | `string`                 | `'Search Country'`                | Placeholder value for `searchCountryField`                                                                    |\n| maxLength                | `number`                 | `None`                            | Add character limit.                                                                                          |\n| selectFirstCountry       | `boolean`                | `true`                            | Selects first country from `preferredCountries` if is set. If not then uses main list.                        |\n| phoneValidation          | `boolean`                | `true`                            | Disable phone validation.                                                                                     |\n| inputId                  | `string`                 | `phone`                           | Unique ID for `<input>` element.                                                                              |\n| selectedCountryISO       | `<CountryISO>`           | `None`                            | Set specific country on load.                                                                                 |\n| separateDialCode         | `boolean`                | `false`                           | Visually separate dialcode into the drop down element.                                                        |\n| countryChange            | `<Country>`              | `None`                            | Emits country value when the user selects a country from the dropdown.                                        |\n\n## Supported Formats\n\nFollowing formats are supported\n\n- NATIONAL // Produces \"044 668 18 00\"\n- INTERNATIONAL // Produces \"+41 44 668 18 00\"\n- E164 // Produces \"+41446681800\"\n\n## Library Contributions\n\n- Fork repo.\n- Update `./projects/ngx-intl-tel-input`\n- Build / test library.\n- Update `./src/app` with new functionality.\n- Update README.md\n- Pull request.\n\n### Helpful commands\n\n- Build lib: `$ npm run build_lib`\n- Copy license and readme files: `$ npm run copy-files`\n- Create package: `$ npm run npm_pack`\n- Build lib and create package: `$ npm run package`\n\n### Use locally\n\nAfter building and creating package, you can use it locally too.\n\nIn your project run:\n\n`$ npm install --save {{path to your local '*.tgz' package file}}`","readmeFilename":"README.md"}