UNPKG

2.71 kBSource Map (JSON)View Raw
1{"version":3,"sources":["ng://primeng/card/card.ts"],"names":["Card","el","this","prototype","getBlockableElement","nativeElement","children","ElementRef","__decorate","Input","ContentChild","Header","Footer","Component","selector","template","changeDetection","ChangeDetectionStrategy","Default","CardModule","NgModule","imports","CommonModule","exports","SharedModule","declarations"],"mappings":"yvBAAAA,EAAA,WAwCI,SAAAA,EAAoBC,GAAAC,KAAAD,GAAAA,EAMxB,OAJID,EAAAG,UAAAC,oBAAA,WACI,OAAOF,KAAKD,GAAGI,cAAcC,SAAS,6CAHlBC,EAAAA,cAZfC,EAAA,CAARC,EAAAA,sCAEQD,EAAA,CAARC,EAAAA,yCAEQD,EAAA,CAARC,EAAAA,qCAEQD,EAAA,CAARC,EAAAA,0CAEqBD,EAAA,CAArBE,EAAAA,aAAaC,EAAAA,2CAEQH,EAAA,CAArBE,EAAAA,aAAaE,EAAAA,2CAZLZ,EAAIQ,EAAA,CArBhBK,EAAAA,UAAU,CACPC,SAAU,SACVC,SAAU,6wBAiBVC,gBAAiBC,EAAAA,wBAAwBC,WAEhClB,GA1Bb,gBAqDA,SAAAmB,KAA0B,OAAbA,EAAUX,EAAA,CALtBY,EAAAA,SAAS,CACNC,QAAS,CAACC,EAAAA,cACVC,QAAS,CAACvB,EAAMwB,EAAAA,cAChBC,aAAc,CAACzB,MAENmB","sourcesContent":["import { NgModule, Component, Input, ElementRef, ContentChild, ChangeDetectionStrategy } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { SharedModule, Header, Footer } from 'primeng/api';\nimport { BlockableUI } from 'primeng/api';\n\n@Component({\n selector: 'p-card',\n template: `\n <div [ngClass]=\"'ui-card ui-widget ui-widget-content ui-corner-all'\" [ngStyle]=\"style\" [class]=\"styleClass\">\n <div class=\"ui-card-header\" *ngIf=\"headerFacet\">\n <ng-content select=\"p-header\"></ng-content>\n </div>\n <div class=\"ui-card-body\">\n <div class=\"ui-card-title\" *ngIf=\"header\">{{header}}</div>\n <div class=\"ui-card-subtitle\" *ngIf=\"subheader\">{{subheader}}</div>\n <div class=\"ui-card-content\">\n <ng-content></ng-content>\n </div>\n <div class=\"ui-card-footer\" *ngIf=\"footerFacet\">\n <ng-content select=\"p-footer\"></ng-content>\n </div>\n </div>\n </div>\n `,\n changeDetection: ChangeDetectionStrategy.Default\n})\nexport class Card implements BlockableUI {\n\n @Input() header: string;\n\n @Input() subheader: string;\n\n @Input() style: any;\n\n @Input() styleClass: string;\n\n @ContentChild(Header) headerFacet;\n\n @ContentChild(Footer) footerFacet;\n\n constructor(private el: ElementRef) { }\n\n getBlockableElement(): HTMLElement  {\n return this.el.nativeElement.children[0];\n }\n\n}\n\n@NgModule({\n imports: [CommonModule],\n exports: [Card, SharedModule],\n declarations: [Card]\n})\nexport class CardModule { }\n"]}
\No newline at end of file