/*! * devextreme-angular-test * Version: 17.2.8 * Build date: Mon Feb 05 2018 * * Copyright (c) 2012 - 2018 Developer Express Inc. ALL RIGHTS RESERVED * * This software may be modified and distributed under the terms * of the MIT license. See the LICENSE file in the root of the project for details. * * https://github.com/DevExpress/devextreme-angular */ import { Component, NgModule, Host, SkipSelf, Input } from '@angular/core'; import { NestedOptionHost } from '../../core/nested-option'; import { NestedOption } from '../../core/nested-option'; @Component({ selector: 'dxo-adapter', template: '', styles: [''], providers: [NestedOptionHost] }) export class DxoAdapterComponent extends NestedOption { @Input() get applyValidationResults(): Function { return this._getOption('applyValidationResults'); } set applyValidationResults(value: Function) { this._setOption('applyValidationResults', value); } @Input() get bypass(): Function { return this._getOption('bypass'); } set bypass(value: Function) { this._setOption('bypass', value); } @Input() get focus(): Function { return this._getOption('focus'); } set focus(value: Function) { this._setOption('focus', value); } @Input() get getValue(): Function { return this._getOption('getValue'); } set getValue(value: Function) { this._setOption('getValue', value); } @Input() get reset(): Function { return this._getOption('reset'); } set reset(value: Function) { this._setOption('reset', value); } @Input() get validationRequestsCallbacks(): any| Array { return this._getOption('validationRequestsCallbacks'); } set validationRequestsCallbacks(value: any| Array) { this._setOption('validationRequestsCallbacks', value); } protected get _optionPath() { return 'adapter'; } constructor(@SkipSelf() @Host() parentOptionHost: NestedOptionHost, @Host() optionHost: NestedOptionHost) { super(); parentOptionHost.setNestedOption(this); optionHost.setHost(this, this._fullOptionPath.bind(this)); } } @NgModule({ declarations: [ DxoAdapterComponent ], exports: [ DxoAdapterComponent ], }) export class DxoAdapterModule { }