/*! * 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 { DxoPivotGridDataSource } from './base/pivot-grid-data-source'; import { DxiFieldComponent } from './field-dxi'; @Component({ selector: 'dxo-data-source', template: '', styles: [''], providers: [NestedOptionHost], inputs: [ 'fields', 'filter', 'onChanged', 'onFieldsPrepared', 'onLoadError', 'onLoadingChanged', 'remoteOperations', 'retrieveFields', 'store' ] }) export class DxoDataSourceComponent extends DxoPivotGridDataSource { protected get _optionPath() { return 'dataSource'; } @ContentChildren(forwardRef(() => DxiFieldComponent)) get fieldsChildren(): QueryList { return this._getOption('fields'); } set fieldsChildren(value) { this.setChildren('fields', value); } constructor(@SkipSelf() @Host() parentOptionHost: NestedOptionHost, @Host() optionHost: NestedOptionHost) { super(); parentOptionHost.setNestedOption(this); optionHost.setHost(this, this._fullOptionPath.bind(this)); if ((console) && (console.warn)) { console.warn('The nested \'dxo-data-source\' component is deprecated in 17.2. ' + 'Use the \'dataSource\' option instead. ' + 'See:\nhttps://github.com/DevExpress/devextreme-angular/blob/master/CHANGELOG.md#17.2.3' ); } } } @NgModule({ declarations: [ DxoDataSourceComponent ], exports: [ DxoDataSourceComponent ], }) export class DxoDataSourceModule { }