@rxap/remote-method 21.0.1 → 22.0.0-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.
Files changed (52) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/compodoc/changelog.html +5 -0
  3. package/compodoc/dependencies.html +4 -4
  4. package/compodoc/js/search/search_index.js +2 -2
  5. package/compodoc/properties.html +1 -1
  6. package/docs/documentation.json +130 -130
  7. package/docs/html/classes/BaseRemoteMethod.html +10 -10
  8. package/docs/html/classes/ProxyRemoteMethod.html +10 -10
  9. package/docs/html/classes/RemoteMethodLoader.html +2 -2
  10. package/docs/html/classes/RxapRemoteMethodError.html +5 -5
  11. package/docs/html/functions/RxapRemoteMethod.html +1 -1
  12. package/docs/html/hierarchy.html +1 -1
  13. package/docs/html/index.html +2 -2
  14. package/docs/html/interfaces/BaseRemoteMethodMetadata.html +2 -2
  15. package/docs/html/modules.html +1 -1
  16. package/docs/html/variables/REMOTE_METHOD_META_DATA.html +1 -1
  17. package/docs/html/variables/RXAP_PROXY_REMOTE_METHOD_TARGET.html +1 -1
  18. package/docs/markdown/README.md +1 -1
  19. package/docs/markdown/classes/BaseRemoteMethod.md +31 -31
  20. package/docs/markdown/classes/ProxyRemoteMethod.md +32 -32
  21. package/docs/markdown/classes/RemoteMethodLoader.md +4 -4
  22. package/docs/markdown/classes/RxapRemoteMethodError.md +16 -16
  23. package/docs/markdown/functions/RxapRemoteMethod.md +2 -2
  24. package/docs/markdown/globals.md +2 -2
  25. package/docs/markdown/interfaces/BaseRemoteMethodMetadata.md +4 -4
  26. package/docs/markdown/variables/REMOTE_METHOD_META_DATA.md +2 -2
  27. package/docs/markdown/variables/RXAP_PROXY_REMOTE_METHOD_TARGET.md +2 -2
  28. package/docs/wiki/Class.BaseRemoteMethod.md +30 -30
  29. package/docs/wiki/Class.ProxyRemoteMethod.md +31 -31
  30. package/docs/wiki/Class.RemoteMethodLoader.md +3 -3
  31. package/docs/wiki/Class.RxapRemoteMethodError.md +15 -15
  32. package/docs/wiki/Function.RxapRemoteMethod.md +1 -1
  33. package/docs/wiki/Interface.BaseRemoteMethodMetadata.md +3 -3
  34. package/docs/wiki/Variable.REMOTE_METHOD_META_DATA.md +1 -1
  35. package/docs/wiki/Variable.RXAP_PROXY_REMOTE_METHOD_TARGET.md +1 -1
  36. package/docs/wiki/globals.md +1 -1
  37. package/fesm2022/rxap-remote-method-directive.mjs +804 -522
  38. package/fesm2022/rxap-remote-method-directive.mjs.map +1 -1
  39. package/fesm2022/rxap-remote-method-http-directive.mjs +352 -99
  40. package/fesm2022/rxap-remote-method-http-directive.mjs.map +1 -1
  41. package/fesm2022/rxap-remote-method-http.mjs +206 -162
  42. package/fesm2022/rxap-remote-method-http.mjs.map +1 -1
  43. package/fesm2022/rxap-remote-method-testing.mjs +37 -54
  44. package/fesm2022/rxap-remote-method-testing.mjs.map +1 -1
  45. package/fesm2022/rxap-remote-method.mjs +199 -134
  46. package/fesm2022/rxap-remote-method.mjs.map +1 -1
  47. package/package.json +8 -8
  48. package/types/rxap-remote-method-directive.d.ts +295 -203
  49. package/types/rxap-remote-method-http-directive.d.ts +104 -39
  50. package/types/rxap-remote-method-http.d.ts +63 -64
  51. package/types/rxap-remote-method-testing.d.ts +15 -16
  52. package/types/rxap-remote-method.d.ts +47 -48
