{"version":3,"sources":["../../src/app/components/skeleton/skeleton.ts"],"names":["Skeleton","this","shape","animation","borderRadius","size","width","height","prototype","containerClass","p-skeleton p-component","p-skeleton-circle","p-skeleton-animation-none","containerStyle","Object","assign","style","Component","args","selector","template","changeDetection","ChangeDetectionStrategy","OnPush","encapsulation","ViewEncapsulation","None","Input","NgModule","imports","CommonModule","exports","declarations"],"mappings":"saAGA,SAAAA,IAgBaC,KAAAC,MAAgB,YAEhBD,KAAAE,UAAoB,OAEpBF,KAAAG,aAAuB,KAEvBH,KAAAI,KAAe,KAEfJ,KAAAK,MAAgB,OAEhBL,KAAAM,OAAiB,cAE1BP,EAAAQ,UAAAC,eAAA,WACI,MAAO,CACHC,0BAA0B,EAC1BC,oBAAoC,WAAfV,KAAKC,MAC1BU,4BAAgD,SAAnBX,KAAKE,YAI1CH,EAAAQ,UAAAK,eAAA,WACI,OAAIZ,KAAKI,KACDS,OAAAC,OAAAD,OAAAC,OAAA,GAAWd,KAAKe,OAAK,CAAEV,MAAOL,KAAKI,KAAME,OAAQN,KAAKI,KAAMD,aAAcH,KAAKG,eAE/EU,OAAAC,OAAAD,OAAAC,OAAA,GAAWd,KAAKe,OAAK,CAAEV,MAAOL,KAAKK,MAAOC,OAAQN,KAAKM,OAAQH,aAAcH,KAAKG,yCAxCjGa,EAAAA,UAASC,KAAA,CAAC,CACPC,SAAU,aACVC,SAAU,uHAIVC,gBAAiBC,EAAAA,wBAAwBC,OACzCC,cAAeC,EAAAA,kBAAkBC,8bAKhCC,EAAAA,qBAEAA,EAAAA,qBAEAA,EAAAA,yBAEAA,EAAAA,4BAEAA,EAAAA,oBAEAA,EAAAA,qBAEAA,EAAAA,sBAEAA,EAAAA,eAuBL,iCALCC,EAAAA,SAAQV,KAAA,CAAC,CACNW,QAAS,CAACC,EAAAA,cACVC,QAAS,CAAC/B,GACVgC,aAAc,CAAChC","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"]}