UNPKG

primeng

Version:

[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) [![npm version](https://badge.fury.io/js/primeng.svg)](https://badge.fury.io/js/primeng) [![Discord](https://img.shields.io/discord/557940238991753

2 lines 2.17 kB
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("@angular/common")):"function"==typeof define&&define.amd?define("primeng/skeleton",["exports","@angular/core","@angular/common"],t):t(((e="undefined"!=typeof globalThis?globalThis:e||self).primeng=e.primeng||{},e.primeng.skeleton={}),e.ng.core,e.ng.common)}(this,(function(e,t,n){"use strict";var i=function(){function e(){this.shape="rectangle",this.animation="wave",this.borderRadius=null,this.size=null,this.width="100%",this.height="1rem"}return e.prototype.containerClass=function(){return{"p-skeleton p-component":!0,"p-skeleton-circle":"circle"===this.shape,"p-skeleton-animation-none":"none"===this.animation}},e.prototype.containerStyle=function(){return this.size?Object.assign(Object.assign({},this.style),{width:this.size,height:this.size,borderRadius:this.borderRadius}):Object.assign(Object.assign({},this.style),{width:this.width,height:this.height,borderRadius:this.borderRadius})},e}();i.decorators=[{type:t.Component,args:[{selector:"p-skeleton",template:'\n <div [ngClass]="containerClass()" [class]="styleClass" [ngStyle]="containerStyle()">\n </div>\n ',changeDetection:t.ChangeDetectionStrategy.OnPush,encapsulation:t.ViewEncapsulation.None,styles:['.p-skeleton{overflow:hidden;position:relative}.p-skeleton:after{animation:p-skeleton-animation 1.2s infinite;content:"";height:100%;left:0;position:absolute;right:0;top:0;transform:translateX(-100%);z-index:1}.p-skeleton.p-skeleton-circle{border-radius:50%}.p-skeleton-none:after{animation:none}@keyframes p-skeleton-animation{0%{transform:translateX(-100%)}to{transform:translateX(100%)}}']}]}],i.propDecorators={styleClass:[{type:t.Input}],style:[{type:t.Input}],shape:[{type:t.Input}],animation:[{type:t.Input}],borderRadius:[{type:t.Input}],size:[{type:t.Input}],width:[{type:t.Input}],height:[{type:t.Input}]};var o=function(){};o.decorators=[{type:t.NgModule,args:[{imports:[n.CommonModule],exports:[i],declarations:[i]}]}],e.Skeleton=i,e.SkeletonModule=o,Object.defineProperty(e,"__esModule",{value:!0})})); //# sourceMappingURL=primeng-skeleton.umd.min.js.map