Skip to content

Commit ff7a964

Browse files
author
pipeline
committed
v22.1.36 is released
1 parent 71cbef4 commit ff7a964

File tree

504 files changed

+2068
-347
lines changed

Some content is hidden

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

504 files changed

+2068
-347
lines changed

components/base/CHANGELOG.md

Lines changed: 25 additions & 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-react-base",
3-
"version": "21.2.3",
3+
"version": "22.1.34",
44
"description": "A common package of Essential JS 2 React base, methods and class definitions",
55
"author": "Syncfusion Inc.",
66
"license": "SEE LICENSE IN license",

components/base/src/component-base.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -327,6 +327,14 @@ export class ComponentBase<P, S> extends React.Component<P, S> {
327327
}
328328
return this.compareObjects(tempVal, tempVal2).status;
329329
}
330+
if (value1.constructor &&
331+
value1.constructor.name === value2.constructor.name &&
332+
(value1.constructor.name === 'Query' ||
333+
value1.constructor.name === 'DataManager')) {
334+
if (JSON.stringify(value1) === JSON.stringify(value2)) {
335+
return true;
336+
}
337+
}
330338
}
331339
return false;
332340
}
@@ -373,6 +381,9 @@ export class ComponentBase<P, S> extends React.Component<P, S> {
373381
}
374382
status = false;
375383
}
384+
if (this.getModuleName() === 'grid' && propName === 'columns' && isNullOrUndefined(curObj['field'])) {
385+
curObj['field'] = undefined;
386+
}
376387
if (Object.keys(curObj).length) {
377388
diffArray.push({ index: i, value: curObj, key: propName });
378389
}

components/base/src/template.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ import { setTemplateEngine, getTemplateEngine, detach, extend } from '@syncfusio
55
import * as ReactDOM from 'react-dom';
66
import * as React from 'react';
77
/* eslint-disable @typescript-eslint/no-explicit-any */
8-
const stringCompiler: (template: string, helper?: object) => (data: Object | JSON) => string = getTemplateEngine();
8+
const stringCompiler: (template: string | Function, helper?: object) => (data: Object | JSON) => string = getTemplateEngine();
99
// eslint-disable-next-line
1010
export function compile(templateElement: any, helper?: Object):
1111
(data: Object | JSON, component?: any, propName?: any, element?: any) => Object {
12-
if (typeof templateElement === 'string') {
12+
if (typeof templateElement === 'string' || (templateElement.prototype && templateElement.prototype.CSPTemplate && typeof templateElement === 'function')) {
1313
return stringCompiler(templateElement, helper);
1414
} else {
1515
return (data: any, component: any, prop: string, element: any): any => {

components/buttons/CHANGELOG.md

Lines changed: 33 additions & 7 deletions

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-react-buttons",
3-
"version": "21.2.3",
3+
"version": "21.1.36",
44
"description": "A package of feature-rich Essential JS 2 components such as Button, CheckBox, RadioButton and Switch. for React",
55
"author": "Syncfusion Inc.",
66
"license": "SEE LICENSE IN license",
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
@import 'ej2-base/styles/material3-dark-definition.scss';
2+
@import 'ej2-buttons/styles/button/material3-dark.scss';
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
@import 'ej2-base/styles/material3-definition.scss';
2+
@import 'ej2-buttons/styles/button/material3.scss';
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
@import 'ej2-base/styles/material3-dark-definition.scss';
2+
@import 'ej2-buttons/styles/check-box/material3-dark.scss';
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
@import 'ej2-base/styles/material3-definition.scss';
2+
@import 'ej2-buttons/styles/check-box/material3.scss';

0 commit comments

Comments
 (0)