@syncfusion/ej2-vue-treemap 20.4.48 → 21.1.35
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ej2-vue-treemap.umd.min.js +2 -2
- package/dist/ej2-vue-treemap.umd.min.js.map +1 -1
- package/dist/es6/ej2-vue-treemap.es2015.js +130 -252
- package/dist/es6/ej2-vue-treemap.es2015.js.map +1 -1
- package/dist/es6/ej2-vue-treemap.es5.js +152 -303
- package/dist/es6/ej2-vue-treemap.es5.js.map +1 -1
- package/dist/global/ej2-vue-treemap.min.js +2 -2
- package/package.json +9 -9
- package/src/treemap/colormapping.directive.d.ts +2 -12
- package/src/treemap/colormapping.directive.js +22 -71
- package/src/treemap/levels.directive.d.ts +3 -13
- package/src/treemap/levels.directive.js +23 -72
- package/src/treemap/treemap.component.d.ts +4 -38
- package/src/treemap/treemap.component.js +96 -158
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: ej2-vue-treemap.umd.min.js
|
|
3
|
-
* version :
|
|
3
|
+
* version : 21.1.35
|
|
4
4
|
* Copyright Syncfusion Inc. 2001 - 2020. All rights reserved.
|
|
5
5
|
* Use of this code is subject to the terms of our license.
|
|
6
6
|
* A copy of the current license can be obtained at any time by e-mailing
|
|
7
7
|
* licensing@syncfusion.com. Any infringement will be prosecuted under
|
|
8
8
|
* applicable laws.
|
|
9
9
|
*/
|
|
10
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@syncfusion/ej2-treemap"),require("
|
|
10
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@syncfusion/ej2-treemap"),require("@syncfusion/ej2-vue-base"),require("@syncfusion/ej2-base")):"function"==typeof define&&define.amd?define(["exports","@syncfusion/ej2-treemap","@syncfusion/ej2-vue-base","@syncfusion/ej2-base"],t):t(e.ej={},e.ej2Treemap,e.ej2VueBase,e.ej2Base)}(this,function(e,t,n,i){"use strict";var s=n.vueDefineComponent({inject:{custom:{default:null}},render:function(e){if(!n.isExecute){var t=n.isExecute?e:n.gh,s=null;return i.isNullOrUndefined(this.$slots.default)||(s=n.isExecute?this.$slots.default:this.$slots.default()),t("div",{class:"e-directive"},s)}},updated:function(){!n.isExecute&&this.custom&&this.custom()},methods:{getTag:function(){return"e-colorMappings"}}}),o={name:"e-colorMappings",install:function(e){e.component(o.name,s)}},l=n.vueDefineComponent({render:function(){},methods:{getTag:function(){return"e-colorMapping"}}}),r={name:"e-colorMapping",install:function(e){e.component(r.name,l)}},a=n.vueDefineComponent({inject:{custom:{default:null}},render:function(e){if(!n.isExecute){var t=n.isExecute?e:n.gh,s=null;return i.isNullOrUndefined(this.$slots.default)||(s=n.isExecute?this.$slots.default:this.$slots.default()),t("div",{class:"e-directive"},s)}},updated:function(){!n.isExecute&&this.custom&&this.custom()},methods:{getTag:function(){return"e-levels"}}}),u={name:"e-levels",install:function(e){e.component(u.name,a)}},c=n.vueDefineComponent({render:function(){},methods:{getTag:function(){return"e-level"}}}),p={name:"e-level",install:function(e){e.component(p.name,c)}},d=["isLazyUpdate","plugins","allowImageExport","allowPdfExport","allowPrint","background","border","breadcrumbConnector","colorValuePath","dataSource","description","drillDownView","enableBreadcrumb","enableDrillDown","enablePersistence","enableRtl","equalColorValuePath","format","height","highlightSettings","initialDrillDown","layoutType","leafItemSettings","legendSettings","levels","locale","margin","palette","query","rangeColorValuePath","renderDirection","selectionSettings","tabIndex","theme","titleSettings","tooltipSettings","useGroupingSeparator","weightValuePath","width","beforePrint","click","doubleClick","drillEnd","drillStart","itemClick","itemHighlight","itemMove","itemRendering","itemSelected","legendItemRendering","legendRendering","load","loaded","mouseMove","resize","rightClick","tooltipRendering"],m=[],h=n.getProps({props:d}),f=h[0],g=h[1],v=Object.keys(g);v.push("modelchanged","update:modelValue");for(var j=0,M=m;j<M.length;j++){var C=M[j];v.push("update:"+C)}var b=n.vueDefineComponent({name:"TreeMapComponent",mixins:[n.ComponentBase],props:f,watch:g,emits:v,provide:function(){return{custom:this.custom}},data:function(){return{ej2Instances:new t.TreeMap({}),propKeys:d,models:m,hasChildDirective:!0,hasInjectedModules:!0,tagMapper:{"e-levels":{"e-level":{"e-colorMappings":"e-colorMapping"}}},tagNameMapper:{"e-colorMappings":"e-colorMapping"},isVue3:!n.isExecute,templateCollection:{}}},created:function(){this.bindProperties(),this.ej2Instances._setProperties=this.ej2Instances.setProperties,this.ej2Instances.setProperties=this.setProperties,this.ej2Instances.clearTemplate=this.clearTemplate,this.updated=this.updated},render:function(e){var t=n.isExecute?e:n.gh,s=null;return i.isNullOrUndefined(this.$slots.default)||(s=n.isExecute?this.$slots.default:this.$slots.default()),t("div",s)},methods:{clearTemplate:function(e){if(e||(e=Object.keys(this.templateCollection||{})),e.length&&this.templateCollection)for(var t=0,n=e;t<n.length;t++){var s=n[t],o=this.templateCollection[s];if(o&&o.length){for(var l=0,r=o;l<r.length;l++){var a=r[l];i.getValue("__vue__.$destroy",a)&&a.__vue__.$destroy(),a.innerHTML&&(a.innerHTML="")}delete this.templateCollection[s]}}},setProperties:function(e,t){var n=this;this.isVue3&&(this.models=this.models?this.models:this.ej2Instances.referModels),this.ej2Instances&&this.ej2Instances._setProperties&&this.ej2Instances._setProperties(e,t),e&&this.models&&this.models.length&&Object.keys(e).map(function(t){n.models.map(function(i){t!==i||/datasource/i.test(t)||(n.isVue3?n.ej2Instances.vueInstance.$emit("update:"+t,e[t]):(n.$emit("update:"+t,e[t]),n.$emit("modelchanged",e[t])))})})},custom:function(){this.updated()},doubleClickOnTreeMap:function(e){return this.ej2Instances.doubleClickOnTreeMap(e)},export:function(e,t,n,i){return this.ej2Instances.export(e,t,n,i)},print:function(e){return this.ej2Instances.print(e)},selectItem:function(e,t){return this.ej2Instances.selectItem(e,t)}}}),P={name:"ejs-treemap",install:function(e){e.component(P.name,b),e.component(p.name,c),e.component(u.name,a),e.component(r.name,l),e.component(o.name,s)}};e.ColorMappingsDirective=s,e.ColorMappingDirective=l,e.ColorMappingsPlugin=o,e.ColorMappingPlugin=r,e.LevelsDirective=a,e.LevelDirective=c,e.LevelsPlugin=u,e.LevelPlugin=p,e.TreeMapComponent=b,e.TreeMapPlugin=P,Object.keys(t).forEach(function(n){e[n]=t[n]}),Object.defineProperty(e,"__esModule",{value:!0})});
|
|
11
11
|
//# sourceMappingURL=ej2-vue-treemap.umd.min.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ej2-vue-treemap.umd.min.js","sources":["../vue2/src/treemap/colormapping.directive.js","../vue2/src/treemap/levels.directive.js","../vue2/src/treemap/treemap.component.js"],"sourcesContent":["var __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nvar __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nimport Vue from 'vue';\nimport { EJComponentDecorator } from '@syncfusion/ej2-vue-base';\nvar ColorMappingsDirective = /** @class */ (function (_super) {\n __extends(ColorMappingsDirective, _super);\n function ColorMappingsDirective() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n ColorMappingsDirective.prototype.render = function () {\n return;\n };\n ColorMappingsDirective = __decorate([\n EJComponentDecorator({})\n ], ColorMappingsDirective);\n return ColorMappingsDirective;\n}(Vue));\nexport { ColorMappingsDirective };\nexport var ColorMappingsPlugin = {\n name: 'e-colorMappings',\n install: function (Vue) {\n Vue.component(ColorMappingsPlugin.name, ColorMappingsDirective);\n }\n};\nvar ColorMappingDirective = /** @class */ (function (_super) {\n __extends(ColorMappingDirective, _super);\n function ColorMappingDirective() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n ColorMappingDirective.prototype.render = function () {\n return;\n };\n ColorMappingDirective = __decorate([\n EJComponentDecorator({})\n ], ColorMappingDirective);\n return ColorMappingDirective;\n}(Vue));\nexport { ColorMappingDirective };\nexport var ColorMappingPlugin = {\n name: 'e-colorMapping',\n install: function (Vue) {\n Vue.component(ColorMappingPlugin.name, ColorMappingDirective);\n }\n};\n","var __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nvar __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nimport Vue from 'vue';\nimport { EJComponentDecorator } from '@syncfusion/ej2-vue-base';\nvar LevelsDirective = /** @class */ (function (_super) {\n __extends(LevelsDirective, _super);\n function LevelsDirective() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n LevelsDirective.prototype.render = function () {\n return;\n };\n LevelsDirective = __decorate([\n EJComponentDecorator({})\n ], LevelsDirective);\n return LevelsDirective;\n}(Vue));\nexport { LevelsDirective };\nexport var LevelsPlugin = {\n name: 'e-levels',\n install: function (Vue) {\n Vue.component(LevelsPlugin.name, LevelsDirective);\n }\n};\n/**\n * `LevelsDirective` directive represent a levels of the react treemap.\n * ```vue\n * <ejs-treemap>\n * <e-levels>\n * <e-level></e-level>\n * </e-levels>\n * </ejs-treemap>\n * ```\n */\nvar LevelDirective = /** @class */ (function (_super) {\n __extends(LevelDirective, _super);\n function LevelDirective() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n LevelDirective.prototype.render = function () {\n return;\n };\n LevelDirective = __decorate([\n EJComponentDecorator({})\n ], LevelDirective);\n return LevelDirective;\n}(Vue));\nexport { LevelDirective };\nexport var LevelPlugin = {\n name: 'e-level',\n install: function (Vue) {\n Vue.component(LevelPlugin.name, LevelDirective);\n }\n};\n","var __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nvar __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nimport { ComponentBase, EJComponentDecorator } from '@syncfusion/ej2-vue-base';\nimport { getValue } from '@syncfusion/ej2-base';\nimport { TreeMap } from '@syncfusion/ej2-treemap';\nimport { ColorMappingsDirective, ColorMappingDirective, ColorMappingsPlugin, ColorMappingPlugin } from './colormapping.directive';\nimport { LevelsDirective, LevelDirective, LevelsPlugin, LevelPlugin } from './levels.directive';\nexport var properties = ['isLazyUpdate', 'plugins', 'allowImageExport', 'allowPdfExport', 'allowPrint', 'background', 'border', 'breadcrumbConnector', 'colorValuePath', 'dataSource', 'description', 'drillDownView', 'enableBreadcrumb', 'enableDrillDown', 'enablePersistence', 'enableRtl', 'equalColorValuePath', 'format', 'height', 'highlightSettings', 'initialDrillDown', 'layoutType', 'leafItemSettings', 'legendSettings', 'levels', 'locale', 'margin', 'palette', 'query', 'rangeColorValuePath', 'renderDirection', 'selectionSettings', 'tabIndex', 'theme', 'titleSettings', 'tooltipSettings', 'useGroupingSeparator', 'weightValuePath', 'width', 'beforePrint', 'click', 'doubleClick', 'drillEnd', 'drillStart', 'itemClick', 'itemHighlight', 'itemMove', 'itemRendering', 'itemSelected', 'legendItemRendering', 'legendRendering', 'load', 'loaded', 'mouseMove', 'resize', 'rightClick', 'tooltipRendering'];\nexport var modelProps = [];\n/**\n * Represents Vuejs TreeMap Component\n * ```vue\n * <ejs-treemap></ejs-treemap>\n * ```\n */\nvar TreeMapComponent = /** @class */ (function (_super) {\n __extends(TreeMapComponent, _super);\n function TreeMapComponent() {\n var _this = _super.call(this, arguments) || this;\n _this.propKeys = properties;\n _this.models = modelProps;\n _this.hasChildDirective = true;\n _this.hasInjectedModules = true;\n _this.tagMapper = { \"e-levels\": { \"e-level\": { \"e-colorMappings\": \"e-colorMapping\" } } };\n _this.tagNameMapper = { \"e-colorMappings\": \"e-colorMapping\" };\n _this.ej2Instances = new TreeMap({});\n _this.bindProperties();\n _this.ej2Instances._setProperties = _this.ej2Instances.setProperties;\n _this.ej2Instances.setProperties = _this.setProperties;\n _this.ej2Instances.clearTemplate = _this.clearTemplate;\n _this.updated = _this.updated;\n return _this;\n }\n TreeMapComponent.prototype.clearTemplate = function (templateNames) {\n if (!templateNames) {\n templateNames = Object.keys(this.templateCollection || {});\n }\n if (templateNames.length && this.templateCollection) {\n for (var _i = 0, templateNames_1 = templateNames; _i < templateNames_1.length; _i++) {\n var tempName = templateNames_1[_i];\n var elementCollection = this.templateCollection[tempName];\n if (elementCollection && elementCollection.length) {\n for (var _a = 0, elementCollection_1 = elementCollection; _a < elementCollection_1.length; _a++) {\n var ele = elementCollection_1[_a];\n var destroy = getValue('__vue__.$destroy', ele);\n if (destroy) {\n ele.__vue__.$destroy();\n }\n if (ele.innerHTML) {\n ele.innerHTML = '';\n }\n }\n delete this.templateCollection[tempName];\n }\n }\n }\n };\n TreeMapComponent.prototype.setProperties = function (prop, muteOnChange) {\n var _this = this;\n if (this.ej2Instances && this.ej2Instances._setProperties) {\n this.ej2Instances._setProperties(prop, muteOnChange);\n }\n if (prop && this.models && this.models.length) {\n Object.keys(prop).map(function (key) {\n _this.models.map(function (model) {\n if ((key === model) && !(/datasource/i.test(key))) {\n _this.$emit('update:' + key, prop[key]);\n }\n });\n });\n }\n };\n TreeMapComponent.prototype.render = function (createElement) {\n return createElement('div', this.$slots.default);\n };\n TreeMapComponent.prototype.custom = function () {\n this.updated();\n };\n TreeMapComponent.prototype.calculateSelectedTextLevels = function (labelText, item) {\n return this.ej2Instances.calculateSelectedTextLevels(labelText, item);\n };\n TreeMapComponent.prototype.clickOnTreeMap = function (e) {\n return this.ej2Instances.clickOnTreeMap(e);\n };\n TreeMapComponent.prototype.compareSelectedLabelWithDrillDownItems = function (drillLevelValues, item, i) {\n return this.ej2Instances.compareSelectedLabelWithDrillDownItems(drillLevelValues, item, i);\n };\n TreeMapComponent.prototype.doubleClickOnTreeMap = function (e) {\n return this.ej2Instances.doubleClickOnTreeMap(e);\n };\n TreeMapComponent.prototype.export = function (type, fileName, orientation, allowDownload) {\n return this.ej2Instances.export(type, fileName, orientation, allowDownload);\n };\n TreeMapComponent.prototype.findTotalWeight = function (processData, type) {\n return this.ej2Instances.findTotalWeight(processData, type);\n };\n TreeMapComponent.prototype.mouseDownOnTreeMap = function (e) {\n return this.ej2Instances.mouseDownOnTreeMap(e);\n };\n TreeMapComponent.prototype.mouseEndOnTreeMap = function (e) {\n return this.ej2Instances.mouseEndOnTreeMap(e);\n };\n TreeMapComponent.prototype.mouseLeaveOnTreeMap = function (e) {\n return this.ej2Instances.mouseLeaveOnTreeMap(e);\n };\n TreeMapComponent.prototype.mouseMoveOnTreeMap = function (e) {\n return this.ej2Instances.mouseMoveOnTreeMap(e);\n };\n TreeMapComponent.prototype.print = function (id) {\n return this.ej2Instances.print(id);\n };\n TreeMapComponent.prototype.reOrderLevelData = function (start) {\n return this.ej2Instances.reOrderLevelData(start);\n };\n TreeMapComponent.prototype.resizeOnTreeMap = function (e) {\n return this.ej2Instances.resizeOnTreeMap(e);\n };\n TreeMapComponent.prototype.rightClickOnTreeMap = function (e) {\n return this.ej2Instances.rightClickOnTreeMap(e);\n };\n TreeMapComponent.prototype.selectItem = function (levelOrder, isSelected) {\n return this.ej2Instances.selectItem(levelOrder, isSelected);\n };\n TreeMapComponent = __decorate([\n EJComponentDecorator({\n props: properties\n })\n ], TreeMapComponent);\n return TreeMapComponent;\n}(ComponentBase));\nexport { TreeMapComponent };\nexport var TreeMapPlugin = {\n name: 'ejs-treemap',\n install: function (Vue) {\n Vue.component(TreeMapPlugin.name, TreeMapComponent);\n Vue.component(LevelPlugin.name, LevelDirective);\n Vue.component(LevelsPlugin.name, LevelsDirective);\n Vue.component(ColorMappingPlugin.name, ColorMappingDirective);\n Vue.component(ColorMappingsPlugin.name, ColorMappingsDirective);\n }\n};\n"],"names":["__extends","extendStatics","d","b","Object","setPrototypeOf","__proto__","Array","p","hasOwnProperty","__","this","constructor","prototype","create","__decorate","decorators","target","key","desc","c","arguments","length","r","getOwnPropertyDescriptor","Reflect","decorate","i","defineProperty","ColorMappingsDirective","_super","apply","render","EJComponentDecorator","Vue","ColorMappingsPlugin","name","install","component","ColorMappingDirective","ColorMappingPlugin","LevelsDirective","LevelsPlugin","LevelDirective","LevelPlugin","properties","modelProps","TreeMapComponent","_this","call","propKeys","models","hasChildDirective","hasInjectedModules","tagMapper","e-levels","e-level","e-colorMappings","tagNameMapper","ej2Instances","TreeMap","bindProperties","_setProperties","setProperties","clearTemplate","updated","templateNames","keys","templateCollection","_i","templateNames_1","tempName","elementCollection","_a","elementCollection_1","ele","getValue","__vue__","$destroy","innerHTML","prop","muteOnChange","map","model","test","$emit","createElement","$slots","default","custom","calculateSelectedTextLevels","labelText","item","clickOnTreeMap","e","compareSelectedLabelWithDrillDownItems","drillLevelValues","doubleClickOnTreeMap","export","type","fileName","orientation","allowDownload","findTotalWeight","processData","mouseDownOnTreeMap","mouseEndOnTreeMap","mouseLeaveOnTreeMap","mouseMoveOnTreeMap","print","id","reOrderLevelData","start","resizeOnTreeMap","rightClickOnTreeMap","selectItem","levelOrder","isSelected","props","ComponentBase","TreeMapPlugin"],"mappings":"4dAAA,IAAIA,EAAwC,WACxC,IAAIC,EAAgB,SAAUC,EAAGC,GAI7B,OAHAF,EAAgBG,OAAOC,iBAChBC,wBAA2BC,OAAS,SAAUL,EAAGC,GAAKD,EAAEI,UAAYH,IACvE,SAAUD,EAAGC,GAAK,IAAK,IAAIK,KAAKL,EAAOA,EAAEM,eAAeD,KAAIN,EAAEM,GAAKL,EAAEK,MACpDN,EAAGC,IAE5B,OAAO,SAAUD,EAAGC,GAEhB,SAASO,IAAOC,KAAKC,YAAcV,EADnCD,EAAcC,EAAGC,GAEjBD,EAAEW,UAAkB,OAANV,EAAaC,OAAOU,OAAOX,IAAMO,EAAGG,UAAYV,EAAEU,UAAW,IAAIH,IAV3C,GAaxCK,EAA0C,SAAUC,EAAYC,EAAQC,EAAKC,GAC7E,IAA2HjB,EAAvHkB,EAAIC,UAAUC,OAAQC,EAAIH,EAAI,EAAIH,EAAkB,OAATE,EAAgBA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gD,aAAa+C,kBAAkBZ,IAE/C/C,EAAiBlC,UAAU8F,oBAAsB,SAAUb,GACvD,OAAOnF,KAAKgD,aAAagD,oBAAoBb,IAEjD/C,EAAiBlC,UAAU+F,mBAAqB,SAAUd,GACtD,OAAOnF,KAAKgD,aAAaiD,mBAAmBd,IAEhD/C,EAAiBlC,UAAUgG,MAAQ,SAAUC,GACzC,OAAOnG,KAAKgD,aAAakD,MAAMC,IAEnC/D,EAAiBlC,UAAUkG,iBAAmB,SAAUC,GACpD,OAAOrG,KAAKgD,aAAaoD,iBAAiBC,IAE9CjE,EAAiBlC,UAAUoG,gBAAkB,SAAUnB,GACnD,OAAOnF,KAAKgD,aAAasD,gBAAgBnB,IAE7C/C,EAAiBlC,UAAUqG,oBAAsB,SAAUpB,GACvD,OAAOnF,KAAKgD,aAAauD,oBAAoBpB,IAEjD/C,EAAiBlC,UAAUsG,WAAa,SAAUC,EAAYC,GAC1D,OAAO1G,KAAKgD,aAAawD,WAAWC,EAAYC,IAEpDtE,EAAmBhC,GACfkB,wBACIqF,MAAOzE,KAEZE,IAELwE,iBAESC,GACPpF,KAAM,cACNC,QAAS,SAAUH,GACfA,EAAII,UAAUkF,EAAcpF,KAAMW,GAClCb,EAAII,UAAUM,EAAYR,KAAMO,GAChCT,EAAII,UAAUI,EAAaN,KAAMK,GACjCP,EAAII,UAAUE,EAAmBJ,KAAMG,GACvCL,EAAII,UAAUH,EAAoBC,KAAMP"}
|
|
1
|
+
{"version":3,"file":"ej2-vue-treemap.umd.min.js","sources":["../src/treemap/colormapping.directive.js","../src/treemap/levels.directive.js","../src/treemap/treemap.component.js"],"sourcesContent":["import { gh, isExecute, vueDefineComponent } from '@syncfusion/ej2-vue-base';\nimport { isNullOrUndefined } from '@syncfusion/ej2-base';\nexport var ColorMappingsDirective = vueDefineComponent({\n inject: { custom: { default: null } },\n render: function (createElement) {\n if (!isExecute) {\n var h = !isExecute ? gh : createElement;\n var slots = null;\n if (!isNullOrUndefined(this.$slots.default)) {\n slots = !isExecute ? this.$slots.default() : this.$slots.default;\n }\n return h('div', { class: 'e-directive' }, slots);\n }\n return;\n },\n updated: function () {\n if (!isExecute && this.custom) {\n this.custom();\n }\n },\n methods: {\n getTag: function () {\n return 'e-colorMappings';\n }\n }\n});\nexport var ColorMappingsPlugin = {\n name: 'e-colorMappings',\n install: function (Vue) {\n Vue.component(ColorMappingsPlugin.name, ColorMappingsDirective);\n }\n};\nexport var ColorMappingDirective = vueDefineComponent({\n render: function () {\n return;\n },\n methods: {\n getTag: function () {\n return 'e-colorMapping';\n }\n }\n});\nexport var ColorMappingPlugin = {\n name: 'e-colorMapping',\n install: function (Vue) {\n Vue.component(ColorMappingPlugin.name, ColorMappingDirective);\n }\n};\n","import { gh, isExecute, vueDefineComponent } from '@syncfusion/ej2-vue-base';\nimport { isNullOrUndefined } from '@syncfusion/ej2-base';\nexport var LevelsDirective = vueDefineComponent({\n inject: { custom: { default: null } },\n render: function (createElement) {\n if (!isExecute) {\n var h = !isExecute ? gh : createElement;\n var slots = null;\n if (!isNullOrUndefined(this.$slots.default)) {\n slots = !isExecute ? this.$slots.default() : this.$slots.default;\n }\n return h('div', { class: 'e-directive' }, slots);\n }\n return;\n },\n updated: function () {\n if (!isExecute && this.custom) {\n this.custom();\n }\n },\n methods: {\n getTag: function () {\n return 'e-levels';\n }\n }\n});\nexport var LevelsPlugin = {\n name: 'e-levels',\n install: function (Vue) {\n Vue.component(LevelsPlugin.name, LevelsDirective);\n }\n};\n/**\n * Represents the directive to configure and render level leaf items in the treemap.\n * ```vue\n * <ejs-treemap>\n * <e-levels>\n * <e-level></e-level>\n * </e-levels>\n * </ejs-treemap>\n * ```\n */\nexport var LevelDirective = vueDefineComponent({\n render: function () {\n return;\n },\n methods: {\n getTag: function () {\n return 'e-level';\n }\n }\n});\nexport var LevelPlugin = {\n name: 'e-level',\n install: function (Vue) {\n Vue.component(LevelPlugin.name, LevelDirective);\n }\n};\n","import { ComponentBase, gh, getProps, isExecute, vueDefineComponent } from '@syncfusion/ej2-vue-base';\nimport { isNullOrUndefined, getValue } from '@syncfusion/ej2-base';\nimport { TreeMap } from '@syncfusion/ej2-treemap';\nimport { ColorMappingsDirective, ColorMappingDirective, ColorMappingsPlugin, ColorMappingPlugin } from './colormapping.directive';\nimport { LevelsDirective, LevelDirective, LevelsPlugin, LevelPlugin } from './levels.directive';\nexport var properties = ['isLazyUpdate', 'plugins', 'allowImageExport', 'allowPdfExport', 'allowPrint', 'background', 'border', 'breadcrumbConnector', 'colorValuePath', 'dataSource', 'description', 'drillDownView', 'enableBreadcrumb', 'enableDrillDown', 'enablePersistence', 'enableRtl', 'equalColorValuePath', 'format', 'height', 'highlightSettings', 'initialDrillDown', 'layoutType', 'leafItemSettings', 'legendSettings', 'levels', 'locale', 'margin', 'palette', 'query', 'rangeColorValuePath', 'renderDirection', 'selectionSettings', 'tabIndex', 'theme', 'titleSettings', 'tooltipSettings', 'useGroupingSeparator', 'weightValuePath', 'width', 'beforePrint', 'click', 'doubleClick', 'drillEnd', 'drillStart', 'itemClick', 'itemHighlight', 'itemMove', 'itemRendering', 'itemSelected', 'legendItemRendering', 'legendRendering', 'load', 'loaded', 'mouseMove', 'resize', 'rightClick', 'tooltipRendering'];\nexport var modelProps = [];\nexport var testProp = getProps({ props: properties });\nexport var props = testProp[0], watch = testProp[1], emitProbs = Object.keys(watch);\nemitProbs.push('modelchanged', 'update:modelValue');\nfor (var _i = 0, modelProps_1 = modelProps; _i < modelProps_1.length; _i++) {\n var props_1 = modelProps_1[_i];\n emitProbs.push('update:' + props_1);\n}\n/**\n * Represents the Vue TreeMap component. It is used to visualize both hierarchical and flat data.\n * ```vue\n * <ejs-treemap></ejs-treemap>\n * ```\n */\nexport var TreeMapComponent = vueDefineComponent({\n name: 'TreeMapComponent',\n mixins: [ComponentBase],\n props: props,\n watch: watch,\n emits: emitProbs,\n provide: function () { return { custom: this.custom }; },\n data: function () {\n return {\n ej2Instances: new TreeMap({}),\n propKeys: properties,\n models: modelProps,\n hasChildDirective: true,\n hasInjectedModules: true,\n tagMapper: { \"e-levels\": { \"e-level\": { \"e-colorMappings\": \"e-colorMapping\" } } },\n tagNameMapper: { \"e-colorMappings\": \"e-colorMapping\" },\n isVue3: !isExecute,\n templateCollection: {},\n };\n },\n created: function () {\n this.bindProperties();\n this.ej2Instances._setProperties = this.ej2Instances.setProperties;\n this.ej2Instances.setProperties = this.setProperties;\n this.ej2Instances.clearTemplate = this.clearTemplate;\n this.updated = this.updated;\n },\n render: function (createElement) {\n var h = !isExecute ? gh : createElement;\n var slots = null;\n if (!isNullOrUndefined(this.$slots.default)) {\n slots = !isExecute ? this.$slots.default() : this.$slots.default;\n }\n return h('div', slots);\n },\n methods: {\n clearTemplate: function (templateNames) {\n if (!templateNames) {\n templateNames = Object.keys(this.templateCollection || {});\n }\n if (templateNames.length && this.templateCollection) {\n for (var _i = 0, templateNames_1 = templateNames; _i < templateNames_1.length; _i++) {\n var tempName = templateNames_1[_i];\n var elementCollection = this.templateCollection[tempName];\n if (elementCollection && elementCollection.length) {\n for (var _a = 0, elementCollection_1 = elementCollection; _a < elementCollection_1.length; _a++) {\n var ele = elementCollection_1[_a];\n var destroy = getValue('__vue__.$destroy', ele);\n if (destroy) {\n ele.__vue__.$destroy();\n }\n if (ele.innerHTML) {\n ele.innerHTML = '';\n }\n }\n delete this.templateCollection[tempName];\n }\n }\n }\n },\n setProperties: function (prop, muteOnChange) {\n var _this = this;\n if (this.isVue3) {\n this.models = !this.models ? this.ej2Instances.referModels : this.models;\n }\n if (this.ej2Instances && this.ej2Instances._setProperties) {\n this.ej2Instances._setProperties(prop, muteOnChange);\n }\n if (prop && this.models && this.models.length) {\n Object.keys(prop).map(function (key) {\n _this.models.map(function (model) {\n if ((key === model) && !(/datasource/i.test(key))) {\n if (_this.isVue3) {\n _this.ej2Instances.vueInstance.$emit('update:' + key, prop[key]);\n }\n else {\n _this.$emit('update:' + key, prop[key]);\n _this.$emit('modelchanged', prop[key]);\n }\n }\n });\n });\n }\n },\n custom: function () {\n this.updated();\n },\n doubleClickOnTreeMap: function (e) {\n return this.ej2Instances.doubleClickOnTreeMap(e);\n },\n export: function (type, fileName, orientation, allowDownload) {\n return this.ej2Instances.export(type, fileName, orientation, allowDownload);\n },\n print: function (id) {\n return this.ej2Instances.print(id);\n },\n selectItem: function (levelOrder, isSelected) {\n return this.ej2Instances.selectItem(levelOrder, isSelected);\n },\n }\n});\nexport var TreeMapPlugin = {\n name: 'ejs-treemap',\n install: function (Vue) {\n Vue.component(TreeMapPlugin.name, TreeMapComponent);\n Vue.component(LevelPlugin.name, LevelDirective);\n Vue.component(LevelsPlugin.name, LevelsDirective);\n Vue.component(ColorMappingPlugin.name, ColorMappingDirective);\n Vue.component(ColorMappingsPlugin.name, ColorMappingsDirective);\n }\n};\n"],"names":["ColorMappingsDirective","vueDefineComponent","inject","custom","default","render","createElement","isExecute","h","gh","slots","isNullOrUndefined","this","$slots","class","updated","methods","getTag","ColorMappingsPlugin","name","install","Vue","component","ColorMappingDirective","ColorMappingPlugin","LevelsDirective","LevelsPlugin","LevelDirective","LevelPlugin","properties","modelProps","testProp","getProps","props","watch","emitProbs","Object","keys","push","_i","modelProps_1","length","props_1","TreeMapComponent","mixins","ComponentBase","emits","provide","data","ej2Instances","TreeMap","propKeys","models","hasChildDirective","hasInjectedModules","tagMapper","e-levels","e-level","e-colorMappings","tagNameMapper","isVue3","templateCollection","created","bindProperties","_setProperties","setProperties","clearTemplate","templateNames","templateNames_1","tempName","elementCollection","_a","elementCollection_1","ele","getValue","__vue__","$destroy","innerHTML","prop","muteOnChange","_this","referModels","map","key","model","test","vueInstance","$emit","doubleClickOnTreeMap","e","export","type","fileName","orientation","allowDownload","print","id","selectItem","levelOrder","isSelected","TreeMapPlugin"],"mappings":"kZAEO,IAAIA,EAAyBC,sBAChCC,QAAUC,QAAUC,QAAS,OAC7BC,OAAQ,SAAUC,GACd,IAAKC,YAAW,CACZ,IAAIC,EAAKD,YAAiBD,EAALG,KACjBC,EAA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SAAUC,GACb,OAAOpF,KAAKqC,aAAa8C,MAAMC,IAEnCC,WAAY,SAAUC,EAAYC,GAC9B,OAAOvF,KAAKqC,aAAagD,WAAWC,EAAYC,OAIjDC,GACPjF,KAAM,cACNC,QAAS,SAAUC,GACfA,EAAIC,UAAU8E,EAAcjF,KAAMwB,GAClCtB,EAAIC,UAAUM,EAAYT,KAAMQ,GAChCN,EAAIC,UAAUI,EAAaP,KAAMM,GACjCJ,EAAIC,UAAUE,EAAmBL,KAAMI,GACvCF,EAAIC,UAAUJ,EAAoBC,KAAMnB"}
|
|
@@ -1,35 +1,9 @@
|
|
|
1
1
|
import { TreeMap } from '@syncfusion/ej2-treemap';
|
|
2
|
-
import { ComponentBase,
|
|
3
|
-
import { Vue } from 'vue-class-component';
|
|
2
|
+
import { ComponentBase, getProps, gh, isExecute, vueDefineComponent } from '@syncfusion/ej2-vue-base';
|
|
4
3
|
import { getValue, isNullOrUndefined } from '@syncfusion/ej2-base';
|
|
5
|
-
import Vue$1 from 'vue';
|
|
6
4
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
10
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
11
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
12
|
-
};
|
|
13
|
-
// {{VueImport}}
|
|
14
|
-
let vueImport;
|
|
15
|
-
if (!isExecute || parseInt(allVue.version) < 3) {
|
|
16
|
-
vueImport = Vue;
|
|
17
|
-
}
|
|
18
|
-
else {
|
|
19
|
-
vueImport = Vue$1;
|
|
20
|
-
}
|
|
21
|
-
let ColorMappingsDirective =
|
|
22
|
-
/* Start Options({
|
|
23
|
-
inject: {
|
|
24
|
-
custom: {
|
|
25
|
-
default: null
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
}) End */
|
|
29
|
-
class ColorMappingsDirective extends vueImport {
|
|
30
|
-
constructor() {
|
|
31
|
-
super(arguments);
|
|
32
|
-
}
|
|
5
|
+
let ColorMappingsDirective = vueDefineComponent({
|
|
6
|
+
inject: { custom: { default: null } },
|
|
33
7
|
render(createElement) {
|
|
34
8
|
if (!isExecute) {
|
|
35
9
|
let h = !isExecute ? gh : createElement;
|
|
@@ -40,76 +14,43 @@ class ColorMappingsDirective extends vueImport {
|
|
|
40
14
|
return h('div', { class: 'e-directive' }, slots);
|
|
41
15
|
}
|
|
42
16
|
return;
|
|
43
|
-
}
|
|
17
|
+
},
|
|
44
18
|
updated() {
|
|
45
19
|
if (!isExecute && this.custom) {
|
|
46
20
|
this.custom();
|
|
47
21
|
}
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
};
|
|
53
|
-
ColorMappingsDirective = __decorate([
|
|
54
|
-
EJComponentDecorator({}, isExecute)
|
|
55
|
-
/* Start Options({
|
|
56
|
-
inject: {
|
|
57
|
-
custom: {
|
|
58
|
-
default: null
|
|
59
|
-
}
|
|
22
|
+
},
|
|
23
|
+
methods: {
|
|
24
|
+
getTag() {
|
|
25
|
+
return 'e-colorMappings';
|
|
60
26
|
}
|
|
61
|
-
}
|
|
62
|
-
|
|
27
|
+
}
|
|
28
|
+
});
|
|
63
29
|
const ColorMappingsPlugin = {
|
|
64
30
|
name: 'e-colorMappings',
|
|
65
|
-
install(Vue
|
|
66
|
-
Vue
|
|
31
|
+
install(Vue) {
|
|
32
|
+
Vue.component(ColorMappingsPlugin.name, ColorMappingsDirective);
|
|
67
33
|
}
|
|
68
34
|
};
|
|
69
|
-
let ColorMappingDirective =
|
|
35
|
+
let ColorMappingDirective = vueDefineComponent({
|
|
70
36
|
render() {
|
|
71
37
|
return;
|
|
38
|
+
},
|
|
39
|
+
methods: {
|
|
40
|
+
getTag() {
|
|
41
|
+
return 'e-colorMapping';
|
|
42
|
+
}
|
|
72
43
|
}
|
|
73
|
-
|
|
74
|
-
return 'e-colorMapping';
|
|
75
|
-
}
|
|
76
|
-
};
|
|
77
|
-
ColorMappingDirective = __decorate([
|
|
78
|
-
EJComponentDecorator({}, isExecute)
|
|
79
|
-
], ColorMappingDirective);
|
|
44
|
+
});
|
|
80
45
|
const ColorMappingPlugin = {
|
|
81
46
|
name: 'e-colorMapping',
|
|
82
|
-
install(Vue
|
|
83
|
-
Vue
|
|
47
|
+
install(Vue) {
|
|
48
|
+
Vue.component(ColorMappingPlugin.name, ColorMappingDirective);
|
|
84
49
|
}
|
|
85
50
|
};
|
|
86
51
|
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
90
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
91
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
92
|
-
};
|
|
93
|
-
// {{VueImport}}
|
|
94
|
-
let vueImport$1;
|
|
95
|
-
if (!isExecute || parseInt(allVue.version) < 3) {
|
|
96
|
-
vueImport$1 = Vue;
|
|
97
|
-
}
|
|
98
|
-
else {
|
|
99
|
-
vueImport$1 = Vue$1;
|
|
100
|
-
}
|
|
101
|
-
let LevelsDirective =
|
|
102
|
-
/* Start Options({
|
|
103
|
-
inject: {
|
|
104
|
-
custom: {
|
|
105
|
-
default: null
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
}) End */
|
|
109
|
-
class LevelsDirective extends vueImport$1 {
|
|
110
|
-
constructor() {
|
|
111
|
-
super(arguments);
|
|
112
|
-
}
|
|
52
|
+
let LevelsDirective = vueDefineComponent({
|
|
53
|
+
inject: { custom: { default: null } },
|
|
113
54
|
render(createElement) {
|
|
114
55
|
if (!isExecute) {
|
|
115
56
|
let h = !isExecute ? gh : createElement;
|
|
@@ -120,34 +61,26 @@ class LevelsDirective extends vueImport$1 {
|
|
|
120
61
|
return h('div', { class: 'e-directive' }, slots);
|
|
121
62
|
}
|
|
122
63
|
return;
|
|
123
|
-
}
|
|
64
|
+
},
|
|
124
65
|
updated() {
|
|
125
66
|
if (!isExecute && this.custom) {
|
|
126
67
|
this.custom();
|
|
127
68
|
}
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
};
|
|
133
|
-
LevelsDirective = __decorate$1([
|
|
134
|
-
EJComponentDecorator({}, isExecute)
|
|
135
|
-
/* Start Options({
|
|
136
|
-
inject: {
|
|
137
|
-
custom: {
|
|
138
|
-
default: null
|
|
139
|
-
}
|
|
69
|
+
},
|
|
70
|
+
methods: {
|
|
71
|
+
getTag() {
|
|
72
|
+
return 'e-levels';
|
|
140
73
|
}
|
|
141
|
-
}
|
|
142
|
-
|
|
74
|
+
}
|
|
75
|
+
});
|
|
143
76
|
const LevelsPlugin = {
|
|
144
77
|
name: 'e-levels',
|
|
145
|
-
install(Vue
|
|
146
|
-
Vue
|
|
78
|
+
install(Vue) {
|
|
79
|
+
Vue.component(LevelsPlugin.name, LevelsDirective);
|
|
147
80
|
}
|
|
148
81
|
};
|
|
149
82
|
/**
|
|
150
|
-
*
|
|
83
|
+
* Represents the directive to configure and render level leaf items in the treemap.
|
|
151
84
|
* ```vue
|
|
152
85
|
* <ejs-treemap>
|
|
153
86
|
* <e-levels>
|
|
@@ -156,31 +89,23 @@ const LevelsPlugin = {
|
|
|
156
89
|
* </ejs-treemap>
|
|
157
90
|
* ```
|
|
158
91
|
*/
|
|
159
|
-
let LevelDirective =
|
|
92
|
+
let LevelDirective = vueDefineComponent({
|
|
160
93
|
render() {
|
|
161
94
|
return;
|
|
95
|
+
},
|
|
96
|
+
methods: {
|
|
97
|
+
getTag() {
|
|
98
|
+
return 'e-level';
|
|
99
|
+
}
|
|
162
100
|
}
|
|
163
|
-
|
|
164
|
-
return 'e-level';
|
|
165
|
-
}
|
|
166
|
-
};
|
|
167
|
-
LevelDirective = __decorate$1([
|
|
168
|
-
EJComponentDecorator({}, isExecute)
|
|
169
|
-
], LevelDirective);
|
|
101
|
+
});
|
|
170
102
|
const LevelPlugin = {
|
|
171
103
|
name: 'e-level',
|
|
172
|
-
install(Vue
|
|
173
|
-
Vue
|
|
104
|
+
install(Vue) {
|
|
105
|
+
Vue.component(LevelPlugin.name, LevelDirective);
|
|
174
106
|
}
|
|
175
107
|
};
|
|
176
108
|
|
|
177
|
-
var __decorate$2 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
178
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
179
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
180
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
181
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
182
|
-
};
|
|
183
|
-
// {{VueImport}}
|
|
184
109
|
const properties = ['isLazyUpdate', 'plugins', 'allowImageExport', 'allowPdfExport', 'allowPrint', 'background', 'border', 'breadcrumbConnector', 'colorValuePath', 'dataSource', 'description', 'drillDownView', 'enableBreadcrumb', 'enableDrillDown', 'enablePersistence', 'enableRtl', 'equalColorValuePath', 'format', 'height', 'highlightSettings', 'initialDrillDown', 'layoutType', 'leafItemSettings', 'legendSettings', 'levels', 'locale', 'margin', 'palette', 'query', 'rangeColorValuePath', 'renderDirection', 'selectionSettings', 'tabIndex', 'theme', 'titleSettings', 'tooltipSettings', 'useGroupingSeparator', 'weightValuePath', 'width', 'beforePrint', 'click', 'doubleClick', 'drillEnd', 'drillStart', 'itemClick', 'itemHighlight', 'itemMove', 'itemRendering', 'itemSelected', 'legendItemRendering', 'legendRendering', 'load', 'loaded', 'mouseMove', 'resize', 'rightClick', 'tooltipRendering'];
|
|
185
110
|
const modelProps = [];
|
|
186
111
|
const testProp = getProps({ props: properties });
|
|
@@ -192,84 +117,38 @@ for (let props of modelProps) {
|
|
|
192
117
|
emitProbs.push('update:' + props);
|
|
193
118
|
}
|
|
194
119
|
/**
|
|
195
|
-
* Represents
|
|
120
|
+
* Represents the Vue TreeMap component. It is used to visualize both hierarchical and flat data.
|
|
196
121
|
* ```vue
|
|
197
122
|
* <ejs-treemap></ejs-treemap>
|
|
198
123
|
* ```
|
|
199
124
|
*/
|
|
200
|
-
let TreeMapComponent =
|
|
201
|
-
|
|
125
|
+
let TreeMapComponent = vueDefineComponent({
|
|
126
|
+
name: 'TreeMapComponent',
|
|
127
|
+
mixins: [ComponentBase],
|
|
202
128
|
props: props,
|
|
203
129
|
watch: watch,
|
|
204
130
|
emits: emitProbs,
|
|
205
|
-
provide:
|
|
131
|
+
provide() { return { custom: this.custom }; },
|
|
132
|
+
data() {
|
|
206
133
|
return {
|
|
207
|
-
|
|
134
|
+
ej2Instances: new TreeMap({}),
|
|
135
|
+
propKeys: properties,
|
|
136
|
+
models: modelProps,
|
|
137
|
+
hasChildDirective: true,
|
|
138
|
+
hasInjectedModules: true,
|
|
139
|
+
tagMapper: { "e-levels": { "e-level": { "e-colorMappings": "e-colorMapping" } } },
|
|
140
|
+
tagNameMapper: { "e-colorMappings": "e-colorMapping" },
|
|
141
|
+
isVue3: !isExecute,
|
|
142
|
+
templateCollection: {},
|
|
208
143
|
};
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
class TreeMapComponent extends ComponentBase {
|
|
212
|
-
constructor() {
|
|
213
|
-
super(arguments);
|
|
214
|
-
this.propKeys = properties;
|
|
215
|
-
this.models = modelProps;
|
|
216
|
-
this.hasChildDirective = true;
|
|
217
|
-
this.hasInjectedModules = true;
|
|
218
|
-
this.tagMapper = { "e-levels": { "e-level": { "e-colorMappings": "e-colorMapping" } } };
|
|
219
|
-
this.tagNameMapper = { "e-colorMappings": "e-colorMapping" };
|
|
220
|
-
this.isVue3 = !isExecute;
|
|
221
|
-
this.ej2Instances = new TreeMap({});
|
|
144
|
+
},
|
|
145
|
+
created() {
|
|
222
146
|
this.bindProperties();
|
|
223
147
|
this.ej2Instances._setProperties = this.ej2Instances.setProperties;
|
|
224
148
|
this.ej2Instances.setProperties = this.setProperties;
|
|
225
149
|
this.ej2Instances.clearTemplate = this.clearTemplate;
|
|
226
150
|
this.updated = this.updated;
|
|
227
|
-
}
|
|
228
|
-
clearTemplate(templateNames) {
|
|
229
|
-
if (!templateNames) {
|
|
230
|
-
templateNames = Object.keys(this.templateCollection || {});
|
|
231
|
-
}
|
|
232
|
-
if (templateNames.length && this.templateCollection) {
|
|
233
|
-
for (let tempName of templateNames) {
|
|
234
|
-
let elementCollection = this.templateCollection[tempName];
|
|
235
|
-
if (elementCollection && elementCollection.length) {
|
|
236
|
-
for (let ele of elementCollection) {
|
|
237
|
-
let destroy = getValue('__vue__.$destroy', ele);
|
|
238
|
-
if (destroy) {
|
|
239
|
-
ele.__vue__.$destroy();
|
|
240
|
-
}
|
|
241
|
-
if (ele.innerHTML) {
|
|
242
|
-
ele.innerHTML = '';
|
|
243
|
-
}
|
|
244
|
-
}
|
|
245
|
-
delete this.templateCollection[tempName];
|
|
246
|
-
}
|
|
247
|
-
}
|
|
248
|
-
}
|
|
249
|
-
}
|
|
250
|
-
setProperties(prop, muteOnChange) {
|
|
251
|
-
if (this.isVue3) {
|
|
252
|
-
this.models = !this.models ? this.ej2Instances.referModels : this.models;
|
|
253
|
-
}
|
|
254
|
-
if (this.ej2Instances && this.ej2Instances._setProperties) {
|
|
255
|
-
this.ej2Instances._setProperties(prop, muteOnChange);
|
|
256
|
-
}
|
|
257
|
-
if (prop && this.models && this.models.length) {
|
|
258
|
-
Object.keys(prop).map((key) => {
|
|
259
|
-
this.models.map((model) => {
|
|
260
|
-
if ((key === model) && !(/datasource/i.test(key))) {
|
|
261
|
-
if (this.isVue3) {
|
|
262
|
-
this.ej2Instances.vueInstance.$emit('update:' + key, prop[key]);
|
|
263
|
-
}
|
|
264
|
-
else {
|
|
265
|
-
this.$emit('update:' + key, prop[key]);
|
|
266
|
-
this.$emit('modelchanged', prop[key]);
|
|
267
|
-
}
|
|
268
|
-
}
|
|
269
|
-
});
|
|
270
|
-
});
|
|
271
|
-
}
|
|
272
|
-
}
|
|
151
|
+
},
|
|
273
152
|
render(createElement) {
|
|
274
153
|
let h = !isExecute ? gh : createElement;
|
|
275
154
|
let slots = null;
|
|
@@ -277,79 +156,78 @@ class TreeMapComponent extends ComponentBase {
|
|
|
277
156
|
slots = !isExecute ? this.$slots.default() : this.$slots.default;
|
|
278
157
|
}
|
|
279
158
|
return h('div', slots);
|
|
280
|
-
}
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
}
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
], TreeMapComponent);
|
|
159
|
+
},
|
|
160
|
+
methods: {
|
|
161
|
+
clearTemplate(templateNames) {
|
|
162
|
+
if (!templateNames) {
|
|
163
|
+
templateNames = Object.keys(this.templateCollection || {});
|
|
164
|
+
}
|
|
165
|
+
if (templateNames.length && this.templateCollection) {
|
|
166
|
+
for (let tempName of templateNames) {
|
|
167
|
+
let elementCollection = this.templateCollection[tempName];
|
|
168
|
+
if (elementCollection && elementCollection.length) {
|
|
169
|
+
for (let ele of elementCollection) {
|
|
170
|
+
let destroy = getValue('__vue__.$destroy', ele);
|
|
171
|
+
if (destroy) {
|
|
172
|
+
ele.__vue__.$destroy();
|
|
173
|
+
}
|
|
174
|
+
if (ele.innerHTML) {
|
|
175
|
+
ele.innerHTML = '';
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
delete this.templateCollection[tempName];
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
},
|
|
183
|
+
setProperties(prop, muteOnChange) {
|
|
184
|
+
if (this.isVue3) {
|
|
185
|
+
this.models = !this.models ? this.ej2Instances.referModels : this.models;
|
|
186
|
+
}
|
|
187
|
+
if (this.ej2Instances && this.ej2Instances._setProperties) {
|
|
188
|
+
this.ej2Instances._setProperties(prop, muteOnChange);
|
|
189
|
+
}
|
|
190
|
+
if (prop && this.models && this.models.length) {
|
|
191
|
+
Object.keys(prop).map((key) => {
|
|
192
|
+
this.models.map((model) => {
|
|
193
|
+
if ((key === model) && !(/datasource/i.test(key))) {
|
|
194
|
+
if (this.isVue3) {
|
|
195
|
+
this.ej2Instances.vueInstance.$emit('update:' + key, prop[key]);
|
|
196
|
+
}
|
|
197
|
+
else {
|
|
198
|
+
this.$emit('update:' + key, prop[key]);
|
|
199
|
+
this.$emit('modelchanged', prop[key]);
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
});
|
|
203
|
+
});
|
|
204
|
+
}
|
|
205
|
+
},
|
|
206
|
+
custom() {
|
|
207
|
+
this.updated();
|
|
208
|
+
},
|
|
209
|
+
doubleClickOnTreeMap(e) {
|
|
210
|
+
return this.ej2Instances.doubleClickOnTreeMap(e);
|
|
211
|
+
},
|
|
212
|
+
export(type, fileName, orientation, allowDownload) {
|
|
213
|
+
return this.ej2Instances.export(type, fileName, orientation, allowDownload);
|
|
214
|
+
},
|
|
215
|
+
print(id) {
|
|
216
|
+
return this.ej2Instances.print(id);
|
|
217
|
+
},
|
|
218
|
+
selectItem(levelOrder, isSelected) {
|
|
219
|
+
return this.ej2Instances.selectItem(levelOrder, isSelected);
|
|
220
|
+
},
|
|
221
|
+
}
|
|
222
|
+
});
|
|
345
223
|
const TreeMapPlugin = {
|
|
346
224
|
name: 'ejs-treemap',
|
|
347
|
-
install(Vue
|
|
348
|
-
Vue
|
|
349
|
-
Vue
|
|
350
|
-
Vue
|
|
351
|
-
Vue
|
|
352
|
-
Vue
|
|
225
|
+
install(Vue) {
|
|
226
|
+
Vue.component(TreeMapPlugin.name, TreeMapComponent);
|
|
227
|
+
Vue.component(LevelPlugin.name, LevelDirective);
|
|
228
|
+
Vue.component(LevelsPlugin.name, LevelsDirective);
|
|
229
|
+
Vue.component(ColorMappingPlugin.name, ColorMappingDirective);
|
|
230
|
+
Vue.component(ColorMappingsPlugin.name, ColorMappingsDirective);
|
|
353
231
|
}
|
|
354
232
|
};
|
|
355
233
|
|