@rxap/remote-method 21.0.1-dev.0 → 21.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +36 -0
- package/compodoc/changelog.html +34 -0
- package/compodoc/dependencies.html +3 -3
- package/compodoc/js/search/search_index.js +2 -2
- package/compodoc/properties.html +1 -1
- package/docs/documentation.json +197 -243
- 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 +5 -13
- package/docs/markdown/classes/RxapRemoteMethodError.md +13 -13
- 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 +4 -12
- package/docs/wiki/Class.RxapRemoteMethodError.md +12 -12
- 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 +159 -305
- package/fesm2022/rxap-remote-method-directive.mjs.map +1 -1
- package/fesm2022/rxap-remote-method-http-directive.mjs +50 -89
- package/fesm2022/rxap-remote-method-http-directive.mjs.map +1 -1
- package/fesm2022/rxap-remote-method-http.mjs +5 -12
- package/fesm2022/rxap-remote-method-http.mjs.map +1 -1
- package/package.json +8 -8
- package/types/rxap-remote-method-directive.d.ts +44 -49
- package/types/rxap-remote-method-http-directive.d.ts +25 -20
- package/types/rxap-remote-method-http.d.ts +1 -2
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "21.0.1
|
|
2
|
+
"version": "21.0.1",
|
|
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",
|
|
@@ -10,9 +10,9 @@
|
|
|
10
10
|
"peerDependencies": {
|
|
11
11
|
"@angular/common": "^21.2.9",
|
|
12
12
|
"@angular/core": "^21.2.9",
|
|
13
|
-
"@rxap/definition": "^21.0.1
|
|
14
|
-
"@rxap/rxjs": "^1.1.18
|
|
15
|
-
"@rxap/utilities": "^16.5.2
|
|
13
|
+
"@rxap/definition": "^21.0.1",
|
|
14
|
+
"@rxap/rxjs": "^1.1.18",
|
|
15
|
+
"@rxap/utilities": "^16.5.2",
|
|
16
16
|
"rxjs": "^7.8.2"
|
|
17
17
|
},
|
|
18
18
|
"author": {
|
|
@@ -46,19 +46,19 @@
|
|
|
46
46
|
},
|
|
47
47
|
{
|
|
48
48
|
"package": "@rxap/definition",
|
|
49
|
-
"version": "21.0.1
|
|
49
|
+
"version": "21.0.1"
|
|
50
50
|
},
|
|
51
51
|
{
|
|
52
52
|
"package": "@rxap/reflect-metadata",
|
|
53
|
-
"version": "1.0.18
|
|
53
|
+
"version": "1.0.18"
|
|
54
54
|
},
|
|
55
55
|
{
|
|
56
56
|
"package": "@rxap/rxjs",
|
|
57
|
-
"version": "1.1.18
|
|
57
|
+
"version": "1.1.18"
|
|
58
58
|
},
|
|
59
59
|
{
|
|
60
60
|
"package": "@rxap/utilities",
|
|
61
|
-
"version": "16.5.2
|
|
61
|
+
"version": "16.5.2"
|
|
62
62
|
}
|
|
63
63
|
]
|
|
64
64
|
},
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { RxapRemoteMethodError, BaseRemoteMethodMetadata, RemoteMethodLoader, BaseRemoteMethod } from '@rxap/remote-method';
|
|
2
|
-
import * as
|
|
3
|
-
import {
|
|
2
|
+
import * as _angular_core from '@angular/core';
|
|
3
|
+
import { DoCheck, OnInit, ChangeDetectorRef, TemplateRef, TrackByFunction, IterableChanges, InjectionToken } from '@angular/core';
|
|
4
4
|
import { IdOrInstanceOrToken } from '@rxap/definition';
|
|
5
5
|
import { ToggleSubject } from '@rxap/rxjs';
|
|
6
6
|
|
|
@@ -23,21 +23,19 @@ interface RemoteMethodTemplateCollectionDirectiveErrorContext {
|
|
|
23
23
|
message?: string;
|
|
24
24
|
name?: string;
|
|
25
25
|
}
|
|
26
|
-
declare class RemoteMethodTemplateCollectionDirective<ReturnType = any, Parameters = any, Metadata extends BaseRemoteMethodMetadata = BaseRemoteMethodMetadata> implements
|
|
26
|
+
declare class RemoteMethodTemplateCollectionDirective<ReturnType = any, Parameters = any, Metadata extends BaseRemoteMethodMetadata = BaseRemoteMethodMetadata> implements DoCheck, OnInit {
|
|
27
27
|
private readonly template;
|
|
28
28
|
protected readonly remoteMethodLoader: RemoteMethodLoader;
|
|
29
29
|
private readonly injector;
|
|
30
30
|
private readonly viewContainerRef;
|
|
31
31
|
protected readonly cdr: ChangeDetectorRef;
|
|
32
32
|
private readonly differs;
|
|
33
|
-
private readonly
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
withoutParameters: boolean;
|
|
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>;
|
|
39
38
|
private _differ;
|
|
40
|
-
private _trackByFn;
|
|
41
39
|
private _dirty;
|
|
42
40
|
/**
|
|
43
41
|
* Indicates that the remote method returned a empty collection
|
|
@@ -75,8 +73,6 @@ declare class RemoteMethodTemplateCollectionDirective<ReturnType = any, Paramete
|
|
|
75
73
|
* @private
|
|
76
74
|
*/
|
|
77
75
|
private _errorTemplateViewRef;
|
|
78
|
-
constructor(template: TemplateRef<RemoteMethodTemplateCollectionDirectiveContext<ReturnType>>, remoteMethodLoader: RemoteMethodLoader, injector: Injector, viewContainerRef: ViewContainerRef, cdr: ChangeDetectorRef, differs: IterableDiffers, zone: NgZone, remoteMethodToken?: any | undefined);
|
|
79
|
-
get trackBy(): TrackByFunction<ReturnType>;
|
|
80
76
|
/**
|
|
81
77
|
* A function that defines how to track changes for items in the iterable.
|
|
82
78
|
*
|
|
@@ -94,9 +90,9 @@ declare class RemoteMethodTemplateCollectionDirective<ReturnType = any, Paramete
|
|
|
94
90
|
* The function receives two inputs,
|
|
95
91
|
* the iteration index and the node object ID.
|
|
96
92
|
*/
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
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>;
|
|
100
96
|
/**
|
|
101
97
|
* Holds the data that should be displayed
|
|
102
98
|
* @private
|
|
@@ -110,7 +106,7 @@ declare class RemoteMethodTemplateCollectionDirective<ReturnType = any, Paramete
|
|
|
110
106
|
* `NgForOf` structural directive renders its template with a specific context type.
|
|
111
107
|
*/
|
|
112
108
|
static ngTemplateContextGuard<T>(dir: RemoteMethodTemplateCollectionDirective<T>, ctx: any): ctx is RemoteMethodTemplateCollectionDirectiveContext<T>;
|
|
113
|
-
|
|
109
|
+
constructor();
|
|
114
110
|
ngOnInit(): void;
|
|
115
111
|
call(parameters?: Parameters): void;
|
|
116
112
|
/**
|
|
@@ -119,8 +115,8 @@ declare class RemoteMethodTemplateCollectionDirective<ReturnType = any, Paramete
|
|
|
119
115
|
ngDoCheck(): void;
|
|
120
116
|
protected applyChanges(changes: IterableChanges<ReturnType>): void;
|
|
121
117
|
private perViewChange;
|
|
122
|
-
static ɵfac:
|
|
123
|
-
static ɵdir:
|
|
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>;
|
|
124
120
|
}
|
|
125
121
|
|
|
126
122
|
interface RemoteMethodTemplateDirectiveContext<ReturnType = any> {
|
|
@@ -130,31 +126,31 @@ interface RemoteMethodTemplateDirectiveErrorContext {
|
|
|
130
126
|
$implicit: Error;
|
|
131
127
|
message: string;
|
|
132
128
|
}
|
|
133
|
-
declare class RemoteMethodTemplateDirective<ReturnType = any, Parameters = any, Metadata extends BaseRemoteMethodMetadata = BaseRemoteMethodMetadata> implements
|
|
129
|
+
declare class RemoteMethodTemplateDirective<ReturnType = any, Parameters = any, Metadata extends BaseRemoteMethodMetadata = BaseRemoteMethodMetadata> implements OnInit {
|
|
134
130
|
private readonly template;
|
|
135
131
|
protected readonly remoteMethodLoader: RemoteMethodLoader;
|
|
136
132
|
private readonly injector;
|
|
137
133
|
private readonly viewContainerRef;
|
|
138
134
|
protected readonly cdr: ChangeDetectorRef;
|
|
139
|
-
private readonly remoteMethodToken
|
|
140
|
-
executed$:
|
|
141
|
-
failure$:
|
|
142
|
-
successful$:
|
|
143
|
-
metadata
|
|
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>;
|
|
144
140
|
/**
|
|
145
141
|
* true - a remote method call is in progress
|
|
146
142
|
*/
|
|
147
143
|
executing$: ToggleSubject;
|
|
148
|
-
parameters
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
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>;
|
|
156
152
|
static ngTemplateContextGuard<T>(dir: RemoteMethodTemplateDirective<T>, ctx: any): ctx is RemoteMethodTemplateDirectiveContext<T>;
|
|
157
|
-
|
|
153
|
+
constructor();
|
|
158
154
|
ngOnInit(): void;
|
|
159
155
|
execute(parameters?: Parameters | undefined): Promise<void>;
|
|
160
156
|
/**
|
|
@@ -169,29 +165,28 @@ declare class RemoteMethodTemplateDirective<ReturnType = any, Parameters = any,
|
|
|
169
165
|
protected successful(result: ReturnType): void;
|
|
170
166
|
protected renderTemplate(result: ReturnType): void;
|
|
171
167
|
private renderLoadingTemplate;
|
|
172
|
-
static ɵfac:
|
|
173
|
-
static ɵdir:
|
|
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>;
|
|
174
170
|
}
|
|
175
171
|
|
|
176
172
|
declare class RemoteMethodDirective<ReturnType = any, Parameters = any, Metadata extends BaseRemoteMethodMetadata = BaseRemoteMethodMetadata> implements OnInit {
|
|
177
173
|
protected readonly remoteMethodLoader: RemoteMethodLoader;
|
|
178
174
|
private readonly injector;
|
|
179
|
-
private readonly remoteMethodToken
|
|
180
|
-
parameters
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
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>;
|
|
186
183
|
/**
|
|
187
184
|
* true - a remote method call is in progress
|
|
188
185
|
*/
|
|
189
186
|
executing$: ToggleSubject;
|
|
190
|
-
|
|
191
|
-
protected _remoteMethodOrIdOrToken:
|
|
192
|
-
|
|
193
|
-
private _hasConfirmDirective;
|
|
194
|
-
set hasConfirmDirective(value: any);
|
|
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>;
|
|
195
190
|
ngOnInit(): void;
|
|
196
191
|
onConfirmed(): void;
|
|
197
192
|
onClick(): void;
|
|
@@ -206,8 +201,8 @@ declare class RemoteMethodDirective<ReturnType = any, Parameters = any, Metadata
|
|
|
206
201
|
* @protected
|
|
207
202
|
*/
|
|
208
203
|
protected call(): Promise<any>;
|
|
209
|
-
static ɵfac:
|
|
210
|
-
static ɵdir:
|
|
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>;
|
|
211
206
|
}
|
|
212
207
|
|
|
213
208
|
declare const RXAP_REMOTE_METHOD_DIRECTIVE_TOKEN: InjectionToken<unknown>;
|
|
@@ -1,35 +1,40 @@
|
|
|
1
|
-
import
|
|
2
|
-
import * as
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import * as _angular_common_http from '@angular/common/http';
|
|
3
3
|
import { RemoteMethodDirective } from '@rxap/remote-method/directive';
|
|
4
|
+
import { HttpRemoteMethodMetadata, HttpRemoteMethodParameter } from '@rxap/remote-method/http';
|
|
4
5
|
import { BaseRemoteMethod } from '@rxap/remote-method';
|
|
5
6
|
import { IdOrInstanceOrToken } from '@rxap/definition';
|
|
6
7
|
|
|
7
8
|
declare class ContenteditableDirective {
|
|
8
9
|
private readonly httpRemoteMethodLoader;
|
|
9
10
|
contenteditable: boolean;
|
|
10
|
-
remoteMethodId: string
|
|
11
|
-
property: string
|
|
12
|
-
uuid: string
|
|
13
|
-
constructor(httpRemoteMethodLoader: HttpRemoteMethodLoader);
|
|
11
|
+
readonly remoteMethodId: _angular_core.InputSignal<string>;
|
|
12
|
+
readonly property: _angular_core.InputSignal<string>;
|
|
13
|
+
readonly uuid: _angular_core.InputSignal<string>;
|
|
14
14
|
onClick($event: Event): void;
|
|
15
15
|
onInput($event: any): Promise<any>;
|
|
16
|
-
static ɵfac:
|
|
17
|
-
static ɵdir:
|
|
16
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ContenteditableDirective, never>;
|
|
17
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<ContenteditableDirective, "[rxapContenteditable]", never, { "remoteMethodId": { "alias": "rxapContenteditable"; "required": true; "isSignal": true; }; "property": { "alias": "property"; "required": true; "isSignal": true; }; "uuid": { "alias": "uuid"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
declare class HttpRemoteMethodDirective<ReturnType = any, Metadata extends HttpRemoteMethodMetadata = HttpRemoteMethodMetadata> extends RemoteMethodDirective<ReturnType, HttpRemoteMethodParameter, Metadata> {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
21
|
+
readonly headers: _angular_core.InputSignal<_angular_common_http.HttpHeaders | undefined>;
|
|
22
|
+
readonly reportProgress: _angular_core.InputSignal<boolean | undefined>;
|
|
23
|
+
readonly params: _angular_core.InputSignal<_angular_common_http.HttpParams | undefined>;
|
|
24
|
+
readonly responseType: _angular_core.InputSignal<"arraybuffer" | "blob" | "json" | "text" | undefined>;
|
|
25
|
+
readonly withCredentials: _angular_core.InputSignal<boolean | undefined>;
|
|
26
|
+
readonly body: _angular_core.InputSignal<any>;
|
|
27
|
+
readonly setHeaders: _angular_core.InputSignal<{
|
|
28
|
+
[name: string]: string | string[];
|
|
29
|
+
} | undefined>;
|
|
30
|
+
readonly setParams: _angular_core.InputSignal<{
|
|
31
|
+
[param: string]: string;
|
|
32
|
+
} | undefined>;
|
|
33
|
+
readonly pathParams: _angular_core.InputSignal<any>;
|
|
34
|
+
readonly remoteMethodOrIdOrToken: _angular_core.InputSignal<IdOrInstanceOrToken<BaseRemoteMethod<ReturnType, HttpRemoteMethodParameter<any>, Metadata>> | undefined>;
|
|
35
|
+
constructor();
|
|
36
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<HttpRemoteMethodDirective<any, any>, never>;
|
|
37
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<HttpRemoteMethodDirective<any, any>, "button[rxapHttpRemoteMethod]", never, { "headers": { "alias": "headers"; "required": false; "isSignal": true; }; "reportProgress": { "alias": "reportProgress"; "required": false; "isSignal": true; }; "params": { "alias": "params"; "required": false; "isSignal": true; }; "responseType": { "alias": "responseType"; "required": false; "isSignal": true; }; "withCredentials": { "alias": "withCredentials"; "required": false; "isSignal": true; }; "body": { "alias": "body"; "required": false; "isSignal": true; }; "setHeaders": { "alias": "setHeaders"; "required": false; "isSignal": true; }; "setParams": { "alias": "setParams"; "required": false; "isSignal": true; }; "pathParams": { "alias": "pathParams"; "required": false; "isSignal": true; }; "remoteMethodOrIdOrToken": { "alias": "rxapHttpRemoteMethod"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
33
38
|
}
|
|
34
39
|
|
|
35
40
|
export { ContenteditableDirective, HttpRemoteMethodDirective };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { Injector, InjectOptions } from '@angular/core';
|
|
3
3
|
import { HttpHeaders, HttpParams, HttpContext, HttpClient, HttpRequest, HttpSentEvent, HttpHeaderResponse, HttpResponse, HttpProgressEvent } from '@angular/common/http';
|
|
4
|
-
import { BaseRemoteMethodMetadata, BaseRemoteMethod
|
|
4
|
+
import { BaseRemoteMethodMetadata, BaseRemoteMethod } from '@rxap/remote-method';
|
|
5
5
|
import { IdOrInstanceOrToken } from '@rxap/definition';
|
|
6
6
|
|
|
7
7
|
interface HttpRemoteMethodMetadata extends BaseRemoteMethodMetadata {
|
|
@@ -47,7 +47,6 @@ declare abstract class BaseHttpRemoteMethod<ReturnType = any, PathParams = any,
|
|
|
47
47
|
|
|
48
48
|
declare class HttpRemoteMethodLoader {
|
|
49
49
|
private readonly remoteMethodLoader;
|
|
50
|
-
constructor(remoteMethodLoader: RemoteMethodLoader);
|
|
51
50
|
request$<ReturnType = any, Parameters = any, Metadata extends BaseRemoteMethodMetadata = BaseRemoteMethodMetadata>(remoteMethodIdOrInstanceOrToken: IdOrInstanceOrToken<BaseRemoteMethod<ReturnType, Parameters, Metadata>>, parameters: Parameters, metadata?: Partial<BaseRemoteMethodMetadata>, injector?: Injector, notFoundValue?: BaseRemoteMethod<ReturnType, Parameters, Metadata>, flags?: InjectOptions): Promise<any>;
|
|
52
51
|
static ɵfac: i0.ɵɵFactoryDeclaration<HttpRemoteMethodLoader, never>;
|
|
53
52
|
static ɵprov: i0.ɵɵInjectableDeclaration<HttpRemoteMethodLoader>;
|