| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716 |
- /*!
- * devextreme-angular
- * Version: 19.1.16
- * Build date: Tue Oct 18 2022
- *
- * Copyright (c) 2012 - 2022 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 { TransferState } from '@angular/platform-browser';
- import { ElementRef, NgZone, OnDestroy, EventEmitter, OnChanges, DoCheck, SimpleChanges } from '@angular/core';
- import DevExpress from 'devextreme/bundles/dx.all';
- import DxRangeSelector from 'devextreme/viz/range_selector';
- import { ControlValueAccessor } from '@angular/forms';
- import { DxComponent } from '../core/component';
- import { DxTemplateHost } from '../core/template-host';
- import { NestedOptionHost } from '../core/nested-option';
- import { WatcherHelper } from '../core/watcher-helper';
- import { IterableDifferHelper } from '../core/iterable-differ-helper';
- /**
- * The RangeSelector is a widget that allows a user to select a range of values on a scale.
- */
- export declare class DxRangeSelectorComponent extends DxComponent implements OnDestroy, ControlValueAccessor, OnChanges, DoCheck {
- private _watcherHelper;
- private _idh;
- instance: DxRangeSelector;
- /**
- * Specifies the options for the range selector's background.
- */
- background: {
- color?: string;
- image?: {
- location?: string;
- url?: string;
- };
- visible?: boolean;
- };
- /**
- * Specifies the RangeSelector's behavior options.
- */
- behavior: {
- allowSlidersSwap?: boolean;
- animationEnabled?: boolean;
- callValueChanged?: string;
- manualRangeSelectionEnabled?: boolean;
- moveSelectedRangeByClick?: boolean;
- snapToTicks?: boolean;
- };
- /**
- * Specifies the options required to display a chart as the range selector's background.
- */
- chart: {
- barGroupPadding?: number;
- barGroupWidth?: number;
- barWidth?: number;
- bottomIndent?: number;
- commonSeriesSettings?: any;
- dataPrepareSettings?: {
- checkTypeForAllData?: boolean;
- convertToAxisDataType?: boolean;
- sortingMethod?: boolean | Function;
- };
- equalBarWidth?: boolean;
- maxBubbleSize?: number;
- minBubbleSize?: number;
- negativesAsZeroes?: boolean;
- palette?: string | Array<string>;
- paletteExtensionMode?: string;
- series?: any | Array<any>;
- seriesTemplate?: {
- customizeSeries?: Function;
- nameField?: string;
- };
- topIndent?: number;
- useAggregation?: boolean;
- valueAxis?: {
- inverted?: boolean;
- logarithmBase?: number;
- max?: number;
- min?: number;
- type?: string;
- valueType?: string;
- };
- };
- /**
- * Specifies the color of the parent page element.
- */
- containerBackgroundColor: string;
- /**
- * Specifies a data source for the scale values and for the chart at the background.
- */
- dataSource: DevExpress.data.DataSource | DevExpress.data.DataSourceOptions | string | Array<any>;
- /**
- * Specifies the data source field that provides data for the scale.
- */
- dataSourceField: string;
- /**
- * Specifies whether the widget responds to the user interaction.
- */
- disabled: boolean;
- /**
- * Specifies the attributes to be attached to the widget's root element.
- */
- elementAttr: any;
- /**
- * Configures the exporting and printing features.
- */
- export: {
- backgroundColor?: string;
- enabled?: boolean;
- fileName?: string;
- formats?: Array<string>;
- margin?: number;
- printingEnabled?: boolean;
- proxyUrl?: string;
- };
- /**
- * Range selector's indent options.
- */
- indent: {
- left?: number;
- right?: number;
- };
- /**
- * Configures the loading indicator.
- */
- loadingIndicator: {
- backgroundColor?: string;
- enabled?: boolean;
- font?: DevExpress.viz.Font;
- show?: boolean;
- text?: string;
- };
- /**
- * Generates space around the widget.
- */
- margin: {
- bottom?: number;
- left?: number;
- right?: number;
- top?: number;
- };
- /**
- * Notifies the widget that it is embedded into an HTML page that uses a tag modifying the path.
- */
- pathModified: boolean;
- /**
- * Specifies whether to redraw the widget when the size of the parent browser window changes or a mobile device rotates.
- */
- redrawOnResize: boolean;
- /**
- * Switches the widget to a right-to-left representation.
- */
- rtlEnabled: boolean;
- /**
- * Specifies options of the range selector's scale.
- */
- scale: {
- aggregationGroupWidth?: number;
- aggregationInterval?: number | string | {
- days?: number;
- hours?: number;
- milliseconds?: number;
- minutes?: number;
- months?: number;
- quarters?: number;
- seconds?: number;
- weeks?: number;
- years?: number;
- };
- allowDecimals?: boolean;
- breaks?: Array<DevExpress.viz.ScaleBreak>;
- breakStyle?: {
- color?: string;
- line?: string;
- width?: number;
- };
- categories?: Array<number | string | Date>;
- endOnTick?: boolean;
- endValue?: Date | number | string;
- holidays?: Array<Date | string | number>;
- label?: {
- customizeText?: Function;
- font?: DevExpress.viz.Font;
- format?: DevExpress.ui.format | string;
- overlappingBehavior?: string;
- topIndent?: number;
- visible?: boolean;
- };
- logarithmBase?: number;
- marker?: {
- label?: {
- customizeText?: Function;
- format?: DevExpress.ui.format | string;
- };
- separatorHeight?: number;
- textLeftIndent?: number;
- textTopIndent?: number;
- topIndent?: number;
- visible?: boolean;
- };
- maxRange?: number | string | {
- days?: number;
- hours?: number;
- milliseconds?: number;
- minutes?: number;
- months?: number;
- quarters?: number;
- seconds?: number;
- weeks?: number;
- years?: number;
- };
- minorTick?: {
- color?: string;
- opacity?: number;
- visible?: boolean;
- width?: number;
- };
- minorTickCount?: number;
- minorTickInterval?: number | string | {
- days?: number;
- hours?: number;
- milliseconds?: number;
- minutes?: number;
- months?: number;
- quarters?: number;
- seconds?: number;
- weeks?: number;
- years?: number;
- };
- minRange?: number | string | {
- days?: number;
- hours?: number;
- milliseconds?: number;
- minutes?: number;
- months?: number;
- quarters?: number;
- seconds?: number;
- weeks?: number;
- years?: number;
- };
- placeholderHeight?: number;
- showCustomBoundaryTicks?: boolean;
- singleWorkdays?: Array<Date | string | number>;
- startValue?: Date | number | string;
- tick?: {
- color?: string;
- opacity?: number;
- width?: number;
- };
- tickInterval?: number | string | {
- days?: number;
- hours?: number;
- milliseconds?: number;
- minutes?: number;
- months?: number;
- quarters?: number;
- seconds?: number;
- weeks?: number;
- years?: number;
- };
- type?: string;
- valueType?: string;
- workdaysOnly?: boolean;
- workWeek?: Array<number>;
- };
- /**
- * Specifies the color of the selected range.
- */
- selectedRangeColor: string;
- /**
- * Specifies how the selected range should behave when data is updated. Applies only when the RangeSelector is bound to a data source.
- */
- selectedRangeUpdateMode: string;
- /**
- * Specifies range selector shutter options.
- */
- shutter: {
- color?: string;
- opacity?: number;
- };
- /**
- * Specifies the widget's size in pixels.
- */
- size: {
- height?: number;
- width?: number;
- };
- /**
- * Specifies the appearance of the range selector's slider handles.
- */
- sliderHandle: {
- color?: string;
- opacity?: number;
- width?: number;
- };
- /**
- * Defines the options of the range selector slider markers.
- */
- sliderMarker: {
- color?: string;
- customizeText?: Function;
- font?: DevExpress.viz.Font;
- format?: DevExpress.ui.format | string;
- invalidRangeColor?: string;
- paddingLeftRight?: number;
- paddingTopBottom?: number;
- placeholderHeight?: number;
- visible?: boolean;
- };
- /**
- * Sets the name of the theme the widget uses.
- */
- theme: string;
- /**
- * Configures the widget's title.
- */
- title: string | {
- font?: DevExpress.viz.Font;
- horizontalAlignment?: string;
- margin?: number | {
- bottom?: number;
- left?: number;
- right?: number;
- top?: number;
- };
- placeholderSize?: number;
- subtitle?: string | {
- font?: DevExpress.viz.Font;
- offset?: number;
- text?: string;
- textOverflow?: string;
- wordWrap?: string;
- };
- text?: string;
- textOverflow?: string;
- verticalAlignment?: string;
- wordWrap?: string;
- };
- /**
- * The selected range (initial or current). Equals the entire scale when not set.
- */
- value: DevExpress.viz.VizRange | Array<number | string | Date>;
- /**
- * A function that is executed before the widget is disposed of.
- */
- onDisposing: EventEmitter<any>;
- /**
- * A function that is executed when the widget's rendering has finished.
- */
- onDrawn: EventEmitter<any>;
- /**
- * A function that is executed after the widget is exported.
- */
- onExported: EventEmitter<any>;
- /**
- * A function that is executed before the widget is exported.
- */
- onExporting: EventEmitter<any>;
- /**
- * A function that is executed before a file with exported widget is saved to the user's local storage.
- */
- onFileSaving: EventEmitter<any>;
- /**
- * A function that is executed when an error or warning occurs.
- */
- onIncidentOccurred: EventEmitter<any>;
- /**
- * A function used in JavaScript frameworks to save the widget instance.
- */
- onInitialized: EventEmitter<any>;
- /**
- * A function that is executed after a widget option is changed.
- */
- onOptionChanged: EventEmitter<any>;
- /**
- * A function that is executed after the widget's value is changed.
- */
- onValueChanged: EventEmitter<any>;
- /**
- * This member supports the internal infrastructure and is not intended to be used directly from your code.
- */
- backgroundChange: EventEmitter<{
- color?: string;
- image?: {
- location?: string;
- url?: string;
- };
- visible?: boolean;
- }>;
- /**
- * This member supports the internal infrastructure and is not intended to be used directly from your code.
- */
- behaviorChange: EventEmitter<{
- allowSlidersSwap?: boolean;
- animationEnabled?: boolean;
- callValueChanged?: string;
- manualRangeSelectionEnabled?: boolean;
- moveSelectedRangeByClick?: boolean;
- snapToTicks?: boolean;
- }>;
- /**
- * This member supports the internal infrastructure and is not intended to be used directly from your code.
- */
- chartChange: EventEmitter<{
- barGroupPadding?: number;
- barGroupWidth?: number;
- barWidth?: number;
- bottomIndent?: number;
- commonSeriesSettings?: any;
- dataPrepareSettings?: {
- checkTypeForAllData?: boolean;
- convertToAxisDataType?: boolean;
- sortingMethod?: boolean | Function;
- };
- equalBarWidth?: boolean;
- maxBubbleSize?: number;
- minBubbleSize?: number;
- negativesAsZeroes?: boolean;
- palette?: string | Array<string>;
- paletteExtensionMode?: string;
- series?: any | Array<any>;
- seriesTemplate?: {
- customizeSeries?: Function;
- nameField?: string;
- };
- topIndent?: number;
- useAggregation?: boolean;
- valueAxis?: {
- inverted?: boolean;
- logarithmBase?: number;
- max?: number;
- min?: number;
- type?: string;
- valueType?: string;
- };
- }>;
- /**
- * This member supports the internal infrastructure and is not intended to be used directly from your code.
- */
- containerBackgroundColorChange: EventEmitter<string>;
- /**
- * This member supports the internal infrastructure and is not intended to be used directly from your code.
- */
- dataSourceChange: EventEmitter<DevExpress.data.DataSource | DevExpress.data.DataSourceOptions | string | Array<any>>;
- /**
- * This member supports the internal infrastructure and is not intended to be used directly from your code.
- */
- dataSourceFieldChange: EventEmitter<string>;
- /**
- * This member supports the internal infrastructure and is not intended to be used directly from your code.
- */
- disabledChange: EventEmitter<boolean>;
- /**
- * This member supports the internal infrastructure and is not intended to be used directly from your code.
- */
- elementAttrChange: EventEmitter<any>;
- /**
- * This member supports the internal infrastructure and is not intended to be used directly from your code.
- */
- exportChange: EventEmitter<{
- backgroundColor?: string;
- enabled?: boolean;
- fileName?: string;
- formats?: Array<string>;
- margin?: number;
- printingEnabled?: boolean;
- proxyUrl?: string;
- }>;
- /**
- * This member supports the internal infrastructure and is not intended to be used directly from your code.
- */
- indentChange: EventEmitter<{
- left?: number;
- right?: number;
- }>;
- /**
- * This member supports the internal infrastructure and is not intended to be used directly from your code.
- */
- loadingIndicatorChange: EventEmitter<{
- backgroundColor?: string;
- enabled?: boolean;
- font?: DevExpress.viz.Font;
- show?: boolean;
- text?: string;
- }>;
- /**
- * This member supports the internal infrastructure and is not intended to be used directly from your code.
- */
- marginChange: EventEmitter<{
- bottom?: number;
- left?: number;
- right?: number;
- top?: number;
- }>;
- /**
- * This member supports the internal infrastructure and is not intended to be used directly from your code.
- */
- pathModifiedChange: EventEmitter<boolean>;
- /**
- * This member supports the internal infrastructure and is not intended to be used directly from your code.
- */
- redrawOnResizeChange: EventEmitter<boolean>;
- /**
- * This member supports the internal infrastructure and is not intended to be used directly from your code.
- */
- rtlEnabledChange: EventEmitter<boolean>;
- /**
- * This member supports the internal infrastructure and is not intended to be used directly from your code.
- */
- scaleChange: EventEmitter<{
- aggregationGroupWidth?: number;
- aggregationInterval?: number | string | {
- days?: number;
- hours?: number;
- milliseconds?: number;
- minutes?: number;
- months?: number;
- quarters?: number;
- seconds?: number;
- weeks?: number;
- years?: number;
- };
- allowDecimals?: boolean;
- breaks?: Array<DevExpress.viz.ScaleBreak>;
- breakStyle?: {
- color?: string;
- line?: string;
- width?: number;
- };
- categories?: Array<number | string | Date>;
- endOnTick?: boolean;
- endValue?: Date | number | string;
- holidays?: Array<Date | string | number>;
- label?: {
- customizeText?: Function;
- font?: DevExpress.viz.Font;
- format?: DevExpress.ui.format | string;
- overlappingBehavior?: string;
- topIndent?: number;
- visible?: boolean;
- };
- logarithmBase?: number;
- marker?: {
- label?: {
- customizeText?: Function;
- format?: DevExpress.ui.format | string;
- };
- separatorHeight?: number;
- textLeftIndent?: number;
- textTopIndent?: number;
- topIndent?: number;
- visible?: boolean;
- };
- maxRange?: number | string | {
- days?: number;
- hours?: number;
- milliseconds?: number;
- minutes?: number;
- months?: number;
- quarters?: number;
- seconds?: number;
- weeks?: number;
- years?: number;
- };
- minorTick?: {
- color?: string;
- opacity?: number;
- visible?: boolean;
- width?: number;
- };
- minorTickCount?: number;
- minorTickInterval?: number | string | {
- days?: number;
- hours?: number;
- milliseconds?: number;
- minutes?: number;
- months?: number;
- quarters?: number;
- seconds?: number;
- weeks?: number;
- years?: number;
- };
- minRange?: number | string | {
- days?: number;
- hours?: number;
- milliseconds?: number;
- minutes?: number;
- months?: number;
- quarters?: number;
- seconds?: number;
- weeks?: number;
- years?: number;
- };
- placeholderHeight?: number;
- showCustomBoundaryTicks?: boolean;
- singleWorkdays?: Array<Date | string | number>;
- startValue?: Date | number | string;
- tick?: {
- color?: string;
- opacity?: number;
- width?: number;
- };
- tickInterval?: number | string | {
- days?: number;
- hours?: number;
- milliseconds?: number;
- minutes?: number;
- months?: number;
- quarters?: number;
- seconds?: number;
- weeks?: number;
- years?: number;
- };
- type?: string;
- valueType?: string;
- workdaysOnly?: boolean;
- workWeek?: Array<number>;
- }>;
- /**
- * This member supports the internal infrastructure and is not intended to be used directly from your code.
- */
- selectedRangeColorChange: EventEmitter<string>;
- /**
- * This member supports the internal infrastructure and is not intended to be used directly from your code.
- */
- selectedRangeUpdateModeChange: EventEmitter<string>;
- /**
- * This member supports the internal infrastructure and is not intended to be used directly from your code.
- */
- shutterChange: EventEmitter<{
- color?: string;
- opacity?: number;
- }>;
- /**
- * This member supports the internal infrastructure and is not intended to be used directly from your code.
- */
- sizeChange: EventEmitter<{
- height?: number;
- width?: number;
- }>;
- /**
- * This member supports the internal infrastructure and is not intended to be used directly from your code.
- */
- sliderHandleChange: EventEmitter<{
- color?: string;
- opacity?: number;
- width?: number;
- }>;
- /**
- * This member supports the internal infrastructure and is not intended to be used directly from your code.
- */
- sliderMarkerChange: EventEmitter<{
- color?: string;
- customizeText?: Function;
- font?: DevExpress.viz.Font;
- format?: DevExpress.ui.format | string;
- invalidRangeColor?: string;
- paddingLeftRight?: number;
- paddingTopBottom?: number;
- placeholderHeight?: number;
- visible?: boolean;
- }>;
- /**
- * This member supports the internal infrastructure and is not intended to be used directly from your code.
- */
- themeChange: EventEmitter<string>;
- /**
- * This member supports the internal infrastructure and is not intended to be used directly from your code.
- */
- titleChange: EventEmitter<string | {
- font?: DevExpress.viz.Font;
- horizontalAlignment?: string;
- margin?: number | {
- bottom?: number;
- left?: number;
- right?: number;
- top?: number;
- };
- placeholderSize?: number;
- subtitle?: string | {
- font?: DevExpress.viz.Font;
- offset?: number;
- text?: string;
- textOverflow?: string;
- wordWrap?: string;
- };
- text?: string;
- textOverflow?: string;
- verticalAlignment?: string;
- wordWrap?: string;
- }>;
- /**
- * This member supports the internal infrastructure and is not intended to be used directly from your code.
- */
- valueChange: EventEmitter<DevExpress.viz.VizRange | Array<number | string | Date>>;
- onBlur: EventEmitter<any>;
- change(_: any): void;
- touched: (_: any) => void;
- constructor(elementRef: ElementRef, ngZone: NgZone, templateHost: DxTemplateHost, _watcherHelper: WatcherHelper, _idh: IterableDifferHelper, optionHost: NestedOptionHost, transferState: TransferState, platformId: any);
- protected _createInstance(element: any, options: any): DxRangeSelector;
- writeValue(value: any): void;
- registerOnChange(fn: (_: any) => void): void;
- registerOnTouched(fn: () => void): void;
- _createWidget(element: any): void;
- ngOnDestroy(): void;
- ngOnChanges(changes: SimpleChanges): void;
- setupChanges(prop: string, changes: SimpleChanges): void;
- ngDoCheck(): void;
- _setOption(name: string, value: any): void;
- }
- export declare class DxRangeSelectorModule {
- }
|