Skip to content

Commit 22e7c86

Browse files
author
pipeline
committed
v20.1.52 is released
1 parent ec99c65 commit 22e7c86

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+204
-24
lines changed

components/base/CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,14 @@
88

99
#### Bug Fixes
1010

11+
- `#FB9750` - The issue with "Providers are not accessible for Vue component with typescript application environment" has been resolved.
12+
13+
## 20.1.51 (2022-04-26)
14+
15+
### Common
16+
17+
#### Bug Fixes
18+
1119
- `#I334904`, `#I347008` - The issue with "Script error in Vite + Vue application" has been resolved.
1220

1321
## 20.1.48 (2022-04-12)

components/base/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@syncfusion/ej2-vue-base",
3-
"version": "20.1.48",
3+
"version": "20.1.51",
44
"description": "A common package of Essential JS 2 base Vue libraries, methods and class definitions",
55
"author": "Syncfusion Inc.",
66
"license": "SEE LICENSE IN license",

components/base/src/component-base.ts

Lines changed: 36 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
protected hasChildDirective: boolean = false;
4747
protected childDirObjects: string = '';
4848
protected propKeys: any;
49+
protected isDecorator: boolean = false;
4950

5051
constructor() {
5152
super(arguments);
@@ -64,7 +65,10 @@
6465
let vueInjectables: any = getValue('$parent.$options.provide', this);
6566
if (this.hasInjectedModules && !isExecute) {
6667
let prevModule: Object[] = [];
67-
if (injectables) {
68+
if (injectables && injectables.managed) {
69+
this.isDecorator = true;
70+
prevModule = this.getInjectedServices() || [];
71+
} else if (injectables) {
6872
prevModule = injectables[this.ej2Instances.getModuleName()] || [];
6973
} else if (vueInjectables) {
7074
prevModule = this.getInjectedServices() || [];
@@ -97,7 +101,9 @@
97101
}
98102
public getInjectedServices(): Object[] {
99103
let ret = []; let provide: any;
100-
if (this.$vnode) {
104+
if (this.$root && this.isDecorator) {
105+
provide = getValue('$root.$options.provide', this);
106+
} else if (this.$vnode) {
101107
provide = getValue('$vnode.context.$options.provide', this);
102108
} else if (this.$parent) {
103109
provide = getValue('$parent.$options.provide', this);
@@ -106,15 +112,42 @@
106112
// tslint:disable:no-any
107113
let injectables: any = provide;
108114
if (typeof provide === 'function') {
115+
if (provide.managed) {
116+
let provideKey: Object = provide.managed;
117+
let provideValue: string[] = Object.keys(provideKey);
118+
let key: string[];
119+
if (this.$root && this.isDecorator) {
120+
key = Object.keys(this.$root);
121+
} else if (this.$vnode) {
122+
key = Object.keys(this.$vnode.context);
123+
} else if (this.$parent) {
124+
key = Object.keys(this.$parent);
125+
}
126+
for (let i: number = 0; i < provideValue.length; i++) {
127+
for (let j: number = 0; j < key.length; j++) {
128+
if ((key[j].indexOf(provideValue[i])) !== -1) {
129+
if (this.$root && this.isDecorator) {
130+
provideKey[provideValue[j]] = this.$root[key[i]];
131+
} else if (this.$vnode) {
132+
provideKey[provideValue[i]] = this.$vnode.context[key[j]];
133+
} else if (this.$parent) {
134+
provideKey[provideValue[i]] = this.$parent[key[j]];
135+
}
136+
injectables = provideKey;
137+
}
138+
}
139+
}
140+
}
109141
// tslint:disable:no-any
110-
if (this.$vnode) {
142+
else if (this.$vnode) {
111143
injectables = this.$vnode.context.$options.provide();
112144
} else if(this.$parent) {
113145
injectables = this.$parent.$options.provide();
114146
}
115147
}
116148
ret = injectables[this.ej2Instances.getModuleName()] || [];
117149
}
150+
this.isDecorator = false;
118151
return ret;
119152
}
120153
public updated(): void {

components/buttons/CHANGELOG.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,15 @@
22

33
## [Unreleased]
44

5-
## 20.1.51 (2022-04-26)
5+
## 20.1.52 (2022-05-04)
6+
7+
### Switch
8+
9+
#### Bug Fixes
10+
11+
- `#I362372` - The issue with "Script error occurs while using the reactive method in the switch component in Vue 3" has been resolved.
12+
13+
## 20.1.50 (2022-04-19)
614

715
### Radio Button
816

components/buttons/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@syncfusion/ej2-vue-buttons",
3-
"version": "20.1.47",
3+
"version": "20.1.50",
44
"description": "A package of feature-rich Essential JS 2 components such as Button, CheckBox, RadioButton and Switch. for Vue",
55
"author": "Syncfusion Inc.",
66
"license": "SEE LICENSE IN license",

components/buttons/src/check-box/checkbox.component.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ export class CheckBoxComponent extends ComponentBase {
130130
if (!isExecute) {
131131
this.ej2Instances.vueInstance.$emit('update:' + propKey, eventProp[propKey]);
132132
this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
133+
this.ej2Instances.vueInstance.$emit('update:modelValue', eventProp[propKey]);
133134
} else {
134135
if (eventName === 'change' || ((this as any).$props && !(this as any).$props.isLazyUpdate)) {
135136
(this as any).$emit('update:'+ propKey, eventProp[propKey]);

components/buttons/src/radio-button/radiobutton.component.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ export class RadioButtonComponent extends ComponentBase {
130130
if (!isExecute) {
131131
this.ej2Instances.vueInstance.$emit('update:' + propKey, eventProp[propKey]);
132132
this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
133+
this.ej2Instances.vueInstance.$emit('update:modelValue', eventProp[propKey]);
133134
} else {
134135
if (eventName === 'change' || ((this as any).$props && !(this as any).$props.isLazyUpdate)) {
135136
(this as any).$emit('update:'+ propKey, eventProp[propKey]);

components/buttons/src/switch/switch.component.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ export class SwitchComponent extends ComponentBase {
130130
if (!isExecute) {
131131
this.ej2Instances.vueInstance.$emit('update:' + propKey, eventProp[propKey]);
132132
this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
133+
this.ej2Instances.vueInstance.$emit('update:modelValue', eventProp[propKey]);
133134
} else {
134135
if (eventName === 'change' || ((this as any).$props && !(this as any).$props.isLazyUpdate)) {
135136
(this as any).$emit('update:'+ propKey, eventProp[propKey]);

components/charts/CHANGELOG.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,22 @@
22

33
## [Unreleased]
44

5+
## 20.1.52 (2022-05-04)
6+
7+
### Chart
8+
9+
#### Bug Fixes
10+
11+
- `#I375071` - Now axis labels is rendering properly with label rotation.
12+
13+
## 20.1.51 (2022-04-26)
14+
15+
### Chart
16+
17+
#### Bug Fixes
18+
19+
- `#I375071` - Now axis labels is rendering properly with label rotation.
20+
521
## 20.1.50 (2022-04-19)
622

723
### Chart

components/charts/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@syncfusion/ej2-vue-charts",
3-
"version": "20.1.50",
3+
"version": "20.1.51",
44
"description": "Feature-rich chart control with built-in support for over 25 chart types, technical indictors, trendline, zooming, tooltip, selection, crosshair and trackball. for Vue",
55
"author": "Syncfusion Inc.",
66
"license": "SEE LICENSE IN license",

0 commit comments

Comments
 (0)