devextreme-angular
Version:
Angular UI and visualization components based on DevExtreme widgets
30 lines (28 loc) • 17.8 kB
JavaScript
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/platform-browser"),require("@angular/core"),require("devextreme/viz/tree_map"),require("devextreme-angular/core"),require("devextreme-angular/ui/nested")):"function"==typeof define&&define.amd?define("devextreme-angular/ui/tree-map",["exports","@angular/platform-browser","@angular/core","devextreme/viz/tree_map","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["tree-map"]={}),e.ng.platformBrowser,e.ng.core,e.DxTreeMap,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 u(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 u=e.length-1;u>=0;u--)(i=e[u])&&(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 l(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 a=function(e){function r(t,n,o,i,r,p,u,l){var a=e.call(this,t,n,o,i,u,l)||this;return a._watcherHelper=i,a._idh=r,a._createEventEmitters([{subscribe:"click",emit:"onClick"},{subscribe:"disposing",emit:"onDisposing"},{subscribe:"drawn",emit:"onDrawn"},{subscribe:"drill",emit:"onDrill"},{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:"nodesInitialized",emit:"onNodesInitialized"},{subscribe:"nodesRendering",emit:"onNodesRendering"},{subscribe:"optionChanged",emit:"onOptionChanged"},{subscribe:"selectionChanged",emit:"onSelectionChanged"},{emit:"childrenFieldChange"},{emit:"colorFieldChange"},{emit:"colorizerChange"},{emit:"dataSourceChange"},{emit:"disabledChange"},{emit:"elementAttrChange"},{emit:"exportChange"},{emit:"groupChange"},{emit:"hoverEnabledChange"},{emit:"idFieldChange"},{emit:"interactWithGroupChange"},{emit:"labelFieldChange"},{emit:"layoutAlgorithmChange"},{emit:"layoutDirectionChange"},{emit:"loadingIndicatorChange"},{emit:"maxDepthChange"},{emit:"parentFieldChange"},{emit:"pathModifiedChange"},{emit:"redrawOnResizeChange"},{emit:"rtlEnabledChange"},{emit:"selectionModeChange"},{emit:"sizeChange"},{emit:"themeChange"},{emit:"tileChange"},{emit:"titleChange"},{emit:"tooltipChange"},{emit:"valueFieldChange"}]),a._idh.setHost(a),p.setHost(a),a}var a,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,"childrenField",{get:function(){return this._getOption("childrenField")},set:function(e){this._setOption("childrenField",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,"colorizer",{get:function(){return this._getOption("colorizer")},set:function(e){this._setOption("colorizer",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,"group",{get:function(){return this._getOption("group")},set:function(e){this._setOption("group",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,"idField",{get:function(){return this._getOption("idField")},set:function(e){this._setOption("idField",e)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"interactWithGroup",{get:function(){return this._getOption("interactWithGroup")},set:function(e){this._setOption("interactWithGroup",e)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"labelField",{get:function(){return this._getOption("labelField")},set:function(e){this._setOption("labelField",e)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"layoutAlgorithm",{get:function(){return this._getOption("layoutAlgorithm")},set:function(e){this._setOption("layoutAlgorithm",e)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"layoutDirection",{get:function(){return this._getOption("layoutDirection")},set:function(e){this._setOption("layoutDirection",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,"maxDepth",{get:function(){return this._getOption("maxDepth")},set:function(e){this._setOption("maxDepth",e)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"parentField",{get:function(){return this._getOption("parentField")},set:function(e){this._setOption("parentField",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,"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,"theme",{get:function(){return this._getOption("theme")},set:function(e){this._setOption("theme",e)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"tile",{get:function(){return this._getOption("tile")},set:function(e){this._setOption("tile",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)},r.prototype.setupChanges=function(e,t){e in this._optionsToUpdate||this._idh.setup(e,t)},r.prototype.ngDoCheck=function(){this._idh.doCheck("dataSource"),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]}]}]},u([n.Input(),l("design:type",String),l("design:paramtypes",[String])],r.prototype,"childrenField",null),u([n.Input(),l("design:type",String),l("design:paramtypes",[String])],r.prototype,"colorField",null),u([n.Input(),l("design:type",Object),l("design:paramtypes",[Object])],r.prototype,"colorizer",null),u([n.Input(),l("design:type",Object),l("design:paramtypes",[Object])],r.prototype,"dataSource",null),u([n.Input(),l("design:type",Boolean),l("design:paramtypes",[Boolean])],r.prototype,"disabled",null),u([n.Input(),l("design:type",Object),l("design:paramtypes",[Object])],r.prototype,"elementAttr",null),u([n.Input(),l("design:type",Object),l("design:paramtypes",[Object])],r.prototype,"export",null),u([n.Input(),l("design:type",Object),l("design:paramtypes",[Object])],r.prototype,"group",null),u([n.Input(),l("design:type",Boolean),l("design:paramtypes",[Boolean])],r.prototype,"hoverEnabled",null),u([n.Input(),l("design:type",String),l("design:paramtypes",[String])],r.prototype,"idField",null),u([n.Input(),l("design:type",Boolean),l("design:paramtypes",[Boolean])],r.prototype,"interactWithGroup",null),u([n.Input(),l("design:type",String),l("design:paramtypes",[String])],r.prototype,"labelField",null),u([n.Input(),l("design:type",Object),l("design:paramtypes",[Object])],r.prototype,"layoutAlgorithm",null),u([n.Input(),l("design:type",String),l("design:paramtypes",[String])],r.prototype,"layoutDirection",null),u([n.Input(),l("design:type",Object),l("design:paramtypes",[Object])],r.prototype,"loadingIndicator",null),u([n.Input(),l("design:type",Number),l("design:paramtypes",[Number])],r.prototype,"maxDepth",null),u([n.Input(),l("design:type",String),l("design:paramtypes",[String])],r.prototype,"parentField",null),u([n.Input(),l("design:type",Boolean),l("design:paramtypes",[Boolean])],r.prototype,"pathModified",null),u([n.Input(),l("design:type",Boolean),l("design:paramtypes",[Boolean])],r.prototype,"redrawOnResize",null),u([n.Input(),l("design:type",Boolean),l("design:paramtypes",[Boolean])],r.prototype,"rtlEnabled",null),u([n.Input(),l("design:type",String),l("design:paramtypes",[String])],r.prototype,"selectionMode",null),u([n.Input(),l("design:type",Object),l("design:paramtypes",[Object])],r.prototype,"size",null),u([n.Input(),l("design:type",String),l("design:paramtypes",[String])],r.prototype,"theme",null),u([n.Input(),l("design:type",Object),l("design:paramtypes",[Object])],r.prototype,"tile",null),u([n.Input(),l("design:type",Object),l("design:paramtypes",[Object])],r.prototype,"title",null),u([n.Input(),l("design:type",Object),l("design:paramtypes",[Object])],r.prototype,"tooltip",null),u([n.Input(),l("design:type",String),l("design:paramtypes",[String])],r.prototype,"valueField",null),u([n.Output(),l("design:type",n.EventEmitter)],r.prototype,"onClick",void 0),u([n.Output(),l("design:type",n.EventEmitter)],r.prototype,"onDisposing",void 0),u([n.Output(),l("design:type",n.EventEmitter)],r.prototype,"onDrawn",void 0),u([n.Output(),l("design:type",n.EventEmitter)],r.prototype,"onDrill",void 0),u([n.Output(),l("design:type",n.EventEmitter)],r.prototype,"onExported",void 0),u([n.Output(),l("design:type",n.EventEmitter)],r.prototype,"onExporting",void 0),u([n.Output(),l("design:type",n.EventEmitter)],r.prototype,"onFileSaving",void 0),u([n.Output(),l("design:type",n.EventEmitter)],r.prototype,"onHoverChanged",void 0),u([n.Output(),l("design:type",n.EventEmitter)],r.prototype,"onIncidentOccurred",void 0),u([n.Output(),l("design:type",n.EventEmitter)],r.prototype,"onInitialized",void 0),u([n.Output(),l("design:type",n.EventEmitter)],r.prototype,"onNodesInitialized",void 0),u([n.Output(),l("design:type",n.EventEmitter)],r.prototype,"onNodesRendering",void 0),u([n.Output(),l("design:type",n.EventEmitter)],r.prototype,"onOptionChanged",void 0),u([n.Output(),l("design:type",n.EventEmitter)],r.prototype,"onSelectionChanged",void 0),u([n.Output(),l("design:type",n.EventEmitter)],r.prototype,"childrenFieldChange",void 0),u([n.Output(),l("design:type",n.EventEmitter)],r.prototype,"colorFieldChange",void 0),u([n.Output(),l("design:type",n.EventEmitter)],r.prototype,"colorizerChange",void 0),u([n.Output(),l("design:type",n.EventEmitter)],r.prototype,"dataSourceChange",void 0),u([n.Output(),l("design:type",n.EventEmitter)],r.prototype,"disabledChange",void 0),u([n.Output(),l("design:type",n.EventEmitter)],r.prototype,"elementAttrChange",void 0),u([n.Output(),l("design:type",n.EventEmitter)],r.prototype,"exportChange",void 0),u([n.Output(),l("design:type",n.EventEmitter)],r.prototype,"groupChange",void 0),u([n.Output(),l("design:type",n.EventEmitter)],r.prototype,"hoverEnabledChange",void 0),u([n.Output(),l("design:type",n.EventEmitter)],r.prototype,"idFieldChange",void 0),u([n.Output(),l("design:type",n.EventEmitter)],r.prototype,"interactWithGroupChange",void 0),u([n.Output(),l("design:type",n.EventEmitter)],r.prototype,"labelFieldChange",void 0),u([n.Output(),l("design:type",n.EventEmitter)],r.prototype,"layoutAlgorithmChange",void 0),u([n.Output(),l("design:type",n.EventEmitter)],r.prototype,"layoutDirectionChange",void 0),u([n.Output(),l("design:type",n.EventEmitter)],r.prototype,"loadingIndicatorChange",void 0),u([n.Output(),l("design:type",n.EventEmitter)],r.prototype,"maxDepthChange",void 0),u([n.Output(),l("design:type",n.EventEmitter)],r.prototype,"parentFieldChange",void 0),u([n.Output(),l("design:type",n.EventEmitter)],r.prototype,"pathModifiedChange",void 0),u([n.Output(),l("design:type",n.EventEmitter)],r.prototype,"redrawOnResizeChange",void 0),u([n.Output(),l("design:type",n.EventEmitter)],r.prototype,"rtlEnabledChange",void 0),u([n.Output(),l("design:type",n.EventEmitter)],r.prototype,"selectionModeChange",void 0),u([n.Output(),l("design:type",n.EventEmitter)],r.prototype,"sizeChange",void 0),u([n.Output(),l("design:type",n.EventEmitter)],r.prototype,"themeChange",void 0),u([n.Output(),l("design:type",n.EventEmitter)],r.prototype,"tileChange",void 0),u([n.Output(),l("design:type",n.EventEmitter)],r.prototype,"titleChange",void 0),u([n.Output(),l("design:type",n.EventEmitter)],r.prototype,"tooltipChange",void 0),u([n.Output(),l("design:type",n.EventEmitter)],r.prototype,"valueFieldChange",void 0),r=u([n.Component({selector:"dx-tree-map",template:"",providers:[i.DxTemplateHost,i.WatcherHelper,i.NestedOptionHost,i.IterableDifferHelper],styles:[" :host { display: block; }"]}),(a=7,d=n.Inject(n.PLATFORM_ID),function(e,t){d(e,t,a)}),l("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=u([n.NgModule({imports:[r.DxoColorizerModule,r.DxoExportModule,r.DxoGroupModule,r.DxoBorderModule,r.DxoHoverStyleModule,r.DxoLabelModule,r.DxoFontModule,r.DxoSelectionStyleModule,r.DxoLoadingIndicatorModule,r.DxoSizeModule,r.DxoTileModule,r.DxoTitleModule,r.DxoMarginModule,r.DxoSubtitleModule,r.DxoTooltipModule,r.DxoFormatModule,r.DxoShadowModule,i.DxIntegrationModule,i.DxTemplateModule,t.BrowserTransferStateModule],declarations:[a],exports:[a,r.DxoColorizerModule,r.DxoExportModule,r.DxoGroupModule,r.DxoBorderModule,r.DxoHoverStyleModule,r.DxoLabelModule,r.DxoFontModule,r.DxoSelectionStyleModule,r.DxoLoadingIndicatorModule,r.DxoSizeModule,r.DxoTileModule,r.DxoTitleModule,r.DxoMarginModule,r.DxoSubtitleModule,r.DxoTooltipModule,r.DxoFormatModule,r.DxoShadowModule,i.DxTemplateModule]})],e)}();e.DxTreeMapComponent=a,e.DxTreeMapModule=d,Object.defineProperty(e,"__esModule",{value:!0})}));
//# sourceMappingURL=devextreme-angular-ui-tree-map.umd.min.js.map