import { Component , ElementRef , ViewContainerRef , Renderer2 , Injector , ChangeDetectionStrategy , QueryList , ValueProvider , ContentChild } from '@angular/core' ; import { ComponentBase , ComponentMixins , IComponentBase , applyMixins , PropertyCollectionInfo , setValue } from '@syncfusion/ej2-angular-base' ; import { DropDownButton } from '@syncfusion/ej2-splitbuttons' ; import { DropDownButtonItemsDirective } from './items.directive' ; export const inputs = [ 'content' , 'createPopupOnClick' , 'cssClass' , 'disabled' , 'enableHtmlSanitizer' , 'enablePersistence' , 'enableRtl' , 'iconCss' , 'iconPosition' , 'items' , 'locale' , 'target' ] ; export const outputs = [ 'beforeClose' , 'beforeItemRender' , 'beforeOpen' , 'close' , 'created' , 'open' , 'select' ] ; export const twoWays = [ ] ; /**
 * Represents the Angular DropDownButton Component.
 * ```html
 * <button ejs-dropdownbutton>DropDownButton</button>
 * ```
 */ @ Component ( { selector : '[ejs-dropdownbutton]' , inputs : inputs , outputs : outputs , template : `<ng-content ></ng-content>` , changeDetection : ChangeDetectionStrategy . OnPush , queries : { childItems : new ContentChild ( DropDownButtonItemsDirective ) } } ) @ ComponentMixins ( [ ComponentBase ] ) export class DropDownButtonComponent extends DropDownButton implements IComponentBase { public containerContext : any ; public tagObjects : any ; beforeClose : any ; beforeItemRender : any ; beforeOpen : any ; close : any ; created : any ; open : any ; public select : any ; public childItems : QueryList < DropDownButtonItemsDirective > ; public tags : string [ ] = [ 'items' ] ; constructor ( private ngEle , private srenderer , private viewContainerRef , private injector ) { super ( ) ; this . element = this . ngEle . nativeElement ; this . injectedModules = this . injectedModules || [ ] ; this . registerEvents ( outputs ) ; this . addTwoWay . call ( this , twoWays ) ; setValue ( 'currentInstance' , this , this . viewContainerRef ) ; this . containerContext = new ComponentBase ( ) ; } public ngOnInit ( ) { this . containerContext . ngOnInit ( this ) ; } public ngAfterViewInit ( ) { this . containerContext . ngAfterViewInit ( this ) ; } public ngOnDestroy ( ) { this . containerContext . ngOnDestroy ( this ) ; } public ngAfterContentChecked ( ) { this . tagObjects [ 0 ] . instance = this . childItems ; this . containerContext . ngAfterContentChecked ( this ) ; } public registerEvents : ( eventList : string [ ] ) => void ; public addTwoWay : ( propList : string [ ] ) => void ; }