Skip to content

Commit 04c494e

Browse files
committed
Angular 8 upgraded
1 parent 3910565 commit 04c494e

File tree

8 files changed

+5877
-3555
lines changed

8 files changed

+5877
-3555
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
[![contributions welcome](https://img.shields.io/badge/contributions-welcome-brightgreen.svg?style=flat)](https://github.com/ashish-chopra/ngx-gauge/issues)
77

88

9-
A highly customizable Gauge component for **Angular 6 and 7+** apps and dashboards. It provides many configurationable options to customize according to your needs. Checkout the live demo [here](https://ashish-chopra.github.io/ngx-gauge).
9+
A highly customizable Gauge component for **Angular 6+** apps and dashboards. It provides many configurationable options to customize according to your needs. Checkout the live demo [here](https://ashish-chopra.github.io/ngx-gauge).
1010

1111
![alt text](https://raw.githubusercontent.com/ashish-chopra/angular-gauge/master/examples/examples.png)
1212

src/browserslist browserslist

File renamed without changes.

package-lock.json

+5,842-3,521
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+19-19
Original file line numberDiff line numberDiff line change
@@ -14,42 +14,42 @@
1414
},
1515
"private": true,
1616
"dependencies": {
17-
"@angular/animations": "~7.1.0",
18-
"@angular/common": "~7.1.0",
19-
"@angular/compiler": "~7.1.0",
20-
"@angular/core": "~7.1.0",
21-
"@angular/forms": "~7.1.0",
22-
"@angular/platform-browser": "~7.1.0",
23-
"@angular/platform-browser-dynamic": "~7.1.0",
24-
"@angular/router": "~7.1.0",
17+
"@angular/animations": "~8.2.3",
18+
"@angular/common": "~8.2.3",
19+
"@angular/compiler": "~8.2.3",
20+
"@angular/core": "~8.2.3",
21+
"@angular/forms": "~8.2.3",
22+
"@angular/platform-browser": "~8.2.3",
23+
"@angular/platform-browser-dynamic": "~8.2.3",
24+
"@angular/router": "~8.2.3",
2525
"core-js": "^2.5.4",
26-
"rxjs": "~6.3.3",
26+
"rxjs": "~6.5.2",
2727
"tslib": "^1.9.0",
28-
"zone.js": "~0.8.26"
28+
"zone.js": "~0.9.1"
2929
},
3030
"devDependencies": {
31-
"@angular-devkit/build-angular": "~0.11.0",
32-
"@angular-devkit/build-ng-packagr": "~0.11.0",
33-
"@angular/cli": "~7.1.3",
34-
"@angular/compiler-cli": "~7.1.0",
35-
"@angular/language-service": "~7.1.0",
31+
"@angular-devkit/build-angular": "~0.803.0",
32+
"@angular-devkit/build-ng-packagr": "~0.803.0",
33+
"@angular/cli": "~8.3.0",
34+
"@angular/compiler-cli": "~8.2.3",
35+
"@angular/language-service": "~8.2.3",
3636
"@types/node": "~8.9.4",
3737
"@types/jasmine": "~2.8.8",
3838
"@types/jasminewd2": "~2.0.3",
39-
"codelyzer": "~4.5.0",
39+
"codelyzer": "^5.0.1",
4040
"jasmine-core": "~2.99.1",
4141
"jasmine-spec-reporter": "~4.2.1",
4242
"karma": "~3.1.1",
4343
"karma-chrome-launcher": "~2.2.0",
4444
"karma-coverage-istanbul-reporter": "~2.0.1",
4545
"karma-jasmine": "~1.1.2",
4646
"karma-jasmine-html-reporter": "^0.2.2",
47-
"ng-packagr": "^4.2.0",
47+
"ng-packagr": "^5.4.0",
4848
"protractor": "~5.4.0",
4949
"ts-node": "~7.0.0",
50-
"tsickle": ">=0.29.0",
50+
"tsickle": "^0.36.0",
5151
"tslib": "^1.9.0",
5252
"tslint": "~5.11.0",
53-
"typescript": "~3.1.6"
53+
"typescript": "~3.5.3"
5454
}
5555
}

projects/ngx-gauge/package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
{
22
"name": "ngx-gauge",
3-
"version": "1.0.0-beta.10",
3+
"version": "1.0.0-beta.11",
44
"description": "A highly customizable Gauge Component for Angular 4+ apps and dashboards",
55
"repository": {
66
"type": "git",
77
"url": "git+https://github.com/ashish-chopra/ngx-gauge.git"
88
},
99
"peerDependencies": {
10-
"@angular/common": "^7.1.0",
11-
"@angular/core": "^7.1.0"
10+
"@angular/common": "^8.0.0",
11+
"@angular/core": "^8.0.0"
1212
},
1313
"keywords": [
1414
"angular",

projects/ngx-gauge/src/gauge/gauge.ts

+5-5
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,12 @@ export type NgxGaugeCap = 'round' | 'butt';
5454
})
5555
export class NgxGauge implements AfterViewInit, OnChanges, OnDestroy {
5656

57-
@ViewChild('canvas') _canvas: ElementRef;
57+
@ViewChild('canvas', { static: true }) _canvas: ElementRef;
5858

59-
@ContentChild(NgxGaugeLabel) _labelChild: NgxGaugeLabel;
60-
@ContentChild(NgxGaugePrepend) _prependChild: NgxGaugePrepend;
61-
@ContentChild(NgxGaugeAppend) _appendChild: NgxGaugeAppend;
62-
@ContentChild(NgxGaugeValue) _valueDisplayChild: NgxGaugeValue;
59+
@ContentChild(NgxGaugeLabel, {static: false}) _labelChild: NgxGaugeLabel;
60+
@ContentChild(NgxGaugePrepend, {static: false}) _prependChild: NgxGaugePrepend;
61+
@ContentChild(NgxGaugeAppend, {static: false}) _appendChild: NgxGaugeAppend;
62+
@ContentChild(NgxGaugeValue, {static: false}) _valueDisplayChild: NgxGaugeValue;
6363

6464
private _size: number = DEFAULTS.SIZE;
6565
private _min: number = DEFAULTS.MIN;

tsconfig.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,16 @@
22
"compileOnSave": false,
33
"compilerOptions": {
44
"baseUrl": "./",
5+
"downlevelIteration": true,
56
"outDir": "./dist/out-tsc",
67
"sourceMap": true,
78
"declaration": false,
8-
"module": "es2015",
9+
"module": "esnext",
910
"moduleResolution": "node",
1011
"emitDecoratorMetadata": true,
1112
"experimentalDecorators": true,
1213
"importHelpers": true,
13-
"target": "es5",
14+
"target": "es2015",
1415
"typeRoots": [
1516
"node_modules/@types"
1617
],

tslint.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -118,12 +118,12 @@
118118
"check-type"
119119
],
120120
"no-output-on-prefix": true,
121-
"use-input-property-decorator": true,
122-
"use-output-property-decorator": true,
123-
"use-host-property-decorator": true,
121+
"no-inputs-metadata-property": true,
122+
"no-outputs-metadata-property": true,
123+
"no-host-metadata-property": true,
124124
"no-input-rename": true,
125125
"no-output-rename": true,
126-
"use-life-cycle-interface": true,
126+
"use-lifecycle-interface": true,
127127
"use-pipe-transform-interface": true,
128128
"component-class-suffix": true,
129129
"directive-class-suffix": true

0 commit comments

Comments
 (0)