{"version":3,"file":"primeng-skeleton.umd.js","sources":["../../src/app/components/skeleton/skeleton.ts","../../src/app/components/skeleton/primeng-skeleton.ts"],"sourcesContent":["import { NgModule, Component, ChangeDetectionStrategy, ViewEncapsulation, Input} from '@angular/core';\nimport { CommonModule } from '@angular/common';\n\n@Component({\n selector: 'p-skeleton',\n template: `\n
\n
\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n styleUrls: ['./skeleton.css']\n})\nexport class Skeleton {\n\n @Input() styleClass: string;\n\n @Input() style: any;\n\n @Input() shape: string = \"rectangle\";\n\n @Input() animation: string = \"wave\";\n\n @Input() borderRadius: string = null;\n\n @Input() size: string = null;\n\n @Input() width: string = \"100%\";\n \n @Input() height: string = \"1rem\";\n\n containerClass() {\n return {\n 'p-skeleton p-component': true,\n 'p-skeleton-circle': this.shape === 'circle',\n 'p-skeleton-animation-none': this.animation === 'none'\n };\n }\n\n containerStyle() {\n if (this.size)\n return {...this.style, width: this.size, height: this.size, borderRadius: this.borderRadius};\n else\n return {...this.style, width: this.width, height: this.height, borderRadius: this.borderRadius};\n }\n}\n\n@NgModule({\n imports: [CommonModule],\n exports: [Skeleton],\n declarations: [Skeleton]\n})\nexport class SkeletonModule { }\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["Component","ChangeDetectionStrategy","ViewEncapsulation","Input","NgModule","CommonModule"],"mappings":";;;;;;;QAGA;YAgBa,UAAK,GAAW,WAAW,CAAC;YAE5B,cAAS,GAAW,MAAM,CAAC;YAE3B,iBAAY,GAAW,IAAI,CAAC;YAE5B,SAAI,GAAW,IAAI,CAAC;YAEpB,UAAK,GAAW,MAAM,CAAC;YAEvB,WAAM,GAAW,MAAM,CAAC;SAgBpC;QAdG,iCAAc,GAAd;YACI,OAAO;gBACH,wBAAwB,EAAE,IAAI;gBAC9B,mBAAmB,EAAE,IAAI,CAAC,KAAK,KAAK,QAAQ;gBAC5C,2BAA2B,EAAE,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