@rxap/directives 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 +26 -0
- package/compodoc/changelog.html +24 -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 +184 -184
- package/docs/html/classes/AvatarBackgroundImageDirective.html +4 -4
- package/docs/html/classes/BackgroundImageDirective.html +3 -3
- package/docs/html/classes/ConfirmClick.html +2 -2
- package/docs/html/classes/ContenteditableDirective.html +3 -3
- package/docs/html/classes/FullWidthDirective.html +2 -2
- package/docs/html/classes/IfTruthyDirective.html +3 -3
- package/docs/html/classes/IsDevModeDirective.html +3 -3
- package/docs/html/classes/MethodDirective.html +4 -4
- package/docs/html/classes/MethodTemplateDirective.html +4 -4
- package/docs/html/classes/MovableDividerDirective.html +2 -2
- package/docs/html/classes/PreventDefaultDirective.html +2 -2
- package/docs/html/classes/ShareButtonDirective.html +2 -2
- package/docs/html/classes/ShareService.html +2 -2
- package/docs/html/classes/StopImmediatePropagationDirective.html +2 -2
- package/docs/html/classes/StopPropagationDirective.html +2 -2
- package/docs/html/enums/BackgroundPositionOptions.html +2 -2
- package/docs/html/enums/BackgroundRepeatOptions.html +2 -2
- package/docs/html/enums/BackgroundSizeOptions.html +2 -2
- package/docs/html/enums/GlobalStyleOptions.html +2 -2
- package/docs/html/hierarchy.html +1 -1
- package/docs/html/index.html +2 -2
- package/docs/html/interfaces/ContenteditableEvent.html +2 -2
- package/docs/html/interfaces/IfTruthyDirectiveTemplateContext.html +2 -2
- package/docs/html/interfaces/MethodTemplateDirectiveContext.html +2 -2
- package/docs/html/interfaces/MethodTemplateDirectiveErrorContext.html +2 -2
- package/docs/html/interfaces/ShareData.html +2 -2
- package/docs/html/modules.html +1 -1
- package/docs/html/types/BackgroundPosition.html +1 -1
- package/docs/html/types/BackgroundRepeat.html +1 -1
- package/docs/html/types/BackgroundSize.html +1 -1
- package/docs/markdown/README.md +1 -1
- package/docs/markdown/classes/AvatarBackgroundImageDirective.md +10 -10
- package/docs/markdown/classes/BackgroundImageDirective.md +9 -9
- package/docs/markdown/classes/ConfirmClick.md +6 -6
- package/docs/markdown/classes/ContenteditableDirective.md +9 -9
- package/docs/markdown/classes/FullWidthDirective.md +2 -2
- package/docs/markdown/classes/IfTruthyDirective.md +9 -9
- package/docs/markdown/classes/IsDevModeDirective.md +4 -4
- package/docs/markdown/classes/MethodDirective.md +20 -20
- package/docs/markdown/classes/MethodTemplateDirective.md +27 -27
- package/docs/markdown/classes/MovableDividerDirective.md +7 -7
- package/docs/markdown/classes/PreventDefaultDirective.md +3 -3
- package/docs/markdown/classes/ShareButtonDirective.md +9 -9
- package/docs/markdown/classes/ShareService.md +4 -4
- package/docs/markdown/classes/StopImmediatePropagationDirective.md +3 -3
- package/docs/markdown/classes/StopPropagationDirective.md +3 -3
- package/docs/markdown/enumerations/BackgroundPositionOptions.md +4 -4
- package/docs/markdown/enumerations/BackgroundRepeatOptions.md +3 -3
- package/docs/markdown/enumerations/BackgroundSizeOptions.md +5 -5
- package/docs/markdown/enumerations/GlobalStyleOptions.md +4 -4
- package/docs/markdown/globals.md +2 -2
- package/docs/markdown/interfaces/ContenteditableEvent.md +4 -4
- package/docs/markdown/interfaces/IfTruthyDirectiveTemplateContext.md +3 -3
- package/docs/markdown/interfaces/MethodTemplateDirectiveContext.md +3 -3
- package/docs/markdown/interfaces/MethodTemplateDirectiveErrorContext.md +4 -4
- package/docs/markdown/interfaces/ShareData.md +6 -6
- package/docs/markdown/type-aliases/BackgroundPosition.md +2 -2
- package/docs/markdown/type-aliases/BackgroundRepeat.md +2 -2
- package/docs/markdown/type-aliases/BackgroundSize.md +2 -2
- package/docs/wiki/Class.AvatarBackgroundImageDirective.md +9 -9
- package/docs/wiki/Class.BackgroundImageDirective.md +8 -8
- package/docs/wiki/Class.ConfirmClick.md +5 -5
- package/docs/wiki/Class.ContenteditableDirective.md +8 -8
- package/docs/wiki/Class.FullWidthDirective.md +1 -1
- package/docs/wiki/Class.IfTruthyDirective.md +8 -8
- package/docs/wiki/Class.IsDevModeDirective.md +3 -3
- package/docs/wiki/Class.MethodDirective.md +19 -19
- package/docs/wiki/Class.MethodTemplateDirective.md +26 -26
- package/docs/wiki/Class.MovableDividerDirective.md +6 -6
- package/docs/wiki/Class.PreventDefaultDirective.md +2 -2
- package/docs/wiki/Class.ShareButtonDirective.md +8 -8
- package/docs/wiki/Class.ShareService.md +3 -3
- package/docs/wiki/Class.StopImmediatePropagationDirective.md +2 -2
- package/docs/wiki/Class.StopPropagationDirective.md +2 -2
- package/docs/wiki/Enumeration.BackgroundPositionOptions.md +3 -3
- package/docs/wiki/Enumeration.BackgroundRepeatOptions.md +2 -2
- package/docs/wiki/Enumeration.BackgroundSizeOptions.md +4 -4
- package/docs/wiki/Enumeration.GlobalStyleOptions.md +3 -3
- package/docs/wiki/Interface.ContenteditableEvent.md +3 -3
- package/docs/wiki/Interface.IfTruthyDirectiveTemplateContext.md +2 -2
- package/docs/wiki/Interface.MethodTemplateDirectiveContext.md +2 -2
- package/docs/wiki/Interface.MethodTemplateDirectiveErrorContext.md +3 -3
- package/docs/wiki/Interface.ShareData.md +5 -5
- package/docs/wiki/TypeAlias.BackgroundPosition.md +1 -1
- package/docs/wiki/TypeAlias.BackgroundRepeat.md +1 -1
- package/docs/wiki/TypeAlias.BackgroundSize.md +1 -1
- package/docs/wiki/globals.md +1 -1
- package/fesm2022/rxap-directives.mjs +1633 -741
- package/fesm2022/rxap-directives.mjs.map +1 -1
- package/package.json +14 -14
- package/types/rxap-directives.d.ts +429 -249
|
@@ -1,272 +1,452 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Generated bundle index. Do not edit.
|
|
3
|
+
*/
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
import { OnDestroy, OnInit, TemplateRef } from "@angular/core";
|
|
6
|
+
import { Method } from "@rxap/pattern";
|
|
7
|
+
import { ToggleSubject } from "@rxap/rxjs";
|
|
8
|
+
export declare enum GlobalStyleOptions {
|
|
9
|
+
INITIAL = "initial",
|
|
10
|
+
INHERIT = "inherit"
|
|
9
11
|
}
|
|
10
|
-
declare enum BackgroundSizeOptions {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
export declare enum BackgroundSizeOptions {
|
|
13
|
+
AUTO = "auto",
|
|
14
|
+
COVER = "cover",
|
|
15
|
+
CONTAIN = "contain"
|
|
14
16
|
}
|
|
15
|
-
type BackgroundSize = GlobalStyleOptions | BackgroundSizeOptions | string;
|
|
16
|
-
declare enum BackgroundRepeatOptions {
|
|
17
|
-
|
|
17
|
+
export type BackgroundSize = GlobalStyleOptions | BackgroundSizeOptions | string;
|
|
18
|
+
export declare enum BackgroundRepeatOptions {
|
|
19
|
+
NO_REPEAT = "no-repeat"
|
|
18
20
|
}
|
|
19
|
-
type BackgroundRepeat = GlobalStyleOptions | BackgroundRepeatOptions;
|
|
20
|
-
declare enum BackgroundPositionOptions {
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
export type BackgroundRepeat = GlobalStyleOptions | BackgroundRepeatOptions;
|
|
22
|
+
export declare enum BackgroundPositionOptions {
|
|
23
|
+
CENTER = "center",
|
|
24
|
+
CENTER_CENTER = "center center"
|
|
23
25
|
}
|
|
24
|
-
type BackgroundPosition = GlobalStyleOptions | BackgroundPositionOptions | string;
|
|
25
|
-
declare class BackgroundImageDirective {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
26
|
+
export type BackgroundPosition = GlobalStyleOptions | BackgroundPositionOptions | string;
|
|
27
|
+
export declare class BackgroundImageDirective {
|
|
28
|
+
private readonly host;
|
|
29
|
+
private readonly renderer;
|
|
30
|
+
private readonly imageLoader;
|
|
31
|
+
readonly imageUrl: import("@angular/core").InputSignal<string | null | undefined>;
|
|
32
|
+
readonly placeholderImageUrl: import("@angular/core").InputSignal<string | null | undefined>;
|
|
33
|
+
readonly size: import("@angular/core").InputSignal<string | null | undefined>;
|
|
34
|
+
readonly repeat: import("@angular/core").InputSignal<BackgroundRepeat | null | undefined>;
|
|
35
|
+
readonly position: import("@angular/core").InputSignal<string | null | undefined>;
|
|
36
|
+
/**
|
|
37
|
+
* The placeholder url that is used until the image is loaded. Derived
|
|
38
|
+
* directives can override this to provide a fallback.
|
|
39
|
+
*/
|
|
40
|
+
protected readonly placeholder: import("@angular/core").Signal<string | null | undefined>;
|
|
41
|
+
constructor();
|
|
42
|
+
private applyStyle;
|
|
43
|
+
private repeatChange;
|
|
44
|
+
private positionChange;
|
|
45
|
+
private sizeChange;
|
|
46
|
+
private _latestImageUrl;
|
|
47
|
+
private imageUrlChange;
|
|
48
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BackgroundImageDirective, never>;
|
|
49
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<BackgroundImageDirective, "[rxapBackgroundImage]", never, {
|
|
50
|
+
"imageUrl": {
|
|
51
|
+
"alias": "rxapBackgroundImage";
|
|
52
|
+
"required": false;
|
|
53
|
+
"isSignal": true;
|
|
54
|
+
};
|
|
55
|
+
"placeholderImageUrl": {
|
|
56
|
+
"alias": "placeholderImageUrl";
|
|
57
|
+
"required": false;
|
|
58
|
+
"isSignal": true;
|
|
59
|
+
};
|
|
60
|
+
"size": {
|
|
61
|
+
"alias": "size";
|
|
62
|
+
"required": false;
|
|
63
|
+
"isSignal": true;
|
|
64
|
+
};
|
|
65
|
+
"repeat": {
|
|
66
|
+
"alias": "repeat";
|
|
67
|
+
"required": false;
|
|
68
|
+
"isSignal": true;
|
|
69
|
+
};
|
|
70
|
+
"position": {
|
|
71
|
+
"alias": "position";
|
|
72
|
+
"required": false;
|
|
73
|
+
"isSignal": true;
|
|
74
|
+
};
|
|
75
|
+
}, {}, never, never, true, never>;
|
|
48
76
|
}
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
77
|
+
export declare class AvatarBackgroundImageDirective extends BackgroundImageDirective {
|
|
78
|
+
private readonly avatarImage;
|
|
79
|
+
readonly imageUrl: import("@angular/core").InputSignal<string | null | undefined>;
|
|
80
|
+
readonly size: import("@angular/core").InputSignal<string | null | undefined>;
|
|
81
|
+
readonly repeat: import("@angular/core").InputSignal<BackgroundRepeat | null | undefined>;
|
|
82
|
+
readonly position: import("@angular/core").InputSignal<string | null | undefined>;
|
|
83
|
+
/**
|
|
84
|
+
* The name used to generate a placeholder avatar if no explicit
|
|
85
|
+
* placeholderImageUrl is provided.
|
|
86
|
+
*/
|
|
87
|
+
readonly name: import("@angular/core").InputSignal<string | null | undefined>;
|
|
88
|
+
protected readonly placeholder: import("@angular/core").Signal<string | undefined>;
|
|
89
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AvatarBackgroundImageDirective, never>;
|
|
90
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<AvatarBackgroundImageDirective, "[rxapAvatarBackgroundImage]", never, {
|
|
91
|
+
"imageUrl": {
|
|
92
|
+
"alias": "rxapAvatarBackgroundImage";
|
|
93
|
+
"required": false;
|
|
94
|
+
"isSignal": true;
|
|
95
|
+
};
|
|
96
|
+
"size": {
|
|
97
|
+
"alias": "size";
|
|
98
|
+
"required": false;
|
|
99
|
+
"isSignal": true;
|
|
100
|
+
};
|
|
101
|
+
"repeat": {
|
|
102
|
+
"alias": "repeat";
|
|
103
|
+
"required": false;
|
|
104
|
+
"isSignal": true;
|
|
105
|
+
};
|
|
106
|
+
"position": {
|
|
107
|
+
"alias": "position";
|
|
108
|
+
"required": false;
|
|
109
|
+
"isSignal": true;
|
|
110
|
+
};
|
|
111
|
+
"name": {
|
|
112
|
+
"alias": "name";
|
|
113
|
+
"required": false;
|
|
114
|
+
"isSignal": true;
|
|
115
|
+
};
|
|
116
|
+
}, {}, never, never, true, never>;
|
|
64
117
|
}
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
118
|
+
export declare abstract class ConfirmClick {
|
|
119
|
+
readonly hasConfirmDirective: import("@angular/core").InputSignalWithTransform<boolean, any>;
|
|
120
|
+
onClick(): void;
|
|
121
|
+
onConfirm(): void;
|
|
122
|
+
protected abstract execute(): void;
|
|
123
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ConfirmClick, never>;
|
|
124
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ConfirmClick, never, never, {
|
|
125
|
+
"hasConfirmDirective": {
|
|
126
|
+
"alias": "rxapConfirm";
|
|
127
|
+
"required": false;
|
|
128
|
+
"isSignal": true;
|
|
129
|
+
};
|
|
130
|
+
}, {}, never, never, true, never>;
|
|
73
131
|
}
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
parameters?: any;
|
|
132
|
+
export interface ContenteditableEvent {
|
|
133
|
+
value: string;
|
|
134
|
+
parameters?: any;
|
|
78
135
|
}
|
|
79
|
-
declare class ContenteditableDirective {
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
136
|
+
export declare class ContenteditableDirective {
|
|
137
|
+
private readonly elementRef;
|
|
138
|
+
readonly method: import("@angular/core").InputSignal<Method<any, ContenteditableEvent> | undefined>;
|
|
139
|
+
readonly change: import("@angular/core").OutputEmitterRef<ContenteditableEvent>;
|
|
140
|
+
readonly parameters: import("@angular/core").InputSignal<any>;
|
|
141
|
+
readonly initialValue: import("@angular/core").InputSignal<string | undefined>;
|
|
142
|
+
/**
|
|
143
|
+
* The last known good value. Follows the bound `initial` input and is
|
|
144
|
+
* updated after a successful save.
|
|
145
|
+
*/
|
|
146
|
+
readonly initial: import("@angular/core").WritableSignal<string | undefined>;
|
|
147
|
+
onClick($event: Event): void;
|
|
148
|
+
onInput($event: any): Promise<void>;
|
|
149
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ContenteditableDirective, never>;
|
|
150
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ContenteditableDirective, "[rxapContenteditable]", never, {
|
|
151
|
+
"method": {
|
|
152
|
+
"alias": "rxapContenteditable";
|
|
153
|
+
"required": false;
|
|
154
|
+
"isSignal": true;
|
|
155
|
+
};
|
|
156
|
+
"parameters": {
|
|
157
|
+
"alias": "parameters";
|
|
158
|
+
"required": false;
|
|
159
|
+
"isSignal": true;
|
|
160
|
+
};
|
|
161
|
+
"initialValue": {
|
|
162
|
+
"alias": "initial";
|
|
163
|
+
"required": false;
|
|
164
|
+
"isSignal": true;
|
|
165
|
+
};
|
|
166
|
+
}, {
|
|
167
|
+
"change": "rxapContenteditable";
|
|
168
|
+
}, never, never, true, never>;
|
|
94
169
|
}
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<FullWidthDirective, "[rxapFullWidth]", never, {}, {}, never, never, true, never>;
|
|
170
|
+
export declare class FullWidthDirective {
|
|
171
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FullWidthDirective, never>;
|
|
172
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FullWidthDirective, "[rxapFullWidth]", never, {}, {}, never, never, true, never>;
|
|
99
173
|
}
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
$implicit: Data;
|
|
174
|
+
export interface IfTruthyDirectiveTemplateContext<Data> {
|
|
175
|
+
$implicit: Data;
|
|
103
176
|
}
|
|
104
|
-
declare class IfTruthyDirective<Data, Parameters = any> {
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
177
|
+
export declare class IfTruthyDirective<Data, Parameters = any> {
|
|
178
|
+
private readonly templateRef;
|
|
179
|
+
private readonly viewContainerRef;
|
|
180
|
+
readonly method: import("@angular/core").InputSignal<Method<Data, Parameters>>;
|
|
181
|
+
readonly parameters: import("@angular/core").InputSignal<Parameters>;
|
|
182
|
+
readonly trackBy: import("@angular/core").InputSignal<((data: Data) => any) | undefined>;
|
|
183
|
+
private _last?;
|
|
184
|
+
/**
|
|
185
|
+
* Asserts the correct type of the context for the template that `NgForOf` will render.
|
|
186
|
+
*
|
|
187
|
+
* The presence of this method is a signal to the Ivy template type-check compiler that the
|
|
188
|
+
* `NgForOf` structural directive renders its template with a specific context type.
|
|
189
|
+
*/
|
|
190
|
+
static ngTemplateContextGuard<T>(dir: IfTruthyDirective<T>, ctx: any): ctx is IfTruthyDirectiveTemplateContext<T>;
|
|
191
|
+
constructor();
|
|
192
|
+
protected execute(): Promise<void>;
|
|
193
|
+
protected hasChanged(current: Data): boolean;
|
|
194
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IfTruthyDirective<any, any>, never>;
|
|
195
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<IfTruthyDirective<any, any>, "[rxapIfTruthy]", never, {
|
|
196
|
+
"method": {
|
|
197
|
+
"alias": "rxapIfTruthy";
|
|
198
|
+
"required": true;
|
|
199
|
+
"isSignal": true;
|
|
200
|
+
};
|
|
201
|
+
"parameters": {
|
|
202
|
+
"alias": "rxapIfTruthyParameters";
|
|
203
|
+
"required": true;
|
|
204
|
+
"isSignal": true;
|
|
205
|
+
};
|
|
206
|
+
"trackBy": {
|
|
207
|
+
"alias": "rxapIfTruthyTrackBy";
|
|
208
|
+
"required": false;
|
|
209
|
+
"isSignal": true;
|
|
210
|
+
};
|
|
211
|
+
}, {}, never, never, true, never>;
|
|
123
212
|
}
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<IsDevModeDirective, "[rxapIsDevMode]", never, {}, {}, never, never, true, never>;
|
|
213
|
+
export declare class IsDevModeDirective implements OnInit, OnDestroy {
|
|
214
|
+
private readonly template;
|
|
215
|
+
private readonly vcr;
|
|
216
|
+
private embeddedViewRef?;
|
|
217
|
+
ngOnInit(): void;
|
|
218
|
+
ngOnDestroy(): void;
|
|
219
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IsDevModeDirective, never>;
|
|
220
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<IsDevModeDirective, "[rxapIsDevMode]", never, {}, {}, never, never, true, never>;
|
|
133
221
|
}
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
$implicit: ReturnType;
|
|
222
|
+
export interface MethodTemplateDirectiveContext<ReturnType = any> {
|
|
223
|
+
$implicit: ReturnType;
|
|
137
224
|
}
|
|
138
|
-
interface MethodTemplateDirectiveErrorContext {
|
|
139
|
-
|
|
140
|
-
|
|
225
|
+
export interface MethodTemplateDirectiveErrorContext {
|
|
226
|
+
$implicit: Error;
|
|
227
|
+
message: string;
|
|
141
228
|
}
|
|
142
|
-
declare class MethodTemplateDirective<ReturnType = any, Parameters = any> implements OnInit {
|
|
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
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
229
|
+
export declare class MethodTemplateDirective<ReturnType = any, Parameters = any> implements OnInit {
|
|
230
|
+
private readonly template;
|
|
231
|
+
private readonly viewContainerRef;
|
|
232
|
+
readonly method: import("@angular/core").InputSignal<Method<ReturnType, Parameters>>;
|
|
233
|
+
readonly parameters: import("@angular/core").InputSignal<Parameters | undefined>;
|
|
234
|
+
protected readonly currentParameters: import("@angular/core").WritableSignal<Parameters | undefined>;
|
|
235
|
+
readonly errorTemplate: import("@angular/core").InputSignal<TemplateRef<MethodTemplateDirectiveErrorContext> | undefined>;
|
|
236
|
+
readonly loadingTemplate: import("@angular/core").InputSignal<TemplateRef<void> | undefined>;
|
|
237
|
+
readonly withoutParameters: import("@angular/core").InputSignal<boolean>;
|
|
238
|
+
readonly immediately: import("@angular/core").InputSignal<boolean>;
|
|
239
|
+
readonly executed$: import("@angular/core").OutputEmitterRef<void>;
|
|
240
|
+
readonly failure$: import("@angular/core").OutputEmitterRef<Error>;
|
|
241
|
+
readonly successful$: import("@angular/core").OutputEmitterRef<ReturnType>;
|
|
242
|
+
/**
|
|
243
|
+
* true - a remote method call is in progress
|
|
244
|
+
*/
|
|
245
|
+
executing$: ToggleSubject;
|
|
246
|
+
readonly executing: import("@angular/core").OutputRef<boolean>;
|
|
247
|
+
readonly embedded: import("@angular/core").OutputEmitterRef<void>;
|
|
248
|
+
static ngTemplateContextGuard<T>(dir: MethodTemplateDirective<T>, ctx: any): ctx is MethodTemplateDirectiveContext<T>;
|
|
249
|
+
constructor();
|
|
250
|
+
ngOnInit(): void;
|
|
251
|
+
onConfirmed(): Promise<void>;
|
|
252
|
+
execute(parameters?: Parameters | undefined): Promise<void>;
|
|
253
|
+
setParameter<Key extends keyof Parameters>(parameterKey: Key, value: Parameters[Key]): void;
|
|
254
|
+
updateParameters(parameters: Partial<Parameters>): void;
|
|
255
|
+
protected executed(result: any): void;
|
|
256
|
+
protected failure(error: Error): void;
|
|
257
|
+
protected successful(result: ReturnType): void;
|
|
258
|
+
protected renderErrorTemplate(error: Error): void;
|
|
259
|
+
protected renderTemplate(result: ReturnType): void;
|
|
260
|
+
private renderLoadingTemplate;
|
|
261
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MethodTemplateDirective<any, any>, never>;
|
|
262
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<MethodTemplateDirective<any, any>, "[rxapMethod]", ["rxapMethod"], {
|
|
263
|
+
"method": {
|
|
264
|
+
"alias": "rxapMethodCall";
|
|
265
|
+
"required": true;
|
|
266
|
+
"isSignal": true;
|
|
267
|
+
};
|
|
268
|
+
"parameters": {
|
|
269
|
+
"alias": "rxapMethodParameters";
|
|
270
|
+
"required": false;
|
|
271
|
+
"isSignal": true;
|
|
272
|
+
};
|
|
273
|
+
"errorTemplate": {
|
|
274
|
+
"alias": "rxapMethodError";
|
|
275
|
+
"required": false;
|
|
276
|
+
"isSignal": true;
|
|
277
|
+
};
|
|
278
|
+
"loadingTemplate": {
|
|
279
|
+
"alias": "rxapMethodLoading";
|
|
280
|
+
"required": false;
|
|
281
|
+
"isSignal": true;
|
|
282
|
+
};
|
|
283
|
+
"withoutParameters": {
|
|
284
|
+
"alias": "rxapMethodWithoutParameters";
|
|
285
|
+
"required": false;
|
|
286
|
+
"isSignal": true;
|
|
287
|
+
};
|
|
288
|
+
"immediately": {
|
|
289
|
+
"alias": "immediately";
|
|
290
|
+
"required": false;
|
|
291
|
+
"isSignal": true;
|
|
292
|
+
};
|
|
293
|
+
}, {
|
|
294
|
+
"executed$": "executed";
|
|
295
|
+
"failure$": "failure";
|
|
296
|
+
"successful$": "successful";
|
|
297
|
+
"executing": "executing";
|
|
298
|
+
"embedded": "embedded";
|
|
299
|
+
}, never, never, true, never>;
|
|
176
300
|
}
|
|
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
|
-
|
|
301
|
+
export declare class MethodDirective<ReturnType = any, Parameters = any> implements OnInit {
|
|
302
|
+
readonly method: import("@angular/core").InputSignal<Method<ReturnType, Parameters>>;
|
|
303
|
+
readonly parameters: import("@angular/core").InputSignal<Parameters | undefined>;
|
|
304
|
+
protected readonly currentParameters: import("@angular/core").WritableSignal<Parameters | undefined>;
|
|
305
|
+
readonly immediately: import("@angular/core").InputSignal<boolean>;
|
|
306
|
+
readonly executed$: import("@angular/core").OutputEmitterRef<void>;
|
|
307
|
+
readonly failure$: import("@angular/core").OutputEmitterRef<Error>;
|
|
308
|
+
readonly successful$: import("@angular/core").OutputEmitterRef<ReturnType>;
|
|
309
|
+
/**
|
|
310
|
+
* true - a remote method call is in progress
|
|
311
|
+
*/
|
|
312
|
+
executing$: ToggleSubject;
|
|
313
|
+
readonly hasConfirmDirective: import("@angular/core").InputSignalWithTransform<boolean, any>;
|
|
314
|
+
ngOnInit(): void;
|
|
315
|
+
onConfirmed(): Promise<void>;
|
|
316
|
+
onClick(): Promise<void>;
|
|
317
|
+
execute(): Promise<void>;
|
|
318
|
+
setParameter<Key extends keyof Parameters>(parameterKey: Key, value: Parameters[Key]): void;
|
|
319
|
+
updateParameters(parameters: Partial<Parameters>): void;
|
|
320
|
+
protected executed(result: any): void;
|
|
321
|
+
protected failure(error: Error): void;
|
|
322
|
+
protected successful(result: ReturnType): void;
|
|
323
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MethodDirective<any, any>, never>;
|
|
324
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<MethodDirective<any, any>, "[rxapMethod]", ["rxapMethod"], {
|
|
325
|
+
"method": {
|
|
326
|
+
"alias": "rxapMethod";
|
|
327
|
+
"required": true;
|
|
328
|
+
"isSignal": true;
|
|
329
|
+
};
|
|
330
|
+
"parameters": {
|
|
331
|
+
"alias": "parameters";
|
|
332
|
+
"required": false;
|
|
333
|
+
"isSignal": true;
|
|
334
|
+
};
|
|
335
|
+
"immediately": {
|
|
336
|
+
"alias": "immediately";
|
|
337
|
+
"required": false;
|
|
338
|
+
"isSignal": true;
|
|
339
|
+
};
|
|
340
|
+
"hasConfirmDirective": {
|
|
341
|
+
"alias": "rxapConfirm";
|
|
342
|
+
"required": false;
|
|
343
|
+
"isSignal": true;
|
|
344
|
+
};
|
|
345
|
+
}, {
|
|
346
|
+
"executed$": "executed";
|
|
347
|
+
"failure$": "failure";
|
|
348
|
+
"successful$": "successful";
|
|
349
|
+
}, never, never, true, never>;
|
|
202
350
|
}
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
351
|
+
export declare class MovableDividerDirective {
|
|
352
|
+
private readonly renderer;
|
|
353
|
+
readonly containerElement: import("@angular/core").InputSignal<HTMLDivElement>;
|
|
354
|
+
readonly fixedElement: import("@angular/core").InputSignal<HTMLDivElement>;
|
|
355
|
+
readonly origin: import("@angular/core").InputSignal<"right" | "left">;
|
|
356
|
+
/**
|
|
357
|
+
* Indicates that the divider is moved with mouse down
|
|
358
|
+
* @private
|
|
359
|
+
*/
|
|
360
|
+
private _moveDivider;
|
|
361
|
+
/**
|
|
362
|
+
* Holds the current fixed element width.
|
|
363
|
+
* If null the move divider feature was not yet used and the initial
|
|
364
|
+
* fixed element width is not calculated
|
|
365
|
+
* @private
|
|
366
|
+
*/
|
|
367
|
+
private _fixedElementWidth;
|
|
368
|
+
constructor();
|
|
369
|
+
private listen;
|
|
370
|
+
onMousedown(): void;
|
|
371
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MovableDividerDirective, never>;
|
|
372
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<MovableDividerDirective, "[rxapMovableDivider]", never, {
|
|
373
|
+
"containerElement": {
|
|
374
|
+
"alias": "containerElement";
|
|
375
|
+
"required": true;
|
|
376
|
+
"isSignal": true;
|
|
377
|
+
};
|
|
378
|
+
"fixedElement": {
|
|
379
|
+
"alias": "fixedElement";
|
|
380
|
+
"required": true;
|
|
381
|
+
"isSignal": true;
|
|
382
|
+
};
|
|
383
|
+
"origin": {
|
|
384
|
+
"alias": "origin";
|
|
385
|
+
"required": false;
|
|
386
|
+
"isSignal": true;
|
|
387
|
+
};
|
|
388
|
+
}, {}, never, never, true, never>;
|
|
226
389
|
}
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<PreventDefaultDirective, "[rxapPreventDefault]", never, {}, {}, never, never, true, never>;
|
|
390
|
+
export declare class PreventDefaultDirective {
|
|
391
|
+
onClick($event: Event): void;
|
|
392
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PreventDefaultDirective, never>;
|
|
393
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<PreventDefaultDirective, "[rxapPreventDefault]", never, {}, {}, never, never, true, never>;
|
|
232
394
|
}
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
url?: string;
|
|
395
|
+
export interface ShareData {
|
|
396
|
+
files?: File[];
|
|
397
|
+
text?: string;
|
|
398
|
+
title?: string;
|
|
399
|
+
url?: string;
|
|
239
400
|
}
|
|
240
|
-
declare class ShareService {
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
401
|
+
export declare class ShareService {
|
|
402
|
+
readonly isSupported: boolean;
|
|
403
|
+
share(data: ShareData, softFail?: boolean): Promise<void>;
|
|
404
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ShareService, never>;
|
|
405
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
245
406
|
}
|
|
246
|
-
declare class ShareButtonDirective {
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
407
|
+
export declare class ShareButtonDirective {
|
|
408
|
+
readonly url: import("@angular/core").InputSignal<string | undefined>;
|
|
409
|
+
readonly text: import("@angular/core").InputSignal<string | undefined>;
|
|
410
|
+
readonly title: import("@angular/core").InputSignal<string | undefined>;
|
|
411
|
+
readonly files: import("@angular/core").InputSignal<File[] | undefined>;
|
|
412
|
+
readonly failed: import("@angular/core").OutputEmitterRef<any>;
|
|
413
|
+
readonly success: import("@angular/core").OutputEmitterRef<void>;
|
|
414
|
+
private readonly shareService;
|
|
415
|
+
share(): Promise<void>;
|
|
416
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ShareButtonDirective, never>;
|
|
417
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ShareButtonDirective, "[rxapShareButton],[rxapShare]", never, {
|
|
418
|
+
"url": {
|
|
419
|
+
"alias": "url";
|
|
420
|
+
"required": false;
|
|
421
|
+
"isSignal": true;
|
|
422
|
+
};
|
|
423
|
+
"text": {
|
|
424
|
+
"alias": "text";
|
|
425
|
+
"required": false;
|
|
426
|
+
"isSignal": true;
|
|
427
|
+
};
|
|
428
|
+
"title": {
|
|
429
|
+
"alias": "title";
|
|
430
|
+
"required": false;
|
|
431
|
+
"isSignal": true;
|
|
432
|
+
};
|
|
433
|
+
"files": {
|
|
434
|
+
"alias": "files";
|
|
435
|
+
"required": false;
|
|
436
|
+
"isSignal": true;
|
|
437
|
+
};
|
|
438
|
+
}, {
|
|
439
|
+
"failed": "failed";
|
|
440
|
+
"success": "success";
|
|
441
|
+
}, never, never, true, never>;
|
|
257
442
|
}
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<StopImmediatePropagationDirective, "[rxapStopImmediatePropagation]", never, {}, {}, never, never, true, never>;
|
|
443
|
+
export declare class StopImmediatePropagationDirective {
|
|
444
|
+
onClick($event: Event): void;
|
|
445
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<StopImmediatePropagationDirective, never>;
|
|
446
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<StopImmediatePropagationDirective, "[rxapStopImmediatePropagation]", never, {}, {}, never, never, true, never>;
|
|
263
447
|
}
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
}
|
|
270
|
-
|
|
271
|
-
export { AvatarBackgroundImageDirective, BackgroundImageDirective, BackgroundPositionOptions, BackgroundRepeatOptions, BackgroundSizeOptions, ConfirmClick, ContenteditableDirective, FullWidthDirective, GlobalStyleOptions, IfTruthyDirective, IsDevModeDirective, MethodDirective, MethodTemplateDirective, MovableDividerDirective, PreventDefaultDirective, ShareButtonDirective, ShareService, StopImmediatePropagationDirective, StopPropagationDirective };
|
|
272
|
-
export type { BackgroundPosition, BackgroundRepeat, BackgroundSize, ContenteditableEvent, IfTruthyDirectiveTemplateContext, MethodTemplateDirectiveContext, MethodTemplateDirectiveErrorContext, ShareData };
|
|
448
|
+
export declare class StopPropagationDirective {
|
|
449
|
+
onClick($event: Event): void;
|
|
450
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<StopPropagationDirective, never>;
|
|
451
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<StopPropagationDirective, "[rxapStopPropagation]", never, {}, {}, never, never, true, never>;
|
|
452
|
+
}
|