Skip to content

Commit bcdf7ae

Browse files
author
pipeline
committed
v18.2.44 is released
1 parent 7a2cd9b commit bcdf7ae

File tree

84 files changed

+541
-532
lines changed

Some content is hidden

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

84 files changed

+541
-532
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,5 @@
3838
Check the license detail [here](https://github.com/syncfusion/ej2-react-ui-components/blob/master/license).
3939
## Changelog
4040
Check the changelog [here](https://ej2.syncfusion.com/react/documentation/release-notes?utm_source=npm&utm_campaign=ej2-react-ui-components)
41-
© Copyright 2018 Syncfusion, Inc. All Rights Reserved.
41+
© Copyright 2020 Syncfusion, Inc. All Rights Reserved.
4242
The Syncfusion Essential Studio license and copyright applies to this distribution.

components/base/CHANGELOG.md

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

33
## [Unreleased]
44

5-
## 18.1.59 (2020-06-23)
6-
7-
### Common
8-
9-
- `#276826` Resolved the peer dependency warnings with React version.
10-
11-
## 18.1.36-beta (2020-03-19)
5+
## 18.2.44 (2020-07-07)
126

137
### Common
148

159
#### Bug Fixes
1610

1711
- Resolved the `delayUpdate` property type issue.
12+
- `I276587` - Resolved property updating issue in functional components.
1813

1914
## 17.2.48-beta (2019-08-28)
2015

components/base/dist/ej2-react-base.umd.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

components/base/dist/ej2-react-base.umd.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

components/base/dist/es6/ej2-react-base.es2015.js

Lines changed: 21 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

components/base/dist/es6/ej2-react-base.es2015.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

components/base/dist/es6/ej2-react-base.es5.js

Lines changed: 22 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

components/base/dist/es6/ej2-react-base.es5.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

components/base/dist/global/blazor/reactbase.js

Lines changed: 23 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -82,15 +82,22 @@ var ComponentBase = /** @class */ (function (_super) {
8282
* @private
8383
*/
8484
ComponentBase.prototype.UNSAFE_componentWillReceiveProps = function (nextProps) {
85-
var _this = this;
8685
if (!this.initRenderCalled) {
86+
this.updateProperties(nextProps, true);
8787
return;
8888
}
8989
if (!this.isAppendCalled) {
9090
clearTimeout(this.cachedTimeOut);
9191
this.isAppendCalled = true;
9292
this.appendTo(ReactDOM.findDOMNode(this));
9393
}
94+
this.updateProperties(nextProps);
95+
};
96+
/**
97+
* @private
98+
*/
99+
ComponentBase.prototype.updateProperties = function (nextProps, silent) {
100+
var _this = this;
94101
var dProps = sf.base.extend({}, nextProps);
95102
var keys = Object.keys(nextProps);
96103
for (var _i = 0, keys_1 = keys; _i < keys_1.length; _i++) {
@@ -117,22 +124,24 @@ var ComponentBase = /** @class */ (function (_super) {
117124
delete dProps['children'];
118125
}
119126
// tslint:disable-next-line:no-any
120-
if (this.canDelayUpdate || this.props.delayUpdate) {
127+
if (this.initRenderCalled && (this.canDelayUpdate || this.props.delayUpdate)) {
121128
setTimeout(function () {
122-
_this.refreshProperties(dProps, nextProps);
129+
_this.refreshProperties(dProps, nextProps, silent);
123130
});
124131
}
125132
else {
126-
this.refreshProperties(dProps, nextProps);
133+
this.refreshProperties(dProps, nextProps, silent);
127134
}
128135
};
129-
ComponentBase.prototype.refreshProperties = function (dProps, nextProps) {
136+
ComponentBase.prototype.refreshProperties = function (dProps, nextProps, silent) {
130137
if (Object.keys(dProps).length) {
131-
// tslint:disable-next-line:no-any
132-
this.processComplexTemplate(dProps, this);
133-
this.setProperties(dProps);
138+
if (!silent) {
139+
// tslint:disable-next-line:no-any
140+
this.processComplexTemplate(dProps, this);
141+
}
142+
this.setProperties(dProps, silent);
134143
}
135-
this.refreshChild(false, nextProps);
144+
this.refreshChild(silent, nextProps);
136145
};
137146
ComponentBase.prototype.processComplexTemplate = function (curObject, context) {
138147
var compTemplate = context.complexTemplate;
@@ -214,7 +223,10 @@ var ComponentBase = /** @class */ (function (_super) {
214223
};
215224
ComponentBase.prototype.componentWillUnmount = function () {
216225
clearTimeout(this.cachedTimeOut);
217-
this.destroy();
226+
// tslint:disable-next-line:no-any
227+
if (this.initRenderCalled) {
228+
this.destroy();
229+
}
218230
};
219231
/* tslint:disable:no-any */
220232
ComponentBase.prototype.validateChildren = function (childCache, mapper, props) {
@@ -703,6 +715,7 @@ exports.compile = compile;
703715
return exports;
704716

705717
});
718+
sfBlazor.libs.push("reactbase")
706719
sfBlazor.loadDependencies(["react","reactdom","base"], () => {
707720
sf.reactbase = sf.reactbase({});
708721
});

components/base/dist/global/ej2-react-base.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

components/base/dist/global/ej2-react-base.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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": "18.1.52",
3+
"version": "17.2.48",
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: 22 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -103,13 +103,20 @@ export class ComponentBase<P, S> extends React.PureComponent<P, S> {
103103
*/
104104
public UNSAFE_componentWillReceiveProps(nextProps: Object): void {
105105
if (!this.initRenderCalled) {
106+
this.updateProperties(nextProps, true);
106107
return;
107108
}
108109
if (!this.isAppendCalled) {
109110
clearTimeout(this.cachedTimeOut);
110111
this.isAppendCalled = true;
111112
this.appendTo(ReactDOM.findDOMNode(this));
112113
}
114+
this.updateProperties(nextProps);
115+
}
116+
/**
117+
* @private
118+
*/
119+
private updateProperties(nextProps:Object, silent?: boolean): void {
113120
let dProps: Object = extend({}, nextProps);
114121
let keys: string[] = Object.keys(nextProps);
115122
for (let propkey of keys) {
@@ -133,21 +140,23 @@ export class ComponentBase<P, S> extends React.PureComponent<P, S> {
133140
delete dProps['children'];
134141
}
135142
// tslint:disable-next-line:no-any
136-
if (this.canDelayUpdate || (this.props as any).delayUpdate) {
143+
if (this.initRenderCalled && (this.canDelayUpdate || (this.props as any).delayUpdate)) {
137144
setTimeout(() => {
138-
this.refreshProperties(dProps, nextProps);
145+
this.refreshProperties(dProps, nextProps, silent);
139146
})
140147
} else {
141-
this.refreshProperties(dProps, nextProps);
148+
this.refreshProperties(dProps, nextProps, silent);
142149
}
143150
}
144-
public refreshProperties(dProps: Object, nextProps: Object): void {
151+
public refreshProperties(dProps: Object, nextProps: Object, silent?: boolean): void {
145152
if (Object.keys(dProps).length) {
146-
// tslint:disable-next-line:no-any
147-
this.processComplexTemplate(dProps, (this as any));
148-
this.setProperties(dProps);
153+
if(!silent){
154+
// tslint:disable-next-line:no-any
155+
this.processComplexTemplate(dProps, (this as any));
156+
}
157+
this.setProperties(dProps, silent);
149158
}
150-
this.refreshChild(false, nextProps);
159+
this.refreshChild(silent, nextProps);
151160
}
152161

153162
private processComplexTemplate(curObject: Object, context: {complexTemplate: Object}){
@@ -231,7 +240,11 @@ export class ComponentBase<P, S> extends React.PureComponent<P, S> {
231240

232241
public componentWillUnmount(): void {
233242
clearTimeout(this.cachedTimeOut);
234-
this.destroy();
243+
// tslint:disable-next-line:no-any
244+
if (this.initRenderCalled ) {
245+
this.destroy();
246+
}
247+
235248
}
236249

237250
/* tslint:disable:no-any */

components/buttons/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-
## 18.1.59 (2020-06-23)
5+
## 18.2.44 (2020-07-07)
66

77
### Chips
88

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.1.52",
3+
"version": "18.1.43",
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/calendars/CHANGELOG.md

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

33
## [Unreleased]
44

5+
## 18.2.44 (2020-07-07)
6+
7+
### DatePicker
8+
9+
#### New Features
10+
11+
- `#274484`,`F145781` - Provided option to open the popup while focusing the input element.
12+
13+
### DateTimePicker
14+
15+
#### New Features
16+
17+
- `#274484`,`F145781` - Provided option to open the popup while focusing the input element.
18+
19+
### TimePicker
20+
21+
#### New Features
22+
23+
- `#274484`,`F145781` - Provided option to open the popup while focusing the input element.
24+
25+
### DateRangePicker
26+
27+
#### New Features
28+
29+
- `#274484`,`F145781` - Provided option to open the popup while focusing the input element.
30+
531
## 18.1.43 (2020-04-07)
632

733
### 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-react-calendars",
3-
"version": "18.1.53",
3+
"version": "17.2.48",
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 React",
55
"author": "Syncfusion Inc.",
66
"license": "SEE LICENSE IN license",

0 commit comments

Comments
 (0)