Skip to content

Commit e83b62b

Browse files
author
pipeline
committed
v21.1.35 is released
1 parent 0ece6ab commit e83b62b

File tree

426 files changed

+14783
-67700
lines changed

Some content is hidden

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

426 files changed

+14783
-67700
lines changed

config.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@
128128
"appbar",
129129
"checkbox",
130130
"dropdown",
131-
"dropdown-button"
131+
"dropdown-button",
132+
null
132133
]
133134
}

index.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
<meta http-equiv="X-UA-Compatible" content="IE=edge">
2020
<meta name="description" content="Explore and learn Syncfusion React UI components library using large collection of feature-wise examples for each components.">
2121
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
22+
<meta name="referrer" content="never"/>
2223
<title>Demos, Examples of Syncfusion React UI Components</title>
2324
<link rel="manifest" href="./manifest.webmanifest">
2425
<link href="src/common/lib/content/roboto.css" rel="stylesheet">
@@ -346,7 +347,7 @@ <h1 class='sb-sample-text' role="heading" aria-level="1"></h1>
346347
<div class="content-area">
347348
<div class="ad-cnt-pt">
348349
<div class="ad-cnt-icon click-icon sb-icons sb-icon-icon-selection"></div>
349-
<div class="cnt-text">65+ high-performance and responsive UI components</div>
350+
<div class="cnt-text">80+ high-performance and responsive UI components</div>
350351
</div>
351352
<div class="ad-cnt-pt">
352353
<div class="ad-cnt-icon click-icon sb-icons sb-icon-icon-selection"></div>

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
{
22
"name": "@syncfusion/ej2-react-samples",
3-
"version": "20.4.38",
3+
"version": "21.1.35",
44
"description": "Examples of React UI Components",
55
"author": "Syncfusion Inc.",
66
"license": "SEE LICENSE IN license",
77
"dependencies": {
88
"@syncfusion/ej2": "*",
9+
"@syncfusion/ej2-data": "*",
910
"@syncfusion/ej2-react-base": "*",
1011
"@syncfusion/ej2-react-buttons": "*",
1112
"@syncfusion/ej2-react-calendars": "*",
@@ -29,6 +30,7 @@
2930
"@syncfusion/ej2-react-inplace-editor": "*",
3031
"@syncfusion/ej2-react-treegrid": "*",
3132
"@syncfusion/ej2-react-popups": "*",
33+
"@syncfusion/ej2-react-ribbon": "*",
3234
"@syncfusion/ej2-react-schedule": "*",
3335
"@syncfusion/ej2-react-splitbuttons": "*",
3436
"@syncfusion/ej2-react-documenteditor": "*",

sampleName.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -866,6 +866,14 @@
866866
"keyboard-navigation": "Keyboard Navigations"
867867
}
868868
},
869+
"ribbon": {
870+
"ControlName": "Ribbon",
871+
"Samples": {
872+
"default":"Default Functionalities",
873+
"simplified": "Simplified Mode",
874+
"resize": "Ribbon Resizing"
875+
}
876+
},
869877
"rich-text-editor": {
870878
"ControlName": "Rich Text Editor",
871879
"Samples": {

src/accordion/keyboard-interaction-functional.tsx

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,20 @@ import { AccordionComponent, AccordionItemDirective, AccordionItemsDirective } f
44
import { updateSampleSection } from '../common/sample-base';
55

66
function KeyboardInteraction() {
7+
let accObj = React.useRef(null);
8+
79
React.useEffect(() => {
810
updateSampleSection();
9-
}, [])
11+
const handleKeyDown = (e) => {
12+
if (e.altKey && e.keyCode === 74 && accObj.current) {
13+
accObj.current.select(0);
14+
}
15+
};
16+
document.body.addEventListener('keydown', handleKeyDown);
17+
return () => {
18+
document.body.removeEventListener('keydown', handleKeyDown);
19+
};
20+
}, []);
1021

1122
function acrdnheader1() {
1223
return (
@@ -50,12 +61,13 @@ function KeyboardInteraction() {
5061
</div>
5162
);
5263
}
64+
5365
return (
5466
<div className='control-pane'>
5567
<div className='control-section accordion-control-section'>
5668
<div className='control Accordion-sample' style={{ margin: '25px 0' }}>
5769
{/* Render the Accoridon Component */}
58-
<AccordionComponent>
70+
<AccordionComponent ref={accObj}>
5971
<AccordionItemsDirective>
6072
<AccordionItemDirective header={acrdnheader1} expanded={true} content={acrdnContent1} />
6173
<AccordionItemDirective header={acrdnheader2} content={acrdnContent2} />

src/accordion/keyboard-interaction.tsx

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,20 @@ import { SampleBase } from '../common/sample-base';
55

66
export class KeyboardInteraction extends SampleBase<{}, {}> {
77

8+
private acrdnObj: AccordionComponent;
9+
10+
public handleKeydown(e): void {
11+
if (e.altKey && e.keyCode === 74 && this.acrdnObj) {
12+
this.acrdnObj.select(0);
13+
}
14+
}
15+
componentDidMount() {
16+
document.body.addEventListener('keydown', this.handleKeydown.bind(this));
17+
}
18+
19+
componentWillUnmount() {
20+
document.body.removeEventListener('keydown', this.handleKeydown.bind(this));
21+
}
822
render() {
923
function acrdnheader1() {
1024
return (
@@ -48,12 +62,13 @@ export class KeyboardInteraction extends SampleBase<{}, {}> {
4862
</div>
4963
);
5064
}
65+
5166
return (
5267
<div className='control-pane'>
5368
<div className='control-section accordion-control-section'>
5469
<div className='control Accordion-sample' style={{ margin: '25px 0' }}>
5570
{/* Render the Accoridon Component */}
56-
<AccordionComponent>
71+
<AccordionComponent ref={accordion => this.acrdnObj = accordion}>
5772
<AccordionItemsDirective>
5873
<AccordionItemDirective header={acrdnheader1} expanded={true} content={acrdnContent1} />
5974
<AccordionItemDirective header={acrdnheader2} content={acrdnContent2} />

src/arc-gauge/config.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
export const ArcGaugeSampleOrder:Object = [
2-
{ 'path': 'arc-gauge/default-functionalities', 'component':'Default', 'name': 'Default Functionalities', 'type' : 'new', 'description':'This demo for Essential JS2 Circular Gauge control illustrates the default rendering of circular gauge.', 'order': '01', 'category': 'Arc Gauge' },
3-
{ 'path': 'arc-gauge/customer-satisfaction-score', 'component':'CustomerSatisfactionScore', 'name': 'Customer Satisfaction Score', 'type' : 'new', 'description':'This demo for Essential JS2 Circular Gauge control shows various properties available to customize the ticks and labels of an axis.', 'order': '01', 'category': 'Arc Gauge' },
4-
{ 'path': 'arc-gauge/key-performance-indicator', 'component':'KeyPerformanceIndicator', 'name': 'Key Performance Indicator', 'type' : 'new', 'description':'This demo for Essential JS2 Circular Gauge control visualizes the circular gauge with multiple axes.', 'order': '01', 'category': 'Arc Gauge' },
5-
{ 'path': 'arc-gauge/patterns', 'component':'Patterns', 'name': 'Patterns', 'type' : 'new', 'description':'This demo for Essential JS2 Circular Gauge control illustrates to position the customer labels in a circular gauge.', 'order': '01', 'category': 'Arc Gauge' }
2+
{ 'path': 'arc-gauge/default-functionalities', 'component':'Default', 'name': 'Default Functionalities', 'description':'This demo for Essential JS2 Circular Gauge control illustrates the default rendering of circular gauge.', 'order': '01', 'category': 'Arc Gauge' },
3+
{ 'path': 'arc-gauge/customer-satisfaction-score', 'component':'CustomerSatisfactionScore', 'name': 'Customer Satisfaction Score', 'description':'This demo for Essential JS2 Circular Gauge control shows various properties available to customize the ticks and labels of an axis.', 'order': '01', 'category': 'Arc Gauge' },
4+
{ 'path': 'arc-gauge/key-performance-indicator', 'component':'KeyPerformanceIndicator', 'name': 'Key Performance Indicator', 'description':'This demo for Essential JS2 Circular Gauge control visualizes the circular gauge with multiple axes.', 'order': '01', 'category': 'Arc Gauge' },
5+
{ 'path': 'arc-gauge/patterns', 'component':'Patterns', 'name': 'Patterns', 'description':'This demo for Essential JS2 Circular Gauge control illustrates to position the customer labels in a circular gauge.', 'order': '01', 'category': 'Arc Gauge' }
66
]

src/arc-gauge/customer-satisfaction-score-functional.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ function CustomerSatisfactionScore() {
3333
<style>
3434
{SAMPLE_CSS}
3535
</style>
36-
<div className='control-section' style={{ display: 'flex', justifyContent: 'center' }}>
36+
<div className='control-section'>
3737
<CircularGaugeComponent load={load.bind(this)} id="gauge" background="transparent" height="400px" allowMargin={false} title="Customer Satisfaction Score" titleStyle={{ size: '18px', fontFamily: 'inherit' }}
3838
tooltip={{ enable: true, template: '<div style="font-size:18px;background:white;width:150px;color:#595959;border:1px solid #e8e8e8">Current Score: 7.5 </div>' }}
3939
legendSettings={{ visible: true, position: 'Bottom', width: "70%", textStyle: { fontFamily: 'inherit', size: '12px' }, }} >

src/arc-gauge/customer-satisfaction-score.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
<style>
3232
{SAMPLE_CSS}
3333
</style>
34-
<div className='control-section' style={{ display: 'flex', justifyContent: 'center' }}>
34+
<div className='control-section'>
3535
<CircularGaugeComponent load={this.load.bind(this)} id="gauge" background="transparent" height="400px" allowMargin={false} title="Customer Satisfaction Score" titleStyle={{ size: '18px', fontFamily: 'inherit' }}
3636
tooltip={{ enable: true, template: '<div style="font-size:18px;background:white;width:150px;color:#595959;border:1px solid #e8e8e8">Current Score: 7.5 </div>' }}
3737
legendSettings={{ visible: true, position: 'Bottom', width: "70%", textStyle: { fontFamily: 'inherit', size: '12px' }, }} >

src/arc-gauge/default-functionalities-functional.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ function Default() {
5656
<style>
5757
{SAMPLE_CSS}
5858
</style>
59-
<div className='control-section' style={{ display: 'flex', justifyContent: 'center' }}>
59+
<div className='control-section'>
6060
<CircularGaugeComponent load={load.bind(this)} id="gauge" background="transparent" height="500px" title="Female (% usage) on popular social network" titleStyle={{ size: '18px', fontFamily: 'inherit' }} >
6161
<Inject services={[Annotations]} />
6262
<AxesDirective>
@@ -78,15 +78,15 @@ function Default() {
7878
</PointersDirective>
7979
<RangesDirective>
8080
<RangeDirective start={0} end={68} radius="94%" color="#c8eab7" startWidth={22} endWidth={22} />
81-
<RangeDirective start={74} end={100} radius="90%" color="#7a7f82" startWidth={1} endWidth={1} />
81+
<RangeDirective start={74} end={100} radius="89%" color="#7a7f82" startWidth={1} endWidth={1} />
8282
<RangeDirective start={0} end={43} radius="80%" color="#82cdbc" startWidth={22} endWidth={22} />
83-
<RangeDirective start={49} end={100} radius="76%" color="#7a7f82" startWidth={1} endWidth={1} />
83+
<RangeDirective start={49} end={100} radius="75%" color="#7a7f82" startWidth={1} endWidth={1} />
8484
<RangeDirective start={0} end={21} radius="66%" color="#43b6c4" startWidth={22} endWidth={22} />
85-
<RangeDirective start={28} end={100} radius="63%" color="#7a7f82" startWidth={1} endWidth={1} />
85+
<RangeDirective start={28} end={100} radius="61%" color="#7a7f82" startWidth={1} endWidth={1} />
8686
<RangeDirective start={0} end={75} radius="52%" color="#1d91bf" startWidth={22} endWidth={22} />
87-
<RangeDirective start={85} end={100} radius="49%" color="#7a7f82" startWidth={1} endWidth={1} />
87+
<RangeDirective start={85} end={100} radius="47%" color="#7a7f82" startWidth={1} endWidth={1} />
8888
<RangeDirective start={0} end={44} radius="38%" color="#205ea8" startWidth={22} endWidth={22} />
89-
<RangeDirective start={55} end={100} radius="35%" color="#7a7f82" startWidth={1} endWidth={1} />
89+
<RangeDirective start={55} end={100} radius="34%" color="#7a7f82" startWidth={1} endWidth={1} />
9090
</RangesDirective>
9191
</AxisDirective>
9292
</AxesDirective>

0 commit comments

Comments
 (0)