devextreme-angular
Version:
Angular UI and visualization components based on DevExtreme widgets
30 lines (28 loc) • 19.8 kB
JavaScript
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/platform-browser"),require("@angular/core"),require("devextreme/viz/range_selector"),require("@angular/forms"),require("devextreme-angular/core"),require("devextreme-angular/ui/nested")):"function"==typeof define&&define.amd?define("devextreme-angular/ui/range-selector",["exports","@angular/platform-browser","@angular/core","devextreme/viz/range_selector","@angular/forms","devextreme-angular/core","devextreme-angular/ui/nested"],t):t(((e=e||self)["devextreme-angular"]=e["devextreme-angular"]||{},e["devextreme-angular"].ui=e["devextreme-angular"].ui||{},e["devextreme-angular"].ui["range-selector"]={}),e.ng.platformBrowser,e.ng.core,e.DxRangeSelector,e.ng.forms,e["devextreme-angular"].core,e["devextreme-angular"].ui.nested)}(this,(function(e,t,o,n,r,i,a){"use strict";n=n&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n;
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */
var p=function(e,t){return(p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)};function u(e,t,o,n){var r,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var p=e.length-1;p>=0;p--)(r=e[p])&&(a=(i<3?r(a):i>3?r(t,o,a):r(t,o))||a);return i>3&&a&&Object.defineProperty(t,o,a),a}function d(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}
/*!
* devextreme-angular
* Version: 20.2.5
* Build date: Fri Jan 15 2021
*
* Copyright (c) 2012 - 2021 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
*/
var l={provide:r.NG_VALUE_ACCESSOR,useExisting:o.forwardRef((function(){return s})),multi:!0},s=function(e){function r(t,o,n,r,i,a,p,u){var d=e.call(this,t,o,n,r,p,u)||this;return d._watcherHelper=r,d._idh=i,d.touched=function(e){},d._createEventEmitters([{subscribe:"disposing",emit:"onDisposing"},{subscribe:"drawn",emit:"onDrawn"},{subscribe:"exported",emit:"onExported"},{subscribe:"exporting",emit:"onExporting"},{subscribe:"fileSaving",emit:"onFileSaving"},{subscribe:"incidentOccurred",emit:"onIncidentOccurred"},{subscribe:"initialized",emit:"onInitialized"},{subscribe:"optionChanged",emit:"onOptionChanged"},{subscribe:"valueChanged",emit:"onValueChanged"},{emit:"backgroundChange"},{emit:"behaviorChange"},{emit:"chartChange"},{emit:"containerBackgroundColorChange"},{emit:"dataSourceChange"},{emit:"dataSourceFieldChange"},{emit:"disabledChange"},{emit:"elementAttrChange"},{emit:"exportChange"},{emit:"indentChange"},{emit:"loadingIndicatorChange"},{emit:"marginChange"},{emit:"pathModifiedChange"},{emit:"redrawOnResizeChange"},{emit:"rtlEnabledChange"},{emit:"scaleChange"},{emit:"selectedRangeColorChange"},{emit:"selectedRangeUpdateModeChange"},{emit:"shutterChange"},{emit:"sizeChange"},{emit:"sliderHandleChange"},{emit:"sliderMarkerChange"},{emit:"themeChange"},{emit:"titleChange"},{emit:"valueChange"},{emit:"onBlur"}]),d._idh.setHost(d),a.setHost(d),d}var a,s;return function(e,t){function o(){this.constructor=e}p(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}(r,e),Object.defineProperty(r.prototype,"background",{get:function(){return this._getOption("background")},set:function(e){this._setOption("background",e)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"behavior",{get:function(){return this._getOption("behavior")},set:function(e){this._setOption("behavior",e)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"chart",{get:function(){return this._getOption("chart")},set:function(e){this._setOption("chart",e)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"containerBackgroundColor",{get:function(){return this._getOption("containerBackgroundColor")},set:function(e){this._setOption("containerBackgroundColor",e)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"dataSource",{get:function(){return this._getOption("dataSource")},set:function(e){this._setOption("dataSource",e)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"dataSourceField",{get:function(){return this._getOption("dataSourceField")},set:function(e){this._setOption("dataSourceField",e)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"disabled",{get:function(){return this._getOption("disabled")},set:function(e){this._setOption("disabled",e)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"elementAttr",{get:function(){return this._getOption("elementAttr")},set:function(e){this._setOption("elementAttr",e)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"export",{get:function(){return this._getOption("export")},set:function(e){this._setOption("export",e)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"indent",{get:function(){return this._getOption("indent")},set:function(e){this._setOption("indent",e)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"loadingIndicator",{get:function(){return this._getOption("loadingIndicator")},set:function(e){this._setOption("loadingIndicator",e)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"margin",{get:function(){return this._getOption("margin")},set:function(e){this._setOption("margin",e)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"pathModified",{get:function(){return this._getOption("pathModified")},set:function(e){this._setOption("pathModified",e)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"redrawOnResize",{get:function(){return this._getOption("redrawOnResize")},set:function(e){this._setOption("redrawOnResize",e)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"rtlEnabled",{get:function(){return this._getOption("rtlEnabled")},set:function(e){this._setOption("rtlEnabled",e)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"scale",{get:function(){return this._getOption("scale")},set:function(e){this._setOption("scale",e)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"selectedRangeColor",{get:function(){return this._getOption("selectedRangeColor")},set:function(e){this._setOption("selectedRangeColor",e)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"selectedRangeUpdateMode",{get:function(){return this._getOption("selectedRangeUpdateMode")},set:function(e){this._setOption("selectedRangeUpdateMode",e)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"shutter",{get:function(){return this._getOption("shutter")},set:function(e){this._setOption("shutter",e)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"size",{get:function(){return this._getOption("size")},set:function(e){this._setOption("size",e)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"sliderHandle",{get:function(){return this._getOption("sliderHandle")},set:function(e){this._setOption("sliderHandle",e)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"sliderMarker",{get:function(){return this._getOption("sliderMarker")},set:function(e){this._setOption("sliderMarker",e)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"theme",{get:function(){return this._getOption("theme")},set:function(e){this._setOption("theme",e)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"title",{get:function(){return this._getOption("title")},set:function(e){this._setOption("title",e)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"value",{get:function(){return this._getOption("value")},set:function(e){this._setOption("value",e)},enumerable:!0,configurable:!0}),r.prototype.change=function(e){},r.prototype._createInstance=function(e,t){return new n(e,t)},r.prototype.writeValue=function(e){this.eventHelper.lockedValueChangeEvent=!0,this.value=e,this.eventHelper.lockedValueChangeEvent=!1},r.prototype.registerOnChange=function(e){this.change=e},r.prototype.registerOnTouched=function(e){this.touched=e},r.prototype._createWidget=function(t){var o=this;e.prototype._createWidget.call(this,t),this.instance.on("focusOut",(function(e){o.eventHelper.fireNgEvent("onBlur",[e])}))},r.prototype.ngOnDestroy=function(){this._destroyWidget()},r.prototype.ngOnChanges=function(t){e.prototype.ngOnChanges.call(this,t),this.setupChanges("dataSource",t),this.setupChanges("value",t)},r.prototype.setupChanges=function(e,t){e in this._optionsToUpdate||this._idh.setup(e,t)},r.prototype.ngDoCheck=function(){this._idh.doCheck("dataSource"),this._idh.doCheck("value"),this._watcherHelper.checkWatchers(),e.prototype.ngDoCheck.call(this),e.prototype.clearChangedOptions.call(this)},r.prototype._setOption=function(t,o){var n=this._idh.setupSingle(t,o),r=null!==this._idh.getChanges(t,o);(n||r)&&e.prototype._setOption.call(this,t,o)},r.ctorParameters=function(){return[{type:o.ElementRef},{type:o.NgZone},{type:i.DxTemplateHost},{type:i.WatcherHelper},{type:i.IterableDifferHelper},{type:i.NestedOptionHost},{type:t.TransferState},{type:void 0,decorators:[{type:o.Inject,args:[o.PLATFORM_ID]}]}]},u([o.Input(),d("design:type",Object),d("design:paramtypes",[Object])],r.prototype,"background",null),u([o.Input(),d("design:type",Object),d("design:paramtypes",[Object])],r.prototype,"behavior",null),u([o.Input(),d("design:type",Object),d("design:paramtypes",[Object])],r.prototype,"chart",null),u([o.Input(),d("design:type",String),d("design:paramtypes",[String])],r.prototype,"containerBackgroundColor",null),u([o.Input(),d("design:type",Object),d("design:paramtypes",[Object])],r.prototype,"dataSource",null),u([o.Input(),d("design:type",String),d("design:paramtypes",[String])],r.prototype,"dataSourceField",null),u([o.Input(),d("design:type",Boolean),d("design:paramtypes",[Boolean])],r.prototype,"disabled",null),u([o.Input(),d("design:type",Object),d("design:paramtypes",[Object])],r.prototype,"elementAttr",null),u([o.Input(),d("design:type",Object),d("design:paramtypes",[Object])],r.prototype,"export",null),u([o.Input(),d("design:type",Object),d("design:paramtypes",[Object])],r.prototype,"indent",null),u([o.Input(),d("design:type",Object),d("design:paramtypes",[Object])],r.prototype,"loadingIndicator",null),u([o.Input(),d("design:type",Object),d("design:paramtypes",[Object])],r.prototype,"margin",null),u([o.Input(),d("design:type",Boolean),d("design:paramtypes",[Boolean])],r.prototype,"pathModified",null),u([o.Input(),d("design:type",Boolean),d("design:paramtypes",[Boolean])],r.prototype,"redrawOnResize",null),u([o.Input(),d("design:type",Boolean),d("design:paramtypes",[Boolean])],r.prototype,"rtlEnabled",null),u([o.Input(),d("design:type",Object),d("design:paramtypes",[Object])],r.prototype,"scale",null),u([o.Input(),d("design:type",String),d("design:paramtypes",[String])],r.prototype,"selectedRangeColor",null),u([o.Input(),d("design:type",String),d("design:paramtypes",[String])],r.prototype,"selectedRangeUpdateMode",null),u([o.Input(),d("design:type",Object),d("design:paramtypes",[Object])],r.prototype,"shutter",null),u([o.Input(),d("design:type",Object),d("design:paramtypes",[Object])],r.prototype,"size",null),u([o.Input(),d("design:type",Object),d("design:paramtypes",[Object])],r.prototype,"sliderHandle",null),u([o.Input(),d("design:type",Object),d("design:paramtypes",[Object])],r.prototype,"sliderMarker",null),u([o.Input(),d("design:type",String),d("design:paramtypes",[String])],r.prototype,"theme",null),u([o.Input(),d("design:type",Object),d("design:paramtypes",[Object])],r.prototype,"title",null),u([o.Input(),d("design:type",Object),d("design:paramtypes",[Object])],r.prototype,"value",null),u([o.Output(),d("design:type",o.EventEmitter)],r.prototype,"onDisposing",void 0),u([o.Output(),d("design:type",o.EventEmitter)],r.prototype,"onDrawn",void 0),u([o.Output(),d("design:type",o.EventEmitter)],r.prototype,"onExported",void 0),u([o.Output(),d("design:type",o.EventEmitter)],r.prototype,"onExporting",void 0),u([o.Output(),d("design:type",o.EventEmitter)],r.prototype,"onFileSaving",void 0),u([o.Output(),d("design:type",o.EventEmitter)],r.prototype,"onIncidentOccurred",void 0),u([o.Output(),d("design:type",o.EventEmitter)],r.prototype,"onInitialized",void 0),u([o.Output(),d("design:type",o.EventEmitter)],r.prototype,"onOptionChanged",void 0),u([o.Output(),d("design:type",o.EventEmitter)],r.prototype,"onValueChanged",void 0),u([o.Output(),d("design:type",o.EventEmitter)],r.prototype,"backgroundChange",void 0),u([o.Output(),d("design:type",o.EventEmitter)],r.prototype,"behaviorChange",void 0),u([o.Output(),d("design:type",o.EventEmitter)],r.prototype,"chartChange",void 0),u([o.Output(),d("design:type",o.EventEmitter)],r.prototype,"containerBackgroundColorChange",void 0),u([o.Output(),d("design:type",o.EventEmitter)],r.prototype,"dataSourceChange",void 0),u([o.Output(),d("design:type",o.EventEmitter)],r.prototype,"dataSourceFieldChange",void 0),u([o.Output(),d("design:type",o.EventEmitter)],r.prototype,"disabledChange",void 0),u([o.Output(),d("design:type",o.EventEmitter)],r.prototype,"elementAttrChange",void 0),u([o.Output(),d("design:type",o.EventEmitter)],r.prototype,"exportChange",void 0),u([o.Output(),d("design:type",o.EventEmitter)],r.prototype,"indentChange",void 0),u([o.Output(),d("design:type",o.EventEmitter)],r.prototype,"loadingIndicatorChange",void 0),u([o.Output(),d("design:type",o.EventEmitter)],r.prototype,"marginChange",void 0),u([o.Output(),d("design:type",o.EventEmitter)],r.prototype,"pathModifiedChange",void 0),u([o.Output(),d("design:type",o.EventEmitter)],r.prototype,"redrawOnResizeChange",void 0),u([o.Output(),d("design:type",o.EventEmitter)],r.prototype,"rtlEnabledChange",void 0),u([o.Output(),d("design:type",o.EventEmitter)],r.prototype,"scaleChange",void 0),u([o.Output(),d("design:type",o.EventEmitter)],r.prototype,"selectedRangeColorChange",void 0),u([o.Output(),d("design:type",o.EventEmitter)],r.prototype,"selectedRangeUpdateModeChange",void 0),u([o.Output(),d("design:type",o.EventEmitter)],r.prototype,"shutterChange",void 0),u([o.Output(),d("design:type",o.EventEmitter)],r.prototype,"sizeChange",void 0),u([o.Output(),d("design:type",o.EventEmitter)],r.prototype,"sliderHandleChange",void 0),u([o.Output(),d("design:type",o.EventEmitter)],r.prototype,"sliderMarkerChange",void 0),u([o.Output(),d("design:type",o.EventEmitter)],r.prototype,"themeChange",void 0),u([o.Output(),d("design:type",o.EventEmitter)],r.prototype,"titleChange",void 0),u([o.Output(),d("design:type",o.EventEmitter)],r.prototype,"valueChange",void 0),u([o.Output(),d("design:type",o.EventEmitter)],r.prototype,"onBlur",void 0),u([o.HostListener("valueChange",["$event"]),d("design:type",Function),d("design:paramtypes",[Object]),d("design:returntype",void 0)],r.prototype,"change",null),u([o.HostListener("onBlur",["$event"]),d("design:type",Object)],r.prototype,"touched",void 0),r=u([o.Component({selector:"dx-range-selector",template:"",providers:[i.DxTemplateHost,i.WatcherHelper,l,i.NestedOptionHost,i.IterableDifferHelper],styles:[" :host { display: block; }"]}),(a=7,s=o.Inject(o.PLATFORM_ID),function(e,t){s(e,t,a)}),d("design:paramtypes",[o.ElementRef,o.NgZone,i.DxTemplateHost,i.WatcherHelper,i.IterableDifferHelper,i.NestedOptionHost,t.TransferState,Object])],r)}(i.DxComponent),g=function(){function e(){}return e=u([o.NgModule({imports:[a.DxoBackgroundModule,a.DxoImageModule,a.DxoBehaviorModule,a.DxoChartModule,a.DxoCommonSeriesSettingsModule,a.DxoAggregationModule,a.DxoAreaModule,a.DxoBorderModule,a.DxoHoverStyleModule,a.DxoHatchingModule,a.DxoLabelModule,a.DxoConnectorModule,a.DxoPointModule,a.DxoHeightModule,a.DxoUrlModule,a.DxoWidthModule,a.DxoSelectionStyleModule,a.DxoReductionModule,a.DxoValueErrorBarModule,a.DxoBarModule,a.DxoBubbleModule,a.DxoCandlestickModule,a.DxoFullstackedareaModule,a.DxoFullstackedbarModule,a.DxoFullstackedlineModule,a.DxoFullstackedsplineModule,a.DxoFullstackedsplineareaModule,a.DxoArgumentFormatModule,a.DxoFontModule,a.DxoFormatModule,a.DxoLineModule,a.DxoRangeareaModule,a.DxoRangebarModule,a.DxoScatterModule,a.DxoSplineModule,a.DxoSplineareaModule,a.DxoStackedareaModule,a.DxoStackedbarModule,a.DxoStackedlineModule,a.DxoStackedsplineModule,a.DxoStackedsplineareaModule,a.DxoStepareaModule,a.DxoSteplineModule,a.DxoStockModule,a.DxoDataPrepareSettingsModule,a.DxiSeriesModule,a.DxoSeriesTemplateModule,a.DxoValueAxisModule,a.DxoExportModule,a.DxoIndentModule,a.DxoLoadingIndicatorModule,a.DxoMarginModule,a.DxoScaleModule,a.DxoAggregationIntervalModule,a.DxiBreakModule,a.DxoBreakStyleModule,a.DxoMarkerModule,a.DxoMaxRangeModule,a.DxoMinorTickModule,a.DxoMinorTickIntervalModule,a.DxoMinRangeModule,a.DxoTickModule,a.DxoTickIntervalModule,a.DxoShutterModule,a.DxoSizeModule,a.DxoSliderHandleModule,a.DxoSliderMarkerModule,a.DxoTitleModule,a.DxoSubtitleModule,i.DxIntegrationModule,i.DxTemplateModule,t.BrowserTransferStateModule],declarations:[s],exports:[s,a.DxoBackgroundModule,a.DxoImageModule,a.DxoBehaviorModule,a.DxoChartModule,a.DxoCommonSeriesSettingsModule,a.DxoAggregationModule,a.DxoAreaModule,a.DxoBorderModule,a.DxoHoverStyleModule,a.DxoHatchingModule,a.DxoLabelModule,a.DxoConnectorModule,a.DxoPointModule,a.DxoHeightModule,a.DxoUrlModule,a.DxoWidthModule,a.DxoSelectionStyleModule,a.DxoReductionModule,a.DxoValueErrorBarModule,a.DxoBarModule,a.DxoBubbleModule,a.DxoCandlestickModule,a.DxoFullstackedareaModule,a.DxoFullstackedbarModule,a.DxoFullstackedlineModule,a.DxoFullstackedsplineModule,a.DxoFullstackedsplineareaModule,a.DxoArgumentFormatModule,a.DxoFontModule,a.DxoFormatModule,a.DxoLineModule,a.DxoRangeareaModule,a.DxoRangebarModule,a.DxoScatterModule,a.DxoSplineModule,a.DxoSplineareaModule,a.DxoStackedareaModule,a.DxoStackedbarModule,a.DxoStackedlineModule,a.DxoStackedsplineModule,a.DxoStackedsplineareaModule,a.DxoStepareaModule,a.DxoSteplineModule,a.DxoStockModule,a.DxoDataPrepareSettingsModule,a.DxiSeriesModule,a.DxoSeriesTemplateModule,a.DxoValueAxisModule,a.DxoExportModule,a.DxoIndentModule,a.DxoLoadingIndicatorModule,a.DxoMarginModule,a.DxoScaleModule,a.DxoAggregationIntervalModule,a.DxiBreakModule,a.DxoBreakStyleModule,a.DxoMarkerModule,a.DxoMaxRangeModule,a.DxoMinorTickModule,a.DxoMinorTickIntervalModule,a.DxoMinRangeModule,a.DxoTickModule,a.DxoTickIntervalModule,a.DxoShutterModule,a.DxoSizeModule,a.DxoSliderHandleModule,a.DxoSliderMarkerModule,a.DxoTitleModule,a.DxoSubtitleModule,i.DxTemplateModule]})],e)}();e.DxRangeSelectorComponent=s,e.DxRangeSelectorModule=g,Object.defineProperty(e,"__esModule",{value:!0})}));
//# sourceMappingURL=devextreme-angular-ui-range-selector.umd.min.js.map