UNPKG

devextreme-angular

Version:

Angular UI and visualization components based on DevExtreme widgets

30 lines (28 loc) • 15.2 kB
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/platform-browser"),require("@angular/core"),require("devextreme/viz/circular_gauge"),require("devextreme-angular/core"),require("devextreme-angular/ui/nested")):"function"==typeof define&&define.amd?define("devextreme-angular/ui/circular-gauge",["exports","@angular/platform-browser","@angular/core","devextreme/viz/circular_gauge","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["circular-gauge"]={}),e.ng.platformBrowser,e.ng.core,e.DxCircularGauge,e["devextreme-angular"].core,e["devextreme-angular"].ui.nested)}(this,(function(e,t,n,o,i,r){"use strict";o=o&&Object.prototype.hasOwnProperty.call(o,"default")?o.default:o; /*! ***************************************************************************** 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 n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function a(e,t,n,o){var i,r=arguments.length,p=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)p=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(p=(r<3?i(p):r>3?i(t,n,p):i(t,n))||p);return r>3&&p&&Object.defineProperty(t,n,p),p}function u(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 s=function(e){function r(t,n,o,i,r,p,a,u){var s=e.call(this,t,n,o,i,a,u)||this;return s._watcherHelper=i,s._idh=r,s._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:"tooltipHidden",emit:"onTooltipHidden"},{subscribe:"tooltipShown",emit:"onTooltipShown"},{emit:"animationChange"},{emit:"containerBackgroundColorChange"},{emit:"disabledChange"},{emit:"elementAttrChange"},{emit:"exportChange"},{emit:"geometryChange"},{emit:"loadingIndicatorChange"},{emit:"marginChange"},{emit:"pathModifiedChange"},{emit:"rangeContainerChange"},{emit:"redrawOnResizeChange"},{emit:"rtlEnabledChange"},{emit:"scaleChange"},{emit:"sizeChange"},{emit:"subvalueIndicatorChange"},{emit:"subvaluesChange"},{emit:"themeChange"},{emit:"titleChange"},{emit:"tooltipChange"},{emit:"valueChange"},{emit:"valueIndicatorChange"}]),s._idh.setHost(s),p.setHost(s),s}var s,l;return function(e,t){function n(){this.constructor=e}p(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(r,e),Object.defineProperty(r.prototype,"animation",{get:function(){return this._getOption("animation")},set:function(e){this._setOption("animation",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,"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,"geometry",{get:function(){return this._getOption("geometry")},set:function(e){this._setOption("geometry",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,"rangeContainer",{get:function(){return this._getOption("rangeContainer")},set:function(e){this._setOption("rangeContainer",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,"size",{get:function(){return this._getOption("size")},set:function(e){this._setOption("size",e)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"subvalueIndicator",{get:function(){return this._getOption("subvalueIndicator")},set:function(e){this._setOption("subvalueIndicator",e)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"subvalues",{get:function(){return this._getOption("subvalues")},set:function(e){this._setOption("subvalues",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,"tooltip",{get:function(){return this._getOption("tooltip")},set:function(e){this._setOption("tooltip",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}),Object.defineProperty(r.prototype,"valueIndicator",{get:function(){return this._getOption("valueIndicator")},set:function(e){this._setOption("valueIndicator",e)},enumerable:!0,configurable:!0}),r.prototype._createInstance=function(e,t){return new o(e,t)},r.prototype.ngOnDestroy=function(){this._destroyWidget()},r.prototype.ngOnChanges=function(t){e.prototype.ngOnChanges.call(this,t),this.setupChanges("subvalues",t)},r.prototype.setupChanges=function(e,t){e in this._optionsToUpdate||this._idh.setup(e,t)},r.prototype.ngDoCheck=function(){this._idh.doCheck("subvalues"),this._watcherHelper.checkWatchers(),e.prototype.ngDoCheck.call(this),e.prototype.clearChangedOptions.call(this)},r.prototype._setOption=function(t,n){var o=this._idh.setupSingle(t,n),i=null!==this._idh.getChanges(t,n);(o||i)&&e.prototype._setOption.call(this,t,n)},r.ctorParameters=function(){return[{type:n.ElementRef},{type:n.NgZone},{type:i.DxTemplateHost},{type:i.WatcherHelper},{type:i.IterableDifferHelper},{type:i.NestedOptionHost},{type:t.TransferState},{type:void 0,decorators:[{type:n.Inject,args:[n.PLATFORM_ID]}]}]},a([n.Input(),u("design:type",Object),u("design:paramtypes",[Object])],r.prototype,"animation",null),a([n.Input(),u("design:type",String),u("design:paramtypes",[String])],r.prototype,"containerBackgroundColor",null),a([n.Input(),u("design:type",Boolean),u("design:paramtypes",[Boolean])],r.prototype,"disabled",null),a([n.Input(),u("design:type",Object),u("design:paramtypes",[Object])],r.prototype,"elementAttr",null),a([n.Input(),u("design:type",Object),u("design:paramtypes",[Object])],r.prototype,"export",null),a([n.Input(),u("design:type",Object),u("design:paramtypes",[Object])],r.prototype,"geometry",null),a([n.Input(),u("design:type",Object),u("design:paramtypes",[Object])],r.prototype,"loadingIndicator",null),a([n.Input(),u("design:type",Object),u("design:paramtypes",[Object])],r.prototype,"margin",null),a([n.Input(),u("design:type",Boolean),u("design:paramtypes",[Boolean])],r.prototype,"pathModified",null),a([n.Input(),u("design:type",Object),u("design:paramtypes",[Object])],r.prototype,"rangeContainer",null),a([n.Input(),u("design:type",Boolean),u("design:paramtypes",[Boolean])],r.prototype,"redrawOnResize",null),a([n.Input(),u("design:type",Boolean),u("design:paramtypes",[Boolean])],r.prototype,"rtlEnabled",null),a([n.Input(),u("design:type",Object),u("design:paramtypes",[Object])],r.prototype,"scale",null),a([n.Input(),u("design:type",Object),u("design:paramtypes",[Object])],r.prototype,"size",null),a([n.Input(),u("design:type",Object),u("design:paramtypes",[Object])],r.prototype,"subvalueIndicator",null),a([n.Input(),u("design:type",Array),u("design:paramtypes",[Array])],r.prototype,"subvalues",null),a([n.Input(),u("design:type",String),u("design:paramtypes",[String])],r.prototype,"theme",null),a([n.Input(),u("design:type",Object),u("design:paramtypes",[Object])],r.prototype,"title",null),a([n.Input(),u("design:type",Object),u("design:paramtypes",[Object])],r.prototype,"tooltip",null),a([n.Input(),u("design:type",Number),u("design:paramtypes",[Number])],r.prototype,"value",null),a([n.Input(),u("design:type",Object),u("design:paramtypes",[Object])],r.prototype,"valueIndicator",null),a([n.Output(),u("design:type",n.EventEmitter)],r.prototype,"onDisposing",void 0),a([n.Output(),u("design:type",n.EventEmitter)],r.prototype,"onDrawn",void 0),a([n.Output(),u("design:type",n.EventEmitter)],r.prototype,"onExported",void 0),a([n.Output(),u("design:type",n.EventEmitter)],r.prototype,"onExporting",void 0),a([n.Output(),u("design:type",n.EventEmitter)],r.prototype,"onFileSaving",void 0),a([n.Output(),u("design:type",n.EventEmitter)],r.prototype,"onIncidentOccurred",void 0),a([n.Output(),u("design:type",n.EventEmitter)],r.prototype,"onInitialized",void 0),a([n.Output(),u("design:type",n.EventEmitter)],r.prototype,"onOptionChanged",void 0),a([n.Output(),u("design:type",n.EventEmitter)],r.prototype,"onTooltipHidden",void 0),a([n.Output(),u("design:type",n.EventEmitter)],r.prototype,"onTooltipShown",void 0),a([n.Output(),u("design:type",n.EventEmitter)],r.prototype,"animationChange",void 0),a([n.Output(),u("design:type",n.EventEmitter)],r.prototype,"containerBackgroundColorChange",void 0),a([n.Output(),u("design:type",n.EventEmitter)],r.prototype,"disabledChange",void 0),a([n.Output(),u("design:type",n.EventEmitter)],r.prototype,"elementAttrChange",void 0),a([n.Output(),u("design:type",n.EventEmitter)],r.prototype,"exportChange",void 0),a([n.Output(),u("design:type",n.EventEmitter)],r.prototype,"geometryChange",void 0),a([n.Output(),u("design:type",n.EventEmitter)],r.prototype,"loadingIndicatorChange",void 0),a([n.Output(),u("design:type",n.EventEmitter)],r.prototype,"marginChange",void 0),a([n.Output(),u("design:type",n.EventEmitter)],r.prototype,"pathModifiedChange",void 0),a([n.Output(),u("design:type",n.EventEmitter)],r.prototype,"rangeContainerChange",void 0),a([n.Output(),u("design:type",n.EventEmitter)],r.prototype,"redrawOnResizeChange",void 0),a([n.Output(),u("design:type",n.EventEmitter)],r.prototype,"rtlEnabledChange",void 0),a([n.Output(),u("design:type",n.EventEmitter)],r.prototype,"scaleChange",void 0),a([n.Output(),u("design:type",n.EventEmitter)],r.prototype,"sizeChange",void 0),a([n.Output(),u("design:type",n.EventEmitter)],r.prototype,"subvalueIndicatorChange",void 0),a([n.Output(),u("design:type",n.EventEmitter)],r.prototype,"subvaluesChange",void 0),a([n.Output(),u("design:type",n.EventEmitter)],r.prototype,"themeChange",void 0),a([n.Output(),u("design:type",n.EventEmitter)],r.prototype,"titleChange",void 0),a([n.Output(),u("design:type",n.EventEmitter)],r.prototype,"tooltipChange",void 0),a([n.Output(),u("design:type",n.EventEmitter)],r.prototype,"valueChange",void 0),a([n.Output(),u("design:type",n.EventEmitter)],r.prototype,"valueIndicatorChange",void 0),r=a([n.Component({selector:"dx-circular-gauge",template:"",providers:[i.DxTemplateHost,i.WatcherHelper,i.NestedOptionHost,i.IterableDifferHelper],styles:[" :host { display: block; }"]}),(s=7,l=n.Inject(n.PLATFORM_ID),function(e,t){l(e,t,s)}),u("design:paramtypes",[n.ElementRef,n.NgZone,i.DxTemplateHost,i.WatcherHelper,i.IterableDifferHelper,i.NestedOptionHost,t.TransferState,Object])],r)}(i.DxComponent),l=function(){function e(){}return e=a([n.NgModule({imports:[r.DxoAnimationModule,r.DxoExportModule,r.DxoGeometryModule,r.DxoLoadingIndicatorModule,r.DxoFontModule,r.DxoMarginModule,r.DxoRangeContainerModule,r.DxiRangeModule,r.DxoScaleModule,r.DxoLabelModule,r.DxoFormatModule,r.DxoMinorTickModule,r.DxoTickModule,r.DxoSizeModule,r.DxoSubvalueIndicatorModule,r.DxoTextModule,r.DxoTitleModule,r.DxoSubtitleModule,r.DxoTooltipModule,r.DxoBorderModule,r.DxoShadowModule,r.DxoValueIndicatorModule,i.DxIntegrationModule,i.DxTemplateModule,t.BrowserTransferStateModule],declarations:[s],exports:[s,r.DxoAnimationModule,r.DxoExportModule,r.DxoGeometryModule,r.DxoLoadingIndicatorModule,r.DxoFontModule,r.DxoMarginModule,r.DxoRangeContainerModule,r.DxiRangeModule,r.DxoScaleModule,r.DxoLabelModule,r.DxoFormatModule,r.DxoMinorTickModule,r.DxoTickModule,r.DxoSizeModule,r.DxoSubvalueIndicatorModule,r.DxoTextModule,r.DxoTitleModule,r.DxoSubtitleModule,r.DxoTooltipModule,r.DxoBorderModule,r.DxoShadowModule,r.DxoValueIndicatorModule,i.DxTemplateModule]})],e)}();e.DxCircularGaugeComponent=s,e.DxCircularGaugeModule=l,Object.defineProperty(e,"__esModule",{value:!0})})); //# sourceMappingURL=devextreme-angular-ui-circular-gauge.umd.min.js.map