devextreme-angular
Version:
Angular UI and visualization components based on DevExtreme widgets
30 lines (28 loc) • 18.9 kB
JavaScript
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/platform-browser"),require("@angular/core"),require("devextreme/viz/funnel"),require("devextreme-angular/core"),require("devextreme-angular/ui/nested")):"function"==typeof define&&define.amd?define("devextreme-angular/ui/funnel",["exports","@angular/platform-browser","@angular/core","devextreme/viz/funnel","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.funnel={}),e.ng.platformBrowser,e.ng.core,e.DxFunnel,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 l=function(e){function r(t,n,o,i,r,p,a,u){var l=e.call(this,t,n,o,i,a,u)||this;return l._watcherHelper=i,l._idh=r,l._createEventEmitters([{subscribe:"disposing",emit:"onDisposing"},{subscribe:"drawn",emit:"onDrawn"},{subscribe:"exported",emit:"onExported"},{subscribe:"exporting",emit:"onExporting"},{subscribe:"fileSaving",emit:"onFileSaving"},{subscribe:"hoverChanged",emit:"onHoverChanged"},{subscribe:"incidentOccurred",emit:"onIncidentOccurred"},{subscribe:"initialized",emit:"onInitialized"},{subscribe:"itemClick",emit:"onItemClick"},{subscribe:"legendClick",emit:"onLegendClick"},{subscribe:"optionChanged",emit:"onOptionChanged"},{subscribe:"selectionChanged",emit:"onSelectionChanged"},{emit:"adaptiveLayoutChange"},{emit:"algorithmChange"},{emit:"argumentFieldChange"},{emit:"colorFieldChange"},{emit:"dataSourceChange"},{emit:"disabledChange"},{emit:"elementAttrChange"},{emit:"exportChange"},{emit:"hoverEnabledChange"},{emit:"invertedChange"},{emit:"itemChange"},{emit:"labelChange"},{emit:"legendChange"},{emit:"loadingIndicatorChange"},{emit:"marginChange"},{emit:"neckHeightChange"},{emit:"neckWidthChange"},{emit:"paletteChange"},{emit:"paletteExtensionModeChange"},{emit:"pathModifiedChange"},{emit:"redrawOnResizeChange"},{emit:"resolveLabelOverlappingChange"},{emit:"rtlEnabledChange"},{emit:"selectionModeChange"},{emit:"sizeChange"},{emit:"sortDataChange"},{emit:"themeChange"},{emit:"titleChange"},{emit:"tooltipChange"},{emit:"valueFieldChange"}]),l._idh.setHost(l),p.setHost(l),l}var l,d;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,"adaptiveLayout",{get:function(){return this._getOption("adaptiveLayout")},set:function(e){this._setOption("adaptiveLayout",e)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"algorithm",{get:function(){return this._getOption("algorithm")},set:function(e){this._setOption("algorithm",e)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"argumentField",{get:function(){return this._getOption("argumentField")},set:function(e){this._setOption("argumentField",e)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"colorField",{get:function(){return this._getOption("colorField")},set:function(e){this._setOption("colorField",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,"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,"hoverEnabled",{get:function(){return this._getOption("hoverEnabled")},set:function(e){this._setOption("hoverEnabled",e)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"inverted",{get:function(){return this._getOption("inverted")},set:function(e){this._setOption("inverted",e)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"item",{get:function(){return this._getOption("item")},set:function(e){this._setOption("item",e)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"label",{get:function(){return this._getOption("label")},set:function(e){this._setOption("label",e)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"legend",{get:function(){return this._getOption("legend")},set:function(e){this._setOption("legend",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,"neckHeight",{get:function(){return this._getOption("neckHeight")},set:function(e){this._setOption("neckHeight",e)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"neckWidth",{get:function(){return this._getOption("neckWidth")},set:function(e){this._setOption("neckWidth",e)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"palette",{get:function(){return this._getOption("palette")},set:function(e){this._setOption("palette",e)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"paletteExtensionMode",{get:function(){return this._getOption("paletteExtensionMode")},set:function(e){this._setOption("paletteExtensionMode",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,"resolveLabelOverlapping",{get:function(){return this._getOption("resolveLabelOverlapping")},set:function(e){this._setOption("resolveLabelOverlapping",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,"selectionMode",{get:function(){return this._getOption("selectionMode")},set:function(e){this._setOption("selectionMode",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,"sortData",{get:function(){return this._getOption("sortData")},set:function(e){this._setOption("sortData",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,"valueField",{get:function(){return this._getOption("valueField")},set:function(e){this._setOption("valueField",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("dataSource",t),this.setupChanges("palette",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("palette"),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,"adaptiveLayout",null),a([n.Input(),u("design:type",String),u("design:paramtypes",[String])],r.prototype,"algorithm",null),a([n.Input(),u("design:type",String),u("design:paramtypes",[String])],r.prototype,"argumentField",null),a([n.Input(),u("design:type",String),u("design:paramtypes",[String])],r.prototype,"colorField",null),a([n.Input(),u("design:type",Object),u("design:paramtypes",[Object])],r.prototype,"dataSource",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",Boolean),u("design:paramtypes",[Boolean])],r.prototype,"hoverEnabled",null),a([n.Input(),u("design:type",Boolean),u("design:paramtypes",[Boolean])],r.prototype,"inverted",null),a([n.Input(),u("design:type",Object),u("design:paramtypes",[Object])],r.prototype,"item",null),a([n.Input(),u("design:type",Object),u("design:paramtypes",[Object])],r.prototype,"label",null),a([n.Input(),u("design:type",Object),u("design:paramtypes",[Object])],r.prototype,"legend",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",Number),u("design:paramtypes",[Number])],r.prototype,"neckHeight",null),a([n.Input(),u("design:type",Number),u("design:paramtypes",[Number])],r.prototype,"neckWidth",null),a([n.Input(),u("design:type",Object),u("design:paramtypes",[Object])],r.prototype,"palette",null),a([n.Input(),u("design:type",String),u("design:paramtypes",[String])],r.prototype,"paletteExtensionMode",null),a([n.Input(),u("design:type",Boolean),u("design:paramtypes",[Boolean])],r.prototype,"pathModified",null),a([n.Input(),u("design:type",Boolean),u("design:paramtypes",[Boolean])],r.prototype,"redrawOnResize",null),a([n.Input(),u("design:type",String),u("design:paramtypes",[String])],r.prototype,"resolveLabelOverlapping",null),a([n.Input(),u("design:type",Boolean),u("design:paramtypes",[Boolean])],r.prototype,"rtlEnabled",null),a([n.Input(),u("design:type",String),u("design:paramtypes",[String])],r.prototype,"selectionMode",null),a([n.Input(),u("design:type",Object),u("design:paramtypes",[Object])],r.prototype,"size",null),a([n.Input(),u("design:type",Boolean),u("design:paramtypes",[Boolean])],r.prototype,"sortData",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",String),u("design:paramtypes",[String])],r.prototype,"valueField",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,"onHoverChanged",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,"onItemClick",void 0),a([n.Output(),u("design:type",n.EventEmitter)],r.prototype,"onLegendClick",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,"onSelectionChanged",void 0),a([n.Output(),u("design:type",n.EventEmitter)],r.prototype,"adaptiveLayoutChange",void 0),a([n.Output(),u("design:type",n.EventEmitter)],r.prototype,"algorithmChange",void 0),a([n.Output(),u("design:type",n.EventEmitter)],r.prototype,"argumentFieldChange",void 0),a([n.Output(),u("design:type",n.EventEmitter)],r.prototype,"colorFieldChange",void 0),a([n.Output(),u("design:type",n.EventEmitter)],r.prototype,"dataSourceChange",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,"hoverEnabledChange",void 0),a([n.Output(),u("design:type",n.EventEmitter)],r.prototype,"invertedChange",void 0),a([n.Output(),u("design:type",n.EventEmitter)],r.prototype,"itemChange",void 0),a([n.Output(),u("design:type",n.EventEmitter)],r.prototype,"labelChange",void 0),a([n.Output(),u("design:type",n.EventEmitter)],r.prototype,"legendChange",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,"neckHeightChange",void 0),a([n.Output(),u("design:type",n.EventEmitter)],r.prototype,"neckWidthChange",void 0),a([n.Output(),u("design:type",n.EventEmitter)],r.prototype,"paletteChange",void 0),a([n.Output(),u("design:type",n.EventEmitter)],r.prototype,"paletteExtensionModeChange",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,"redrawOnResizeChange",void 0),a([n.Output(),u("design:type",n.EventEmitter)],r.prototype,"resolveLabelOverlappingChange",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,"selectionModeChange",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,"sortDataChange",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,"valueFieldChange",void 0),r=a([n.Component({selector:"dx-funnel",template:"",providers:[i.DxTemplateHost,i.WatcherHelper,i.NestedOptionHost,i.IterableDifferHelper],styles:[" :host { display: block; }"]}),(l=7,d=n.Inject(n.PLATFORM_ID),function(e,t){d(e,t,l)}),u("design:paramtypes",[n.ElementRef,n.NgZone,i.DxTemplateHost,i.WatcherHelper,i.IterableDifferHelper,i.NestedOptionHost,t.TransferState,Object])],r)}(i.DxComponent),d=function(){function e(){}return e=a([n.NgModule({imports:[r.DxoAdaptiveLayoutModule,r.DxoExportModule,r.DxoItemModule,r.DxoBorderModule,r.DxoHoverStyleModule,r.DxoHatchingModule,r.DxoSelectionStyleModule,r.DxoLabelModule,r.DxoConnectorModule,r.DxoFontModule,r.DxoFormatModule,r.DxoLegendModule,r.DxoMarginModule,r.DxoTitleModule,r.DxoSubtitleModule,r.DxoLoadingIndicatorModule,r.DxoSizeModule,r.DxoTooltipModule,r.DxoShadowModule,i.DxIntegrationModule,i.DxTemplateModule,t.BrowserTransferStateModule],declarations:[l],exports:[l,r.DxoAdaptiveLayoutModule,r.DxoExportModule,r.DxoItemModule,r.DxoBorderModule,r.DxoHoverStyleModule,r.DxoHatchingModule,r.DxoSelectionStyleModule,r.DxoLabelModule,r.DxoConnectorModule,r.DxoFontModule,r.DxoFormatModule,r.DxoLegendModule,r.DxoMarginModule,r.DxoTitleModule,r.DxoSubtitleModule,r.DxoLoadingIndicatorModule,r.DxoSizeModule,r.DxoTooltipModule,r.DxoShadowModule,i.DxTemplateModule]})],e)}();e.DxFunnelComponent=l,e.DxFunnelModule=d,Object.defineProperty(e,"__esModule",{value:!0})}));
//# sourceMappingURL=devextreme-angular-ui-funnel.umd.min.js.map