@syncfusion/ej2-vue-base 19.4.48 → 19.4.56
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 +22 -0
- package/README.md +4 -2
- package/dist/ej2-vue-base.umd.min.js +1 -1
- package/dist/es6/ej2-vue-base.es2015.js +39 -5
- package/dist/es6/ej2-vue-base.es2015.js.map +1 -1
- package/dist/es6/ej2-vue-base.es5.js +39 -5
- package/dist/es6/ej2-vue-base.es5.js.map +1 -1
- package/dist/global/ej2-vue-base.min.js +2 -2
- package/dist/global/ej2-vue-base.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/package.json +7 -25
- package/postinstall.js +23 -0
- package/src/component-base.js +35 -5
- package/src/template.js +4 -0
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"_from": "@syncfusion/ej2-vue-base@*",
|
|
3
|
-
"_id": "@syncfusion/ej2-vue-base@19.4.
|
|
3
|
+
"_id": "@syncfusion/ej2-vue-base@19.4.53",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-ApAvKncIcIpjio0NOBZ/fsRM8qfzJVRb667U2Y6SGtmt8bhxygsmGgHkbAlVXna4W5WCfdlHZaATBU3vGsvzJA==",
|
|
6
6
|
"_location": "/@syncfusion/ej2-vue-base",
|
|
7
7
|
"_phantomChildren": {},
|
|
8
8
|
"_requested": {
|
|
@@ -18,41 +18,23 @@
|
|
|
18
18
|
},
|
|
19
19
|
"_requiredBy": [
|
|
20
20
|
"/",
|
|
21
|
-
"/@syncfusion/ej2-vue-barcode-generator",
|
|
22
|
-
"/@syncfusion/ej2-vue-buttons",
|
|
23
21
|
"/@syncfusion/ej2-vue-calendars",
|
|
24
|
-
"/@syncfusion/ej2-vue-charts",
|
|
25
|
-
"/@syncfusion/ej2-vue-circulargauge",
|
|
26
22
|
"/@syncfusion/ej2-vue-diagrams",
|
|
27
23
|
"/@syncfusion/ej2-vue-documenteditor",
|
|
28
24
|
"/@syncfusion/ej2-vue-dropdowns",
|
|
29
25
|
"/@syncfusion/ej2-vue-filemanager",
|
|
30
26
|
"/@syncfusion/ej2-vue-gantt",
|
|
31
27
|
"/@syncfusion/ej2-vue-grids",
|
|
32
|
-
"/@syncfusion/ej2-vue-heatmap",
|
|
33
|
-
"/@syncfusion/ej2-vue-inplace-editor",
|
|
34
|
-
"/@syncfusion/ej2-vue-inputs",
|
|
35
|
-
"/@syncfusion/ej2-vue-kanban",
|
|
36
|
-
"/@syncfusion/ej2-vue-layouts",
|
|
37
|
-
"/@syncfusion/ej2-vue-lineargauge",
|
|
38
|
-
"/@syncfusion/ej2-vue-lists",
|
|
39
28
|
"/@syncfusion/ej2-vue-maps",
|
|
40
29
|
"/@syncfusion/ej2-vue-navigations",
|
|
41
|
-
"/@syncfusion/ej2-vue-notifications",
|
|
42
30
|
"/@syncfusion/ej2-vue-pdfviewer",
|
|
43
|
-
"/@syncfusion/ej2-vue-pivotview",
|
|
44
|
-
"/@syncfusion/ej2-vue-popups",
|
|
45
|
-
"/@syncfusion/ej2-vue-progressbar",
|
|
46
31
|
"/@syncfusion/ej2-vue-querybuilder",
|
|
47
32
|
"/@syncfusion/ej2-vue-richtexteditor",
|
|
48
|
-
"/@syncfusion/ej2-vue-schedule",
|
|
49
|
-
"/@syncfusion/ej2-vue-splitbuttons",
|
|
50
33
|
"/@syncfusion/ej2-vue-spreadsheet",
|
|
51
|
-
"/@syncfusion/ej2-vue-treegrid"
|
|
52
|
-
"/@syncfusion/ej2-vue-treemap"
|
|
34
|
+
"/@syncfusion/ej2-vue-treegrid"
|
|
53
35
|
],
|
|
54
|
-
"_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-vue-base/-/ej2-vue-base-19.4.
|
|
55
|
-
"_shasum": "
|
|
36
|
+
"_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-vue-base/-/ej2-vue-base-19.4.53.tgz",
|
|
37
|
+
"_shasum": "ab1fbc1d5855b00c40dc50effb2274e27543fcd7",
|
|
56
38
|
"_spec": "@syncfusion/ej2-vue-base@*",
|
|
57
39
|
"_where": "/jenkins/workspace/automation_release_19.1.0.1-ZPMUBNQ6AUYH6YGEFBPVYMEQLRRW2SLD4XCZ6GATNZJFYJ3RIAOA/packages/included",
|
|
58
40
|
"author": {
|
|
@@ -63,7 +45,7 @@
|
|
|
63
45
|
},
|
|
64
46
|
"bundleDependencies": false,
|
|
65
47
|
"dependencies": {
|
|
66
|
-
"@syncfusion/ej2-base": "~19.4.
|
|
48
|
+
"@syncfusion/ej2-base": "~19.4.52",
|
|
67
49
|
"glob": "^7.0.5"
|
|
68
50
|
},
|
|
69
51
|
"deprecated": false,
|
|
@@ -93,6 +75,6 @@
|
|
|
93
75
|
"postinstall": "node ./postinstall.js"
|
|
94
76
|
},
|
|
95
77
|
"typings": "index.d.ts",
|
|
96
|
-
"version": "19.4.
|
|
78
|
+
"version": "19.4.56",
|
|
97
79
|
"sideEffects": true
|
|
98
80
|
}
|
package/postinstall.js
CHANGED
|
@@ -54,6 +54,29 @@ if (fs.existsSync("../../vue/package.json")) {
|
|
|
54
54
|
})`,
|
|
55
55
|
""
|
|
56
56
|
)
|
|
57
|
+
.replace(
|
|
58
|
+
`,Options({
|
|
59
|
+
props: props,
|
|
60
|
+
watch: watch,
|
|
61
|
+
emits: emitProbs,
|
|
62
|
+
provide: function provide() {
|
|
63
|
+
return {
|
|
64
|
+
custom: this.custom
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
})`,
|
|
68
|
+
""
|
|
69
|
+
)
|
|
70
|
+
.replace(
|
|
71
|
+
`,Options({
|
|
72
|
+
inject: {
|
|
73
|
+
custom: {
|
|
74
|
+
default: null
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
})`,
|
|
78
|
+
""
|
|
79
|
+
)
|
|
57
80
|
.replace(`import * as Vue3 from 'vue-class-component';`,"")
|
|
58
81
|
.replace(`vueImport = Vue3.Vue;`,'vueImport = Vue;');
|
|
59
82
|
fs.writeFileSync(files[i], file, "utf8");
|
package/src/component-base.js
CHANGED
|
@@ -70,8 +70,15 @@ var ComponentBase = /** @class */ (function (_super) {
|
|
|
70
70
|
_loop_1(prop);
|
|
71
71
|
}
|
|
72
72
|
var injectables = getValue('$root.$options.provide', this);
|
|
73
|
-
|
|
74
|
-
|
|
73
|
+
var vueInjectables = getValue('$parent.$options.provide', this);
|
|
74
|
+
if (this.hasInjectedModules && !isExecute) {
|
|
75
|
+
var prevModule = [];
|
|
76
|
+
if (injectables) {
|
|
77
|
+
prevModule = injectables[this.ej2Instances.getModuleName()] || [];
|
|
78
|
+
}
|
|
79
|
+
else if (vueInjectables) {
|
|
80
|
+
prevModule = this.getInjectedServices() || [];
|
|
81
|
+
}
|
|
75
82
|
var curModule = this.ej2Instances.getInjectedModules() || [];
|
|
76
83
|
for (var _b = 0, curModule_1 = curModule; _b < curModule_1.length; _b++) {
|
|
77
84
|
var mod = curModule_1[_b];
|
|
@@ -83,6 +90,12 @@ var ComponentBase = /** @class */ (function (_super) {
|
|
|
83
90
|
}
|
|
84
91
|
};
|
|
85
92
|
ComponentBase.prototype.mounted = function () {
|
|
93
|
+
var cusEle = this.$el ? this.$el.querySelectorAll("div.e-directive") : null;
|
|
94
|
+
if (gh && cusEle) {
|
|
95
|
+
for (var i = 0; i < cusEle.length; i++) {
|
|
96
|
+
cusEle[i].parentElement && cusEle[i].parentElement.removeChild(cusEle[i]);
|
|
97
|
+
}
|
|
98
|
+
}
|
|
86
99
|
this.ej2Instances.isVue = true;
|
|
87
100
|
this.ej2Instances.isVue3 = this.isVue3;
|
|
88
101
|
this.ej2Instances.vueInstance = this;
|
|
@@ -94,13 +107,24 @@ var ComponentBase = /** @class */ (function (_super) {
|
|
|
94
107
|
};
|
|
95
108
|
ComponentBase.prototype.getInjectedServices = function () {
|
|
96
109
|
var ret = [];
|
|
97
|
-
var provide
|
|
110
|
+
var provide;
|
|
111
|
+
if (this.$vnode) {
|
|
112
|
+
provide = getValue('$vnode.context.$options.provide', this);
|
|
113
|
+
}
|
|
114
|
+
else if (this.$parent) {
|
|
115
|
+
provide = getValue('$parent.$options.provide', this);
|
|
116
|
+
}
|
|
98
117
|
if (provide) {
|
|
99
118
|
// tslint:disable:no-any
|
|
100
119
|
var injectables = provide;
|
|
101
120
|
if (typeof provide === 'function') {
|
|
102
121
|
// tslint:disable:no-any
|
|
103
|
-
|
|
122
|
+
if (this.$vnode) {
|
|
123
|
+
injectables = this.$vnode.context.$options.provide();
|
|
124
|
+
}
|
|
125
|
+
else if (this.$parent) {
|
|
126
|
+
injectables = this.$parent.$options.provide();
|
|
127
|
+
}
|
|
104
128
|
}
|
|
105
129
|
ret = injectables[this.ej2Instances.getModuleName()] || [];
|
|
106
130
|
}
|
|
@@ -156,8 +180,14 @@ var ComponentBase = /** @class */ (function (_super) {
|
|
|
156
180
|
dirProps = this.getDirectiveValues(this.$slots.default, this.tagMapper || {}, this.tagNameMapper || {});
|
|
157
181
|
}
|
|
158
182
|
else {
|
|
183
|
+
var propRef = void 0;
|
|
159
184
|
if (this[0] && this[0][1].slots.default) {
|
|
160
|
-
|
|
185
|
+
propRef = this[0][1].slots.default();
|
|
186
|
+
}
|
|
187
|
+
else if (this && this.$slots) {
|
|
188
|
+
propRef = this.$slots.default();
|
|
189
|
+
}
|
|
190
|
+
if (propRef) {
|
|
161
191
|
for (var i = 0; i < propRef.length; i++) {
|
|
162
192
|
if (propRef[i].type.methods) {
|
|
163
193
|
var key = propRef[i].type.methods.getTag().replace("e-", "");
|
package/src/template.js
CHANGED
|
@@ -36,6 +36,10 @@ export function compile(templateElement, helper) {
|
|
|
36
36
|
}
|
|
37
37
|
else {
|
|
38
38
|
templateCompRef = object.template._context.components[templateElement.name];
|
|
39
|
+
if (!templateCompRef) {
|
|
40
|
+
var key = Object.keys(object.template._context.components)[0];
|
|
41
|
+
templateCompRef = object.template._context.components[key];
|
|
42
|
+
}
|
|
39
43
|
}
|
|
40
44
|
var tempRef_1;
|
|
41
45
|
if (propsData) {
|