@rxap/ngx-memory 21.0.1 → 22.0.0-dev.1
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/CHANGELOG.md +14 -0
- package/compodoc/architecture.html +222 -0
- package/compodoc/changelog.html +57 -5
- package/compodoc/classes/MockStorage.html +114 -37
- package/compodoc/dependencies.html +80 -13
- package/compodoc/index.html +46 -5
- package/compodoc/injectables/EphemeralStorageService.html +107 -24
- package/compodoc/injectables/LocalStorageService.html +107 -24
- package/compodoc/injectables/SessionStorageService.html +107 -24
- package/compodoc/injectables/StorageService.html +96 -18
- package/compodoc/js/architecture-graph.js +288 -0
- package/compodoc/js/libs/bootstrap-native.js +4 -2
- package/compodoc/js/libs/jszip.min.js +13 -0
- package/compodoc/js/libs/svg-pan-zoom.min.js +3 -3
- package/compodoc/js/libs/tablesort.min.js +3 -3
- package/compodoc/js/libs/tablesort.number.min.js +3 -3
- package/compodoc/js/libs/vis-network.min.js +78 -0
- package/compodoc/js/menu-wc.js +25 -12
- package/compodoc/js/menu.js +10 -11
- package/compodoc/js/routes/routes_index.js +1 -0
- package/compodoc/js/routes.js +142 -34
- package/compodoc/js/search/search-lunr.js +6 -8
- package/compodoc/js/search/search.js +118 -66
- package/compodoc/js/search/search_index.js +2 -2
- package/compodoc/js/tabs.js +98 -15
- package/compodoc/js/tree.js +44 -7
- package/compodoc/license.html +48 -6
- package/compodoc/llms.txt +106 -0
- package/compodoc/miscellaneous/functions.html +75 -23
- package/compodoc/miscellaneous/typealiases.html +46 -4
- package/compodoc/miscellaneous/variables.html +58 -5
- package/compodoc/modules.html +44 -3
- package/compodoc/overview.html +54 -3
- package/compodoc/properties.html +45 -4
- package/compodoc/routes.html +227 -0
- package/compodoc/styles/compodoc.css +365 -44
- package/compodoc/styles/dark.css +16 -0
- package/compodoc/template-playground/default-templates.json +192 -0
- package/compodoc/template-playground/hbs-render.service.ts +217 -0
- package/compodoc/template-playground/main.ts +9 -0
- package/compodoc/template-playground/template-editor.service.ts +173 -0
- package/compodoc/template-playground/template-playground.component.ts +614 -0
- package/compodoc/template-playground/template-playground.module.ts +29 -0
- package/compodoc/template-playground/zip-export.service.ts +86 -0
- package/compodoc/template-playground-app/app.js +1389 -0
- package/compodoc/template-playground-app/index.html +462 -0
- package/compodoc/todo.html +45 -60
- package/docs/documentation.json +490 -415
- package/docs/html/assets/highlight.css +1 -1
- package/docs/html/assets/icons.js +1 -1
- package/docs/html/assets/icons.svg +1 -1
- package/docs/html/assets/main.js +5 -5
- package/docs/html/assets/search.js +1 -1
- package/docs/html/assets/style.css +265 -228
- package/docs/html/classes/EphemeralStorageService.html +151 -9
- package/docs/html/classes/LocalStorageService.html +151 -9
- package/docs/html/classes/MockStorage.html +185 -15
- package/docs/html/classes/SessionStorageService.html +151 -9
- package/docs/html/classes/StorageService.html +151 -9
- package/docs/html/functions/LocalStorage.html +52 -5
- package/docs/html/functions/SessionStorage.html +52 -5
- package/docs/html/functions/StorageGet.html +43 -1
- package/docs/html/functions/StorageHas.html +43 -1
- package/docs/html/functions/StorageKey.html +43 -1
- package/docs/html/functions/StorageRemove.html +43 -1
- package/docs/html/functions/StorageSet.html +46 -1
- package/docs/html/functions/WebStorage.html +45 -1
- package/docs/html/functions/getExpired.html +43 -1
- package/docs/html/functions/stringify.html +42 -1
- package/docs/html/hierarchy.html +35 -1
- package/docs/html/index.html +40 -4
- package/docs/html/modules.html +48 -1
- package/docs/html/types/ExpiredUnit.html +35 -2
- package/docs/html/variables/isBrowser.html +35 -2
- package/docs/markdown/README.md +1 -1
- package/docs/markdown/classes/EphemeralStorageService.md +17 -17
- package/docs/markdown/classes/LocalStorageService.md +17 -17
- package/docs/markdown/classes/MockStorage.md +22 -22
- package/docs/markdown/classes/SessionStorageService.md +17 -17
- package/docs/markdown/classes/StorageService.md +18 -18
- package/docs/markdown/functions/LocalStorage.md +4 -18
- package/docs/markdown/functions/SessionStorage.md +4 -18
- package/docs/markdown/functions/StorageGet.md +3 -3
- package/docs/markdown/functions/StorageHas.md +3 -3
- package/docs/markdown/functions/StorageKey.md +5 -5
- package/docs/markdown/functions/StorageRemove.md +3 -3
- package/docs/markdown/functions/StorageSet.md +6 -6
- package/docs/markdown/functions/WebStorage.md +5 -19
- package/docs/markdown/functions/getExpired.md +2 -2
- package/docs/markdown/functions/stringify.md +2 -2
- package/docs/markdown/globals.md +2 -2
- package/docs/markdown/type-aliases/ExpiredUnit.md +3 -3
- package/docs/markdown/variables/isBrowser.md +2 -2
- package/docs/wiki/Class.EphemeralStorageService.md +16 -16
- package/docs/wiki/Class.LocalStorageService.md +16 -16
- package/docs/wiki/Class.MockStorage.md +21 -21
- package/docs/wiki/Class.SessionStorageService.md +16 -16
- package/docs/wiki/Class.StorageService.md +17 -17
- package/docs/wiki/Function.LocalStorage.md +3 -17
- package/docs/wiki/Function.SessionStorage.md +3 -17
- package/docs/wiki/Function.StorageGet.md +2 -2
- package/docs/wiki/Function.StorageHas.md +2 -2
- package/docs/wiki/Function.StorageKey.md +4 -4
- package/docs/wiki/Function.StorageRemove.md +2 -2
- package/docs/wiki/Function.StorageSet.md +5 -5
- package/docs/wiki/Function.WebStorage.md +4 -18
- package/docs/wiki/Function.getExpired.md +1 -1
- package/docs/wiki/Function.stringify.md +1 -1
- package/docs/wiki/TypeAlias.ExpiredUnit.md +2 -2
- package/docs/wiki/Variable.isBrowser.md +1 -1
- package/docs/wiki/globals.md +1 -1
- package/fesm2022/rxap-ngx-memory.mjs +260 -258
- package/fesm2022/rxap-ngx-memory.mjs.map +1 -1
- package/package.json +6 -6
- package/types/rxap-ngx-memory.d.ts +53 -61
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Generated bundle index. Do not edit.
|
|
3
|
+
*/
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
3
5
|
/**
|
|
4
6
|
* Expiration time unit
|
|
5
7
|
* s: seconds
|
|
@@ -10,30 +12,29 @@ import * as i0 from '@angular/core';
|
|
|
10
12
|
* y: year
|
|
11
13
|
* t: Custom (millisecond)
|
|
12
14
|
*/
|
|
13
|
-
type ExpiredUnit = 's' | 'm' | 'h' | 'd' | 'w' | 'y' | 't';
|
|
15
|
+
export type ExpiredUnit = 's' | 'm' | 'h' | 'd' | 'w' | 'y' | 't';
|
|
14
16
|
/**
|
|
15
17
|
* Determining if an Angular application is rendered in the browser
|
|
16
18
|
* The Angular `PLATFORM_ID` identifier cannot be used directly by the `decorator`.
|
|
17
19
|
* The advantage of this is that it also works well when the server populates the Document itself.
|
|
18
20
|
*/
|
|
19
|
-
declare const isBrowser: boolean;
|
|
20
|
-
declare function StorageGet(storage: Storage | null, key: string): unknown;
|
|
21
|
-
declare function StorageHas(storage: Storage | null, key: string): boolean;
|
|
22
|
-
declare function StorageSet(storage: Storage | null, key: string, value: any, expiredAt?: number, expiredUnit?: ExpiredUnit): void;
|
|
23
|
-
declare function StorageRemove(storage: Storage | null, key: string): void;
|
|
24
|
-
declare function StorageKey(storage: Storage | null, index: number): string | null;
|
|
25
|
-
declare function getExpired(val: number, unit: ExpiredUnit): number;
|
|
26
|
-
declare function stringify(value: any): string;
|
|
27
|
-
declare class MockStorage implements Storage {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
21
|
+
export declare const isBrowser: boolean;
|
|
22
|
+
export declare function StorageGet(storage: Storage | null, key: string): unknown;
|
|
23
|
+
export declare function StorageHas(storage: Storage | null, key: string): boolean;
|
|
24
|
+
export declare function StorageSet(storage: Storage | null, key: string, value: any, expiredAt?: number, expiredUnit?: ExpiredUnit): void;
|
|
25
|
+
export declare function StorageRemove(storage: Storage | null, key: string): void;
|
|
26
|
+
export declare function StorageKey(storage: Storage | null, index: number): string | null;
|
|
27
|
+
export declare function getExpired(val: number, unit: ExpiredUnit): number;
|
|
28
|
+
export declare function stringify(value: any): string;
|
|
29
|
+
export declare class MockStorage implements Storage {
|
|
30
|
+
cache: Record<string, string>;
|
|
31
|
+
get length(): number;
|
|
32
|
+
getItem(key: string): string | null;
|
|
33
|
+
key(index: number): string | null;
|
|
34
|
+
removeItem(key: string): void;
|
|
35
|
+
setItem(key: string, value: string): void;
|
|
36
|
+
clear(): void;
|
|
35
37
|
}
|
|
36
|
-
|
|
37
38
|
/**
|
|
38
39
|
* `localStorage` Decorator
|
|
39
40
|
*
|
|
@@ -41,8 +42,7 @@ declare class MockStorage implements Storage {
|
|
|
41
42
|
* @param [expiredAt=0] Expiration time, 0 means forever
|
|
42
43
|
* @param [expiredUnit='t'] Expiration time unit (default: custom [unit: ms])
|
|
43
44
|
*/
|
|
44
|
-
declare function LocalStorage(key?: string, expiredAt?: number, expiredUnit?: ExpiredUnit): (target: any, propertyName: string) => void;
|
|
45
|
-
|
|
45
|
+
export declare function LocalStorage(key?: string, expiredAt?: number, expiredUnit?: ExpiredUnit): (target: any, propertyName: string) => void;
|
|
46
46
|
/**
|
|
47
47
|
* `sessionStorage` Decorator
|
|
48
48
|
*
|
|
@@ -50,8 +50,7 @@ declare function LocalStorage(key?: string, expiredAt?: number, expiredUnit?: Ex
|
|
|
50
50
|
* @param [expiredAt=0] Expiration time, 0 means forever
|
|
51
51
|
* @param [expiredUnit='t'] Expiration time unit (default: custom [unit: ms])
|
|
52
52
|
*/
|
|
53
|
-
declare function SessionStorage(key?: string, expiredAt?: number, expiredUnit?: ExpiredUnit): (target: any, propertyName: string) => void;
|
|
54
|
-
|
|
53
|
+
export declare function SessionStorage(key?: string, expiredAt?: number, expiredUnit?: ExpiredUnit): (target: any, propertyName: string) => void;
|
|
55
54
|
/**
|
|
56
55
|
* @internal
|
|
57
56
|
* @param storage
|
|
@@ -59,43 +58,36 @@ declare function SessionStorage(key?: string, expiredAt?: number, expiredUnit?:
|
|
|
59
58
|
* @param expiredAt
|
|
60
59
|
* @param expiredUnit
|
|
61
60
|
*/
|
|
62
|
-
declare function WebStorage(storage: Storage | null, key?: string, expiredAt?: number, expiredUnit?: ExpiredUnit): (target: any, propertyName: string) => void;
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<StorageService>;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
declare class EphemeralStorageService extends StorageService {
|
|
83
|
-
constructor();
|
|
84
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<EphemeralStorageService, never>;
|
|
85
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<EphemeralStorageService>;
|
|
61
|
+
export declare function WebStorage(storage: Storage | null, key?: string, expiredAt?: number, expiredUnit?: ExpiredUnit): (target: any, propertyName: string) => void;
|
|
62
|
+
export declare abstract class StorageService {
|
|
63
|
+
private storage;
|
|
64
|
+
protected constructor(storage: Storage | null);
|
|
65
|
+
has(key: string): boolean;
|
|
66
|
+
get(key: string): any;
|
|
67
|
+
set(key: string, value: any, expiredAt?: number, expiredUnit?: ExpiredUnit): void;
|
|
68
|
+
/**
|
|
69
|
+
* Removes the specified key, e.g.:
|
|
70
|
+
* - `remove('key')` Remove `key` key
|
|
71
|
+
* - `remove(/BMap_\w+/)` Bulk delete all keys starting with BMap_
|
|
72
|
+
* @param key key name or regular expression
|
|
73
|
+
*/
|
|
74
|
+
remove(key: string | RegExp): void;
|
|
75
|
+
clear(): void;
|
|
76
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<StorageService, never>;
|
|
77
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
86
78
|
}
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<LocalStorageService>;
|
|
79
|
+
export declare class EphemeralStorageService extends StorageService {
|
|
80
|
+
constructor();
|
|
81
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<EphemeralStorageService, never>;
|
|
82
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
92
83
|
}
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<SessionStorageService>;
|
|
84
|
+
export declare class LocalStorageService extends StorageService {
|
|
85
|
+
constructor();
|
|
86
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LocalStorageService, never>;
|
|
87
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
98
88
|
}
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
89
|
+
export declare class SessionStorageService extends StorageService {
|
|
90
|
+
constructor();
|
|
91
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SessionStorageService, never>;
|
|
92
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
93
|
+
}
|