Skip to content

Commit e4ae8b4

Browse files
author
pipeline
committed
v20.1.47 is released
1 parent 6384343 commit e4ae8b4

File tree

292 files changed

+1801
-184
lines changed

Some content is hidden

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

292 files changed

+1801
-184
lines changed

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": "19.1.66",
3+
"version": "19.3.0",
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",
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
@import 'ej2-barcode-generator/styles/barcode/fluent-dark.scss';
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
@import 'ej2-barcode-generator/styles/barcode/fluent.scss';
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
@import 'barcode/fluent-dark.scss';
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
@import 'barcode/fluent.scss';

components/base/CHANGELOG.md

Lines changed: 0 additions & 59 deletions

components/base/README.md

Lines changed: 1 addition & 1 deletion

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": "19.4.38",
3+
"version": "19.7.0",
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/complex-array-base.ts

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,14 @@ export class ComplexBase<T> {
4444
let templateProperties: string[] = Object.keys(this);
4545
for(let i = 0; i < templateProperties.length; i++) {
4646
var tempProp = getValue(templateProperties[i], this);
47-
if (typeof tempProp === 'object' && tempProp.elementRef && !getValue(templateProperties[i].indexOf('Ref') !== -1 ? templateProperties[i] : templateProperties[i] + 'Ref', this)){
48-
setValue(templateProperties[i].indexOf('Ref') !== -1 ? templateProperties[i] : templateProperties[i] + 'Ref', tempProp, this);
47+
if (typeof tempProp === 'object' && tempProp && tempProp.elementRef) {
48+
if (!getValue(templateProperties[i].indexOf('Ref') !== -1 ? templateProperties[i] : templateProperties[i] + 'Ref', this)) {
49+
setValue(templateProperties[i].indexOf('Ref') !== -1 ? templateProperties[i] : templateProperties[i] + 'Ref', tempProp, this);
50+
}
51+
if (getValue("viewContainerRef", this) && !getValue("_viewContainerRef", tempProp.elementRef.nativeElement) && !getValue("propName", tempProp.elementRef.nativeElement)) {
52+
setValue("_viewContainerRef", getValue("viewContainerRef", this), tempProp.elementRef.nativeElement);
53+
setValue("propName", templateProperties[i].replace("Ref", ''), tempProp.elementRef.nativeElement);
54+
}
4955
}
5056
}
5157
templateProperties = Object.keys(this)
@@ -212,6 +218,9 @@ export class ArrayBase<T> {
212218
this.list[i].hasChanges = true;
213219
}
214220
}
221+
if (this.list[i].hasChanges !== childrenDataSource[i].hasChanges) {
222+
isSourceChanged = true;
223+
}
215224
}
216225
}
217226

components/base/src/component-base.ts

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,14 @@ export class ComponentBase<T> {
122122
let complexTemplates: string[] = Object.keys(tempOnThis);
123123
for (let i = 0; i < complexTemplates.length; i++) {
124124
var compProp = getValue(complexTemplates[i], tempOnThis);
125-
if (typeof compProp === 'object' && compProp.elementRef && complexTemplates[i].indexOf('_') !== -1 && complexTemplates[i].indexOf('Ref') === -1) {
126-
setValue(complexTemplates[i] + 'Ref', compProp, 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+
}
127133
}
128134
}
129135
complexTemplates = Object.keys(tempOnThis);
@@ -184,7 +190,7 @@ export class ComponentBase<T> {
184190
// Refer Link: https://github.com/angular/angular/issues/6005
185191
setTimeout(() => {
186192
/* istanbul ignore else */
187-
if (typeof window !== 'undefined' && document.body.contains(tempAfterViewThis.element) || tempAfterViewThis.getModuleName() === 'btn') {
193+
if (typeof window !== 'undefined' && tempAfterViewThis.element || tempAfterViewThis.getModuleName().includes('btn')) {
188194
tempAfterViewThis.appendTo(tempAfterViewThis.element);
189195
tempAfterViewThis.ngEle.nativeElement.style.visibility = '';
190196
}
@@ -268,7 +274,7 @@ export class ComponentBase<T> {
268274
tempAfterContentThis.setProperties(propObj, tagObject.instance.isInitChanges);
269275
} else {
270276
/* istanbul ignore next */
271-
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()))) {
272278
tempAfterContentThis[tagObject.name] = tagObject.instance.list;
273279
}
274280
for (let list of tagObject.instance.list) {
@@ -278,7 +284,7 @@ export class ComponentBase<T> {
278284
complexTemplates = complexTemplates.filter((val: string): boolean => {
279285
return /Ref$/i.test(val);
280286
});
281-
if (curChild.properties && Object.keys(curChild.properties).length !== 0 && /chart/.test(tempAfterContentThis.getModuleName())){
287+
if (curChild.properties && Object.keys(curChild.properties).length !== 0){
282288
for (let complexPropName of complexTemplates) {
283289
complexPropName = complexPropName.replace(/Ref/, '');
284290
curChild.properties[complexPropName] = !curChild.properties[complexPropName] ?

0 commit comments

Comments
 (0)