/*! * 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, ContentChildren, forwardRef, QueryList } from '@angular/core'; import { NestedOptionHost } from '../../core/nested-option'; import { NestedOption } from '../../core/nested-option'; import { DxiSeriesComponent } from './series-dxi'; @Component({ selector: 'dxo-chart', template: '', styles: [''], providers: [NestedOptionHost] }) export class DxoChartComponent extends NestedOption { @Input() get barWidth(): number { return this._getOption('barWidth'); } set barWidth(value: number) { this._setOption('barWidth', value); } @Input() get bottomIndent(): number { return this._getOption('bottomIndent'); } set bottomIndent(value: number) { this._setOption('bottomIndent', value); } @Input() get commonSeriesSettings(): any { return this._getOption('commonSeriesSettings'); } set commonSeriesSettings(value: any) { this._setOption('commonSeriesSettings', value); } @Input() get dataPrepareSettings(): any { return this._getOption('dataPrepareSettings'); } set dataPrepareSettings(value: any) { this._setOption('dataPrepareSettings', value); } @Input() get equalBarWidth(): boolean { return this._getOption('equalBarWidth'); } set equalBarWidth(value: boolean) { this._setOption('equalBarWidth', value); } @Input() get negativesAsZeroes(): boolean { return this._getOption('negativesAsZeroes'); } set negativesAsZeroes(value: boolean) { this._setOption('negativesAsZeroes', value); } @Input() get palette(): string| Array { return this._getOption('palette'); } set palette(value: string| Array) { this._setOption('palette', value); } @Input() get series(): any| Array { return this._getOption('series'); } set series(value: any| Array) { this._setOption('series', value); } @Input() get seriesTemplate(): any { return this._getOption('seriesTemplate'); } set seriesTemplate(value: any) { this._setOption('seriesTemplate', value); } @Input() get topIndent(): number { return this._getOption('topIndent'); } set topIndent(value: number) { this._setOption('topIndent', value); } @Input() get useAggregation(): boolean { return this._getOption('useAggregation'); } set useAggregation(value: boolean) { this._setOption('useAggregation', value); } @Input() get valueAxis(): any { return this._getOption('valueAxis'); } set valueAxis(value: any) { this._setOption('valueAxis', value); } protected get _optionPath() { return 'chart'; } @ContentChildren(forwardRef(() => DxiSeriesComponent)) get seriesChildren(): QueryList { return this._getOption('series'); } set seriesChildren(value) { this.setChildren('series', value); } constructor(@SkipSelf() @Host() parentOptionHost: NestedOptionHost, @Host() optionHost: NestedOptionHost) { super(); parentOptionHost.setNestedOption(this); optionHost.setHost(this, this._fullOptionPath.bind(this)); } } @NgModule({ declarations: [ DxoChartComponent ], exports: [ DxoChartComponent ], }) export class DxoChartModule { }