Skip to content

Commit 63e2f4e

Browse files
author
pipeline
committed
v20.1.55 is released
1 parent e5d7823 commit 63e2f4e

File tree

108 files changed

+278
-121
lines changed

Some content is hidden

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

108 files changed

+278
-121
lines changed

components/base/CHANGELOG.md

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

33
## [Unreleased]
44

5+
## 20.1.55 (2022-05-12)
6+
7+
### Common
8+
9+
#### New Features
10+
11+
- `#I376880`, `#I376902`, `#F174796` - Added support to work with React 18 version.
12+
13+
#### Breaking Changes
14+
15+
- `IsLegacyTemplate` option has been stopped from this release to support React 18 support.
16+
17+
### Common
18+
19+
#### Bug Fixes
20+
21+
- `I339589` - Resolved the `DropdownButton` issue with react component as target.
22+
523
## 19.1.67 (2021-06-08)
624

725
### Common

components/base/package.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,6 @@
2323
"main": "./dist/ej2-react-base.umd.min.js",
2424
"module": "./index.js",
2525
"readme": "ReadMe.md",
26-
"peerDependencies": {
27-
"react": "15.5.4 - 16.13.1",
28-
"react-dom": "15.5.4 - 16.13.1"
29-
},
3026
"dependencies": {
3127
"@syncfusion/ej2-base": "*"
3228
},

components/base/src/component-base.ts

Lines changed: 32 additions & 9 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
@@ -47,6 +48,7 @@
4748
public static reactUid: number = 1;
4849
private setProperties: Function;
4950
private element: any;
51+
private mountingState:any = false;
5052
private appendTo: Function;
5153
private destroy: Function;
5254
private getModuleName: () => string;
@@ -68,6 +70,7 @@
6870
private isshouldComponentUpdateCalled: boolean = false;
6971
private modelObserver: any;
7072
private isDestroyed: boolean;
73+
private isCreated: boolean = false;
7174
private isProtectedOnChange: boolean;
7275
private canDelayUpdate: boolean;
7376
private reactElement: HTMLElement;
@@ -88,7 +91,9 @@
8891
// tslint:disable-next-line:no-any
8992
this.renderReactComponent();
9093
if (this.portals && this.portals.length) {
94+
this.mountingState = true;
9195
this.renderReactTemplates();
96+
this.mountingState = false;
9297
}
9398
}
9499

@@ -103,7 +108,7 @@
103108

