Skip to content

Commit 029f5c9

Browse files
committed
feat: support Angular 14
1 parent 7ec509f commit 029f5c9

File tree

8 files changed

+3628
-3316
lines changed

8 files changed

+3628
-3316
lines changed

.eslintrc.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,17 @@
2323
"@typescript-eslint/dot-notation": "off",
2424
"@angular-eslint/no-host-metadata-property": "off",
2525
"@typescript-eslint/member-delimiter-style": "off",
26+
"@typescript-eslint/naming-convention": [
27+
"error",
28+
{
29+
"selector": "property",
30+
"format": ["camelCase"],
31+
"filter": {
32+
"regex": "^(\\[attr\\.|\\[class\\.|\\[style\\.)",
33+
"match": false
34+
}
35+
}
36+
],
2637
"@angular-eslint/no-output-on-prefix": "off",
2738
"@typescript-eslint/explicit-member-accessibility": [
2839
"off",

angular.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
33
"version": 1,
44
"newProjectRoot": "src",
5-
"defaultProject": "demo",
65
"projects": {
76
"demo": {
87
"projectType": "application",
@@ -116,8 +115,5 @@
116115
}
117116
}
118117
}
119-
},
120-
"cli": {
121-
"defaultCollection": "@angular-eslint/schematics"
122118
}
123119
}

package.json

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "angular-svg-round-progressbar",
3-
"version": "8.0.0",
3+
"version": "9.0.0",
44
"description": "Angular module that uses SVG to create a circular progressbar",
55
"scripts": {
66
"ng": "ng",
@@ -30,37 +30,37 @@
3030
},
3131
"homepage": "https://github.com/crisbeto/angular-svg-round-progressbar",
3232
"peerDependencies": {
33-
"@angular/common": "^13.0.0",
34-
"@angular/core": "^13.0.0"
33+
"@angular/common": "^14.0.0",
34+
"@angular/core": "^14.0.0"
3535
},
3636
"devDependencies": {
37-
"@angular-devkit/architect": "^0.1300.2",
38-
"@angular-devkit/build-angular": "~13.0.2",
39-
"@angular-eslint/builder": "~12.6.1",
40-
"@angular-eslint/eslint-plugin": "~12.6.1",
41-
"@angular-eslint/eslint-plugin-template": "~12.6.1",
42-
"@angular-eslint/schematics": "~12.6.1",
43-
"@angular-eslint/template-parser": "~12.6.1",
44-
"@angular/cli": "~13.0.2",
45-
"@angular/common": "~13.0.1",
46-
"@angular/compiler": "~13.0.1",
47-
"@angular/compiler-cli": "~13.0.1",
48-
"@angular/core": "~13.0.1",
49-
"@angular/forms": "~13.0.1",
50-
"@angular/platform-browser": "~13.0.1",
51-
"@angular/platform-browser-dynamic": "~13.0.1",
52-
"@typescript-eslint/eslint-plugin": "~4.33.0",
53-
"@typescript-eslint/parser": "~4.33.0",
54-
"angular-cli-ghpages": "^1.0.0-rc.2",
55-
"eslint": "^7.32.0",
37+
"@angular-devkit/architect": "^0.1400.0",
38+
"@angular-devkit/build-angular": "^14.0.0",
39+
"@angular-eslint/builder": "~13.2.0",
40+
"@angular-eslint/eslint-plugin": "~13.2.0",
41+
"@angular-eslint/eslint-plugin-template": "~13.2.0",
42+
"@angular-eslint/template-parser": "~13.2.0",
43+
"@angular/cli": "^14.0.0",
44+
"@angular/common": "^14.0.0",
45+
"@angular/compiler": "^14.0.0",
46+
"@angular/compiler-cli": "^14.0.0",
47+
"@angular/core": "^14.0.0",
48+
"@angular/forms": "^14.0.0",
49+
"@angular/platform-browser": "^14.0.0",
50+
"@angular/platform-browser-dynamic": "^14.0.0",
51+
"@typescript-eslint/eslint-plugin": "~5.27.0",
52+
"@typescript-eslint/parser": "~5.27.0",
53+
"angular-cli-ghpages": "^1.0.0",
54+
"eslint": "^8.17.0",
5655
"eslint-plugin-ban": "^1.5.2",
5756
"eslint-plugin-import": "^2.25.2",
5857
"eslint-plugin-jsdoc": "^31.1.0",
5958
"eslint-plugin-prefer-arrow": "^1.2.3",
60-
"ng-packagr": "~13.0.3",
59+
"ng-packagr": "^14.0.0",
6160
"rxjs": "~6.6.3",
6261
"tslib": "^2.3.0",
63-
"typescript": "~4.4.2",
62+
"typescript": "~4.7.3",
6463
"zone.js": "~0.11.4"
65-
}
64+
},
65+
"dependencies": {}
6666
}

