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

update ngxs to ver 18.1.1

tigger 1 éve
szülő
commit
8c90690d02

+ 2 - 3
package.json

@@ -21,9 +21,8 @@
     "@angular/platform-browser": "^18.1.3",
     "@angular/platform-browser-dynamic": "^18.1.3",
     "@angular/router": "^18.1.3",
-    "@ngxs/form-plugin": "^3.8.2",
-    "@ngxs/storage-plugin": "^3.8.2",
-    "@ngxs/store": "^3.8.2",
+    "@ngxs/storage-plugin": "^18.1.1",
+    "@ngxs/store": "^18.1.1",
     "angularlib": "file:./src/dependencies/angularlib",
     "dp-ui": "file:./src/dependencies/dp-ui",
     "fis-commons": "https://cdn.swopt.com/npm/fis-commons",

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

@@ -1,7 +1,6 @@
 import { Component, HostListener, OnInit } from '@angular/core';
 import { Router, RouterModule, RouterOutlet, RoutesRecognized } from '@angular/router';
 import { MatModule } from '../dependencies/angularlib/mat.module';
-import { Store } from '@ngxs/store'
 import { Angularlib } from 'angularlib/angularlib.module';
 import { BaseComponent, untilDestroy } from 'angularlib/base.component';
 import { Subject, filter, map, repeat, takeUntil, timer } from 'rxjs';
@@ -12,9 +11,10 @@ import { ChangeTheme } from 'angularlib/ui.state/ui.state.actions';
 import { ChangeLanguage } from 'angularlib/labels/label.actions';
 import { ComponentService } from 'angularlib/component.service';
 import { NotificationModule } from 'angularlib/notification/notification.module';
-import { NotificationState } from 'angularlib/notification/notification.state';
+import { NOTIFICATION_STATE_TOKEN, NotificationState } from 'angularlib/notification/notification.state';
 import { Notification } from 'angularlib/notification/notification.actions';
 import { generateId } from 'angularlib/base.service';
+import { Store } from '@ngxs/store';
 
 @Component({
   selector: 'app-root',
@@ -96,7 +96,7 @@ export class AppComponent extends BaseComponent implements OnInit {
       }
     });
 
-    this.store.select(NotificationState).pipe(untilDestroy(this)).subscribe({
+    this.store.select(NOTIFICATION_STATE_TOKEN).pipe(untilDestroy(this)).subscribe({
       next: (state:any) => {
         this.notificationCount = state.notifications.length;
       }

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

@@ -14,7 +14,7 @@ export const appConfig: ApplicationConfig = {
     importProvidersFrom(Angularlib),
     importProvidersFrom(DpModule),
     importProvidersFrom(BrowserAnimationsModule),
-    importProvidersFrom(NgxsStoragePluginModule.forRoot()),
+    importProvidersFrom(NgxsStoragePluginModule.forRoot({keys:'*'})),
     provideRouter(routes,withHashLocation()),
     provideHttpClient()
   ]

+ 1 - 1
src/dependencies/angularlib

@@ -1 +1 @@
-Subproject commit e47db177098b614cb900ba8e5da7fc1cc7509118
+Subproject commit 830c7dc3063d3bc9f50c1016a3036419cf4a54c2

+ 1 - 1
src/dependencies/dp-ui

@@ -1 +1 @@
-Subproject commit f89f1b0193aee746f2779dd4f43104c4274f275b
+Subproject commit 9e19179b555d235b34624855ffa9b62b1627e749

+ 1 - 1
src/dependencies/fis

@@ -1 +1 @@
-Subproject commit e095ee2309e5cf2db60ff5eb8842596e5ec1c317
+Subproject commit b79eb840e0392e2f0bb1b38a8ae692ee2f15e506