@ts-core/angular 15.0.27 → 15.0.29
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/VIModule.d.ts +5 -0
- package/esm2020/VIModule.mjs +12 -1
- package/esm2020/cookie/CookieService.mjs +1 -1
- package/esm2020/login/LoginTokenStorage.mjs +51 -0
- package/esm2020/public-api.mjs +4 -1
- package/esm2020/storage/StorageService.mjs +57 -0
- package/esm2020/util/ViewUtil.mjs +3 -3
- package/fesm2015/ts-core-angular.mjs +115 -3
- package/fesm2015/ts-core-angular.mjs.map +1 -1
- package/fesm2020/ts-core-angular.mjs +115 -3
- package/fesm2020/ts-core-angular.mjs.map +1 -1
- package/login/LoginTokenStorage.d.ts +12 -0
- package/package.json +1 -1
- package/public-api.d.ts +2 -0
- package/storage/StorageService.d.ts +14 -0
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { DestroyableContainer } from '@ts-core/common';
|
|
2
|
+
import { StorageService } from '../storage/StorageService';
|
|
3
|
+
import { CookieService } from '../cookie/CookieService';
|
|
4
|
+
export declare class LoginTokenStorage extends DestroyableContainer {
|
|
5
|
+
private storage;
|
|
6
|
+
private cookies;
|
|
7
|
+
static TOKEN_KEY: string;
|
|
8
|
+
constructor(storage: StorageService, cookies: CookieService);
|
|
9
|
+
get(): string;
|
|
10
|
+
save(value: string): void;
|
|
11
|
+
remove(): void;
|
|
12
|
+
}
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -44,6 +44,7 @@ export * from './login/LoginNotGuard';
|
|
|
44
44
|
export * from './login/LoginResolver';
|
|
45
45
|
export * from './login/LoginBaseService';
|
|
46
46
|
export * from './login/LoginRequireResolver';
|
|
47
|
+
export * from './login/LoginTokenStorage';
|
|
47
48
|
export * from './manager/FocusManager';
|
|
48
49
|
export * from './manager/ResizeManager';
|
|
49
50
|
export * from './menu/MenuItem';
|
|
@@ -100,6 +101,7 @@ export * from './notification/NotificationConfig';
|
|
|
100
101
|
export * from './notification/NotificationService';
|
|
101
102
|
export * from './notification/NotificationServiceEvent';
|
|
102
103
|
export * from './bottomSheet/BottomSheetService';
|
|
104
|
+
export * from './storage/StorageService';
|
|
103
105
|
export * from './module/LazyModuleLoader';
|
|
104
106
|
export * from './transport/TransportLazy';
|
|
105
107
|
export * from './transport/TransportLazyModule';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { DestroyableContainer } from '@ts-core/common';
|
|
2
|
+
import { NativeWindowService } from '@ts-core/frontend';
|
|
3
|
+
export declare class StorageService extends DestroyableContainer {
|
|
4
|
+
private nativeWindow;
|
|
5
|
+
constructor(nativeWindow: NativeWindowService);
|
|
6
|
+
get(key: string, defaultValue?: string): string;
|
|
7
|
+
has(key: string): boolean;
|
|
8
|
+
set(key: string, value: string): void;
|
|
9
|
+
remove(key: string): void;
|
|
10
|
+
clear(): void;
|
|
11
|
+
destroy(): void;
|
|
12
|
+
protected get length(): number;
|
|
13
|
+
protected get storage(): Storage;
|
|
14
|
+
}
|