Forráskód Böngészése

build: Bump angular from 12 to 13

fzadrazil 3 éve
szülő
commit
9338952d0c

A különbségek nem kerülnek megjelenítésre, a fájl túl nagy
+ 504 - 260
package-lock.json


+ 34 - 28
package.json

@@ -12,12 +12,20 @@
   },
   "private": true,
   "dependencies": {
-    "@angular/cdk": "^12.2.12",
-    "@angular/localize": "^12.2.12",
-    "@fortawesome/angular-fontawesome": "^0.9.0",
+    "@angular/cdk": "^13.1.3",
+    "@angular/common": "^13.1.3",
+    "@angular/compiler": "^13.1.3",
+    "@angular/core": "^13.1.3",
+    "@angular/forms": "^13.1.3",
+    "@angular/localize": "^13.1.3",
+    "@angular/material": "^13.1.3",
+    "@angular/platform-browser": "^13.1.3",
+    "@angular/platform-browser-dynamic": "^13.1.3",
+    "@angular/router": "^13.1.3",
+    "@fortawesome/angular-fontawesome": "^0.10.1",
     "@fortawesome/fontawesome-svg-core": "^1.2.36",
     "@fortawesome/free-solid-svg-icons": "^5.15.4",
-    "@ng-bootstrap/ng-bootstrap": "^10.0.0",
+    "@ng-bootstrap/ng-bootstrap": "^11.0.0",
     "@ngx-translate/core": "^13.0.0",
     "@ngx-translate/http-loader": "^6.0.0",
     "bootstrap": "^4.6.0",
@@ -36,17 +44,17 @@
     "moment": "^2.29.1",
     "moment-timezone": "^0.5.33",
     "ngx-color": "^7.2.0",
-    "ngx-cookie-service": "^12.0.3",
+    "ngx-cookie-service": "^13.1.2",
     "ol": "^6.9.0",
     "ol-popup": "^4.0.0",
     "polygon-clipping": "^0.15.3",
     "polygon-splitter": "^0.0.7",
-    "primeicons": "^4.1.0",
-    "primeng": "^12.2.0",
+    "primeicons": "^5.0.0",
+    "primeng": "^13.1.0",
     "proj4": "^2.7.5",
     "queue": "^6.0.2",
     "resumablejs": "^1.1.0",
-    "rxjs": "^6.6.7",
+    "rxjs": "^7.5.2",
     "share-api-polyfill": "^1.0.21",
     "tslib": "2.0.0",
     "vega": "^5.20.2",
@@ -54,33 +62,31 @@
     "xml-js": "^1.6.11",
     "zone.js": "^0.11.3"
   },
-  "peerDependencies": {
-    "@angular/animations": "~12.2.9",
-    "@angular/common": "^12.2.9",
-    "@angular/compiler": "^12.2.9",
-    "@angular/core": "^12.2.9",
-    "@angular/forms": "^12.2.9",
-    "@angular/platform-browser": "^12.2.9",
-    "@angular/platform-browser-dynamic": "^12.2.9",
-    "@angular/router": "~12.2.9"
-  },
   "devDependencies": {
-    "@angular-devkit/build-angular": "~12.2.9",
-    "@angular/cli": "~12.2.9",
-    "@angular/compiler-cli": "~12.2.9",
+    "@angular-architects/module-federation": "^14.0.1",
+    "@angular-builders/custom-webpack": "^13.0.0",
+    "@angular-devkit/build-angular": "^13.1.3",
+    "@angular-eslint/builder": "^13.0.1",
+    "@angular-eslint/eslint-plugin": "^13.0.1",
+    "@angular-eslint/eslint-plugin-template": "^13.0.1",
+    "@angular-eslint/schematics": "^13.0.1",
+    "@angular-eslint/template-parser": "^13.0.1",
+    "@angular/cli": "~13.1.3",
+    "@angular/compiler-cli": "~13.1.3",
     "@types/jasmine": "~3.6.0",
     "@types/node": "^12.11.1",
     "codelyzer": "^6.0.0",
-    "jasmine-core": "~3.6.0",
-    "jasmine-spec-reporter": "~5.0.0",
-    "karma": "~6.3.4",
+    "jasmine-core": "~4.0.0",
+    "jasmine-spec-reporter": "~7.0.0",
+    "karma": "~6.3.12",
     "karma-chrome-launcher": "~3.1.0",
-    "karma-coverage": "~2.0.3",
-    "karma-jasmine": "~4.0.0",
-    "karma-jasmine-html-reporter": "^1.5.0",
+    "karma-coverage": "~2.1.0",
+    "karma-jasmine": "~4.0.1",
+    "karma-jasmine-html-reporter": "^1.7.0",
+    "ngx-build-plus": "^13.0.1",
     "protractor": "~7.0.0",
     "ts-node": "~8.3.0",
     "tslint": "~6.1.0",
-    "typescript": "~4.3.5"
+    "typescript": "4.5.5"
   }
 }

+ 0 - 2
src/app/auth/interceptors/auth.interceptor.ts

@@ -9,7 +9,6 @@ import {Observable, throwError, of} from 'rxjs';
 
 import {catchError} from 'rxjs/operators';
 import {AuthService} from '../services/auth.service';
-import {CookieService} from 'ngx-cookie-service';
 import {GlobalVariable} from '../../globals';
 import {ToastService} from '../../shared/services/toast.service';
 import { environment } from '../../../environments/environment';
@@ -19,7 +18,6 @@ export class AuthInterceptor implements HttpInterceptor {
 
   constructor(
     private authService: AuthService,
-    private cookieService: CookieService,
     private toastService: ToastService
   ) {
   }

+ 3 - 2
src/app/dashboard/components/map/map.component.ts

@@ -88,12 +88,13 @@ export class MapComponent implements OnInit, OnDestroy, OnChanges {
       },
       sidebarPosition: 'invisible',
       queryPoint: 'hidden',
-      //  default_view: new View({
+      default_view: new View({
+        maxZoom: 17
       //    center: [1873444.3416929364, 6286508.646897761], // Latitude longitude    to Spherical Mercator
       //    extent: [1871197.0792499082, 6282949.4051418, 1873509.6915773677, 6287134.61866585],
       //    multiWorld: false,
       //    zoom: 6
-      //  })
+      })
     });
   }
 

+ 6 - 11
src/app/shared/nav-bar/components/data-download/data-download-popup.component.ts

@@ -107,18 +107,13 @@ export class DataDownloadPopupComponent implements OnInit {
     let evt = document.createEvent('MouseEvents');
     let link = document.createElement('a');
 
-    if (window.navigator && window.navigator.msSaveOrOpenBlob) {
-      window.navigator.msSaveOrOpenBlob(file, filename);
-    }
-    else {
-      var e = document.createEvent('MouseEvents'),
+    var e = document.createEvent('MouseEvents'),
         a = document.createElement('a');
 
-      a.download = filename;
-      a.href = window.URL.createObjectURL(file);
-      a.dataset.downloadurl = ['text/plain', a.download, a.href].join(':');
-      e.initEvent('click', true, false);
-      a.dispatchEvent(e);
-    }
+    a.download = filename;
+    a.href = window.URL.createObjectURL(file);
+    a.dataset.downloadurl = ['text/plain', a.download, a.href].join(':');
+    e.initEvent('click', true, false);
+    a.dispatchEvent(e);
   }
 }

Nem az összes módosított fájl került megjelenítésre, mert túl sok fájl változott