@@ -1,136 +1,201 @@
1
- import * as i0 from '@angular/core';
2
- import { InjectionToken, computed, Injector, INJECTOR, Optional, Inject, Injectable } from '@angular/core';
3
- import { toSignal } from '@angular/core/rxjs-interop';
4
- import { DefinitionMetadata, BaseDefinition, DefinitionLoader } from '@rxap/definition';
5
- import { Subject } from 'rxjs';
6
- import { RxapError } from '@rxap/utilities';
7
- import { CounterSubject } from '@rxap/rxjs';
8
-
9
- const REMOTE_METHOD_META_DATA = new InjectionToken('rxap/remote-method/REMOTE_METHOD_META_DATA');
10
- const RXAP_PROXY_REMOTE_METHOD_TARGET = new InjectionToken('rxap/remote-method/proxy/target');
11
-
12
- class RxapRemoteMethodError extends RxapError {
13
- constructor(message, code, className) {
14
- super('@rxap/remote-method', message, code, className);
15
- }
16
- }
17
-
18
- function RxapRemoteMethod(metadataOrId, className = 'BaseRemoteMethod', packageName = '@rxap/remote-method') {
19
- return function (target) {
20
- DefinitionMetadata(metadataOrId, className, packageName)(target);
21
- };
22
- }
23
- class BaseRemoteMethod extends BaseDefinition {
24
- constructor(injector = null, metaData = null) {
25
- super(metaData);
26
- this.executed$ = new Subject();
27
- this.executionsInProgress$ = new CounterSubject();
28
- this.executionsInProgress = toSignal(this.executionsInProgress$, { initialValue: 0 });
29
- this.executing = computed(() => this.executionsInProgress() > 0, ...(ngDevMode ? [{ debugName: "executing" }] : /* istanbul ignore next */ []));
30
- this._pauseRefresh = false;
31
- if (injector === undefined) {
32
- throw new RxapRemoteMethodError('Injector is undefined. Ensure that the Injector is added to the deps property!', '', this.constructor.name);
33
- }
34
- this.injector = injector ?? Injector.NULL;
35
- if (typeof this.injector.get !== 'function') {
36
- throw new RxapRemoteMethodError('The property injector is not Injector like. Check the deps property!', '', this.constructor.name);
37
- }
38
- }
39
- async call(parameters) {
40
- this.init();
41
- this.executionsInProgress$.increase();
42
- try {
43
- const result = await this._call(parameters);
44
- this.executed$.next(result);
45
- this.executed(result);
46
- return result;
47
- }
48
- finally {
49
- this.executionsInProgress$.decrease();
50
- }
51
- }
52
- executed(result) {
53
- if (!this._pauseRefresh) {
54
- this.refresh();
55
- }
56
- }
57
- pauseRefresh() {
58
- this._pauseRefresh = true;
59
- }
60
- resumeRefresh() {
61
- this._pauseRefresh = false;
62
- }
63
- refresh() {
64
- if (this.metadata.refresh) {
65
- for (const refresh of this.metadata.refresh) {
66
- const canRefresh = this.injector.get(refresh, null, { optional: true });
67
- if (canRefresh) {
68
- canRefresh.refresh();
69
- }
70
- }
71
- }
72
- }
73
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: BaseRemoteMethod, deps: [{ token: INJECTOR, optional: true }, { token: REMOTE_METHOD_META_DATA, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
74
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: BaseRemoteMethod }); }
75
- }
76
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: BaseRemoteMethod, decorators: [{
77
- type: Injectable
78
- }], ctorParameters: () => [{ type: i0.Injector, decorators: [{
79
- type: Optional
80
- }, {
81
- type: Inject,
82
- args: [INJECTOR]
83
- }] }, { type: undefined, decorators: [{
84
- type: Optional
85
- }, {
86
- type: Inject,
87
- args: [REMOTE_METHOD_META_DATA]
88
- }] }] });
89
-
90
- class ProxyRemoteMethod extends BaseRemoteMethod {
91
- constructor(remoteMethod, injector = null, metadata = remoteMethod.metadata) {
92
- super(injector, metadata);
93
- this.remoteMethod = remoteMethod;
94
- }
95
- async _call(parameters) {
96
- return this.remoteMethod.call(await this.transformParameters(parameters));
97
- }
98
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: ProxyRemoteMethod, deps: [{ token: RXAP_PROXY_REMOTE_METHOD_TARGET }, { token: INJECTOR }, { token: REMOTE_METHOD_META_DATA }], target: i0.ɵɵFactoryTarget.Injectable }); }
99
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: ProxyRemoteMethod }); }
1
+ import * as i0 from "@angular/core";
2
+ import { INJECTOR, Inject, Injectable, InjectionToken, Injector, Optional, computed } from "@angular/core";
3
+ import { toSignal } from "@angular/core/rxjs-interop";
4
+ import { BaseDefinition, DefinitionLoader, DefinitionMetadata } from "@rxap/definition";
5
+ import { Subject } from "rxjs";
6
+ import { RxapError } from "@rxap/utilities";
7
+ import { CounterSubject } from "@rxap/rxjs";
8
+ const REMOTE_METHOD_META_DATA = new InjectionToken("rxap/remote-method/REMOTE_METHOD_META_DATA");
9
+ const RXAP_PROXY_REMOTE_METHOD_TARGET = new InjectionToken("rxap/remote-method/proxy/target");
10
+ var RxapRemoteMethodError = class extends RxapError {
11
+ constructor(message, code, className) {
12
+ super("@rxap/remote-method", message, code, className);
13
+ }
14
+ };
15
+ function RxapRemoteMethod(metadataOrId, className = "BaseRemoteMethod", packageName = "@rxap/remote-method") {
16
+ return function(target) {
17
+ DefinitionMetadata(metadataOrId, className, packageName)(target);
18
+ };
100
19
  }
