{"version":3,"file":"primeng-toolbar.mjs","sources":["../../src/app/components/toolbar/toolbar.ts","../../src/app/components/toolbar/primeng-toolbar.ts"],"sourcesContent":["import { CommonModule } from '@angular/common';\nimport { AfterContentInit, AfterViewInit, ChangeDetectionStrategy, Component, ContentChildren, ElementRef, Input, NgModule, QueryList, TemplateRef, ViewEncapsulation } from '@angular/core';\nimport { BlockableUI, LicenseManager, PrimeTemplate } from 'primeng/api';\n\n@Component({\n selector: 'p-toolbar',\n template: `\n
\n \n
\n \n
\n
\n \n
\n
\n \n
\n
\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n styleUrls: ['./toolbar.css'],\n host: {\n class: 'p-element'\n }\n})\nexport class Toolbar implements AfterContentInit, BlockableUI, AfterViewInit {\n @Input() style: any;\n\n @Input() styleClass: string;\n\n @ContentChildren(PrimeTemplate) templates: QueryList;\n\n startTemplate: TemplateRef;\n\n endTemplate: TemplateRef;\n\n centerTemplate: 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.startTemplate = item.template;\n break;\n\n case 'right':\n this.endTemplate = item.template;\n break;\n\n case 'center':\n this.centerTemplate = item.template;\n break;\n }\n });\n }\n\n ngAfterViewInit() {\n LicenseManager.check();\n }\n}\n\n@NgModule({\n imports: [CommonModule],\n exports: [Toolbar],\n declarations: [Toolbar]\n})\nexport class ToolbarModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;MA2Ba,OAAO,CAAA;AAahB,IAAA,WAAA,CAAoB,EAAc,EAAA;AAAd,QAAA,IAAE,CAAA,EAAA,GAAF,EAAE,CAAY;KAAI;IAEtC,mBAAmB,GAAA;QACf,OAAO,IAAI,CAAC,EAAE,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC,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