angular-imask
Advanced tools
Comparing version 6.0.0-alpha.0 to 6.0.0
@@ -1,1 +0,1 @@ | ||
{"__symbolic":"module","version":4,"metadata":{"MASKEDINPUT_VALUE_ACCESSOR":{"provide":{"__symbolic":"reference","module":"@angular/forms","name":"NG_VALUE_ACCESSOR","line":17,"character":11},"useExisting":{"__symbolic":"reference","name":"IMaskDirective"},"multi":true},"IMaskDirective":{"__symbolic":"class","arity":1,"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":23,"character":1},"arguments":[{"selector":"[imask]","host":{"(input)":"_handleInput($event.target.value)","(blur)":"onTouched()","(compositionstart)":"_compositionStart()","(compositionend)":"_compositionEnd($event.target.value)","$quoted$":["(input)","(blur)","(compositionstart)","(compositionend)"]},"providers":[{"__symbolic":"reference","name":"MASKEDINPUT_VALUE_ACCESSOR"}]}]}],"members":{"imask":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":42,"character":3}}]}],"unmask":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":43,"character":3}}]}],"imaskElement":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":44,"character":3}}]}],"accept":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":45,"character":3}}]}],"complete":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":46,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[null,null,[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional","line":50,"character":15}},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":50,"character":27},"arguments":[{"__symbolic":"reference","module":"@angular/forms","name":"COMPOSITION_BUFFER_MODE","line":50,"character":34}]}]],"parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":48,"character":35},{"__symbolic":"reference","module":"@angular/core","name":"Renderer2","line":49,"character":33},{"__symbolic":"reference","name":"boolean"}]}],"ngAfterViewInit":[{"__symbolic":"method"}],"ngOnChanges":[{"__symbolic":"method"}],"destroyMask":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}],"beginWrite":[{"__symbolic":"method"}],"endWrite":[{"__symbolic":"method"}],"writeValue":[{"__symbolic":"method"}],"_onAccept":[{"__symbolic":"method"}],"_onComplete":[{"__symbolic":"method"}],"initMask":[{"__symbolic":"method"}],"setDisabledState":[{"__symbolic":"method"}],"registerOnChange":[{"__symbolic":"method"}],"registerOnTouched":[{"__symbolic":"method"}],"_handleInput":[{"__symbolic":"method"}],"_compositionStart":[{"__symbolic":"method"}],"_compositionEnd":[{"__symbolic":"method"}]}},"IMaskPipe":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Pipe","line":13,"character":1},"arguments":[{"name":"imask"}]}],"members":{"transform":[{"__symbolic":"method"}]}},"PIPE_TYPE":{"__symbolic":"select","member":"PIPE_TYPE"},"IMaskModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":7,"character":1},"arguments":[{"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":8,"character":12}],"declarations":[{"__symbolic":"reference","name":"IMaskDirective"},{"__symbolic":"reference","name":"IMaskPipe"}],"exports":[{"__symbolic":"reference","name":"IMaskDirective"},{"__symbolic":"reference","name":"IMaskPipe"}]}]}],"members":{}}},"origins":{"MASKEDINPUT_VALUE_ACCESSOR":"./imask.directive","IMaskDirective":"./imask.directive","IMaskPipe":"./imask.pipe","PIPE_TYPE":"./imask.pipe","IMaskModule":"./imask.module"},"importAs":"angular-imask"} | ||
{"__symbolic":"module","version":4,"exports":[{"export":[{"name":"PIPE_TYPE","as":"PIPE_TYPE"}],"from":"imask"}],"metadata":{"MASKEDINPUT_VALUE_ACCESSOR":{"provide":{"__symbolic":"reference","module":"@angular/forms","name":"NG_VALUE_ACCESSOR","line":17,"character":11},"useExisting":{"__symbolic":"reference","name":"IMaskDirective"},"multi":true},"IMaskDirective":{"__symbolic":"class","arity":1,"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":23,"character":1},"arguments":[{"selector":"[imask]","host":{"(input)":"_handleInput($event.target.value)","(blur)":"onTouched()","(compositionstart)":"_compositionStart()","(compositionend)":"_compositionEnd($event.target.value)","$quoted$":["(input)","(blur)","(compositionstart)","(compositionend)"]},"providers":[{"__symbolic":"reference","name":"MASKEDINPUT_VALUE_ACCESSOR"}]}]}],"members":{"imask":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":42,"character":3}}]}],"unmask":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":43,"character":3}}]}],"imaskElement":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":44,"character":3}}]}],"accept":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":45,"character":3}}]}],"complete":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":46,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[null,null,[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional","line":50,"character":15}},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":50,"character":27},"arguments":[{"__symbolic":"reference","module":"@angular/forms","name":"COMPOSITION_BUFFER_MODE","line":50,"character":34}]}]],"parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":48,"character":35},{"__symbolic":"reference","module":"@angular/core","name":"Renderer2","line":49,"character":33},{"__symbolic":"reference","name":"boolean"}]}],"ngAfterViewInit":[{"__symbolic":"method"}],"ngOnChanges":[{"__symbolic":"method"}],"destroyMask":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}],"beginWrite":[{"__symbolic":"method"}],"endWrite":[{"__symbolic":"method"}],"writeValue":[{"__symbolic":"method"}],"_onAccept":[{"__symbolic":"method"}],"_onComplete":[{"__symbolic":"method"}],"initMask":[{"__symbolic":"method"}],"setDisabledState":[{"__symbolic":"method"}],"registerOnChange":[{"__symbolic":"method"}],"registerOnTouched":[{"__symbolic":"method"}],"_handleInput":[{"__symbolic":"method"}],"_compositionStart":[{"__symbolic":"method"}],"_compositionEnd":[{"__symbolic":"method"}]}},"IMaskPipe":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Pipe","line":14,"character":1},"arguments":[{"name":"imask"}]}],"members":{"transform":[{"__symbolic":"method"}]}},"IMaskModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":7,"character":1},"arguments":[{"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":8,"character":12}],"declarations":[{"__symbolic":"reference","name":"IMaskDirective"},{"__symbolic":"reference","name":"IMaskPipe"}],"exports":[{"__symbolic":"reference","name":"IMaskDirective"},{"__symbolic":"reference","name":"IMaskPipe"}]}]}],"members":{}}},"origins":{"MASKEDINPUT_VALUE_ACCESSOR":"./imask.directive","IMaskDirective":"./imask.directive","IMaskPipe":"./imask.pipe","IMaskModule":"./imask.module"},"importAs":"angular-imask"} |
@@ -7,3 +7,3 @@ (function (global, factory) { | ||
IMask = IMask && IMask.hasOwnProperty('default') ? IMask['default'] : IMask; | ||
var IMask__default = 'default' in IMask ? IMask['default'] : IMask; | ||
@@ -247,3 +247,3 @@ /** | ||
function () { | ||
this.maskRef = IMask(this.element, (/** @type {?} */ (this.imask))) | ||
this.maskRef = IMask__default(this.element, (/** @type {?} */ (this.imask))) | ||
.on('accept', this._onAccept.bind(this)) | ||
@@ -441,3 +441,3 @@ .on('complete', this._onComplete.bind(this)); | ||
} | ||
return IMask.pipe.apply(IMask, __spread(args)); | ||
return IMask__default.pipe.apply(IMask__default, __spread(args)); | ||
}; | ||
@@ -449,4 +449,2 @@ IMaskPipe.decorators = [ | ||
}()); | ||
/** @type {?} */ | ||
var PIPE_TYPE = IMask.PIPE_TYPE; | ||
@@ -470,2 +468,8 @@ /** | ||
Object.defineProperty(exports, 'PIPE_TYPE', { | ||
enumerable: true, | ||
get: function () { | ||
return IMask.PIPE_TYPE; | ||
} | ||
}); | ||
exports.IMaskDirective = IMaskDirective; | ||
@@ -475,3 +479,2 @@ exports.IMaskModule = IMaskModule; | ||
exports.MASKEDINPUT_VALUE_ACCESSOR = MASKEDINPUT_VALUE_ACCESSOR; | ||
exports.PIPE_TYPE = PIPE_TYPE; | ||
@@ -478,0 +481,0 @@ Object.defineProperty(exports, '__esModule', { value: true }); |
@@ -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("imask"),require("@angular/common")):"function"==typeof define&&define.amd?define("angular-imask",["exports","@angular/core","@angular/forms","@angular/platform-browser","imask","@angular/common"],e):e((t=t||self)["angular-imask"]={},t.ng.core,t.ng.forms,t.ng.platformBrowser,t.IMask,t.ng.common)}(this,(function(t,e,i,n,o,s){"use strict";o=o&&o.hasOwnProperty("default")?o.default:o;var r={provide:i.NG_VALUE_ACCESSOR,useExisting:e.forwardRef((function(){return p})),multi:!0},a=function(t){return t.nativeElement},p=function(){function t(t,i,o){var s;this._elementRef=t,this._renderer=i,this._compositionMode=o,this.onTouched=function(){},this.onChange=function(){},this.imaskElement=a,this.accept=new e.EventEmitter,this.complete=new e.EventEmitter,this._viewInitialized=!1,this._composing=!1,this._writing=!1,null==this._compositionMode&&(this._compositionMode=(s=n.ɵgetDOM()?n.ɵgetDOM().getUserAgent():"",!/android (\d+)/.test(s.toLowerCase())))}return Object.defineProperty(t.prototype,"element",{get:function(){return this.imaskElement(this._elementRef,this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"maskValue",{get:function(){return this.maskRef?"typed"===this.unmask?this.maskRef.typedValue:this.unmask?this.maskRef.unmaskedValue:this.maskRef.value:this.element.value},set:function(t){this.maskRef?"typed"===this.unmask?this.maskRef.typedValue=t:this.unmask?this.maskRef.unmaskedValue=t:this.maskRef.value=t:this._renderer.setProperty(this.element,"value",t)},enumerable:!0,configurable:!0}),t.prototype.ngAfterViewInit=function(){this.imask&&this.initMask(),this._viewInitialized=!0},t.prototype.ngOnChanges=function(t){t.elementRef&&!this.imaskElement&&(this.imaskElement=a),t.imask&&this._viewInitialized&&(this.imask?this.maskRef?this.maskRef.updateOptions(this.imask):(this.initMask(),this.onChange(this.maskValue)):this.destroyMask())},t.prototype.destroyMask=function(){this.maskRef&&(this.maskRef.destroy(),delete this.maskRef)},t.prototype.ngOnDestroy=function(){this.destroyMask(),this.accept.complete(),this.complete.complete()},t.prototype.beginWrite=function(t){this._writing=!0,this._writingValue=t},t.prototype.endWrite=function(){return this._writing=!1,this._writingValue},t.prototype.writeValue=function(t){t=null==t?"":t,this.maskRef?(this.beginWrite(t),(this.maskValue!==t||"string"!=typeof t&&""===this.maskRef.value&&!this.maskRef.el.isActive)&&(this.maskValue=t)):this._renderer.setProperty(this.element,"value",t)},t.prototype._onAccept=function(){var t=this.maskValue;this._writing&&t===this.endWrite()||(this.onChange(t),this.accept.emit(t))},t.prototype._onComplete=function(){this.complete.emit(this.maskValue)},t.prototype.initMask=function(){this.maskRef=o(this.element,this.imask).on("accept",this._onAccept.bind(this)).on("complete",this._onComplete.bind(this))},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this.element,"disabled",t)},t.prototype.registerOnChange=function(t){this.onChange=t},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype._handleInput=function(t){this.maskRef||(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)},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:[{selector:"[imask]",host:{"(input)":"_handleInput($event.target.value)","(blur)":"onTouched()","(compositionstart)":"_compositionStart()","(compositionend)":"_compositionEnd($event.target.value)"},providers:[r]}]}],t.ctorParameters=function(){return[{type:e.ElementRef},{type:e.Renderer2},{type:Boolean,decorators:[{type:e.Optional},{type:e.Inject,args:[i.COMPOSITION_BUFFER_MODE]}]}]},t.propDecorators={imask:[{type:e.Input}],unmask:[{type:e.Input}],imaskElement:[{type:e.Input}],accept:[{type:e.Output}],complete:[{type:e.Output}]},t}();var u=this&&this.__read||function(t,e){var i="function"==typeof Symbol&&t[Symbol.iterator];if(!i)return t;var n,o,s=i.call(t),r=[];try{for(;(void 0===e||e-- >0)&&!(n=s.next()).done;)r.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(i=s.return)&&i.call(s)}finally{if(o)throw o.error}}return r},m=this&&this.__spread||function(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(u(arguments[e]));return t},h=function(){function t(){}return t.prototype.transform=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return o.pipe.apply(o,m(t))},t.decorators=[{type:e.Pipe,args:[{name:"imask"}]}],t}(),c=o.PIPE_TYPE,l=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{imports:[s.CommonModule],declarations:[p,h],exports:[p,h]}]}],t}();t.IMaskDirective=p,t.IMaskModule=l,t.IMaskPipe=h,t.MASKEDINPUT_VALUE_ACCESSOR=r,t.PIPE_TYPE=c,Object.defineProperty(t,"__esModule",{value:!0})})); | ||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/core"),require("@angular/forms"),require("@angular/platform-browser"),require("imask"),require("@angular/common")):"function"==typeof define&&define.amd?define("angular-imask",["exports","@angular/core","@angular/forms","@angular/platform-browser","imask","@angular/common"],e):e((t=t||self)["angular-imask"]={},t.ng.core,t.ng.forms,t.ng.platformBrowser,t.IMask,t.ng.common)}(this,(function(t,e,i,n,o,s){"use strict";var r="default"in o?o.default:o;var a={provide:i.NG_VALUE_ACCESSOR,useExisting:e.forwardRef((function(){return p})),multi:!0},u=function(t){return t.nativeElement},p=function(){function t(t,i,o){var s;this._elementRef=t,this._renderer=i,this._compositionMode=o,this.onTouched=function(){},this.onChange=function(){},this.imaskElement=u,this.accept=new e.EventEmitter,this.complete=new e.EventEmitter,this._viewInitialized=!1,this._composing=!1,this._writing=!1,null==this._compositionMode&&(this._compositionMode=(s=n.ɵgetDOM()?n.ɵgetDOM().getUserAgent():"",!/android (\d+)/.test(s.toLowerCase())))}return Object.defineProperty(t.prototype,"element",{get:function(){return this.imaskElement(this._elementRef,this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"maskValue",{get:function(){return this.maskRef?"typed"===this.unmask?this.maskRef.typedValue:this.unmask?this.maskRef.unmaskedValue:this.maskRef.value:this.element.value},set:function(t){this.maskRef?"typed"===this.unmask?this.maskRef.typedValue=t:this.unmask?this.maskRef.unmaskedValue=t:this.maskRef.value=t:this._renderer.setProperty(this.element,"value",t)},enumerable:!0,configurable:!0}),t.prototype.ngAfterViewInit=function(){this.imask&&this.initMask(),this._viewInitialized=!0},t.prototype.ngOnChanges=function(t){t.elementRef&&!this.imaskElement&&(this.imaskElement=u),t.imask&&this._viewInitialized&&(this.imask?this.maskRef?this.maskRef.updateOptions(this.imask):(this.initMask(),this.onChange(this.maskValue)):this.destroyMask())},t.prototype.destroyMask=function(){this.maskRef&&(this.maskRef.destroy(),delete this.maskRef)},t.prototype.ngOnDestroy=function(){this.destroyMask(),this.accept.complete(),this.complete.complete()},t.prototype.beginWrite=function(t){this._writing=!0,this._writingValue=t},t.prototype.endWrite=function(){return this._writing=!1,this._writingValue},t.prototype.writeValue=function(t){t=null==t?"":t,this.maskRef?(this.beginWrite(t),(this.maskValue!==t||"string"!=typeof t&&""===this.maskRef.value&&!this.maskRef.el.isActive)&&(this.maskValue=t)):this._renderer.setProperty(this.element,"value",t)},t.prototype._onAccept=function(){var t=this.maskValue;this._writing&&t===this.endWrite()||(this.onChange(t),this.accept.emit(t))},t.prototype._onComplete=function(){this.complete.emit(this.maskValue)},t.prototype.initMask=function(){this.maskRef=r(this.element,this.imask).on("accept",this._onAccept.bind(this)).on("complete",this._onComplete.bind(this))},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this.element,"disabled",t)},t.prototype.registerOnChange=function(t){this.onChange=t},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype._handleInput=function(t){this.maskRef||(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)},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:[{selector:"[imask]",host:{"(input)":"_handleInput($event.target.value)","(blur)":"onTouched()","(compositionstart)":"_compositionStart()","(compositionend)":"_compositionEnd($event.target.value)"},providers:[a]}]}],t.ctorParameters=function(){return[{type:e.ElementRef},{type:e.Renderer2},{type:Boolean,decorators:[{type:e.Optional},{type:e.Inject,args:[i.COMPOSITION_BUFFER_MODE]}]}]},t.propDecorators={imask:[{type:e.Input}],unmask:[{type:e.Input}],imaskElement:[{type:e.Input}],accept:[{type:e.Output}],complete:[{type:e.Output}]},t}();var m=this&&this.__read||function(t,e){var i="function"==typeof Symbol&&t[Symbol.iterator];if(!i)return t;var n,o,s=i.call(t),r=[];try{for(;(void 0===e||e-- >0)&&!(n=s.next()).done;)r.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(i=s.return)&&i.call(s)}finally{if(o)throw o.error}}return r},h=this&&this.__spread||function(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(m(arguments[e]));return t},c=function(){function t(){}return t.prototype.transform=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return r.pipe.apply(r,h(t))},t.decorators=[{type:e.Pipe,args:[{name:"imask"}]}],t}(),l=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{imports:[s.CommonModule],declarations:[p,c],exports:[p,c]}]}],t}();Object.defineProperty(t,"PIPE_TYPE",{enumerable:!0,get:function(){return o.PIPE_TYPE}}),t.IMaskDirective=p,t.IMaskModule=l,t.IMaskPipe=c,t.MASKEDINPUT_VALUE_ACCESSOR=a,Object.defineProperty(t,"__esModule",{value:!0})})); | ||
//# sourceMappingURL=angular-imask.umd.min.js.map |
@@ -8,3 +8,3 @@ /** | ||
*/ | ||
export { MASKEDINPUT_VALUE_ACCESSOR, IMaskDirective, IMaskPipe, PIPE_TYPE, IMaskModule } from './index'; | ||
export { MASKEDINPUT_VALUE_ACCESSOR, IMaskDirective, PIPE_TYPE, IMaskPipe, IMaskModule } from './index'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYW5ndWxhci1pbWFzay5qcyIsInNvdXJjZVJvb3QiOiJuZzovL2FuZ3VsYXItaW1hc2svIiwic291cmNlcyI6WyJhbmd1bGFyLWltYXNrLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7QUFJQSw4RkFBYyxTQUFTLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEdlbmVyYXRlZCBidW5kbGUgaW5kZXguIERvIG5vdCBlZGl0LlxuICovXG5cbmV4cG9ydCAqIGZyb20gJy4vaW5kZXgnO1xuIl19 |
@@ -7,2 +7,3 @@ /** | ||
import IMask from 'imask'; | ||
export { PIPE_TYPE } from 'imask'; | ||
/* | ||
@@ -28,4 +29,2 @@ * Transforms value through mask | ||
]; | ||
/** @type {?} */ | ||
export const PIPE_TYPE = IMask.PIPE_TYPE; | ||
//# sourceMappingURL=data:application/json;base64,e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biAqIFRyYW5zZm9ybXMgdmFsdWUgdGhyb3VnaCBtYXNrXHJcbiAqIFRha2VzIG1hc2sgYW5kIG9wdGlvbmFsbHkgYGZyb21gIGFuZCBgdG9gIHBpcGUgdHlwZXMuXHJcbiAqIFVzYWdlOlxyXG4gKiAgIHZhbHVlIHwgaW1hc2s6TUFTS19PUl9NQVNLRUQ6b3B0X2Zyb206b3B0X3RvXHJcbiAqIEV4YW1wbGU6XHJcbiAqICAge3sgMiB8IGltYXNrOm1hc2sgfX1cclxuKi9cclxuQFBpcGUoe25hbWU6ICdpbWFzayd9KVxyXG5leHBvcnQgY2xhc3MgSU1hc2tQaXBlIGltcGxlbWVudHMgUGlwZVRyYW5zZm9ybSB7XHJcbiAgdHJhbnNmb3JtICguLi5hcmdzOiBQYXJhbWV0ZXJzPHR5cGVvZiBJTWFzay5waXBlPik6IFJldHVyblR5cGU8dHlwZW9mIElNYXNrLnBpcGU+IHtcclxuICAgIHJldHVybiBJTWFzay5waXBlKC4uLmFyZ3MpO1xyXG4gIH1cclxufVxyXG4iXX0= |
@@ -6,4 +6,4 @@ /** | ||
export { MASKEDINPUT_VALUE_ACCESSOR, IMaskDirective } from './imask.directive'; | ||
export { IMaskPipe, PIPE_TYPE } from './imask.pipe'; | ||
export { PIPE_TYPE, IMaskPipe } from './imask.pipe'; | ||
export { IMaskModule } from './imask.module'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290Ijoibmc6Ly9hbmd1bGFyLWltYXNrLyIsInNvdXJjZXMiOlsiaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQUFBLDJEQUFjLG1CQUFtQixDQUFDO0FBQ2xDLHFDQUFjLGNBQWMsQ0FBQztBQUM3Qiw0QkFBYyxnQkFBZ0IsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vaW1hc2suZGlyZWN0aXZlJztcclxuZXhwb3J0ICogZnJvbSAnLi9pbWFzay5waXBlJztcclxuZXhwb3J0ICogZnJvbSAnLi9pbWFzay5tb2R1bGUnO1xyXG4iXX0= |
@@ -8,3 +8,3 @@ /** | ||
*/ | ||
export { MASKEDINPUT_VALUE_ACCESSOR, IMaskDirective, IMaskPipe, PIPE_TYPE, IMaskModule } from './index'; | ||
export { MASKEDINPUT_VALUE_ACCESSOR, IMaskDirective, PIPE_TYPE, IMaskPipe, IMaskModule } from './index'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYW5ndWxhci1pbWFzay5qcyIsInNvdXJjZVJvb3QiOiJuZzovL2FuZ3VsYXItaW1hc2svIiwic291cmNlcyI6WyJhbmd1bGFyLWltYXNrLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7QUFJQSw4RkFBYyxTQUFTLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEdlbmVyYXRlZCBidW5kbGUgaW5kZXguIERvIG5vdCBlZGl0LlxuICovXG5cbmV4cG9ydCAqIGZyb20gJy4vaW5kZXgnO1xuIl19 |
@@ -27,2 +27,3 @@ var __read = (this && this.__read) || function (o, n) { | ||
import IMask from 'imask'; | ||
export { PIPE_TYPE } from 'imask'; | ||
/* | ||
@@ -60,4 +61,2 @@ * Transforms value through mask | ||
export { IMaskPipe }; | ||
/** @type {?} */ | ||
export var PIPE_TYPE = IMask.PIPE_TYPE; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW1hc2sucGlwZS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL2FuZ3VsYXItaW1hc2svIiwic291cmNlcyI6WyJpbWFzay5waXBlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztBQUFBLE9BQU8sRUFBRSxJQ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tICdpbWFzayc7XHJcbmV4cG9ydCB7IFBJUEVfVFlQRSB9IGZyb20gJ2ltYXNrJztcclxuXHJcblxyXG4vKlxyXG4gKiBUcmFuc2Zvcm1zIHZhbHVlIHRocm91Z2ggbWFza1xyXG4gKiBUYWtlcyBtYXNrIGFuZCBvcHRpb25hbGx5IGBmcm9tYCBhbmQgYHRvYCBwaXBlIHR5cGVzLlxyXG4gKiBVc2FnZTpcclxuICogICB2YWx1ZSB8IGltYXNrOk1BU0tfT1JfTUFTS0VEOm9wdF9mcm9tOm9wdF90b1xyXG4gKiBFeGFtcGxlOlxyXG4gKiAgIHt7IDIgfCBpbWFzazptYXNrIH19XHJcbiovXHJcbkBQaXBlKHtuYW1lOiAnaW1hc2snfSlcclxuZXhwb3J0IGNsYXNzIElNYXNrUGlwZSBpbXBsZW1lbnRzIFBpcGVUcmFuc2Zvcm0ge1xyXG4gIHRyYW5zZm9ybSAoLi4uYXJnczogUGFyYW1ldGVyczx0eXBlb2YgSU1hc2sucGlwZT4pOiBSZXR1cm5UeXBlPHR5cGVvZiBJTWFzay5waXBlPiB7XHJcbiAgICByZXR1cm4gSU1hc2sucGlwZSguLi5hcmdzKTtcclxuICB9XHJcbn1cclxuIl19 |
@@ -6,4 +6,4 @@ /** | ||
export { MASKEDINPUT_VALUE_ACCESSOR, IMaskDirective } from './imask.directive'; | ||
export { IMaskPipe, PIPE_TYPE } from './imask.pipe'; | ||
export { PIPE_TYPE, IMaskPipe } from './imask.pipe'; | ||
export { IMaskModule } from './imask.module'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290Ijoibmc6Ly9hbmd1bGFyLWltYXNrLyIsInNvdXJjZXMiOlsiaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQUFBLDJEQUFjLG1CQUFtQixDQUFDO0FBQ2xDLHFDQUFjLGNBQWMsQ0FBQztBQUM3Qiw0QkFBYyxnQkFBZ0IsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vaW1hc2suZGlyZWN0aXZlJztcclxuZXhwb3J0ICogZnJvbSAnLi9pbWFzay5waXBlJztcclxuZXhwb3J0ICogZnJvbSAnLi9pbWFzay5tb2R1bGUnO1xyXG4iXX0= |
@@ -5,2 +5,3 @@ import { forwardRef, EventEmitter, Directive, ElementRef, Renderer2, Optional, Inject, Input, Output, Pipe, NgModule } from '@angular/core'; | ||
import IMask from 'imask'; | ||
export { PIPE_TYPE } from 'imask'; | ||
import { CommonModule } from '@angular/common'; | ||
@@ -357,4 +358,2 @@ | ||
]; | ||
/** @type {?} */ | ||
const PIPE_TYPE = IMask.PIPE_TYPE; | ||
@@ -385,3 +384,3 @@ /** | ||
export { IMaskDirective, IMaskModule, IMaskPipe, MASKEDINPUT_VALUE_ACCESSOR, PIPE_TYPE }; | ||
export { IMaskDirective, IMaskModule, IMaskPipe, MASKEDINPUT_VALUE_ACCESSOR }; | ||
//# sourceMappingURL=angular-imask.js.map |
@@ -5,2 +5,3 @@ import { forwardRef, EventEmitter, Directive, ElementRef, Renderer2, Optional, Inject, Input, Output, Pipe, NgModule } from '@angular/core'; | ||
import IMask from 'imask'; | ||
export { PIPE_TYPE } from 'imask'; | ||
import { CommonModule } from '@angular/common'; | ||
@@ -445,4 +446,2 @@ | ||
}()); | ||
/** @type {?} */ | ||
var PIPE_TYPE = IMask.PIPE_TYPE; | ||
@@ -476,3 +475,3 @@ /** | ||
export { IMaskDirective, IMaskModule, IMaskPipe, MASKEDINPUT_VALUE_ACCESSOR, PIPE_TYPE }; | ||
export { IMaskDirective, IMaskModule, IMaskPipe, MASKEDINPUT_VALUE_ACCESSOR }; | ||
//# sourceMappingURL=angular-imask.js.map |
import { PipeTransform } from '@angular/core'; | ||
import IMask from 'imask'; | ||
export { PIPE_TYPE } from 'imask'; | ||
export declare class IMaskPipe implements PipeTransform { | ||
transform(...args: Parameters<typeof IMask.pipe>): ReturnType<typeof IMask.pipe>; | ||
} | ||
export declare const PIPE_TYPE: { | ||
MASKED: "value"; | ||
UNMASKED: "unmaskedValue"; | ||
TYPED: "typedValue"; | ||
}; |
@@ -5,3 +5,3 @@ { | ||
"license": "MIT", | ||
"version": "5.2.1", | ||
"version": "6.0.0-alpha.0", | ||
"description": "Angular IMask Plugin", | ||
@@ -8,0 +8,0 @@ "main": "bundles/angular-imask.umd.js", |
@@ -29,2 +29,3 @@ # Angular IMask Plugin | ||
```html | ||
<!-- directive --> | ||
<input | ||
@@ -41,2 +42,5 @@ [imask]="{mask: '+{7}(000)000-00-00'}" <!--see more mask props in a guide--> | ||
/> | ||
<!-- pipe --> | ||
<p>{{ value | imask:mask }}</p> | ||
``` | ||
@@ -43,0 +47,0 @@ More options see in a [guide](https://imask.js.org/guide.html). |
@@ -5,3 +5,3 @@ { | ||
"license": "MIT", | ||
"version": "6.0.0-alpha.0", | ||
"version": "6.0.0", | ||
"description": "Angular IMask Plugin", | ||
@@ -42,3 +42,3 @@ "main": "dist/bundles/angular-imask.umd.js", | ||
"dependencies": { | ||
"imask": "^6.0.0-alpha.0" | ||
"imask": "^6.0.0" | ||
}, | ||
@@ -51,3 +51,3 @@ "es2015": "dist/fesm2015/angular-imask.js", | ||
"metadata": "dist/angular-imask.metadata.json", | ||
"gitHead": "2e2a8a513ea51b1a8b1efb33459f8c089febcb49" | ||
"gitHead": "317292d2e357ea8eb946d36354df0ac8660e057f" | ||
} |
@@ -29,2 +29,3 @@ # Angular IMask Plugin | ||
```html | ||
<!-- directive --> | ||
<input | ||
@@ -41,2 +42,5 @@ [imask]="{mask: '+{7}(000)000-00-00'}" <!--see more mask props in a guide--> | ||
/> | ||
<!-- pipe --> | ||
<p>{{ value | imask:mask }}</p> | ||
``` | ||
@@ -43,0 +47,0 @@ More options see in a [guide](https://imask.js.org/guide.html). |
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
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
2
49
173142
2265
Updatedimask@^6.0.0