Skip to content

Commit 28cdd76

Browse files
author
pipeline
committed
v19.4.53 is released
1 parent 3d22dab commit 28cdd76

File tree

31 files changed

+372
-46
lines changed

31 files changed

+372
-46
lines changed

components/base/CHANGELOG.md

Lines changed: 22 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,29 +2,46 @@
22

33
## [Unreleased]
44

5+
## 19.4.53 (2022-02-22)
6+
7+
### Common
8+
9+
#### Bug Fixes
10+
11+
- `SF-366476` - Resolved the issue with React `Dialog` content does not update when changing state.
12+
513
## 19.4.52 (2022-02-15)
614

715
### Common
816

917
#### Bug Fixes
1018

11-
- `333080` - Resolved the issue with Grid `editTemplate` drop down data source is not updated while using `useState`.
19+
- `I352651` - Styles not applied properly if it dynamically changed has been resolved.
20+
21+
## 19.4.47 (2022-01-25)
22+
23+
### Common
24+
25+
#### Bug Fixes
26+
27+
- `F167610` - Resolved the Console error occurs when using a value and `valueTemplate` together.
1228

13-
## 19.2.49 (2021-07-27)
29+
## 19.4.43 (2022-01-18)
1430

1531
### Common
1632

1733
#### Bug Fixes
1834

19-
- `I335035`, `I331116` - Resolved the issue with Updating data source of components using React `usestate` hook is not working.
35+
- `I362528` - Resolved the peer dependency warning in higher React version
2036

21-
## 19.2.48 (2021-07-20)
37+
## 19.4.42 (2022-01-11)
2238

2339
### Common
2440

2541
#### Bug Fixes
2642

27-
- `I331796` - Resolved the issue with Selected value removed when focus changed in `MultiSelect`.
43+
- `I339589` - Resolved the `DropdownButton` issue with react component as target.
44+
- `F165505` - Resolved the issue with Focus lost in input component each time `onchange` invoked.
2845

2946
## 19.1.67 (2021-06-08)
3047

components/base/ReadMe.md renamed to components/base/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,11 +72,11 @@ Product support is available for through following mediums.
7272

7373
## License
7474

