@rxap/remote-method 21.0.1-dev.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 +25 -0
  2. package/compodoc/changelog.html +23 -0
  3. package/compodoc/dependencies.html +6 -6
  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 +13 -13
  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,211 +1,303 @@
1
- import { RxapRemoteMethodError, BaseRemoteMethodMetadata, RemoteMethodLoader, BaseRemoteMethod } from '@rxap/remote-method';
2
- import * as _angular_core from '@angular/core';
3
- import { DoCheck, OnInit, ChangeDetectorRef, TemplateRef, TrackByFunction, IterableChanges, InjectionToken } from '@angular/core';
4
- import { IdOrInstanceOrToken } from '@rxap/definition';
5
- import { ToggleSubject } from '@rxap/rxjs';
6
-
7
- declare class RxapRemoteMethodDirectiveError extends RxapRemoteMethodError {
8
- constructor(message: string, code?: string, scope?: string);
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ import { BaseRemoteMethod, BaseRemoteMethodMetadata, RemoteMethodLoader, RxapRemoteMethodError } from "@rxap/remote-method";
5
+ import * as i0 from "@angular/core";
6
+ import { ChangeDetectorRef, DoCheck, InjectionToken, IterableChanges, OnInit, TemplateRef, TrackByFunction } from "@angular/core";
7
+ import { IdOrInstanceOrToken } from "@rxap/definition";
8
+ import { ToggleSubject } from "@rxap/rxjs";
9
+ export declare class RxapRemoteMethodDirectiveError extends RxapRemoteMethodError {
10
+ constructor(message: string, code?: string, scope?: string);
9
11
  }
10
-
11
- declare class RemoteMethodTemplateCollectionDirectiveContext<ReturnType = any> {
12
- $implicit: ReturnType;
13
- index: number;
14
- count: number;
15
- constructor($implicit: ReturnType, index: number, count: number);
16
- get first(): boolean;
17
- get last(): boolean;
18
- get even(): boolean;
19
- get odd(): boolean;
12
+ export declare class RemoteMethodTemplateCollectionDirectiveContext<ReturnType = any> {
13
+ $implicit: ReturnType;
14
+ index: number;
15
+ count: number;
16
+ constructor($implicit: ReturnType, index: number, count: number);
17
+ get first(): boolean;
18
+ get last(): boolean;
19
+ get even(): boolean;
20
+ get odd(): boolean;
20
21
  }
21
- interface RemoteMethodTemplateCollectionDirectiveErrorContext {
22
- $implicit: Error;
23
- message?: string;
24
- name?: string;
22
+ export interface RemoteMethodTemplateCollectionDirectiveErrorContext {
23
+ $implicit: Error;
24
+ message?: string;
25
+ name?: string;
25
26
  }
26
- declare class RemoteMethodTemplateCollectionDirective<ReturnType = any, Parameters = any, Metadata extends BaseRemoteMethodMetadata = BaseRemoteMethodMetadata> implements DoCheck, OnInit {
27
- private readonly template;
28
- protected readonly remoteMethodLoader: RemoteMethodLoader;
29
- private readonly injector;
30
- private readonly viewContainerRef;
31
- protected readonly cdr: ChangeDetectorRef;
32
- private readonly differs;
33
- private readonly remoteMethodToken;
34
- readonly parameters: _angular_core.InputSignal<Parameters | undefined>;
35
- readonly emptyTemplate: _angular_core.InputSignal<TemplateRef<void> | undefined>;
36
- readonly errorTemplate: _angular_core.InputSignal<TemplateRef<RemoteMethodTemplateCollectionDirectiveErrorContext> | undefined>;
37
- readonly withoutParameters: _angular_core.InputSignal<boolean>;
38
- private _differ;
39
- private _dirty;
40
- /**
41
- * Indicates that the remote method returned a empty collection
42
- *
43
- * true - is empty
44
- * false - is NOT empty
45
- * null - unknown
46
- *
47
- * @private
48
- */
49
- private _empty;
50
- /**
51
- * Holds the error that call of the remote method throws
52
- *
53
- * @private
54
- */
55
- private _error;
56
- /**
57
- * Holds the empty template view ref.
58
- *
59
- * Is used to determine if a empty template is added to the
60
- * view. And used to destruct the empty template if the remote method
61
- * changes from empty to not empty.
62
- *
63
- * @private
64
- */
65
- private _emptyTemplateViewRef;
66
- /**
67
- * Holds the error template view ref.
68
- *
69
- * Is used to determine if a error template is added to the
70
- * view. And used to destruct the error template if the remote method
71
- * is called again with an error.
72
- *
73
- * @private
74
- */
75
- private _errorTemplateViewRef;
76
- /**
77
- * A function that defines how to track changes for items in the iterable.
78
- *
79
- * When items are added, moved, or removed in the iterable,
80
- * the directive must re-render the appropriate DOM nodes.
81
- * To minimize churn in the DOM, only nodes that have changed
82
- * are re-rendered.
83
- *
84
- * By default, the change detector assumes that
85
- * the object instance identifies the node in the iterable.
86
- * When this function is supplied, the directive uses
87
- * the result of calling this function to identify the item node,
88
- * rather than the identity of the object itself.
89
- *
90
- * The function receives two inputs,
91
- * the iteration index and the node object ID.
92
- */
93
- readonly trackBy: _angular_core.InputSignalWithTransform<TrackByFunction<ReturnType>, TrackByFunction<ReturnType> | undefined>;
94
- readonly remoteMethodOrIdOrToken: _angular_core.InputSignal<IdOrInstanceOrToken<BaseRemoteMethod<ReturnType[], Parameters, Metadata>> | undefined>;
95
- protected readonly _remoteMethodOrIdOrToken: _angular_core.Signal<any>;
96
- /**
97
- * Holds the data that should be displayed
98
- * @private
99
- */
100
- private _data;
101
- protected set data(data: ReturnType[]);
102
- /**
103
- * Asserts the correct type of the context for the template that `NgForOf` will render.
104
- *
105
- * The presence of this method is a signal to the Ivy template type-check compiler that the
106
- * `NgForOf` structural directive renders its template with a specific context type.
107
- */
108
- static ngTemplateContextGuard<T>(dir: RemoteMethodTemplateCollectionDirective<T>, ctx: any): ctx is RemoteMethodTemplateCollectionDirectiveContext<T>;
109
- constructor();
110
- ngOnInit(): void;
111
- call(parameters?: Parameters): void;
112
- /**
113
- * Applies the changes when needed.
114
- */
115
- ngDoCheck(): void;
116
- protected applyChanges(changes: IterableChanges<ReturnType>): void;
117
- private perViewChange;
118
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<RemoteMethodTemplateCollectionDirective<any, any, any>, never>;
119
- static ɵdir: _angular_core.ɵɵDirectiveDeclaration<RemoteMethodTemplateCollectionDirective<any, any, any>, "[rxapRemoteMethodCollection]", ["rxapRemoteMethodCollection"], { "parameters": { "alias": "rxapRemoteMethodCollectionParameters"; "required": false; "isSignal": true; }; "emptyTemplate": { "alias": "rxapRemoteMethodCollectionEmpty"; "required": false; "isSignal": true; }; "errorTemplate": { "alias": "rxapRemoteMethodCollectionError"; "required": false; "isSignal": true; }; "withoutParameters": { "alias": "rxapRemoteMethodCollectionWithoutParameters"; "required": false; "isSignal": true; }; "trackBy": { "alias": "rxapRemoteMethodCollectionTrackBy"; "required": false; "isSignal": true; }; "remoteMethodOrIdOrToken": { "alias": "rxapRemoteMethodCollectionCall"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
27
+ export declare class RemoteMethodTemplateCollectionDirective<ReturnType = any, Parameters = any, Metadata extends BaseRemoteMethodMetadata = BaseRemoteMethodMetadata> implements DoCheck, OnInit {
28
+ private readonly template;
29
+ protected readonly remoteMethodLoader: RemoteMethodLoader;
30
+ private readonly injector;
31
+ private readonly viewContainerRef;
32
+ protected readonly cdr: ChangeDetectorRef;
33
+ private readonly differs;
34
+ private readonly remoteMethodToken;
35
+ readonly parameters: import("@angular/core").InputSignal<Parameters | undefined>;
36
+ readonly emptyTemplate: import("@angular/core").InputSignal<TemplateRef<void> | undefined>;
37
+ readonly errorTemplate: import("@angular/core").InputSignal<TemplateRef<RemoteMethodTemplateCollectionDirectiveErrorContext> | undefined>;
38
+ readonly withoutParameters: import("@angular/core").InputSignal<boolean>;
39
+ private _differ;
40
+ private _dirty;
41
+ /**
42
+ * Indicates that the remote method returned a empty collection
43
+ *
44
+ * true - is empty
45
+ * false - is NOT empty
46
+ * null - unknown
47
+ *
48
+ * @private
49
+ */
50
+ private _empty;
51
+ /**
52
+ * Holds the error that call of the remote method throws
53
+ *
54
+ * @private
55
+ */
56
+ private _error;
57
+ /**
58
+ * Holds the empty template view ref.
59
+ *
60
+ * Is used to determine if a empty template is added to the
61
+ * view. And used to destruct the empty template if the remote method
62
+ * changes from empty to not empty.
63
+ *
64
+ * @private
65
+ */
66
+ private _emptyTemplateViewRef;
67
+ /**
68
+ * Holds the error template view ref.
69
+ *
70
+ * Is used to determine if a error template is added to the
71
+ * view. And used to destruct the error template if the remote method
72
+ * is called again with an error.
73
+ *
74
+ * @private
75
+ */
76
+ private _errorTemplateViewRef;
77
+ /**
78
+ * A function that defines how to track changes for items in the iterable.
79
+ *
80
+ * When items are added, moved, or removed in the iterable,
81
+ * the directive must re-render the appropriate DOM nodes.
82
+ * To minimize churn in the DOM, only nodes that have changed
83
+ * are re-rendered.
84
+ *
85
+ * By default, the change detector assumes that
86
+ * the object instance identifies the node in the iterable.
87
+ * When this function is supplied, the directive uses
88
+ * the result of calling this function to identify the item node,
89
+ * rather than the identity of the object itself.
90
+ *
91
+ * The function receives two inputs,
92
+ * the iteration index and the node object ID.
93
+ */
94
+ readonly trackBy: import("@angular/core").InputSignalWithTransform<TrackByFunction<ReturnType>, TrackByFunction<ReturnType> | undefined>;
95
+ readonly remoteMethodOrIdOrToken: import("@angular/core").InputSignal<IdOrInstanceOrToken<BaseRemoteMethod<ReturnType[], Parameters, Metadata>> | undefined>;
96
+ protected readonly _remoteMethodOrIdOrToken: import("@angular/core").Signal<any>;
97
+ /**
98
+ * Holds the data that should be displayed
99
+ * @private
100
+ */
101
+ private _data;
102
+ protected set data(data: ReturnType[]);
103
+ /**
104
+ * Asserts the correct type of the context for the template that `NgForOf` will render.
105
+ *
106
+ * The presence of this method is a signal to the Ivy template type-check compiler that the
107
+ * `NgForOf` structural directive renders its template with a specific context type.
108
+ */
109
+ static ngTemplateContextGuard<T>(dir: RemoteMethodTemplateCollectionDirective<T>, ctx: any): ctx is RemoteMethodTemplateCollectionDirectiveContext<T>;
110
+ constructor();
111
+ ngOnInit(): void;
112
+ call(parameters?: Parameters): void;
113
+ /**
114
+ * Applies the changes when needed.
115
+ */
116
+ ngDoCheck(): void;
117
+ protected applyChanges(changes: IterableChanges<ReturnType>): void;
118
+ private perViewChange;
119
+ static ɵfac: i0.ɵɵFactoryDeclaration<RemoteMethodTemplateCollectionDirective<any, any, any>, never>;
120
+ static ɵdir: i0.ɵɵDirectiveDeclaration<RemoteMethodTemplateCollectionDirective<any, any, any>, "[rxapRemoteMethodCollection]", ["rxapRemoteMethodCollection"], {
121
+ "parameters": {
122
+ "alias": "rxapRemoteMethodCollectionParameters";
123
+ "required": false;
124
+ "isSignal": true;
125
+ };
126
+ "emptyTemplate": {
127
+ "alias": "rxapRemoteMethodCollectionEmpty";
128
+ "required": false;
129
+ "isSignal": true;
130
+ };
131
+ "errorTemplate": {
132
+ "alias": "rxapRemoteMethodCollectionError";
133
+ "required": false;
134
+ "isSignal": true;
135
+ };
136
+ "withoutParameters": {
137
+ "alias": "rxapRemoteMethodCollectionWithoutParameters";
138
+ "required": false;
139
+ "isSignal": true;
140
+ };
141
+ "trackBy": {
142
+ "alias": "rxapRemoteMethodCollectionTrackBy";
143
+ "required": false;
144
+ "isSignal": true;
145
+ };
146
+ "remoteMethodOrIdOrToken": {
147
+ "alias": "rxapRemoteMethodCollectionCall";
148
+ "required": false;
149
+ "isSignal": true;
150
+ };
151
+ }, {}, never, never, true, never>;
120
152
  }
121
-
122
- interface RemoteMethodTemplateDirectiveContext<ReturnType = any> {
123
- $implicit: ReturnType;
153
+ export interface RemoteMethodTemplateDirectiveContext<ReturnType = any> {
154
+ $implicit: ReturnType;
124
155
  }
125
- interface RemoteMethodTemplateDirectiveErrorContext {
126
- $implicit: Error;
127
- message: string;
156
+ export interface RemoteMethodTemplateDirectiveErrorContext {
157
+ $implicit: Error;
158
+ message: string;
128
159
  }
129
- declare class RemoteMethodTemplateDirective<ReturnType = any, Parameters = any, Metadata extends BaseRemoteMethodMetadata = BaseRemoteMethodMetadata> implements OnInit {
130
- private readonly template;
131
- protected readonly remoteMethodLoader: RemoteMethodLoader;
132
- private readonly injector;
133
- private readonly viewContainerRef;
134
- protected readonly cdr: ChangeDetectorRef;
135
- private readonly remoteMethodToken;
136
- readonly executed$: _angular_core.OutputEmitterRef<void>;
137
- readonly failure$: _angular_core.OutputEmitterRef<Error>;
138
- readonly successful$: _angular_core.OutputEmitterRef<ReturnType>;
139
- readonly metadata: _angular_core.InputSignal<Metadata | undefined>;
140
- /**
141
- * true - a remote method call is in progress
142
- */
143
- executing$: ToggleSubject;
144
- readonly parameters: _angular_core.InputSignal<Parameters | undefined>;
145
- protected readonly currentParameters: _angular_core.WritableSignal<Parameters | undefined>;
146
- readonly errorTemplate: _angular_core.InputSignal<TemplateRef<RemoteMethodTemplateDirectiveErrorContext> | undefined>;
147
- readonly loadingTemplate: _angular_core.InputSignal<TemplateRef<void> | undefined>;
148
- readonly withoutParameters: _angular_core.InputSignal<boolean>;
149
- readonly embedded: _angular_core.OutputEmitterRef<void>;
150
- readonly remoteMethodOrIdOrToken: _angular_core.InputSignal<IdOrInstanceOrToken<BaseRemoteMethod<ReturnType, Parameters, Metadata>> | undefined>;
151
- protected readonly _remoteMethodOrIdOrToken: _angular_core.Signal<any>;
152
- static ngTemplateContextGuard<T>(dir: RemoteMethodTemplateDirective<T>, ctx: any): ctx is RemoteMethodTemplateDirectiveContext<T>;
153
- constructor();
154
- ngOnInit(): void;
155
- execute(parameters?: Parameters | undefined): Promise<void>;
156
- /**
157
- * @deprecated removed
158
- * @protected
159
- */
160
- call(parameters?: Parameters): void;
161
- setParameter<Key extends keyof Parameters>(parameterKey: Key, value: Parameters[Key]): void;
162
- updateParameters(parameters: Partial<Parameters>): void;
163
- protected executed(result: any): void;
164
- protected failure(error: Error): void;
165
- protected successful(result: ReturnType): void;
166
- protected renderTemplate(result: ReturnType): void;
167
- private renderLoadingTemplate;
168
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<RemoteMethodTemplateDirective<any, any, any>, never>;
169
- static ɵdir: _angular_core.ɵɵDirectiveDeclaration<RemoteMethodTemplateDirective<any, any, any>, "[rxapRemoteMethod]", ["rxapRemoteMethod"], { "metadata": { "alias": "rxapRemoteMethodMetadata"; "required": false; "isSignal": true; }; "parameters": { "alias": "rxapRemoteMethodParameters"; "required": false; "isSignal": true; }; "errorTemplate": { "alias": "rxapRemoteMethodError"; "required": false; "isSignal": true; }; "loadingTemplate": { "alias": "rxapRemoteMethodLoading"; "required": false; "isSignal": true; }; "withoutParameters": { "alias": "rxapRemoteMethodWithoutParameters"; "required": false; "isSignal": true; }; "remoteMethodOrIdOrToken": { "alias": "rxapRemoteMethodCall"; "required": false; "isSignal": true; }; }, { "executed$": "executed"; "failure$": "failure"; "successful$": "successful"; "embedded": "embedded"; }, never, never, true, never>;
160
+ export declare class RemoteMethodTemplateDirective<ReturnType = any, Parameters = any, Metadata extends BaseRemoteMethodMetadata = BaseRemoteMethodMetadata> implements OnInit {
161
+ private readonly template;
162
+ protected readonly remoteMethodLoader: RemoteMethodLoader;
163
+ private readonly injector;
164
+ private readonly viewContainerRef;
165
+ protected readonly cdr: ChangeDetectorRef;
166
+ private readonly remoteMethodToken;
167
+ readonly executed$: import("@angular/core").OutputEmitterRef<void>;
168
+ readonly failure$: import("@angular/core").OutputEmitterRef<Error>;
169
+ readonly successful$: import("@angular/core").OutputEmitterRef<ReturnType>;
170
+ readonly metadata: import("@angular/core").InputSignal<Metadata | undefined>;
171
+ /**
172
+ * true - a remote method call is in progress
173
+ */
174
+ executing$: ToggleSubject;
175
+ readonly parameters: import("@angular/core").InputSignal<Parameters | undefined>;
176
+ protected readonly currentParameters: import("@angular/core").WritableSignal<Parameters | undefined>;
177
+ readonly errorTemplate: import("@angular/core").InputSignal<TemplateRef<RemoteMethodTemplateDirectiveErrorContext> | undefined>;
178
+ readonly loadingTemplate: import("@angular/core").InputSignal<TemplateRef<void> | undefined>;
179
+ readonly withoutParameters: import("@angular/core").InputSignal<boolean>;
180
+ readonly embedded: import("@angular/core").OutputEmitterRef<void>;
181
+ readonly remoteMethodOrIdOrToken: import("@angular/core").InputSignal<IdOrInstanceOrToken<BaseRemoteMethod<ReturnType, Parameters, Metadata>> | undefined>;
182
+ protected readonly _remoteMethodOrIdOrToken: import("@angular/core").Signal<any>;
183
+ static ngTemplateContextGuard<T>(dir: RemoteMethodTemplateDirective<T>, ctx: any): ctx is RemoteMethodTemplateDirectiveContext<T>;
184
+ constructor();
185
+ ngOnInit(): void;
186
+ execute(parameters?: Parameters | undefined): Promise<void>;
187
+ /**
188
+ * @deprecated removed
189
+ * @protected
190
+ */
191
+ call(parameters?: Parameters): void;
192
+ setParameter<Key extends keyof Parameters>(parameterKey: Key, value: Parameters[Key]): void;
193
+ updateParameters(parameters: Partial<Parameters>): void;
194
+ protected executed(result: any): void;
195
+ protected failure(error: Error): void;
196
+ protected successful(result: ReturnType): void;
197
+ protected renderTemplate(result: ReturnType): void;
198
+ private renderLoadingTemplate;
199
+ static ɵfac: i0.ɵɵFactoryDeclaration<RemoteMethodTemplateDirective<any, any, any>, never>;
200
+ static ɵdir: i0.ɵɵDirectiveDeclaration<RemoteMethodTemplateDirective<any, any, any>, "[rxapRemoteMethod]", ["rxapRemoteMethod"], {
201
+ "metadata": {
202
+ "alias": "rxapRemoteMethodMetadata";
203
+ "required": false;
204
+ "isSignal": true;
205
+ };
206
+ "parameters": {
207
+ "alias": "rxapRemoteMethodParameters";
208
+ "required": false;
209
+ "isSignal": true;
210
+ };
211
+ "errorTemplate": {
212
+ "alias": "rxapRemoteMethodError";
213
+ "required": false;
214
+ "isSignal": true;
215
+ };
216
+ "loadingTemplate": {
217
+ "alias": "rxapRemoteMethodLoading";
218
+ "required": false;
219
+ "isSignal": true;
220
+ };
221
+ "withoutParameters": {
222
+ "alias": "rxapRemoteMethodWithoutParameters";
223
+ "required": false;
224
+ "isSignal": true;
225
+ };
226
+ "remoteMethodOrIdOrToken": {
227
+ "alias": "rxapRemoteMethodCall";
228
+ "required": false;
229
+ "isSignal": true;
230
+ };
231
+ }, {
232
+ "executed$": "executed";
233
+ "failure$": "failure";
234
+ "successful$": "successful";
235
+ "embedded": "embedded";
236
+ }, never, never, true, never>;
170
237
  }
171
-
172
- declare class RemoteMethodDirective<ReturnType = any, Parameters = any, Metadata extends BaseRemoteMethodMetadata = BaseRemoteMethodMetadata> implements OnInit {
173
- protected readonly remoteMethodLoader: RemoteMethodLoader;
174
- private readonly injector;
175
- private readonly remoteMethodToken;
176
- readonly parameters: _angular_core.InputSignal<Parameters | undefined>;
177
- protected readonly currentParameters: _angular_core.WritableSignal<Parameters | undefined>;
178
- readonly metadata: _angular_core.InputSignal<Metadata | undefined>;
179
- readonly executed$: _angular_core.OutputEmitterRef<void>;
180
- readonly failure$: _angular_core.OutputEmitterRef<Error>;
181
- readonly successful$: _angular_core.OutputEmitterRef<ReturnType>;
182
- readonly immediately: _angular_core.InputSignal<boolean>;
183
- /**
184
- * true - a remote method call is in progress
185
- */
186
- executing$: ToggleSubject;
187
- readonly remoteMethodOrIdOrToken: _angular_core.InputSignal<IdOrInstanceOrToken<BaseRemoteMethod<ReturnType, Parameters, Metadata>> | undefined>;
188
- protected readonly _remoteMethodOrIdOrToken: _angular_core.Signal<any>;
189
- readonly hasConfirmDirective: _angular_core.InputSignalWithTransform<boolean, any>;
190
- ngOnInit(): void;
191
- onConfirmed(): void;
192
- onClick(): void;
193
- execute(): Promise<void>;
194
- setParameter<Key extends keyof Parameters>(parameterKey: Key, value: Parameters[Key]): void;
195
- updateParameters(parameters: Partial<Parameters>): void;
196
- protected executed(result: any): void;
197
- protected failure(error: Error): void;
198
- protected successful(result: ReturnType): void;
199
- /**
200
- * @deprecated removed
201
- * @protected
202
- */
203
- protected call(): Promise<any>;
204
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<RemoteMethodDirective<any, any, any>, never>;
205
- static ɵdir: _angular_core.ɵɵDirectiveDeclaration<RemoteMethodDirective<any, any, any>, "[rxapRemoteMethod]", ["rxapRemoteMethod"], { "parameters": { "alias": "parameters"; "required": false; "isSignal": true; }; "metadata": { "alias": "metadata"; "required": false; "isSignal": true; }; "immediately": { "alias": "immediately"; "required": false; "isSignal": true; }; "remoteMethodOrIdOrToken": { "alias": "rxapRemoteMethod"; "required": false; "isSignal": true; }; "hasConfirmDirective": { "alias": "rxapConfirm"; "required": false; "isSignal": true; }; }, { "executed$": "executed"; "failure$": "failure"; "successful$": "successful"; }, never, never, true, never>;
238
+ export declare class RemoteMethodDirective<ReturnType = any, Parameters = any, Metadata extends BaseRemoteMethodMetadata = BaseRemoteMethodMetadata> implements OnInit {
239
+ protected readonly remoteMethodLoader: RemoteMethodLoader;
240
+ private readonly injector;
241
+ private readonly remoteMethodToken;
242
+ readonly parameters: import("@angular/core").InputSignal<Parameters | undefined>;
243
+ protected readonly currentParameters: import("@angular/core").WritableSignal<Parameters | undefined>;
244
+ readonly metadata: import("@angular/core").InputSignal<Metadata | undefined>;
245
+ readonly executed$: import("@angular/core").OutputEmitterRef<void>;
246
+ readonly failure$: import("@angular/core").OutputEmitterRef<Error>;
247
+ readonly successful$: import("@angular/core").OutputEmitterRef<ReturnType>;
248
+ readonly immediately: import("@angular/core").InputSignal<boolean>;
249
+ /**
250
+ * true - a remote method call is in progress
251
+ */
252
+ executing$: ToggleSubject;
253
+ readonly remoteMethodOrIdOrToken: import("@angular/core").InputSignal<IdOrInstanceOrToken<BaseRemoteMethod<ReturnType, Parameters, Metadata>> | undefined>;
254
+ protected readonly _remoteMethodOrIdOrToken: import("@angular/core").Signal<any>;
255
+ readonly hasConfirmDirective: import("@angular/core").InputSignalWithTransform<boolean, any>;
256
+ ngOnInit(): void;
257
+ onConfirmed(): void;
258
+ onClick(): void;
259
+ execute(): Promise<void>;
260
+ setParameter<Key extends keyof Parameters>(parameterKey: Key, value: Parameters[Key]): void;
261
+ updateParameters(parameters: Partial<Parameters>): void;
262
+ protected executed(result: any): void;
263
+ protected failure(error: Error): void;
264
+ protected successful(result: ReturnType): void;
265
+ /**
266
+ * @deprecated removed
267
+ * @protected
268
+ */
269
+ protected call(): Promise<any>;
270
+ static ɵfac: i0.ɵɵFactoryDeclaration<RemoteMethodDirective<any, any, any>, never>;
271
+ static ɵdir: i0.ɵɵDirectiveDeclaration<RemoteMethodDirective<any, any, any>, "[rxapRemoteMethod]", ["rxapRemoteMethod"], {
272
+ "parameters": {
273
+ "alias": "parameters";
274
+ "required": false;
275
+ "isSignal": true;
276
+ };
277
+ "metadata": {
278
+ "alias": "metadata";
279
+ "required": false;
280
+ "isSignal": true;
281
+ };
282
+ "immediately": {
283
+ "alias": "immediately";
284
+ "required": false;
285
+ "isSignal": true;
286
+ };
287
+ "remoteMethodOrIdOrToken": {
288
+ "alias": "rxapRemoteMethod";
289
+ "required": false;
290
+ "isSignal": true;
291
+ };
292
+ "hasConfirmDirective": {
293
+ "alias": "rxapConfirm";
294
+ "required": false;
295
+ "isSignal": true;
296
+ };
297
+ }, {
298
+ "executed$": "executed";
299
+ "failure$": "failure";
300
+ "successful$": "successful";
301
+ }, never, never, true, never>;
206
302
  }
207
-
208
- declare const RXAP_REMOTE_METHOD_DIRECTIVE_TOKEN: InjectionToken<unknown>;
209
-
210
- export { RXAP_REMOTE_METHOD_DIRECTIVE_TOKEN, RemoteMethodDirective, RemoteMethodTemplateCollectionDirective, RemoteMethodTemplateCollectionDirectiveContext, RemoteMethodTemplateDirective, RxapRemoteMethodDirectiveError };
211
- export type { RemoteMethodTemplateCollectionDirectiveErrorContext, RemoteMethodTemplateDirectiveContext, RemoteMethodTemplateDirectiveErrorContext };
303
+ export declare const RXAP_REMOTE_METHOD_DIRECTIVE_TOKEN: InjectionToken<unknown>;