@syncfusion/ej2-vue-treemap 19.2.55 → 19.4.38
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/CHANGELOG.md +4 -14
- package/dist/ej2-vue-treemap.umd.min.js +1 -1
- package/dist/es6/ej2-vue-treemap.es2015.js +25 -1
- package/dist/es6/ej2-vue-treemap.es2015.js.map +1 -1
- package/dist/es6/ej2-vue-treemap.es5.js +27 -1
- package/dist/es6/ej2-vue-treemap.es5.js.map +1 -1
- package/dist/global/ej2-vue-treemap.min.js +2 -2
- package/package.json +8 -8
- package/src/treemap/treemap.component.d.ts +2 -0
- package/src/treemap/treemap.component.js +27 -1
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"_from": "@syncfusion/ej2-vue-treemap@*",
|
|
3
|
-
"_id": "@syncfusion/ej2-vue-treemap@
|
|
3
|
+
"_id": "@syncfusion/ej2-vue-treemap@16.28.1",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-XEpPd5oImdrU3PJgTeNfEKNbmBUGwP9FwP707fExvezW4dR4FQi56nbKKfZFCgUiaWVWwN8m5XV/ZfethusYTA==",
|
|
6
6
|
"_location": "/@syncfusion/ej2-vue-treemap",
|
|
7
7
|
"_phantomChildren": {},
|
|
8
8
|
"_requested": {
|
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
"_requiredBy": [
|
|
20
20
|
"/"
|
|
21
21
|
],
|
|
22
|
-
"_resolved": "http://nexus.syncfusion.com/repository/ej2-
|
|
23
|
-
"_shasum": "
|
|
22
|
+
"_resolved": "http://nexus.syncfusion.com/repository/ej2-release/@syncfusion/ej2-vue-treemap/-/ej2-vue-treemap-16.28.1.tgz",
|
|
23
|
+
"_shasum": "22550e8ba07993314b5adc9fd0ff0856fab14cc6",
|
|
24
24
|
"_spec": "@syncfusion/ej2-vue-treemap@*",
|
|
25
25
|
"_where": "/jenkins/workspace/automation_release_19.1.0.1-ZPMUBNQ6AUYH6YGEFBPVYMEQLRRW2SLD4XCZ6GATNZJFYJ3RIAOA/packages/included",
|
|
26
26
|
"author": {
|
|
@@ -31,9 +31,9 @@
|
|
|
31
31
|
},
|
|
32
32
|
"bundleDependencies": false,
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@syncfusion/ej2-base": "~19.
|
|
35
|
-
"@syncfusion/ej2-treemap": "19.
|
|
36
|
-
"@syncfusion/ej2-vue-base": "~19.
|
|
34
|
+
"@syncfusion/ej2-base": "~19.4.38",
|
|
35
|
+
"@syncfusion/ej2-treemap": "19.4.38",
|
|
36
|
+
"@syncfusion/ej2-vue-base": "~19.4.38"
|
|
37
37
|
},
|
|
38
38
|
"deprecated": false,
|
|
39
39
|
"description": "Essential JS 2 TreeMap Components for Vue",
|
|
@@ -70,6 +70,6 @@
|
|
|
70
70
|
"type": "git",
|
|
71
71
|
"url": "git+https://github.com/syncfusion/ej2-vue-ui-components.git"
|
|
72
72
|
},
|
|
73
|
-
"version": "19.
|
|
73
|
+
"version": "19.4.38",
|
|
74
74
|
"sideEffects": false
|
|
75
75
|
}
|
|
@@ -23,7 +23,9 @@ export declare class TreeMapComponent extends ComponentBase {
|
|
|
23
23
|
};
|
|
24
24
|
tagNameMapper: Object;
|
|
25
25
|
isVue3: boolean;
|
|
26
|
+
templateCollection: any;
|
|
26
27
|
constructor();
|
|
28
|
+
clearTemplate(templateNames?: string[]): any;
|
|
27
29
|
setProperties(prop: any, muteOnChange: boolean): void;
|
|
28
30
|
render(createElement: any): any;
|
|
29
31
|
calculatePreviousLevelChildItems(labelText: string, drillLevelValues: any, item: any, directLevel: boolean): boolean;
|
|
@@ -18,7 +18,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
18
18
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
19
19
|
};
|
|
20
20
|
import { ComponentBase, EJComponentDecorator, getProps, gh } from '@syncfusion/ej2-vue-base';
|
|
21
|
-
import { isNullOrUndefined } from '@syncfusion/ej2-base';
|
|
21
|
+
import { isNullOrUndefined, getValue } from '@syncfusion/ej2-base';
|
|
22
22
|
import { TreeMap } from '@syncfusion/ej2-treemap';
|
|
23
23
|
import { ColorMappingsDirective, ColorMappingDirective, ColorMappingsPlugin, ColorMappingPlugin } from './colormapping.directive';
|
|
24
24
|
import { LevelsDirective, LevelDirective, LevelsPlugin, LevelPlugin } from './levels.directive';
|
|
@@ -56,8 +56,33 @@ var TreeMapComponent = /** @class */ (function (_super) {
|
|
|
56
56
|
_this.bindProperties();
|
|
57
57
|
_this.ej2Instances._setProperties = _this.ej2Instances.setProperties;
|
|
58
58
|
_this.ej2Instances.setProperties = _this.setProperties;
|
|
59
|
+
_this.ej2Instances.clearTemplate = _this.clearTemplate;
|
|
59
60
|
return _this;
|
|
60
61
|
}
|
|
62
|
+
TreeMapComponent.prototype.clearTemplate = function (templateNames) {
|
|
63
|
+
if (!templateNames) {
|
|
64
|
+
templateNames = Object.keys(this.templateCollection || {});
|
|
65
|
+
}
|
|
66
|
+
if (templateNames.length && this.templateCollection) {
|
|
67
|
+
for (var _i = 0, templateNames_1 = templateNames; _i < templateNames_1.length; _i++) {
|
|
68
|
+
var tempName = templateNames_1[_i];
|
|
69
|
+
var elementCollection = this.templateCollection[tempName];
|
|
70
|
+
if (elementCollection && elementCollection.length) {
|
|
71
|
+
for (var _a = 0, elementCollection_1 = elementCollection; _a < elementCollection_1.length; _a++) {
|
|
72
|
+
var ele = elementCollection_1[_a];
|
|
73
|
+
var destroy = getValue('__vue__.$destroy', ele);
|
|
74
|
+
if (destroy) {
|
|
75
|
+
ele.__vue__.$destroy();
|
|
76
|
+
}
|
|
77
|
+
if (ele.innerHTML) {
|
|
78
|
+
ele.innerHTML = '';
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
delete this.templateCollection[tempName];
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
};
|
|
61
86
|
TreeMapComponent.prototype.setProperties = function (prop, muteOnChange) {
|
|
62
87
|
var _this = this;
|
|
63
88
|
if (this.isVue3) {
|
|
@@ -75,6 +100,7 @@ var TreeMapComponent = /** @class */ (function (_super) {
|
|
|
75
100
|
}
|
|
76
101
|
else {
|
|
77
102
|
_this.$emit('update:' + key, prop[key]);
|
|
103
|
+
_this.$emit('modelchanged', prop[key]);
|
|
78
104
|
}
|
|
79
105
|
}
|
|
80
106
|
});
|