@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.
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ts-core/angular",
3
- "version": "15.0.27",
3
+ "version": "15.0.29",
4
4
  "description": "Modules for frontend based on angular",
5
5
  "main": "public-api.js",
6
6
  "author": {
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
+ }