@ts-core/angular 19.0.12 → 19.0.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/asset/language/en.json +5 -3
- package/asset/language/ru.json +3 -2
- package/fesm2022/ts-core-angular.mjs +271 -250
- package/fesm2022/ts-core-angular.mjs.map +1 -1
- package/package.json +1 -1
- package/public-api.d.ts +3 -2
- package/resolver/LoadableResolver.d.ts +3 -3
- package/service/route/CanDeactivateGuard.d.ts +3 -3
- package/service/route/IRouterDeactivatable.d.ts +2 -3
- package/storage/ClassTypeValueStorage.d.ts +7 -0
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -108,12 +108,13 @@ export * from './notification/NotificationConfig';
|
|
|
108
108
|
export * from './notification/NotificationService';
|
|
109
109
|
export * from './notification/NotificationServiceEvent';
|
|
110
110
|
export * from './bottomSheet/BottomSheetService';
|
|
111
|
-
export * from './storage/LocalStorageService';
|
|
112
111
|
export * from './storage/ValueStorage';
|
|
113
|
-
export * from './storage/JSONValueStorage';
|
|
114
112
|
export * from './storage/IValueStorage';
|
|
115
113
|
export * from './storage/DateValueStorage';
|
|
114
|
+
export * from './storage/JSONValueStorage';
|
|
115
|
+
export * from './storage/LocalStorageService';
|
|
116
116
|
export * from './storage/BooleanValueStorage';
|
|
117
|
+
export * from './storage/ClassTypeValueStorage';
|
|
117
118
|
export * from './module/LazyModuleLoader';
|
|
118
119
|
export * from './transport/TransportLazy';
|
|
119
120
|
export * from './transport/TransportLazyModule';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { ActivatedRouteSnapshot, Resolve, RouterStateSnapshot } from '@angular/router';
|
|
2
|
-
import { Loadable } from '@ts-core/common';
|
|
3
|
-
export declare abstract class LoadableResolver<T extends Loadable> implements Resolve<void> {
|
|
2
|
+
import { Loadable, ExtendedError } from '@ts-core/common';
|
|
3
|
+
export declare abstract class LoadableResolver<T extends Loadable<U, V>, U = any, V = any> implements Resolve<void> {
|
|
4
4
|
protected service: T;
|
|
5
5
|
constructor(service: T);
|
|
6
6
|
protected resolveHandler(): void;
|
|
7
|
-
protected rejectHandler(): void;
|
|
7
|
+
protected rejectHandler(error: ExtendedError): void;
|
|
8
8
|
resolve(route: ActivatedRouteSnapshot, state: RouterStateSnapshot): Promise<void>;
|
|
9
9
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { CanDeactivate, ActivatedRouteSnapshot, RouterStateSnapshot,
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
1
|
+
import { CanDeactivate, ActivatedRouteSnapshot, RouterStateSnapshot, GuardResult, MaybeAsync, CanDeactivateFn } from '@angular/router';
|
|
3
2
|
import { IRouterDeactivatable } from './IRouterDeactivatable';
|
|
4
3
|
export declare class CanDeactivateGuard<T extends IRouterDeactivatable = IRouterDeactivatable> implements CanDeactivate<T> {
|
|
5
|
-
canDeactivate(component: T, currentRoute: ActivatedRouteSnapshot, currentState: RouterStateSnapshot, nextState?: RouterStateSnapshot):
|
|
4
|
+
canDeactivate(component: T, currentRoute: ActivatedRouteSnapshot, currentState: RouterStateSnapshot, nextState?: RouterStateSnapshot): MaybeAsync<GuardResult>;
|
|
6
5
|
}
|
|
6
|
+
export declare const CanDeactivateFunction: CanDeactivateFn<IRouterDeactivatable>;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { ActivatedRouteSnapshot,
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
1
|
+
import { ActivatedRouteSnapshot, GuardResult, MaybeAsync, RouterStateSnapshot } from '@angular/router';
|
|
3
2
|
export interface IRouterDeactivatable {
|
|
4
3
|
isForceDeactivate: boolean;
|
|
5
|
-
isCanDeactivate(currentRoute: ActivatedRouteSnapshot, currentState: RouterStateSnapshot, nextState?: RouterStateSnapshot):
|
|
4
|
+
isCanDeactivate(currentRoute: ActivatedRouteSnapshot, currentState: RouterStateSnapshot, nextState?: RouterStateSnapshot): MaybeAsync<GuardResult>;
|
|
6
5
|
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ClassType } from '@ts-core/common';
|
|
2
|
+
import { JSONValueStorage } from './JSONValueStorage';
|
|
3
|
+
export declare class ClassTypeValueStorage<T> extends JSONValueStorage<T> {
|
|
4
|
+
classType: ClassType<T>;
|
|
5
|
+
protected serialize(value: string): T;
|
|
6
|
+
protected deserialize(value: T): string;
|
|
7
|
+
}
|