feat: update to Angular 12 (#5868)

This commit is contained in:
Sergey Andrievskiy 2021-06-27 21:06:28 +03:00 committed by GitHub
parent 7b2be34873
commit 080830a2fd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 6814 additions and 6468 deletions

View file

@ -11,7 +11,6 @@
"build": { "build": {
"builder": "@angular-devkit/build-angular:browser", "builder": "@angular-devkit/build-angular:browser",
"options": { "options": {
"aot": true,
"preserveSymlinks": true, "preserveSymlinks": true,
"outputPath": "dist", "outputPath": "dist",
"index": "src/index.html", "index": "src/index.html",
@ -56,9 +55,14 @@
"echarts", "echarts",
"lodash", "lodash",
"zrender/lib/svg/svg", "zrender/lib/svg/svg",
"zrender/lib/vml/vml", "zrender/lib/vml/vml"
"style-loader!leaflet/dist/leaflet.css" ],
] "vendorChunk": true,
"extractLicenses": false,
"buildOptimizer": false,
"sourceMap": true,
"optimization": false,
"namedChunks": true
}, },
"configurations": { "configurations": {
"production": { "production": {
@ -72,7 +76,6 @@
"outputHashing": "all", "outputHashing": "all",
"sourceMap": false, "sourceMap": false,
"namedChunks": false, "namedChunks": false,
"aot": true,
"extractLicenses": true, "extractLicenses": true,
"vendorChunk": false, "vendorChunk": false,
"buildOptimizer": true, "buildOptimizer": true,
@ -83,7 +86,8 @@
} }
] ]
} }
} },
"defaultConfiguration": ""
}, },
"serve": { "serve": {
"builder": "@angular-devkit/build-angular:dev-server", "builder": "@angular-devkit/build-angular:dev-server",

13201
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -14,7 +14,7 @@
"conventional-changelog": "conventional-changelog", "conventional-changelog": "conventional-changelog",
"start": "ng serve", "start": "ng serve",
"build": "ng build", "build": "ng build",
"build:prod": "npm run build -- --prod --aot", "build:prod": "npm run build -- --configuration production --aot",
"test": "ng test", "test": "ng test",
"test:coverage": "rimraf coverage && npm run test -- --code-coverage", "test:coverage": "rimraf coverage && npm run test -- --code-coverage",
"lint": "ng lint", "lint": "ng lint",
@ -31,21 +31,21 @@
}, },
"dependencies": { "dependencies": {
"@akveo/ng2-completer": "^9.0.1", "@akveo/ng2-completer": "^9.0.1",
"@angular/animations": "^11.0.9", "@angular/animations": "^12.1.0",
"@angular/cdk": "11.0.4", "@angular/cdk": "12.1.0",
"@angular/common": "^11.0.9", "@angular/common": "^12.1.0",
"@angular/compiler": "^11.0.9", "@angular/compiler": "^12.1.0",
"@angular/core": "^11.0.9", "@angular/core": "^12.1.0",
"@angular/forms": "^11.0.9", "@angular/forms": "^12.1.0",
"@angular/google-maps": "^11.0.4", "@angular/google-maps": "^12.1.0",
"@angular/platform-browser": "^11.0.9", "@angular/platform-browser": "^12.1.0",
"@angular/platform-browser-dynamic": "^11.0.9", "@angular/platform-browser-dynamic": "^12.1.0",
"@angular/router": "^11.0.9", "@angular/router": "^12.1.0",
"@asymmetrik/ngx-leaflet": "3.0.1", "@asymmetrik/ngx-leaflet": "3.0.1",
"@nebular/auth": "7.0.0", "@nebular/auth": "8.0.0",
"@nebular/eva-icons": "7.0.0", "@nebular/eva-icons": "8.0.0",
"@nebular/security": "7.0.0", "@nebular/security": "8.0.0",
"@nebular/theme": "7.0.0", "@nebular/theme": "8.0.0",
"@swimlane/ngx-charts": "^14.0.0", "@swimlane/ngx-charts": "^14.0.0",
"angular2-chartjs": "0.4.1", "angular2-chartjs": "0.4.1",
"bootstrap": "4.3.1", "bootstrap": "4.3.1",
@ -71,20 +71,19 @@
"socicon": "3.0.5", "socicon": "3.0.5",
"style-loader": "^1.1.3", "style-loader": "^1.1.3",
"tinymce": "4.5.7", "tinymce": "4.5.7",
"tslib": "^2.0.0", "tslib": "^2.1.0",
"typeface-exo": "0.0.22", "typeface-exo": "0.0.22",
"web-animations-js": "^2.3.2", "web-animations-js": "^2.3.2",
"zone.js": "~0.10.3" "zone.js": "~0.11.4"
}, },
"devDependencies": { "devDependencies": {
"@angular-devkit/build-angular": "~0.1100.7", "@angular-devkit/build-angular": "~12.1.0",
"@angular/cli": "^11.0.7", "@angular/cli": "^12.1.0",
"@angular/compiler-cli": "^11.0.9", "@angular/compiler-cli": "^12.1.0",
"@angular/language-service": "11.0.9", "@angular/language-service": "12.1.0",
"@compodoc/compodoc": "1.0.1", "@compodoc/compodoc": "1.0.1",
"@fortawesome/fontawesome-free": "^5.2.0", "@fortawesome/fontawesome-free": "^5.2.0",
"@types/d3-color": "1.0.5", "@types/d3-color": "1.0.5",
"@types/googlemaps": "^3.39.3",
"@types/jasmine": "^3.3.0", "@types/jasmine": "^3.3.0",
"@types/jasminewd2": "2.0.3", "@types/jasminewd2": "2.0.3",
"@types/leaflet": "1.2.3", "@types/leaflet": "1.2.3",
@ -94,7 +93,7 @@
"husky": "0.13.3", "husky": "0.13.3",
"jasmine-core": "~3.6.0", "jasmine-core": "~3.6.0",
"jasmine-spec-reporter": "~5.0.0", "jasmine-spec-reporter": "~5.0.0",
"karma": "~5.1.1", "karma": "~6.3.4",
"karma-chrome-launcher": "~3.1.0", "karma-chrome-launcher": "~3.1.0",
"karma-cli": "1.0.1", "karma-cli": "1.0.1",
"karma-coverage-istanbul-reporter": "~3.0.2", "karma-coverage-istanbul-reporter": "~3.0.2",
@ -107,6 +106,6 @@
"ts-node": "3.2.2", "ts-node": "3.2.2",
"tslint": "~6.1.0", "tslint": "~6.1.0",
"tslint-language-service": "^0.9.9", "tslint-language-service": "^0.9.9",
"typescript": "4.0.5" "typescript": "^4.2.3"
} }
} }

