Skip to content

Commit 7e256b1

Browse files
author
pipeline
committed
v20.2.36 is released
1 parent dd3779d commit 7e256b1

File tree

151 files changed

+4692
-2266
lines changed

Some content is hidden

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

151 files changed

+4692
-2266
lines changed

config.json

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -150,8 +150,17 @@
150150
"binding",
151151
"insert-emoticons",
152152
"online-html-editor",
153-
"form-validator",
154-
"signature",
155-
"multiline-textbox"
153+
"uml-class-diagram",
154+
"uml-activity",
155+
"tooltip-Sample",
156+
"complexShapes",
157+
"uml",
158+
"activity",
159+
"Sample",
160+
"area",
161+
"stock",
162+
"ohlc",
163+
"common",
164+
"RTL"
156165
]
157166
}

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-samples",
3-
"version": "20.1.47",
3+
"version": "20.2.36",
44
"description": "Samples for Syncfusion Essential JS 2",
55
"author": "Syncfusion Inc.",
66
"license": "SEE LICENSE IN license",

src/avatar/card.html

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,9 @@
8181

8282
.tailwind .e-custom-card .e-avatar,
8383
.bootstrap5 .e-custom-card .e-avatar,
84-
.bootstrap5-dark .e-custom-card .e-avatar {
84+
.bootstrap5-dark .e-custom-card .e-avatar,
85+
.fluent .e-custom-card .e-avatar,
86+
.fluent-dark .e-custom-card .e-avatar {
8587
height: 3em;
8688
width: 3em;
8789
}
@@ -137,7 +139,8 @@
137139
.tailwind-dark .e-custom-card.e-card .avatar-content,
138140
.material-dark .e-custom-card.e-card .avatar-content,
139141
.fabric-dark .e-custom-card.e-card .avatar-content,
140-
.bootstrap5-dark .e-custom-card.e-card .avatar-content {
142+
.bootstrap5-dark .e-custom-card.e-card .avatar-content,
143+
.fluent-dark .e-custom-card.e-card .avatar-content {
141144
color: rgba(255, 255, 255, 0.84);
142145
}
143146

@@ -146,7 +149,8 @@
146149
.tailwind-dark .e-custom-card.e-card .e-card-header .e-card-header-caption .e-card-sub-title,
147150
.material-dark .e-custom-card.e-card .e-card-header .e-card-header-caption .e-card-sub-title,
148151
.fabric-dark .e-custom-card.e-card .e-card-header .e-card-header-caption .e-card-sub-title,
149-
.bootstrap5-dark .e-custom-card.e-card .e-card-header .e-card-header-caption .e-card-sub-title {
152+
.bootstrap5-dark .e-custom-card.e-card .e-card-header .e-card-header-caption .e-card-sub-title,
153+
.fluent-dark .e-custom-card.e-card .e-card-header .e-card-header-caption .e-card-sub-title {
150154
color: rgba(255, 255, 255, 0.45);
151155
}
152156

@@ -155,7 +159,8 @@
155159
.tailwind-dark .e-custom-card.e-card .e-card-header .e-card-header-caption .e-card-header-title,
156160
.material-dark .e-custom-card.e-card .e-card-header .e-card-header-caption .e-card-header-title,
157161
.fabric-dark .e-custom-card.e-card .e-card-header .e-card-header-caption .e-card-header-title,
158-
.bootstrap5-dark .e-custom-card.e-card .e-card-header .e-card-header-caption .e-card-header-title {
162+
.bootstrap5-dark .e-custom-card.e-card .e-card-header .e-card-header-caption .e-card-header-title,
163+
.fluent-dark .e-custom-card.e-card .e-card-header .e-card-header-caption .e-card-header-title {
159164
color: rgba(255, 255, 255, 0.84);
160165
}
161166

src/carousel/data-binding.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ import { Carousel } from '@syncfusion/ej2-navigations';
3232
}
3333
];
3434
const carouselObj: Carousel = new Carousel({
35+
animationEffect: 'Fade',
3536
cssClass: 'db-carousel',
3637
dataSource: productDetails,
3738
itemTemplate: '#productTemplate',

src/carousel/sample.json

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
"directory": "carousel",
44
"category": "Navigation",
55
"ftName": "carousel",
6-
"type": "preview",
76
"samples": [
87
{
98
"url": "default",
@@ -42,13 +41,11 @@
4241
"nextButtonTemplate",
4342
"indicatorsTemplate",
4443
"items",
45-
"buttonsVisibility"
44+
"buttonsVisibility",
45+
"animationEffect"
4646
],
4747
"CarouselItem": [
4848
"template"
49-
],
50-
"animation": [
51-
"effect"
5249
]
5350
},
5451
"description": "This example demonstrates the template options available in JavaScript Carousel component."

src/carousel/templates.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,7 @@ import { Button } from '@syncfusion/ej2-buttons';
1414
}
1515

1616
const carouselObj: Carousel = new Carousel({
17-
animation: {
18-
effect: 'Fade'
19-
},
17+
animationEffect: 'Fade',
2018
cssClass: 'templateCarousel',
2119
items: [
2220
{ template: '#itemTemplate1' },

src/chart/accumulation-distribution-indicator.ts

Lines changed: 84 additions & 86 deletions
Original file line numberDiff line numberDiff line change
@@ -13,92 +13,7 @@ Chart.Inject(
1313
/**
1414
* Sample for Accumulation Distribution Indicator
1515
*/
16-
this.renderChart = (chartData: Object[]): void => {
17-
let chart: Chart = new Chart({
18-
// Initializing the axes
19-
primaryXAxis: {
20-
valueType: 'DateTime',
21-
majorGridLines: { width: 0 },
22-
zoomFactor: 0.2, zoomPosition: 0.6,
23-
crosshairTooltip: { enable: true }
24-
},
25-
primaryYAxis: {
26-
title: 'Price',
27-
labelFormat: '${value}',
28-
minimum: 50, maximum: 170,
29-
plotOffset: 25,
30-
interval: 30, rowIndex: 1, opposedPosition: true, lineStyle: { width: 0 }
31-
},
32-
axes: [{
33-
name: 'secondary',
34-
opposedPosition: true, rowIndex: 0,
35-
majorGridLines: { width: 0 }, lineStyle: { width: 0 }, minimum: -7000000000, maximum: 5000000000,
36-
interval: 6000000000, majorTickLines: { width: 0 }, title: 'Accumulation Distribution',
37-
stripLines: [
38-
{
39-
start: -7000000000, end: 6000000000, text: '', color: '#6063ff', visible: true,
40-
opacity: 0.1, zIndex: 'Behind'
41-
}]
42-
}],
43-
// Initializing the rows
44-
rows: [
45-
{
46-
height: '40%'
47-
}, {
48-
height: '60%'
49-
}
50-
],
51-
// Initializing the series
52-
series: [{
53-
dataSource: chartData, width: 2,
54-
xName: 'x', yName: 'y', low: 'low', high: 'high', close: 'close', volume: 'volume', open: 'open',
55-
name: 'Apple Inc', bearFillColor: '#2ecd71', bullFillColor: '#e74c3d',
56-
type: 'Candle', animation: { enable: true }
57-
}],
58-
59-
// Initializing the indicators
60-
indicators: [{
61-
type: 'AccumulationDistribution', field: 'Close', seriesName: 'Apple Inc', yAxisName: 'secondary', fill: '#6063ff',
62-
period: 3, animation: { enable: true }
63-
}],
64-
/**
65-
* Initializing the zooming, crosshair and tooltip
66-
*/
67-
zoomSettings:
68-
{
6916

70-
enableSelectionZooming: true,
71-
enablePinchZooming: true,
72-
mode: 'XY',
73-
enablePan: true
74-
75-
},
76-
tooltip: {
77-
enable: true, shared: true
78-
},
79-
crosshair: { enable: true, lineType: 'Vertical' },
80-
// Triggered label render to convert a billion
81-
axisLabelRender: (args: IAxisLabelRenderEventArgs) => {
82-
if (args.axis.name === 'secondary') {
83-
let value: number = Number(args.text) / 1000000000;
84-
args.text = String(value) + 'bn';
85-
}
86-
},
87-
chartArea: { border: { width: 0 } },
88-
title: 'AAPL 2012-2017',
89-
width: Browser.isDevice ? '100%' : '80%',
90-
load: (args: ILoadedEventArgs) => {
91-
let selectedTheme: string = location.hash.split('/')[1];
92-
selectedTheme = selectedTheme ? selectedTheme : 'Material';
93-
args.chart.theme = <ChartTheme>(selectedTheme.charAt(0).toUpperCase() +
94-
selectedTheme.slice(1)).replace(/-dark/i, 'Dark').replace(/contrast/i, 'Contrast');
95-
},
96-
legendSettings: {
97-
visible: false
98-
}
99-
});
100-
chart.appendTo('#container');
101-
};
10217
(window as any).default = (): void => {
10318
loadCultureFiles();
10419
let chartData: Object[];
@@ -111,7 +26,90 @@ this.renderChart = (chartData: Object[]): void => {
11126
// tslint:disable-next-line:no-string-literal
11227
data['x'] = new Date(data['x']);
11328
});
114-
this.renderChart(chartData);
29+
let chart: Chart = new Chart({
30+
// Initializing the axes
31+
primaryXAxis: {
32+
valueType: 'DateTime',
33+
majorGridLines: { width: 0 },
34+
zoomFactor: 0.2, zoomPosition: 0.6,
35+
crosshairTooltip: { enable: true }
36+
},
37+
primaryYAxis: {
38+
title: 'Price',
39+
labelFormat: '${value}',
40+
minimum: 50, maximum: 170,
41+
plotOffset: 25,
42+
interval: 30, rowIndex: 1, opposedPosition: true, lineStyle: { width: 0 }
43+
},
44+
axes: [{
45+
name: 'secondary',
46+
opposedPosition: true, rowIndex: 0,
47+
majorGridLines: { width: 0 }, lineStyle: { width: 0 }, minimum: -7000000000, maximum: 5000000000,
48+
interval: 6000000000, majorTickLines: { width: 0 }, title: 'Accumulation Distribution',
49+
stripLines: [
50+
{
51+
start: -7000000000, end: 6000000000, text: '', color: '#6063ff', visible: true,
52+
opacity: 0.1, zIndex: 'Behind'
53+
}]
54+
}],
55+
// Initializing the rows
56+
rows: [
57+
{
58+
height: '40%'
59+
}, {
60+
height: '60%'
61+
}
62+
],
63+
// Initializing the series
64+
series: [{
65+
dataSource: chartData, width: 2,
66+
xName: 'x', yName: 'y', low: 'low', high: 'high', close: 'close', volume: 'volume', open: 'open',
67+
name: 'Apple Inc', bearFillColor: '#2ecd71', bullFillColor: '#e74c3d',
68+
type: 'Candle', animation: { enable: true }
69+
}],
70+
71+
// Initializing the indicators
72+
indicators: [{
73+
type: 'AccumulationDistribution', field: 'Close', seriesName: 'Apple Inc', yAxisName: 'secondary', fill: '#6063ff',
74+
period: 3, animation: { enable: true }
75+
}],
76+
/**
77+
* Initializing the zooming, crosshair and tooltip
78+
*/
79+
zoomSettings:
80+
{
81+
82+
enableSelectionZooming: true,
83+
enablePinchZooming: true,
84+
mode: 'XY',
85+
enablePan: true
86+
87+
},
88+
tooltip: {
89+
enable: true, shared: true
90+
},
91+
crosshair: { enable: true, lineType: 'Vertical' },
92+
// Triggered label render to convert a billion
93+
axisLabelRender: (args: IAxisLabelRenderEventArgs) => {
94+
if (args.axis.name === 'secondary') {
95+
let value: number = Number(args.text) / 1000000000;
96+
args.text = String(value) + 'bn';
97+
}
98+
},
99+
chartArea: { border: { width: 0 } },
100+
title: 'AAPL 2012-2017',
101+
width: Browser.isDevice ? '100%' : '80%',
102+
load: (args: ILoadedEventArgs) => {
103+
let selectedTheme: string = location.hash.split('/')[1];
104+
selectedTheme = selectedTheme ? selectedTheme : 'Material';
105+
args.chart.theme = <ChartTheme>(selectedTheme.charAt(0).toUpperCase() +
106+
selectedTheme.slice(1)).replace(/-dark/i, 'Dark').replace(/contrast/i, 'Contrast');
107+
},
108+
legendSettings: {
109+
visible: false
110+
}
111+
});
112+
chart.appendTo('#container');
115113
};
116114

117115
};

0 commit comments

Comments
 (0)