@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.
@@ -1 +1 @@
1
- {"version":3,"file":"ej2-vue-treemap.es2015.js","sources":["../src/es6/treemap/colormapping.directive.js","../src/es6/treemap/levels.directive.js","../src/es6/treemap/treemap.component.js"],"sourcesContent":["var __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 { EJComponentDecorator, allVue, gh, isExecute } from '@syncfusion/ej2-vue-base';\nimport * as Vue3 from 'vue-class-component';\nimport { isNullOrUndefined } from '@syncfusion/ej2-base';\nimport Vue from 'vue';\n// {{VueImport}}\nlet vueImport;\nif (!isExecute || parseInt(allVue.version) < 3) {\n vueImport = Vue3.Vue;\n}\nelse {\n vueImport = Vue;\n}\nlet ColorMappingsDirective = \n/* Start Options({\n inject: {\n custom: {\n default: null\n }\n }\n}) End */\nclass ColorMappingsDirective extends vueImport {\n constructor() {\n super(arguments);\n }\n render(createElement) {\n if (!isExecute) {\n let h = !isExecute ? gh : createElement;\n let 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() {\n if (!isExecute && this.custom) {\n this.custom();\n }\n }\n getTag() {\n return 'e-colorMappings';\n }\n};\nColorMappingsDirective = __decorate([\n EJComponentDecorator({}, isExecute)\n /* Start Options({\n inject: {\n custom: {\n default: null\n }\n }\n }) End */\n], ColorMappingsDirective);\nexport { ColorMappingsDirective };\nexport const ColorMappingsPlugin = {\n name: 'e-colorMappings',\n install(Vue) {\n Vue.component(ColorMappingsPlugin.name, ColorMappingsDirective);\n }\n};\nlet ColorMappingDirective = class ColorMappingDirective extends vueImport {\n render() {\n return;\n }\n getTag() {\n return 'e-colorMapping';\n }\n};\nColorMappingDirective = __decorate([\n EJComponentDecorator({}, isExecute)\n], ColorMappingDirective);\nexport { ColorMappingDirective };\nexport const ColorMappingPlugin = {\n name: 'e-colorMapping',\n install(Vue) {\n Vue.component(ColorMappingPlugin.name, ColorMappingDirective);\n }\n};\n","var __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 { EJComponentDecorator, allVue, gh, isExecute } from '@syncfusion/ej2-vue-base';\nimport * as Vue3 from 'vue-class-component';\nimport { isNullOrUndefined } from '@syncfusion/ej2-base';\nimport Vue from 'vue';\n// {{VueImport}}\nlet vueImport;\nif (!isExecute || parseInt(allVue.version) < 3) {\n vueImport = Vue3.Vue;\n}\nelse {\n vueImport = Vue;\n}\nlet LevelsDirective = \n/* Start Options({\n inject: {\n custom: {\n default: null\n }\n }\n}) End */\nclass LevelsDirective extends vueImport {\n constructor() {\n super(arguments);\n }\n render(createElement) {\n if (!isExecute) {\n let h = !isExecute ? gh : createElement;\n let 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() {\n if (!isExecute && this.custom) {\n this.custom();\n }\n }\n getTag() {\n return 'e-levels';\n }\n};\nLevelsDirective = __decorate([\n EJComponentDecorator({}, isExecute)\n /* Start Options({\n inject: {\n custom: {\n default: null\n }\n }\n }) End */\n], LevelsDirective);\nexport { LevelsDirective };\nexport const LevelsPlugin = {\n name: 'e-levels',\n install(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 */\nlet LevelDirective = class LevelDirective extends vueImport {\n render() {\n return;\n }\n getTag() {\n return 'e-level';\n }\n};\nLevelDirective = __decorate([\n EJComponentDecorator({}, isExecute)\n], LevelDirective);\nexport { LevelDirective };\nexport const LevelPlugin = {\n name: 'e-level',\n install(Vue) {\n Vue.component(LevelPlugin.name, LevelDirective);\n }\n};\n","var __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, getProps, gh, isExecute } 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';\n// {{VueImport}}\nexport 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'];\nexport const modelProps = [];\nexport const testProp = getProps({ props: properties });\nexport const props = testProp[0];\nexport const watch = testProp[1];\nexport const emitProbs = Object.keys(watch);\nemitProbs.push('modelchanged', 'update:modelValue');\nfor (let props of modelProps) {\n emitProbs.push('update:' + props);\n}\n/**\n * Represents Vuejs TreeMap Component\n * ```vue\n * <ejs-treemap></ejs-treemap>\n * ```\n */\nlet TreeMapComponent = \n/* Start Options({\n props: props,\n watch: watch,\n emits: emitProbs,\n provide: function provide() {\n return {\n custom: this.custom\n };\n }\n}) End */\nclass TreeMapComponent extends ComponentBase {\n constructor() {\n super(arguments);\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.isVue3 = !isExecute;\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 }\n clearTemplate(templateNames) {\n if (!templateNames) {\n templateNames = Object.keys(this.templateCollection || {});\n }\n if (templateNames.length && this.templateCollection) {\n for (let tempName of templateNames) {\n let elementCollection = this.templateCollection[tempName];\n if (elementCollection && elementCollection.length) {\n for (let ele of elementCollection) {\n let 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(prop, muteOnChange) {\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((key) => {\n this.models.map((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 render(createElement) {\n let h = !isExecute ? gh : createElement;\n let 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 custom() {\n this.updated();\n }\n calculateSelectedTextLevels(labelText, item) {\n return this.ej2Instances.calculateSelectedTextLevels(labelText, item);\n }\n clickOnTreeMap(e) {\n return this.ej2Instances.clickOnTreeMap(e);\n }\n compareSelectedLabelWithDrillDownItems(drillLevelValues, item, i) {\n return this.ej2Instances.compareSelectedLabelWithDrillDownItems(drillLevelValues, item, i);\n }\n doubleClickOnTreeMap(e) {\n return this.ej2Instances.doubleClickOnTreeMap(e);\n }\n export(type, fileName, orientation, allowDownload) {\n return this.ej2Instances.export(type, fileName, orientation, allowDownload);\n }\n findTotalWeight(processData, type) {\n return this.ej2Instances.findTotalWeight(processData, type);\n }\n mouseDownOnTreeMap(e) {\n return this.ej2Instances.mouseDownOnTreeMap(e);\n }\n mouseEndOnTreeMap(e) {\n return this.ej2Instances.mouseEndOnTreeMap(e);\n }\n mouseLeaveOnTreeMap(e) {\n return this.ej2Instances.mouseLeaveOnTreeMap(e);\n }\n mouseMoveOnTreeMap(e) {\n return this.ej2Instances.mouseMoveOnTreeMap(e);\n }\n print(id) {\n return this.ej2Instances.print(id);\n }\n reOrderLevelData(start) {\n return this.ej2Instances.reOrderLevelData(start);\n }\n resizeOnTreeMap(e) {\n return this.ej2Instances.resizeOnTreeMap(e);\n }\n rightClickOnTreeMap(e) {\n return this.ej2Instances.rightClickOnTreeMap(e);\n }\n selectItem(levelOrder, isSelected) {\n return this.ej2Instances.selectItem(levelOrder, isSelected);\n }\n};\nTreeMapComponent = __decorate([\n EJComponentDecorator({\n props: properties\n }, isExecute)\n /* Start Options({\n props: props,\n watch: watch,\n emits: emitProbs,\n provide: function provide() {\n return {\n custom: this.custom\n };\n }\n }) End */\n], TreeMapComponent);\nexport { TreeMapComponent };\nexport const TreeMapPlugin = {\n name: 'ejs-treemap',\n install(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":["this","Vue3.Vue","Vue","__decorate","vueImport"],"mappings":";;;;;;AAAA,IAAI,UAAU,GAAG,CAACA,SAAI,IAAIA,SAAI,CAAC,UAAU,KAAK,UAAU,UAAU,EAAE,MAAM,EAAE,GAAG,EAAE,IAAI,EAAE;IACnF,IAAI,CAAC,GAAG,SAAS,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,MAAM,GAAG,IAAI,KAAK,IAAI,GAAG,IAAI,GAAG,MAAM,CAAC,wBAAwB,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,IAAI,EAAE,CAAC,CAAC;IAC7H,IAAI,OAAO,OAAO,KAAK,QAAQ,IAAI,OAAO,OAAO,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AC,CAAC;KAC/D;CACJ,CAAC;AACF,gBAAgB,GAAGG,YAAU,CAAC;IAC1B,oBAAoB,CAAC;QACjB,KAAK,EAAE,UAAU;KACpB,EAAE,SAAS,CAAC;;;;;;;;;;;CAWhB,EAAE,gBAAgB,CAAC,CAAC;AACrB,AACO,MAAM,aAAa,GAAG;IACzB,IAAI,EAAE,aAAa;IACnB,OAAO,CAACD,MAAG,EAAE;QACTA,MAAG,CAAC,SAAS,CAAC,aAAa,CAAC,IAAI,EAAE,gBAAgB,CAAC,CAAC;QACpDA,MAAG,CAAC,SAAS,CAAC,WAAW,CAAC,IAAI,EAAE,cAAc,CAAC,CAAC;QAChDA,MAAG,CAAC,SAAS,CAAC,YAAY,CAAC,IAAI,EAAE,eAAe,CAAC,CAAC;QAClDA,MAAG,CAAC,SAAS,CAAC,kBAAkB,CAAC,IAAI,EAAE,qBAAqB,CAAC,CAAC;QAC9DA,MAAG,CAAC,SAAS,CAAC,mBAAmB,CAAC,IAAI,EAAE,sBAAsB,CAAC,CAAC;KACnE;CACJ;;;;;"}
1
+ {"version":3,"file":"ej2-vue-treemap.es2015.js","sources":["../src/es6/treemap/colormapping.directive.js","../src/es6/treemap/levels.directive.js","../src/es6/treemap/treemap.component.js"],"sourcesContent":["import { gh, isExecute, vueDefineComponent } from '@syncfusion/ej2-vue-base';\nimport { isNullOrUndefined } from '@syncfusion/ej2-base';\nexport let ColorMappingsDirective = vueDefineComponent({\n inject: { custom: { default: null } },\n render(createElement) {\n if (!isExecute) {\n let h = !isExecute ? gh : createElement;\n let 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() {\n if (!isExecute && this.custom) {\n this.custom();\n }\n },\n methods: {\n getTag() {\n return 'e-colorMappings';\n }\n }\n});\nexport const ColorMappingsPlugin = {\n name: 'e-colorMappings',\n install(Vue) {\n Vue.component(ColorMappingsPlugin.name, ColorMappingsDirective);\n }\n};\nexport let ColorMappingDirective = vueDefineComponent({\n render() {\n return;\n },\n methods: {\n getTag() {\n return 'e-colorMapping';\n }\n }\n});\nexport const ColorMappingPlugin = {\n name: 'e-colorMapping',\n install(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 let LevelsDirective = vueDefineComponent({\n inject: { custom: { default: null } },\n render(createElement) {\n if (!isExecute) {\n let h = !isExecute ? gh : createElement;\n let 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() {\n if (!isExecute && this.custom) {\n this.custom();\n }\n },\n methods: {\n getTag() {\n return 'e-levels';\n }\n }\n});\nexport const LevelsPlugin = {\n name: 'e-levels',\n install(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 let LevelDirective = vueDefineComponent({\n render() {\n return;\n },\n methods: {\n getTag() {\n return 'e-level';\n }\n }\n});\nexport const LevelPlugin = {\n name: 'e-level',\n install(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 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'];\nexport const modelProps = [];\nexport const testProp = getProps({ props: properties });\nexport const props = testProp[0], watch = testProp[1], emitProbs = Object.keys(watch);\nemitProbs.push('modelchanged', 'update:modelValue');\nfor (let props of modelProps) {\n emitProbs.push('update:' + props);\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 let TreeMapComponent = vueDefineComponent({\n name: 'TreeMapComponent',\n mixins: [ComponentBase],\n props: props,\n watch: watch,\n emits: emitProbs,\n provide() { return { custom: this.custom }; },\n data() {\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() {\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(createElement) {\n let h = !isExecute ? gh : createElement;\n let 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(templateNames) {\n if (!templateNames) {\n templateNames = Object.keys(this.templateCollection || {});\n }\n if (templateNames.length && this.templateCollection) {\n for (let tempName of templateNames) {\n let elementCollection = this.templateCollection[tempName];\n if (elementCollection && elementCollection.length) {\n for (let ele of elementCollection) {\n let 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(prop, muteOnChange) {\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((key) => {\n this.models.map((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() {\n this.updated();\n },\n doubleClickOnTreeMap(e) {\n return this.ej2Instances.doubleClickOnTreeMap(e);\n },\n export(type, fileName, orientation, allowDownload) {\n return this.ej2Instances.export(type, fileName, orientation, allowDownload);\n },\n print(id) {\n return this.ej2Instances.print(id);\n },\n selectItem(levelOrder, isSelected) {\n return this.ej2Instances.selectItem(levelOrder, isSelected);\n },\n }\n});\nexport const TreeMapPlugin = {\n name: 'ejs-treemap',\n install(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);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,OAAO,IAAI,CAAC,YAAY,CAAC,MAAM,CAAC,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,aAAa,CAAC,CAAC;SAC/E;QACD,KAAK,CAAC,EAAE,EAAE;YACN,OAAO,IAAI,CAAC,YAAY,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;SACtC;QACD,UAAU,CAAC,UAAU,EAAE,UAAU,EAAE;YAC/B,OAAO,IAAI,CAAC,YAAY,CAAC,UAAU,CAAC,UAAU,EAAE,UAAU,CAAC,CAAC;SAC/D;KACJ;CACJ,CAAC,CAAC;AACH,AAAO,MAAM,aAAa,GAAG;IACzB,IAAI,EAAE,aAAa;IACnB,OAAO,CAAC,GAAG,EAAE;QACT,GAAG,CAAC,SAAS,CAAC,aAAa,CAAC,IAAI,EAAE,gBAAgB,CAAC,CAAC;QACpD,GAAG,CAAC,SAAS,CAAC,WAAW,CAAC,IAAI,EAAE,cAAc,CAAC,CAAC;QAChD,GAAG,CAAC,SAAS,CAAC,YAAY,CAAC,IAAI,EAAE,eAAe,CAAC,CAAC;QAClD,GAAG,CAAC,SAAS,CAAC,kBAAkB,CAAC,IAAI,EAAE,qBAAqB,CAAC,CAAC;QAC9D,GAAG,CAAC,SAAS,CAAC,mBAAmB,CAAC,IAAI,EAAE,sBAAsB,CAAC,CAAC;KACnE;CACJ;;;;;"}
@@ -1,42 +1,10 @@
1
1
  import { TreeMap } from '@syncfusion/ej2-treemap';
2
- import { ComponentBase, EJComponentDecorator, allVue, getProps, gh, isExecute } from '@syncfusion/ej2-vue-base';
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
- var __extends = (undefined && undefined.__extends) || (function () {
8
- var extendStatics = function (d, b) {
9
- extendStatics = Object.setPrototypeOf ||
10
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
11
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
12
- return extendStatics(d, b);
13
- };
14
- return function (d, b) {
15
- extendStatics(d, b);
16
- function __() { this.constructor = d; }
17
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
18
- };
19
- })();
20
- var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
21
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
22
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
23
- 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;
24
- return c > 3 && r && Object.defineProperty(target, key, r), r;
25
- };
26
- import { Options } from 'vue-class-component';
27
- var vueImport;
28
- if (!isExecute || parseInt(allVue.version) < 3) {
29
- vueImport = Vue;
30
- }
31
- else {
32
- vueImport = Vue$1;
33
- }
34
- var ColorMappingsDirective = /** @__PURE__ @class */ (function (_super) {
35
- __extends(ColorMappingsDirective, _super);
36
- function ColorMappingsDirective() {
37
- return _super.call(this, arguments) || this;
38
- }
39
- ColorMappingsDirective.prototype.render = function (createElement) {
5
+ var ColorMappingsDirective = vueDefineComponent({
6
+ inject: { custom: { default: null } },
7
+ render: function (createElement) {
40
8
  if (!isExecute) {
41
9
  var h = !isExecute ? gh : createElement;
42
10
  var slots = null;
@@ -46,89 +14,44 @@ var ColorMappingsDirective = /** @__PURE__ @class */ (function (_super) {
46
14
  return h('div', { class: 'e-directive' }, slots);
47
15
  }
48
16
  return;
49
- };
50
- ColorMappingsDirective.prototype.updated = function () {
17
+ },
18
+ updated: function () {
51
19
  if (!isExecute && this.custom) {
52
20
  this.custom();
53
21
  }
54
- };
55
- ColorMappingsDirective.prototype.getTag = function () {
56
- return 'e-colorMappings';
57
- };
58
- ColorMappingsDirective = __decorate([
59
- EJComponentDecorator({}, isExecute)
60
- ,Options({
61
- inject: {
62
- custom: {
63
- default: null
64
- }
65
- }
66
- })
67
- ], ColorMappingsDirective);
68
- return ColorMappingsDirective;
69
- }(vueImport));
22
+ },
23
+ methods: {
24
+ getTag: function () {
25
+ return 'e-colorMappings';
26
+ }
27
+ }
28
+ });
70
29
  var ColorMappingsPlugin = {
71
30
  name: 'e-colorMappings',
72
- install: function (Vue$$1) {
73
- Vue$$1.component(ColorMappingsPlugin.name, ColorMappingsDirective);
31
+ install: function (Vue) {
32
+ Vue.component(ColorMappingsPlugin.name, ColorMappingsDirective);
74
33
  }
75
34
  };
76
- var ColorMappingDirective = /** @__PURE__ @class */ (function (_super) {
77
- __extends(ColorMappingDirective, _super);
78
- function ColorMappingDirective() {
79
- return _super !== null && _super.apply(this, arguments) || this;
80
- }
81
- ColorMappingDirective.prototype.render = function () {
35
+ var ColorMappingDirective = vueDefineComponent({
36
+ render: function () {
82
37
  return;
83
- };
84
- ColorMappingDirective.prototype.getTag = function () {
85
- return 'e-colorMapping';
86
- };
87
- ColorMappingDirective = __decorate([
88
- EJComponentDecorator({}, isExecute)
89
- ], ColorMappingDirective);
90
- return ColorMappingDirective;
91
- }(vueImport));
38
+ },
39
+ methods: {
40
+ getTag: function () {
41
+ return 'e-colorMapping';
42
+ }
43
+ }
44
+ });
92
45
  var ColorMappingPlugin = {
93
46
  name: 'e-colorMapping',
94
- install: function (Vue$$1) {
95
- Vue$$1.component(ColorMappingPlugin.name, ColorMappingDirective);
47
+ install: function (Vue) {
48
+ Vue.component(ColorMappingPlugin.name, ColorMappingDirective);
96
49
  }
97
50
  };
98
51
 
99
- var __extends$1 = (undefined && undefined.__extends) || (function () {
100
- var extendStatics = function (d, b) {
101
- extendStatics = Object.setPrototypeOf ||
102
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
103
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
104
- return extendStatics(d, b);
105
- };
106
- return function (d, b) {
107
- extendStatics(d, b);
108
- function __() { this.constructor = d; }
109
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
110
- };
111
- })();
112
- var __decorate$1 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
113
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
114
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
115
- 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;
116
- return c > 3 && r && Object.defineProperty(target, key, r), r;
117
- };
118
- // {{VueImport}}
119
- var vueImport$1;
120
- if (!isExecute || parseInt(allVue.version) < 3) {
121
- vueImport$1 = Vue;
122
- }
123
- else {
124
- vueImport$1 = Vue$1;
125
- }
126
- var LevelsDirective = /** @__PURE__ @class */ (function (_super) {
127
- __extends$1(LevelsDirective, _super);
128
- function LevelsDirective() {
129
- return _super.call(this, arguments) || this;
130
- }
131
- LevelsDirective.prototype.render = function (createElement) {
52
+ var LevelsDirective = vueDefineComponent({
53
+ inject: { custom: { default: null } },
54
+ render: function (createElement) {
132
55
  if (!isExecute) {
133
56
  var h = !isExecute ? gh : createElement;
134
57
  var slots = null;
@@ -138,35 +61,26 @@ var LevelsDirective = /** @__PURE__ @class */ (function (_super) {
138
61
  return h('div', { class: 'e-directive' }, slots);
139
62
  }
140
63
  return;
141
- };
142
- LevelsDirective.prototype.updated = function () {
64
+ },
65
+ updated: function () {
143
66
  if (!isExecute && this.custom) {
144
67
  this.custom();
145
68
  }
146
- };
147
- LevelsDirective.prototype.getTag = function () {
148
- return 'e-levels';
149
- };
150
- LevelsDirective = __decorate$1([
151
- EJComponentDecorator({}, isExecute)
152
- ,Options({
153
- inject: {
154
- custom: {
155
- default: null
156
- }
157
- }
158
- })
159
- ], LevelsDirective);
160
- return LevelsDirective;
161
- }(vueImport$1));
69
+ },
70
+ methods: {
71
+ getTag: function () {
72
+ return 'e-levels';
73
+ }
74
+ }
75
+ });
162
76
  var LevelsPlugin = {
163
77
  name: 'e-levels',
164
- install: function (Vue$$1) {
165
- Vue$$1.component(LevelsPlugin.name, LevelsDirective);
78
+ install: function (Vue) {
79
+ Vue.component(LevelsPlugin.name, LevelsDirective);
166
80
  }
167
81
  };
168
82
  /**
169
- * `LevelsDirective` directive represent a levels of the react treemap.
83
+ * Represents the directive to configure and render level leaf items in the treemap.
170
84
  * ```vue
171
85
  * <ejs-treemap>
172
86
  * <e-levels>
@@ -175,49 +89,23 @@ var LevelsPlugin = {
175
89
  * </ejs-treemap>
176
90
  * ```
177
91
  */
178
- var LevelDirective = /** @__PURE__ @class */ (function (_super) {
179
- __extends$1(LevelDirective, _super);
180
- function LevelDirective() {
181
- return _super !== null && _super.apply(this, arguments) || this;
182
- }
183
- LevelDirective.prototype.render = function () {
92
+ var LevelDirective = vueDefineComponent({
93
+ render: function () {
184
94
  return;
185
- };
186
- LevelDirective.prototype.getTag = function () {
187
- return 'e-level';
188
- };
189
- LevelDirective = __decorate$1([
190
- EJComponentDecorator({}, isExecute)
191
- ], LevelDirective);
192
- return LevelDirective;
193
- }(vueImport$1));
95
+ },
96
+ methods: {
97
+ getTag: function () {
98
+ return 'e-level';
99
+ }
100
+ }
101
+ });
194
102
  var LevelPlugin = {
195
103
  name: 'e-level',
196
- install: function (Vue$$1) {
197
- Vue$$1.component(LevelPlugin.name, LevelDirective);
104
+ install: function (Vue) {
105
+ Vue.component(LevelPlugin.name, LevelDirective);
198
106
  }
199
107
  };
200
108
 
201
- var __extends$2 = (undefined && undefined.__extends) || (function () {
202
- var extendStatics = function (d, b) {
203
- extendStatics = Object.setPrototypeOf ||
204
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
205
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
206
- return extendStatics(d, b);
207
- };
208
- return function (d, b) {
209
- extendStatics(d, b);
210
- function __() { this.constructor = d; }
211
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
212
- };
213
- })();
214
- var __decorate$2 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
215
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
216
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
217
- 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;
218
- return c > 3 && r && Object.defineProperty(target, key, r), r;
219
- };
220
- // {{VueImport}}
221
109
  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'];
222
110
  var modelProps = [];
223
111
  var testProp = getProps({ props: properties });
@@ -230,159 +118,120 @@ for (var _i = 0, modelProps_1 = modelProps; _i < modelProps_1.length; _i++) {
230
118
  emitProbs.push('update:' + props_1);
231
119
  }
232
120
  /**
233
- * Represents Vuejs TreeMap Component
121
+ * Represents the Vue TreeMap component. It is used to visualize both hierarchical and flat data.
234
122
  * ```vue
235
123
  * <ejs-treemap></ejs-treemap>
236
124
  * ```
237
125
  */
238
- var TreeMapComponent = /** @__PURE__ @class */ (function (_super) {
239
- __extends$2(TreeMapComponent, _super);
240
- function TreeMapComponent() {
241
- var _this = _super.call(this, arguments) || this;
242
- _this.propKeys = properties;
243
- _this.models = modelProps;
244
- _this.hasChildDirective = true;
245
- _this.hasInjectedModules = true;
246
- _this.tagMapper = { "e-levels": { "e-level": { "e-colorMappings": "e-colorMapping" } } };
247
- _this.tagNameMapper = { "e-colorMappings": "e-colorMapping" };
248
- _this.isVue3 = !isExecute;
249
- _this.ej2Instances = new TreeMap({});
250
- _this.bindProperties();
251
- _this.ej2Instances._setProperties = _this.ej2Instances.setProperties;
252
- _this.ej2Instances.setProperties = _this.setProperties;
253
- _this.ej2Instances.clearTemplate = _this.clearTemplate;
254
- _this.updated = _this.updated;
255
- return _this;
256
- }
257
- TreeMapComponent.prototype.clearTemplate = function (templateNames) {
258
- if (!templateNames) {
259
- templateNames = Object.keys(this.templateCollection || {});
126
+ var TreeMapComponent = vueDefineComponent({
127
+ name: 'TreeMapComponent',
128
+ mixins: [ComponentBase],
129
+ props: props,
130
+ watch: watch,
131
+ emits: emitProbs,
132
+ provide: function () { return { custom: this.custom }; },
133
+ data: function () {
134
+ return {
135
+ ej2Instances: new TreeMap({}),
136
+ propKeys: properties,
137
+ models: modelProps,
138
+ hasChildDirective: true,
139
+ hasInjectedModules: true,
140
+ tagMapper: { "e-levels": { "e-level": { "e-colorMappings": "e-colorMapping" } } },
141
+ tagNameMapper: { "e-colorMappings": "e-colorMapping" },
142
+ isVue3: !isExecute,
143
+ templateCollection: {},
144
+ };
145
+ },
146
+ created: function () {
147
+ this.bindProperties();
148
+ this.ej2Instances._setProperties = this.ej2Instances.setProperties;
149
+ this.ej2Instances.setProperties = this.setProperties;
150
+ this.ej2Instances.clearTemplate = this.clearTemplate;
151
+ this.updated = this.updated;
152
+ },
153
+ render: function (createElement) {
154
+ var h = !isExecute ? gh : createElement;
155
+ var slots = null;
156
+ if (!isNullOrUndefined(this.$slots.default)) {
157
+ slots = !isExecute ? this.$slots.default() : this.$slots.default;
260
158
  }
261
- if (templateNames.length && this.templateCollection) {
262
- for (var _i = 0, templateNames_1 = templateNames; _i < templateNames_1.length; _i++) {
263
- var tempName = templateNames_1[_i];
264
- var elementCollection = this.templateCollection[tempName];
265
- if (elementCollection && elementCollection.length) {
266
- for (var _a = 0, elementCollection_1 = elementCollection; _a < elementCollection_1.length; _a++) {
267
- var ele = elementCollection_1[_a];
268
- var destroy = getValue('__vue__.$destroy', ele);
269
- if (destroy) {
270
- ele.__vue__.$destroy();
271
- }
272
- if (ele.innerHTML) {
273
- ele.innerHTML = '';
159
+ return h('div', slots);
160
+ },
161
+ methods: {
162
+ clearTemplate: function (templateNames) {
163
+ if (!templateNames) {
164
+ templateNames = Object.keys(this.templateCollection || {});
165
+ }
166
+ if (templateNames.length && this.templateCollection) {
167
+ for (var _i = 0, templateNames_1 = templateNames; _i < templateNames_1.length; _i++) {
168
+ var tempName = templateNames_1[_i];
169
+ var elementCollection = this.templateCollection[tempName];
170
+ if (elementCollection && elementCollection.length) {
171
+ for (var _a = 0, elementCollection_1 = elementCollection; _a < elementCollection_1.length; _a++) {
172
+ var ele = elementCollection_1[_a];
173
+ var destroy = getValue('__vue__.$destroy', ele);
174
+ if (destroy) {
175
+ ele.__vue__.$destroy();
176
+ }
177
+ if (ele.innerHTML) {
178
+ ele.innerHTML = '';
179
+ }
274
180
  }
181
+ delete this.templateCollection[tempName];
275
182
  }
276
- delete this.templateCollection[tempName];
277
183
  }
278
184
  }
279
- }
280
- };
281
- TreeMapComponent.prototype.setProperties = function (prop, muteOnChange) {
282
- var _this = this;
283
- if (this.isVue3) {
284
- this.models = !this.models ? this.ej2Instances.referModels : this.models;
285
- }
286
- if (this.ej2Instances && this.ej2Instances._setProperties) {
287
- this.ej2Instances._setProperties(prop, muteOnChange);
288
- }
289
- if (prop && this.models && this.models.length) {
290
- Object.keys(prop).map(function (key) {
291
- _this.models.map(function (model) {
292
- if ((key === model) && !(/datasource/i.test(key))) {
293
- if (_this.isVue3) {
294
- _this.ej2Instances.vueInstance.$emit('update:' + key, prop[key]);
295
- }
296
- else {
297
- _this.$emit('update:' + key, prop[key]);
298
- _this.$emit('modelchanged', prop[key]);
185
+ },
186
+ setProperties: function (prop, muteOnChange) {
187
+ var _this = this;
188
+ if (this.isVue3) {
189
+ this.models = !this.models ? this.ej2Instances.referModels : this.models;
190
+ }
191
+ if (this.ej2Instances && this.ej2Instances._setProperties) {
192
+ this.ej2Instances._setProperties(prop, muteOnChange);
193
+ }
194
+ if (prop && this.models && this.models.length) {
195
+ Object.keys(prop).map(function (key) {
196
+ _this.models.map(function (model) {
197
+ if ((key === model) && !(/datasource/i.test(key))) {
198
+ if (_this.isVue3) {
199
+ _this.ej2Instances.vueInstance.$emit('update:' + key, prop[key]);
200
+ }
201
+ else {
202
+ _this.$emit('update:' + key, prop[key]);
203
+ _this.$emit('modelchanged', prop[key]);
204
+ }
299
205
  }
300
- }
206
+ });
301
207
  });
302
- });
303
- }
304
- };
305
- TreeMapComponent.prototype.render = function (createElement) {
306
- var h = !isExecute ? gh : createElement;
307
- var slots = null;
308
- if (!isNullOrUndefined(this.$slots.default)) {
309
- slots = !isExecute ? this.$slots.default() : this.$slots.default;
310
- }
311
- return h('div', slots);
312
- };
313
- TreeMapComponent.prototype.custom = function () {
314
- this.updated();
315
- };
316
- TreeMapComponent.prototype.calculateSelectedTextLevels = function (labelText, item) {
317
- return this.ej2Instances.calculateSelectedTextLevels(labelText, item);
318
- };
319
- TreeMapComponent.prototype.clickOnTreeMap = function (e) {
320
- return this.ej2Instances.clickOnTreeMap(e);
321
- };
322
- TreeMapComponent.prototype.compareSelectedLabelWithDrillDownItems = function (drillLevelValues, item, i) {
323
- return this.ej2Instances.compareSelectedLabelWithDrillDownItems(drillLevelValues, item, i);
324
- };
325
- TreeMapComponent.prototype.doubleClickOnTreeMap = function (e) {
326
- return this.ej2Instances.doubleClickOnTreeMap(e);
327
- };
328
- TreeMapComponent.prototype.export = function (type, fileName, orientation, allowDownload) {
329
- return this.ej2Instances.export(type, fileName, orientation, allowDownload);
330
- };
331
- TreeMapComponent.prototype.findTotalWeight = function (processData, type) {
332
- return this.ej2Instances.findTotalWeight(processData, type);
333
- };
334
- TreeMapComponent.prototype.mouseDownOnTreeMap = function (e) {
335
- return this.ej2Instances.mouseDownOnTreeMap(e);
336
- };
337
- TreeMapComponent.prototype.mouseEndOnTreeMap = function (e) {
338
- return this.ej2Instances.mouseEndOnTreeMap(e);
339
- };
340
- TreeMapComponent.prototype.mouseLeaveOnTreeMap = function (e) {
341
- return this.ej2Instances.mouseLeaveOnTreeMap(e);
342
- };
343
- TreeMapComponent.prototype.mouseMoveOnTreeMap = function (e) {
344
- return this.ej2Instances.mouseMoveOnTreeMap(e);
345
- };
346
- TreeMapComponent.prototype.print = function (id) {
347
- return this.ej2Instances.print(id);
348
- };
349
- TreeMapComponent.prototype.reOrderLevelData = function (start) {
350
- return this.ej2Instances.reOrderLevelData(start);
351
- };
352
- TreeMapComponent.prototype.resizeOnTreeMap = function (e) {
353
- return this.ej2Instances.resizeOnTreeMap(e);
354
- };
355
- TreeMapComponent.prototype.rightClickOnTreeMap = function (e) {
356
- return this.ej2Instances.rightClickOnTreeMap(e);
357
- };
358
- TreeMapComponent.prototype.selectItem = function (levelOrder, isSelected) {
359
- return this.ej2Instances.selectItem(levelOrder, isSelected);
360
- };
361
- TreeMapComponent = __decorate$2([
362
- EJComponentDecorator({
363
- props: properties
364
- }, isExecute)
365
- ,Options({
366
- props: props,
367
- watch: watch,
368
- emits: emitProbs,
369
- provide: function provide() {
370
- return {
371
- custom: this.custom
372
- };
373
208
  }
374
- })
375
- ], TreeMapComponent);
376
- return TreeMapComponent;
377
- }(ComponentBase));
209
+ },
210
+ custom: function () {
211
+ this.updated();
212
+ },
213
+ doubleClickOnTreeMap: function (e) {
214
+ return this.ej2Instances.doubleClickOnTreeMap(e);
215
+ },
216
+ export: function (type, fileName, orientation, allowDownload) {
217
+ return this.ej2Instances.export(type, fileName, orientation, allowDownload);
218
+ },
219
+ print: function (id) {
220
+ return this.ej2Instances.print(id);
221
+ },
222
+ selectItem: function (levelOrder, isSelected) {
223
+ return this.ej2Instances.selectItem(levelOrder, isSelected);
224
+ },
225
+ }
226
+ });
378
227
  var TreeMapPlugin = {
379
228
  name: 'ejs-treemap',
380
- install: function (Vue$$1) {
381
- Vue$$1.component(TreeMapPlugin.name, TreeMapComponent);
382
- Vue$$1.component(LevelPlugin.name, LevelDirective);
383
- Vue$$1.component(LevelsPlugin.name, LevelsDirective);
384
- Vue$$1.component(ColorMappingPlugin.name, ColorMappingDirective);
385
- Vue$$1.component(ColorMappingsPlugin.name, ColorMappingsDirective);
229
+ install: function (Vue) {
230
+ Vue.component(TreeMapPlugin.name, TreeMapComponent);
231
+ Vue.component(LevelPlugin.name, LevelDirective);
232
+ Vue.component(LevelsPlugin.name, LevelsDirective);
233
+ Vue.component(ColorMappingPlugin.name, ColorMappingDirective);
234
+ Vue.component(ColorMappingsPlugin.name, ColorMappingsDirective);
386
235
  }
387
236
  };
388
237