104109
private renderReactComponent(): void {
105110
let ele: Element = this.reactElement;
106-
if (ele) {
111+
if (ele && !this.isAppendCalled) {
107112
this.isAppendCalled = true;
108113
this.appendTo(ele);
109114
}
@@ -280,6 +285,7 @@
280285
this.isProtectedOnChange = false;
281286
if(eventName === 'created') {
282287
setTimeout(()=>{
288+
this.isCreated = true;
283289
if(!this.isDestroyed) {
284290
this.modelObserver.notify(eventName, eventProp, successHandler);
285291
}
@@ -450,20 +456,37 @@
450456
clearTimeout(this.cachedTimeOut);
451457
var modulesName = ['dropdowntree', 'checkbox'];
452458
// tslint:disable-next-line:no-any
453-
if (this.initRenderCalled && this.isAppendCalled && this.element && (!modulesName.indexOf(this.getModuleName())) ? document.body.contains(this.element) : true && !this.isDestroyed) {
459+
if (this.initRenderCalled && this.isAppendCalled && this.element && ((!modulesName.indexOf(this.getModuleName())) ? document.body.contains(this.element) : true) && !this.isDestroyed && this.isCreated) {
454460
this.destroy();
455461
}
456462

457463
}
458-
// tslint:disable:no-any
464+
465+
// tslint:disable:no-any
466+
public appendReactElement (element: any, container: HTMLElement) {
467+
let portal: any = (ReactDOM as any).createPortal(element, container);
468+
if (!this.portals) {
469+
this.portals = [portal];
470+
}
471+
else {
472+
this.portals.push(portal);
473+
}
474+
};
475+
// tslint:disable:no-any
476+
public intForceUpdate (callback?: any): void {
477+
let flush: any = getValue('flushSync',ReactDOM);
478+
if (this.initRenderCalled && flush && !this.mountingState) {
479+
flush(() => {
480+
this.forceUpdate(callback);
481+
});
482+
} else {
483+
this.forceUpdate(callback);
484+
}
485+
}
486+
459487
public renderReactTemplates (callback?: any): void {
460488
this.isReactForeceUpdate = true;
461-
if(callback){
462-
this.forceUpdate(callback);
463-
} else {
464-
this.forceUpdate();
465-
}
466-
489+
this.intForceUpdate(callback);
467490
this.isReactForeceUpdate = false;
468491
};
469492
// tslint:disable:no-any

components/base/src/template.ts

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -24,20 +24,13 @@
2424
} else {
2525
cEle = document.createElement('div');
2626
}
27-
if (component && component.isLegacyTemplate) {
28-
ReactDOM.render((actTemplate as Function)(actData), cEle);
29-
if (!element) {
30-
detach(cEle);
31-
}
27+
let rele: any = React.createElement(actTemplate, actData);
28+
let portal: any = (ReactDOM as any).createPortal(rele, cEle);
29+
portal.propName = prop;
30+
if (!component.portals) {
31+
component.portals = [portal];
3232
} else {
33-
let rele: any = React.createElement(actTemplate, actData);
34-
let portal: any = (ReactDOM as any).createPortal(rele, cEle);
35-
portal.propName = prop;
36-
if (!component.portals) {
37-
component.portals = [portal];
38-
} else {
39-
component.portals.push(portal);
40-
}
33+
component.portals.push(portal);
4134
}
4235

4336
if (!element) {

components/buttons/CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@
44

55
## 20.1.50 (2022-04-19)
66

7-
### Radio Button
7+
### Checkbox
8+
9+
#### Bug Fixes
10+
11+
- `F373307` - Issue with Accessibility in checkbox and switch has been resolved.
812

913
#### Bug Fixes
1014

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": "20.1.50",
3+
"version": "20.1.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/buttons/src/chips/chips-directive.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export interface ChipDirTypecast {
1414
* </ChipListComponent>
1515
* ```
1616
*/
17-
export class ChipDirective extends ComplexBase<ChipModel| ChipDirTypecast, ChipModel| ChipDirTypecast> {
17+
export class ChipDirective extends ComplexBase<ChipModel| ChipDirTypecast & { children?: React.ReactNode }, ChipModel| ChipDirTypecast> {
1818
public static moduleName: string = 'chip';
1919
}
2020

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": "20.1.47",
3+
"version": "20.1.52",
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",

components/charts/CHANGELOG.md

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

33
## [Unreleased]
44

5+
## 20.1.55 (2022-05-12)
6+
7+
### Chart
8+
9+
#### New Features
10+
11+
- `#I360879` - Provided support to disable the marker explode without tooltip and highlight mode.
12+
513
## 20.1.52 (2022-05-04)
614

715
### Chart

components/charts/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-charts",
3-
"version": "20.1.51",
3+
"version": "20.1.52",
44
"description": "Feature-rich chart control with built-in support for over 25 chart types, technical indictors, trendline, zooming, tooltip, selection, crosshair and trackball. for React",
55
"author": "Syncfusion Inc.",
66
"license": "SEE LICENSE IN license",

components/charts/src/accumulation-chart/annotations-directive.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export interface AccumulationAnnotationSettingsDirTypecast {
1515
* </AccumulationChartComponent>
1616
* ```
1717
*/
18-
export class AccumulationAnnotationDirective extends ComplexBase<AccumulationAnnotationSettingsModel| AccumulationAnnotationSettingsDirTypecast, AccumulationAnnotationSettingsModel| AccumulationAnnotationSettingsDirTypecast> {
18+
export class AccumulationAnnotationDirective extends ComplexBase<AccumulationAnnotationSettingsModel| AccumulationAnnotationSettingsDirTypecast & { children?: React.ReactNode }, AccumulationAnnotationSettingsModel| AccumulationAnnotationSettingsDirTypecast> {
1919
public static moduleName: string = 'accumulationAnnotation';
2020
}
2121

components/charts/src/accumulation-chart/series-directive.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export interface AccumulationSeriesDirTypecast {
1515
* </AccumulationChartComponent>
1616
* ```
1717
*/
18-
export class AccumulationSeriesDirective extends ComplexBase<AccumulationSeriesModel| AccumulationSeriesDirTypecast, AccumulationSeriesModel| AccumulationSeriesDirTypecast> {
18+
export class AccumulationSeriesDirective extends ComplexBase<AccumulationSeriesModel| AccumulationSeriesDirTypecast & { children?: React.ReactNode }, AccumulationSeriesModel| AccumulationSeriesDirTypecast> {
1919
public static moduleName: string = 'accumulationSeries';
2020
public static complexTemplate: Object = {'dataLabelTemplate': 'dataLabel.template'};
2121
}

components/charts/src/bullet-chart/ranges-directive.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import { RangeModel } from '@syncfusion/ej2-charts';
1212
* </BulletChartComponent>
1313
* ```
1414
*/
15-
export class BulletRangeDirective extends ComplexBase<RangeModel, RangeModel> {
15+
export class BulletRangeDirective extends ComplexBase<RangeModel & { children?: React.ReactNode }, RangeModel> {
1616
public static moduleName: string = 'bulletRange';
1717
}
1818

components/charts/src/chart/annotations-directive.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export interface ChartAnnotationSettingsDirTypecast {
1515
* </ChartComponent>
1616
* ```
1717
*/
18-
export class AnnotationDirective extends ComplexBase<ChartAnnotationSettingsModel| ChartAnnotationSettingsDirTypecast, ChartAnnotationSettingsModel| ChartAnnotationSettingsDirTypecast> {
18+
export class AnnotationDirective extends ComplexBase<ChartAnnotationSettingsModel| ChartAnnotationSettingsDirTypecast & { children?: React.ReactNode }, ChartAnnotationSettingsModel| ChartAnnotationSettingsDirTypecast> {
1919
public static moduleName: string = 'annotation';
2020
}
2121

components/charts/src/chart/axes-directive.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import { AxisModel } from '@syncfusion/ej2-charts';
1313
* </ChartComponent>
1414
* ```
1515
*/
16-
export class AxisDirective extends ComplexBase<AxisModel, AxisModel> {
16+
export class AxisDirective extends ComplexBase<AxisModel & { children?: React.ReactNode }, AxisModel> {
1717
public static moduleName: string = 'axis';
1818
}
1919

components/charts/src/chart/categories-directive.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import { MultiLevelCategoriesModel } from '@syncfusion/ej2-charts';
2222
* </ChartComponent>
2323
* ```
2424
*/
25-
export class CategoryDirective extends ComplexBase<MultiLevelCategoriesModel, MultiLevelCategoriesModel> {
25+
export class CategoryDirective extends ComplexBase<MultiLevelCategoriesModel & { children?: React.ReactNode }, MultiLevelCategoriesModel> {
2626
public static moduleName: string = 'category';
2727
}
2828

components/charts/src/chart/columns-directive.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import { ColumnModel } from '@syncfusion/ej2-charts';
1313
* </ChartComponent>
1414
* ```
1515
*/
16-
export class ColumnDirective extends ComplexBase<ColumnModel, ColumnModel> {
16+
export class ColumnDirective extends ComplexBase<ColumnModel & { children?: React.ReactNode }, ColumnModel> {
1717
public static moduleName: string = 'column';
1818
}
1919

components/charts/src/chart/indicators-directive.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import { TechnicalIndicatorModel } from '@syncfusion/ej2-charts';
1313
* </ChartComponent>
1414
* ```
1515
*/
16-
export class IndicatorDirective extends ComplexBase<TechnicalIndicatorModel, TechnicalIndicatorModel> {
16+
export class IndicatorDirective extends ComplexBase<TechnicalIndicatorModel & { children?: React.ReactNode }, TechnicalIndicatorModel> {
1717
public static moduleName: string = 'indicator';
1818
}
1919

components/charts/src/chart/multilevellabels-directive.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import { MultiLevelLabelsModel } from '@syncfusion/ej2-charts';
1717
* </ChartComponent>
1818
* ```
1919
*/
20-
export class MultiLevelLabelDirective extends ComplexBase<MultiLevelLabelsModel, MultiLevelLabelsModel> {
20+
export class MultiLevelLabelDirective extends ComplexBase<MultiLevelLabelsModel & { children?: React.ReactNode }, MultiLevelLabelsModel> {
2121
public static moduleName: string = 'multiLevelLabel';
2222
}
2323

components/charts/src/chart/rangecolorsettings-directive.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import { RangeColorSettingModel } from '@syncfusion/ej2-charts';
1313
* </ChartComponent>
1414
* ```
1515
*/
16-
export class RangeColorSettingDirective extends ComplexBase<RangeColorSettingModel, RangeColorSettingModel> {
16+
export class RangeColorSettingDirective extends ComplexBase<RangeColorSettingModel & { children?: React.ReactNode }, RangeColorSettingModel> {
1717
public static moduleName: string = 'rangeColorSetting';
1818
}
1919

components/charts/src/chart/rows-directive.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import { RowModel } from '@syncfusion/ej2-charts';
1313
* </ChartComponent>
1414
* ```
1515
*/
16-
export class RowDirective extends ComplexBase<RowModel, RowModel> {
16+
export class RowDirective extends ComplexBase<RowModel & { children?: React.ReactNode }, RowModel> {
1717
public static moduleName: string = 'row';
1818
}
1919

components/charts/src/chart/segments-directive.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import { ChartSegmentModel } from '@syncfusion/ej2-charts';
1717
* </ChartComponent>
1818
* ```
1919
*/
20-
export class SegmentDirective extends ComplexBase<ChartSegmentModel, ChartSegmentModel> {
20+
export class SegmentDirective extends ComplexBase<ChartSegmentModel & { children?: React.ReactNode }, ChartSegmentModel> {
2121
public static moduleName: string = 'segment';
2222
}
2323

components/charts/src/chart/selecteddataindexes-directive.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import { IndexesModel } from '@syncfusion/ej2-charts';
1313
* </ChartComponent>
1414
* ```
1515
*/
16-
export class SelectedDataIndexDirective extends ComplexBase<IndexesModel, IndexesModel> {
16+
export class SelectedDataIndexDirective extends ComplexBase<IndexesModel & { children?: React.ReactNode }, IndexesModel> {
1717
public static moduleName: string = 'selectedDataIndex';
1818
}
1919

components/charts/src/chart/series-directive.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export interface SeriesDirTypecast {
1515
* </ChartComponent>
1616
* ```
1717
*/
18-
export class SeriesDirective extends ComplexBase<SeriesModel| SeriesDirTypecast, SeriesModel| SeriesDirTypecast> {
18+
export class SeriesDirective extends ComplexBase<SeriesModel| SeriesDirTypecast & { children?: React.ReactNode }, SeriesModel| SeriesDirTypecast> {
1919
public static moduleName: string = 'series';
2020
public static complexTemplate: Object = {'dataLabelTemplate': 'dataLabel.template'};
2121
}

components/charts/src/chart/striplines-directive.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import { StripLineSettingsModel } from '@syncfusion/ej2-charts';
1717
* </ChartComponent>
1818
* ```
1919
*/
20-
export class StripLineDirective extends ComplexBase<StripLineSettingsModel, StripLineSettingsModel> {
20+
export class StripLineDirective extends ComplexBase<StripLineSettingsModel & { children?: React.ReactNode }, StripLineSettingsModel> {
2121
public static moduleName: string = 'stripLine';
2222
}
2323

components/charts/src/chart/trendlines-directive.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import { TrendlineModel } from '@syncfusion/ej2-charts';
1717
* </ChartComponent>
1818
* ```
1919
*/
20-
export class TrendlineDirective extends ComplexBase<TrendlineModel, TrendlineModel> {
20+
export class TrendlineDirective extends ComplexBase<TrendlineModel & { children?: React.ReactNode }, TrendlineModel> {
2121
public static moduleName: string = 'trendline';
2222
}
2323

components/charts/src/range-navigator/series-directive.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import { RangeNavigatorSeriesModel } from '@syncfusion/ej2-charts';
1313
* </RangenavigatorChartComponent>
1414
* ```
1515
*/
16-
export class RangenavigatorSeriesDirective extends ComplexBase<RangeNavigatorSeriesModel, RangeNavigatorSeriesModel> {
16+
export class RangenavigatorSeriesDirective extends ComplexBase<RangeNavigatorSeriesModel & { children?: React.ReactNode }, RangeNavigatorSeriesModel> {
1717
public static moduleName: string = 'rangenavigatorSeries';
1818
}
1919

components/charts/src/smithchart/series-directive.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { SmithchartSeriesModel } from '@syncfusion/ej2-charts';
33

44

55

6-
export class SmithchartSeriesDirective extends ComplexBase<SmithchartSeriesModel, SmithchartSeriesModel> {
6+
export class SmithchartSeriesDirective extends ComplexBase<SmithchartSeriesModel & { children?: React.ReactNode }, SmithchartSeriesModel> {
77
public static moduleName: string = 'smithchartSeries';
88
}
99

components/charts/src/sparkline/rangebandsettings-directive.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { RangeBandSettingsModel } from '@syncfusion/ej2-charts';
33

44

55

6-
export class RangeBandSettingDirective extends ComplexBase<RangeBandSettingsModel, RangeBandSettingsModel> {
6+
export class RangeBandSettingDirective extends ComplexBase<RangeBandSettingsModel & { children?: React.ReactNode }, RangeBandSettingsModel> {
77
public static moduleName: string = 'rangeBandSetting';
88
}
99

0 commit comments

Comments
 (0)