{"version":3,"file":"primeng-skeleton.mjs","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 host: {\n 'class': 'p-element'\n }\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-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":[],"mappings":";;;;;MAgBa,QAAQ;IAbrB;QAmBa,UAAK,GAAW,WAAW,CAAC;QAE5B,cAAS,GAAW,MAAM,CAAC;QAE3B,iBAAY,GAAW,IAAI,CAAC;QAE5B,SAAI,GAAW,IAAI,CAAC;QAEpB,UAAK,GAAW,MAAM,CAAC;QAEvB,WAAM,GAAW,MAAM,CAAC;KAgBpC;IAdG,cAAc;QACV,OAAO;YACH,wBAAwB,EAAE,IAAI;YAC9B,mBAAmB,EAAE,IAAI,CAAC,KAAK,KAAK,QAAQ;YAC5C,iBAAiB,EAAE,IAAI,CAAC,SAAS,KAAK,M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