src/demo/app/demo.component.ts

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,20 @@ import {Component} from '@angular/core';
66
styleUrls: ['./demo.component.css'],
77
})
88
export class DemoComponent {
9-
current: number = 27;
10-
max: number = 50;
11-
stroke: number = 15;
12-
radius: number = 125;
13-
semicircle: boolean = false;
14-
rounded: boolean = false;
15-
responsive: boolean = false;
16-
clockwise: boolean = true;
17-
color: string = '#45ccce';
18-
background: string = '#eaeaea';
19-
duration: number = 800;
20-
animation: string = 'easeOutCubic';
21-
animationDelay: number = 0;
22-
animations: Array<string> = [
9+
current = 27;
10+
max = 50;
11+
stroke = 15;
12+
radius = 125;
13+
semicircle = false;
14+
rounded = false;
15+
responsive = false;
16+
clockwise = true;
17+
color = '#45ccce';
18+
background = '#eaeaea';
19+
duration = 800;
20+
animation = 'easeOutCubic';
21+
animationDelay = 0;
22+
animations = [
2323
'linearEase',
2424
'easeInQuad',
2525
'easeOutQuad',
@@ -52,8 +52,8 @@ export class DemoComponent {
5252
'easeOutBounce',
5353
'easeInOutBounce',
5454
];
55-
gradient: boolean = false;
56-
realCurrent: number = 0;
55+
gradient = false;
56+
realCurrent = 0;
5757

5858
increment(amount = 1) {
5959
this.current += amount;
@@ -68,7 +68,7 @@ export class DemoComponent {
6868
bottom: isSemi ? '5%' : 'auto',
6969
left: '50%',
7070
transform,
71-
'font-size': this.radius / 3.5 + 'px',
71+
fontSize: this.radius / 3.5 + 'px',
7272
};
7373
}
7474
}

src/lib/round-progress/round-progress.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import {RoundProgressEase} from './round-progress.ease';
2222
templateUrl: './round-progress.component.html',
2323
styleUrls: ['./round-progress.component.css'],
2424
host: {
25-
role: 'progressbar',
25+
'role': 'progressbar',
2626
'[attr.aria-valuemin]': '0',
2727
'[attr.aria-valuemax]': 'max',
2828
'[attr.aria-valuenow]': 'current',

src/lib/tsconfig.lib.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"compilerOptions": {
44
"outDir": "../../../out-tsc/lib",
55
"declarationMap": true,
6-
"target": "es2015",
6+
"target": "es2020",
77
"declaration": true,
88
"inlineSources": true,
99
"types": [],

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"module": "es2020",
1111
"moduleResolution": "node",
1212
"importHelpers": true,
13-
"target": "es2015",
13+
"target": "es2020",
1414
"lib": ["es2018", "dom"],
1515
"paths": {
1616
"angular-svg-round-progressbar": ["./src/lib/public-api.ts"]

0 commit comments

Comments
 (0)