Skip to content

Commit c426027

Browse files
author
pipeline
committed
v20.3.47 is released
1 parent 27ab96a commit c426027

File tree

446 files changed

+1182
-671
lines changed

Some content is hidden

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

446 files changed

+1182
-671
lines changed

components/base/CHANGELOG.md

Lines changed: 13 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-react-base",
3-
"version": "20.2.36",
3+
"version": "17.15.0",
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: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@
289289
if(!this.isDestroyed) {
290290
this.modelObserver.notify(eventName, eventProp, successHandler);
291291
}
292-
})
292+
}, 10)
293293
} else {
294294
this.modelObserver.notify(eventName, eventProp, successHandler);
295295
}
@@ -359,7 +359,7 @@
359359
}
360360
}
361361
}
362-
else if (newProp[i] === oldProp[i]) {
362+
else if (newProps[i] === oldProps[i]) {
363363
status = true;
364364
}
365365
else {

components/buttons/CHANGELOG.md

Lines changed: 26 additions & 8 deletions

components/buttons/package.json

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@syncfusion/ej2-react-buttons",
3-
"version": "20.2.46",
3+
"version": "18.44.0",
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",
@@ -28,13 +28,20 @@
2828
"form control",
2929
"form controls",
3030
"input",
31+
"fab",
32+
"floating button",
33+
"floating action button",
34+
"speeddial",
35+
"floating menu",
3136
"react",
3237
"reactjs",
3338
"ej2-react-buttons",
3439
"react-button",
3540
"react-checkbox",
3641
"react-radiobutton",
37-
"react-switch"
42+
"react-switch",
43+
"react-fab",
44+
"react-speeddial"
3845
],
3946
"repository": {
4047
"type": "git",
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
import * as React from 'react';
2+
import { Fab, FabModel } from '@syncfusion/ej2-buttons';
3+
import { ComponentBase, applyMixins, DefaultHtmlAttributes } from '@syncfusion/ej2-react-base';
4+
5+
6+
7+
/**
8+
* `FabComponent` represents the react Fab Component.
9+
* ```ts
10+
* <FabComponent></FabComponent>
11+
* ```
12+
*/
13+
export class FabComponent extends Fab {
14+
public state: Readonly<{ children?: React.ReactNode | React.ReactNode[] }>
15+
& Readonly<FabModel & DefaultHtmlAttributes>;
16+
public setState: any;
17+
private getDefaultAttributes: Function;
18+
public initRenderCalled: boolean = false;
19+
private checkInjectedModules: boolean = false;
20+
private immediateRender: boolean = true;
21+
public props: Readonly<{ children?: React.ReactNode | React.ReactNode[] }>
22+
& Readonly<FabModel & DefaultHtmlAttributes>;
23+
public forceUpdate: (callBack?: () => any) => void;
24+
public context: Object;
25+
public portals: any = [];
26+
public isReactComponent: Object;
27+
public refs: {
28+
[key: string]: React.ReactInstance
29+
};
30+
constructor(props: any) {
31+
super(props);
32+
}
33+
34+
public render(): any {
35+
if (((this.element && !this.initRenderCalled) || this.refreshing) && !(this as any).isReactForeceUpdate) {
36+
super.render();
37+
this.initRenderCalled = true;
38+
} else {
39+
return React.createElement('button', this.getDefaultAttributes(),[].concat(this.props.children,this.portals));
40+
}
41+
42+
}
43+
}
44+
45+
applyMixins(FabComponent, [ComponentBase, React.Component]);
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export * from './fab.component';

components/buttons/src/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,6 @@ export * from './check-box';
33
export * from './radio-button';
44
export * from './switch';
55
export * from './chips';
6+
export * from './floating-action-button';
7+
export * from './speed-dial';
68
export * from '@syncfusion/ej2-buttons';
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
export * from './items-directive';
2+
export * from './speeddial.component';
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
import { ComplexBase } from '@syncfusion/ej2-react-base';
2+
import { SpeedDialItemModel } from '@syncfusion/ej2-buttons';
3+
4+
5+
/**
6+
* `SpeedDialItemDirective` represent a item of the React SpeedDial.
7+
* It must be contained in a SpeedDial component(`SpeedDialComponent`).
8+
* ```tsx
9+
* <SpeedDialComponent>
10+
* <SpeedDialItemsDirective>
11+
* <SpeedDialItemDirective text='Cut'></SpeedDialItemDirective>
12+
* <SpeedDialItemDirective text='Copy'></SpeedDialItemDirective>
13+
* <SpeedDialItemsDirective>
14+
* </SpeedDialComponent>
15+
* ```
16+
*/
17+
export class SpeedDialItemDirective extends ComplexBase<SpeedDialItemModel & { children?: React.ReactNode }, SpeedDialItemModel> {
18+
public static moduleName: string = 'speedDialItem';
19+
}
20+
21+
export class SpeedDialItemsDirective extends ComplexBase<{}, {}> {
22+
public static propertyName: string = 'items';
23+
public static moduleName: string = 'speedDialItems';
24+
}

0 commit comments

Comments
 (0)