/*! * 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 DevExpress from 'devextreme/bundles/dx.all'; import { NestedOptionHost } from '../../core/nested-option'; import { NestedOption } from '../../core/nested-option'; import { DxiConstantLineComponent } from './constant-line-dxi'; import { DxiStripComponent } from './strip-dxi'; @Component({ selector: 'dxo-value-axis', template: '', styles: [''], providers: [NestedOptionHost] }) export class DxoValueAxisComponent extends NestedOption { @Input() get allowDecimals(): boolean { return this._getOption('allowDecimals'); } set allowDecimals(value: boolean) { this._setOption('allowDecimals', value); } @Input() get axisDivisionFactor(): number { return this._getOption('axisDivisionFactor'); } set axisDivisionFactor(value: number) { this._setOption('axisDivisionFactor', value); } @Input() get categories(): Array { return this._getOption('categories'); } set categories(value: Array) { this._setOption('categories', value); } @Input() get color(): string { return this._getOption('color'); } set color(value: string) { this._setOption('color', value); } @Input() get constantLines(): Array { return this._getOption('constantLines'); } set constantLines(value: Array) { this._setOption('constantLines', value); } @Input() get constantLineStyle(): any { return this._getOption('constantLineStyle'); } set constantLineStyle(value: any) { this._setOption('constantLineStyle', value); } @Input() get discreteAxisDivisionMode(): string { return this._getOption('discreteAxisDivisionMode'); } set discreteAxisDivisionMode(value: string) { this._setOption('discreteAxisDivisionMode', value); } @Input() get endOnTick(): boolean { return this._getOption('endOnTick'); } set endOnTick(value: boolean) { this._setOption('endOnTick', value); } @Input() get grid(): any { return this._getOption('grid'); } set grid(value: any) { this._setOption('grid', value); } @Input() get inverted(): boolean { return this._getOption('inverted'); } set inverted(value: boolean) { this._setOption('inverted', value); } @Input() get label(): any { return this._getOption('label'); } set label(value: any) { this._setOption('label', value); } @Input() get logarithmBase(): number { return this._getOption('logarithmBase'); } set logarithmBase(value: number) { this._setOption('logarithmBase', value); } @Input() get maxValueMargin(): number { return this._getOption('maxValueMargin'); } set maxValueMargin(value: number) { this._setOption('maxValueMargin', value); } @Input() get minorGrid(): any { return this._getOption('minorGrid'); } set minorGrid(value: any) { this._setOption('minorGrid', value); } @Input() get minorTick(): any { return this._getOption('minorTick'); } set minorTick(value: any) { this._setOption('minorTick', value); } @Input() get minorTickCount(): number { return this._getOption('minorTickCount'); } set minorTickCount(value: number) { this._setOption('minorTickCount', value); } @Input() get minorTickInterval(): number| string| { days?: number, hours?: number, milliseconds?: number, minutes?: number, months?: number, quarters?: number, seconds?: number, weeks?: number, years?: number } { return this._getOption('minorTickInterval'); } set minorTickInterval(value: number| string| { days?: number, hours?: number, milliseconds?: number, minutes?: number, months?: number, quarters?: number, seconds?: number, weeks?: number, years?: number }) { this._setOption('minorTickInterval', value); } @Input() get minValueMargin(): number { return this._getOption('minValueMargin'); } set minValueMargin(value: number) { this._setOption('minValueMargin', value); } @Input() get opacity(): number { return this._getOption('opacity'); } set opacity(value: number) { this._setOption('opacity', value); } @Input() get setTicksAtUnitBeginning(): boolean { return this._getOption('setTicksAtUnitBeginning'); } set setTicksAtUnitBeginning(value: boolean) { this._setOption('setTicksAtUnitBeginning', value); } @Input() get showZero(): boolean { return this._getOption('showZero'); } set showZero(value: boolean) { this._setOption('showZero', value); } @Input() get strips(): Array { return this._getOption('strips'); } set strips(value: Array) { this._setOption('strips', value); } @Input() get stripStyle(): any { return this._getOption('stripStyle'); } set stripStyle(value: any) { this._setOption('stripStyle', value); } @Input() get tick(): any { return this._getOption('tick'); } set tick(value: any) { this._setOption('tick', value); } @Input() get tickInterval(): number| string| { days?: number, hours?: number, milliseconds?: number, minutes?: number, months?: number, quarters?: number, seconds?: number, weeks?: number, years?: number } { return this._getOption('tickInterval'); } set tickInterval(value: number| string| { days?: number, hours?: number, milliseconds?: number, minutes?: number, months?: number, quarters?: number, seconds?: number, weeks?: number, years?: number }) { this._setOption('tickInterval', value); } @Input() get type(): string { return this._getOption('type'); } set type(value: string) { this._setOption('type', value); } @Input() get valueMarginsEnabled(): boolean { return this._getOption('valueMarginsEnabled'); } set valueMarginsEnabled(value: boolean) { this._setOption('valueMarginsEnabled', value); } @Input() get valueType(): string { return this._getOption('valueType'); } set valueType(value: string) { this._setOption('valueType', value); } @Input() get visible(): boolean { return this._getOption('visible'); } set visible(value: boolean) { this._setOption('visible', value); } @Input() get width(): number { return this._getOption('width'); } set width(value: number) { this._setOption('width', value); } @Input() get max(): number { return this._getOption('max'); } set max(value: number) { this._setOption('max', value); } @Input() get min(): number { return this._getOption('min'); } set min(value: number) { this._setOption('min', value); } protected get _optionPath() { return 'valueAxis'; } @ContentChildren(forwardRef(() => DxiConstantLineComponent)) get constantLinesChildren(): QueryList { return this._getOption('constantLines'); } set constantLinesChildren(value) { this.setChildren('constantLines', value); } @ContentChildren(forwardRef(() => DxiStripComponent)) get stripsChildren(): QueryList { return this._getOption('strips'); } set stripsChildren(value) { this.setChildren('strips', value); } constructor(@SkipSelf() @Host() parentOptionHost: NestedOptionHost, @Host() optionHost: NestedOptionHost) { super(); parentOptionHost.setNestedOption(this); optionHost.setHost(this, this._fullOptionPath.bind(this)); } } @NgModule({ declarations: [ DxoValueAxisComponent ], exports: [ DxoValueAxisComponent ], }) export class DxoValueAxisModule { }