Socket
Socket
Sign inDemoInstall

intl-input-phone

Package Overview
Dependencies
5
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.1 to 0.0.2

5

esm2015/lib/model/CountryModel.js

@@ -44,2 +44,5 @@ /**

}
/**
* Class for return the final result when input is filled correctly.
*/
export class NumberResult {

@@ -53,2 +56,2 @@ }

}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiQ291bnRyeU1vZGVsLmpzIiwic291cmNlUm9vdCI6Im5nOi8vaW50bC1pbnB1dC1waG9uZS8iLCJzb3VyY2VzIjpbImxpYi9tb2RlbC9Db3VudHJ5TW9kZWwudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7OztBQUFBLGtDQVFDOzs7SUFQRywrQkFBaUI7O0lBQ2pCLDRCQUFjOztJQUNkLG9DQUFzQjs7SUFDdEIsb0NBQXNCOztJQUN0Qix3Q0FBeUI7O0lBQ3pCLHdDQUEyQjs7SUFDM0IscUNBQXdCOzs7OztBQU01QixNQUFNLE9BQU8sa0JBQWtCO0lBTTNCO0lBRUEsQ0FBQztDQUNKOzs7SUFSRyxxQ0FBaUI7O0lBQ2pCLGtDQUFlOztJQUNmLDBDQUF1Qjs7SUFDdkIsOENBQTBCOztJQUMxQiwyQ0FBdUI7O0FBTTNCLE1BQU0sT0FBTyxZQUFZO0NBR3hCOzs7SUFGRyw4QkFBZ0I7O0lBQ2hCLG9DQUE0QiIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBpbnRlcmZhY2UgQ291bnRyeU1vZGVse1xyXG4gICAgSVNPQ29kZSA6IHN0cmluZztcclxuICAgIE5hbWUgOiBzdHJpbmc7XHJcbiAgICBGbGFnQ3NzQ2xhc3MgOiBzdHJpbmc7XHJcbiAgICBJbnB1dE1hc2tpbmcgOiBzdHJpbmc7XHJcbiAgICBDb3VudHJ5UGhvbmVDb2RlIDp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5/lib/model/CountryModel.js

@@ -52,3 +52,9 @@ /**

}
var NumberResult = /** @class */ (function () {
/**
* Class for return the final result when input is filled correctly.
*/
var /**
* Class for return the final result when input is filled correctly.
*/
NumberResult = /** @class */ (function () {
function NumberResult() {

@@ -58,2 +64,5 @@ }

}());
/**
* Class for return the final result when input is filled correctly.
*/
export { NumberResult };

@@ -66,2 +75,2 @@ if (false) {

}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiQ291bnRyeU1vZGVsLmpzIiwic291cmNlUm9vdCI6Im5nOi8vaW50bC1pbnB1dC1waG9uZS8iLCJzb3VyY2VzIjpbImxpYi9tb2RlbC9Db3VudHJ5TW9kZWwudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7OztBQUFBLGtDQVFDOzs7SUFQRywrQkFBaUI7O0lBQ2pCLDRCQUFjOztJQUNkLG9DQUFzQjs7SUFDdEIsb0NBQXNCOztJQUN0Qix3Q0FBeUI7O0lBQ3pCLHdDQUEyQjs7SUFDM0IscUNBQXdCOzs7OztBQU01Qjs7OztJQU1JO0lBRUEsQ0FBQztJQUNMLHlCQUFDO0FBQUQsQ0FBQyxBQVRELElBU0M7Ozs7Ozs7SUFSRyxxQ0FBaUI7O0lBQ2pCLGtDQUFlOztJQUNmLDBDQUF1Qjs7SUFDdkIsOENBQTBCOztJQUMxQiwyQ0FBdUI7O0FBTTNCO0lBQUE7SUFHQSxDQUFDO0lBQUQsbUJBQUM7QUFBRCxDQUFDLEFBSEQsSUFHQzs7OztJQUZHLDhCQUFnQjs7SUFDaEIsb0NBQTRCIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGludGVyZmFjZSBDb3VudHJ5TW9kZWx7XHJcbiAgICBJU09Db2RlIDogc3RyaW5nO1xyXG4gICAgTmFtZSA6IHN0cmluZztcclxuICAgIEZsYWdDc3NDbGFzcyA6IHN0cmluZztcclxuICAgIElucHV0TWFza2luZyA6IHN0cmluZ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HJcbiAgICBOdW1iZXIgOiBzdHJpbmc7XHJcbiAgICBDb3VudHJ5TW9kZWwgOiBDb3VudHJ5TW9kZWw7XHJcbn0iXX0=

@@ -21,2 +21,5 @@ export interface CountryModel {

}
/**
* Class for return the final result when input is filled correctly.
*/
export declare class NumberResult {

@@ -23,0 +26,0 @@ Number: string;

{
"name": "intl-input-phone",
"version": "0.0.1",
"version": "0.0.2",
"description": "Angular library to provide the international phone number feature by country dropdown and input fields with lots of customization and features like input masking, change the country, require valiation and many more.",

@@ -5,0 +5,0 @@ "author": {

# InternationalPhoneNumber
This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 7.1.4.
Angular plugin for entering and validating international mobile numbers. It adds a flag dropdown with countryname, country phonecode to any input provide validation and many customization.
# How to Use -
This plugin has following dependancy -
1. [Jquery] (https://jquery.com/)
2. [Select 2](https://select2.org/)
3. [Input Masking](https://robinherbots.github.io/Inputmask/)
please include the following cdn scripts in your project in order to use this plugin -
```HTML
<script src="https://code.jquery.com/jquery-3.3.1.js" integrity="sha256-2Kok7MbOyxpgUVvAk/HJ2jigOSYS2auK4Pfzbm7uH60=" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.6-rc.0/js/select2.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery.inputmask/3.3.4/jquery.inputmask.bundle.min.js"></script>
```
# Features
* Customization in dropdown option. You can customize the dropdown option in following ways -
* Country flag with country phone code.
* Country flag with country name.
* Country flag with country phone code and country name.
* Customization in tooltip text. You can customize the tooltip of option and selected value in following ways -
* Country ISO code.
* Country name.
* Country phone code.
* Show the tooltip or not.
* Customization in ordering of the dropdown. Their are following order in which you can sort the dropdown -
* Country ISO code.
* Country name.
* Country phone code.
* Provide the search option in the dropdown. Search is application on country name, country iso code and country phone code. Also provide flag to show search or not.
* Provide the input masking according to the country phone format.
* Provide the output event which call when the input is filled completed according to input masking.
* Provide the customization in output format in form of number with country phone code and number only.
* Provide the input property to set the value from model.
* Provide the input property to customize the country list in the dropdown. Their are following cases when you customize dropdown -
* You can customize the country name.
* You can customize the country flag.
* You can customize the country input masking.
* You can specify only few country listing in dropdown instead of all country list.
* You can add new country if not avaliable in my country.

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc