Skip to content

Commit be02511

Browse files
author
pipeline
committed
v21.1.38 is released
1 parent 0bcf014 commit be02511

File tree

46 files changed

+196
-71
lines changed

Some content is hidden

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

46 files changed

+196
-71
lines changed

components/base/CHANGELOG.md

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

33
## [Unreleased]
44

5+
## 21.1.38 (2023-04-04)
6+
7+
### Common
8+
9+
#### Bug Fixes
10+
11+
- `#I444984` - Resolved Form base components `Set` and `Reset` not working properly.
12+
- `#F180294` - Improved the component rendering delay in the `ngAfterViewInit` hook.
13+
514
## 20.4.40 (2022-12-28)
615

716
### Common

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-angular-base",
3-
"version": "21.1.35",
3+
"version": "21.1.37",
44
"description": "A common package of Essential JS 2 base Angular libraries, methods and class definitions",
55
"author": "Syncfusion Inc.",
66
"license": "SEE LICENSE IN license",

components/base/src/component-base.ts

Lines changed: 29 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -182,19 +182,30 @@ export class ComponentBase<T> {
182182
templateProperties = templateProperties.filter((val: string): boolean => {
183183
return /Ref$/i.test(val);
184184
});
185+
let ngtempRef = false;
185186
for (let tempName of templateProperties) {
187+
if (!ngtempRef) {
188+
ngtempRef = tempName.indexOf('templateRef') !== -1;
189+
}
186190
let propName: string = tempName.replace('Ref', '');
187191
setValue(propName.replace('_', '.'), getValue(propName + 'Ref', tempAfterViewThis), tempAfterViewThis);
188192
}
189193
// Used setTimeout for template binding
190194
// Refer Link: https://github.com/angular/angular/issues/6005
191-
setTimeout(() => {
195+
const appendToComponent = (tempAfterViewThis: any) => {
192196
/* istanbul ignore else */
193197
if (typeof window !== 'undefined' && tempAfterViewThis.element || tempAfterViewThis.getModuleName().includes('btn')) {
194198
tempAfterViewThis.appendTo(tempAfterViewThis.element);
195199
tempAfterViewThis.ngEle.nativeElement.style.visibility = '';
196200
}
197-
});
201+
}
202+
if (ngtempRef) {
203+
setTimeout(() => {
204+
appendToComponent(tempAfterViewThis);
205+
});
206+
} else {
207+
appendToComponent(tempAfterViewThis);
208+
}
198209
}
199210
// tslint:disable-next-line:no-any
200211
public ngOnDestroy(isTempRef?: any): void {
@@ -206,20 +217,26 @@ export class ComponentBase<T> {
206217
tempOnDestroyThis.destroy();
207218
tempOnDestroyThis.clearTemplate(null);
208219
// removing bounded events and tagobjects from component after destroy
209-
for (var key of Object.keys(tempOnDestroyThis)) {
210-
if (tempOnDestroyThis[key] && /object/.test(typeof tempOnDestroyThis[key]) && Object.keys(tempOnDestroyThis[key]).length !== 0) {
211-
if (/properties|changedProperties|childChangedProperties/.test(key)) {
212-
for (var propkey of Object.keys(tempOnDestroyThis[key])) {
213-
if (tempOnDestroyThis[key][propkey] && /object/.test(typeof tempOnDestroyThis[key][propkey]) && Object.keys(tempOnDestroyThis[key][propkey]).length !== 0) {
214-
tempOnDestroyThis[key][propkey] = null;
220+
setTimeout(function () {
221+
for (let key of Object.keys(tempOnDestroyThis)) {
222+
let value = tempOnDestroyThis[key];
223+
if (value && /object/.test(typeof value) && Object.keys(value).length !== 0) {
224+
if (/properties|changedProperties|childChangedProperties|oldProperties/.test(key)) {
225+
for (let propKey of Object.keys(tempOnDestroyThis[key])) {
226+
let propValue = value[propKey];
227+
if (propValue && /object/.test(typeof propValue) && Object.keys(propValue).length !== 0 && (propValue.parent || propValue.parentObj)) {
228+
tempOnDestroyThis[key][propKey] = null;
229+
}
230+
}
231+
}
232+
else {
233+
if (value.parent || value.parentObj) {
234+
tempOnDestroyThis[key] = null;
215235
}
216236
}
217-
}
218-
else {
219-
tempOnDestroyThis[key] = null;
220237
}
221238
}
222-
}
239+
});
223240
}
224241
});
225242
}

components/buttons/CHANGELOG.md

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

33
## [Unreleased]
44

5-
## 21.1.37 (2023-03-29)
5+
## 21.1.38 (2023-04-04)
66

77
### Checkbox
88

components/calendars/CHANGELOG.md

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

33
## [Unreleased]
44

5-
## 21.1.37 (2023-03-29)
5+
## 21.1.38 (2023-04-04)
66

77
### DatePicker
88

@@ -14,6 +14,7 @@
1414

1515
- `#SF-446512` - Issue with "The mask placeholder not shown while bind with null value in ng-model" has been resolved.
1616
- `#SF-447843` - Issue with "after the form is reset, mask placeholder is not shown in the UI" has been resolved.
17+
- `#I450686` - Resolved issue with "Script error thrown in datepicker when we render inside the schedule component".
1718

1819
### DateTimePicker
1920

components/charts/CHANGELOG.md

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

33
## [Unreleased]
44

5+
## 21.1.38 (2023-04-04)
6+
7+
### Chart
8+
9+
#### Bug Fixes
10+
11+
- `#I449076` - Data labels are now displayed properly in the HiloOpenClose chart.
12+
- `#I444669` - Line width of the series is now updating properly while using useState method.
13+
- `#I444557` - Legend is now rendering properly on the top position without overlapping with axis label.
14+
515
## 21.1.35 (2023-03-23)
616

717
### 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-angular-charts",
3-
"version": "20.9.12",
3+
"version": "21.1.37",
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 Angular",
55
"author": "Syncfusion Inc.",
66
"license": "SEE LICENSE IN license",

components/circulargauge/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
## [Unreleased]
77

8-
## 21.1.37 (2023-03-29)
8+
## 21.1.38 (2023-04-04)
99

1010
### Circular Gauge
1111

components/diagrams/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
- `#F180478` - Now, the performance of diagram while enabling virtualization is improved.
2727
- `#F180478` - Now, Overview is updated properly while enabling virtualization.
2828
- `#I422299` - Now, swimlane child nodes is selectable after save and load.
29+
- `#I437322` - Now, drag the connector end thumb is working, while we increase handleSize value.
2930
- `#I436649` - Now, connector segment does not get split into multiple segment for top to bottom approach.
3031
- `#I440967` - Now, Free hand connector segment collection restored after save and load the diagram.
3132
- `#I441075` - Now, position change event does not get triggered while click on the swimlane header.

components/diagrams/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-angular-diagrams",
3-
"version": "19.14.9",
3+
"version": "21.1.37",
44
"description": "Feature-rich diagram control to create diagrams like flow charts, organizational charts, mind maps, and BPMN diagrams. Its rich feature set includes built-in shapes, editing, serializing, exporting, printing, overview, data binding, and automatic layouts. for Angular",
55
"author": "Syncfusion Inc.",
66
"license": "SEE LICENSE IN license",

0 commit comments

Comments
 (0)