75-
Check the license detail [here](https://github.com/syncfusion/ej2-react-base/blob/master/license).
75+
Check the license detail [here](https://github.com/syncfusion/ej2-react-ui-components/blob/master/license).
7676

7777
## Changelog
7878

79-
Check the changelog [here](https://ej2.syncfusion.com/react/documentation/release-notes?utm_source=npm&utm_campaign=ej2-react-base)
79+
Check the changelog [here](https://ej2.syncfusion.com/react/documentation/release-notes/index?utm_source=npm&utm_campaign=ej2-react-base)
8080

8181
© Copyright 2019 Syncfusion, Inc. All Rights Reserved.
8282
The Syncfusion Essential Studio license and copyright applies to this distribution.

components/base/karma.conf.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ module.exports = function (config) {
6262

6363
// start these browsers
6464
// available browser launchers: https://npmjs.org/browse/keyword/karma-launcher
65-
browsers: [ 'Chrome'],
65+
browsers: ['ChromeHeadless', 'Chrome'],
6666

6767

6868
// Continuous Integration mode

components/base/package.json

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@syncfusion/ej2-react-base",
3-
"version": "19.2.49",
3+
"version": "19.4.52",
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",
@@ -23,16 +23,12 @@
2323
"main": "./dist/ej2-react-base.umd.min.js",
2424
"module": "./index.js",
2525
"readme": "ReadMe.md",
26-
"peerDependencies": {
27-
"react": "16.13.1 - 17.0.2",
28-
"react-dom": "16.13.1 - 17.0.2"
29-
},
3026
"dependencies": {
3127
"@syncfusion/ej2-base": "*"
3228
},
3329
"devDependencies": {
34-
"react": "16.13.1 - 17.10.2",
35-
"react-dom": "16.13.1 - 17.10.2",
30+
"react": "15.5.4 - 16.10.2",
31+
"react-dom": "15.5.4 - 16.10.2",
3632
"@types/chai": "^3.4.28",
3733
"@types/es6-promise": "0.0.28",
3834
"@types/jasmine": "^2.2.29",
@@ -64,5 +60,6 @@
6460
"scripts": {
6561
"build": "gulp build",
6662
"test": "gulp test"
67-
}
63+
},
64+
"typings": "index.d.ts"
6865
}

components/base/src/component-base.ts

Lines changed: 48 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
* React Component Base
33
*/
44
import * as React from 'react';
5+
import * as ReactDOM from 'react-dom';
56
import { extend, isNullOrUndefined, setValue, getValue, isObject } from '@syncfusion/ej2-base';
67
/**
78
* Interface for processing directives
@@ -74,6 +75,7 @@
7475
public portals:any;
7576
protected value: any;
7677
protected columns: any;
78+
private clsName: boolean;
7779

7880
// Lifecycle methods are changed by React team and so we can deprecate this method and use
7981
// Reference link:https://reactjs.org/docs/react-component.html#unsafe_componentWillMount
@@ -91,10 +93,12 @@
9193
}
9294
}
9395

94-
public componentDidUpdate(): any {
96+
public componentDidUpdate(prev: Object): any {
9597
if(!this.isshouldComponentUpdateCalled && this.initRenderCalled && !this.isReactForeceUpdate) {
9698
this.isshouldComponentUpdateCalled = true;
97-
this.refreshProperties(this.props, true);
99+
if (prev !== this.props) {
100+
this.refreshProperties(this.props, true);
101+
}
98102
}
99103
}
100104

@@ -145,12 +149,25 @@
145149
delete dProps[propkey];
146150
} else if (this.attrKeys.indexOf(propkey) !== -1) {
147151
if (isClassName) {
148-
this.element.classList.remove(this.props[propkey]);
149-
this.element.classList.add(dProps[propkey]);
152+
this.clsName = true;
153+
let propsClsName = this.props[propkey].split(' ');
154+
for (let i: number = 0; i < propsClsName.length; i++) {
155+
this.element.classList.remove(propsClsName[i]);
156+
}
157+
let dpropsClsName = dProps[propkey].split(' ');
158+
for (let j: number = 0; j < dpropsClsName.length; j++) {
159+
this.element.classList.add(dpropsClsName[j]);
160+
}
150161
} else if (propkey !== 'disabled') {
151162
delete dProps[propkey];
152163
}
153164
}
165+
else if (propkey === 'value' && nextProps[propkey] === this[propkey]) {
166+
delete dProps[propkey];
167+
}
168+
else if ((propkey === 'valueTemplate' || propkey === 'itemTemplate') && nextProps[propkey].toString() === this[propkey].toString()) {
169+
delete dProps[propkey];
170+
}
154171
}
155172
if (dProps['children']) {
156173
delete dProps['children'];
@@ -218,6 +235,16 @@
218235
ComponentBase.reactUid++;
219236
}
220237

238+
}
239+
if (this.clsName) {
240+
let clsList: string[] = this.element.classList;
241+
let className: any = this.htmlattributes['className'];
242+
for(let i: number = 0; i < clsList.length; i++){
243+
if ((className.indexOf(clsList[i]) == -1)){
244+
this.htmlattributes['className'] = this.htmlattributes['className'] + ' '+ clsList[i];
245+
}
246+
}
247+
this.clsName = false;
221248
}
222249
return this.htmlattributes;
223250
}
@@ -303,12 +330,19 @@
303330
let keys: string[] = Object.keys(newProp);
304331
if (keys.length !== 0) {
305332
for (let key of keys) {
306-
let oldValue = oldProp[key];
307-
let newValue = newProp[key];
333+
let oldValue: any = oldProp[key];
334+
let newValue: any = newProp[key];
335+
if (key === 'items') {
336+
for(var _j=0; _j < newValue.length; _j++) {
337+
if (this.getModuleName() === 'richtexteditor' && typeof(newValue[_j]) === 'object') {
338+
return {status: true};
339+
}
340+
}
341+
}
308342
if (this.getModuleName()=== 'grid' && key === 'field') {
309343
curObj[key] = newValue;
310344
}
311-
if (!oldProp.hasOwnProperty(key) || !this.compareValues(newValue, oldValue)) {
345+
if (!oldProp.hasOwnProperty(key) || !this.compareValues(oldValue, newValue)) {
312346
if (!propName) {
313347
return { status: false };
314348
}
@@ -419,6 +453,12 @@
419453
}
420454

421455
}
456+
457+
// tslint:disable:no-any
458+
public appendReactElement (element: any, container: HTMLElement) {
459+
ReactDOM.render((ReactDOM as any).createPortal(element, container), container);
460+
};
461+
422462
// tslint:disable:no-any
423463
public renderReactTemplates (callback?: any): void {
424464
this.isReactForeceUpdate = true;
@@ -542,4 +582,4 @@
542582
}
543583
}
544584
/* tslint:enable:no-any */
545-
585+

components/base/src/util.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,10 @@
3333
onFocus?: FocusEventHandler;
3434
onBlur?: FocusEventHandler;
3535
immediateRender?: boolean;
36+
isLegacyTemplate?:boolean;
3637
delayUpdate?: string | boolean;
3738
// tslint:disable-next-line:no-any
3839
onChange?: any;
3940

4041
}
41-
42+

components/base/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,4 @@
3131
"test-report"
3232
],
3333
"compileOnSave": false
34-
}
34+
}

components/buttons/CHANGELOG.md

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

