Upgrade to Angular 11

- ng update angular upgrade

- Update dependent libs:
-- ngx-charts update to 17.0.0
-- ngx-boostrap update to 9.0.2
-- angular-svg-icon update to 11.0.0
-- ng-dynamic-component update to 8.0.1

- Fix format-number pipe
-- Follow new angular 11 method signatures
This commit is contained in:
Clemente Raposo 2021-02-04 16:43:48 +00:00 committed by Dillon-Brown
parent e5032a8d51
commit 2475d517c3
4 changed files with 4160 additions and 2565 deletions

View file

@ -65,7 +65,6 @@
"optimization": true,
"outputHashing": "all",
"sourceMap": false,
"extractCss": true,
"namedChunks": false,
"aot": true,
"extractLicenses": true,

View file

@ -14,8 +14,16 @@ export class FormatNumberPipe extends DecimalPipe {
super(locale);
}
transform(value: any): string | null {
transform(value: number | string, digitsInfo?: string, locale?: string): string | null;
// eslint-disable-next-line no-dupe-class-members
transform(value: null | undefined, digitsInfo?: string, locale?: string): null;
// eslint-disable-next-line no-dupe-class-members,@typescript-eslint/no-unused-vars
transform(value: number | string | null | undefined, digitsInfo?: string, locale?: string): string | null {
return this.formatter.toUserFormat(value);
if (!value) {
return null;
}
return this.formatter.toUserFormat('' + value);
}
}

6672
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -18,24 +18,24 @@
"defaults"
],
"dependencies": {
"@angular/animations": "^10.2.3",
"@angular/animations": "^11.1.2",
"@angular/cdk": "^10.2.7",
"@angular/common": "^10.2.3",
"@angular/compiler": "^10.2.3",
"@angular/core": "^10.2.3",
"@angular/forms": "^10.2.3",
"@angular/localize": "^10.2.3",
"@angular/common": "^11.1.2",
"@angular/compiler": "^11.1.2",
"@angular/core": "^11.1.2",
"@angular/forms": "^11.1.2",
"@angular/localize": "^11.1.2",
"@angular/material": "^10.2.7",
"@angular/platform-browser": "^10.2.3",
"@angular/platform-browser-dynamic": "^10.2.3",
"@angular/router": "^10.2.3",
"@angular/platform-browser": "^11.1.2",
"@angular/platform-browser-dynamic": "^11.1.2",
"@angular/router": "^11.1.2",
"@apollo/client": "^3.3.7",
"@apollo/link-error": "^2.0.0-beta.3",
"@ng-bootstrap/ng-bootstrap": "^8.0.4",
"@swimlane/ngx-charts": "^16.0.0",
"@ng-bootstrap/ng-bootstrap": "^9.0.2",
"@swimlane/ngx-charts": "^17.0.0",
"@types/object-hash": "^1.3.4",
"ajv": "~6.9.1",
"angular-svg-icon": "^10.0.0",
"angular-svg-icon": "^11.0.0",
"apollo-angular": "^2.2.0",
"bn-ng-idle": "^1.0.1",
"bootstrap-css-only": "^4.4.1",
@ -45,7 +45,7 @@
"lodash-es": "^4.17.20",
"luxon": "^1.25.0",
"ng-animate": "^1.0.0",
"ng-dynamic-component": "^7.0.3",
"ng-dynamic-component": "^8.0.1",
"ngx-chips": "^2.2.2",
"nyc": "~14.1.1",
"object-hash": "^2.1.1",
@ -54,12 +54,12 @@
"zone.js": "~0.10.2"
},
"devDependencies": {
"@angular-devkit/build-angular": "^0.1002.0",
"@angular-devkit/build-angular": "^0.1101.2",
"@angular-eslint/builder": "0.0.1-alpha.18",
"@angular/cli": "^10.2.0",
"@angular/compiler-cli": "^10.2.3",
"@angular/language-service": "^10.2.3",
"@types/jasmine": "^3.6.3",
"@angular/cli": "^11.1.2",
"@angular/compiler-cli": "^11.1.2",
"@angular/language-service": "^11.1.2",
"@types/jasmine": "~3.6.0",
"@types/jasminewd2": "^2.0.6",
"@types/lodash-es": "^4.17.4",
"@types/luxon": "^1.25.1",
@ -74,9 +74,9 @@
"eslint-plugin-jasmine": "^4.1.2",
"eslint-plugin-jsdoc": "^21.0.0",
"eslint-plugin-prefer-arrow": "^1.2.3",
"jasmine-core": "~3.5.0",
"jasmine-core": "~3.6.0",
"jasmine-spec-reporter": "~5.0.0",
"karma": "~5.0.0",
"karma": "~5.2.3",
"karma-chrome-launcher": "~3.1.0",
"karma-cli": "^2.0.0",
"karma-coverage-istanbul-reporter": "~3.0.2",