ngx-phone-mask
Advanced tools
Comparing version 3.2.2 to 3.3.0
(function (global, factory) { | ||
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/forms'), require('@angular/platform-browser'), require('text-mask-core/dist/textMaskCore'), require('angular2-text-mask')) : | ||
typeof define === 'function' && define.amd ? define('ngx-phone-mask', ['exports', '@angular/core', '@angular/forms', '@angular/platform-browser', 'text-mask-core/dist/textMaskCore', 'angular2-text-mask'], factory) : | ||
(factory((global['ngx-phone-mask'] = {}),global.ng.core,global.ng.forms,global.ng.platformBrowser,global.textMaskCore,global.angular2TextMask)); | ||
}(this, (function (exports,core,forms,platformBrowser,textMaskCore,angular2TextMask) { 'use strict'; | ||
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/forms'), require('@angular/platform-browser'), require('text-mask-core/dist/textMaskCore'), require('@angular/core'), require('angular2-text-mask')) : | ||
typeof define === 'function' && define.amd ? define('ngx-phone-mask', ['exports', '@angular/forms', '@angular/platform-browser', 'text-mask-core/dist/textMaskCore', '@angular/core', 'angular2-text-mask'], factory) : | ||
(factory((global['ngx-phone-mask'] = {}),global.ng.forms,global.ng.platformBrowser,global.textMaskCore,global.ng.core,global.angular2TextMask)); | ||
}(this, (function (exports,forms,platformBrowser,textMaskCore,core,angular2TextMask) { 'use strict'; | ||
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingReturn,uselessCode} checked by tsc | ||
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
@@ -18,5 +18,8 @@ /** @type {?} */ | ||
/** @type {?} */ | ||
var mask = function () { | ||
var mask = function (maxLength) { | ||
if (maxLength === void 0) { | ||
maxLength = 13; | ||
} | ||
return function (rawValue) { | ||
if (clean(rawValue).length <= 12) { | ||
if (clean(rawValue).length <= 12 || maxLength === 12) { | ||
return ['+', /[1-9]/, ' ', '(', /[1-9]/, /\d/, /\d/, ')', ' ', /\d/, /\d/, /\d/, '-', /\d/, /\d/, '-', /\d/, /\d/]; | ||
@@ -30,3 +33,3 @@ } | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingReturn,uselessCode} checked by tsc | ||
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
@@ -54,9 +57,3 @@ var TextMaskConfig = /** @class */ (function () { | ||
this.clean = true; | ||
this.textMaskConfig = { | ||
mask: mask(), | ||
guide: false, | ||
placeholderChar: '_', | ||
pipe: undefined, | ||
keepCharPositions: false, | ||
}; | ||
this.maxNumberLength = 13; | ||
/** | ||
@@ -196,2 +193,9 @@ * Whether the user is creating a composition string (IME events). | ||
} | ||
this.textMaskConfig = { | ||
mask: mask(this.maxNumberLength), | ||
guide: false, | ||
placeholderChar: '_', | ||
pipe: undefined, | ||
keepCharPositions: false, | ||
}; | ||
if (!this.inputElement) { | ||
@@ -259,2 +263,3 @@ if (this._elementRef.nativeElement.tagName.toUpperCase() === 'INPUT') { | ||
clean: [{ type: core.Input }], | ||
maxNumberLength: [{ type: core.Input }], | ||
onBlur: [{ type: core.HostListener, args: ['blur',] }] | ||
@@ -267,3 +272,3 @@ }; | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingReturn,uselessCode} checked by tsc | ||
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
@@ -297,3 +302,3 @@ var NgxPhoneMaskPipe = /** @class */ (function () { | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingReturn,uselessCode} checked by tsc | ||
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
@@ -321,3 +326,3 @@ var NgxPhoneMaskModule = /** @class */ (function () { | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingReturn,uselessCode} checked by tsc | ||
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
@@ -327,3 +332,3 @@ | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingReturn,uselessCode} checked by tsc | ||
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
@@ -340,2 +345,2 @@ | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LXBob25lLW1hc2sudW1kLmpzLm1hcCIsInNvdXJjZXMiOlsibmc6Ly9uZ3gtcGhvbmUtbWFzay9saWIvdXRpbHMudHMiLCJuZzovL25neC1waG9uZS1tYXNrL2xpYi9uZ3gtcGhvbmUtbWFzay5kaXJlY3RpdmUudHMiLCJuZzovL25neC1waG9uZS1tYXNrL2xpYi9uZ3gtcGhvbmUtbWFzay5waXBlLnRzIiwibmc6Ly9uZ3gtcGhvbmUtbWFzay9saWIvbmd4LXBob25lLW1hc2subW9kdWxlLnRzIl0sInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBjb25zdCBjbGVhbiA9IChudW1iZXIpID0+IHtcblx0cmV0dXJuIG51bWJlclxuXHRcdC50b1N0cmluZygpXG5cdFx0LnJlcGxhY2UoL1teXFxkXFxeXFwrXS9nbSwgJycpO1xufTtcblxuZXhwb3J0IGNvbnN0IG1hc2sgPSAoKSA9PiAocmF3VmFsdWUpID0+IHtcblx0aWYgKGNsZWFuKHJhd1ZhbHVlKS5sZW5ndGggPD0gMTIpIHtcblx0XHRyZXR1cm4gWycrJywgL1sxLTldLywgJyAnLCAnKCcsIC9bMS05XS8sIC9cXGQvLCAvXFxkLywgJyknLCAnICcsIC9cXGQvLCAvXFxkLywgL1xcZC8sICctJywgL1xcZC8sIC9cXGQvLCAnLScsIC9cXGQvLCAvXFxkL107XG5cdH1cblxuXHRyZXR1cm4gWycrJywgL1sxLTldLywgJyAnLCAnKCcsIC9bMS05XS8sIC9cXGQvL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UFFLEtBQUssRUFBRSxLQUFLLEVBQUUsQ0FDaEIsQ0FBQyxjQUFjLENBQUM7YUFDakI7O29CQWZEQyxTQUFJLFNBQUM7d0JBQ0wsSUFBSSxFQUFFLGNBQWM7cUJBQ3BCOztRQWNELHVCQUFDO0tBaEJEOzs7Ozs7QUNKQTtRQUtBO1NBWUM7O29CQVpBQyxhQUFRLFNBQUM7d0JBQ1QsT0FBTyxFQUFFLENBQUNDLCtCQUFjLENBQUM7d0JBQ3pCLFlBQVksRUFBRTs0QkFDYixxQkFBcUI7NEJBQ3JCLGdCQUFnQjt5QkFDaEI7d0JBQ0QsT0FBTyxFQUFFOzRCQUNSLHFCQUFxQjs0QkFDckIsZ0JBQWdCO3lCQUNoQjtxQkFDRDs7UUFFRCx5QkFBQztLQVpEOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OyJ9 | ||
//# sourceMappingURL=ngx-phone-mask.umd.js.map |
@@ -1,2 +0,2 @@ | ||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/core"),require("@angular/forms"),require("@angular/platform-browser"),require("text-mask-core/dist/textMaskCore"),require("angular2-text-mask")):"function"==typeof define&&define.amd?define("ngx-phone-mask",["exports","@angular/core","@angular/forms","@angular/platform-browser","text-mask-core/dist/textMaskCore","angular2-text-mask"],e):e(t["ngx-phone-mask"]={},t.ng.core,t.ng.forms,t.ng.platformBrowser,t.textMaskCore,t.angular2TextMask)}(this,function(t,e,n,i,o,s){"use strict";var r=function(t){return t.toString().replace(/[^\d\^\+]/gm,"")},a=function(){return function(t){return r(t).length<=12?["+",/[1-9]/," ","(",/[1-9]/,/\d/,/\d/,")"," ",/\d/,/\d/,/\d/,"-",/\d/,/\d/,"-",/\d/,/\d/]:["+",/[1-9]/," ","(",/[1-9]/,/\d/,/\d/,")"," ",/\d/,/\d/,/\d/,"-",/\d/,/\d/,/\d/,"-",/\d/,/\d/]}},u=function c(){};var p=function(){function t(t,e,n){this._renderer=t,this._elementRef=e,this._compositionMode=n,this.clean=!0,this.textMaskConfig={mask:a(),guide:!1,placeholderChar:"_",pipe:undefined,keepCharPositions:!1},this._composing=!1,this.onChange=function(t){},this.onTouched=function(){},null==this._compositionMode&&(this._compositionMode=!function o(){var t=i.ɵgetDOM()?i.ɵgetDOM().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}())}return t.prototype.ngOnInit=function(){this._setupMask(!0),this.textMaskInputElement!==undefined&&this.textMaskInputElement.update(this.inputElement.value)},t.prototype.ngOnChanges=function(t){this._setupMask(!0),this.textMaskInputElement!==undefined&&this.textMaskInputElement.update(this.inputElement.value)},t.prototype.onBlur=function(){this.onTouched()},t.prototype.writeValue=function(t){this._setupMask();var e=null==t?"":t;this._renderer.setProperty(this.inputElement,"value",e),this.textMaskInputElement!==undefined&&this.textMaskInputElement.update(t)},t.prototype.registerOnChange=function(t){this.onChange=t},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t.prototype._handleInput=function(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&(this._setupMask(),this.textMaskInputElement!==undefined&&(this.textMaskInputElement.update(t),t=this.inputElement.value,this.clean?this.onChange(r(t)):this.onChange(t)))},t.prototype._setupMask=function(t){void 0===t&&(t=!1),this.inputElement||("INPUT"===this._elementRef.nativeElement.tagName.toUpperCase()?this.inputElement=this._elementRef.nativeElement:this.inputElement=this._elementRef.nativeElement.getElementsByTagName("INPUT")[0]),this.inputElement&&t&&(this.textMaskInputElement=o.createTextMaskInputElement(Object.assign({inputElement:this.inputElement},this.textMaskConfig)))},t.prototype._compositionStart=function(){this._composing=!0},t.prototype._compositionEnd=function(t){this._composing=!1,this._compositionMode&&this._handleInput(t)},t.decorators=[{type:e.Directive,args:[{host:{"(input)":"_handleInput($event.target.value)","(blur)":"onTouched()","(compositionstart)":"_compositionStart()","(compositionend)":"_compositionEnd($event.target.value)"},selector:"[ngxPhoneMask]",exportAs:"ngxPhoneMask",providers:[{provide:n.NG_VALUE_ACCESSOR,useExisting:e.forwardRef(function(){return t}),multi:!0}]}]}],t.ctorParameters=function(){return[{type:e.Renderer2},{type:e.ElementRef},{type:Boolean,decorators:[{type:e.Optional},{type:e.Inject,args:[n.COMPOSITION_BUFFER_MODE]}]}]},t.propDecorators={clean:[{type:e.Input}],onBlur:[{type:e.HostListener,args:["blur"]}]},t}(),d=function(){function t(){}return t.prototype.transform=function(t){return t?s.conformToMask(t,a(),{guide:!1}).conformedValue:""},t.decorators=[{type:e.Pipe,args:[{name:"ngxPhoneMask"}]}],t}(),l=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{imports:[s.TextMaskModule],declarations:[p,d],exports:[p,d]}]}],t}();t.TextMaskConfig=u,t.NgxPhoneMaskDirective=p,t.NgxPhoneMaskModule=l,t.ɵa=d,Object.defineProperty(t,"__esModule",{value:!0})}); | ||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/forms"),require("@angular/platform-browser"),require("text-mask-core/dist/textMaskCore"),require("@angular/core"),require("angular2-text-mask")):"function"==typeof define&&define.amd?define("ngx-phone-mask",["exports","@angular/forms","@angular/platform-browser","text-mask-core/dist/textMaskCore","@angular/core","angular2-text-mask"],e):e(t["ngx-phone-mask"]={},t.ng.forms,t.ng.platformBrowser,t.textMaskCore,t.ng.core,t.angular2TextMask)}(this,function(t,e,i,n,o,s){"use strict";var r=function(t){return t.toString().replace(/[^\d\^\+]/gm,"")},a=function(e){return void 0===e&&(e=13),function(t){return r(t).length<=12||12===e?["+",/[1-9]/," ","(",/[1-9]/,/\d/,/\d/,")"," ",/\d/,/\d/,/\d/,"-",/\d/,/\d/,"-",/\d/,/\d/]:["+",/[1-9]/," ","(",/[1-9]/,/\d/,/\d/,")"," ",/\d/,/\d/,/\d/,"-",/\d/,/\d/,/\d/,"-",/\d/,/\d/]}},u=function l(){};var p=function(){function t(t,e,n){this._renderer=t,this._elementRef=e,this._compositionMode=n,this.clean=!0,this.maxNumberLength=13,this._composing=!1,this.onChange=function(t){},this.onTouched=function(){},null==this._compositionMode&&(this._compositionMode=!function o(){var t=i.ɵgetDOM()?i.ɵgetDOM().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}())}return t.prototype.ngOnInit=function(){this._setupMask(!0),this.textMaskInputElement!==undefined&&this.textMaskInputElement.update(this.inputElement.value)},t.prototype.ngOnChanges=function(t){this._setupMask(!0),this.textMaskInputElement!==undefined&&this.textMaskInputElement.update(this.inputElement.value)},t.prototype.onBlur=function(){this.onTouched()},t.prototype.writeValue=function(t){this._setupMask();var e=null==t?"":t;this._renderer.setProperty(this.inputElement,"value",e),this.textMaskInputElement!==undefined&&this.textMaskInputElement.update(t)},t.prototype.registerOnChange=function(t){this.onChange=t},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t.prototype._handleInput=function(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&(this._setupMask(),this.textMaskInputElement!==undefined&&(this.textMaskInputElement.update(t),t=this.inputElement.value,this.clean?this.onChange(r(t)):this.onChange(t)))},t.prototype._setupMask=function(t){void 0===t&&(t=!1),this.textMaskConfig={mask:a(this.maxNumberLength),guide:!1,placeholderChar:"_",pipe:undefined,keepCharPositions:!1},this.inputElement||("INPUT"===this._elementRef.nativeElement.tagName.toUpperCase()?this.inputElement=this._elementRef.nativeElement:this.inputElement=this._elementRef.nativeElement.getElementsByTagName("INPUT")[0]),this.inputElement&&t&&(this.textMaskInputElement=n.createTextMaskInputElement(Object.assign({inputElement:this.inputElement},this.textMaskConfig)))},t.prototype._compositionStart=function(){this._composing=!0},t.prototype._compositionEnd=function(t){this._composing=!1,this._compositionMode&&this._handleInput(t)},t.decorators=[{type:o.Directive,args:[{host:{"(input)":"_handleInput($event.target.value)","(blur)":"onTouched()","(compositionstart)":"_compositionStart()","(compositionend)":"_compositionEnd($event.target.value)"},selector:"[ngxPhoneMask]",exportAs:"ngxPhoneMask",providers:[{provide:e.NG_VALUE_ACCESSOR,useExisting:o.forwardRef(function(){return t}),multi:!0}]}]}],t.ctorParameters=function(){return[{type:o.Renderer2},{type:o.ElementRef},{type:Boolean,decorators:[{type:o.Optional},{type:o.Inject,args:[e.COMPOSITION_BUFFER_MODE]}]}]},t.propDecorators={clean:[{type:o.Input}],maxNumberLength:[{type:o.Input}],onBlur:[{type:o.HostListener,args:["blur"]}]},t}(),d=function(){function t(){}return t.prototype.transform=function(t){return t?s.conformToMask(t,a(),{guide:!1}).conformedValue:""},t.decorators=[{type:o.Pipe,args:[{name:"ngxPhoneMask"}]}],t}(),h=function(){function t(){}return t.decorators=[{type:o.NgModule,args:[{imports:[s.TextMaskModule],declarations:[p,d],exports:[p,d]}]}],t}();t.TextMaskConfig=u,t.NgxPhoneMaskDirective=p,t.NgxPhoneMaskModule=h,t.ɵa=d,Object.defineProperty(t,"__esModule",{value:!0})}); | ||
//# sourceMappingURL=ngx-phone-mask.umd.min.js.map |
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingReturn,uselessCode} checked by tsc | ||
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
@@ -47,9 +47,3 @@ import { Directive, ElementRef, forwardRef, HostListener, Inject, Input, Optional, Renderer2 } from '@angular/core'; | ||
this.clean = true; | ||
this.textMaskConfig = { | ||
mask: mask(), | ||
guide: false, | ||
placeholderChar: '_', | ||
pipe: undefined, | ||
keepCharPositions: false, | ||
}; | ||
this.maxNumberLength = 13; | ||
/** | ||
@@ -152,2 +146,9 @@ * Whether the user is creating a composition string (IME events). | ||
_setupMask(create = false) { | ||
this.textMaskConfig = { | ||
mask: mask(this.maxNumberLength), | ||
guide: false, | ||
placeholderChar: '_', | ||
pipe: undefined, | ||
keepCharPositions: false, | ||
}; | ||
if (!this.inputElement) { | ||
@@ -207,2 +208,3 @@ if (this._elementRef.nativeElement.tagName.toUpperCase() === 'INPUT') { | ||
clean: [{ type: Input }], | ||
maxNumberLength: [{ type: Input }], | ||
onBlur: [{ type: HostListener, args: ['blur',] }] | ||
@@ -214,6 +216,14 @@ }; | ||
/** @type {?} */ | ||
NgxPhoneMaskDirective.prototype.maxNumberLength; | ||
/** @type {?} */ | ||
NgxPhoneMaskDirective.prototype.textMaskConfig; | ||
/** @type {?} */ | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
NgxPhoneMaskDirective.prototype.textMaskInputElement; | ||
/** @type {?} */ | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
NgxPhoneMaskDirective.prototype.inputElement; | ||
@@ -223,2 +233,3 @@ /** | ||
* @type {?} | ||
* @private | ||
*/ | ||
@@ -230,9 +241,18 @@ NgxPhoneMaskDirective.prototype._composing; | ||
NgxPhoneMaskDirective.prototype.onTouched; | ||
/** @type {?} */ | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
NgxPhoneMaskDirective.prototype._renderer; | ||
/** @type {?} */ | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
NgxPhoneMaskDirective.prototype._elementRef; | ||
/** @type {?} */ | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
NgxPhoneMaskDirective.prototype._compositionMode; | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LXBob25lLW1hc2suZGlyZWN0aXZlLmpzIiwic291cmNlUm9vdCI6Im5nOi8vbmd4LXBob25lLW1hc2svIiwic291cmNlcyI6WyJsaWIvbmd4LXBob25lLW1hc2suZGlyZWN0aXZlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFBQSxPQUFPLEVBQ04sU0FBUyxFQUNULFVBQVUsRUFDVixVQUFVLEVBQUUsWUFBWSxFQUN4QixNQUFNLEVBQUUsS0FBSyxFQUViLFFBQVEsRUFDUixTQUFTLEVBRVQsTUFBTSx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GlmICh0aGlzLmlucHV0RWxlbWVudCAmJiBjcmVhdGUpIHtcblx0XHRcdHRoaXMudGV4dE1hc2tJbnB1dEVsZW1lbnQgPSBjcmVhdGVUZXh0TWFza0lucHV0RWxlbWVudChcblx0XHRcdFx0T2JqZWN0LmFzc2lnbih7IGlucHV0RWxlbWVudDogdGhpcy5pbnB1dEVsZW1lbnQgfSwgdGhpcy50ZXh0TWFza0NvbmZpZylcblx0XHRcdCk7XG5cdFx0fVxuXG5cdH1cblxuXHRfY29tcG9zaXRpb25TdGFydCgpOiB2b2lkIHtcblx0XHR0aGlzLl9jb21wb3NpbmcgPSB0cnVlO1xuXHR9XG5cblx0X2NvbXBvc2l0aW9uRW5kKHZhbHVlOiBhbnkpOiB2b2lkIHtcblx0XHR0aGlzLl9jb21wb3NpbmcgPSBmYWxzZTtcblx0XHR0aGlzLl9jb21wb3NpdGlvbk1vZGUgJiYgdGhpcy5faGFuZGxlSW5wdXQodmFsdWUpO1xuXHR9XG59XG4iXX0= |
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingReturn,uselessCode} checked by tsc | ||
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
@@ -5,0 +5,0 @@ import { NgModule } from '@angular/core'; |
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingReturn,uselessCode} checked by tsc | ||
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
@@ -5,0 +5,0 @@ import { Pipe } from '@angular/core'; |
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingReturn,uselessCode} checked by tsc | ||
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
@@ -12,4 +12,4 @@ /** @type {?} */ | ||
/** @type {?} */ | ||
export const mask = () => (rawValue) => { | ||
if (clean(rawValue).length <= 12) { | ||
export const mask = (maxLength = 13) => (rawValue) => { | ||
if (clean(rawValue).length <= 12 || maxLength === 12) { | ||
return ['+', /[1-9]/, ' ', '(', /[1-9]/, /\d/, /\d/, ')', ' ', /\d/, /\d/, /\d/, '-', /\d/, /\d/, '-', /\d/, /\d/]; | ||
@@ -19,2 +19,2 @@ } | ||
}; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXRpbHMuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9uZ3gtcGhvbmUtbWFzay8iLCJzb3VyY2VzIjpbImxpYi91dGlscy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7OztBQUFBLE1BQU0sT0FBTyxLQUFLLEdBQUcsQ0FBQyxNQUFNLEVBQUUsRUFBRTtJQUMvQixPQUFPLE1BQU07U0FDWCxRQUFRLEVBQUU7U0FDVixPQUFPLENBQUMsYUFBYSxFQUFFLEVBQUUsQ0FBQyxDQUFDO0FBQzlCLENBQUM7O0FBRUQsTUFBTSxPQUFPLElBQUksR0FBRyxHQUFHLEVBQUUsQ0FBQyxDQUFDLFFBQVEsRUFBRSxFQUFFO0lBQ3RDLElBQUksS0FBSyxDQUFDLFFBQVEsQ0FBQyxDQUFDLE1BQU0sSUFBSSxFQUFFLEVBQUU7UUFDakMsT0FBTyxDQUFDLEdBQUcsRUFBRSxPQUFPLEVBQUUsR0FBRyxFQUFFLEdBQUcsRUFBRSxPQUFPLEVBQUUsSUFBSSxFQUFFLElBQUksRUFBRSxHQUFHLEVBQUUsR0FBRyxFQUFFLElBQUksRUFBRSxJQUFJLEVBQUUsSUFBSSxFQUFFLEdBQUcsRUFBRSxJQUFJLEVBQUUsSUFBSSxFQUFFLEdBQUcsRUFBRSxJQUFJLEVBQUUsSUFBSSxDQUFDLENBQUM7S0FDbkg7SUFFRCxPQUFPLENBQUMsR0FBRyxFQUFFLE9BQU8sRUFBRSxHQUFHLEVBQUUsR0FBRyxFQUFFLE9BQ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UoL1teXFxkXFxeXFwrXS9nbSwgJycpO1xufTtcblxuZXhwb3J0IGNvbnN0IG1hc2sgPSAobWF4TGVuZ3RoOiBudW1iZXIgPSAxMykgPT4gKHJhd1ZhbHVlKSA9PiB7XG5cdGlmIChjbGVhbihyYXdWYWx1ZSkubGVuZ3RoIDw9IDEyIHx8IG1heExlbmd0aCA9PT0gMTIpIHtcblx0XHRyZXR1cm4gWycrJywgL1sxLTldLywgJyAnLCAnKCcsIC9bMS05XS8sIC9cXGQvLCAvXFxkLywgJyknLCAnICcsIC9cXGQvLCAvXFxkLywgL1xcZC8sICctJywgL1xcZC8sIC9cXGQvLCAnLScsIC9cXGQvLCAvXFxkL107XG5cdH1cblxuXHRyZXR1cm4gWycrJywgL1sxLTldLywgJyAnLCAnKCcsIC9bMS05XS8sIC9cXGQvLCAvXFxkLywgJyknLCAnICcsIC9cXGQvLCAvXFxkLywgL1xcZC8sICctJywgL1xcZC8sIC9cXGQvLCAvXFxkLywgJy0nLCAvXFxkLywgL1xcZC9dO1xuXG59O1xuIl19 |
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingReturn,uselessCode} checked by tsc | ||
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
@@ -5,0 +5,0 @@ /** |
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingReturn,uselessCode} checked by tsc | ||
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
@@ -5,0 +5,0 @@ export { TextMaskConfig, NgxPhoneMaskDirective } from './lib/ngx-phone-mask.directive'; |
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingReturn,uselessCode} checked by tsc | ||
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
@@ -46,9 +46,3 @@ import { Directive, ElementRef, forwardRef, HostListener, Inject, Input, Optional, Renderer2 } from '@angular/core'; | ||
this.clean = true; | ||
this.textMaskConfig = { | ||
mask: mask(), | ||
guide: false, | ||
placeholderChar: '_', | ||
pipe: undefined, | ||
keepCharPositions: false, | ||
}; | ||
this.maxNumberLength = 13; | ||
/** | ||
@@ -186,2 +180,9 @@ * Whether the user is creating a composition string (IME events). | ||
if (create === void 0) { create = false; } | ||
this.textMaskConfig = { | ||
mask: mask(this.maxNumberLength), | ||
guide: false, | ||
placeholderChar: '_', | ||
pipe: undefined, | ||
keepCharPositions: false, | ||
}; | ||
if (!this.inputElement) { | ||
@@ -247,2 +248,3 @@ if (this._elementRef.nativeElement.tagName.toUpperCase() === 'INPUT') { | ||
clean: [{ type: Input }], | ||
maxNumberLength: [{ type: Input }], | ||
onBlur: [{ type: HostListener, args: ['blur',] }] | ||
@@ -257,6 +259,14 @@ }; | ||
/** @type {?} */ | ||
NgxPhoneMaskDirective.prototype.maxNumberLength; | ||
/** @type {?} */ | ||
NgxPhoneMaskDirective.prototype.textMaskConfig; | ||
/** @type {?} */ | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
NgxPhoneMaskDirective.prototype.textMaskInputElement; | ||
/** @type {?} */ | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
NgxPhoneMaskDirective.prototype.inputElement; | ||
@@ -266,2 +276,3 @@ /** | ||
* @type {?} | ||
* @private | ||
*/ | ||
@@ -273,9 +284,18 @@ NgxPhoneMaskDirective.prototype._composing; | ||
NgxPhoneMaskDirective.prototype.onTouched; | ||
/** @type {?} */ | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
NgxPhoneMaskDirective.prototype._renderer; | ||
/** @type {?} */ | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
NgxPhoneMaskDirective.prototype._elementRef; | ||
/** @type {?} */ | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
NgxPhoneMaskDirective.prototype._compositionMode; | ||
} | ||
//# sourceMappingURL=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VlO1xuXHR9XG5cblx0X2NvbXBvc2l0aW9uRW5kKHZhbHVlOiBhbnkpOiB2b2lkIHtcblx0XHR0aGlzLl9jb21wb3NpbmcgPSBmYWxzZTtcblx0XHR0aGlzLl9jb21wb3NpdGlvbk1vZGUgJiYgdGhpcy5faGFuZGxlSW5wdXQodmFsdWUpO1xuXHR9XG59XG4iXX0= |
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingReturn,uselessCode} checked by tsc | ||
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
@@ -5,0 +5,0 @@ import { NgModule } from '@angular/core'; |
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingReturn,uselessCode} checked by tsc | ||
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
@@ -5,0 +5,0 @@ import { Pipe } from '@angular/core'; |
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingReturn,uselessCode} checked by tsc | ||
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
@@ -12,8 +12,11 @@ /** @type {?} */ | ||
/** @type {?} */ | ||
export var mask = function () { return function (rawValue) { | ||
if (clean(rawValue).length <= 12) { | ||
return ['+', /[1-9]/, ' ', '(', /[1-9]/, /\d/, /\d/, ')', ' ', /\d/, /\d/, /\d/, '-', /\d/, /\d/, '-', /\d/, /\d/]; | ||
} | ||
return ['+', /[1-9]/, ' ', '(', /[1-9]/, /\d/, /\d/, ')', ' ', /\d/, /\d/, /\d/, '-', /\d/, /\d/, /\d/, '-', /\d/, /\d/]; | ||
}; }; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXRpbHMuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9uZ3gtcGhvbmUtbWFzay8iLCJzb3VyY2V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5nKClcblx0XHQucmVwbGFjZSgvW15cXGRcXF5cXCtdL2dtLCAnJyk7XG59O1xuXG5leHBvcnQgY29uc3QgbWFzayA9ICgpID0+IChyYXdWYWx1ZSkgPT4ge1xuXHRpZiAoY2xlYW4ocmF3VmFsdWUpLmxlbmd0aCA8PSAxMikge1xuXHRcdHJldHVybiBbJysnLCAvWzEtOV0vLCAnICcsICcoJywgL1sxLTldLywgL1xcZC8sIC9cXGQvLCAnKScsICcgJywgL1xcZC8sIC9cXGQvLCAvXFxkLywgJy0nLCAvXFxkLywgL1xcZC8sICctJywgL1xcZC8sIC9cXGQvXTtcblx0fVxuXG5cdHJldHVybiBbJysnLCAvWzEtOV0vLCAnICcsICcoJywgL1sxLTldLywgL1xcZC8sIC9cXGQvLCAnKScsICcgJywgL1xcZC8sIC9cXGQvLCAvXFxkLywgJy0nLCAvXFxkLywgL1xcZC8sIC9cXGQvLCAnLScsIC9cXGQvLCAvXFxkL107XG5cbn07XG4iXX0= | ||
export var mask = function (maxLength) { | ||
if (maxLength === void 0) { maxLength = 13; } | ||
return function (rawValue) { | ||
if (clean(rawValue).length <= 12 || maxLength === 12) { | ||
return ['+', /[1-9]/, ' ', '(', /[1-9]/, /\d/, /\d/, ')', ' ', /\d/, /\d/, /\d/, '-', /\d/, /\d/, '-', /\d/, /\d/]; | ||
} | ||
return ['+', /[1-9]/, ' ', '(', /[1-9]/, /\d/, /\d/, ')', ' ', /\d/, /\d/, /\d/, '-', /\d/, /\d/, /\d/, '-', /\d/, /\d/]; | ||
}; | ||
}; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXRpbHMuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9uZ3gtcGhvbmUtbWFzay8iLCJzb3VyY2VzIjpbImxpYi91dGlscy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7OztBQUFBLE1BQU0sS0FBTyxLQUFLLEdBQUcsVUFBQyxNQUFNO0lBQz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L2dtLCAnJyk7XG59O1xuXG5leHBvcnQgY29uc3QgbWFzayA9IChtYXhMZW5ndGg6IG51bWJlciA9IDEzKSA9PiAocmF3VmFsdWUpID0+IHtcblx0aWYgKGNsZWFuKHJhd1ZhbHVlKS5sZW5ndGggPD0gMTIgfHwgbWF4TGVuZ3RoID09PSAxMikge1xuXHRcdHJldHVybiBbJysnLCAvWzEtOV0vLCAnICcsICcoJywgL1sxLTldLywgL1xcZC8sIC9cXGQvLCAnKScsICcgJywgL1xcZC8sIC9cXGQvLCAvXFxkLywgJy0nLCAvXFxkLywgL1xcZC8sICctJywgL1xcZC8sIC9cXGQvXTtcblx0fVxuXG5cdHJldHVybiBbJysnLCAvWzEtOV0vLCAnICcsICcoJywgL1sxLTldLywgL1xcZC8sIC9cXGQvLCAnKScsICcgJywgL1xcZC8sIC9cXGQvLCAvXFxkLywgJy0nLCAvXFxkLywgL1xcZC8sIC9cXGQvLCAnLScsIC9cXGQvLCAvXFxkL107XG5cbn07XG4iXX0= |
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingReturn,uselessCode} checked by tsc | ||
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
@@ -5,0 +5,0 @@ /** |
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingReturn,uselessCode} checked by tsc | ||
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
@@ -5,0 +5,0 @@ export { TextMaskConfig, NgxPhoneMaskDirective } from './lib/ngx-phone-mask.directive'; |
@@ -1,5 +0,5 @@ | ||
import { Directive, ElementRef, forwardRef, HostListener, Inject, Input, Optional, Renderer2, Pipe, NgModule } from '@angular/core'; | ||
import { NG_VALUE_ACCESSOR, COMPOSITION_BUFFER_MODE } from '@angular/forms'; | ||
import { ɵgetDOM } from '@angular/platform-browser'; | ||
import { createTextMaskInputElement } from 'text-mask-core/dist/textMaskCore'; | ||
import { Directive, ElementRef, forwardRef, HostListener, Inject, Input, Optional, Renderer2, Pipe, NgModule } from '@angular/core'; | ||
import { conformToMask, TextMaskModule } from 'angular2-text-mask'; | ||
@@ -9,3 +9,3 @@ | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingReturn,uselessCode} checked by tsc | ||
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
@@ -19,4 +19,4 @@ /** @type {?} */ | ||
/** @type {?} */ | ||
const mask = () => (rawValue) => { | ||
if (clean(rawValue).length <= 12) { | ||
const mask = (maxLength = 13) => (rawValue) => { | ||
if (clean(rawValue).length <= 12 || maxLength === 12) { | ||
return ['+', /[1-9]/, ' ', '(', /[1-9]/, /\d/, /\d/, ')', ' ', /\d/, /\d/, /\d/, '-', /\d/, /\d/, '-', /\d/, /\d/]; | ||
@@ -29,3 +29,3 @@ } | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingReturn,uselessCode} checked by tsc | ||
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
@@ -55,9 +55,3 @@ class TextMaskConfig { | ||
this.clean = true; | ||
this.textMaskConfig = { | ||
mask: mask(), | ||
guide: false, | ||
placeholderChar: '_', | ||
pipe: undefined, | ||
keepCharPositions: false, | ||
}; | ||
this.maxNumberLength = 13; | ||
/** | ||
@@ -160,2 +154,9 @@ * Whether the user is creating a composition string (IME events). | ||
_setupMask(create = false) { | ||
this.textMaskConfig = { | ||
mask: mask(this.maxNumberLength), | ||
guide: false, | ||
placeholderChar: '_', | ||
pipe: undefined, | ||
keepCharPositions: false, | ||
}; | ||
if (!this.inputElement) { | ||
@@ -215,2 +216,3 @@ if (this._elementRef.nativeElement.tagName.toUpperCase() === 'INPUT') { | ||
clean: [{ type: Input }], | ||
maxNumberLength: [{ type: Input }], | ||
onBlur: [{ type: HostListener, args: ['blur',] }] | ||
@@ -221,3 +223,3 @@ }; | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingReturn,uselessCode} checked by tsc | ||
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
@@ -244,3 +246,3 @@ class NgxPhoneMaskPipe { | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingReturn,uselessCode} checked by tsc | ||
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
@@ -265,3 +267,3 @@ class NgxPhoneMaskModule { | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingReturn,uselessCode} checked by tsc | ||
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
@@ -271,3 +273,3 @@ | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingReturn,uselessCode} checked by tsc | ||
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
@@ -277,2 +279,2 @@ | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LXBob25lLW1hc2suanMubWFwIiwic291cmNlcyI6WyJuZzovL25neC1waG9uZS1tYXNrL2xpYi91dGlscy50cyIsIm5nOi8vbmd4LXBob25lLW1hc2svbGliL25neC1waG9uZS1tYXNrLmRpcmVjdGl2ZS50cyIsIm5nOi8vbmd4LXBob25lLW1hc2svbGliL25neC1waG9uZS1tYXNrLnBpcGUudHMiLCJuZzovL25neC1waG9uZS1tYXNrL2xpYi9uZ3gtcGhvbmUtbWFzay5tb2R1bGUudHMiXSwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGNvbnN0IGNsZWFuID0gKG51bWJlcikgPT4ge1xuXHRyZXR1cm4gbnVtYmVyXG5cdFx0LnRvU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QkFDekIsWUFBWSxFQUFFO29CQUNiLHFCQUFxQjtvQkFDckIsZ0JBQWdCO2lCQUNoQjtnQkFDRCxPQUFPLEVBQUU7b0JBQ1IscUJBQXFCO29CQUNyQixnQkFBZ0I7aUJBQ2hCO2FBQ0Q7Ozs7Ozs7Ozs7Ozs7OzsifQ== | ||
//# sourceMappingURL=ngx-phone-mask.js.map |
@@ -1,5 +0,5 @@ | ||
import { Directive, ElementRef, forwardRef, HostListener, Inject, Input, Optional, Renderer2, Pipe, NgModule } from '@angular/core'; | ||
import { NG_VALUE_ACCESSOR, COMPOSITION_BUFFER_MODE } from '@angular/forms'; | ||
import { ɵgetDOM } from '@angular/platform-browser'; | ||
import { createTextMaskInputElement } from 'text-mask-core/dist/textMaskCore'; | ||
import { Directive, ElementRef, forwardRef, HostListener, Inject, Input, Optional, Renderer2, Pipe, NgModule } from '@angular/core'; | ||
import { conformToMask, TextMaskModule } from 'angular2-text-mask'; | ||
@@ -9,3 +9,3 @@ | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingReturn,uselessCode} checked by tsc | ||
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
@@ -19,12 +19,15 @@ /** @type {?} */ | ||
/** @type {?} */ | ||
var mask = function () { return function (rawValue) { | ||
if (clean(rawValue).length <= 12) { | ||
return ['+', /[1-9]/, ' ', '(', /[1-9]/, /\d/, /\d/, ')', ' ', /\d/, /\d/, /\d/, '-', /\d/, /\d/, '-', /\d/, /\d/]; | ||
} | ||
return ['+', /[1-9]/, ' ', '(', /[1-9]/, /\d/, /\d/, ')', ' ', /\d/, /\d/, /\d/, '-', /\d/, /\d/, /\d/, '-', /\d/, /\d/]; | ||
}; }; | ||
var mask = function (maxLength) { | ||
if (maxLength === void 0) { maxLength = 13; } | ||
return function (rawValue) { | ||
if (clean(rawValue).length <= 12 || maxLength === 12) { | ||
return ['+', /[1-9]/, ' ', '(', /[1-9]/, /\d/, /\d/, ')', ' ', /\d/, /\d/, /\d/, '-', /\d/, /\d/, '-', /\d/, /\d/]; | ||
} | ||
return ['+', /[1-9]/, ' ', '(', /[1-9]/, /\d/, /\d/, ')', ' ', /\d/, /\d/, /\d/, '-', /\d/, /\d/, /\d/, '-', /\d/, /\d/]; | ||
}; | ||
}; | ||
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingReturn,uselessCode} checked by tsc | ||
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
@@ -52,9 +55,3 @@ var TextMaskConfig = /** @class */ (function () { | ||
this.clean = true; | ||
this.textMaskConfig = { | ||
mask: mask(), | ||
guide: false, | ||
placeholderChar: '_', | ||
pipe: undefined, | ||
keepCharPositions: false, | ||
}; | ||
this.maxNumberLength = 13; | ||
/** | ||
@@ -192,2 +189,9 @@ * Whether the user is creating a composition string (IME events). | ||
if (create === void 0) { create = false; } | ||
this.textMaskConfig = { | ||
mask: mask(this.maxNumberLength), | ||
guide: false, | ||
placeholderChar: '_', | ||
pipe: undefined, | ||
keepCharPositions: false, | ||
}; | ||
if (!this.inputElement) { | ||
@@ -253,2 +257,3 @@ if (this._elementRef.nativeElement.tagName.toUpperCase() === 'INPUT') { | ||
clean: [{ type: Input }], | ||
maxNumberLength: [{ type: Input }], | ||
onBlur: [{ type: HostListener, args: ['blur',] }] | ||
@@ -261,3 +266,3 @@ }; | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingReturn,uselessCode} checked by tsc | ||
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
@@ -291,3 +296,3 @@ var NgxPhoneMaskPipe = /** @class */ (function () { | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingReturn,uselessCode} checked by tsc | ||
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
@@ -315,3 +320,3 @@ var NgxPhoneMaskModule = /** @class */ (function () { | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingReturn,uselessCode} checked by tsc | ||
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
@@ -321,3 +326,3 @@ | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingReturn,uselessCode} checked by tsc | ||
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
@@ -327,2 +332,2 @@ | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LXBob25lLW1hc2suanMubWFwIiwic291cmNlcyI6WyJuZzovL25neC1waG9uZS1tYXNrL2xpYi91dGlscy50cyIsIm5nOi8vbmd4LXBob25lLW1hc2svbGliL25neC1waG9uZS1tYXNrLmRpcmVjdGl2ZS50cyIsIm5nOi8vbmd4LXBob25lLW1hc2svbGliL25neC1waG9uZS1tYXNrLnBpcGUudHMiLCJuZzovL25neC1waG9uZS1tYXNrL2xpYi9uZ3gtcGhvbmUtbWFzay5tb2R1bGUudHMiXSwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGNvbnN0IGNsZWFuID0gKG51bWJlcikgPT4ge1xuXHRyZXR1cm4gbnVtYmVyXG5cdFx0LnRvU3RyaW5nKClcblx0XHQucmVwbGFjZSgvW15cXGRcXF5cXCtdL2dtLCAnJyk7XG59O1xuXG5leHBvcnQgY29uc3QgbWFzayA9ICgpID0+IChyYXdWYWx1ZSkgPT4ge1xuXHRpZiAoY2xlYW4ocmF3VmFsdWUpLmxlbmd0aCA8PSAxMikge1xuXHRcdHJldHVybiBbJysnLCAvWzEtOV0vLCAnICcsICcoJywgL1sxLTldLywgL1xcZC8sIC9cXGQvLCAnKScsICcgJywgL1xcZC8sIC9cXGQvLCAvXFxkLywgJy0nLCAvX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dCQUFnQjtxQkFDaEI7b0JBQ0QsT0FBTyxFQUFFO3dCQUNSLHFCQUFxQjt3QkFDckIsZ0JBQWdCO3FCQUNoQjtpQkFDRDs7SUFFRCx5QkFBQztDQVpEOzs7Ozs7Ozs7Ozs7OzsifQ== | ||
//# sourceMappingURL=ngx-phone-mask.js.map |
@@ -16,2 +16,3 @@ import { ElementRef, OnChanges, OnInit, Renderer2, SimpleChanges } from '@angular/core'; | ||
clean: boolean; | ||
maxNumberLength: number; | ||
textMaskConfig: TextMaskConfig; | ||
@@ -18,0 +19,0 @@ private textMaskInputElement; |
export declare const clean: (number: any) => any; | ||
export declare const mask: () => (rawValue: any) => (string | RegExp)[]; | ||
export declare const mask: (maxLength?: number) => (rawValue: any) => (string | RegExp)[]; |
@@ -1,1 +0,1 @@ | ||
{"__symbolic":"module","version":4,"metadata":{"TextMaskConfig":{"__symbolic":"class","members":{}},"NgxPhoneMaskDirective":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":33,"character":1},"arguments":[{"host":{"(input)":"_handleInput($event.target.value)","(blur)":"onTouched()","(compositionstart)":"_compositionStart()","(compositionend)":"_compositionEnd($event.target.value)","$quoted$":["(input)","(blur)","(compositionstart)","(compositionend)"]},"selector":"[ngxPhoneMask]","exportAs":"ngxPhoneMask","providers":[{"provide":{"__symbolic":"reference","module":"@angular/forms","name":"NG_VALUE_ACCESSOR","line":43,"character":11},"useExisting":{"__symbolic":"reference","name":"NgxPhoneMaskDirective"},"multi":true}]}]}],"members":{"clean":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":49,"character":2}}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[null,null,[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional","line":73,"character":3}},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":73,"character":15},"arguments":[{"__symbolic":"reference","module":"@angular/forms","name":"COMPOSITION_BUFFER_MODE","line":73,"character":22}]}]],"parameters":[{"__symbolic":"reference","module":"@angular/core","name":"Renderer2","line":71,"character":21},{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":72,"character":23},{"__symbolic":"reference","name":"boolean"}]}],"ngOnInit":[{"__symbolic":"method"}],"ngOnChanges":[{"__symbolic":"method"}],"onBlur":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostListener","line":94,"character":2},"arguments":["blur"]}]}],"writeValue":[{"__symbolic":"method"}],"registerOnChange":[{"__symbolic":"method"}],"registerOnTouched":[{"__symbolic":"method"}],"setDisabledState":[{"__symbolic":"method"}],"_handleInput":[{"__symbolic":"method"}],"_setupMask":[{"__symbolic":"method"}],"_compositionStart":[{"__symbolic":"method"}],"_compositionEnd":[{"__symbolic":"method"}]}},"NgxPhoneMaskModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":5,"character":1},"arguments":[{"imports":[{"__symbolic":"reference","module":"angular2-text-mask","name":"TextMaskModule","line":6,"character":11}],"declarations":[{"__symbolic":"reference","name":"NgxPhoneMaskDirective"},{"__symbolic":"reference","name":"ɵa"}],"exports":[{"__symbolic":"reference","name":"NgxPhoneMaskDirective"},{"__symbolic":"reference","name":"ɵa"}]}]}],"members":{}},"ɵa":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Pipe","line":4,"character":1},"arguments":[{"name":"ngxPhoneMask"}]}],"members":{"transform":[{"__symbolic":"method"}]}}},"origins":{"TextMaskConfig":"./lib/ngx-phone-mask.directive","NgxPhoneMaskDirective":"./lib/ngx-phone-mask.directive","NgxPhoneMaskModule":"./lib/ngx-phone-mask.module","ɵa":"./lib/ngx-phone-mask.pipe"},"importAs":"ngx-phone-mask"} | ||
{"__symbolic":"module","version":4,"metadata":{"TextMaskConfig":{"__symbolic":"class","members":{}},"NgxPhoneMaskDirective":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":33,"character":1},"arguments":[{"host":{"(input)":"_handleInput($event.target.value)","(blur)":"onTouched()","(compositionstart)":"_compositionStart()","(compositionend)":"_compositionEnd($event.target.value)","$quoted$":["(input)","(blur)","(compositionstart)","(compositionend)"]},"selector":"[ngxPhoneMask]","exportAs":"ngxPhoneMask","providers":[{"provide":{"__symbolic":"reference","module":"@angular/forms","name":"NG_VALUE_ACCESSOR","line":43,"character":11},"useExisting":{"__symbolic":"reference","name":"NgxPhoneMaskDirective"},"multi":true}]}]}],"members":{"clean":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":49,"character":2}}]}],"maxNumberLength":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":50,"character":2}}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[null,null,[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional","line":68,"character":3}},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":68,"character":15},"arguments":[{"__symbolic":"reference","module":"@angular/forms","name":"COMPOSITION_BUFFER_MODE","line":68,"character":22}]}]],"parameters":[{"__symbolic":"reference","module":"@angular/core","name":"Renderer2","line":66,"character":21},{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":67,"character":23},{"__symbolic":"reference","name":"boolean"}]}],"ngOnInit":[{"__symbolic":"method"}],"ngOnChanges":[{"__symbolic":"method"}],"onBlur":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostListener","line":89,"character":2},"arguments":["blur"]}]}],"writeValue":[{"__symbolic":"method"}],"registerOnChange":[{"__symbolic":"method"}],"registerOnTouched":[{"__symbolic":"method"}],"setDisabledState":[{"__symbolic":"method"}],"_handleInput":[{"__symbolic":"method"}],"_setupMask":[{"__symbolic":"method"}],"_compositionStart":[{"__symbolic":"method"}],"_compositionEnd":[{"__symbolic":"method"}]}},"NgxPhoneMaskModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":5,"character":1},"arguments":[{"imports":[{"__symbolic":"reference","module":"angular2-text-mask","name":"TextMaskModule","line":6,"character":11}],"declarations":[{"__symbolic":"reference","name":"NgxPhoneMaskDirective"},{"__symbolic":"reference","name":"ɵa"}],"exports":[{"__symbolic":"reference","name":"NgxPhoneMaskDirective"},{"__symbolic":"reference","name":"ɵa"}]}]}],"members":{}},"ɵa":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Pipe","line":4,"character":1},"arguments":[{"name":"ngxPhoneMask"}]}],"members":{"transform":[{"__symbolic":"method"}]}}},"origins":{"TextMaskConfig":"./lib/ngx-phone-mask.directive","NgxPhoneMaskDirective":"./lib/ngx-phone-mask.directive","NgxPhoneMaskModule":"./lib/ngx-phone-mask.module","ɵa":"./lib/ngx-phone-mask.pipe"},"importAs":"ngx-phone-mask"} |
{ | ||
"name": "ngx-phone-mask", | ||
"version": "3.2.2", | ||
"version": "3.3.0", | ||
"peerDependencies": { | ||
@@ -5,0 +5,0 @@ "@angular/common": "^6.0.0-rc.0 || ^6.0.0", |
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
1685
145397