浏览代码

[angular] update to ver. 21.1.2

tigger 4 月之前
父节点
当前提交
319839fc60
共有 6 个文件被更改,包括 22 次插入25 次删除
  1. 16 16
      package.json
  2. 1 1
      src/app/app.component.ts
  3. 1 1
      src/dependencies/angularlib
  4. 1 1
      src/dependencies/fis
  5. 2 1
      src/main.ts
  6. 1 5
      tsconfig.json

+ 16 - 16
package.json

@@ -16,18 +16,18 @@
   },
   "private": true,
   "dependencies": {
-    "@angular/animations": "^20.1.3",
-    "@angular/cdk": "^20.1.3",
-    "@angular/common": "^20.1.3",
-    "@angular/compiler": "^20.1.3",
-    "@angular/core": "^20.1.3",
-    "@angular/forms": "^20.1.3",
-    "@angular/material": "^20.1.3",
-    "@angular/material-moment-adapter": "^20.1.3",
-    "@angular/platform-browser": "^20.1.3",
-    "@angular/platform-browser-dynamic": "^20.1.3",
-    "@angular/router": "^20.1.3",
-    "@angular/service-worker": "^20.1.3",
+    "@angular/animations": "^21.1.2",
+    "@angular/cdk": "^21.1.2",
+    "@angular/common": "^21.1.2",
+    "@angular/compiler": "^21.1.2",
+    "@angular/core": "^21.1.2",
+    "@angular/forms": "^21.1.2",
+    "@angular/material": "^21.1.2",
+    "@angular/material-moment-adapter": "^21.1.2",
+    "@angular/platform-browser": "^21.1.2",
+    "@angular/platform-browser-dynamic": "^21.1.2",
+    "@angular/router": "^21.1.2",
+    "@angular/service-worker": "^21.1.2",
     "@ngxs/devtools-plugin": "^20.1.0",
     "@ngxs/form-plugin": "^20.1.0",
     "@ngxs/storage-plugin": "^20.1.0",
@@ -42,9 +42,9 @@
     "zone.js": "^0.15.1"
   },
   "devDependencies": {
-    "@angular/build": "^20.1.3",
-    "@angular/cli": "^20.1.3",
-    "@angular/compiler-cli": "^20.1.3",
+    "@angular/build": "^21.1.2",
+    "@angular/cli": "^21.1.2",
+    "@angular/compiler-cli": "^21.1.2",
     "@types/jasmine": "~5.1.0",
     "jasmine-core": "~5.1.0",
     "karma": "~6.4.0",
@@ -52,6 +52,6 @@
     "karma-coverage": "~2.2.0",
     "karma-jasmine": "~5.1.0",
     "karma-jasmine-html-reporter": "~2.1.0",
-    "typescript": "~5.8.3"
+    "typescript": "~5.9.3"
   }
 }

+ 1 - 1
src/app/app.component.ts

@@ -103,7 +103,7 @@ export class AppComponent extends BaseComponent implements OnInit {
   }
 
   @HostListener('window:mousedown')
-  private refreshTimeout() {
+  refreshTimeout() {
     this.stopTimeout$.next(null);
     this.startTimeout$.next(null);
   }

+ 1 - 1
src/dependencies/angularlib

@@ -1 +1 @@
-Subproject commit 3eef049400228710da0408bb1432908f1d66343c
+Subproject commit 2103c8be5a571da196a77f545c85b9fcb9dfeb51

+ 1 - 1
src/dependencies/fis

@@ -1 +1 @@
-Subproject commit 67b927151093bf1c55533c997d0071a431672f03
+Subproject commit 5aac5818653b4e93cc211f37906d2b2f9a0e8fd9

+ 2 - 1
src/main.ts

@@ -1,6 +1,7 @@
+import { provideZoneChangeDetection } from "@angular/core";
 import { bootstrapApplication } from '@angular/platform-browser';
 import { appConfig } from './app/app.config';
 import { AppComponent } from './app/app.component';
 
-bootstrapApplication(AppComponent, appConfig)
+bootstrapApplication(AppComponent, {...appConfig, providers: [provideZoneChangeDetection(), ...appConfig.providers]})
   .catch((err) => console.error(err));

+ 1 - 5
tsconfig.json

@@ -19,16 +19,12 @@
     "sourceMap": true,
     "declaration": false,
     "experimentalDecorators": true,
-    "moduleResolution": "node",
+    "moduleResolution": "bundler",
     "importHelpers": true,
     "target": "ES2022",
     "module": "ES2022",
     "useDefineForClassFields": false,
     "resolveJsonModule": true,
-    "lib": [
-      "ES2022",
-      "dom"
-    ],
     "baseUrl": "./",
     "paths": {
       "fis-commons/*": [