ngx-skeleton-loader
Advanced tools
Comparing version 2.4.3 to 2.4.4
@@ -13,4 +13,3 @@ (function (global, factory) { | ||
var NgxSkeletonLoaderComponent = /** @class */ (function () { | ||
function NgxSkeletonLoaderComponent(platformId) { | ||
this.platformId = platformId; | ||
function NgxSkeletonLoaderComponent() { | ||
this.count = 1; | ||
@@ -29,6 +28,4 @@ this.appearance = ''; | ||
function () { | ||
if (this.isBrowser()) { | ||
marks.start('NgxSkeletonLoader:Rendered'); | ||
marks.start('NgxSkeletonLoader:Loaded'); | ||
} | ||
marks.start('NgxSkeletonLoader:Rendered'); | ||
marks.start('NgxSkeletonLoader:Loaded'); | ||
this.items.length = this.count; | ||
@@ -52,5 +49,3 @@ /** @type {?} */ | ||
function () { | ||
if (this.isBrowser()) { | ||
marks.end('NgxSkeletonLoader:Rendered'); | ||
} | ||
marks.end('NgxSkeletonLoader:Rendered'); | ||
}; | ||
@@ -64,15 +59,4 @@ /** | ||
function () { | ||
if (this.isBrowser()) { | ||
marks.end('NgxSkeletonLoader:Loaded'); | ||
} | ||
marks.end('NgxSkeletonLoader:Loaded'); | ||
}; | ||
/** | ||
* @return {?} | ||
*/ | ||
NgxSkeletonLoaderComponent.prototype.isBrowser = /** | ||
* @return {?} | ||
*/ | ||
function () { | ||
return common.isPlatformBrowser(this.platformId); | ||
}; | ||
NgxSkeletonLoaderComponent.decorators = [ | ||
@@ -85,6 +69,2 @@ { type: core.Component, args: [{ | ||
]; | ||
/** @nocollapse */ | ||
NgxSkeletonLoaderComponent.ctorParameters = function () { return [ | ||
{ type: undefined, decorators: [{ type: core.Inject, args: [core.PLATFORM_ID,] }] } | ||
]; }; | ||
NgxSkeletonLoaderComponent.propDecorators = { | ||
@@ -109,7 +89,2 @@ count: [{ type: core.Input }], | ||
NgxSkeletonLoaderComponent.prototype.items; | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
NgxSkeletonLoaderComponent.prototype.platformId; | ||
} | ||
@@ -116,0 +91,0 @@ |
@@ -1,2 +0,2 @@ | ||
!function(e,r){"object"==typeof exports&&"undefined"!=typeof module?r(exports,require("@angular/core"),require("perf-marks/marks"),require("@angular/common")):"function"==typeof define&&define.amd?define("ngx-skeleton-loader",["exports","@angular/core","perf-marks/marks","@angular/common"],r):r((e=e||self)["ngx-skeleton-loader"]={},e.ng.core,e.marks,e.ng.common)}(this,(function(e,r,o,n){"use strict";var a=function(){function e(e){this.platformId=e,this.count=1,this.appearance="",this.animation="progress",this.theme={},this.items=[]}return e.prototype.ngOnInit=function(){this.isBrowser()&&(o.start("NgxSkeletonLoader:Rendered"),o.start("NgxSkeletonLoader:Loaded")),this.items.length=this.count;var e=["progress","progress-dark","pulse","false"];-1===e.indexOf(this.animation)&&(r.isDevMode()&&console.error("`NgxSkeletonLoaderComponent` need to receive 'animation' as: "+e.join(", ")+'. Forcing default to "progress".'),this.animation="progress")},e.prototype.ngAfterViewInit=function(){this.isBrowser()&&o.end("NgxSkeletonLoader:Rendered")},e.prototype.ngOnDestroy=function(){this.isBrowser()&&o.end("NgxSkeletonLoader:Loaded")},e.prototype.isBrowser=function(){return n.isPlatformBrowser(this.platformId)},e.decorators=[{type:r.Component,args:[{selector:"ngx-skeleton-loader",template:'<span\n *ngFor="let item of items"\n class="loader"\n aria-busy="true"\n aria-valuemin="0"\n aria-valuemax="100"\n aria-valuetext="Loading..."\n role="progressbar"\n tabindex="0"\n [ngClass]="{\n circle: appearance === \'circle\',\n progress: animation === \'progress\',\n \'progress-dark\': animation === \'progress-dark\',\n pulse: animation === \'pulse\'\n }"\n [ngStyle]="theme"\n>\n</span>\n',styles:[".loader{box-sizing:border-box;overflow:hidden;position:relative;background:no-repeat #eff1f6;border-radius:4px;width:100%;height:20px;display:inline-block;margin-bottom:10px;will-change:transform}.loader:after,.loader:before{box-sizing:border-box}.loader.circle{width:40px;height:40px;margin:5px;border-radius:50%}.loader.progress,.loader.progress-dark{-webkit-animation:2s ease-in-out infinite progress;animation:2s ease-in-out infinite progress;background-size:200px 100%}.loader.progress{background-image:linear-gradient(90deg,rgba(255,255,255,0),rgba(255,255,255,.6),rgba(255,255,255,0))}.loader.progress-dark{background-image:linear-gradient(90deg,transparent,rgba(0,0,0,.2),transparent)}.loader.pulse{-webkit-animation:1.5s ease-in-out .5s infinite pulse;animation:1.5s ease-in-out .5s infinite pulse}@media (prefers-reduced-motion:reduce){.loader.progress,.loader.progress-dark,.loader.pulse{-webkit-animation:none;animation:none}.loader.progress,.loader.progress-dark{background-image:none}}@-webkit-keyframes progress{0%{background-position:-200px 0}100%{background-position:calc(200px + 100%) 0}}@keyframes progress{0%{background-position:-200px 0}100%{background-position:calc(200px + 100%) 0}}@-webkit-keyframes pulse{0%,100%{opacity:1}50%{opacity:.4}}@keyframes pulse{0%,100%{opacity:1}50%{opacity:.4}}"]}]}],e.ctorParameters=function(){return[{type:void 0,decorators:[{type:r.Inject,args:[r.PLATFORM_ID]}]}]},e.propDecorators={count:[{type:r.Input}],appearance:[{type:r.Input}],animation:[{type:r.Input}],theme:[{type:r.Input}]},e}();var t=function(){function e(){}return e.decorators=[{type:r.NgModule,args:[{declarations:[a],imports:[n.CommonModule],exports:[a]}]}],e}();e.NgxSkeletonLoaderComponent=a,e.NgxSkeletonLoaderModule=t,Object.defineProperty(e,"__esModule",{value:!0})})); | ||
!function(e,r){"object"==typeof exports&&"undefined"!=typeof module?r(exports,require("@angular/core"),require("perf-marks/marks"),require("@angular/common")):"function"==typeof define&&define.amd?define("ngx-skeleton-loader",["exports","@angular/core","perf-marks/marks","@angular/common"],r):r((e=e||self)["ngx-skeleton-loader"]={},e.ng.core,e.marks,e.ng.common)}(this,(function(e,r,o,n){"use strict";var a=function(){function e(){this.count=1,this.appearance="",this.animation="progress",this.theme={},this.items=[]}return e.prototype.ngOnInit=function(){o.start("NgxSkeletonLoader:Rendered"),o.start("NgxSkeletonLoader:Loaded"),this.items.length=this.count;var e=["progress","progress-dark","pulse","false"];-1===e.indexOf(this.animation)&&(r.isDevMode()&&console.error("`NgxSkeletonLoaderComponent` need to receive 'animation' as: "+e.join(", ")+'. Forcing default to "progress".'),this.animation="progress")},e.prototype.ngAfterViewInit=function(){o.end("NgxSkeletonLoader:Rendered")},e.prototype.ngOnDestroy=function(){o.end("NgxSkeletonLoader:Loaded")},e.decorators=[{type:r.Component,args:[{selector:"ngx-skeleton-loader",template:'<span\n *ngFor="let item of items"\n class="loader"\n aria-busy="true"\n aria-valuemin="0"\n aria-valuemax="100"\n aria-valuetext="Loading..."\n role="progressbar"\n tabindex="0"\n [ngClass]="{\n circle: appearance === \'circle\',\n progress: animation === \'progress\',\n \'progress-dark\': animation === \'progress-dark\',\n pulse: animation === \'pulse\'\n }"\n [ngStyle]="theme"\n>\n</span>\n',styles:[".loader{box-sizing:border-box;overflow:hidden;position:relative;background:no-repeat #eff1f6;border-radius:4px;width:100%;height:20px;display:inline-block;margin-bottom:10px;will-change:transform}.loader:after,.loader:before{box-sizing:border-box}.loader.circle{width:40px;height:40px;margin:5px;border-radius:50%}.loader.progress,.loader.progress-dark{-webkit-animation:2s ease-in-out infinite progress;animation:2s ease-in-out infinite progress;background-size:200px 100%}.loader.progress{background-image:linear-gradient(90deg,rgba(255,255,255,0),rgba(255,255,255,.6),rgba(255,255,255,0))}.loader.progress-dark{background-image:linear-gradient(90deg,transparent,rgba(0,0,0,.2),transparent)}.loader.pulse{-webkit-animation:1.5s ease-in-out .5s infinite pulse;animation:1.5s ease-in-out .5s infinite pulse}@media (prefers-reduced-motion:reduce){.loader.progress,.loader.progress-dark,.loader.pulse{-webkit-animation:none;animation:none}.loader.progress,.loader.progress-dark{background-image:none}}@-webkit-keyframes progress{0%{background-position:-200px 0}100%{background-position:calc(200px + 100%) 0}}@keyframes progress{0%{background-position:-200px 0}100%{background-position:calc(200px + 100%) 0}}@-webkit-keyframes pulse{0%,100%{opacity:1}50%{opacity:.4}}@keyframes pulse{0%,100%{opacity:1}50%{opacity:.4}}"]}]}],e.propDecorators={count:[{type:r.Input}],appearance:[{type:r.Input}],animation:[{type:r.Input}],theme:[{type:r.Input}]},e}();var t=function(){function e(){}return e.decorators=[{type:r.NgModule,args:[{declarations:[a],imports:[n.CommonModule],exports:[a]}]}],e}();e.NgxSkeletonLoaderComponent=a,e.NgxSkeletonLoaderModule=t,Object.defineProperty(e,"__esModule",{value:!0})})); | ||
//# sourceMappingURL=ngx-skeleton-loader.umd.min.js.map |
@@ -10,2 +10,13 @@ # Change Log | ||
## [2.4.4][] - 2020-08-21 | ||
### Fixed | ||
- Remove check requirements if perf-marks is running in a browser or not in Angular apps 🔥 | ||
### Added | ||
- Adding Angular Universal support for examples. Now we can run `npm run dev:ssr` and access `http://localhost:4200/index.html` and the page will run using angular universal 💪 | ||
- Adding `.prettierrc` file with some of the code styling rules | ||
## [2.4.3][] - 2020-08-13 | ||
@@ -266,5 +277,7 @@ | ||
[2.4.2]: https://github.com/willmendesneto/ngx-skeleton-loader/tree/v2.4.2 | ||
[unreleased]: https://github.com/willmendesneto/ngx-skeleton-loader/compare/v2.4.3...HEAD | ||
[2.4.3]: https://github.com/willmendesneto/ngx-skeleton-loader/tree/v2.4.3 | ||
[Unreleased]: https://github.com/willmendesneto/ngx-skeleton-loader/compare/v2.4.3...HEAD | ||
[2.4.3]: https://github.com/willmendesneto/ngx-skeleton-loader/tree/v2.4.3 | ||
[Unreleased]: https://github.com/willmendesneto/ngx-skeleton-loader/compare/v2.4.4...HEAD | ||
[2.4.4]: https://github.com/willmendesneto/ngx-skeleton-loader/tree/v2.4.4 |
@@ -6,11 +6,6 @@ /** | ||
*/ | ||
import { Component, Input, isDevMode, Inject, PLATFORM_ID } from '@angular/core'; | ||
import { Component, Input, isDevMode } from '@angular/core'; | ||
import { start, end } from 'perf-marks/marks'; | ||
import { isPlatformBrowser } from '@angular/common'; | ||
export class NgxSkeletonLoaderComponent { | ||
/** | ||
* @param {?} platformId | ||
*/ | ||
constructor(platformId) { | ||
this.platformId = platformId; | ||
constructor() { | ||
this.count = 1; | ||
@@ -26,6 +21,4 @@ this.appearance = ''; | ||
ngOnInit() { | ||
if (this.isBrowser()) { | ||
start('NgxSkeletonLoader:Rendered'); | ||
start('NgxSkeletonLoader:Loaded'); | ||
} | ||
start('NgxSkeletonLoader:Rendered'); | ||
start('NgxSkeletonLoader:Loaded'); | ||
this.items.length = this.count; | ||
@@ -46,5 +39,3 @@ /** @type {?} */ | ||
ngAfterViewInit() { | ||
if (this.isBrowser()) { | ||
end('NgxSkeletonLoader:Rendered'); | ||
} | ||
end('NgxSkeletonLoader:Rendered'); | ||
} | ||
@@ -55,12 +46,4 @@ /** | ||
ngOnDestroy() { | ||
if (this.isBrowser()) { | ||
end('NgxSkeletonLoader:Loaded'); | ||
} | ||
end('NgxSkeletonLoader:Loaded'); | ||
} | ||
/** | ||
* @return {?} | ||
*/ | ||
isBrowser() { | ||
return isPlatformBrowser(this.platformId); | ||
} | ||
} | ||
@@ -74,6 +57,2 @@ NgxSkeletonLoaderComponent.decorators = [ | ||
]; | ||
/** @nocollapse */ | ||
NgxSkeletonLoaderComponent.ctorParameters = () => [ | ||
{ type: undefined, decorators: [{ type: Inject, args: [PLATFORM_ID,] }] } | ||
]; | ||
NgxSkeletonLoaderComponent.propDecorators = { | ||
@@ -96,8 +75,3 @@ count: [{ type: Input }], | ||
NgxSkeletonLoaderComponent.prototype.items; | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
NgxSkeletonLoaderComponent.prototype.platformId; | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LXNrZWxldG9uLWxvYWRlci5jb21wb25lbnQuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9uZ3gtc2tlbGV0b24tbG9hZGVyLyIsInNvdXJjZXMiOlsibGliL25neC1za2VsZXRvbi1sb2FkZXIuY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7O0FBQUEsT0FBTyxFQUFFLFNBQVMsRUFBVSxLQUFLLEVBQUUsU0FBUyxF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AgaWYgKGFsbG93ZWRBbmltYXRpb25zLmluZGV4T2YodGhpcy5hbmltYXRpb24pID09PSAtMSkge1xuICAgICAgLy8gU2hvd3MgZXJyb3IgbWVzc2FnZSBvbmx5IGluIERldmVsb3BtZW50XG4gICAgICBpZiAoaXNEZXZNb2RlKCkpIHtcbiAgICAgICAgY29uc29sZS5lcnJvcihcbiAgICAgICAgICBgXFxgTmd4U2tlbGV0b25Mb2FkZXJDb21wb25lbnRcXGAgbmVlZCB0byByZWNlaXZlICdhbmltYXRpb24nIGFzOiAke2FsbG93ZWRBbmltYXRpb25zLmpvaW4oXG4gICAgICAgICAgICAnLCAnXG4gICAgICAgICAgKX0uIEZvcmNpbmcgZGVmYXVsdCB0byBcInByb2dyZXNzXCIuYFxuICAgICAgICApO1xuICAgICAgfVxuICAgICAgdGhpcy5hbmltYXRpb24gPSAncHJvZ3Jlc3MnO1xuICAgIH1cbiAgfVxuXG4gIG5nQWZ0ZXJWaWV3SW5pdCgpIHtcbiAgICBpZiAodGhpcy5pc0Jyb3dzZXIoKSkge1xuICAgICAgZW5kKCdOZ3hTa2VsZXRvbkxvYWRlcjpSZW5kZXJlZCcpO1xuICAgIH1cbiAgfVxuXG4gIG5nT25EZXN0cm95KCkge1xuICAgIGlmICh0aGlzLmlzQnJvd3NlcigpKSB7XG4gICAgICBlbmQoJ05neFNrZWxldG9uTG9hZGVyOkxvYWRlZCcpO1xuICAgIH1cbiAgfVxuXG4gIGlzQnJvd3NlcigpOiBib29sZWFuIHtcbiAgICByZXR1cm4gaXNQbGF0Zm9ybUJyb3dzZXIodGhpcy5wbGF0Zm9ybUlkKTtcbiAgfVxufVxuIl19 | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LXNrZWxldG9uLWxvYWRlci5jb21wb25lbnQuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9uZ3gtc2tlbGV0b24tbG9hZGVyLyIsInNvdXJjZXMiOlsibGliL25neC1za2V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vbkxvYWRlcjpSZW5kZXJlZCcpO1xuICB9XG5cbiAgbmdPbkRlc3Ryb3koKSB7XG4gICAgZW5kKCdOZ3hTa2VsZXRvbkxvYWRlcjpMb2FkZWQnKTtcbiAgfVxufVxuIl19 |
@@ -6,8 +6,6 @@ /** | ||
*/ | ||
import { Component, Input, isDevMode, Inject, PLATFORM_ID } from '@angular/core'; | ||
import { Component, Input, isDevMode } from '@angular/core'; | ||
import { start, end } from 'perf-marks/marks'; | ||
import { isPlatformBrowser } from '@angular/common'; | ||
var NgxSkeletonLoaderComponent = /** @class */ (function () { | ||
function NgxSkeletonLoaderComponent(platformId) { | ||
this.platformId = platformId; | ||
function NgxSkeletonLoaderComponent() { | ||
this.count = 1; | ||
@@ -26,6 +24,4 @@ this.appearance = ''; | ||
function () { | ||
if (this.isBrowser()) { | ||
start('NgxSkeletonLoader:Rendered'); | ||
start('NgxSkeletonLoader:Loaded'); | ||
} | ||
start('NgxSkeletonLoader:Rendered'); | ||
start('NgxSkeletonLoader:Loaded'); | ||
this.items.length = this.count; | ||
@@ -49,5 +45,3 @@ /** @type {?} */ | ||
function () { | ||
if (this.isBrowser()) { | ||
end('NgxSkeletonLoader:Rendered'); | ||
} | ||
end('NgxSkeletonLoader:Rendered'); | ||
}; | ||
@@ -61,15 +55,4 @@ /** | ||
function () { | ||
if (this.isBrowser()) { | ||
end('NgxSkeletonLoader:Loaded'); | ||
} | ||
end('NgxSkeletonLoader:Loaded'); | ||
}; | ||
/** | ||
* @return {?} | ||
*/ | ||
NgxSkeletonLoaderComponent.prototype.isBrowser = /** | ||
* @return {?} | ||
*/ | ||
function () { | ||
return isPlatformBrowser(this.platformId); | ||
}; | ||
NgxSkeletonLoaderComponent.decorators = [ | ||
@@ -82,6 +65,2 @@ { type: Component, args: [{ | ||
]; | ||
/** @nocollapse */ | ||
NgxSkeletonLoaderComponent.ctorParameters = function () { return [ | ||
{ type: undefined, decorators: [{ type: Inject, args: [PLATFORM_ID,] }] } | ||
]; }; | ||
NgxSkeletonLoaderComponent.propDecorators = { | ||
@@ -107,8 +86,3 @@ count: [{ type: Input }], | ||
NgxSkeletonLoaderComponent.prototype.items; | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
NgxSkeletonLoaderComponent.prototype.platformId; | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LXNrZWxldG9uLWxvYWRlci5jb21wb25lbnQuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9uZ3gtc2tlbGV0b24tbG9hZGVyLyIsInNvdXJjZXMiOlsibGliL25neC1za2VsZXRvbi1sb2FkZXIuY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7O0FBQUEsT0FBTyxFQUFFLFNBQVMsRUFBVSxLQUFLLEVBQUUsU0FBUyxFQUE0QixNQUFNLEVBQUUsV0FBVyxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQ25ILE9BQU8sRUFBRSxLQUFLLEVBQUUsR0FBRyxFQUFFLE1BQU0sa0JBQWtCLENBQUM7QUFDOUMsT0FBTyxFQUFFLGlCQUFpQixFQUFFLE1BQU0saUJBQWlCLENBQUM7QUFFcEQ7SUFtQkUsb0NBQWtELFVBQWU7UUFBZixlQUFVLEdBQVYsVUFBVSxDQUFLO1FBWmpFLFVBQUssR0FBRyxDQUFDLENBQUM7UUFHVixlQUFVLEdBQWtCLEVBQUUsQ0FBQztRQUcvQixjQUFTLEdBQXFELFVBQVUsQ0FBQztRQUVoRSxVQUFLLEdBQTRCLEVBQUUsQ0FBQztRQUU3QyxVQUFLLEdBQWUsRUFBRSxDQUFDO0lBR3ZCLENBQUM7Ozs7SUFFRCw2Q0FBUTs7O0lBQVI7UUFDRSxJQUFJLElBQUksQ0FBQyxTQUFTLEVBQUUsRUFBRTtZQUNwQixLQUFLLENBQUMsNEJBQTRCLENBQUMsQ0FBQztZQUNwQyxLQUFLLENBQUMsMEJBQTBCLENBQUMs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hbGxvd2VkQW5pbWF0aW9ucy5pbmRleE9mKHRoaXMuYW5pbWF0aW9uKSA9PT0gLTEpIHtcbiAgICAgIC8vIFNob3dzIGVycm9yIG1lc3NhZ2Ugb25seSBpbiBEZXZlbG9wbWVudFxuICAgICAgaWYgKGlzRGV2TW9kZSgpKSB7XG4gICAgICAgIGNvbnNvbGUuZXJyb3IoXG4gICAgICAgICAgYFxcYE5neFNrZWxldG9uTG9hZGVyQ29tcG9uZW50XFxgIG5lZWQgdG8gcmVjZWl2ZSAnYW5pbWF0aW9uJyBhczogJHthbGxvd2VkQW5pbWF0aW9ucy5qb2luKFxuICAgICAgICAgICAgJywgJyxcbiAgICAgICAgICApfS4gRm9yY2luZyBkZWZhdWx0IHRvIFwicHJvZ3Jlc3NcIi5gLFxuICAgICAgICApO1xuICAgICAgfVxuICAgICAgdGhpcy5hbmltYXRpb24gPSAncHJvZ3Jlc3MnO1xuICAgIH1cbiAgfVxuXG4gIG5nQWZ0ZXJWaWV3SW5pdCgpIHtcbiAgICBlbmQoJ05neFNrZWxldG9uTG9hZGVyOlJlbmRlcmVkJyk7XG4gIH1cblxuICBuZ09uRGVzdHJveSgpIHtcbiAgICBlbmQoJ05neFNrZWxldG9uTG9hZGVyOkxvYWRlZCcpO1xuICB9XG59XG4iXX0= |
@@ -1,4 +0,4 @@ | ||
import { isDevMode, Component, Inject, PLATFORM_ID, Input, NgModule } from '@angular/core'; | ||
import { isDevMode, Component, Input, NgModule } from '@angular/core'; | ||
import { start, end } from 'perf-marks/marks'; | ||
import { isPlatformBrowser, CommonModule } from '@angular/common'; | ||
import { CommonModule } from '@angular/common'; | ||
@@ -11,7 +11,3 @@ /** | ||
class NgxSkeletonLoaderComponent { | ||
/** | ||
* @param {?} platformId | ||
*/ | ||
constructor(platformId) { | ||
this.platformId = platformId; | ||
constructor() { | ||
this.count = 1; | ||
@@ -27,6 +23,4 @@ this.appearance = ''; | ||
ngOnInit() { | ||
if (this.isBrowser()) { | ||
start('NgxSkeletonLoader:Rendered'); | ||
start('NgxSkeletonLoader:Loaded'); | ||
} | ||
start('NgxSkeletonLoader:Rendered'); | ||
start('NgxSkeletonLoader:Loaded'); | ||
this.items.length = this.count; | ||
@@ -47,5 +41,3 @@ /** @type {?} */ | ||
ngAfterViewInit() { | ||
if (this.isBrowser()) { | ||
end('NgxSkeletonLoader:Rendered'); | ||
} | ||
end('NgxSkeletonLoader:Rendered'); | ||
} | ||
@@ -56,12 +48,4 @@ /** | ||
ngOnDestroy() { | ||
if (this.isBrowser()) { | ||
end('NgxSkeletonLoader:Loaded'); | ||
} | ||
end('NgxSkeletonLoader:Loaded'); | ||
} | ||
/** | ||
* @return {?} | ||
*/ | ||
isBrowser() { | ||
return isPlatformBrowser(this.platformId); | ||
} | ||
} | ||
@@ -75,6 +59,2 @@ NgxSkeletonLoaderComponent.decorators = [ | ||
]; | ||
/** @nocollapse */ | ||
NgxSkeletonLoaderComponent.ctorParameters = () => [ | ||
{ type: undefined, decorators: [{ type: Inject, args: [PLATFORM_ID,] }] } | ||
]; | ||
NgxSkeletonLoaderComponent.propDecorators = { | ||
@@ -97,7 +77,2 @@ count: [{ type: Input }], | ||
NgxSkeletonLoaderComponent.prototype.items; | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
NgxSkeletonLoaderComponent.prototype.platformId; | ||
} | ||
@@ -104,0 +79,0 @@ |
@@ -1,4 +0,4 @@ | ||
import { isDevMode, Component, Inject, PLATFORM_ID, Input, NgModule } from '@angular/core'; | ||
import { isDevMode, Component, Input, NgModule } from '@angular/core'; | ||
import { start, end } from 'perf-marks/marks'; | ||
import { isPlatformBrowser, CommonModule } from '@angular/common'; | ||
import { CommonModule } from '@angular/common'; | ||
@@ -11,4 +11,3 @@ /** | ||
var NgxSkeletonLoaderComponent = /** @class */ (function () { | ||
function NgxSkeletonLoaderComponent(platformId) { | ||
this.platformId = platformId; | ||
function NgxSkeletonLoaderComponent() { | ||
this.count = 1; | ||
@@ -27,6 +26,4 @@ this.appearance = ''; | ||
function () { | ||
if (this.isBrowser()) { | ||
start('NgxSkeletonLoader:Rendered'); | ||
start('NgxSkeletonLoader:Loaded'); | ||
} | ||
start('NgxSkeletonLoader:Rendered'); | ||
start('NgxSkeletonLoader:Loaded'); | ||
this.items.length = this.count; | ||
@@ -50,5 +47,3 @@ /** @type {?} */ | ||
function () { | ||
if (this.isBrowser()) { | ||
end('NgxSkeletonLoader:Rendered'); | ||
} | ||
end('NgxSkeletonLoader:Rendered'); | ||
}; | ||
@@ -62,15 +57,4 @@ /** | ||
function () { | ||
if (this.isBrowser()) { | ||
end('NgxSkeletonLoader:Loaded'); | ||
} | ||
end('NgxSkeletonLoader:Loaded'); | ||
}; | ||
/** | ||
* @return {?} | ||
*/ | ||
NgxSkeletonLoaderComponent.prototype.isBrowser = /** | ||
* @return {?} | ||
*/ | ||
function () { | ||
return isPlatformBrowser(this.platformId); | ||
}; | ||
NgxSkeletonLoaderComponent.decorators = [ | ||
@@ -83,6 +67,2 @@ { type: Component, args: [{ | ||
]; | ||
/** @nocollapse */ | ||
NgxSkeletonLoaderComponent.ctorParameters = function () { return [ | ||
{ type: undefined, decorators: [{ type: Inject, args: [PLATFORM_ID,] }] } | ||
]; }; | ||
NgxSkeletonLoaderComponent.propDecorators = { | ||
@@ -107,7 +87,2 @@ count: [{ type: Input }], | ||
NgxSkeletonLoaderComponent.prototype.items; | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
NgxSkeletonLoaderComponent.prototype.platformId; | ||
} | ||
@@ -114,0 +89,0 @@ |
import { OnInit, OnDestroy, AfterViewInit } from '@angular/core'; | ||
export declare class NgxSkeletonLoaderComponent implements OnInit, AfterViewInit, OnDestroy { | ||
private readonly platformId; | ||
count: number; | ||
@@ -11,7 +10,5 @@ appearance: 'circle' | ''; | ||
items: Array<any>; | ||
constructor(platformId: any); | ||
ngOnInit(): void; | ||
ngAfterViewInit(): void; | ||
ngOnDestroy(): void; | ||
isBrowser(): boolean; | ||
} |
@@ -1,1 +0,1 @@ | ||
{"__symbolic":"module","version":4,"metadata":{"NgxSkeletonLoaderComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":4,"character":1},"arguments":[{"selector":"ngx-skeleton-loader","template":"<span\n *ngFor=\"let item of items\"\n class=\"loader\"\n aria-busy=\"true\"\n aria-valuemin=\"0\"\n aria-valuemax=\"100\"\n aria-valuetext=\"Loading...\"\n role=\"progressbar\"\n tabindex=\"0\"\n [ngClass]=\"{\n circle: appearance === 'circle',\n progress: animation === 'progress',\n 'progress-dark': animation === 'progress-dark',\n pulse: animation === 'pulse'\n }\"\n [ngStyle]=\"theme\"\n>\n</span>\n","styles":[".loader{box-sizing:border-box;overflow:hidden;position:relative;background:no-repeat #eff1f6;border-radius:4px;width:100%;height:20px;display:inline-block;margin-bottom:10px;will-change:transform}.loader:after,.loader:before{box-sizing:border-box}.loader.circle{width:40px;height:40px;margin:5px;border-radius:50%}.loader.progress,.loader.progress-dark{-webkit-animation:2s ease-in-out infinite progress;animation:2s ease-in-out infinite progress;background-size:200px 100%}.loader.progress{background-image:linear-gradient(90deg,rgba(255,255,255,0),rgba(255,255,255,.6),rgba(255,255,255,0))}.loader.progress-dark{background-image:linear-gradient(90deg,transparent,rgba(0,0,0,.2),transparent)}.loader.pulse{-webkit-animation:1.5s ease-in-out .5s infinite pulse;animation:1.5s ease-in-out .5s infinite pulse}@media (prefers-reduced-motion:reduce){.loader.progress,.loader.progress-dark,.loader.pulse{-webkit-animation:none;animation:none}.loader.progress,.loader.progress-dark{background-image:none}}@-webkit-keyframes progress{0%{background-position:-200px 0}100%{background-position:calc(200px + 100%) 0}}@keyframes progress{0%{background-position:-200px 0}100%{background-position:calc(200px + 100%) 0}}@-webkit-keyframes pulse{0%,100%{opacity:1}50%{opacity:.4}}@keyframes pulse{0%,100%{opacity:1}50%{opacity:.4}}"]}]}],"members":{"count":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":10,"character":3}}]}],"appearance":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":13,"character":3}}]}],"animation":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":16,"character":3}}]}],"theme":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":19,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":23,"character":15},"arguments":[{"__symbolic":"reference","module":"@angular/core","name":"PLATFORM_ID","line":23,"character":22}]}]],"parameters":[{"__symbolic":"reference","name":"any"}]}],"ngOnInit":[{"__symbolic":"method"}],"ngAfterViewInit":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}],"isBrowser":[{"__symbolic":"method"}]}},"NgxSkeletonLoaderModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":4,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","name":"NgxSkeletonLoaderComponent"}],"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":6,"character":12}],"exports":[{"__symbolic":"reference","name":"NgxSkeletonLoaderComponent"}]}]}],"members":{}}},"origins":{"NgxSkeletonLoaderComponent":"./lib/ngx-skeleton-loader.component","NgxSkeletonLoaderModule":"./lib/ngx-skeleton-loader.module"},"importAs":"ngx-skeleton-loader"} | ||
{"__symbolic":"module","version":4,"metadata":{"NgxSkeletonLoaderComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":3,"character":1},"arguments":[{"selector":"ngx-skeleton-loader","template":"<span\n *ngFor=\"let item of items\"\n class=\"loader\"\n aria-busy=\"true\"\n aria-valuemin=\"0\"\n aria-valuemax=\"100\"\n aria-valuetext=\"Loading...\"\n role=\"progressbar\"\n tabindex=\"0\"\n [ngClass]=\"{\n circle: appearance === 'circle',\n progress: animation === 'progress',\n 'progress-dark': animation === 'progress-dark',\n pulse: animation === 'pulse'\n }\"\n [ngStyle]=\"theme\"\n>\n</span>\n","styles":[".loader{box-sizing:border-box;overflow:hidden;position:relative;background:no-repeat #eff1f6;border-radius:4px;width:100%;height:20px;display:inline-block;margin-bottom:10px;will-change:transform}.loader:after,.loader:before{box-sizing:border-box}.loader.circle{width:40px;height:40px;margin:5px;border-radius:50%}.loader.progress,.loader.progress-dark{-webkit-animation:2s ease-in-out infinite progress;animation:2s ease-in-out infinite progress;background-size:200px 100%}.loader.progress{background-image:linear-gradient(90deg,rgba(255,255,255,0),rgba(255,255,255,.6),rgba(255,255,255,0))}.loader.progress-dark{background-image:linear-gradient(90deg,transparent,rgba(0,0,0,.2),transparent)}.loader.pulse{-webkit-animation:1.5s ease-in-out .5s infinite pulse;animation:1.5s ease-in-out .5s infinite pulse}@media (prefers-reduced-motion:reduce){.loader.progress,.loader.progress-dark,.loader.pulse{-webkit-animation:none;animation:none}.loader.progress,.loader.progress-dark{background-image:none}}@-webkit-keyframes progress{0%{background-position:-200px 0}100%{background-position:calc(200px + 100%) 0}}@keyframes progress{0%{background-position:-200px 0}100%{background-position:calc(200px + 100%) 0}}@-webkit-keyframes pulse{0%,100%{opacity:1}50%{opacity:.4}}@keyframes pulse{0%,100%{opacity:1}50%{opacity:.4}}"]}]}],"members":{"count":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":9,"character":3}}]}],"appearance":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":12,"character":3}}]}],"animation":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":15,"character":3}}]}],"theme":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":18,"character":3}}]}],"ngOnInit":[{"__symbolic":"method"}],"ngAfterViewInit":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}]}},"NgxSkeletonLoaderModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":4,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","name":"NgxSkeletonLoaderComponent"}],"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":6,"character":12}],"exports":[{"__symbolic":"reference","name":"NgxSkeletonLoaderComponent"}]}]}],"members":{}}},"origins":{"NgxSkeletonLoaderComponent":"./lib/ngx-skeleton-loader.component","NgxSkeletonLoaderModule":"./lib/ngx-skeleton-loader.module"},"importAs":"ngx-skeleton-loader"} |
{ | ||
"name": "ngx-skeleton-loader", | ||
"description": "Make beautiful, animated loading skeletons that automatically adapt to your Angular apps", | ||
"version": "2.4.3", | ||
"version": "2.4.4", | ||
"peerDependencies": { | ||
@@ -24,3 +24,3 @@ "@angular/common": ">=8.0.0", | ||
"dependencies": { | ||
"perf-marks": "^1.13.2", | ||
"perf-marks": "^1.13.4", | ||
"tslib": "^1.10.0" | ||
@@ -27,0 +27,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
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
82415
603
+ Added@angular/common@19.0.0(transitive)
+ Added@angular/core@19.0.0(transitive)
- Removed@angular/common@19.0.1(transitive)
- Removed@angular/core@19.0.1(transitive)
Updatedperf-marks@^1.13.4