Bladeren bron

update to Angular v19

tigger 1 jaar geleden
bovenliggende
commit
8099ea0e0c
6 gewijzigde bestanden met toevoegingen van 53 en 51 verwijderingen
  1. 3 0
      .gitmodules
  2. 22 21
      package.json
  3. 15 16
      src/app/app.component.ts
  4. 11 12
      src/app/dashboard/dashboard.component.ts
  5. 1 1
      src/dependencies/angularlib
  6. 1 1
      src/dependencies/fis

+ 3 - 0
.gitmodules

@@ -1,9 +1,12 @@
 [submodule "src/dependencies/angularlib"]
 	path = src/dependencies/angularlib
 	url = https://git.swopt.com/swopt/angularlib.git
+	branch = v19
 [submodule "src/dependencies/dp-ui"]
 	path = src/dependencies/dp-ui
 	url = https://git.swopt.com/swopt/dp-ui.git
+	branch = v19
 [submodule "src/dependencies/fis"]
 	path = src/dependencies/fis
 	url = https://git.swopt.com/swopt/fis.git
+	branch = v19

+ 22 - 21
package.json

@@ -16,21 +16,22 @@
   },
   "private": true,
   "dependencies": {
-    "@angular/animations": "^18.2.2",
-    "@angular/cdk": "^18.2.2",
-    "@angular/common": "^18.2.2",
-    "@angular/compiler": "^18.2.2",
-    "@angular/core": "^18.2.2",
-    "@angular/forms": "^18.2.2",
-    "@angular/material": "^18.2.2",
-    "@angular/material-moment-adapter": "^18.2.2",
-    "@angular/platform-browser": "^18.2.2",
-    "@angular/platform-browser-dynamic": "^18.2.2",
-    "@angular/router": "^18.2.2",
-    "@angular/service-worker": "^18.2.2",
-    "@ngxs/devtools-plugin": "^18.1.1",
-    "@ngxs/storage-plugin": "^18.1.1",
-    "@ngxs/store": "^18.1.1",
+    "@angular/animations": "^19.2.12",
+    "@angular/cdk": "^19.2.17",
+    "@angular/common": "^19.2.12",
+    "@angular/compiler": "^19.2.12",
+    "@angular/core": "^19.2.12",
+    "@angular/forms": "^19.2.12",
+    "@angular/material": "^19.2.17",
+    "@angular/material-moment-adapter": "^19.2.17",
+    "@angular/platform-browser": "^19.2.12",
+    "@angular/platform-browser-dynamic": "^19.2.12",
+    "@angular/router": "^19.2.12",
+    "@angular/service-worker": "^19.2.12",
+    "@ngxs/devtools-plugin": "^19.0.0",
+    "@ngxs/form-plugin": "^19.0.0",
+    "@ngxs/storage-plugin": "^19.0.0",
+    "@ngxs/store": "^19.0.0",
     "angularlib": "file:./src/dependencies/angularlib",
     "dp-ui": "file:./src/dependencies/dp-ui",
     "fis": "file:./src/dependencies/fis",
@@ -38,12 +39,12 @@
     "primeng": "^17.12.0",
     "rxjs": "~7.8.0",
     "tslib": "^2.3.0",
-    "zone.js": "~0.14.3"
+    "zone.js": "~0.15.0"
   },
   "devDependencies": {
-    "@angular-devkit/build-angular": "^18.1.3",
-    "@angular/cli": "^18.1.3",
-    "@angular/compiler-cli": "^18.2.2",
+    "@angular-devkit/build-angular": "^19.2.13",
+    "@angular/cli": "^19.2.13",
+    "@angular/compiler-cli": "^19.2.12",
     "@types/jasmine": "~5.1.0",
     "jasmine-core": "~5.1.0",
     "karma": "~6.4.0",
@@ -51,6 +52,6 @@
     "karma-coverage": "~2.2.0",
     "karma-jasmine": "~5.1.0",
     "karma-jasmine-html-reporter": "~2.1.0",
-    "typescript": "~5.4.5"
+    "typescript": "~5.8.3"
   }
-}
+}

+ 15 - 16
src/app/app.component.ts

@@ -25,22 +25,21 @@ import { NotificationService } from 'angularlib/notification/notification.servic
 import { DecoratorSubject } from 'fis-commons/decorator';
 
 @Component({
-  selector: 'app-root',
-  standalone: true,
-  imports: [
-    CommonModule,
-    RouterOutlet, 
-    MatModule, 
-    RouterModule,
-    Angularlib,
-    NotificationModule,
-    BusinessDataModule
-  ],
-  providers:[DatePipe,FISMessaging],
-  templateUrl: './app.component.html',
-  styleUrls: [
-    './app.component.scss'
-  ]
+    selector: 'app-root',
+    imports: [
+        CommonModule,
+        RouterOutlet,
+        MatModule,
+        RouterModule,
+        Angularlib,
+        NotificationModule,
+        BusinessDataModule
+    ],
+    providers: [DatePipe, FISMessaging],
+    templateUrl: './app.component.html',
+    styleUrls: [
+        './app.component.scss'
+    ]
 })
 export class AppComponent extends BaseComponent implements OnInit {
   title = 'Financial Information System';

+ 11 - 12
src/app/dashboard/dashboard.component.ts

@@ -11,18 +11,17 @@ import { LabelModule } from 'angularlib/labels/label.module';
 import { masterMenu } from '../menu/menu';
 
 @Component({
-  selector: 'app-dashboard',
-  standalone: true,
-  imports: [
-    CommonModule,
-    RouterModule,
-    LoginModule,
-    LabelModule,
-    MasterMenuComponent
-  ],
-  providers: [ComponentService],
-  templateUrl: './dashboard.component.html',
-  styleUrl: './dashboard.component.scss'
+    selector: 'app-dashboard',
+    imports: [
+        CommonModule,
+        RouterModule,
+        LoginModule,
+        LabelModule,
+        MasterMenuComponent
+    ],
+    providers: [ComponentService],
+    templateUrl: './dashboard.component.html',
+    styleUrl: './dashboard.component.scss'
 })
 export class DashboardComponent extends BaseComponent implements OnInit{
   protected masterMenu = masterMenu;

+ 1 - 1
src/dependencies/angularlib

@@ -1 +1 @@
-Subproject commit 38ba4ffa538d7ced8d5fac372752ccb3c070b968
+Subproject commit 185d697e246c8f19b12a6a4d378a738ea536267e

+ 1 - 1
src/dependencies/fis

@@ -1 +1 @@
-Subproject commit 69e4fb92d9d18d6f759d1699c30e2c23c2d05188
+Subproject commit c00295a0f701fb6ae83a20aa8191874296d3b44d