Skip to content

Commit 6429765

Browse files
author
pipeline
committed
v20.2.43 is released
1 parent 2627d84 commit 6429765

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

+261
-45
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,6 @@
4343
## License
4444
Check the license detail [here](https://github.com/syncfusion/ej2-angular-ui-components/blob/master/license).
4545
## Changelog
46-
Check the changelog [here](https://ej2.syncfusion.com/angular/documentation/release-notes?utm_source=npm&utm_campaign=ej2-angular-ui-components)
47-
© Copyright 2020 Syncfusion, Inc. All Rights Reserved.
46+
Check the changelog [here](https://ej2.syncfusion.com/angular/documentation/release-notes/index/?utm_source=npm&utm_campaign=ej2-angular-ui-components)
47+
© Copyright 2022 Syncfusion, Inc. All Rights Reserved.
4848
The Syncfusion Essential Studio license and copyright applies to this distribution.

components/barcodegenerator/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-barcode-generator",
3-
"version": "20.2.36",
3+
"version": "20.2.38",
44
"description": "Barcode generator component is a pure JavaScript library which will convert a string to Barcode and show it to the user. This supports major 1D and 2D barcodes including coda bar, code 128, QR Code. for Angular",
55
"author": "Syncfusion Inc.",
66
"license": "SEE LICENSE IN license",

components/base/CHANGELOG.md

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

33
## [Unreleased]
44

5+
## 20.2.43 (2022-08-08)
6+
7+
### Common
8+
9+
#### Bug Fixes
10+
11+
- `I391967,I393562` - Resolved components not loaded inside the `ng template`.
12+
513
## 20.2.36 (2022-06-30)
614

715
### 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": "20.2.36",
3+
"version": "20.2.38",
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: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,19 @@ export class ComponentBase<T> {
120120
}
121121

122122
let complexTemplates: string[] = Object.keys(tempOnThis);
123+
for (let i = 0; i < complexTemplates.length; i++) {
124+
var compProp = getValue(complexTemplates[i], tempOnThis);
125+
if (typeof compProp === 'object' && compProp && compProp.elementRef) {
126+
if (typeof compProp === 'object' && compProp && compProp.elementRef && complexTemplates[i].indexOf('_') !== -1 && complexTemplates[i].indexOf('Ref') === -1) {
127+
setValue(complexTemplates[i] + 'Ref', compProp, tempOnThis);
128+
}
129+
if (tempOnThis.viewContainerRef && !getValue("_viewContainerRef", compProp.elementRef.nativeElement) && !getValue("propName", compProp.elementRef.nativeElement)) {
130+
setValue("_viewContainerRef", tempOnThis.viewContainerRef, compProp.elementRef.nativeElement);
131+
setValue("propName", complexTemplates[i].replace("Ref", ''), compProp.elementRef.nativeElement);
132+
}
133+
}
134+
}
135+
complexTemplates = Object.keys(tempOnThis);
123136
complexTemplates = complexTemplates.filter((val: string): boolean => {
124137
return /Ref$/i.test(val) && /\_/i.test(val);
125138
});
@@ -177,7 +190,7 @@ export class ComponentBase<T> {
177190
// Refer Link: https://github.com/angular/angular/issues/6005
178191
setTimeout(() => {
179192
/* istanbul ignore else */
180-
if (typeof window !== 'undefined' && document.body.contains(tempAfterViewThis.element)) {
193+
if (typeof window !== 'undefined' && tempAfterViewThis.element || tempAfterViewThis.getModuleName().includes('btn')) {
181194
tempAfterViewThis.appendTo(tempAfterViewThis.element);
182195
tempAfterViewThis.ngEle.nativeElement.style.visibility = '';
183196
}
@@ -189,7 +202,7 @@ export class ComponentBase<T> {
189202
let tempOnDestroyThis: any = isTempRef || this;
190203
/* istanbul ignore else */
191204
setTimeout(() => {
192-
if (typeof window !== 'undefined' && document.body.contains(tempOnDestroyThis.element) && tempOnDestroyThis.element.classList.contains('e-control')) {
205+
if (typeof window !== 'undefined' && (tempOnDestroyThis.element.classList.contains('e-control'))) {
193206
tempOnDestroyThis.destroy();
194207
tempOnDestroyThis.clearTemplate(null);
195208
// removing bounded events and tagobjects from component after destroy
@@ -261,7 +274,7 @@ export class ComponentBase<T> {
261274
tempAfterContentThis.setProperties(propObj, tagObject.instance.isInitChanges);
262275
} else {
263276
/* istanbul ignore next */
264-
if ((tempAfterContentThis[tagObject.name].length !== tagObject.instance.list.length) || (tempAfterContentThis.getModuleName() === 'diagram')) {
277+
if ((tempAfterContentThis[tagObject.name].length !== tagObject.instance.list.length) || (/diagram|tab/.test(tempAfterContentThis.getModuleName()))) {
265278
tempAfterContentThis[tagObject.name] = tagObject.instance.list;
266279
}
267280
for (let list of tagObject.instance.list) {
@@ -271,7 +284,7 @@ export class ComponentBase<T> {
271284
complexTemplates = complexTemplates.filter((val: string): boolean => {
272285
return /Ref$/i.test(val);
273286
});
274-
if (curChild.properties && Object.keys(curChild.properties).length !== 0 && /chart/.test(tempAfterContentThis.getModuleName())){
287+
if (curChild.properties && Object.keys(curChild.properties).length !== 0){
275288
for (let complexPropName of complexTemplates) {
276289
complexPropName = complexPropName.replace(/Ref/, '');
277290
curChild.properties[complexPropName] = !curChild.properties[complexPropName] ?

components/base/src/form-base.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ export class FormBase<T> implements ControlValueAccessor {
7777
public twoWaySetter(newVal: Object, prop: string): void {
7878
let oldVal: Object = this.oldValue || getValue(prop, this.properties);
7979
let ele: HTMLElement = this.inputElement || this.element;
80-
if (ele && oldVal === newVal &&
80+
if (ele && oldVal === newVal && this.value === newVal &&
8181
((<HTMLInputElement>ele).value === undefined || (<HTMLInputElement>ele).value === '')) {
8282
return;
8383
}

components/base/src/template.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ export function compile(templateEle: AngularElementType, helper?: Object):
2222
let conRef: ViewContainerRef = contRef ? contRef : component.viewContainerRef;
2323
let viewRef: EmbeddedViewRef<Object> = conRef.createEmbeddedView(templateEle as TemplateRef<Object>, context);
2424
viewRef.markForCheck();
25-
viewRef.detectChanges();
2625
/* istanbul ignore next */
2726
let viewCollection: { [key: string]: EmbeddedViewRef<Object>[] } = (component && component.registeredTemplate) ?
2827
component.registeredTemplate : getValue('currentInstance.registeredTemplate', conRef);

components/buttons/CHANGELOG.md

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

33
## [Unreleased]
44

5+
## 20.2.43 (2022-08-08)
6+
7+
### Switch
8+
9+
#### Bug Fixes
10+
11+
- `#384387` - The issue with "Switch component click event trigger two times when we handling enable/disable dynamically" has been resolved.
12+
513
## 20.2.36 (2022-06-30)
614

715
### Checkbox

components/calendars/CHANGELOG.md

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

33
## [Unreleased]
44

5-
## 20.2.40 (2022-07-26)
6-
7-
### Calendar
8-
9-
#### Bug Fixes
10-
11-
- `#I387858` - The issue of "the missing year 1396 in the Islamic calendar" has been resolved.
12-
135
## 19.3.46 (2021-10-19)
146

157
### TimePicker
@@ -1225,6 +1217,14 @@ TimePicker component is the pre-filled dropdown list with the time values 12/24
12251217
- **Accessibility** - Provided with built-in accessibility support which helps to access all the TimePicker component features through the keyboard, screen readers, or other assistive technology devices.
12261218

12271219

1220+
## 20.2.40 (2022-07-26)
1221+
1222+
### Calendar
1223+
1224+
#### Bug Fixes
1225+
1226+
- `#I387858` - The issue of "the missing year 1396 in the Islamic calendar" has been resolved.
1227+
12281228
## 19.3.56 (2021-12-02)
12291229

12301230
### TimePicker

components/calendars/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-calendars",
3-
"version": "20.2.38",
3+
"version": "20.2.40",
44
"description": "A complete package of date or time components with built-in features such as date formatting, inline editing, multiple (range) selection, range restriction, month and year selection, strict mode, and globalization. for Angular",
55
"author": "Syncfusion Inc.",
66
"license": "SEE LICENSE IN license",

0 commit comments

Comments
 (0)