{"version":3,"file":"primeng-splitbutton.umd.js","sources":["../../src/app/components/splitbutton/splitbutton.ts","../../src/app/components/splitbutton/primeng-splitbutton.ts"],"sourcesContent":["import {NgModule,Component,ElementRef,Input,Output,EventEmitter,ViewChild,ChangeDetectionStrategy,ViewEncapsulation} from '@angular/core';\nimport {CommonModule} from '@angular/common';\nimport {MenuItem} from 'primeng/api';\nimport {ButtonModule} from 'primeng/button';\nimport {MenuModule, Menu} from 'primeng/menu';\n\n@Component({\n selector: 'p-splitButton',\n template: `\n
\n \n \n \n
\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n styleUrls: ['./splitbutton.css']\n})\nexport class SplitButton {\n\n @Input() model: MenuItem[];\n\n @Input() icon: string;\n\n @Input() iconPos: string = 'left';\n \n @Input() label: string;\n \n @Output() onClick: EventEmitter = new EventEmitter();\n \n @Output() onDropdownClick: EventEmitter = new EventEmitter();\n \n @Input() style: any;\n \n @Input() styleClass: string;\n \n @Input() menuStyle: any;\n \n @Input() menuStyleClass: string;\n \n @Input() disabled: boolean;\n\n @Input() tabindex: number;\n \n @Input() appendTo: any;\n \n @Input() dir: string;\n\n @Input() showTransitionOptions: string = '.12s cubic-bezier(0, 0, 0.2, 1)';\n\n @Input() hideTransitionOptions: string = '.1s linear';\n\n @ViewChild('container') containerViewChild: ElementRef;\n \n @ViewChild('defaultbtn') buttonViewChild: ElementRef;\n\n @ViewChild('menu') menu: Menu;\n\n onDefaultButtonClick(event: Event) {\n this.onClick.emit(event);\n }\n \n onDropdownButtonClick(event: Event) {\n this.onDropdownClick.emit(event);\n this.menu.toggle({currentTarget: this.containerViewChild.nativeElement, relativeAlign: this.appendTo == null});\n }\n\n}\n\n@NgModule({\n imports: [CommonModule,ButtonModule,MenuModule],\n exports: [SplitButton,ButtonModule],\n declarations: [SplitButton]\n})\nexport class SplitButtonModule { }\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["EventEmitter","Component","ChangeDetectionStrategy","ViewEncapsulation","Input","Output","ViewChild","NgModule","CommonModule","ButtonModule","MenuModule"],"mappings":";;;;;;;QAMA;YAoBa,YAAO,GAAW,MAAM,CAAC;YAIxB,YAAO,GAAsB,IAAIA,iBAAY,EAAE,CAAC;YAEhD,oBAAe,GAAsB,IAAIA,iBAAY,EAAE,CAAC;YAkBzD,0BAAqB,GAAW,iCAAiC,CAAC;YAElE,0BAAqB,GAAW,YAAY,CAAC;SAiBzD;QATG,0CAAoB,GAApB,UAAqB,KAAY;YAC7B,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;SAC5B;QAED,2CAAqB,GAArB,UAAsB,KAAY;YAC9B,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;YACjC,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,EAAC,aAAa,EAAE,IAAI,CAAC,kBAAkB,CAAC,aAAa,EAAE,aAAa,EAAE,IAAI,CAAC,QAAQ,IAAI,IAAI,EAAC,CAAC,CAAC;SAClH;;;;gBA7DJC,cAAS,SAAC;oBACP,QAAQ,EAAE,eAAe;oBACzB,QAAQ,EAAE,60BAOT;oBACD,eAAe,EAAEC,4BAAuB,CAAC,MAAM;oBAC/C,aAAa,EAAEC,sBAAiB,CAAC,IAAI;;iBAExC;;;wBAGIC,UAAK;uBAELA,UAAK;0BAELA,UAAK;wBAELA,UAAK;0BAELC,WAAM;kCAENA,WAAM;wBAEND,UAAK;6BAELA,UAAK;4BAELA,UAAK;iCAELA,UAAK;2BAELA,UAAK;2BAELA,UAAK;2BAELA,UAAK;sBAELA,UAAK;wCAELA,UAAK;wCAELA,UAAK;qCAELE,cAAS,SAAC,WAAW;kCAErBA,cAAS,SAAC,YAAY;uBAEtBA,cAAS,SAAC,MAAM;;;QAkBrB;;;;;gBALCC,aAAQ,SAAC;oBACN,OAAO,EAAE,CAACC,mBAAY,EAACC,mBAAY,EAACC,eAAU,CAAC;oBAC/C,OAAO,EAAE,CAAC,WAAW,EAACD,mBAAY,CAAC;oBACnC,YAAY,EAAE,CAAC,WAAW,CAAC;iBAC9B;;;IC3ED;;;;;;;;;;;;;"}