View file

@ -14,4 +14,8 @@
width: 100%; width: 100%;
height: nb-theme(card-height-large); height: nb-theme(card-height-large);
} }
::ng-deep .leaflet-control-zoom a {
text-decoration: none;
}
} }

View file

@ -1,7 +1,6 @@
import { Component } from '@angular/core'; import { Component } from '@angular/core';
import * as L from 'leaflet'; import * as L from 'leaflet';
import 'style-loader!leaflet/dist/leaflet.css';
@Component({ @Component({
selector: 'ngx-leaflet', selector: 'ngx-leaflet',

View file

@ -38,7 +38,7 @@ import 'core-js/es7/reflect';
/*************************************************************************************************** /***************************************************************************************************
* Zone JS is required by Angular itself. * Zone JS is required by Angular itself.
*/ */
import 'zone.js/dist/zone'; // Included with Angular CLI. import 'zone.js'; // Included with Angular CLI.
/*************************************************************************************************** /***************************************************************************************************

View file

@ -7,7 +7,6 @@
"sourceMap": true, "sourceMap": true,
"declaration": false, "declaration": false,
"moduleResolution": "node", "moduleResolution": "node",
"emitDecoratorMetadata": true,
"experimentalDecorators": true, "experimentalDecorators": true,
"target": "es2015", "target": "es2015",
"typeRoots": [ "typeRoots": [