bc-phone-number
Advanced tools
Comparing version 5.0.3 to 5.0.4
@@ -7,3 +7,3 @@ { | ||
], | ||
"version": "5.0.3", | ||
"version": "5.0.4", | ||
"authors": [ | ||
@@ -10,0 +10,0 @@ "Abdullah Alansari <ahimta@gmail.com>" |
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.bcPhoneNumber = f()}})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){ | ||
angular.module("bcPhoneNumberTemplates", []).run(["$templateCache", function($templateCache) {$templateCache.put("bc-phone-number/bc-phone-number.html","<section class=\"input-group\">\n <div class=\"input-group-btn\" uib-dropdown uib-keyboard-nav>\n <button type=\"button\" class=\"btn btn-default\" type=\"button\" ng-click=\"resetCountry()\">\n <span class=\"glyphicon iti-flag\" ng-class=\"selectedCountry.iso2Code\"></span>\n </button>\n <button type=\"button\" class=\"btn btn-default\" uib-dropdown-toggle>\n <span class=\"caret\"></span>\n <span class=\"sr-only\">Toggle Dropdown</span>\n </button>\n <ul class=\"uib-dropdown-menu bc-phone-number-dropdown-menu\" role=\"menu\">\n <li ng-repeat=\"country in preferredCountries\" ng-click=\"selectCountry(country)\"\n ng-class=\"{active: isCountrySelected(country)}\" role=\"menuitem\">\n <a href=\"#\" target=\"_self\" class=\"bc-phone-number-country-anchor\">\n <i class=\"glyphicon iti-flag bc-phone-number-country-icon\" ng-class=\"country.iso2Code\"></i>\n <span ng-bind=\"country.name\"></span>\n </a>\n </li>\n <li role=\"separator\" class=\"divider\" ng-show=\"preferredCountries && preferredCountries.length\"></li>\n <li ng-repeat=\"country in allCountries\" ng-click=\"selectCountry(country)\"\n ng-class=\"{active: isCountrySelected(country)}\" role=\"menuitem\">\n <a href=\"#\" target=\"_self\" class=\"bc-phone-number-country-anchor\">\n <i class=\"glyphicon iti-flag bc-phone-number-country-icon\" ng-class=\"country.iso2Code\"></i>\n <span ng-bind=\"country.name\"></span>\n </a>\n </li>\n </ul>\n </div>\n <input type=\"tel\" class=\"form-control\" ng-model=\"number\"/>\n</section>\n");}]); | ||
angular.module("bcPhoneNumberTemplates", []).run(["$templateCache", function($templateCache) {$templateCache.put("bc-phone-number/bc-phone-number.html","<section class=\"input-group\">\n <div class=\"input-group-btn\" uib-dropdown uib-keyboard-nav>\n <button type=\"button\" class=\"btn btn-default\" type=\"button\" uib-dropdown-toggle>\n <span class=\"glyphicon iti-flag bc-phone-number-flag\" ng-class=\"selectedCountry.iso2Code\"></span><span class=\"caret\"></span>\n </button>\n <ul class=\"uib-dropdown-menu bc-phone-number-dropdown-menu\" role=\"menu\">\n <li ng-repeat=\"country in preferredCountries\" ng-click=\"selectCountry(country)\"\n ng-class=\"{active: isCountrySelected(country)}\" role=\"menuitem\">\n <a href=\"#\" target=\"_self\" class=\"bc-phone-number-country-anchor\">\n <i class=\"glyphicon iti-flag bc-phone-number-country-icon\" ng-class=\"country.iso2Code\"></i>\n <span ng-bind=\"country.name\"></span>\n </a>\n </li>\n <li role=\"separator\" class=\"divider\" ng-show=\"preferredCountries && preferredCountries.length\"></li>\n <li ng-repeat=\"country in allCountries\" ng-click=\"selectCountry(country)\"\n ng-class=\"{active: isCountrySelected(country)}\" role=\"menuitem\">\n <a href=\"#\" target=\"_self\" class=\"bc-phone-number-country-anchor\">\n <i class=\"glyphicon iti-flag bc-phone-number-country-icon\" ng-class=\"country.iso2Code\"></i>\n <span ng-bind=\"country.name\"></span>\n </a>\n </li>\n </ul>\n </div>\n <input type=\"tel\" class=\"form-control\" ng-model=\"number\"/>\n</section>\n");}]); | ||
},{}],2:[function(require,module,exports){ | ||
@@ -4,0 +4,0 @@ (function (global){ |
@@ -1,1 +0,1 @@ | ||
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var n;n="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,n.bcPhoneNumber=e()}}(function(){return function e(n,o,t){function r(i,l){if(!o[i]){if(!n[i]){var s="function"==typeof require&&require;if(!l&&s)return s(i,!0);if(u)return u(i,!0);var d=new Error("Cannot find module '"+i+"'");throw d.code="MODULE_NOT_FOUND",d}var c=o[i]={exports:{}};n[i][0].call(c.exports,function(e){var o=n[i][1][e];return r(o?o:e)},c,c.exports,e,n,o,t)}return o[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)r(t[i]);return r}({1:[function(e,n,o){angular.module("bcPhoneNumberTemplates",[]).run(["$templateCache",function(e){e.put("bc-phone-number/bc-phone-number.html",'<section class="input-group">\n <div class="input-group-btn" uib-dropdown uib-keyboard-nav>\n <button type="button" class="btn btn-default" type="button" ng-click="resetCountry()">\n <span class="glyphicon iti-flag" ng-class="selectedCountry.iso2Code"></span>\n </button>\n <button type="button" class="btn btn-default" uib-dropdown-toggle>\n <span class="caret"></span>\n <span class="sr-only">Toggle Dropdown</span>\n </button>\n <ul class="uib-dropdown-menu bc-phone-number-dropdown-menu" role="menu">\n <li ng-repeat="country in preferredCountries" ng-click="selectCountry(country)"\n ng-class="{active: isCountrySelected(country)}" role="menuitem">\n <a href="#" target="_self" class="bc-phone-number-country-anchor">\n <i class="glyphicon iti-flag bc-phone-number-country-icon" ng-class="country.iso2Code"></i>\n <span ng-bind="country.name"></span>\n </a>\n </li>\n <li role="separator" class="divider" ng-show="preferredCountries && preferredCountries.length"></li>\n <li ng-repeat="country in allCountries" ng-click="selectCountry(country)"\n ng-class="{active: isCountrySelected(country)}" role="menuitem">\n <a href="#" target="_self" class="bc-phone-number-country-anchor">\n <i class="glyphicon iti-flag bc-phone-number-country-icon" ng-class="country.iso2Code"></i>\n <span ng-bind="country.name"></span>\n </a>\n </li>\n </ul>\n </div>\n <input type="tel" class="form-control" ng-model="number"/>\n</section>\n')}])},{}],2:[function(e,n,o){(function(o){"use strict";var t="undefined"!=typeof window?window.bcCountries:"undefined"!=typeof o?o.bcCountries:null,r="undefined"!=typeof window?window.angular:"undefined"!=typeof o?o.angular:null;o.angular=r,e("../build/js/templates"),r.module("bcPhoneNumber",["bcPhoneNumberTemplates","ui.bootstrap"]).directive("bcPhoneNumber",function(){function e(e){for(var n=[],o=0;o<e.length;o++){var r=t.getCountryByIso2Code(e[o]);r&&n.push(r)}return n}if("undefined"==typeof t)throw new"bc-countries not found, did you forget to load the Javascript?";return{templateUrl:"bc-phone-number/bc-phone-number.html",require:"ngModel",scope:{preferredCountriesCodes:"@preferredCountries",defaultCountryCode:"@defaultCountry",isValid:"=",ngModel:"="},link:function(n,o,r,u){if(n.selectedCountry=t.getCountryByIso2Code(n.defaultCountryCode||"us"),n.allCountries=t.getAllCountries(),n.number=n.ngModel,n.preferredCountriesCodes){var i=n.preferredCountriesCodes.split(" ");n.preferredCountries=e(i)}n.selectCountry=function(e){n.selectedCountry=e,n.number=n.ngModel=t.changeDialCode(n.number,e.dialCode)},n.isCountrySelected=function(e){return e.iso2Code==n.selectedCountry.iso2Code},n.resetCountry=function(){var e=n.defaultCountryCode;if(e){var o=t.getCountryByIso2Code(e),r=t.changeDialCode(n.number,o.dialCode);n.selectedCountry=o,n.ngModel=r,n.number=r}},n.$watch("number",function(e){u.$setValidity("phoneNumber",t.isValidNumber(e)),n.isValid=t.isValidNumber(e)}),n.$watch("number",function(e){if(""===e)n.ngModel="";else if(e){var o=t.getDigits(e),r=t.getIso2CodeByDigits(o);if(r){var u=t.getDialCodeByDigits(o),i=t.formatNumber(e);u!==n.selectedCountry.dialCode&&(n.selectedCountry=t.getCountryByIso2Code(r)),n.ngModel=i,n.number=i}else n.ngModel=e}})}}}),n.exports="bcPhoneNumber"}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../build/js/templates":1}]},{},[2])(2)}); | ||
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var n;n="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,n.bcPhoneNumber=e()}}(function(){return function e(n,o,t){function r(i,l){if(!o[i]){if(!n[i]){var s="function"==typeof require&&require;if(!l&&s)return s(i,!0);if(u)return u(i,!0);var d=new Error("Cannot find module '"+i+"'");throw d.code="MODULE_NOT_FOUND",d}var c=o[i]={exports:{}};n[i][0].call(c.exports,function(e){var o=n[i][1][e];return r(o?o:e)},c,c.exports,e,n,o,t)}return o[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)r(t[i]);return r}({1:[function(e,n,o){angular.module("bcPhoneNumberTemplates",[]).run(["$templateCache",function(e){e.put("bc-phone-number/bc-phone-number.html",'<section class="input-group">\n <div class="input-group-btn" uib-dropdown uib-keyboard-nav>\n <button type="button" class="btn btn-default" type="button" uib-dropdown-toggle>\n <span class="glyphicon iti-flag bc-phone-number-flag" ng-class="selectedCountry.iso2Code"></span><span class="caret"></span>\n </button>\n <ul class="uib-dropdown-menu bc-phone-number-dropdown-menu" role="menu">\n <li ng-repeat="country in preferredCountries" ng-click="selectCountry(country)"\n ng-class="{active: isCountrySelected(country)}" role="menuitem">\n <a href="#" target="_self" class="bc-phone-number-country-anchor">\n <i class="glyphicon iti-flag bc-phone-number-country-icon" ng-class="country.iso2Code"></i>\n <span ng-bind="country.name"></span>\n </a>\n </li>\n <li role="separator" class="divider" ng-show="preferredCountries && preferredCountries.length"></li>\n <li ng-repeat="country in allCountries" ng-click="selectCountry(country)"\n ng-class="{active: isCountrySelected(country)}" role="menuitem">\n <a href="#" target="_self" class="bc-phone-number-country-anchor">\n <i class="glyphicon iti-flag bc-phone-number-country-icon" ng-class="country.iso2Code"></i>\n <span ng-bind="country.name"></span>\n </a>\n </li>\n </ul>\n </div>\n <input type="tel" class="form-control" ng-model="number"/>\n</section>\n')}])},{}],2:[function(e,n,o){(function(o){"use strict";var t="undefined"!=typeof window?window.bcCountries:"undefined"!=typeof o?o.bcCountries:null,r="undefined"!=typeof window?window.angular:"undefined"!=typeof o?o.angular:null;o.angular=r,e("../build/js/templates"),r.module("bcPhoneNumber",["bcPhoneNumberTemplates","ui.bootstrap"]).directive("bcPhoneNumber",function(){function e(e){for(var n=[],o=0;o<e.length;o++){var r=t.getCountryByIso2Code(e[o]);r&&n.push(r)}return n}if("undefined"==typeof t)throw new"bc-countries not found, did you forget to load the Javascript?";return{templateUrl:"bc-phone-number/bc-phone-number.html",require:"ngModel",scope:{preferredCountriesCodes:"@preferredCountries",defaultCountryCode:"@defaultCountry",isValid:"=",ngModel:"="},link:function(n,o,r,u){if(n.selectedCountry=t.getCountryByIso2Code(n.defaultCountryCode||"us"),n.allCountries=t.getAllCountries(),n.number=n.ngModel,n.preferredCountriesCodes){var i=n.preferredCountriesCodes.split(" ");n.preferredCountries=e(i)}n.selectCountry=function(e){n.selectedCountry=e,n.number=n.ngModel=t.changeDialCode(n.number,e.dialCode)},n.isCountrySelected=function(e){return e.iso2Code==n.selectedCountry.iso2Code},n.resetCountry=function(){var e=n.defaultCountryCode;if(e){var o=t.getCountryByIso2Code(e),r=t.changeDialCode(n.number,o.dialCode);n.selectedCountry=o,n.ngModel=r,n.number=r}},n.$watch("number",function(e){u.$setValidity("phoneNumber",t.isValidNumber(e)),n.isValid=t.isValidNumber(e)}),n.$watch("number",function(e){if(""===e)n.ngModel="";else if(e){var o=t.getDigits(e),r=t.getIso2CodeByDigits(o);if(r){var u=t.getDialCodeByDigits(o),i=t.formatNumber(e);u!==n.selectedCountry.dialCode&&(n.selectedCountry=t.getCountryByIso2Code(r)),n.ngModel=i,n.number=i}else n.ngModel=e}})}}}),n.exports="bcPhoneNumber"}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../build/js/templates":1}]},{},[2])(2)}); |
{ | ||
"name": "bc-phone-number", | ||
"version": "5.0.3", | ||
"version": "5.0.4", | ||
"description": "An AngularJS international phone input directive", | ||
@@ -5,0 +5,0 @@ "main": "src/bc-phone-number.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
473
28724