{"version":3,"file":"primeng-skeleton.mjs","sources":["../../src/app/components/skeleton/skeleton.ts","../../src/app/components/skeleton/primeng-skeleton.ts"],"sourcesContent":["import { CommonModule } from '@angular/common';\nimport { AfterViewInit, ChangeDetectionStrategy, Component, Input, NgModule, ViewEncapsulation } from '@angular/core';\nimport { LicenseManager } from 'primeng/api';\n\n@Component({\n selector: 'p-skeleton',\n template: `
`,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n styleUrls: ['./skeleton.css'],\n host: {\n class: 'p-element'\n }\n})\nexport class Skeleton implements AfterViewInit {\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 ngAfterViewInit() {\n LicenseManager.check();\n }\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) return { ...this.style, width: this.size, height: this.size, borderRadius: this.borderRadius };\n else 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":";;;;;;MAca,QAAQ,CAAA;AAVrB,IAAA,WAAA,GAAA;AAea,QAAA,IAAK,CAAA,KAAA,GAAW,WAAW,CAAC;AAE5B,QAAA,IAAS,CAAA,SAAA,GAAW,MAAM,CAAC;AAE3B,QAAA,IAAY,CAAA,YAAA,GAAW,IAAI,CAAC;AAE5B,QAAA,IAAI,CAAA,IAAA,GAAW,IAAI,CAAC;AAEpB,QAAA,IAAK,CAAA,KAAA,GAAW,MAAM,CAAC;AAEvB,QAAA,IAAM,C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