Skip to content

Commit 26dabb8

Browse files
author
pipeline
committed
v22.2.5 is released
1 parent 5561658 commit 26dabb8

File tree

375 files changed

+3249
-370
lines changed

Some content is hidden

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

375 files changed

+3249
-370
lines changed

components/base/CHANGELOG.md

Lines changed: 16 additions & 0 deletions

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.2.3",
3+
"version": "22.1.34",
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/template.ts

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@ import { ViewContainerRef, EmbeddedViewRef, ElementRef, TemplateRef } from '@ang
22
import { setTemplateEngine, getTemplateEngine } from '@syncfusion/ej2-base';
33
import { setValue, getValue } from '@syncfusion/ej2-base';
44

5-
let stringCompiler: (template: string, helper?: object) => (data: Object | JSON) => string = getTemplateEngine();
5+
let stringCompiler: (template: string | Function, helper?: object) => (data: Object | JSON) => string = getTemplateEngine();
66

77
/**
88
* Angular Template Compiler
99
*/
1010
export function compile(templateEle: AngularElementType, helper?: Object):
1111
//tslint:disable-next-line
1212
(data: Object | JSON, component?: any, propName?: any) => Object {
13-
if (typeof templateEle === 'string') {
13+
if (typeof templateEle === 'string' || (typeof templateEle === 'function' && (templateEle as Function).prototype && (templateEle as Function).prototype.CSPTemplate)) {
1414
return stringCompiler(templateEle, helper);
1515
} else {
1616
let contRef: ViewContainerRef = templateEle.elementRef.nativeElement._viewContainerRef;
@@ -21,11 +21,7 @@ export function compile(templateEle: AngularElementType, helper?: Object):
2121
/* istanbul ignore next */
2222
let conRef: ViewContainerRef = contRef ? contRef : component.viewContainerRef;
2323
let viewRef: EmbeddedViewRef<Object> = conRef.createEmbeddedView(templateEle as TemplateRef<Object>, context);
24-
if (getValue('currentInstance.element.nodeName', conRef) === 'EJS-MENTION') {
25-
viewRef.detectChanges();
26-
} else {
27-
viewRef.markForCheck();
28-
}
24+
viewRef.detectChanges();
2925
/* istanbul ignore next */
3026
let viewCollection: { [key: string]: EmbeddedViewRef<Object>[] } = (component && component.registeredTemplate) ?
3127
component.registeredTemplate : getValue('currentInstance.registeredTemplate', conRef);
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
@import 'ej2-base/styles/material3-dark-definition.scss';

components/base/styles/material3.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
@import 'ej2-base/styles/material3-definition.scss';
Binary file not shown.
-73 Bytes
Binary file not shown.
-74 Bytes
Binary file not shown.
Binary file not shown.
-74 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)