/*! * 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 */ /* tslint:disable:use-input-property-decorator */ import { Component, NgModule, Host, SkipSelf, ContentChildren, forwardRef, QueryList } from '@angular/core'; import { NestedOptionHost } from '../../core/nested-option'; import { DxoFormOptions } from './base/form-options'; import { DxiItemComponent } from './item-dxi'; @Component({ selector: 'dxo-form', template: '', styles: [''], providers: [NestedOptionHost], inputs: [ 'accessKey', 'activeStateEnabled', 'alignItemLabels', 'alignItemLabelsInAllGroups', 'colCount', 'colCountByScreen', 'customizeItem', 'disabled', 'elementAttr', 'focusStateEnabled', 'formData', 'height', 'hint', 'hoverStateEnabled', 'items', 'labelLocation', 'minColWidth', 'onContentReady', 'onDisposing', 'onEditorEnterKey', 'onFieldDataChanged', 'onInitialized', 'onOptionChanged', 'optionalMark', 'readOnly', 'requiredMark', 'requiredMessage', 'rtlEnabled', 'screenByWidth', 'scrollingEnabled', 'showColonAfterLabel', 'showOptionalMark', 'showRequiredMark', 'showValidationSummary', 'tabIndex', 'validationGroup', 'visible', 'width' ] }) export class DxoFormComponent extends DxoFormOptions { protected get _optionPath() { return 'form'; } @ContentChildren(forwardRef(() => DxiItemComponent)) get itemsChildren(): QueryList { return this._getOption('items'); } set itemsChildren(value) { this.setChildren('items', value); } constructor(@SkipSelf() @Host() parentOptionHost: NestedOptionHost, @Host() optionHost: NestedOptionHost) { super(); parentOptionHost.setNestedOption(this); optionHost.setHost(this, this._fullOptionPath.bind(this)); } } @NgModule({ declarations: [ DxoFormComponent ], exports: [ DxoFormComponent ], }) export class DxoFormModule { }