{"version":3,"file":"primeng-splitbutton.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":[],"mappings":";;;;;MA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