33
## [Unreleased]
44

5-
## 19.4.52 (2022-02-15)
5+
## 19.4.53 (2022-02-22)
6+
7+
### Radio Button
8+
9+
#### Bug Fixes
10+
11+
- Issue with accessing the element in the destroy method of radio button has been resolved.
12+
13+
## 19.4.50 (2022-02-08)
14+
15+
### Checkbox
16+
17+
#### Bug Fixes
18+
19+
- Issue with Checkbox value not being posted in form has been resolved.
20+
21+
## 19.4.42 (2022-01-11)
22+
23+
### Checkbox
24+
25+
#### Bug Fixes
26+
27+
- Issue with checkbox in talkback has been resolved.
28+
29+
## 19.4.38 (2021-12-17)
630

731
### Chips
832

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": "18.29.0",
3+
"version": "19.4.52",
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",

components/charts/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-
## 19.4.52 (2022-02-15)
5+
## 19.4.53 (2022-02-22)
66

77
### Chart
88

components/diagrams/CHANGELOG.md

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,73 @@
22

33
## [Unreleased]
44

5+
## 19.4.53 (2022-02-22)
6+
7+
### Diagram
8+
9+
#### Bug Fixes
10+
11+
- `SF-364857` - Now, Command/Meta key will work properly on Mac.
12+
513
## 19.4.52 (2022-02-15)
614

715
### Diagram
816

917
#### Bug Fixes
1018

19+
- `SF-361654` - Connector is now rendered properly in the symbol palette while try to render as straight line.
20+
- `SF-360571` - Provide separate tooltip support for the group children node.
21+
- `SF-359118` - Now, the Scroll Bar works properly when Viewport is in Negative coordinates.
22+
23+
## 19.4.50 (2022-02-08)
24+
25+
### Diagram
26+
27+
#### Bug Fixes
28+
29+
- `SF-360650` - The Undefined exception will no longer be thrown while perform ctrl + shift + mouse click on diagram area.
30+
- `SF-359437` - The Undefined exception will no longer be thrown while ungroup the group node in canvas mode.
31+
- `SF-359860` - Node gradient color is now exported properly while export the diagram in JPG.
32+
- `SF-362805` - Bezier connector text element bounds is now calculated properly while drag the connector.
33+
- `SF-362170` - Annotation editing for the Bezier Connector is now working properly.
34+
- `SF-362805` - Style Property margin is now working properly for the Bezier Connector Annotation.
35+
- `F170870` - Resolved the exception when Flipping SVG Nodes Label.
36+
37+
## 19.4.43 (2022-01-18)
38+
39+
### Diagram
40+
41+
#### Bug Fixes
42+
43+
- `F171509` - The issue "getDiagramContent() is not working properly" has been fixed.
44+
45+
## 19.4.42 (2022-01-11)
46+
47+
### Diagram
48+
49+
#### Bug Fixes
50+
51+
- `SF-359118` - The issue "Scroll Bar is not working properly when Viewport is in Negative coordinates" has been fixed.
52+
- `F171398` - The issue "Exception occurs when save and load the diagram" has been fixed.
53+
- `SF-360354` - The issue "Symbol do not get dropped properly in the chrome android" has been fixed.
54+
55+
## 19.4.41 (2022-01-04)
56+
57+
### Diagram
58+
59+
#### Bug Fixes
60+
61+
- `SF-358407` - The issue "NodeTemplate is not rendered properly in React" has been fixed.
62+
- `SF-358519` - The issue "SendToBack is not working properly when re-adding shapes on diagram" has been fixed.
63+
- `F170870` - The issue "Ports are not flipped while flipping Node to Horizontal or Vertically" has been fixed.
64+
- `F170870` - The issue "Provide support to prevent label flipping while flipping the node horizontally or vertically" has been fixed.
65+
66+
## 19.4.40 (2021-12-28)
67+
68+
### Diagram
69+
70+
#### Bug Fixes
71+
1172
- `F171088` - The issue "Multiple selection tool not working properly" has been fixed.
1273
- `SF-353924` - The issue "Drag and drop element from tree-view to Diagram does not behave correctly" has been fixed.
1374
- `SF-333944` - The issue "Exception raises when perform sendBackward with native node" has been fixed.

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-react-diagrams",
3-
"version": "19.4.38",
3+
"version": "19.4.52",
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 React",
55
"author": "Syncfusion Inc.",
66
"license": "SEE LICENSE IN license",

components/documenteditor/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-
## 19.4.52 (2022-02-15)
5+
## 19.4.53 (2022-02-22)
66

77
### Document Editor
88

components/dropdowns/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-
## 19.4.52 (2022-02-15)
5+
## 19.4.53 (2022-02-22)
66

77
### MultiSelect
88

0 commit comments

Comments
 (0)