@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.
Files changed (115) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/compodoc/architecture.html +222 -0
  3. package/compodoc/changelog.html +57 -5
  4. package/compodoc/classes/MockStorage.html +114 -37
  5. package/compodoc/dependencies.html +80 -13
  6. package/compodoc/index.html +46 -5
  7. package/compodoc/injectables/EphemeralStorageService.html +107 -24
  8. package/compodoc/injectables/LocalStorageService.html +107 -24
  9. package/compodoc/injectables/SessionStorageService.html +107 -24
  10. package/compodoc/injectables/StorageService.html +96 -18
  11. package/compodoc/js/architecture-graph.js +288 -0
  12. package/compodoc/js/libs/bootstrap-native.js +4 -2
  13. package/compodoc/js/libs/jszip.min.js +13 -0
  14. package/compodoc/js/libs/svg-pan-zoom.min.js +3 -3
  15. package/compodoc/js/libs/tablesort.min.js +3 -3
  16. package/compodoc/js/libs/tablesort.number.min.js +3 -3
  17. package/compodoc/js/libs/vis-network.min.js +78 -0
  18. package/compodoc/js/menu-wc.js +25 -12
  19. package/compodoc/js/menu.js +10 -11
  20. package/compodoc/js/routes/routes_index.js +1 -0
  21. package/compodoc/js/routes.js +142 -34
  22. package/compodoc/js/search/search-lunr.js +6 -8
  23. package/compodoc/js/search/search.js +118 -66
  24. package/compodoc/js/search/search_index.js +2 -2
  25. package/compodoc/js/tabs.js +98 -15
  26. package/compodoc/js/tree.js +44 -7
  27. package/compodoc/license.html +48 -6
  28. package/compodoc/llms.txt +106 -0
  29. package/compodoc/miscellaneous/functions.html +75 -23
  30. package/compodoc/miscellaneous/typealiases.html +46 -4
  31. package/compodoc/miscellaneous/variables.html +58 -5
  32. package/compodoc/modules.html +44 -3
  33. package/compodoc/overview.html +54 -3
  34. package/compodoc/properties.html +45 -4
  35. package/compodoc/routes.html +227 -0
  36. package/compodoc/styles/compodoc.css +365 -44
  37. package/compodoc/styles/dark.css +16 -0
  38. package/compodoc/template-playground/default-templates.json +192 -0
  39. package/compodoc/template-playground/hbs-render.service.ts +217 -0
  40. package/compodoc/template-playground/main.ts +9 -0
  41. package/compodoc/template-playground/template-editor.service.ts +173 -0
  42. package/compodoc/template-playground/template-playground.component.ts +614 -0
  43. package/compodoc/template-playground/template-playground.module.ts +29 -0
  44. package/compodoc/template-playground/zip-export.service.ts +86 -0
  45. package/compodoc/template-playground-app/app.js +1389 -0
  46. package/compodoc/template-playground-app/index.html +462 -0
  47. package/compodoc/todo.html +45 -60
  48. package/docs/documentation.json +490 -415
  49. package/docs/html/assets/highlight.css +1 -1
  50. package/docs/html/assets/icons.js +1 -1
  51. package/docs/html/assets/icons.svg +1 -1
  52. package/docs/html/assets/main.js +5 -5
  53. package/docs/html/assets/search.js +1 -1
  54. package/docs/html/assets/style.css +265 -228
  55. package/docs/html/classes/EphemeralStorageService.html +151 -9
  56. package/docs/html/classes/LocalStorageService.html +151 -9
  57. package/docs/html/classes/MockStorage.html +185 -15
  58. package/docs/html/classes/SessionStorageService.html +151 -9
  59. package/docs/html/classes/StorageService.html +151 -9
  60. package/docs/html/functions/LocalStorage.html +52 -5
  61. package/docs/html/functions/SessionStorage.html +52 -5
  62. package/docs/html/functions/StorageGet.html +43 -1
  63. package/docs/html/functions/StorageHas.html +43 -1
  64. package/docs/html/functions/StorageKey.html +43 -1
  65. package/docs/html/functions/StorageRemove.html +43 -1
  66. package/docs/html/functions/StorageSet.html +46 -1
  67. package/docs/html/functions/WebStorage.html +45 -1
  68. package/docs/html/functions/getExpired.html +43 -1
  69. package/docs/html/functions/stringify.html +42 -1
  70. package/docs/html/hierarchy.html +35 -1
  71. package/docs/html/index.html +40 -4
  72. package/docs/html/modules.html +48 -1
  73. package/docs/html/types/ExpiredUnit.html +35 -2
  74. package/docs/html/variables/isBrowser.html +35 -2
  75. package/docs/markdown/README.md +1 -1
  76. package/docs/markdown/classes/EphemeralStorageService.md +17 -17
  77. package/docs/markdown/classes/LocalStorageService.md +17 -17
  78. package/docs/markdown/classes/MockStorage.md +22 -22
  79. package/docs/markdown/classes/SessionStorageService.md +17 -17
  80. package/docs/markdown/classes/StorageService.md +18 -18
  81. package/docs/markdown/functions/LocalStorage.md +4 -18
  82. package/docs/markdown/functions/SessionStorage.md +4 -18
  83. package/docs/markdown/functions/StorageGet.md +3 -3
  84. package/docs/markdown/functions/StorageHas.md +3 -3
  85. package/docs/markdown/functions/StorageKey.md +5 -5
  86. package/docs/markdown/functions/StorageRemove.md +3 -3
  87. package/docs/markdown/functions/StorageSet.md +6 -6
  88. package/docs/markdown/functions/WebStorage.md +5 -19
  89. package/docs/markdown/functions/getExpired.md +2 -2
  90. package/docs/markdown/functions/stringify.md +2 -2
  91. package/docs/markdown/globals.md +2 -2
  92. package/docs/markdown/type-aliases/ExpiredUnit.md +3 -3
  93. package/docs/markdown/variables/isBrowser.md +2 -2
  94. package/docs/wiki/Class.EphemeralStorageService.md +16 -16
  95. package/docs/wiki/Class.LocalStorageService.md +16 -16
  96. package/docs/wiki/Class.MockStorage.md +21 -21
  97. package/docs/wiki/Class.SessionStorageService.md +16 -16
  98. package/docs/wiki/Class.StorageService.md +17 -17
  99. package/docs/wiki/Function.LocalStorage.md +3 -17
  100. package/docs/wiki/Function.SessionStorage.md +3 -17
  101. package/docs/wiki/Function.StorageGet.md +2 -2
  102. package/docs/wiki/Function.StorageHas.md +2 -2
  103. package/docs/wiki/Function.StorageKey.md +4 -4
  104. package/docs/wiki/Function.StorageRemove.md +2 -2
  105. package/docs/wiki/Function.StorageSet.md +5 -5
  106. package/docs/wiki/Function.WebStorage.md +4 -18
  107. package/docs/wiki/Function.getExpired.md +1 -1
  108. package/docs/wiki/Function.stringify.md +1 -1
  109. package/docs/wiki/TypeAlias.ExpiredUnit.md +2 -2
  110. package/docs/wiki/Variable.isBrowser.md +1 -1
  111. package/docs/wiki/globals.md +1 -1
  112. package/fesm2022/rxap-ngx-memory.mjs +260 -258
  113. package/fesm2022/rxap-ngx-memory.mjs.map +1 -1
  114. package/package.json +6 -6
  115. package/types/rxap-ngx-memory.d.ts +53 -61