101
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: ProxyRemoteMethod, decorators: [{
102
- type: Injectable
103
- }], ctorParameters: () => [{ type: BaseRemoteMethod, decorators: [{
104
- type: Inject,
105
- args: [RXAP_PROXY_REMOTE_METHOD_TARGET]
106
- }] }, { type: i0.Injector, decorators: [{
107
- type: Inject,
108
- args: [INJECTOR]
109
- }] }, { type: undefined, decorators: [{
110
- type: Inject,
111
- args: [REMOTE_METHOD_META_DATA]
112
- }] }] });
113
-
114
- class RemoteMethodLoader extends DefinitionLoader {
115
- async call$(remoteMethodIdOrInstanceOrToken, parameters, metadata, injector, notFoundValue, flags) {
116
- return this
117
- .load(remoteMethodIdOrInstanceOrToken, metadata, injector, notFoundValue, flags)
118
- .call(parameters);
119
- }
120
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: RemoteMethodLoader, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
121
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: RemoteMethodLoader, providedIn: 'root' }); }
122
- }
123
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: RemoteMethodLoader, decorators: [{
124
- type: Injectable,
125
- args: [{ providedIn: 'root' }]
126
- }] });
127
-
128
- // region
129
- // endregion
130
-
131
- /**
132
- * Generated bundle index. Do not edit.
133
- */
134
-
20
+ var BaseRemoteMethod = class BaseRemoteMethod extends BaseDefinition {
21
+ constructor(injector = null, metaData = null) {
22
+ super(metaData);
23
+ this.executed$ = new Subject();
24
+ this.executionsInProgress$ = new CounterSubject();
25
+ this.executionsInProgress = toSignal(this.executionsInProgress$, { initialValue: 0 });
26
+ this.executing = computed(() => this.executionsInProgress() > 0, ...ngDevMode ? [{ debugName: "executing" }] : /* istanbul ignore next */ []);
27
+ this._pauseRefresh = false;
28
+ if (injector === void 0) throw new RxapRemoteMethodError("Injector is undefined. Ensure that the Injector is added to the deps property!", "", this.constructor.name);
29
+ this.injector = injector ?? Injector.NULL;
30
+ if (typeof this.injector.get !== "function") throw new RxapRemoteMethodError("The property injector is not Injector like. Check the deps property!", "", this.constructor.name);
31
+ }
32
+ async call(parameters) {
33
+ this.init();
34
+ this.executionsInProgress$.increase();
35
+ try {
36
+ const result = await this._call(parameters);
37
+ this.executed$.next(result);
38
+ this.executed(result);
39
+ return result;
40
+ } finally {
41
+ this.executionsInProgress$.decrease();
42
+ }
43
+ }
44
+ executed(result) {
45
+ if (!this._pauseRefresh) this.refresh();
46
+ }
47
+ pauseRefresh() {
48
+ this._pauseRefresh = true;
49
+ }
50
+ resumeRefresh() {
51
+ this._pauseRefresh = false;
52
+ }
53
+ refresh() {
54
+ if (this.metadata.refresh) for (const refresh of this.metadata.refresh) {
55
+ const canRefresh = this.injector.get(refresh, null, { optional: true });
56
+ if (canRefresh) canRefresh.refresh();
57
+ }
58
+ }
59
+ static {
60
+ this.ɵfac = i0.ɵɵngDeclareFactory({
61
+ minVersion: "12.0.0",
62
+ version: "22.3.0",
63
+ ngImport: i0,
64
+ type: BaseRemoteMethod,
65
+ deps: [{
66
+ token: INJECTOR,
67
+ optional: true
68
+ }, {
69
+ token: REMOTE_METHOD_META_DATA,
70
+ optional: true
71
+ }],
72
+ target: i0.ɵɵFactoryTarget.Injectable
73
+ });
74
+ }
75
+ static {
76
+ this.ɵprov = i0.ɵɵngDeclareInjectable({
77
+ minVersion: "12.0.0",
78
+ version: "22.3.0",
79
+ ngImport: i0,
80
+ type: BaseRemoteMethod
81
+ });
82
+ }
83
+ };
84
+ i0.ɵɵngDeclareClassMetadata({
85
+ minVersion: "12.0.0",
86
+ version: "22.3.0",
87
+ ngImport: i0,
88
+ type: BaseRemoteMethod,
89
+ decorators: [{ type: Injectable }],
90
+ ctorParameters: () => [{
91
+ type: i0.Injector,
92
+ decorators: [{ type: Optional }, {
93
+ type: Inject,
94
+ args: [INJECTOR]
95
+ }]
96
+ }, {
97
+ type: void 0,
98
+ decorators: [{ type: Optional }, {
99
+ type: Inject,
100
+ args: [REMOTE_METHOD_META_DATA]
101
+ }]
102
+ }]
103
+ });
104
+ var ProxyRemoteMethod = class ProxyRemoteMethod extends BaseRemoteMethod {
105
+ constructor(remoteMethod, injector = null, metadata = remoteMethod.metadata) {
106
+ super(injector, metadata);
107
+ this.remoteMethod = remoteMethod;
108
+ }
109
+ async _call(parameters) {
110
+ return this.remoteMethod.call(await this.transformParameters(parameters));
111
+ }
112
+ static {
113
+ this.ɵfac = i0.ɵɵngDeclareFactory({
114
+ minVersion: "12.0.0",
115
+ version: "22.3.0",
116
+ ngImport: i0,
117
+ type: ProxyRemoteMethod,
118
+ deps: [
119
+ { token: RXAP_PROXY_REMOTE_METHOD_TARGET },
120
+ { token: INJECTOR },
121
+ { token: REMOTE_METHOD_META_DATA }
122
+ ],
123
+ target: i0.ɵɵFactoryTarget.Injectable
124
+ });
125
+ }
126
+ static {
127
+ this.ɵprov = i0.ɵɵngDeclareInjectable({
128
+ minVersion: "12.0.0",
129
+ version: "22.3.0",
130
+ ngImport: i0,
131
+ type: ProxyRemoteMethod
132
+ });
133
+ }
134
+ };
135
+ i0.ɵɵngDeclareClassMetadata({
136
+ minVersion: "12.0.0",
137
+ version: "22.3.0",
138
+ ngImport: i0,
139
+ type: ProxyRemoteMethod,
140
+ decorators: [{ type: Injectable }],
141
+ ctorParameters: () => [
142
+ {
143
+ type: BaseRemoteMethod,
144
+ decorators: [{
145
+ type: Inject,
146
+ args: [RXAP_PROXY_REMOTE_METHOD_TARGET]
147
+ }]
148
+ },
149
+ {
150
+ type: i0.Injector,
151
+ decorators: [{
152
+ type: Inject,
153
+ args: [INJECTOR]
154
+ }]
155
+ },
156
+ {
157
+ type: void 0,
158
+ decorators: [{
159
+ type: Inject,
160
+ args: [REMOTE_METHOD_META_DATA]
161
+ }]
162
+ }
163
+ ]
164
+ });
165
+ var RemoteMethodLoader = class RemoteMethodLoader extends DefinitionLoader {
166
+ async call$(remoteMethodIdOrInstanceOrToken, parameters, metadata, injector, notFoundValue, flags) {
167
+ return this.load(remoteMethodIdOrInstanceOrToken, metadata, injector, notFoundValue, flags).call(parameters);
168
+ }
169
+ static {
170
+ this.ɵfac = i0.ɵɵngDeclareFactory({
171
+ minVersion: "12.0.0",
172
+ version: "22.3.0",
173
+ ngImport: i0,
174
+ type: RemoteMethodLoader,
175
+ deps: null,
176
+ target: i0.ɵɵFactoryTarget.Injectable
177
+ });
178
+ }
179
+ static {
180
+ this.ɵprov = i0.ɵɵngDeclareInjectable({
181
+ minVersion: "12.0.0",
182
+ version: "22.3.0",
183
+ ngImport: i0,
184
+ type: RemoteMethodLoader,
185
+ providedIn: "root"
186
+ });
187
+ }
188
+ };
189
+ i0.ɵɵngDeclareClassMetadata({
190
+ minVersion: "12.0.0",
191
+ version: "22.3.0",
192
+ ngImport: i0,
193
+ type: RemoteMethodLoader,
194
+ decorators: [{
195
+ type: Injectable,
196
+ args: [{ providedIn: "root" }]
197
+ }]
198
+ });
135
199
  export { BaseRemoteMethod, ProxyRemoteMethod, REMOTE_METHOD_META_DATA, RXAP_PROXY_REMOTE_METHOD_TARGET, RemoteMethodLoader, RxapRemoteMethod, RxapRemoteMethodError };
