{"version":3,"sources":["../../src/app/components/toolbar/toolbar.ts"],"names":["Toolbar","el","this","prototype","getBlockableElement","nativeElement","children","ngAfterContentInit","_this","templates","forEach","item","getType","leftTemplate","template","rightTemplate","Component","args","selector","changeDetection","ChangeDetectionStrategy","OnPush","encapsulation","ViewEncapsulation","None","ElementRef","Input","ContentChildren","PrimeTemplate","NgModule","imports","CommonModule","exports","declarations"],"mappings":"ydAiCI,SAAAA,EAAoBC,GAAAC,KAAAD,GAAAA,SAEpBD,EAAAG,UAAAC,oBAAA,WACE,OAAOF,KAAKD,GAAGI,cAAcC,SAAS,IAGxCN,EAAAG,UAAAI,mBAAA,WAAA,IAAAC,EAAAN,KACIA,KAAKO,UAAUC,SAAQ,SAACC,GACpB,OAAOA,EAAKC,WACR,IAAK,OACDJ,EAAKK,aAAeF,EAAKG,SAC7B,MAEA,IAAK,QACDN,EAAKO,cAAgBJ,EAAKG,uCA3C7CE,EAAAA,UAASC,KAAA,CAAC,CACPC,SAAU,YACVJ,SAAU,ggBAWVK,gBAAiBC,EAAAA,wBAAwBC,OACzCC,cAAeC,EAAAA,kBAAkBC,8MAlBJC,EAAAA,6CAuB5BC,EAAAA,0BAEAA,EAAAA,yBAEAC,EAAAA,gBAAeV,KAAA,CAACW,EAAAA,wBAiCrB,iCALCC,EAAAA,SAAQZ,KAAA,CAAC,CACNa,QAAS,CAACC,EAAAA,cACVC,QAAS,CAAChC,GACViC,aAAc,CAACjC","sourcesContent":["import {NgModule,Component,Input,ElementRef,ChangeDetectionStrategy, ViewEncapsulation, AfterContentInit, ContentChildren, QueryList, TemplateRef} from '@angular/core';\nimport {CommonModule} from '@angular/common';\nimport {BlockableUI, PrimeTemplate} from 'primeng/api';\n\n@Component({\n selector: 'p-toolbar',\n template: `\n
\n \n
\n \n
\n
\n \n
\n
\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n styleUrls: ['./toolbar.css']\n})\nexport class Toolbar implements AfterContentInit,BlockableUI {\n\n @Input() style: any;\n\n @Input() styleClass: string;\n\n @ContentChildren(PrimeTemplate) templates: QueryList;\n\n leftTemplate: TemplateRef;\n\n rightTemplate: TemplateRef;\n\n constructor(private el: ElementRef) {}\n\n getBlockableElement(): HTMLElement {\n return this.el.nativeElement.children[0];\n }\n\n ngAfterContentInit() {\n this.templates.forEach((item) => {\n switch(item.getType()) {\n case 'left':\n this.leftTemplate = item.template;\n break;\n\n case 'right':\n this.rightTemplate = item.template;\n break;\n }\n });\n }\n\n}\n\n@NgModule({\n imports: [CommonModule],\n exports: [Toolbar],\n declarations: [Toolbar]\n})\nexport class ToolbarModule { }\n"]}