@@ -1,5 +1,7 @@
1
- import * as i0 from '@angular/core';
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
- cache: Record<string, string>;
29
- get length(): number;
30
- getItem(key: string): string | null;
31
- key(index: number): string | null;
32
- removeItem(key: string): void;
33
- setItem(key: string, value: string): void;
34
- clear(): void;
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
- declare abstract class StorageService {
65
- private storage;
66
- protected constructor(storage: Storage | null);
67
- has(key: string): boolean;
68
- get(key: string): any;
69
- set(key: string, value: any, expiredAt?: number, expiredUnit?: ExpiredUnit): void;
70
- /**
71
- * Removes the specified key, e.g.:
72
- * - `remove('key')` Remove `key` key
73
- * - `remove(/BMap_\w+/)` Bulk delete all keys starting with BMap_
74
- * @param key key name or regular expression
75
- */
76
- remove(key: string | RegExp): void;
77
- clear(): void;
78
- static ɵfac: i0.ɵɵFactoryDeclaration<StorageService, never>;
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
- declare class LocalStorageService extends StorageService {
89
- constructor();
90
- static ɵfac: i0.ɵɵFactoryDeclaration<LocalStorageService, never>;
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
- declare class SessionStorageService extends StorageService {
95
- constructor();
96
- static ɵfac: i0.ɵɵFactoryDeclaration<SessionStorageService, never>;
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
- export { EphemeralStorageService, LocalStorage, LocalStorageService, MockStorage, SessionStorage, SessionStorageService, StorageGet, StorageHas, StorageKey, StorageRemove, StorageService, StorageSet, WebStorage, getExpired, isBrowser, stringify };
101
- export type { ExpiredUnit };
89
+ export declare class SessionStorageService extends StorageService {
90
+ constructor();
91
+ static ɵfac: i0.ɵɵFactoryDeclaration<SessionStorageService, never>;
92
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
93
+ }