@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.
- package/CHANGELOG.md +25 -0
- package/compodoc/changelog.html +23 -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 +130 -130
- package/docs/html/classes/BaseRemoteMethod.html +10 -10
- package/docs/html/classes/ProxyRemoteMethod.html +10 -10
- package/docs/html/classes/RemoteMethodLoader.html +2 -2
- package/docs/html/classes/RxapRemoteMethodError.html +5 -5
- package/docs/html/functions/RxapRemoteMethod.html +1 -1
- package/docs/html/hierarchy.html +1 -1
- package/docs/html/index.html +2 -2
- package/docs/html/interfaces/BaseRemoteMethodMetadata.html +2 -2
- package/docs/html/modules.html +1 -1
- package/docs/html/variables/REMOTE_METHOD_META_DATA.html +1 -1
- package/docs/html/variables/RXAP_PROXY_REMOTE_METHOD_TARGET.html +1 -1
- package/docs/markdown/README.md +1 -1
- package/docs/markdown/classes/BaseRemoteMethod.md +31 -31
- package/docs/markdown/classes/ProxyRemoteMethod.md +32 -32
- package/docs/markdown/classes/RemoteMethodLoader.md +4 -4
- package/docs/markdown/classes/RxapRemoteMethodError.md +16 -16
- package/docs/markdown/functions/RxapRemoteMethod.md +2 -2
- package/docs/markdown/globals.md +2 -2
- package/docs/markdown/interfaces/BaseRemoteMethodMetadata.md +4 -4
- package/docs/markdown/variables/REMOTE_METHOD_META_DATA.md +2 -2
- package/docs/markdown/variables/RXAP_PROXY_REMOTE_METHOD_TARGET.md +2 -2
- package/docs/wiki/Class.BaseRemoteMethod.md +30 -30
- package/docs/wiki/Class.ProxyRemoteMethod.md +31 -31
- package/docs/wiki/Class.RemoteMethodLoader.md +3 -3
- package/docs/wiki/Class.RxapRemoteMethodError.md +15 -15
- package/docs/wiki/Function.RxapRemoteMethod.md +1 -1
- package/docs/wiki/Interface.BaseRemoteMethodMetadata.md +3 -3
- package/docs/wiki/Variable.REMOTE_METHOD_META_DATA.md +1 -1
- package/docs/wiki/Variable.RXAP_PROXY_REMOTE_METHOD_TARGET.md +1 -1
- package/docs/wiki/globals.md +1 -1
- package/fesm2022/rxap-remote-method-directive.mjs +804 -522
- package/fesm2022/rxap-remote-method-directive.mjs.map +1 -1
- package/fesm2022/rxap-remote-method-http-directive.mjs +352 -99
- package/fesm2022/rxap-remote-method-http-directive.mjs.map +1 -1
- package/fesm2022/rxap-remote-method-http.mjs +206 -162
- package/fesm2022/rxap-remote-method-http.mjs.map +1 -1
- package/fesm2022/rxap-remote-method-testing.mjs +37 -54
- package/fesm2022/rxap-remote-method-testing.mjs.map +1 -1
- package/fesm2022/rxap-remote-method.mjs +199 -134
- package/fesm2022/rxap-remote-method.mjs.map +1 -1
- package/package.json +13 -13
- package/types/rxap-remote-method-directive.d.ts +295 -203
- package/types/rxap-remote-method-http-directive.d.ts +104 -39
- package/types/rxap-remote-method-http.d.ts +63 -64
- package/types/rxap-remote-method-testing.d.ts +15 -16
- package/types/rxap-remote-method.d.ts +47 -48
|
@@ -1,211 +1,303 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
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
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
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
|
-
|
|
23
|
-
|
|
24
|
-
|
|
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
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
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
|
-
|
|
123
|
-
$implicit: ReturnType;
|
|
153
|
+
export interface RemoteMethodTemplateDirectiveContext<ReturnType = any> {
|
|
154
|
+
$implicit: ReturnType;
|
|
124
155
|
}
|
|
125
|
-
interface RemoteMethodTemplateDirectiveErrorContext {
|
|
126
|
-
|
|
127
|
-
|
|
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
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
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
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
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>;
|