136
- //# sourceMappingURL=rxap-remote-method.mjs.map
200
+
201
+ //# sourceMappingURL=rxap-remote-method.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"rxap-remote-method.mjs","sources":["../../../../../packages/angular/remote-method/src/lib/tokens.ts","../../../../../packages/angular/remote-method/src/lib/error.ts","../../../../../packages/angular/remote-method/src/lib/base.remote-method.ts","../../../../../packages/angular/remote-method/src/lib/proxy.remote-method.ts","../../../../../packages/angular/remote-method/src/lib/remote-method-loader.ts","../../../../../packages/angular/remote-method/src/index.ts","../../../../../packages/angular/remote-method/src/rxap-remote-method.ts"],"sourcesContent":["import { InjectionToken } from '@angular/core';\n\nexport const REMOTE_METHOD_META_DATA = new InjectionToken('rxap/remote-method/REMOTE_METHOD_META_DATA');\nexport const RXAP_PROXY_REMOTE_METHOD_TARGET = new InjectionToken('rxap/remote-method/proxy/target');\n","import { RxapError } from '@rxap/utilities';\n\nexport class RxapRemoteMethodError extends RxapError {\n\n constructor(message: string, code: string, className?: string) {\n super('@rxap/remote-method', message, code, className);\n }\n\n}\n\n","import {\n AbstractType,\n computed,\n Inject,\n Injectable,\n InjectionToken,\n Injector,\n INJECTOR,\n Optional,\n Type\n} from '@angular/core';\nimport { toSignal } from '@angular/core/rxjs-interop';\nimport { REMOTE_METHOD_META_DATA } from './tokens';\nimport {\n BaseDefinition,\n BaseDefinitionMetadata,\n DefinitionMetadata,\n} from '@rxap/definition';\nimport { Subject } from 'rxjs';\nimport { RxapRemoteMethodError } from './error';\nimport { Refreshable } from '@rxap/utilities';\nimport { CounterSubject } from '@rxap/rxjs';\n\nexport interface BaseRemoteMethodMetadata extends BaseDefinitionMetadata {\n refresh?: Array<Type<Refreshable> | InjectionToken<Refreshable> | AbstractType<Refreshable>>;\n}\n\nexport function RxapRemoteMethod<MetaData extends BaseDefinitionMetadata = BaseDefinitionMetadata>(\n metadataOrId: MetaData | string,\n className = 'BaseRemoteMethod',\n packageName = '@rxap/remote-method',\n) {\n return function (target: any) {\n DefinitionMetadata(metadataOrId, className, packageName)(target);\n };\n}\n\n@Injectable()\nexport abstract class BaseRemoteMethod<ReturnType = any,\n Parameter = any,\n Metadata extends BaseRemoteMethodMetadata = BaseRemoteMethodMetadata> extends BaseDefinition<Metadata> {\n\n public executed$: Subject<ReturnType> = new Subject<ReturnType>();\n\n public executionsInProgress$: CounterSubject = new CounterSubject();\n\n executionsInProgress = toSignal(this.executionsInProgress$, { initialValue: 0 });\n\n executing = computed(() => this.executionsInProgress() > 0);\n\n public readonly injector: Injector;\n\n private _pauseRefresh = false;\n\n constructor(\n @Optional()\n @Inject(INJECTOR)\n injector: Injector | null = null,\n @Optional()\n @Inject(REMOTE_METHOD_META_DATA)\n metaData: any | null = null,\n ) {\n super(metaData);\n if (injector === undefined) {\n throw new RxapRemoteMethodError(\n 'Injector is undefined. Ensure that the Injector is added to the deps property!',\n '',\n this.constructor.name,\n );\n }\n this.injector = injector ?? Injector.NULL;\n if (typeof this.injector.get !== 'function') {\n throw new RxapRemoteMethodError(\n 'The property injector is not Injector like. Check the deps property!',\n '',\n this.constructor.name,\n );\n }\n }\n\n public async call(parameters?: Parameter): Promise<ReturnType> {\n this.init();\n this.executionsInProgress$.increase();\n try {\n const result = await this._call(parameters);\n this.executed$.next(result);\n this.executed(result);\n return result;\n } finally {\n this.executionsInProgress$.decrease();\n }\n }\n\n public executed(result: ReturnType): void {\n if (!this._pauseRefresh) {\n this.refresh();\n }\n }\n\n public pauseRefresh(): void {\n this._pauseRefresh = true;\n }\n\n public resumeRefresh(): void {\n this._pauseRefresh = false;\n }\n\n public refresh(): void {\n if (this.metadata.refresh) {\n for (const refresh of this.metadata.refresh) {\n const canRefresh = this.injector.get(refresh, null, { optional: true });\n if (canRefresh) {\n canRefresh.refresh();\n }\n }\n }\n }\n\n protected abstract _call(parameters?: Parameter): Promise<ReturnType> | ReturnType;\n\n}\n\n\n","import {\n Inject,\n Injectable,\n INJECTOR,\n Injector,\n} from '@angular/core';\nimport {\n BaseRemoteMethod,\n BaseRemoteMethodMetadata,\n} from './base.remote-method';\nimport {\n REMOTE_METHOD_META_DATA,\n RXAP_PROXY_REMOTE_METHOD_TARGET,\n} from './tokens';\n\n@Injectable()\nexport abstract class ProxyRemoteMethod<ReturnType = any, SourceParameter = any, TargetParameter = SourceParameter>\n extends BaseRemoteMethod<ReturnType, SourceParameter> {\n\n constructor(\n @Inject(RXAP_PROXY_REMOTE_METHOD_TARGET)\n private readonly remoteMethod: BaseRemoteMethod,\n @Inject(INJECTOR)\n injector: Injector | null = null,\n @Inject(REMOTE_METHOD_META_DATA)\n metadata: BaseRemoteMethodMetadata = remoteMethod.metadata,\n ) {\n super(injector, metadata);\n }\n\n public abstract transformParameters(parameters?: SourceParameter): TargetParameter | Promise<TargetParameter>;\n\n protected async _call(parameters?: SourceParameter): Promise<any> {\n return this.remoteMethod.call(await this.transformParameters(parameters));\n }\n\n}\n","import {\n Injectable,\n InjectOptions,\n Injector\n} from '@angular/core';\nimport {\n BaseRemoteMethod,\n BaseRemoteMethodMetadata,\n} from './base.remote-method';\nimport {\n DefinitionLoader,\n IdOrInstanceOrToken,\n} from '@rxap/definition';\n\n@Injectable({ providedIn: 'root' })\nexport class RemoteMethodLoader extends DefinitionLoader {\n\n public async call$<ReturnType = any, Parameters = any, Metadata extends BaseRemoteMethodMetadata = BaseRemoteMethodMetadata>(\n remoteMethodIdOrInstanceOrToken: IdOrInstanceOrToken<BaseRemoteMethod<ReturnType, Parameters, Metadata>>,\n parameters: Parameters,\n metadata?: Partial<BaseRemoteMethodMetadata>,\n injector?: Injector,\n notFoundValue?: BaseRemoteMethod<ReturnType, Parameters, Metadata>,\n flags?: InjectOptions,\n ): Promise<ReturnType> {\n return this\n .load(\n remoteMethodIdOrInstanceOrToken,\n metadata,\n injector,\n notFoundValue,\n flags,\n )\n .call(parameters);\n }\n\n}\n","// region \nexport * from './lib/base.remote-method';\nexport * from './lib/error';\nexport * from './lib/proxy.remote-method';\nexport * from './lib/remote-method-loader';\nexport * from './lib/tokens';\n// endregion\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;MAEa,uBAAuB,GAAG,IAAI,cAAc,CA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M;2BAAC,uBAAuB;;;ACT7B,MAAO,kBAAmB,SAAQ,gBAAgB,CAAA;AAE/C,IAAA,MAAM,KAAK,CAChB,+BAAwG,EACxG,UAAsB,EACtB,QAA4C,EAC5C,QAAmB,EACnB,aAAkE,EAClE,KAAqB,EAAA;AAErB,QAAA,OAAO;aACJ,IAAI,CACH,+BAA+B,EAC/B,QAAQ,EACR,QAAQ,EACR,aAAa,EACb,KAAK;aAEN,IAAI,CAAC,UAAU,CAAC;IACrB;8GAnBW,kBAAkB,EAAA,IAAA,EAAA,IAAA,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;;;ACdlC;AAMA;;ACNA;;AAEG;;;;"}
1
+ {"version":3,"file":"rxap-remote-method.mjs","names":[],"sources":["../../../../../packages/angular/remote-method/src/lib/tokens.ts","../../../../../packages/angular/remote-method/src/lib/error.ts","../../../../../packages/angular/remote-method/src/lib/base.remote-method.ts","../../../../../packages/angular/remote-method/src/lib/proxy.remote-method.ts","../../../../../packages/angular/remote-method/src/lib/remote-method-loader.ts"],"sourcesContent":["import { InjectionToken } from '@angular/core';\n\nexport const REMOTE_METHOD_META_DATA = new InjectionToken('rxap/remote-method/REMOTE_METHOD_META_DATA');\nexport const RXAP_PROXY_REMOTE_METHOD_TARGET = new InjectionToken('rxap/remote-method/proxy/target');\n","import { RxapError } from '@rxap/utilities';\n\nexport class RxapRemoteMethodError extends RxapError {\n\n constructor(message: string, code: string, className?: string) {\n super('@rxap/remote-method', message, code, className);\n }\n\n}\n\n","import {\n AbstractType,\n computed,\n Inject,\n Injectable,\n InjectionToken,\n Injector,\n INJECTOR,\n Optional,\n Type\n} from '@angular/core';\nimport { toSignal } from '@angular/core/rxjs-interop';\nimport { REMOTE_METHOD_META_DATA } from './tokens';\nimport {\n BaseDefinition,\n BaseDefinitionMetadata,\n DefinitionMetadata,\n} from '@rxap/definition';\nimport { Subject } from 'rxjs';\nimport { RxapRemoteMethodError } from './error';\nimport { Refreshable } from '@rxap/utilities';\nimport { CounterSubject } from '@rxap/rxjs';\n\nexport interface BaseRemoteMethodMetadata extends BaseDefinitionMetadata {\n refresh?: Array<Type<Refreshable> | InjectionToken<Refreshable> | AbstractType<Refreshable>>;\n}\n\nexport function RxapRemoteMethod<MetaData extends BaseDefinitionMetadata = BaseDefinitionMetadata>(\n metadataOrId: MetaData | string,\n className = 'BaseRemoteMethod',\n packageName = '@rxap/remote-method',\n) {\n return function (target: any) {\n DefinitionMetadata(metadataOrId, className, packageName)(target);\n };\n}\n\n@Injectable()\nexport abstract class BaseRemoteMethod<ReturnType = any,\n Parameter = any,\n Metadata extends BaseRemoteMethodMetadata = BaseRemoteMethodMetadata> extends BaseDefinition<Metadata> {\n\n public executed$: Subject<ReturnType> = new Subject<ReturnType>();\n\n public executionsInProgress$: CounterSubject = new CounterSubject();\n\n executionsInProgress = toSignal(this.executionsInProgress$, { initialValue: 0 });\n\n executing = computed(() => this.executionsInProgress() > 0);\n\n public readonly injector: Injector;\n\n private _pauseRefresh = false;\n\n constructor(\n @Optional()\n @Inject(INJECTOR)\n injector: Injector | null = null,\n @Optional()\n @Inject(REMOTE_METHOD_META_DATA)\n metaData: any | null = null,\n ) {\n super(metaData);\n if (injector === undefined) {\n throw new RxapRemoteMethodError(\n 'Injector is undefined. Ensure that the Injector is added to the deps property!',\n '',\n this.constructor.name,\n );\n }\n this.injector = injector ?? Injector.NULL;\n if (typeof this.injector.get !== 'function') {\n throw new RxapRemoteMethodError(\n 'The property injector is not Injector like. Check the deps property!',\n '',\n this.constructor.name,\n );\n }\n }\n\n public async call(parameters?: Parameter): Promise<ReturnType> {\n this.init();\n this.executionsInProgress$.increase();\n try {\n const result = await this._call(parameters);\n this.executed$.next(result);\n this.executed(result);\n return result;\n } finally {\n this.executionsInProgress$.decrease();\n }\n }\n\n public executed(result: ReturnType): void {\n if (!this._pauseRefresh) {\n this.refresh();\n }\n }\n\n public pauseRefresh(): void {\n this._pauseRefresh = true;\n }\n\n public resumeRefresh(): void {\n this._pauseRefresh = false;\n }\n\n public refresh(): void {\n if (this.metadata.refresh) {\n for (const refresh of this.metadata.refresh) {\n const canRefresh = this.injector.get(refresh, null, { optional: true });\n if (canRefresh) {\n canRefresh.refresh();\n }\n }\n }\n }\n\n protected abstract _call(parameters?: Parameter): Promise<ReturnType> | ReturnType;\n\n}\n\n\n","import {\n Inject,\n Injectable,\n INJECTOR,\n Injector,\n} from '@angular/core';\nimport {\n BaseRemoteMethod,\n BaseRemoteMethodMetadata,\n} from './base.remote-method';\nimport {\n REMOTE_METHOD_META_DATA,\n RXAP_PROXY_REMOTE_METHOD_TARGET,\n} from './tokens';\n\n@Injectable()\nexport abstract class ProxyRemoteMethod<ReturnType = any, SourceParameter = any, TargetParameter = SourceParameter>\n extends BaseRemoteMethod<ReturnType, SourceParameter> {\n\n constructor(\n @Inject(RXAP_PROXY_REMOTE_METHOD_TARGET)\n private readonly remoteMethod: BaseRemoteMethod,\n @Inject(INJECTOR)\n injector: Injector | null = null,\n @Inject(REMOTE_METHOD_META_DATA)\n metadata: BaseRemoteMethodMetadata = remoteMethod.metadata,\n ) {\n super(injector, metadata);\n }\n\n public abstract transformParameters(parameters?: SourceParameter): TargetParameter | Promise<TargetParameter>;\n\n protected async _call(parameters?: SourceParameter): Promise<any> {\n return this.remoteMethod.call(await this.transformParameters(parameters));\n }\n\n}\n","import {\n Injectable,\n InjectOptions,\n Injector\n} from '@angular/core';\nimport {\n BaseRemoteMethod,\n BaseRemoteMethodMetadata,\n} from './base.remote-method';\nimport {\n DefinitionLoader,\n IdOrInstanceOrToken,\n} from '@rxap/definition';\n\n@Injectable({ providedIn: 'root' })\nexport class RemoteMethodLoader extends DefinitionLoader {\n\n public async call$<ReturnType = any, Parameters = any, Metadata extends BaseRemoteMethodMetadata = BaseRemoteMethodMetadata>(\n remoteMethodIdOrInstanceOrToken: IdOrInstanceOrToken<BaseRemoteMethod<ReturnType, Parameters, Metadata>>,\n parameters: Parameters,\n metadata?: Partial<BaseRemoteMethodMetadata>,\n injector?: Injector,\n notFoundValue?: BaseRemoteMethod<ReturnType, Parameters, Metadata>,\n flags?: InjectOptions,\n ): Promise<ReturnType> {\n return this\n .load(\n remoteMethodIdOrInstanceOrToken,\n metadata,\n injector,\n notFoundValue,\n flags,\n )\n .call(parameters);\n }\n\n}\n"],"mappings":";;;;;;;AAEA,MAAa,0BAA0B,IAAI,eAAe,4CAA4C;AACtG,MAAa,kCAAkC,IAAI,eAAe,iCAAiC;ACDnG,IAAa,wBAAb,cAA2C,UAAS;CAElD,YAAY,SAAiB,MAAc,WAAkB;EAC3D,MAAM,uBAAuB,SAAS,MAAM,SAAS;CACvD;AAED;ACmBD,SAAgB,iBACd,cACA,YAAY,oBACZ,cAAc,uBAAqB;CAEnC,OAAO,SAAU,QAAW;EAC1B,mBAAmB,cAAc,WAAW,WAAW,CAAC,CAAC,MAAM;CACjE;AACF;AAGA,IAAsB,mBAAtB,MAAsB,yBAE0D,eAAwB;CActG,YAGI,WAA4B,MAG5B,WAAuB,MAAI;EAE7B,MAAM,QAAQ;EApBT,KAAA,YAAiC,IAAI,QAAO;EAE5C,KAAA,wBAAwC,IAAI,eAAc;EAEjE,KAAA,uBAAuB,SAAS,KAAK,uBAAuB,EAAE,cAAc,EAAC,CAAE;EAE/E,KAAA,YAAY,eAAe,KAAK,qBAAoB,IAAK,GAAE,GAAA,YAAA,CAAA,EAAA,WAAA,YAAA,CAAA,+BAAA,CAAA,CAAA;EAInD,KAAA,gBAAgB;EAWtB,IAAI,a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AA,KAAA,QAAA,GAAA,sBAAA;GAAA,YAAA;GAAA,SAAA;GAAA,UAAA;GAAA,MAAA;GAAkB,YADL;EAAM,CAAA;CAAA;;AACnB,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAkB,YAAA,CAAA;EAD9B,MAAA;EAAW,MAAA,CAAA,EAAE,YAAY,OAAM,CAAE"}
package/package.json CHANGED
@@ -1,16 +1,16 @@
1
1
  {
2
- "version": "21.0.1",
2
+ "version": "22.0.0-dev.0",
3
3
  "name": "@rxap/remote-method",
4
4
  "description": "This package provides abstractions for defining and executing remote methods in Angular applications. It includes features such as automatic refreshing, proxying, and error handling. It offers a structured way to manage remote calls and their dependencies.\n",
5
5
  "license": "GPL-3.0-or-later",
6
6
  "dependencies": {
7
- "@nx/devkit": "22.7.5",
7
+ "@nx/devkit": "24.0.6",
8
8
  "tslib": "2.6.2"
9
9
  },
10
10
  "peerDependencies": {
11
- "@angular/common": "^21.2.9",
12
- "@angular/core": "^21.2.9",
13
- "@rxap/definition": "^21.0.1",
11
+ "@angular/common": "^22.3.0",
12
+ "@angular/core": "^22.3.0",
13
+ "@rxap/definition": "^22.0.0-dev.0",
14
14
  "@rxap/rxjs": "^1.1.18",
15
15
  "@rxap/utilities": "^16.5.2",
16
16
  "rxjs": "^7.8.2"
@@ -38,15 +38,15 @@
38
38
  "packageGroup": [
39
39
  {
40
40
  "package": "@angular/common",
41
- "version": "21.2.9"
41
+ "version": "22.3.0"
42
42
  },
43
43
  {
44
44
  "package": "@angular/core",
45
- "version": "21.2.9"
45
+ "version": "22.3.0"
46
46
  },
47
47
  {
48
48
  "package": "@rxap/definition",
49
- "version": "21.0.1"
49
+ "version": "22.0.0-dev.0"
50
50
  },
51
51
  {
52
52
  "package": "@rxap/reflect-metadata",