import {Component,ViewChild,ElementRef,ComponentFactoryResolver,ViewContainerRef,forwardRef,ContentChildren,QueryList} from '@angular/core';
import { base } from './base';
// Ext Class - Ext.Editor
export class editorMetaData {
public static XTYPE: string = 'editor';
public static INPUTNAMES: string[] = [
'actions',
'activeChildTabIndex',
'activeCounter',
'activeItem',
'alignment',
'alignOnScroll',
'alignTarget',
'allowBlur',
'allowFocusingDisabledChildren',
'alwaysOnTop',
'anchor',
'anchorSize',
'animateShadow',
'ariaAttributes',
'ariaDescribedBy',
'ariaLabel',
'ariaLabelledBy',
'autoDestroy',
'autoEl',
'autoRender',
'autoScroll',
'autoShow',
'autoSize',
'baseCls',
'bind',
'border',
'bubbleEvents',
'cancelOnEsc',
'childEls',
'cls',
'columnWidth',
'completeOnEnter',
'componentCls',
'componentLayout',
'constrain',
'constraintInsets',
'constrainTo',
'contentEl',
'controller',
'data',
'defaultAlign',
'defaultFocus',
'defaultListenerScope',
'defaults',
'defaultType',
'detachOnRemove',
'disabled',
'disabledCls',
'dock',
'draggable',
'field',
'fixed',
'flex',
'floating',
'focusableContainer',
'focusCls',
'focusOnToFront',
'formBind',
'frame',
'height',
'hidden',
'hideEl',
'hideMode',
'html',
'id',
'ignoreNoChange',
'inactiveChildTabIndex',
'itemId',
'items',
'keyMap',
'keyMapEnabled',
'keyMapTarget',
'layout',
'liquidLayout',
'listeners',
'liveDrag',
'loader',
'margin',
'maskDefaults',
'maskElement',
'maxHeight',
'maxWidth',
'minHeight',
'minWidth',
'modal',
'modelValidation',
'nameable',
'nameHolder',
'offsets',
'overCls',
'overflowX',
'overflowY',
'padding',
'parentEl',
'plugins',
'publishes',
'reference',
'referenceHolder',
'region',
'renderConfig',
'renderData',
'renderSelectors',
'renderTo',
'renderTpl',
'resetFocusPosition',
'resizable',
'resizeHandles',
'revertInvalid',
'saveDelay',
'scrollable',
'session',
'shadow',
'shadowOffset',
'shareableName',
'shim',
'shrinkWrap',
'stateEvents',
'stateful',
'stateId',
'style',
'suspendLayout',
'swallowKeys',
'tabGuard',
'tabIndex',
'toFrontOnShow',
'touchAction',
'tpl',
'tplWriteMode',
'twoWayBindable',
'ui',
'uiCls',
'updateEl',
'userCls',
'value',
'viewModel',
'weight',
'width',
'xtype',
'flex',
'platformConfig',
'responsiveConfig',
'fitToParent',
'config'
];
public static OUTPUTS: any[] = [
{name:'activate',parameters:'editor'},
{name:'add',parameters:'editor,component,index'},
{name:'added',parameters:'editor,container,pos'},
{name:'afterlayout',parameters:'editor,layout'},
{name:'afterlayoutanimation',parameters:'editor'},
{name:'afterrender',parameters:'editor'},
{name:'beforeactivate',parameters:'editor'},
{name:'beforeadd',parameters:'editor,component,index'},
{name:'beforecomplete',parameters:'editor,value,startValue'},
{name:'beforedeactivate',parameters:'editor'},
{name:'beforedestroy',parameters:'editor'},
{name:'beforehide',parameters:'editor'},
{name:'beforeremove',parameters:'editor,component'},
{name:'beforerender',parameters:'editor'},
{name:'beforeshow',parameters:'editor'},
{name:'beforestartedit',parameters:'editor,boundEl,value'},
{name:'beforestaterestore',parameters:'editor,state'},
{name:'beforestatesave',parameters:'editor,state'},
{name:'blur',parameters:'editor,event'},
{name:'boxready',parameters:'editor,width,height'},
{name:'canceledit',parameters:'editor,value,startValue'},
{name:'childmove',parameters:'editor,component,prevIndex,newIndex'},
{name:'complete',parameters:'editor,value,startValue'},
{name:'deactivate',parameters:'editor'},
{name:'destroy',parameters:'editor'},
{name:'disable',parameters:'editor'},
{name:'enable',parameters:'editor'},
{name:'focus',parameters:'editor,event'},
{name:'focusenter',parameters:'editor,event'},
{name:'focusleave',parameters:'editor,event'},
{name:'hide',parameters:'editor'},
{name:'move',parameters:'editor,x,y'},
{name:'remove',parameters:'editor,component'},
{name:'removed',parameters:'editor,ownerCt'},
{name:'render',parameters:'editor'},
{name:'resize',parameters:'editor,width,height,oldWidth,oldHeight'},
{name:'show',parameters:'editor'},
{name:'specialkey',parameters:'editor,field,event'},
{name:'startedit',parameters:'editor,boundEl,value'},
{name:'staterestore',parameters:'editor,state'},
{name:'statesave',parameters:'editor,state'},
{name:'ready',parameters:''}
];
public static OUTPUTNAMES: string[] = [
'activate',
'add',
'added',
'afterlayout',
'afterlayoutanimation',
'afterrender',
'beforeactivate',
'beforeadd',
'beforecomplete',
'beforedeactivate',
'beforedestroy',
'beforehide',
'beforeremove',
'beforerender',
'beforeshow',
'beforestartedit',
'beforestaterestore',
'beforestatesave',
'blur',
'boxready',
'canceledit',
'childmove',
'complete',
'deactivate',
'destroy',
'disable',
'enable',
'focus',
'focusenter',
'focusleave',
'hide',
'move',
'remove',
'removed',
'render',
'resize',
'show',
'specialkey',
'startedit',
'staterestore',
'statesave',
'ready'
];
}
@Component({
selector: editorMetaData.XTYPE,
inputs: editorMetaData.INPUTNAMES,
outputs: editorMetaData.OUTPUTNAMES,
providers: [{provide: base, useExisting: forwardRef(() => editor)}],
template: ''
})
export class editor extends base {
constructor(eRef:ElementRef,resolver:ComponentFactoryResolver,vcRef:ViewContainerRef) {
super(eRef,resolver,vcRef,editorMetaData);
}
//@ContentChildren(base,{read:ViewContainerRef}) extbaseRef:QueryList;
@ContentChildren(base,{read: base}) extbaseRef: QueryList;
@ViewChild('dynamic',{read:ViewContainerRef}) dynamicRef:ViewContainerRef;
ngAfterContentInit() {this.AfterContentInit(this.extbaseRef);}
ngOnInit() {this.OnInit(this.dynamicRef,editorMetaData);}
}