@rxap/services 19.1.0-dev.0 → 21.0.1-dev.0
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 +19 -0
- package/compodoc/changelog.html +16 -0
- package/compodoc/dependencies.html +6 -6
- package/compodoc/js/search/search_index.js +2 -2
- package/compodoc/properties.html +1 -1
- package/docs/documentation.json +51 -51
- package/docs/html/classes/AvatarImageService.html +2 -2
- package/docs/html/classes/ImageLoaderService.html +2 -2
- package/docs/html/classes/LoadingIndicatorService.html +3 -3
- package/docs/html/classes/ResetService.html +2 -2
- package/docs/html/classes/WindowContainerSidenavService.html +2 -2
- package/docs/html/index.html +2 -2
- package/docs/html/interfaces/ContainerComponent.html +2 -2
- package/docs/html/modules.html +1 -1
- package/docs/markdown/README.md +1 -1
- package/docs/markdown/classes/AvatarImageService.md +3 -3
- package/docs/markdown/classes/ImageLoaderService.md +3 -3
- package/docs/markdown/classes/LoadingIndicatorService.md +8 -8
- package/docs/markdown/classes/ResetService.md +7 -7
- package/docs/markdown/classes/WindowContainerSidenavService.md +7 -7
- package/docs/markdown/globals.md +2 -2
- package/docs/markdown/interfaces/ContainerComponent.md +8 -8
- package/docs/wiki/Class.AvatarImageService.md +2 -2
- package/docs/wiki/Class.ImageLoaderService.md +2 -2
- package/docs/wiki/Class.LoadingIndicatorService.md +7 -7
- package/docs/wiki/Class.ResetService.md +6 -6
- package/docs/wiki/Class.WindowContainerSidenavService.md +6 -6
- package/docs/wiki/Interface.ContainerComponent.md +7 -7
- package/docs/wiki/globals.md +1 -1
- package/fesm2022/rxap-services.mjs +15 -15
- package/fesm2022/rxap-services.mjs.map +1 -1
- package/package.json +15 -14
- package/types/rxap-services.d.ts +64 -0
- package/index.d.ts +0 -5
- package/lib/avatar-image.service.d.ts +0 -8
- package/lib/image-loader.service.d.ts +0 -8
- package/lib/loading-indicator.service.d.ts +0 -15
- package/lib/reset.service.d.ts +0 -11
- package/lib/window-container-sidenav.service.d.ts +0 -21
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# Class: ResetService
|
|
4
4
|
|
|
5
|
-
Defined in: [reset.service.ts:5](https://gitlab.com/rxap/packages/-/blob/
|
|
5
|
+
Defined in: [reset.service.ts:5](https://gitlab.com/rxap/packages/-/blob/b20edab0a4af1993e07e7860064bb449d7fa067b/packages/angular/services/src/lib/reset.service.ts#L5)
|
|
6
6
|
|
|
7
7
|
## Constructors
|
|
8
8
|
|
|
@@ -20,7 +20,7 @@ Defined in: [reset.service.ts:5](https://gitlab.com/rxap/packages/-/blob/c440f5c
|
|
|
20
20
|
|
|
21
21
|
> **dataSource$**: `Subject`\<`void`\>
|
|
22
22
|
|
|
23
|
-
Defined in: [reset.service.ts:8](https://gitlab.com/rxap/packages/-/blob/
|
|
23
|
+
Defined in: [reset.service.ts:8](https://gitlab.com/rxap/packages/-/blob/b20edab0a4af1993e07e7860064bb449d7fa067b/packages/angular/services/src/lib/reset.service.ts#L8)
|
|
24
24
|
|
|
25
25
|
***
|
|
26
26
|
|
|
@@ -28,7 +28,7 @@ Defined in: [reset.service.ts:8](https://gitlab.com/rxap/packages/-/blob/c440f5c
|
|
|
28
28
|
|
|
29
29
|
> **view$**: `Subject`\<`void`\>
|
|
30
30
|
|
|
31
|
-
Defined in: [reset.service.ts:7](https://gitlab.com/rxap/packages/-/blob/
|
|
31
|
+
Defined in: [reset.service.ts:7](https://gitlab.com/rxap/packages/-/blob/b20edab0a4af1993e07e7860064bb449d7fa067b/packages/angular/services/src/lib/reset.service.ts#L7)
|
|
32
32
|
|
|
33
33
|
## Methods
|
|
34
34
|
|
|
@@ -36,7 +36,7 @@ Defined in: [reset.service.ts:7](https://gitlab.com/rxap/packages/-/blob/c440f5c
|
|
|
36
36
|
|
|
37
37
|
> **resetAll**(): `void`
|
|
38
38
|
|
|
39
|
-
Defined in: [reset.service.ts:19](https://gitlab.com/rxap/packages/-/blob/
|
|
39
|
+
Defined in: [reset.service.ts:19](https://gitlab.com/rxap/packages/-/blob/b20edab0a4af1993e07e7860064bb449d7fa067b/packages/angular/services/src/lib/reset.service.ts#L19)
|
|
40
40
|
|
|
41
41
|
#### Returns
|
|
42
42
|
|
|
@@ -48,7 +48,7 @@ Defined in: [reset.service.ts:19](https://gitlab.com/rxap/packages/-/blob/c440f5
|
|
|
48
48
|
|
|
49
49
|
> **resetDataSource**(): `void`
|
|
50
50
|
|
|
51
|
-
Defined in: [reset.service.ts:14](https://gitlab.com/rxap/packages/-/blob/
|
|
51
|
+
Defined in: [reset.service.ts:14](https://gitlab.com/rxap/packages/-/blob/b20edab0a4af1993e07e7860064bb449d7fa067b/packages/angular/services/src/lib/reset.service.ts#L14)
|
|
52
52
|
|
|
53
53
|
#### Returns
|
|
54
54
|
|
|
@@ -60,7 +60,7 @@ Defined in: [reset.service.ts:14](https://gitlab.com/rxap/packages/-/blob/c440f5
|
|
|
60
60
|
|
|
61
61
|
> **resetView**(): `void`
|
|
62
62
|
|
|
63
|
-
Defined in: [reset.service.ts:10](https://gitlab.com/rxap/packages/-/blob/
|
|
63
|
+
Defined in: [reset.service.ts:10](https://gitlab.com/rxap/packages/-/blob/b20edab0a4af1993e07e7860064bb449d7fa067b/packages/angular/services/src/lib/reset.service.ts#L10)
|
|
64
64
|
|
|
65
65
|
#### Returns
|
|
66
66
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# Class: WindowContainerSidenavService
|
|
4
4
|
|
|
5
|
-
Defined in: [window-container-sidenav.service.ts:19](https://gitlab.com/rxap/packages/-/blob/
|
|
5
|
+
Defined in: [window-container-sidenav.service.ts:19](https://gitlab.com/rxap/packages/-/blob/b20edab0a4af1993e07e7860064bb449d7fa067b/packages/angular/services/src/lib/window-container-sidenav.service.ts#L19)
|
|
6
6
|
|
|
7
7
|
## Constructors
|
|
8
8
|
|
|
@@ -20,7 +20,7 @@ Defined in: [window-container-sidenav.service.ts:19](https://gitlab.com/rxap/pac
|
|
|
20
20
|
|
|
21
21
|
> **add$**: `Subject`\<[`ContainerComponent`](../wiki/Interface.ContainerComponent)\>
|
|
22
22
|
|
|
23
|
-
Defined in: [window-container-sidenav.service.ts:21](https://gitlab.com/rxap/packages/-/blob/
|
|
23
|
+
Defined in: [window-container-sidenav.service.ts:21](https://gitlab.com/rxap/packages/-/blob/b20edab0a4af1993e07e7860064bb449d7fa067b/packages/angular/services/src/lib/window-container-sidenav.service.ts#L21)
|
|
24
24
|
|
|
25
25
|
***
|
|
26
26
|
|
|
@@ -28,7 +28,7 @@ Defined in: [window-container-sidenav.service.ts:21](https://gitlab.com/rxap/pac
|
|
|
28
28
|
|
|
29
29
|
> **remove$**: `Subject`\<[`ContainerComponent`](../wiki/Interface.ContainerComponent)\>
|
|
30
30
|
|
|
31
|
-
Defined in: [window-container-sidenav.service.ts:22](https://gitlab.com/rxap/packages/-/blob/
|
|
31
|
+
Defined in: [window-container-sidenav.service.ts:22](https://gitlab.com/rxap/packages/-/blob/b20edab0a4af1993e07e7860064bb449d7fa067b/packages/angular/services/src/lib/window-container-sidenav.service.ts#L22)
|
|
32
32
|
|
|
33
33
|
## Methods
|
|
34
34
|
|
|
@@ -36,7 +36,7 @@ Defined in: [window-container-sidenav.service.ts:22](https://gitlab.com/rxap/pac
|
|
|
36
36
|
|
|
37
37
|
> **add**(`component`): `void`
|
|
38
38
|
|
|
39
|
-
Defined in: [window-container-sidenav.service.ts:25](https://gitlab.com/rxap/packages/-/blob/
|
|
39
|
+
Defined in: [window-container-sidenav.service.ts:25](https://gitlab.com/rxap/packages/-/blob/b20edab0a4af1993e07e7860064bb449d7fa067b/packages/angular/services/src/lib/window-container-sidenav.service.ts#L25)
|
|
40
40
|
|
|
41
41
|
#### Parameters
|
|
42
42
|
|
|
@@ -54,7 +54,7 @@ Defined in: [window-container-sidenav.service.ts:25](https://gitlab.com/rxap/pac
|
|
|
54
54
|
|
|
55
55
|
> **getAll**(): [`ContainerComponent`](../wiki/Interface.ContainerComponent)[]
|
|
56
56
|
|
|
57
|
-
Defined in: [window-container-sidenav.service.ts:41](https://gitlab.com/rxap/packages/-/blob/
|
|
57
|
+
Defined in: [window-container-sidenav.service.ts:41](https://gitlab.com/rxap/packages/-/blob/b20edab0a4af1993e07e7860064bb449d7fa067b/packages/angular/services/src/lib/window-container-sidenav.service.ts#L41)
|
|
58
58
|
|
|
59
59
|
#### Returns
|
|
60
60
|
|
|
@@ -66,7 +66,7 @@ Defined in: [window-container-sidenav.service.ts:41](https://gitlab.com/rxap/pac
|
|
|
66
66
|
|
|
67
67
|
> **remove**(`componentOrId`): `void`
|
|
68
68
|
|
|
69
|
-
Defined in: [window-container-sidenav.service.ts:33](https://gitlab.com/rxap/packages/-/blob/
|
|
69
|
+
Defined in: [window-container-sidenav.service.ts:33](https://gitlab.com/rxap/packages/-/blob/b20edab0a4af1993e07e7860064bb449d7fa067b/packages/angular/services/src/lib/window-container-sidenav.service.ts#L33)
|
|
70
70
|
|
|
71
71
|
#### Parameters
|
|
72
72
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# Interface: ContainerComponent
|
|
4
4
|
|
|
5
|
-
Defined in: [window-container-sidenav.service.ts:10](https://gitlab.com/rxap/packages/-/blob/
|
|
5
|
+
Defined in: [window-container-sidenav.service.ts:10](https://gitlab.com/rxap/packages/-/blob/b20edab0a4af1993e07e7860064bb449d7fa067b/packages/angular/services/src/lib/window-container-sidenav.service.ts#L10)
|
|
6
6
|
|
|
7
7
|
## Properties
|
|
8
8
|
|
|
@@ -10,15 +10,15 @@ Defined in: [window-container-sidenav.service.ts:10](https://gitlab.com/rxap/pac
|
|
|
10
10
|
|
|
11
11
|
> **component**: `Constructor`
|
|
12
12
|
|
|
13
|
-
Defined in: [window-container-sidenav.service.ts:12](https://gitlab.com/rxap/packages/-/blob/
|
|
13
|
+
Defined in: [window-container-sidenav.service.ts:12](https://gitlab.com/rxap/packages/-/blob/b20edab0a4af1993e07e7860064bb449d7fa067b/packages/angular/services/src/lib/window-container-sidenav.service.ts#L12)
|
|
14
14
|
|
|
15
15
|
***
|
|
16
16
|
|
|
17
17
|
### componentFactoryResolver?
|
|
18
18
|
|
|
19
|
-
> `optional` **componentFactoryResolver**: `null` \| `ComponentFactoryResolver
|
|
19
|
+
> `optional` **componentFactoryResolver**: `null` \| `ComponentFactoryResolver`
|
|
20
20
|
|
|
21
|
-
Defined in: [window-container-sidenav.service.ts:15](https://gitlab.com/rxap/packages/-/blob/
|
|
21
|
+
Defined in: [window-container-sidenav.service.ts:15](https://gitlab.com/rxap/packages/-/blob/b20edab0a4af1993e07e7860064bb449d7fa067b/packages/angular/services/src/lib/window-container-sidenav.service.ts#L15)
|
|
22
22
|
|
|
23
23
|
***
|
|
24
24
|
|
|
@@ -26,7 +26,7 @@ Defined in: [window-container-sidenav.service.ts:15](https://gitlab.com/rxap/pac
|
|
|
26
26
|
|
|
27
27
|
> **id**: `string`
|
|
28
28
|
|
|
29
|
-
Defined in: [window-container-sidenav.service.ts:11](https://gitlab.com/rxap/packages/-/blob/
|
|
29
|
+
Defined in: [window-container-sidenav.service.ts:11](https://gitlab.com/rxap/packages/-/blob/b20edab0a4af1993e07e7860064bb449d7fa067b/packages/angular/services/src/lib/window-container-sidenav.service.ts#L11)
|
|
30
30
|
|
|
31
31
|
***
|
|
32
32
|
|
|
@@ -34,7 +34,7 @@ Defined in: [window-container-sidenav.service.ts:11](https://gitlab.com/rxap/pac
|
|
|
34
34
|
|
|
35
35
|
> `optional` **injector**: `null` \| `Injector`
|
|
36
36
|
|
|
37
|
-
Defined in: [window-container-sidenav.service.ts:14](https://gitlab.com/rxap/packages/-/blob/
|
|
37
|
+
Defined in: [window-container-sidenav.service.ts:14](https://gitlab.com/rxap/packages/-/blob/b20edab0a4af1993e07e7860064bb449d7fa067b/packages/angular/services/src/lib/window-container-sidenav.service.ts#L14)
|
|
38
38
|
|
|
39
39
|
***
|
|
40
40
|
|
|
@@ -42,4 +42,4 @@ Defined in: [window-container-sidenav.service.ts:14](https://gitlab.com/rxap/pac
|
|
|
42
42
|
|
|
43
43
|
> `optional` **viewContainerRef**: `null` \| `ViewContainerRef`
|
|
44
44
|
|
|
45
|
-
Defined in: [window-container-sidenav.service.ts:13](https://gitlab.com/rxap/packages/-/blob/
|
|
45
|
+
Defined in: [window-container-sidenav.service.ts:13](https://gitlab.com/rxap/packages/-/blob/b20edab0a4af1993e07e7860064bb449d7fa067b/packages/angular/services/src/lib/window-container-sidenav.service.ts#L13)
|
package/docs/wiki/globals.md
CHANGED
|
@@ -11,10 +11,10 @@ class AvatarImageService {
|
|
|
11
11
|
params: new HttpParams({ fromObject: { name } }),
|
|
12
12
|
}).urlWithParams;
|
|
13
13
|
}
|
|
14
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
15
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
14
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AvatarImageService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
15
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AvatarImageService, providedIn: 'root' }); }
|
|
16
16
|
}
|
|
17
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
17
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AvatarImageService, decorators: [{
|
|
18
18
|
type: Injectable,
|
|
19
19
|
args: [{ providedIn: 'root' }]
|
|
20
20
|
}] });
|
|
@@ -44,10 +44,10 @@ class ImageLoaderService {
|
|
|
44
44
|
this.loading.set(imageSrc, loading);
|
|
45
45
|
return loading;
|
|
46
46
|
}
|
|
47
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
48
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
47
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: ImageLoaderService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
48
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: ImageLoaderService, providedIn: 'root' }); }
|
|
49
49
|
}
|
|
50
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
50
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: ImageLoaderService, decorators: [{
|
|
51
51
|
type: Injectable,
|
|
52
52
|
args: [{ providedIn: 'root' }]
|
|
53
53
|
}] });
|
|
@@ -74,10 +74,10 @@ class LoadingIndicatorService {
|
|
|
74
74
|
this.loading$.enable();
|
|
75
75
|
});
|
|
76
76
|
}
|
|
77
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
78
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
77
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: LoadingIndicatorService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
78
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: LoadingIndicatorService }); }
|
|
79
79
|
}
|
|
80
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
80
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: LoadingIndicatorService, decorators: [{
|
|
81
81
|
type: Injectable
|
|
82
82
|
}], ctorParameters: () => [] });
|
|
83
83
|
|
|
@@ -97,10 +97,10 @@ class ResetService {
|
|
|
97
97
|
this.resetDataSource();
|
|
98
98
|
this.resetView();
|
|
99
99
|
}
|
|
100
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
101
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
100
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: ResetService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
101
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: ResetService, providedIn: 'root' }); }
|
|
102
102
|
}
|
|
103
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
103
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: ResetService, decorators: [{
|
|
104
104
|
type: Injectable,
|
|
105
105
|
args: [{ providedIn: 'root' }]
|
|
106
106
|
}] });
|
|
@@ -128,10 +128,10 @@ class WindowContainerSidenavService {
|
|
|
128
128
|
getAll() {
|
|
129
129
|
return Array.from(this.components.values());
|
|
130
130
|
}
|
|
131
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
132
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
131
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: WindowContainerSidenavService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
132
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: WindowContainerSidenavService, providedIn: 'root' }); }
|
|
133
133
|
}
|
|
134
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
134
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: WindowContainerSidenavService, decorators: [{
|
|
135
135
|
type: Injectable,
|
|
136
136
|
args: [{ providedIn: 'root' }]
|
|
137
137
|
}] });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rxap-services.mjs","sources":["../../../../../packages/angular/services/src/lib/avatar-image.service.ts","../../../../../packages/angular/services/src/lib/image-loader.service.ts","../../../../../packages/angular/services/src/lib/loading-indicator.service.ts","../../../../../packages/angular/services/src/lib/reset.service.ts","../../../../../packages/angular/services/src/lib/window-container-sidenav.service.ts","../../../../../packages/angular/services/src/index.ts","../../../../../packages/angular/services/src/rxap-services.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\nimport { HttpParams, HttpRequest } from '@angular/common/http';\n\n@Injectable({ providedIn: 'root' })\nexport class AvatarImageService {\n\n public get({ name }: { name: string }): string {\n return new HttpRequest(\n 'GET',\n 'https://eu.ui-avatars.com/api',\n {\n params: new HttpParams({ fromObject: { name } }),\n },\n ).urlWithParams;\n }\n\n}\n","import { Injectable } from '@angular/core';\n\n@Injectable({ providedIn: 'root' })\nexport class ImageLoaderService {\n\n private readonly loading = new Map<string, Promise<void>>();\n private readonly loaded = new Map<string, true>();\n\n public load(imageSrc: string): Promise<void> {\n\n if (this.loaded.has(imageSrc)) {\n return Promise.resolve();\n }\n\n if (this.loading.has(imageSrc)) {\n return this.loading.get(imageSrc)!;\n }\n\n const loading = new Promise<void>((resolve, reject) => {\n const image = new Image();\n image.src = imageSrc;\n\n image.onerror = reject;\n image.onload = () => resolve();\n }).then(() => {\n this.loaded.set(imageSrc, true);\n }).finally(() => {\n this.loading.delete(imageSrc);\n });\n\n this.loading.set(imageSrc, loading);\n\n return loading;\n }\n\n}\n","import {\n Injectable,\n OnDestroy,\n} from '@angular/core';\nimport {\n Observable,\n Subscription,\n} from 'rxjs';\nimport {\n delay,\n map,\n} from 'rxjs/operators';\nimport { ToggleSubject } from '@rxap/rxjs';\n\n@Injectable()\nexport class LoadingIndicatorService implements OnDestroy {\n\n public isLoading$: Observable<boolean>;\n private readonly loading$ = new ToggleSubject(true);\n private readonly _attachedLoadingSubscription = new Subscription();\n\n constructor() {\n this.isLoading$ = this.loading$.asObservable();\n }\n\n public attachLoading(loading$: Observable<any>) {\n this._attachedLoadingSubscription.add(\n loading$.pipe(map(Boolean), delay(0)).subscribe(this.loading$.next),\n );\n }\n\n public ngOnDestroy() {\n this._attachedLoadingSubscription.unsubscribe();\n }\n\n public disable() {\n setTimeout(() => {\n this.loading$.disable();\n });\n }\n\n public enable() {\n setTimeout(() => {\n this.loading$.enable();\n });\n }\n\n}\n","import { Injectable } from '@angular/core';\nimport { Subject } from 'rxjs';\n\n@Injectable({ providedIn: 'root' })\nexport class ResetService {\n\n public view$ = new Subject<void>();\n public dataSource$ = new Subject<void>();\n\n public resetView() {\n this.view$.next();\n }\n\n public resetDataSource() {\n // TODO : iterate over the list of active DataSources\n this.dataSource$.next();\n }\n\n public resetAll() {\n this.resetDataSource();\n this.resetView();\n }\n\n}\n","import {\n ComponentFactoryResolver,\n Injectable,\n Injector,\n ViewContainerRef,\n} from '@angular/core';\nimport { Subject } from 'rxjs';\nimport { Constructor } from '@rxap/utilities';\n\nexport interface ContainerComponent {\n id: string;\n component: Constructor;\n viewContainerRef?: ViewContainerRef | null;\n injector?: Injector | null;\n componentFactoryResolver?: ComponentFactoryResolver | null;\n}\n\n@Injectable({ providedIn: 'root' })\nexport class WindowContainerSidenavService {\n\n public add$ = new Subject<ContainerComponent>();\n public remove$ = new Subject<ContainerComponent>();\n private components = new Map<string, ContainerComponent>();\n\n public add(component: ContainerComponent): void {\n if (this.components.has(component.id)) {\n this.remove$.next(component);\n }\n this.components.set(component.id, component);\n this.add$.next(component);\n }\n\n public remove(componentOrId: ContainerComponent | string): void {\n const id = typeof componentOrId === 'string' ? componentOrId : componentOrId.id;\n if (this.components.has(id)) {\n this.remove$.next(this.components.get(id)!);\n this.components.delete(id);\n }\n }\n\n public getAll(): ContainerComponent[] {\n return Array.from(this.components.values());\n }\n\n\n}\n","// region \nexport * from './lib/avatar-image.service';\nexport * from './lib/image-loader.service';\nexport * from './lib/loading-indicator.service';\nexport * from './lib/reset.service';\nexport * from './lib/window-container-sidenav.service';\n// endregion\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;MAIa,kBAAkB,CAAA;IAEtB,GAAG,CAAC,EAAE,IAAI,EAAoB,EAAA;AACnC,QAAA,OAAO,IAAI,WAAW,CACpB,KAAK,EACL,+BAA+B,EAC/B;YACE,MAAM,EAAE,IAAI,UAAU,CAAC,EAAE,UAAU,EAAE,EAAE,IAAI,EAAE,EAAE,CAAC;SACjD,CACF,CAAC,aAAa
|
|
1
|
+
{"version":3,"file":"rxap-services.mjs","sources":["../../../../../packages/angular/services/src/lib/avatar-image.service.ts","../../../../../packages/angular/services/src/lib/image-loader.service.ts","../../../../../packages/angular/services/src/lib/loading-indicator.service.ts","../../../../../packages/angular/services/src/lib/reset.service.ts","../../../../../packages/angular/services/src/lib/window-container-sidenav.service.ts","../../../../../packages/angular/services/src/index.ts","../../../../../packages/angular/services/src/rxap-services.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\nimport { HttpParams, HttpRequest } from '@angular/common/http';\n\n@Injectable({ providedIn: 'root' })\nexport class AvatarImageService {\n\n public get({ name }: { name: string }): string {\n return new HttpRequest(\n 'GET',\n 'https://eu.ui-avatars.com/api',\n {\n params: new HttpParams({ fromObject: { name } }),\n },\n ).urlWithParams;\n }\n\n}\n","import { Injectable } from '@angular/core';\n\n@Injectable({ providedIn: 'root' })\nexport class ImageLoaderService {\n\n private readonly loading = new Map<string, Promise<void>>();\n private readonly loaded = new Map<string, true>();\n\n public load(imageSrc: string): Promise<void> {\n\n if (this.loaded.has(imageSrc)) {\n return Promise.resolve();\n }\n\n if (this.loading.has(imageSrc)) {\n return this.loading.get(imageSrc)!;\n }\n\n const loading = new Promise<void>((resolve, reject) => {\n const image = new Image();\n image.src = imageSrc;\n\n image.onerror = reject;\n image.onload = () => resolve();\n }).then(() => {\n this.loaded.set(imageSrc, true);\n }).finally(() => {\n this.loading.delete(imageSrc);\n });\n\n this.loading.set(imageSrc, loading);\n\n return loading;\n }\n\n}\n","import {\n Injectable,\n OnDestroy,\n} from '@angular/core';\nimport {\n Observable,\n Subscription,\n} from 'rxjs';\nimport {\n delay,\n map,\n} from 'rxjs/operators';\nimport { ToggleSubject } from '@rxap/rxjs';\n\n@Injectable()\nexport class LoadingIndicatorService implements OnDestroy {\n\n public isLoading$: Observable<boolean>;\n private readonly loading$ = new ToggleSubject(true);\n private readonly _attachedLoadingSubscription = new Subscription();\n\n constructor() {\n this.isLoading$ = this.loading$.asObservable();\n }\n\n public attachLoading(loading$: Observable<any>) {\n this._attachedLoadingSubscription.add(\n loading$.pipe(map(Boolean), delay(0)).subscribe(this.loading$.next),\n );\n }\n\n public ngOnDestroy() {\n this._attachedLoadingSubscription.unsubscribe();\n }\n\n public disable() {\n setTimeout(() => {\n this.loading$.disable();\n });\n }\n\n public enable() {\n setTimeout(() => {\n this.loading$.enable();\n });\n }\n\n}\n","import { Injectable } from '@angular/core';\nimport { Subject } from 'rxjs';\n\n@Injectable({ providedIn: 'root' })\nexport class ResetService {\n\n public view$ = new Subject<void>();\n public dataSource$ = new Subject<void>();\n\n public resetView() {\n this.view$.next();\n }\n\n public resetDataSource() {\n // TODO : iterate over the list of active DataSources\n this.dataSource$.next();\n }\n\n public resetAll() {\n this.resetDataSource();\n this.resetView();\n }\n\n}\n","import {\n ComponentFactoryResolver,\n Injectable,\n Injector,\n ViewContainerRef,\n} from '@angular/core';\nimport { Subject } from 'rxjs';\nimport { Constructor } from '@rxap/utilities';\n\nexport interface ContainerComponent {\n id: string;\n component: Constructor;\n viewContainerRef?: ViewContainerRef | null;\n injector?: Injector | null;\n componentFactoryResolver?: ComponentFactoryResolver | null;\n}\n\n@Injectable({ providedIn: 'root' })\nexport class WindowContainerSidenavService {\n\n public add$ = new Subject<ContainerComponent>();\n public remove$ = new Subject<ContainerComponent>();\n private components = new Map<string, ContainerComponent>();\n\n public add(component: ContainerComponent): void {\n if (this.components.has(component.id)) {\n this.remove$.next(component);\n }\n this.components.set(component.id, component);\n this.add$.next(component);\n }\n\n public remove(componentOrId: ContainerComponent | string): void {\n const id = typeof componentOrId === 'string' ? componentOrId : componentOrId.id;\n if (this.components.has(id)) {\n this.remove$.next(this.components.get(id)!);\n this.components.delete(id);\n }\n }\n\n public getAll(): ContainerComponent[] {\n return Array.from(this.components.values());\n }\n\n\n}\n","// region \nexport * from './lib/avatar-image.service';\nexport * from './lib/image-loader.service';\nexport * from './lib/loading-indicator.service';\nexport * from './lib/reset.service';\nexport * from './lib/window-container-sidenav.service';\n// endregion\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;MAIa,kBAAkB,CAAA;IAEtB,GAAG,CAAC,EAAE,IAAI,EAAoB,EAAA;AACnC,QAAA,OAAO,IAAI,WAAW,CACpB,KAAK,EACL,+BAA+B,EAC/B;YACE,MAAM,EAAE,IAAI,UAAU,CAAC,EAAE,UAAU,EAAE,EAAE,IAAI,EAAE,EAAE,CAAC;SACjD,CACF,CAAC,aAAa;IACjB;8GAVW,kBAAkB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;AAAlB,IAAA,SAAA,IAAA,CAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,kBAAkB,cADL,MAAM,EAAA,CAAA,CAAA;;2FACnB,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAD9B,UAAU;mBAAC,EAAE,UAAU,EAAE,MAAM,EAAE;;;MCArB,kBAAkB,C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AC,EAAE,EAAE,SAAS,CAAC;AAC5C,QAAA,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC;IAC3B;AAEO,IAAA,MAAM,CAAC,aAA0C,EAAA;AACtD,QAAA,MAAM,EAAE,GAAG,OAAO,aAAa,KAAK,QAAQ,GAAG,aAAa,GAAG,aAAa,CAAC,EAAE;QAC/E,IAAI,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE;AAC3B,YAAA,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,EAAE,CAAE,CAAC;AAC3C,YAAA,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,EAAE,CAAC;QAC5B;IACF;IAEO,MAAM,GAAA;QACX,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,MAAM,EAAE,CAAC;IAC7C;8GAxBW,6BAA6B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;AAA7B,IAAA,SAAA,IAAA,CAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,6BAA6B,cADhB,MAAM,EAAA,CAAA,CAAA;;2FACnB,6BAA6B,EAAA,UAAA,EAAA,CAAA;kBADzC,UAAU;mBAAC,EAAE,UAAU,EAAE,MAAM,EAAE;;;ACjBlC;AAMA;;ACNA;;AAEG;;;;"}
|
package/package.json
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "
|
|
2
|
+
"version": "21.0.1-dev.0",
|
|
3
3
|
"name": "@rxap/services",
|
|
4
4
|
"description": "Provides Angular services for common tasks such as loading images, managing loading indicators, resetting data, and managing components in a window container sidenav. It also includes a service to generate avatar images. This package offers reusable services to simplify development in Angular applications.\n",
|
|
5
5
|
"license": "GPL-3.0-or-later",
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"@nx/devkit": "
|
|
7
|
+
"@nx/devkit": "22.7.5",
|
|
8
8
|
"tslib": "2.6.2"
|
|
9
9
|
},
|
|
10
10
|
"peerDependencies": {
|
|
11
|
-
"@angular/common": "^
|
|
12
|
-
"@angular/core": "^
|
|
13
|
-
"@rxap/rxjs": "^1.1.
|
|
14
|
-
"@rxap/utilities": "^16.5.
|
|
15
|
-
"rxjs": "^7.8.
|
|
11
|
+
"@angular/common": "^21.2.9",
|
|
12
|
+
"@angular/core": "^21.2.9",
|
|
13
|
+
"@rxap/rxjs": "^1.1.18-dev.0",
|
|
14
|
+
"@rxap/utilities": "^16.5.2-dev.0",
|
|
15
|
+
"rxjs": "^7.8.2"
|
|
16
16
|
},
|
|
17
17
|
"author": {
|
|
18
18
|
"name": "Merzough Münker",
|
|
@@ -37,19 +37,19 @@
|
|
|
37
37
|
"packageGroup": [
|
|
38
38
|
{
|
|
39
39
|
"package": "@angular/common",
|
|
40
|
-
"version": "
|
|
40
|
+
"version": "21.2.9"
|
|
41
41
|
},
|
|
42
42
|
{
|
|
43
43
|
"package": "@angular/core",
|
|
44
|
-
"version": "
|
|
44
|
+
"version": "21.2.9"
|
|
45
45
|
},
|
|
46
46
|
{
|
|
47
47
|
"package": "@rxap/rxjs",
|
|
48
|
-
"version": "1.1.
|
|
48
|
+
"version": "1.1.18-dev.0"
|
|
49
49
|
},
|
|
50
50
|
{
|
|
51
51
|
"package": "@rxap/utilities",
|
|
52
|
-
"version": "16.5.
|
|
52
|
+
"version": "16.5.2-dev.0"
|
|
53
53
|
}
|
|
54
54
|
]
|
|
55
55
|
},
|
|
@@ -65,15 +65,16 @@
|
|
|
65
65
|
"schematics": "./generators.json",
|
|
66
66
|
"sideEffects": false,
|
|
67
67
|
"module": "fesm2022/rxap-services.mjs",
|
|
68
|
-
"typings": "
|
|
68
|
+
"typings": "types/rxap-services.d.ts",
|
|
69
69
|
"exports": {
|
|
70
70
|
"./package.json": {
|
|
71
71
|
"default": "./package.json"
|
|
72
72
|
},
|
|
73
73
|
".": {
|
|
74
|
-
"types": "./
|
|
74
|
+
"types": "./types/rxap-services.d.ts",
|
|
75
75
|
"default": "./fesm2022/rxap-services.mjs"
|
|
76
76
|
},
|
|
77
77
|
"./theme": "./theme.css"
|
|
78
|
-
}
|
|
78
|
+
},
|
|
79
|
+
"type": "module"
|
|
79
80
|
}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { OnDestroy, ViewContainerRef, Injector, ComponentFactoryResolver } from '@angular/core';
|
|
3
|
+
import { Observable, Subject } from 'rxjs';
|
|
4
|
+
import { Constructor } from '@rxap/utilities';
|
|
5
|
+
|
|
6
|
+
declare class AvatarImageService {
|
|
7
|
+
get({ name }: {
|
|
8
|
+
name: string;
|
|
9
|
+
}): string;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AvatarImageService, never>;
|
|
11
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AvatarImageService>;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
declare class ImageLoaderService {
|
|
15
|
+
private readonly loading;
|
|
16
|
+
private readonly loaded;
|
|
17
|
+
load(imageSrc: string): Promise<void>;
|
|
18
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ImageLoaderService, never>;
|
|
19
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ImageLoaderService>;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
declare class LoadingIndicatorService implements OnDestroy {
|
|
23
|
+
isLoading$: Observable<boolean>;
|
|
24
|
+
private readonly loading$;
|
|
25
|
+
private readonly _attachedLoadingSubscription;
|
|
26
|
+
constructor();
|
|
27
|
+
attachLoading(loading$: Observable<any>): void;
|
|
28
|
+
ngOnDestroy(): void;
|
|
29
|
+
disable(): void;
|
|
30
|
+
enable(): void;
|
|
31
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LoadingIndicatorService, never>;
|
|
32
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<LoadingIndicatorService>;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
declare class ResetService {
|
|
36
|
+
view$: Subject<void>;
|
|
37
|
+
dataSource$: Subject<void>;
|
|
38
|
+
resetView(): void;
|
|
39
|
+
resetDataSource(): void;
|
|
40
|
+
resetAll(): void;
|
|
41
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ResetService, never>;
|
|
42
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ResetService>;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
interface ContainerComponent {
|
|
46
|
+
id: string;
|
|
47
|
+
component: Constructor;
|
|
48
|
+
viewContainerRef?: ViewContainerRef | null;
|
|
49
|
+
injector?: Injector | null;
|
|
50
|
+
componentFactoryResolver?: ComponentFactoryResolver | null;
|
|
51
|
+
}
|
|
52
|
+
declare class WindowContainerSidenavService {
|
|
53
|
+
add$: Subject<ContainerComponent>;
|
|
54
|
+
remove$: Subject<ContainerComponent>;
|
|
55
|
+
private components;
|
|
56
|
+
add(component: ContainerComponent): void;
|
|
57
|
+
remove(componentOrId: ContainerComponent | string): void;
|
|
58
|
+
getAll(): ContainerComponent[];
|
|
59
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<WindowContainerSidenavService, never>;
|
|
60
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<WindowContainerSidenavService>;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export { AvatarImageService, ImageLoaderService, LoadingIndicatorService, ResetService, WindowContainerSidenavService };
|
|
64
|
+
export type { ContainerComponent };
|
package/index.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
export declare class ImageLoaderService {
|
|
3
|
-
private readonly loading;
|
|
4
|
-
private readonly loaded;
|
|
5
|
-
load(imageSrc: string): Promise<void>;
|
|
6
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ImageLoaderService, never>;
|
|
7
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<ImageLoaderService>;
|
|
8
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { OnDestroy } from '@angular/core';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class LoadingIndicatorService implements OnDestroy {
|
|
5
|
-
isLoading$: Observable<boolean>;
|
|
6
|
-
private readonly loading$;
|
|
7
|
-
private readonly _attachedLoadingSubscription;
|
|
8
|
-
constructor();
|
|
9
|
-
attachLoading(loading$: Observable<any>): void;
|
|
10
|
-
ngOnDestroy(): void;
|
|
11
|
-
disable(): void;
|
|
12
|
-
enable(): void;
|
|
13
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<LoadingIndicatorService, never>;
|
|
14
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<LoadingIndicatorService>;
|
|
15
|
-
}
|
package/lib/reset.service.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { Subject } from 'rxjs';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class ResetService {
|
|
4
|
-
view$: Subject<void>;
|
|
5
|
-
dataSource$: Subject<void>;
|
|
6
|
-
resetView(): void;
|
|
7
|
-
resetDataSource(): void;
|
|
8
|
-
resetAll(): void;
|
|
9
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ResetService, never>;
|
|
10
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<ResetService>;
|
|
11
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { ComponentFactoryResolver, Injector, ViewContainerRef } from '@angular/core';
|
|
2
|
-
import { Subject } from 'rxjs';
|
|
3
|
-
import { Constructor } from '@rxap/utilities';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export interface ContainerComponent {
|
|
6
|
-
id: string;
|
|
7
|
-
component: Constructor;
|
|
8
|
-
viewContainerRef?: ViewContainerRef | null;
|
|
9
|
-
injector?: Injector | null;
|
|
10
|
-
componentFactoryResolver?: ComponentFactoryResolver | null;
|
|
11
|
-
}
|
|
12
|
-
export declare class WindowContainerSidenavService {
|
|
13
|
-
add$: Subject<ContainerComponent>;
|
|
14
|
-
remove$: Subject<ContainerComponent>;
|
|
15
|
-
private components;
|
|
16
|
-
add(component: ContainerComponent): void;
|
|
17
|
-
remove(componentOrId: ContainerComponent | string): void;
|
|
18
|
-
getAll(): ContainerComponent[];
|
|
19
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<WindowContainerSidenavService, never>;
|
|
20
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<WindowContainerSidenavService>;
|
|
21
|
-
}
|