/*! * 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 { DxiRangeComponent } from './range-dxi'; @Component({ selector: 'dxo-range-container', template: '', styles: [''], providers: [NestedOptionHost] }) export class DxoRangeContainerComponent extends NestedOption { @Input() get backgroundColor(): string { return this._getOption('backgroundColor'); } set backgroundColor(value: string) { this._setOption('backgroundColor', value); } @Input() get offset(): number { return this._getOption('offset'); } set offset(value: number) { this._setOption('offset', value); } @Input() get orientation(): string { return this._getOption('orientation'); } set orientation(value: string) { this._setOption('orientation', value); } @Input() get palette(): string| Array { return this._getOption('palette'); } set palette(value: string| Array) { this._setOption('palette', value); } @Input() get ranges(): Array { return this._getOption('ranges'); } set ranges(value: Array) { this._setOption('ranges', value); } @Input() get width(): number| { end?: number, start?: number } { return this._getOption('width'); } set width(value: number| { end?: number, start?: number }) { this._setOption('width', value); } @Input() get horizontalOrientation(): string { return this._getOption('horizontalOrientation'); } set horizontalOrientation(value: string) { this._setOption('horizontalOrientation', value); } @Input() get verticalOrientation(): string { return this._getOption('verticalOrientation'); } set verticalOrientation(value: string) { this._setOption('verticalOrientation', value); } protected get _optionPath() { return 'rangeContainer'; } @ContentChildren(forwardRef(() => DxiRangeComponent)) get rangesChildren(): QueryList { return this._getOption('ranges'); } set rangesChildren(value) { this.setChildren('ranges', value); } constructor(@SkipSelf() @Host() parentOptionHost: NestedOptionHost, @Host() optionHost: NestedOptionHost) { super(); parentOptionHost.setNestedOption(this); optionHost.setHost(this, this._fullOptionPath.bind(this)); } } @NgModule({ declarations: [ DxoRangeContainerComponent ], exports: [ DxoRangeContainerComponent ], }) export class DxoRangeContainerModule { }