@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
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
# Function: SessionStorage()
|
|
4
4
|
|
|
5
|
-
> **SessionStorage**(`key
|
|
5
|
+
> **SessionStorage**(`key?`, `expiredAt?`, `expiredUnit?`): (`target`, `propertyName`) => `void`
|
|
6
6
|
|
|
7
|
-
Defined in: [decorators/session-storage.ts:14](https://gitlab.com/rxap/packages/-/blob/
|
|
7
|
+
Defined in: [decorators/session-storage.ts:14](https://gitlab.com/rxap/packages/-/blob/947fa470d880611063dad4f2b0b1c759b5b07f1b/packages/angular/memory/src/lib/decorators/session-storage.ts#L14)
|
|
8
8
|
|
|
9
9
|
`sessionStorage` Decorator
|
|
10
10
|
|
|
@@ -30,18 +30,4 @@ Expiration time unit (default: custom [unit: ms])
|
|
|
30
30
|
|
|
31
31
|
## Returns
|
|
32
32
|
|
|
33
|
-
`
|
|
34
|
-
|
|
35
|
-
### Parameters
|
|
36
|
-
|
|
37
|
-
#### target
|
|
38
|
-
|
|
39
|
-
`any`
|
|
40
|
-
|
|
41
|
-
#### propertyName
|
|
42
|
-
|
|
43
|
-
`string`
|
|
44
|
-
|
|
45
|
-
### Returns
|
|
46
|
-
|
|
47
|
-
`void`
|
|
33
|
+
(`target`, `propertyName`) => `void`
|
|
@@ -4,13 +4,13 @@
|
|
|
4
4
|
|
|
5
5
|
> **StorageGet**(`storage`, `key`): `unknown`
|
|
6
6
|
|
|
7
|
-
Defined in: [storage-utility.ts:20](https://gitlab.com/rxap/packages/-/blob/
|
|
7
|
+
Defined in: [storage-utility.ts:20](https://gitlab.com/rxap/packages/-/blob/947fa470d880611063dad4f2b0b1c759b5b07f1b/packages/angular/memory/src/lib/storage-utility.ts#L20)
|
|
8
8
|
|
|
9
9
|
## Parameters
|
|
10
10
|
|
|
11
11
|
### storage
|
|
12
12
|
|
|
13
|
-
`
|
|
13
|
+
`Storage` \| `null`
|
|
14
14
|
|
|
15
15
|
### key
|
|
16
16
|
|
|
@@ -4,13 +4,13 @@
|
|
|
4
4
|
|
|
5
5
|
> **StorageHas**(`storage`, `key`): `boolean`
|
|
6
6
|
|
|
7
|
-
Defined in: [storage-utility.ts:37](https://gitlab.com/rxap/packages/-/blob/
|
|
7
|
+
Defined in: [storage-utility.ts:37](https://gitlab.com/rxap/packages/-/blob/947fa470d880611063dad4f2b0b1c759b5b07f1b/packages/angular/memory/src/lib/storage-utility.ts#L37)
|
|
8
8
|
|
|
9
9
|
## Parameters
|
|
10
10
|
|
|
11
11
|
### storage
|
|
12
12
|
|
|
13
|
-
`
|
|
13
|
+
`Storage` \| `null`
|
|
14
14
|
|
|
15
15
|
### key
|
|
16
16
|
|
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
# Function: StorageKey()
|
|
4
4
|
|
|
5
|
-
> **StorageKey**(`storage`, `index`): `
|
|
5
|
+
> **StorageKey**(`storage`, `index`): `string` \| `null`
|
|
6
6
|
|
|
7
|
-
Defined in: [storage-utility.ts:65](https://gitlab.com/rxap/packages/-/blob/
|
|
7
|
+
Defined in: [storage-utility.ts:65](https://gitlab.com/rxap/packages/-/blob/947fa470d880611063dad4f2b0b1c759b5b07f1b/packages/angular/memory/src/lib/storage-utility.ts#L65)
|
|
8
8
|
|
|
9
9
|
## Parameters
|
|
10
10
|
|
|
11
11
|
### storage
|
|
12
12
|
|
|
13
|
-
`
|
|
13
|
+
`Storage` \| `null`
|
|
14
14
|
|
|
15
15
|
### index
|
|
16
16
|
|
|
@@ -18,4 +18,4 @@ Defined in: [storage-utility.ts:65](https://gitlab.com/rxap/packages/-/blob/6150
|
|
|
18
18
|
|
|
19
19
|
## Returns
|
|
20
20
|
|
|
21
|
-
`
|
|
21
|
+
`string` \| `null`
|
|
@@ -4,13 +4,13 @@
|
|
|
4
4
|
|
|
5
5
|
> **StorageRemove**(`storage`, `key`): `void`
|
|
6
6
|
|
|
7
|
-
Defined in: [storage-utility.ts:58](https://gitlab.com/rxap/packages/-/blob/
|
|
7
|
+
Defined in: [storage-utility.ts:58](https://gitlab.com/rxap/packages/-/blob/947fa470d880611063dad4f2b0b1c759b5b07f1b/packages/angular/memory/src/lib/storage-utility.ts#L58)
|
|
8
8
|
|
|
9
9
|
## Parameters
|
|
10
10
|
|
|
11
11
|
### storage
|
|
12
12
|
|
|
13
|
-
`
|
|
13
|
+
`Storage` \| `null`
|
|
14
14
|
|
|
15
15
|
### key
|
|
16
16
|
|
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
# Function: StorageSet()
|
|
4
4
|
|
|
5
|
-
> **StorageSet**(`storage`, `key`, `value`, `expiredAt
|
|
5
|
+
> **StorageSet**(`storage`, `key`, `value`, `expiredAt?`, `expiredUnit?`): `void`
|
|
6
6
|
|
|
7
|
-
Defined in: [storage-utility.ts:44](https://gitlab.com/rxap/packages/-/blob/
|
|
7
|
+
Defined in: [storage-utility.ts:44](https://gitlab.com/rxap/packages/-/blob/947fa470d880611063dad4f2b0b1c759b5b07f1b/packages/angular/memory/src/lib/storage-utility.ts#L44)
|
|
8
8
|
|
|
9
9
|
## Parameters
|
|
10
10
|
|
|
11
11
|
### storage
|
|
12
12
|
|
|
13
|
-
`
|
|
13
|
+
`Storage` \| `null`
|
|
14
14
|
|
|
15
15
|
### key
|
|
16
16
|
|
|
@@ -20,11 +20,11 @@ Defined in: [storage-utility.ts:44](https://gitlab.com/rxap/packages/-/blob/6150
|
|
|
20
20
|
|
|
21
21
|
`any`
|
|
22
22
|
|
|
23
|
-
### expiredAt
|
|
23
|
+
### expiredAt?
|
|
24
24
|
|
|
25
25
|
`number` = `0`
|
|
26
26
|
|
|
27
|
-
### expiredUnit
|
|
27
|
+
### expiredUnit?
|
|
28
28
|
|
|
29
29
|
[`ExpiredUnit`](../wiki/TypeAlias.ExpiredUnit) = `'t'`
|
|
30
30
|
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
# Function: WebStorage()
|
|
4
4
|
|
|
5
|
-
> **WebStorage**(`storage`, `key
|
|
5
|
+
> **WebStorage**(`storage`, `key?`, `expiredAt?`, `expiredUnit?`): (`target`, `propertyName`) => `void`
|
|
6
6
|
|
|
7
|
-
Defined in: [decorators/web-storage.ts:16](https://gitlab.com/rxap/packages/-/blob/
|
|
7
|
+
Defined in: [decorators/web-storage.ts:16](https://gitlab.com/rxap/packages/-/blob/947fa470d880611063dad4f2b0b1c759b5b07f1b/packages/angular/memory/src/lib/decorators/web-storage.ts#L16)
|
|
8
8
|
|
|
9
9
|
**`Internal`**
|
|
10
10
|
|
|
@@ -12,7 +12,7 @@ Defined in: [decorators/web-storage.ts:16](https://gitlab.com/rxap/packages/-/bl
|
|
|
12
12
|
|
|
13
13
|
### storage
|
|
14
14
|
|
|
15
|
-
`
|
|
15
|
+
`Storage` \| `null`
|
|
16
16
|
|
|
17
17
|
### key?
|
|
18
18
|
|
|
@@ -28,18 +28,4 @@ Defined in: [decorators/web-storage.ts:16](https://gitlab.com/rxap/packages/-/bl
|
|
|
28
28
|
|
|
29
29
|
## Returns
|
|
30
30
|
|
|
31
|
-
`
|
|
32
|
-
|
|
33
|
-
### Parameters
|
|
34
|
-
|
|
35
|
-
#### target
|
|
36
|
-
|
|
37
|
-
`any`
|
|
38
|
-
|
|
39
|
-
#### propertyName
|
|
40
|
-
|
|
41
|
-
`string`
|
|
42
|
-
|
|
43
|
-
### Returns
|
|
44
|
-
|
|
45
|
-
`void`
|
|
31
|
+
(`target`, `propertyName`) => `void`
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
> **getExpired**(`val`, `unit`): `number`
|
|
6
6
|
|
|
7
|
-
Defined in: [storage-utility.ts:72](https://gitlab.com/rxap/packages/-/blob/
|
|
7
|
+
Defined in: [storage-utility.ts:72](https://gitlab.com/rxap/packages/-/blob/947fa470d880611063dad4f2b0b1c759b5b07f1b/packages/angular/memory/src/lib/storage-utility.ts#L72)
|
|
8
8
|
|
|
9
9
|
## Parameters
|
|
10
10
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
> **stringify**(`value`): `string`
|
|
6
6
|
|
|
7
|
-
Defined in: [storage-utility.ts:98](https://gitlab.com/rxap/packages/-/blob/
|
|
7
|
+
Defined in: [storage-utility.ts:98](https://gitlab.com/rxap/packages/-/blob/947fa470d880611063dad4f2b0b1c759b5b07f1b/packages/angular/memory/src/lib/storage-utility.ts#L98)
|
|
8
8
|
|
|
9
9
|
## Parameters
|
|
10
10
|
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
# Type Alias: ExpiredUnit
|
|
4
4
|
|
|
5
|
-
> **ExpiredUnit
|
|
5
|
+
> **ExpiredUnit** = `"s"` \| `"m"` \| `"h"` \| `"d"` \| `"w"` \| `"y"` \| `"t"`
|
|
6
6
|
|
|
7
|
-
Defined in: [storage-utility.ts:11](https://gitlab.com/rxap/packages/-/blob/
|
|
7
|
+
Defined in: [storage-utility.ts:11](https://gitlab.com/rxap/packages/-/blob/947fa470d880611063dad4f2b0b1c759b5b07f1b/packages/angular/memory/src/lib/storage-utility.ts#L11)
|
|
8
8
|
|
|
9
9
|
Expiration time unit
|
|
10
10
|
s: seconds
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
> `const` **isBrowser**: `boolean`
|
|
6
6
|
|
|
7
|
-
Defined in: [storage-utility.ts:18](https://gitlab.com/rxap/packages/-/blob/
|
|
7
|
+
Defined in: [storage-utility.ts:18](https://gitlab.com/rxap/packages/-/blob/947fa470d880611063dad4f2b0b1c759b5b07f1b/packages/angular/memory/src/lib/storage-utility.ts#L18)
|
|
8
8
|
|
|
9
9
|
Determining if an Angular application is rendered in the browser
|
|
10
10
|
The Angular `PLATFORM_ID` identifier cannot be used directly by the `decorator`.
|
package/docs/wiki/globals.md
CHANGED