import { Component , ElementRef , ViewContainerRef , ValueProvider , Renderer2 , Injector , ChangeDetectionStrategy , forwardRef , ContentChild } from '@angular/core' ; import { NG_VALUE_ACCESSOR } from '@angular/forms' ; import { ComponentBase , IComponentBase , applyMixins , ComponentMixins , PropertyCollectionInfo , FormBase , setValue } from '@syncfusion/ej2-angular-base' ; import { InPlaceEditor } from '@syncfusion/ej2-inplace-editor' ; import { Template } from '@syncfusion/ej2-angular-base' ; export const inputs = [ 'actionOnBlur' , 'adaptor' , 'cancelButton' , 'cssClass' , 'disabled' , 'editableOn' , 'emptyText' , 'enableEditMode' , 'enableHtmlParse' , 'enableHtmlSanitizer' , 'enablePersistence' , 'enableRtl' , 'locale' , 'mode' , 'model' , 'name' , 'popupSettings' , 'primaryKey' , 'saveButton' , 'showButtons' , 'submitOnEnter' , 'template' , 'textOption' , 'type' , 'url' , 'validationRules' , 'value' ] ; export const outputs = [ 'focus' , 'blur' , 'actionBegin' , 'actionFailure' , 'actionSuccess' , 'beforeSanitizeHtml' , 'beginEdit' , 'cancelClick' , 'change' , 'created' , 'destroyed' , 'endEdit' , 'submitClick' , 'validating' , 'valueChange' ] ; export const twoWays = [ 'value' ] ; /**
 * `ejs-inplaceeditor` represents the Angular InPlaceEditor Component.
 * ```html
 * <ejs-inplaceeditor></ejs-inplaceeditor>
 * ```
 */ @ Component ( { selector : 'ejs-inplaceeditor' , inputs : inputs , outputs : outputs , template : '' , changeDetection : ChangeDetectionStrategy . OnPush , providers : [ { provide : NG_VALUE_ACCESSOR , useExisting : forwardRef ( ( ) => InPlaceEditorComponent ) , multi : true } ] , queries : { } } ) @ ComponentMixins ( [ ComponentBase , FormBase ] ) export class InPlaceEditorComponent extends InPlaceEditor implements IComponentBase { public formCompContext : any ; public formContext : any ; public tagObjects : any ; actionBegin : any ; actionFailure : any ; actionSuccess : any ; beforeSanitizeHtml : any ; beginEdit : any ; cancelClick : any ; change : any ; created : any ; destroyed : any ; endEdit : any ; submitClick : any ; validating : any ; public valueChange : any ; default blazortype @ ContentChild ( 'template' ) @ Template ( ) public template : any ; public focus : any ; public blur : any ; constructor ( private ngEle , private srenderer , private viewContainerRef , private injector ) { super ( ) ; this . element = this . ngEle . nativeElement ; this . injectedModules = this . injectedModules || [ ] ; try { let mod = this . injector . get ( 'InPlace-EditorAutoComplete' ) ; if ( this . injectedModules . indexOf ( mod ) === - 1 ) { this . injectedModules . push ( mod ) ; } } catch { } try { let mod = this . injector . get ( 'InPlace-EditorColorPicker' ) ; if ( this . injectedModules . indexOf ( mod ) === - 1 ) { this . injectedModules . push ( mod ) ; } } catch { } try { let mod = this . injector . get ( 'InPlace-EditorComboBox' ) ; if ( this . injectedModules . indexOf ( mod ) === - 1 ) { this . injectedModules . push ( mod ) ; } } catch { } try { let mod = this . injector . get ( 'InPlace-EditorDateRangePicker' ) ; if ( this . injectedModules . indexOf ( mod ) === - 1 ) { this . injectedModules . push ( mod ) ; } } catch { } try { let mod = this . injector . get ( 'InPlace-EditorMultiSelect' ) ; if ( this . injectedModules . indexOf ( mod ) === - 1 ) { this . injectedModules . push ( mod ) ; } } catch { } try { let mod = this . injector . get ( 'InPlace-EditorRte' ) ; if ( this . injectedModules . indexOf ( mod ) === - 1 ) { this . injectedModules . push ( mod ) ; } } catch { } try { let mod = this . injector . get ( 'InPlace-EditorSlider' ) ; if ( this . injectedModules . indexOf ( mod ) === - 1 ) { this . injectedModules . push ( mod ) ; } } catch { } try { let mod = this . injector . get ( 'InPlace-EditorTimePicker' ) ; if ( this . injectedModules . indexOf ( mod ) === - 1 ) { this . injectedModules . push ( mod ) ; } } catch { } this . registerEvents ( outputs ) ; this . addTwoWay . call ( this , twoWays ) ; setValue ( 'currentInstance' , this , this . viewContainerRef ) ; this . formContext = new FormBase ( ) ; this . formCompContext = new ComponentBase ( ) ; } public registerOnChange ( registerFunction ) { } public registerOnTouched ( registerFunction ) { } public writeValue ( value ) { } public setDisabledState ( disabled ) { } public ngOnInit ( ) { this . formCompContext . ngOnInit ( this ) ; } public ngAfterViewInit ( ) { this . formContext . ngAfterViewInit ( this ) ; } public ngOnDestroy ( ) { this . formCompContext . ngOnDestroy ( this ) ; } public ngAfterContentChecked ( ) { this . formCompContext . ngAfterContentChecked ( this ) ; } public registerEvents : ( eventList : string [ ] ) => void ; public addTwoWay : ( propList : string [ ] ) => void ; }