Comparing version 0.0.2 to 0.0.3
@@ -72,3 +72,2 @@ (function (global, factory) { | ||
} | ||
_this.ref.detectChanges(); | ||
} | ||
@@ -83,2 +82,3 @@ } | ||
} | ||
_this.ref.detectChanges(); | ||
var e_1, _a; | ||
@@ -129,3 +129,5 @@ }); | ||
ngModule: NgxEqModule, | ||
providers: [{ provide: 'config', useValue: Object.assign({}, defaultConfig, config) }] | ||
providers: [ | ||
{ provide: 'config', useValue: Object.assign({}, defaultConfig, config) } | ||
] | ||
}; | ||
@@ -132,0 +134,0 @@ }; |
@@ -1,2 +0,2 @@ | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("resize-observer-polyfill"),require("@angular/common")):"function"==typeof define&&define.amd?define(["exports","@angular/core","resize-observer-polyfill","@angular/common"],t):t(e["ngx-eq"]={},e.ng.core,e.ResizeObserver,e.ng.common)}(this,function(e,t,r,n){"use strict";r=r&&r.hasOwnProperty("default")?r["default"]:r;var o=function(){function e(e,t,n){var o=this;this.elementRef=e,this.ref=t,this.config=n,this.ngxEQ=!0,this.small=!1,this.medium=!1,this.large=!1,this.extraLarge=!1;var a=this.elementRef.nativeElement;this.changes=new r(function(e){try{for(var t=function(e){var t="function"==typeof Symbol&&e[Symbol.iterator],r=0;return t?t.call(e):{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}}}(e),r=t.next();!r.done;r=t.next()){var a=r.value.contentRect.width;o.reset(),a>=n.small&&(o.small=!0),a>=n.medium&&(o.medium=!0),a>=n.large&&(o.large=!0),a>=n.extraLarge&&(o.extraLarge=!0),o.ref.detectChanges()}}catch(l){i={error:l}}finally{try{r&&!r.done&&(s=t["return"])&&s.call(t)}finally{if(i)throw i.error}}var i,s}),this.changes.observe(a)}return e.prototype.ngOnDestroy=function(){this.changes.disconnect()},e.prototype.reset=function(){this.small=!1,this.medium=!1,this.large=!1,this.extraLarge=!1},e}();o.decorators=[{type:t.Directive,args:[{selector:"[ngxEQ]"}]}],o.ctorParameters=function(){return[{type:t.ElementRef},{type:t.ChangeDetectorRef},{type:undefined,decorators:[{type:t.Inject,args:["config"]}]}]},o.propDecorators={ngxEQ:[{type:t.HostBinding,args:["class.ngx-eq"]}],small:[{type:t.HostBinding,args:["class.ngx-eq-sm"]}],medium:[{type:t.HostBinding,args:["class.ngx-eq-md"]}],large:[{type:t.HostBinding,args:["class.ngx-eq-lg"]}],extraLarge:[{type:t.HostBinding,args:["class.ngx-eq-xl"]}]};var a={small:480,medium:720,large:960,extraLarge:1440},i=function(){function e(){}return e.forRoot=function(t){return void 0===t&&(t={}),{ngModule:e,providers:[{provide:"config",useValue:Object.assign({},a,t)}]}},e}();i.decorators=[{type:t.NgModule,args:[{imports:[n.CommonModule],declarations:[o],exports:[o]}]}],i.ctorParameters=function(){return[]},e.defaultConfig=a,e.NgxEqModule=i,e.ɵa=o,Object.defineProperty(e,"__esModule",{value:!0})}); | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("resize-observer-polyfill"),require("@angular/common")):"function"==typeof define&&define.amd?define(["exports","@angular/core","resize-observer-polyfill","@angular/common"],t):t(e["ngx-eq"]={},e.ng.core,e.ResizeObserver,e.ng.common)}(this,function(e,t,r,n){"use strict";r=r&&r.hasOwnProperty("default")?r["default"]:r;var o=function(){function e(e,t,n){var o=this;this.elementRef=e,this.ref=t,this.config=n,this.ngxEQ=!0,this.small=!1,this.medium=!1,this.large=!1,this.extraLarge=!1;var a=this.elementRef.nativeElement;this.changes=new r(function(e){try{for(var t=function(e){var t="function"==typeof Symbol&&e[Symbol.iterator],r=0;return t?t.call(e):{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}}}(e),r=t.next();!r.done;r=t.next()){var a=r.value.contentRect.width;o.reset(),a>=n.small&&(o.small=!0),a>=n.medium&&(o.medium=!0),a>=n.large&&(o.large=!0),a>=n.extraLarge&&(o.extraLarge=!0)}}catch(l){i={error:l}}finally{try{r&&!r.done&&(s=t["return"])&&s.call(t)}finally{if(i)throw i.error}}var i,s;o.ref.detectChanges()}),this.changes.observe(a)}return e.prototype.ngOnDestroy=function(){this.changes.disconnect()},e.prototype.reset=function(){this.small=!1,this.medium=!1,this.large=!1,this.extraLarge=!1},e}();o.decorators=[{type:t.Directive,args:[{selector:"[ngxEQ]"}]}],o.ctorParameters=function(){return[{type:t.ElementRef},{type:t.ChangeDetectorRef},{type:undefined,decorators:[{type:t.Inject,args:["config"]}]}]},o.propDecorators={ngxEQ:[{type:t.HostBinding,args:["class.ngx-eq"]}],small:[{type:t.HostBinding,args:["class.ngx-eq-sm"]}],medium:[{type:t.HostBinding,args:["class.ngx-eq-md"]}],large:[{type:t.HostBinding,args:["class.ngx-eq-lg"]}],extraLarge:[{type:t.HostBinding,args:["class.ngx-eq-xl"]}]};var a={small:480,medium:720,large:960,extraLarge:1440},i=function(){function e(){}return e.forRoot=function(t){return void 0===t&&(t={}),{ngModule:e,providers:[{provide:"config",useValue:Object.assign({},a,t)}]}},e}();i.decorators=[{type:t.NgModule,args:[{imports:[n.CommonModule],declarations:[o],exports:[o]}]}],i.ctorParameters=function(){return[]},e.defaultConfig=a,e.NgxEqModule=i,e.ɵa=o,Object.defineProperty(e,"__esModule",{value:!0})}); | ||
//# sourceMappingURL=ngx-eq.umd.min.js.map |
@@ -41,4 +41,4 @@ import { Directive, ElementRef, HostBinding, ChangeDetectorRef, Inject, NgModule } from '@angular/core'; | ||
} | ||
this.ref.detectChanges(); | ||
} | ||
this.ref.detectChanges(); | ||
}); | ||
@@ -104,3 +104,5 @@ this.changes.observe(element); | ||
ngModule: NgxEqModule, | ||
providers: [{ provide: 'config', useValue: Object.assign({}, defaultConfig, config) }] | ||
providers: [ | ||
{ provide: 'config', useValue: Object.assign({}, defaultConfig, config) } | ||
] | ||
}; | ||
@@ -107,0 +109,0 @@ } |
@@ -36,3 +36,2 @@ import { __values } from 'tslib'; | ||
} | ||
_this.ref.detectChanges(); | ||
} | ||
@@ -47,2 +46,3 @@ } | ||
} | ||
_this.ref.detectChanges(); | ||
var e_1, _a; | ||
@@ -93,3 +93,5 @@ }); | ||
ngModule: NgxEqModule, | ||
providers: [{ provide: 'config', useValue: Object.assign({}, defaultConfig, config) }] | ||
providers: [ | ||
{ provide: 'config', useValue: Object.assign({}, defaultConfig, config) } | ||
] | ||
}; | ||
@@ -96,0 +98,0 @@ }; |
{ | ||
"name": "ngx-eq", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"repository": "https://github.com/coryrylan/ngx-eq", | ||
@@ -5,0 +5,0 @@ "author": "Cory Rylan", |
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
58986
429