Skip to content

Commit b81e67e

Browse files
author
pipeline
committed
v20.4.38 is released
1 parent 05b149a commit b81e67e

File tree

1,093 files changed

+57808
-4958
lines changed

Some content is hidden

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

1,093 files changed

+57808
-4958
lines changed

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ej2-angular-samples",
3-
"version": "20.3.56",
3+
"version": "20.4.38",
44
"private": true,
55
"dependencies": {
66
"@angular/animations": "~10.0.0",
@@ -113,7 +113,8 @@
113113
"webpack": "^4.16.1",
114114
"webpack-cli": "*",
115115
"webpack-stream": "^5.0.0",
116-
"zone.js": "~0.10.3"
116+
"zone.js": "~0.10.3",
117+
"os": "^0.1.1"
117118
},
118119
"devDependencies": {
119120
"@angular-devkit/build-angular": "~0.1000.0",

sampleOrder.json

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,15 @@
233233
"chips-api": "API"
234234
}
235235
},
236+
"arc-gauge":{
237+
"ControlName": "Arc Gauge",
238+
"Samples": {
239+
"default": "Default Functionalities",
240+
"customer-satisfaction-score": "Customer Satisfaction Score",
241+
"key-performance-indicator": "Key Performance Indicator",
242+
"patterns": "Patterns"
243+
}
244+
},
236245
"circular-gauge": {
237246
"ControlName": "Circular Gauge",
238247
"Samples": {
@@ -838,6 +847,17 @@
838847
"rtl": "RTL"
839848
}
840849
},
850+
"rating": {
851+
"ControlName": "Rating",
852+
"Samples": {
853+
"default":"Default Functionalities",
854+
"precision": "Precision",
855+
"tooltip": "Tooltip",
856+
"label": "Label",
857+
"template": "Template",
858+
"keyboard-navigation": "Keyboard Navigations"
859+
}
860+
},
841861
"rich-text-editor": {
842862
"ControlName": "Rich Text Editor",
843863
"Samples": {
@@ -1091,7 +1111,9 @@
10911111
"Samples": {
10921112
"default": "Default Functionalities",
10931113
"popup": "Popup",
1094-
"alignment": "Alignment"
1114+
"alignment": "Alignment",
1115+
"template": "Template",
1116+
"keyboard-interaction": "Keyboard Interaction"
10951117
}
10961118
},
10971119
"tooltip": {
@@ -1111,6 +1133,8 @@
11111133
"Samples": {
11121134
"treegrid-overview": "Overview",
11131135
"default": "Default Functionalities",
1136+
"adaptive": "Adaptive",
1137+
"loading-animation": "Loading Animation",
11141138
"localdata": "Local Data",
11151139
"remotedata": "Remote Data",
11161140
"selfreference": "Self Reference",

src/app/accordion/default-stackb.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

src/app/accordion/icon-stackb.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

src/app/accordion/keyboard-interaction-stackb.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

src/app/appbar/color-stackb.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

src/app/appbar/default-stackb.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

src/app/arc-gauge/arc-gauge.module.ts

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
/**
2+
* Arc Gauge Control
3+
*/
4+
import { NgModule, ModuleWithProviders, Type } from '@angular/core';
5+
import { RouterModule } from '@angular/router';
6+
import { CircularGaugeAllModule } from '@syncfusion/ej2-angular-circulargauge';
7+
import { GridModule } from '@syncfusion/ej2-angular-grids';
8+
import { DefaultComponent } from './default.component';
9+
import { CustomerSatisfactionComponent } from './customer-satisfaction-score.component';
10+
import { KeyPerformanceComponent } from './key-performance-indicator.component';
11+
import { PatternsComponent } from './patterns.component';
12+
import { ButtonModule, CheckBoxModule } from '@syncfusion/ej2-angular-buttons';
13+
14+
export const arcgaugeAppRoutes: Object[] = [
15+
{ path: ':theme/arc-gauge/default', component: DefaultComponent, type: 'new', name: 'Default Functionalities', order: '01', category: 'Arc Gauge', description: 'This Essential JS2 Arc Gauge demo shows the gauges basic rendering.'},
16+
{ path: ':theme/arc-gauge/customer-satisfaction-score', component: CustomerSatisfactionComponent, type: 'new', name: 'Customer Satisfaction Score', order: '01', category: 'Arc Gauge', description: 'This Essential JS2 Arc Gauge demo shows how the gauge can be customized to represent a customer satisfaction score scenario.'},
17+
{ path: ':theme/arc-gauge/key-performance-indicator', component: KeyPerformanceComponent, type: 'new', name: 'Key Performance Indicator', order: '01', category: 'Arc Gauge', description: 'This Essential JS2 Arc Gauge demo shows how the gauge can be customized to represent a key performance indicator scenario.'},
18+
{ path: ':theme/arc-gauge/patterns', component: PatternsComponent, type: 'new', name: 'Patterns', order: '01', category: 'Arc Gauge', description: 'This Essential JS2 Arc Gauge demo shows how the gauge can be rendered in many ways to demonstrate different user interfaces by customizing its axis, range, pointer, etc.'}
19+
];
20+
21+
export const arcRouter: ModuleWithProviders<any> = RouterModule.forChild(arcgaugeAppRoutes);
22+
23+
let declarations: Type<Object>[] = [DefaultComponent, CustomerSatisfactionComponent, KeyPerformanceComponent, PatternsComponent];
24+
25+
@NgModule({
26+
imports: [arcRouter, CircularGaugeAllModule, GridModule, ButtonModule, CheckBoxModule],
27+
exports: [],
28+
declarations: declarations,
29+
providers: [CircularGaugeAllModule]
30+
})
31+
export class ArcGaugeSampleModule {
32+
}

src/app/arc-gauge/customer-satisfaction-score-stackb.json

Lines changed: 1 addition & 0 deletions
Large diffs are not rendered by default.
Lines changed: 101 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,101 @@
1+
/**
2+
* Sample for Circular Gauge default functionalities
3+
*/
4+
import { Component, ViewEncapsulation } from '@angular/core';
5+
import { ILoadedEventArgs, GaugeTheme, Legend } from '@syncfusion/ej2-angular-circulargauge';
6+
7+
@Component({
8+
selector: 'control-content',
9+
templateUrl: 'customer-satisfaction-score.html',
10+
encapsulation: ViewEncapsulation.None
11+
})
12+
13+
export class CustomerSatisfactionComponent {
14+
15+
public height: string = "400px";
16+
public allowMargin: boolean = false;
17+
public pointerWidth: number = 5;
18+
public needleEndWidth: number = 2;
19+
20+
public titleStyle: Object = {
21+
fontFamily: 'inherit',
22+
size: '18px'
23+
};
24+
25+
public animation: Object = {
26+
enable: false
27+
};
28+
29+
public legendSettings: Object = {
30+
visible: true,
31+
position: 'Bottom',
32+
width:'55%',
33+
textStyle: {
34+
fontFamily: 'inherit',
35+
size: '12px'
36+
}
37+
};
38+
39+
public tooltip: Object = {
40+
enable: true,
41+
template: '<div style="font-size:18px;background:white;width:180px;color:#595959;border:1px solid #e8e8e8">Current Score: 7.5 </div>'
42+
};
43+
44+
public annotations: Object = [
45+
{
46+
content:
47+
'<div style="font-size:16px;margin-top: 15px;font-family: inherit;">7.5</div>',
48+
angle: 0,
49+
zIndex: '1',
50+
radius: '-10%',
51+
}
52+
];
53+
54+
public majorTicks: Object = {
55+
height: 12,
56+
width: 1.5,
57+
interval: 2.0,
58+
offset: 35
59+
};
60+
61+
public minorTicks: Object = {
62+
height: 0
63+
};
64+
65+
public lineStyle: Object = {
66+
width: 0
67+
};
68+
69+
public labelStyle: Object = {
70+
font: {
71+
size: '12px',
72+
fontFamily: 'inherit'
73+
},
74+
position: 'Outside',
75+
offset: -40,
76+
};
77+
78+
public cap: Object = {
79+
radius: 8,
80+
border: { width: 2 },
81+
};
82+
83+
public load(args: ILoadedEventArgs): void {
84+
// custom code start
85+
let selectedTheme: string = location.hash.split('/')[1];
86+
selectedTheme = selectedTheme ? selectedTheme : 'Material';
87+
args.gauge.theme = <GaugeTheme>(selectedTheme.charAt(0).toUpperCase() +
88+
selectedTheme.slice(1)).replace(/-dark/i, 'Dark').replace(/contrast/i, 'Contrast');
89+
if (selectedTheme.indexOf('dark') > -1 || selectedTheme.indexOf('contrast') > -1) {
90+
args.gauge.axes[0].annotations[0].content = '<div style="font-size:16px;font-family:inherit;margin-top:15px;color:white">7.5</div>';
91+
}
92+
else {
93+
args.gauge.axes[0].annotations[0].content = '<div style="font-size:16px;font-family:inherit;margin-top:15px;color:black">7.5</div>';
94+
}
95+
// custom code end
96+
}
97+
98+
constructor() {
99+
// code
100+
};
101+
}

0 commit comments

Comments
 (0)