{"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, ChangeDetectionStrategy, Component, ContentChildren, ElementRef, Input, NgModule, QueryList, TemplateRef, ViewEncapsulation } from '@angular/core';\nimport { BlockableUI, PrimeTemplate } from 'primeng/api';\n/**\n * Toolbar is a grouping component for buttons and other content.\n * @group Components\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 {\n /**\n * Inline style of the component.\n * @group Props\n */\n @Input() style: { [klass: string]: any } | null | undefined;\n /**\n * Style class of the component.\n * @group Props\n */\n @Input() styleClass: string | undefined;\n /**\n * Defines a string value that labels an interactive element.\n * @group Props\n */\n @Input() ariaLabelledBy: string | undefined;\n\n @ContentChildren(PrimeTemplate) templates: QueryList | undefined;\n\n startTemplate: TemplateRef | undefined;\n\n endTemplate: TemplateRef | undefined;\n\n centerTemplate: TemplateRef | undefined;\n\n constructor(private el: ElementRef) {}\n\n getBlockableElement(): HTMLElement {\n return this.el.nativeElement.children[0];\n }\n\n ngAfterContentInit() {\n (this.templates as QueryList).forEach((item) => {\n switch (item.getType()) {\n case 'start':\n case 'left':\n this.startTemplate = item.template;\n break;\n\n case 'end':\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\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":";;;;;;AAGA;;;AAGG;MAwBU,OAAO,CAAA;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