UNPKG

1.71 kBSource Map (JSON)View Raw
1{"version":3,"sources":["ng://primeng/toolbar/toolbar.ts"],"names":["Toolbar","el","this","prototype","getBlockableElement","nativeElement","children","ElementRef","__decorate","Input","Component","selector","template","changeDetection","ChangeDetectionStrategy","Default","ToolbarModule","NgModule","imports","CommonModule","exports","declarations"],"mappings":"0sBAAAA,EAAA,WAmBI,SAAAA,EAAoBC,GAAAC,KAAAD,GAAAA,EAMxB,OAJID,EAAAG,UAAAC,oBAAA,WACE,OAAOF,KAAKD,GAAGI,cAAcC,SAAS,6CAHhBC,EAAAA,cAJfC,EAAA,CAARC,EAAAA,qCAEQD,EAAA,CAARC,EAAAA,0CAJQT,EAAOQ,EAAA,CATnBE,EAAAA,UAAU,CACPC,SAAU,YACVC,SAAU,4NAKVC,gBAAiBC,EAAAA,wBAAwBC,WAEhCf,GAbb,gBAgCA,SAAAgB,KAA6B,OAAhBA,EAAaR,EAAA,CALzBS,EAAAA,SAAS,CACNC,QAAS,CAACC,EAAAA,cACVC,QAAS,CAACpB,GACVqB,aAAc,CAACrB,MAENgB","sourcesContent":["import {NgModule,Component,Input,ElementRef,ChangeDetectionStrategy} from '@angular/core';\nimport {CommonModule} from '@angular/common';\nimport {BlockableUI} from 'primeng/api';\n\n@Component({\n selector: 'p-toolbar',\n template: `\n <div [ngClass]=\"'ui-toolbar ui-widget ui-widget-header ui-corner-all ui-helper-clearfix'\" [ngStyle]=\"style\" [class]=\"styleClass\" role=\"toolbar\">\n <ng-content></ng-content>\n </div>\n `,\n changeDetection: ChangeDetectionStrategy.Default\n})\nexport class Toolbar implements BlockableUI {\n\n @Input() style: any;\n\n @Input() styleClass: string;\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: [Toolbar],\n declarations: [Toolbar]\n})\nexport class ToolbarModule { }\n"]}
\No newline at end of file