@rxap/directives 21.0.1 → 22.0.0-dev.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/compodoc/changelog.html +5 -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 +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 +8 -8
- package/types/rxap-directives.d.ts +429 -249
|
@@ -1,752 +1,1644 @@
|
|
|
1
|
-
import * as i0 from
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { __decorate, __metadata } from
|
|
6
|
-
import { outputFromObservable } from
|
|
7
|
-
import { ToggleSubject } from
|
|
8
|
-
import { Subscription, fromEvent } from
|
|
9
|
-
import { tap } from
|
|
10
|
-
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import { Directive, ElementRef, Injectable, Renderer2, TemplateRef, ViewContainerRef, computed, effect, inject, input, isDevMode, linkedSignal, output, untracked } from "@angular/core";
|
|
3
|
+
import { AvatarImageService, ImageLoaderService } from "@rxap/services";
|
|
4
|
+
import { DebounceCall, coerceBoolean } from "@rxap/utilities";
|
|
5
|
+
import { __decorate, __metadata } from "tslib";
|
|
6
|
+
import { outputFromObservable } from "@angular/core/rxjs-interop";
|
|
7
|
+
import { ToggleSubject } from "@rxap/rxjs";
|
|
8
|
+
import { Subscription, fromEvent } from "rxjs";
|
|
9
|
+
import { tap } from "rxjs/operators";
|
|
11
10
|
var GlobalStyleOptions;
|
|
12
|
-
(function
|
|
13
|
-
|
|
14
|
-
|
|
11
|
+
(function(GlobalStyleOptions) {
|
|
12
|
+
GlobalStyleOptions["INITIAL"] = "initial";
|
|
13
|
+
GlobalStyleOptions["INHERIT"] = "inherit";
|
|
15
14
|
})(GlobalStyleOptions || (GlobalStyleOptions = {}));
|
|
16
|
-
// TODO : complete description
|
|
17
|
-
// https://www.w3schools.com/cssref/css3_pr_background-size.asp
|
|
18
15
|
var BackgroundSizeOptions;
|
|
19
|
-
(function
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
16
|
+
(function(BackgroundSizeOptions) {
|
|
17
|
+
BackgroundSizeOptions["AUTO"] = "auto";
|
|
18
|
+
BackgroundSizeOptions["COVER"] = "cover";
|
|
19
|
+
BackgroundSizeOptions["CONTAIN"] = "contain";
|
|
23
20
|
})(BackgroundSizeOptions || (BackgroundSizeOptions = {}));
|
|
24
|
-
// TODO : complete options and description
|
|
25
|
-
// https://www.w3schools.com/cssref/pr_background-repeat.asp
|
|
26
21
|
var BackgroundRepeatOptions;
|
|
27
|
-
(function
|
|
28
|
-
|
|
22
|
+
(function(BackgroundRepeatOptions) {
|
|
23
|
+
BackgroundRepeatOptions["NO_REPEAT"] = "no-repeat";
|
|
29
24
|
})(BackgroundRepeatOptions || (BackgroundRepeatOptions = {}));
|
|
30
|
-
// TODO : complete options and description
|
|
31
|
-
// https://www.w3schools.com/cssref/pr_background-position.asp
|
|
32
25
|
var BackgroundPositionOptions;
|
|
33
|
-
(function
|
|
34
|
-
|
|
35
|
-
|
|
26
|
+
(function(BackgroundPositionOptions) {
|
|
27
|
+
BackgroundPositionOptions["CENTER"] = "center";
|
|
28
|
+
BackgroundPositionOptions["CENTER_CENTER"] = "center center";
|
|
36
29
|
})(BackgroundPositionOptions || (BackgroundPositionOptions = {}));
|
|
37
|
-
class BackgroundImageDirective {
|
|
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
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
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
|
-
|
|
170
|
-
|
|
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
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
30
|
+
var BackgroundImageDirective = class BackgroundImageDirective {
|
|
31
|
+
constructor() {
|
|
32
|
+
this.host = inject(ElementRef);
|
|
33
|
+
this.renderer = inject(Renderer2);
|
|
34
|
+
this.imageLoader = inject(ImageLoaderService);
|
|
35
|
+
this.imageUrl = input(null, {
|
|
36
|
+
...ngDevMode ? { debugName: "imageUrl" } : /* istanbul ignore next */ {},
|
|
37
|
+
alias: "rxapBackgroundImage"
|
|
38
|
+
});
|
|
39
|
+
this.placeholderImageUrl = input(...ngDevMode ? [void 0, { debugName: "placeholderImageUrl" }] : /* istanbul ignore next */ []);
|
|
40
|
+
this.size = input(...ngDevMode ? [void 0, { debugName: "size" }] : /* istanbul ignore next */ []);
|
|
41
|
+
this.repeat = input(...ngDevMode ? [void 0, { debugName: "repeat" }] : /* istanbul ignore next */ []);
|
|
42
|
+
this.position = input(...ngDevMode ? [void 0, { debugName: "position" }] : /* istanbul ignore next */ []);
|
|
43
|
+
this.placeholder = computed(() => this.placeholderImageUrl(), ...ngDevMode ? [{ debugName: "placeholder" }] : /* istanbul ignore next */ []);
|
|
44
|
+
effect(() => {
|
|
45
|
+
const size = this.size();
|
|
46
|
+
untracked(() => this.sizeChange(size));
|
|
47
|
+
});
|
|
48
|
+
effect(() => {
|
|
49
|
+
const position = this.position();
|
|
50
|
+
untracked(() => this.positionChange(position));
|
|
51
|
+
});
|
|
52
|
+
effect(() => {
|
|
53
|
+
const repeat = this.repeat();
|
|
54
|
+
untracked(() => this.repeatChange(repeat));
|
|
55
|
+
});
|
|
56
|
+
effect(() => {
|
|
57
|
+
const imageUrl = this.imageUrl();
|
|
58
|
+
this.placeholder();
|
|
59
|
+
untracked(() => this.imageUrlChange(imageUrl));
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
applyStyle(style, value) {
|
|
63
|
+
if (value) this.renderer.setStyle(this.host.nativeElement, style, value);
|
|
64
|
+
else this.renderer.removeStyle(this.host.nativeElement, style);
|
|
65
|
+
}
|
|
66
|
+
repeatChange(repeat) {
|
|
67
|
+
this.applyStyle("background-repeat", repeat);
|
|
68
|
+
}
|
|
69
|
+
positionChange(position) {
|
|
70
|
+
this.applyStyle("background-position", position);
|
|
71
|
+
}
|
|
72
|
+
sizeChange(size) {
|
|
73
|
+
this.applyStyle("background-size", size);
|
|
74
|
+
}
|
|
75
|
+
async imageUrlChange(imageUrl) {
|
|
76
|
+
this._latestImageUrl = imageUrl;
|
|
77
|
+
const placeholderImageUrl = this.placeholder();
|
|
78
|
+
if (placeholderImageUrl) this.renderer.setStyle(this.host.nativeElement, "background-image", `url("${placeholderImageUrl}")`);
|
|
79
|
+
if (imageUrl) {
|
|
80
|
+
await this.imageLoader.load(imageUrl);
|
|
81
|
+
if (this._latestImageUrl !== imageUrl) return;
|
|
82
|
+
this.renderer.setStyle(this.host.nativeElement, "background-image", `url("${imageUrl}")`);
|
|
83
|
+
} else if (!placeholderImageUrl) this.renderer.removeStyle(this.host.nativeElement, "background-image");
|
|
84
|
+
}
|
|
85
|
+
static {
|
|
86
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
87
|
+
minVersion: "12.0.0",
|
|
88
|
+
version: "22.3.0",
|
|
89
|
+
ngImport: i0,
|
|
90
|
+
type: BackgroundImageDirective,
|
|
91
|
+
deps: [],
|
|
92
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
static {
|
|
96
|
+
this.ɵdir = i0.ɵɵngDeclareDirective({
|
|
97
|
+
minVersion: "17.1.0",
|
|
98
|
+
version: "22.3.0",
|
|
99
|
+
type: BackgroundImageDirective,
|
|
100
|
+
isStandalone: true,
|
|
101
|
+
selector: "[rxapBackgroundImage]",
|
|
102
|
+
inputs: {
|
|
103
|
+
imageUrl: {
|
|
104
|
+
classPropertyName: "imageUrl",
|
|
105
|
+
publicName: "rxapBackgroundImage",
|
|
106
|
+
isSignal: true,
|
|
107
|
+
isRequired: false,
|
|
108
|
+
transformFunction: null
|
|
109
|
+
},
|
|
110
|
+
placeholderImageUrl: {
|
|
111
|
+
classPropertyName: "placeholderImageUrl",
|
|
112
|
+
publicName: "placeholderImageUrl",
|
|
113
|
+
isSignal: true,
|
|
114
|
+
isRequired: false,
|
|
115
|
+
transformFunction: null
|
|
116
|
+
},
|
|
117
|
+
size: {
|
|
118
|
+
classPropertyName: "size",
|
|
119
|
+
publicName: "size",
|
|
120
|
+
isSignal: true,
|
|
121
|
+
isRequired: false,
|
|
122
|
+
transformFunction: null
|
|
123
|
+
},
|
|
124
|
+
repeat: {
|
|
125
|
+
classPropertyName: "repeat",
|
|
126
|
+
publicName: "repeat",
|
|
127
|
+
isSignal: true,
|
|
128
|
+
isRequired: false,
|
|
129
|
+
transformFunction: null
|
|
130
|
+
},
|
|
131
|
+
position: {
|
|
132
|
+
classPropertyName: "position",
|
|
133
|
+
publicName: "position",
|
|
134
|
+
isSignal: true,
|
|
135
|
+
isRequired: false,
|
|
136
|
+
transformFunction: null
|
|
137
|
+
}
|
|
138
|
+
},
|
|
139
|
+
ngImport: i0
|
|
140
|
+
});
|
|
141
|
+
}
|
|
142
|
+
};
|
|
143
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
144
|
+
minVersion: "12.0.0",
|
|
145
|
+
version: "22.3.0",
|
|
146
|
+
ngImport: i0,
|
|
147
|
+
type: BackgroundImageDirective,
|
|
148
|
+
decorators: [{
|
|
149
|
+
type: Directive,
|
|
150
|
+
args: [{
|
|
151
|
+
selector: "[rxapBackgroundImage]",
|
|
152
|
+
standalone: true
|
|
153
|
+
}]
|
|
154
|
+
}],
|
|
155
|
+
ctorParameters: () => [],
|
|
156
|
+
propDecorators: {
|
|
157
|
+
imageUrl: [{
|
|
158
|
+
type: i0.Input,
|
|
159
|
+
args: [{
|
|
160
|
+
isSignal: true,
|
|
161
|
+
alias: "rxapBackgroundImage",
|
|
162
|
+
required: false
|
|
163
|
+
}]
|
|
164
|
+
}],
|
|
165
|
+
placeholderImageUrl: [{
|
|
166
|
+
type: i0.Input,
|
|
167
|
+
args: [{
|
|
168
|
+
isSignal: true,
|
|
169
|
+
alias: "placeholderImageUrl",
|
|
170
|
+
required: false
|
|
171
|
+
}]
|
|
172
|
+
}],
|
|
173
|
+
size: [{
|
|
174
|
+
type: i0.Input,
|
|
175
|
+
args: [{
|
|
176
|
+
isSignal: true,
|
|
177
|
+
alias: "size",
|
|
178
|
+
required: false
|
|
179
|
+
}]
|
|
180
|
+
}],
|
|
181
|
+
repeat: [{
|
|
182
|
+
type: i0.Input,
|
|
183
|
+
args: [{
|
|
184
|
+
isSignal: true,
|
|
185
|
+
alias: "repeat",
|
|
186
|
+
required: false
|
|
187
|
+
}]
|
|
188
|
+
}],
|
|
189
|
+
position: [{
|
|
190
|
+
type: i0.Input,
|
|
191
|
+
args: [{
|
|
192
|
+
isSignal: true,
|
|
193
|
+
alias: "position",
|
|
194
|
+
required: false
|
|
195
|
+
}]
|
|
196
|
+
}]
|
|
197
|
+
}
|
|
198
|
+
});
|
|
199
|
+
var AvatarBackgroundImageDirective = class AvatarBackgroundImageDirective extends BackgroundImageDirective {
|
|
200
|
+
constructor() {
|
|
201
|
+
super(...arguments);
|
|
202
|
+
this.avatarImage = inject(AvatarImageService);
|
|
203
|
+
this.imageUrl = input(null, {
|
|
204
|
+
...ngDevMode ? { debugName: "imageUrl" } : /* istanbul ignore next */ {},
|
|
205
|
+
alias: "rxapAvatarBackgroundImage"
|
|
206
|
+
});
|
|
207
|
+
this.size = input(BackgroundSizeOptions.COVER, ...ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []);
|
|
208
|
+
this.repeat = input(BackgroundRepeatOptions.NO_REPEAT, ...ngDevMode ? [{ debugName: "repeat" }] : /* istanbul ignore next */ []);
|
|
209
|
+
this.position = input(...ngDevMode ? [void 0, { debugName: "position" }] : /* istanbul ignore next */ []);
|
|
210
|
+
this.name = input(...ngDevMode ? [void 0, { debugName: "name" }] : /* istanbul ignore next */ []);
|
|
211
|
+
this.placeholder = computed(() => {
|
|
212
|
+
const placeholderImageUrl = this.placeholderImageUrl();
|
|
213
|
+
if (placeholderImageUrl) return placeholderImageUrl;
|
|
214
|
+
const name = this.name();
|
|
215
|
+
return name ? this.avatarImage.get({ name }) : void 0;
|
|
216
|
+
}, ...ngDevMode ? [{ debugName: "placeholder" }] : /* istanbul ignore next */ []);
|
|
217
|
+
}
|
|
218
|
+
static {
|
|
219
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
220
|
+
minVersion: "12.0.0",
|
|
221
|
+
version: "22.3.0",
|
|
222
|
+
ngImport: i0,
|
|
223
|
+
type: AvatarBackgroundImageDirective,
|
|
224
|
+
deps: null,
|
|
225
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
226
|
+
});
|
|
227
|
+
}
|
|
228
|
+
static {
|
|
229
|
+
this.ɵdir = i0.ɵɵngDeclareDirective({
|
|
230
|
+
minVersion: "17.1.0",
|
|
231
|
+
version: "22.3.0",
|
|
232
|
+
type: AvatarBackgroundImageDirective,
|
|
233
|
+
isStandalone: true,
|
|
234
|
+
selector: "[rxapAvatarBackgroundImage]",
|
|
235
|
+
inputs: {
|
|
236
|
+
imageUrl: {
|
|
237
|
+
classPropertyName: "imageUrl",
|
|
238
|
+
publicName: "rxapAvatarBackgroundImage",
|
|
239
|
+
isSignal: true,
|
|
240
|
+
isRequired: false,
|
|
241
|
+
transformFunction: null
|
|
242
|
+
},
|
|
243
|
+
size: {
|
|
244
|
+
classPropertyName: "size",
|
|
245
|
+
publicName: "size",
|
|
246
|
+
isSignal: true,
|
|
247
|
+
isRequired: false,
|
|
248
|
+
transformFunction: null
|
|
249
|
+
},
|
|
250
|
+
repeat: {
|
|
251
|
+
classPropertyName: "repeat",
|
|
252
|
+
publicName: "repeat",
|
|
253
|
+
isSignal: true,
|
|
254
|
+
isRequired: false,
|
|
255
|
+
transformFunction: null
|
|
256
|
+
},
|
|
257
|
+
position: {
|
|
258
|
+
classPropertyName: "position",
|
|
259
|
+
publicName: "position",
|
|
260
|
+
isSignal: true,
|
|
261
|
+
isRequired: false,
|
|
262
|
+
transformFunction: null
|
|
263
|
+
},
|
|
264
|
+
name: {
|
|
265
|
+
classPropertyName: "name",
|
|
266
|
+
publicName: "name",
|
|
267
|
+
isSignal: true,
|
|
268
|
+
isRequired: false,
|
|
269
|
+
transformFunction: null
|
|
270
|
+
}
|
|
271
|
+
},
|
|
272
|
+
usesInheritance: true,
|
|
273
|
+
ngImport: i0
|
|
274
|
+
});
|
|
275
|
+
}
|
|
276
|
+
};
|
|
277
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
278
|
+
minVersion: "12.0.0",
|
|
279
|
+
version: "22.3.0",
|
|
280
|
+
ngImport: i0,
|
|
281
|
+
type: AvatarBackgroundImageDirective,
|
|
282
|
+
decorators: [{
|
|
283
|
+
type: Directive,
|
|
284
|
+
args: [{
|
|
285
|
+
selector: "[rxapAvatarBackgroundImage]",
|
|
286
|
+
standalone: true
|
|
287
|
+
}]
|
|
288
|
+
}],
|
|
289
|
+
propDecorators: {
|
|
290
|
+
imageUrl: [{
|
|
291
|
+
type: i0.Input,
|
|
292
|
+
args: [{
|
|
293
|
+
isSignal: true,
|
|
294
|
+
alias: "rxapAvatarBackgroundImage",
|
|
295
|
+
required: false
|
|
296
|
+
}]
|
|
297
|
+
}],
|
|
298
|
+
size: [{
|
|
299
|
+
type: i0.Input,
|
|
300
|
+
args: [{
|
|
301
|
+
isSignal: true,
|
|
302
|
+
alias: "size",
|
|
303
|
+
required: false
|
|
304
|
+
}]
|
|
305
|
+
}],
|
|
306
|
+
repeat: [{
|
|
307
|
+
type: i0.Input,
|
|
308
|
+
args: [{
|
|
309
|
+
isSignal: true,
|
|
310
|
+
alias: "repeat",
|
|
311
|
+
required: false
|
|
312
|
+
}]
|
|
313
|
+
}],
|
|
314
|
+
position: [{
|
|
315
|
+
type: i0.Input,
|
|
316
|
+
args: [{
|
|
317
|
+
isSignal: true,
|
|
318
|
+
alias: "position",
|
|
319
|
+
required: false
|
|
320
|
+
}]
|
|
321
|
+
}],
|
|
322
|
+
name: [{
|
|
323
|
+
type: i0.Input,
|
|
324
|
+
args: [{
|
|
325
|
+
isSignal: true,
|
|
326
|
+
alias: "name",
|
|
327
|
+
required: false
|
|
328
|
+
}]
|
|
329
|
+
}]
|
|
330
|
+
}
|
|
331
|
+
});
|
|
332
|
+
var ConfirmClick = class ConfirmClick {
|
|
333
|
+
constructor() {
|
|
334
|
+
this.hasConfirmDirective = input(false, {
|
|
335
|
+
...ngDevMode ? { debugName: "hasConfirmDirective" } : /* istanbul ignore next */ {},
|
|
336
|
+
alias: "rxapConfirm",
|
|
337
|
+
transform: coerceBoolean
|
|
338
|
+
});
|
|
339
|
+
}
|
|
340
|
+
onClick() {
|
|
341
|
+
if (!this.hasConfirmDirective()) this.execute();
|
|
342
|
+
}
|
|
343
|
+
onConfirm() {
|
|
344
|
+
this.execute();
|
|
345
|
+
}
|
|
346
|
+
static {
|
|
347
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
348
|
+
minVersion: "12.0.0",
|
|
349
|
+
version: "22.3.0",
|
|
350
|
+
ngImport: i0,
|
|
351
|
+
type: ConfirmClick,
|
|
352
|
+
deps: [],
|
|
353
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
354
|
+
});
|
|
355
|
+
}
|
|
356
|
+
static {
|
|
357
|
+
this.ɵdir = i0.ɵɵngDeclareDirective({
|
|
358
|
+
minVersion: "17.1.0",
|
|
359
|
+
version: "22.3.0",
|
|
360
|
+
type: ConfirmClick,
|
|
361
|
+
isStandalone: true,
|
|
362
|
+
inputs: { hasConfirmDirective: {
|
|
363
|
+
classPropertyName: "hasConfirmDirective",
|
|
364
|
+
publicName: "rxapConfirm",
|
|
365
|
+
isSignal: true,
|
|
366
|
+
isRequired: false,
|
|
367
|
+
transformFunction: null
|
|
368
|
+
} },
|
|
369
|
+
host: { listeners: {
|
|
370
|
+
"click": "onClick()",
|
|
371
|
+
"confirmed": "onConfirm()"
|
|
372
|
+
} },
|
|
373
|
+
ngImport: i0
|
|
374
|
+
});
|
|
375
|
+
}
|
|
376
|
+
};
|
|
377
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
378
|
+
minVersion: "12.0.0",
|
|
379
|
+
version: "22.3.0",
|
|
380
|
+
ngImport: i0,
|
|
381
|
+
type: ConfirmClick,
|
|
382
|
+
decorators: [{
|
|
383
|
+
type: Directive,
|
|
384
|
+
args: [{ host: {
|
|
385
|
+
"(click)": "onClick()",
|
|
386
|
+
"(confirmed)": "onConfirm()"
|
|
387
|
+
} }]
|
|
388
|
+
}],
|
|
389
|
+
propDecorators: { hasConfirmDirective: [{
|
|
390
|
+
type: i0.Input,
|
|
391
|
+
args: [{
|
|
392
|
+
isSignal: true,
|
|
393
|
+
alias: "rxapConfirm",
|
|
394
|
+
required: false
|
|
395
|
+
}]
|
|
396
|
+
}] }
|
|
397
|
+
});
|
|
398
|
+
var ContenteditableDirective = class ContenteditableDirective {
|
|
399
|
+
constructor() {
|
|
400
|
+
this.elementRef = inject(ElementRef);
|
|
401
|
+
this.method = input(void 0, {
|
|
402
|
+
...ngDevMode ? { debugName: "method" } : /* istanbul ignore next */ {},
|
|
403
|
+
alias: "rxapContenteditable"
|
|
404
|
+
});
|
|
405
|
+
this.change = output({ alias: "rxapContenteditable" });
|
|
406
|
+
this.parameters = input(...ngDevMode ? [void 0, { debugName: "parameters" }] : /* istanbul ignore next */ []);
|
|
407
|
+
this.initialValue = input(void 0, {
|
|
408
|
+
...ngDevMode ? { debugName: "initialValue" } : /* istanbul ignore next */ {},
|
|
409
|
+
alias: "initial"
|
|
410
|
+
});
|
|
411
|
+
this.initial = linkedSignal(() => this.initialValue(), ...ngDevMode ? [{ debugName: "initial" }] : /* istanbul ignore next */ []);
|
|
412
|
+
}
|
|
413
|
+
onClick($event) {
|
|
414
|
+
$event.stopPropagation();
|
|
415
|
+
}
|
|
416
|
+
async onInput($event) {
|
|
417
|
+
const value = $event.target.textContent?.trim();
|
|
418
|
+
if (value && value.length >= 2) {
|
|
419
|
+
const event = {
|
|
420
|
+
value,
|
|
421
|
+
parameters: this.parameters()
|
|
422
|
+
};
|
|
423
|
+
this.change.emit(event);
|
|
424
|
+
try {
|
|
425
|
+
const result = await this.method()?.call(event);
|
|
426
|
+
if (result && typeof result === "string") {
|
|
427
|
+
this.elementRef.nativeElement.innerText = result;
|
|
428
|
+
this.initial.set(result);
|
|
429
|
+
} else this.initial.set(value);
|
|
430
|
+
} catch {
|
|
431
|
+
const initial = this.initial();
|
|
432
|
+
if (initial) this.elementRef.nativeElement.innerText = initial;
|
|
433
|
+
}
|
|
434
|
+
}
|
|
435
|
+
}
|
|
436
|
+
static {
|
|
437
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
438
|
+
minVersion: "12.0.0",
|
|
439
|
+
version: "22.3.0",
|
|
440
|
+
ngImport: i0,
|
|
441
|
+
type: ContenteditableDirective,
|
|
442
|
+
deps: [],
|
|
443
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
444
|
+
});
|
|
445
|
+
}
|
|
446
|
+
static {
|
|
447
|
+
this.ɵdir = i0.ɵɵngDeclareDirective({
|
|
448
|
+
minVersion: "17.1.0",
|
|
449
|
+
version: "22.3.0",
|
|
450
|
+
type: ContenteditableDirective,
|
|
451
|
+
isStandalone: true,
|
|
452
|
+
selector: "[rxapContenteditable]",
|
|
453
|
+
inputs: {
|
|
454
|
+
method: {
|
|
455
|
+
classPropertyName: "method",
|
|
456
|
+
publicName: "rxapContenteditable",
|
|
457
|
+
isSignal: true,
|
|
458
|
+
isRequired: false,
|
|
459
|
+
transformFunction: null
|
|
460
|
+
},
|
|
461
|
+
parameters: {
|
|
462
|
+
classPropertyName: "parameters",
|
|
463
|
+
publicName: "parameters",
|
|
464
|
+
isSignal: true,
|
|
465
|
+
isRequired: false,
|
|
466
|
+
transformFunction: null
|
|
467
|
+
},
|
|
468
|
+
initialValue: {
|
|
469
|
+
classPropertyName: "initialValue",
|
|
470
|
+
publicName: "initial",
|
|
471
|
+
isSignal: true,
|
|
472
|
+
isRequired: false,
|
|
473
|
+
transformFunction: null
|
|
474
|
+
}
|
|
475
|
+
},
|
|
476
|
+
outputs: { change: "rxapContenteditable" },
|
|
477
|
+
host: {
|
|
478
|
+
listeners: {
|
|
479
|
+
"click": "onClick($event)",
|
|
480
|
+
"input": "onInput($event)"
|
|
481
|
+
},
|
|
482
|
+
properties: {
|
|
483
|
+
"attr.contenteditable": "true",
|
|
484
|
+
"attr.spellcheck": "false"
|
|
485
|
+
}
|
|
486
|
+
},
|
|
487
|
+
ngImport: i0
|
|
488
|
+
});
|
|
489
|
+
}
|
|
490
|
+
};
|
|
228
491
|
__decorate([
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
492
|
+
DebounceCall(1e3),
|
|
493
|
+
__metadata("design:type", Function),
|
|
494
|
+
__metadata("design:paramtypes", [Object]),
|
|
495
|
+
__metadata("design:returntype", Promise)
|
|
233
496
|
], ContenteditableDirective.prototype, "onInput", null);
|
|
234
|
-
i0.ɵɵngDeclareClassMetadata({
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
}
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
}
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
}
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
497
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
498
|
+
minVersion: "12.0.0",
|
|
499
|
+
version: "22.3.0",
|
|
500
|
+
ngImport: i0,
|
|
501
|
+
type: ContenteditableDirective,
|
|
502
|
+
decorators: [{
|
|
503
|
+
type: Directive,
|
|
504
|
+
args: [{
|
|
505
|
+
selector: "[rxapContenteditable]",
|
|
506
|
+
standalone: true,
|
|
507
|
+
host: {
|
|
508
|
+
"[attr.contenteditable]": "true",
|
|
509
|
+
"[attr.spellcheck]": "false",
|
|
510
|
+
"(click)": "onClick($event)",
|
|
511
|
+
"(input)": "onInput($event)"
|
|
512
|
+
}
|
|
513
|
+
}]
|
|
514
|
+
}],
|
|
515
|
+
propDecorators: {
|
|
516
|
+
method: [{
|
|
517
|
+
type: i0.Input,
|
|
518
|
+
args: [{
|
|
519
|
+
isSignal: true,
|
|
520
|
+
alias: "rxapContenteditable",
|
|
521
|
+
required: false
|
|
522
|
+
}]
|
|
523
|
+
}],
|
|
524
|
+
change: [{
|
|
525
|
+
type: i0.Output,
|
|
526
|
+
args: ["rxapContenteditable"]
|
|
527
|
+
}],
|
|
528
|
+
parameters: [{
|
|
529
|
+
type: i0.Input,
|
|
530
|
+
args: [{
|
|
531
|
+
isSignal: true,
|
|
532
|
+
alias: "parameters",
|
|
533
|
+
required: false
|
|
534
|
+
}]
|
|
535
|
+
}],
|
|
536
|
+
initialValue: [{
|
|
537
|
+
type: i0.Input,
|
|
538
|
+
args: [{
|
|
539
|
+
isSignal: true,
|
|
540
|
+
alias: "initial",
|
|
541
|
+
required: false
|
|
542
|
+
}]
|
|
543
|
+
}],
|
|
544
|
+
onInput: []
|
|
545
|
+
}
|
|
546
|
+
});
|
|
547
|
+
var FullWidthDirective = class FullWidthDirective {
|
|
548
|
+
static {
|
|
549
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
550
|
+
minVersion: "12.0.0",
|
|
551
|
+
version: "22.3.0",
|
|
552
|
+
ngImport: i0,
|
|
553
|
+
type: FullWidthDirective,
|
|
554
|
+
deps: [],
|
|
555
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
556
|
+
});
|
|
557
|
+
}
|
|
558
|
+
static {
|
|
559
|
+
this.ɵdir = i0.ɵɵngDeclareDirective({
|
|
560
|
+
minVersion: "14.0.0",
|
|
561
|
+
version: "22.3.0",
|
|
562
|
+
type: FullWidthDirective,
|
|
563
|
+
isStandalone: true,
|
|
564
|
+
selector: "[rxapFullWidth]",
|
|
565
|
+
host: { styleAttribute: "width: 100%" },
|
|
566
|
+
ngImport: i0
|
|
567
|
+
});
|
|
568
|
+
}
|
|
569
|
+
};
|
|
570
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
571
|
+
minVersion: "12.0.0",
|
|
572
|
+
version: "22.3.0",
|
|
573
|
+
ngImport: i0,
|
|
574
|
+
type: FullWidthDirective,
|
|
575
|
+
decorators: [{
|
|
576
|
+
type: Directive,
|
|
577
|
+
args: [{
|
|
578
|
+
selector: "[rxapFullWidth]",
|
|
579
|
+
standalone: true,
|
|
580
|
+
host: { style: "width: 100%" }
|
|
581
|
+
}]
|
|
582
|
+
}]
|
|
583
|
+
});
|
|
584
|
+
var IfTruthyDirective = class IfTruthyDirective {
|
|
585
|
+
static ngTemplateContextGuard(dir, ctx) {
|
|
586
|
+
return true;
|
|
587
|
+
}
|
|
588
|
+
constructor() {
|
|
589
|
+
this.templateRef = inject(TemplateRef);
|
|
590
|
+
this.viewContainerRef = inject(ViewContainerRef);
|
|
591
|
+
this.method = input.required({
|
|
592
|
+
...ngDevMode ? { debugName: "method" } : /* istanbul ignore next */ {},
|
|
593
|
+
alias: "rxapIfTruthy"
|
|
594
|
+
});
|
|
595
|
+
this.parameters = input.required({
|
|
596
|
+
...ngDevMode ? { debugName: "parameters" } : /* istanbul ignore next */ {},
|
|
597
|
+
alias: "rxapIfTruthyParameters"
|
|
598
|
+
});
|
|
599
|
+
this.trackBy = input(void 0, {
|
|
600
|
+
...ngDevMode ? { debugName: "trackBy" } : /* istanbul ignore next */ {},
|
|
601
|
+
alias: "rxapIfTruthyTrackBy"
|
|
602
|
+
});
|
|
603
|
+
effect(() => {
|
|
604
|
+
const method = this.method();
|
|
605
|
+
const parameters = this.parameters();
|
|
606
|
+
if (method && parameters) untracked(() => this.execute());
|
|
607
|
+
});
|
|
608
|
+
}
|
|
609
|
+
async execute() {
|
|
610
|
+
const result = await this.method().call(this.parameters());
|
|
611
|
+
if (this.hasChanged(result)) {
|
|
612
|
+
this.viewContainerRef.clear();
|
|
613
|
+
if (result) this.viewContainerRef.createEmbeddedView(this.templateRef, { $implicit: result }).markForCheck();
|
|
614
|
+
this._last = result;
|
|
615
|
+
}
|
|
616
|
+
}
|
|
617
|
+
hasChanged(current) {
|
|
618
|
+
if (this._last !== void 0) {
|
|
619
|
+
const trackBy = this.trackBy();
|
|
620
|
+
return (trackBy ? trackBy(current) : current) !== (trackBy ? trackBy(this._last) : this._last);
|
|
621
|
+
}
|
|
622
|
+
return true;
|
|
623
|
+
}
|
|
624
|
+
static {
|
|
625
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
626
|
+
minVersion: "12.0.0",
|
|
627
|
+
version: "22.3.0",
|
|
628
|
+
ngImport: i0,
|
|
629
|
+
type: IfTruthyDirective,
|
|
630
|
+
deps: [],
|
|
631
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
632
|
+
});
|
|
633
|
+
}
|
|
634
|
+
static {
|
|
635
|
+
this.ɵdir = i0.ɵɵngDeclareDirective({
|
|
636
|
+
minVersion: "17.1.0",
|
|
637
|
+
version: "22.3.0",
|
|
638
|
+
type: IfTruthyDirective,
|
|
639
|
+
isStandalone: true,
|
|
640
|
+
selector: "[rxapIfTruthy]",
|
|
641
|
+
inputs: {
|
|
642
|
+
method: {
|
|
643
|
+
classPropertyName: "method",
|
|
644
|
+
publicName: "rxapIfTruthy",
|
|
645
|
+
isSignal: true,
|
|
646
|
+
isRequired: true,
|
|
647
|
+
transformFunction: null
|
|
648
|
+
},
|
|
649
|
+
parameters: {
|
|
650
|
+
classPropertyName: "parameters",
|
|
651
|
+
publicName: "rxapIfTruthyParameters",
|
|
652
|
+
isSignal: true,
|
|
653
|
+
isRequired: true,
|
|
654
|
+
transformFunction: null
|
|
655
|
+
},
|
|
656
|
+
trackBy: {
|
|
657
|
+
classPropertyName: "trackBy",
|
|
658
|
+
publicName: "rxapIfTruthyTrackBy",
|
|
659
|
+
isSignal: true,
|
|
660
|
+
isRequired: false,
|
|
661
|
+
transformFunction: null
|
|
662
|
+
}
|
|
663
|
+
},
|
|
664
|
+
ngImport: i0
|
|
665
|
+
});
|
|
666
|
+
}
|
|
667
|
+
};
|
|
668
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
669
|
+
minVersion: "12.0.0",
|
|
670
|
+
version: "22.3.0",
|
|
671
|
+
ngImport: i0,
|
|
672
|
+
type: IfTruthyDirective,
|
|
673
|
+
decorators: [{
|
|
674
|
+
type: Directive,
|
|
675
|
+
args: [{
|
|
676
|
+
selector: "[rxapIfTruthy]",
|
|
677
|
+
standalone: true
|
|
678
|
+
}]
|
|
679
|
+
}],
|
|
680
|
+
ctorParameters: () => [],
|
|
681
|
+
propDecorators: {
|
|
682
|
+
method: [{
|
|
683
|
+
type: i0.Input,
|
|
684
|
+
args: [{
|
|
685
|
+
isSignal: true,
|
|
686
|
+
alias: "rxapIfTruthy",
|
|
687
|
+
required: true
|
|
688
|
+
}]
|
|
689
|
+
}],
|
|
690
|
+
parameters: [{
|
|
691
|
+
type: i0.Input,
|
|
692
|
+
args: [{
|
|
693
|
+
isSignal: true,
|
|
694
|
+
alias: "rxapIfTruthyParameters",
|
|
695
|
+
required: true
|
|
696
|
+
}]
|
|
697
|
+
}],
|
|
698
|
+
trackBy: [{
|
|
699
|
+
type: i0.Input,
|
|
700
|
+
args: [{
|
|
701
|
+
isSignal: true,
|
|
702
|
+
alias: "rxapIfTruthyTrackBy",
|
|
703
|
+
required: false
|
|
704
|
+
}]
|
|
705
|
+
}]
|
|
706
|
+
}
|
|
707
|
+
});
|
|
708
|
+
var IsDevModeDirective = class IsDevModeDirective {
|
|
709
|
+
constructor() {
|
|
710
|
+
this.template = inject(TemplateRef);
|
|
711
|
+
this.vcr = inject(ViewContainerRef);
|
|
712
|
+
}
|
|
713
|
+
ngOnInit() {
|
|
714
|
+
if (isDevMode()) this.embeddedViewRef = this.vcr.createEmbeddedView(this.template);
|
|
715
|
+
}
|
|
716
|
+
ngOnDestroy() {
|
|
717
|
+
this.embeddedViewRef?.destroy();
|
|
718
|
+
this.vcr.clear();
|
|
719
|
+
}
|
|
720
|
+
static {
|
|
721
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
722
|
+
minVersion: "12.0.0",
|
|
723
|
+
version: "22.3.0",
|
|
724
|
+
ngImport: i0,
|
|
725
|
+
type: IsDevModeDirective,
|
|
726
|
+
deps: [],
|
|
727
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
728
|
+
});
|
|
729
|
+
}
|
|
730
|
+
static {
|
|
731
|
+
this.ɵdir = i0.ɵɵngDeclareDirective({
|
|
732
|
+
minVersion: "14.0.0",
|
|
733
|
+
version: "22.3.0",
|
|
734
|
+
type: IsDevModeDirective,
|
|
735
|
+
isStandalone: true,
|
|
736
|
+
selector: "[rxapIsDevMode]",
|
|
737
|
+
ngImport: i0
|
|
738
|
+
});
|
|
739
|
+
}
|
|
740
|
+
};
|
|
741
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
742
|
+
minVersion: "12.0.0",
|
|
743
|
+
version: "22.3.0",
|
|
744
|
+
ngImport: i0,
|
|
745
|
+
type: IsDevModeDirective,
|
|
746
|
+
decorators: [{
|
|
747
|
+
type: Directive,
|
|
748
|
+
args: [{
|
|
749
|
+
selector: "[rxapIsDevMode]",
|
|
750
|
+
standalone: true
|
|
751
|
+
}]
|
|
752
|
+
}]
|
|
753
|
+
});
|
|
754
|
+
var MethodTemplateDirective = class MethodTemplateDirective {
|
|
755
|
+
static ngTemplateContextGuard(dir, ctx) {
|
|
756
|
+
return true;
|
|
757
|
+
}
|
|
758
|
+
constructor() {
|
|
759
|
+
this.template = inject(TemplateRef);
|
|
760
|
+
this.viewContainerRef = inject(ViewContainerRef);
|
|
761
|
+
this.method = input.required({
|
|
762
|
+
...ngDevMode ? { debugName: "method" } : /* istanbul ignore next */ {},
|
|
763
|
+
alias: "rxapMethodCall"
|
|
764
|
+
});
|
|
765
|
+
this.parameters = input(void 0, {
|
|
766
|
+
...ngDevMode ? { debugName: "parameters" } : /* istanbul ignore next */ {},
|
|
767
|
+
alias: "rxapMethodParameters"
|
|
768
|
+
});
|
|
769
|
+
this.currentParameters = linkedSignal(() => this.parameters(), ...ngDevMode ? [{ debugName: "currentParameters" }] : /* istanbul ignore next */ []);
|
|
770
|
+
this.errorTemplate = input(void 0, {
|
|
771
|
+
...ngDevMode ? { debugName: "errorTemplate" } : /* istanbul ignore next */ {},
|
|
772
|
+
alias: "rxapMethodError"
|
|
773
|
+
});
|
|
774
|
+
this.loadingTemplate = input(void 0, {
|
|
775
|
+
...ngDevMode ? { debugName: "loadingTemplate" } : /* istanbul ignore next */ {},
|
|
776
|
+
alias: "rxapMethodLoading"
|
|
777
|
+
});
|
|
778
|
+
this.withoutParameters = input(false, {
|
|
779
|
+
...ngDevMode ? { debugName: "withoutParameters" } : /* istanbul ignore next */ {},
|
|
780
|
+
alias: "rxapMethodWithoutParameters"
|
|
781
|
+
});
|
|
782
|
+
this.immediately = input(false, ...ngDevMode ? [{ debugName: "immediately" }] : /* istanbul ignore next */ []);
|
|
783
|
+
this.executed$ = output({ alias: "executed" });
|
|
784
|
+
this.failure$ = output({ alias: "failure" });
|
|
785
|
+
this.successful$ = output({ alias: "successful" });
|
|
786
|
+
this.executing$ = new ToggleSubject();
|
|
787
|
+
this.executing = outputFromObservable(this.executing$, { alias: "executing" });
|
|
788
|
+
this.embedded = output();
|
|
789
|
+
effect(() => {
|
|
790
|
+
const parameters = this.parameters();
|
|
791
|
+
if (parameters !== void 0) untracked(() => this.execute(parameters));
|
|
792
|
+
});
|
|
793
|
+
}
|
|
794
|
+
ngOnInit() {
|
|
795
|
+
this.renderLoadingTemplate();
|
|
796
|
+
if (this.withoutParameters()) this.execute();
|
|
797
|
+
}
|
|
798
|
+
onConfirmed() {
|
|
799
|
+
return this.execute();
|
|
800
|
+
}
|
|
801
|
+
async execute(parameters = this.currentParameters()) {
|
|
802
|
+
this.executing$.enable();
|
|
803
|
+
try {
|
|
804
|
+
const result = await this.method().call(parameters);
|
|
805
|
+
this.executed(result);
|
|
806
|
+
this.renderTemplate(result);
|
|
807
|
+
this.successful(result);
|
|
808
|
+
} catch (error) {
|
|
809
|
+
if (isDevMode()) console.error(`Method directive execution failed:`, error.message);
|
|
810
|
+
this.renderErrorTemplate(error);
|
|
811
|
+
this.failure(error);
|
|
812
|
+
} finally {
|
|
813
|
+
this.executing$.disable();
|
|
814
|
+
}
|
|
815
|
+
}
|
|
816
|
+
setParameter(parameterKey, value) {
|
|
817
|
+
this.updateParameters({ [parameterKey]: value });
|
|
818
|
+
}
|
|
819
|
+
updateParameters(parameters) {
|
|
820
|
+
this.currentParameters.set({
|
|
821
|
+
...this.currentParameters() ?? {},
|
|
822
|
+
...parameters
|
|
823
|
+
});
|
|
824
|
+
}
|
|
825
|
+
executed(result) {
|
|
826
|
+
this.executed$.emit(result);
|
|
827
|
+
}
|
|
828
|
+
failure(error) {
|
|
829
|
+
this.failure$.emit(error);
|
|
830
|
+
}
|
|
831
|
+
successful(result) {
|
|
832
|
+
this.successful$.emit(result);
|
|
833
|
+
}
|
|
834
|
+
renderErrorTemplate(error) {
|
|
835
|
+
const errorTemplate = this.errorTemplate();
|
|
836
|
+
if (errorTemplate) {
|
|
837
|
+
this.viewContainerRef.clear();
|
|
838
|
+
if (errorTemplate) this.viewContainerRef.createEmbeddedView(errorTemplate, {
|
|
839
|
+
$implicit: error,
|
|
840
|
+
message: error.message
|
|
841
|
+
});
|
|
842
|
+
}
|
|
843
|
+
}
|
|
844
|
+
renderTemplate(result) {
|
|
845
|
+
this.viewContainerRef.clear();
|
|
846
|
+
try {
|
|
847
|
+
this.viewContainerRef.createEmbeddedView(this.template, { $implicit: result }).markForCheck();
|
|
848
|
+
} catch (error) {
|
|
849
|
+
this.renderErrorTemplate(error);
|
|
850
|
+
console.error(error.message);
|
|
851
|
+
throw error;
|
|
852
|
+
}
|
|
853
|
+
this.embedded.emit();
|
|
854
|
+
}
|
|
855
|
+
renderLoadingTemplate() {
|
|
856
|
+
const loadingTemplate = this.loadingTemplate();
|
|
857
|
+
if (loadingTemplate) {
|
|
858
|
+
this.viewContainerRef.clear();
|
|
859
|
+
this.viewContainerRef.createEmbeddedView(loadingTemplate);
|
|
860
|
+
}
|
|
861
|
+
}
|
|
862
|
+
static {
|
|
863
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
864
|
+
minVersion: "12.0.0",
|
|
865
|
+
version: "22.3.0",
|
|
866
|
+
ngImport: i0,
|
|
867
|
+
type: MethodTemplateDirective,
|
|
868
|
+
deps: [],
|
|
869
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
870
|
+
});
|
|
871
|
+
}
|
|
872
|
+
static {
|
|
873
|
+
this.ɵdir = i0.ɵɵngDeclareDirective({
|
|
874
|
+
minVersion: "17.1.0",
|
|
875
|
+
version: "22.3.0",
|
|
876
|
+
type: MethodTemplateDirective,
|
|
877
|
+
isStandalone: true,
|
|
878
|
+
selector: "[rxapMethod]",
|
|
879
|
+
inputs: {
|
|
880
|
+
method: {
|
|
881
|
+
classPropertyName: "method",
|
|
882
|
+
publicName: "rxapMethodCall",
|
|
883
|
+
isSignal: true,
|
|
884
|
+
isRequired: true,
|
|
885
|
+
transformFunction: null
|
|
886
|
+
},
|
|
887
|
+
parameters: {
|
|
888
|
+
classPropertyName: "parameters",
|
|
889
|
+
publicName: "rxapMethodParameters",
|
|
890
|
+
isSignal: true,
|
|
891
|
+
isRequired: false,
|
|
892
|
+
transformFunction: null
|
|
893
|
+
},
|
|
894
|
+
errorTemplate: {
|
|
895
|
+
classPropertyName: "errorTemplate",
|
|
896
|
+
publicName: "rxapMethodError",
|
|
897
|
+
isSignal: true,
|
|
898
|
+
isRequired: false,
|
|
899
|
+
transformFunction: null
|
|
900
|
+
},
|
|
901
|
+
loadingTemplate: {
|
|
902
|
+
classPropertyName: "loadingTemplate",
|
|
903
|
+
publicName: "rxapMethodLoading",
|
|
904
|
+
isSignal: true,
|
|
905
|
+
isRequired: false,
|
|
906
|
+
transformFunction: null
|
|
907
|
+
},
|
|
908
|
+
withoutParameters: {
|
|
909
|
+
classPropertyName: "withoutParameters",
|
|
910
|
+
publicName: "rxapMethodWithoutParameters",
|
|
911
|
+
isSignal: true,
|
|
912
|
+
isRequired: false,
|
|
913
|
+
transformFunction: null
|
|
914
|
+
},
|
|
915
|
+
immediately: {
|
|
916
|
+
classPropertyName: "immediately",
|
|
917
|
+
publicName: "immediately",
|
|
918
|
+
isSignal: true,
|
|
919
|
+
isRequired: false,
|
|
920
|
+
transformFunction: null
|
|
921
|
+
}
|
|
922
|
+
},
|
|
923
|
+
outputs: {
|
|
924
|
+
executed$: "executed",
|
|
925
|
+
failure$: "failure",
|
|
926
|
+
successful$: "successful",
|
|
927
|
+
executing: "executing",
|
|
928
|
+
embedded: "embedded"
|
|
929
|
+
},
|
|
930
|
+
host: { listeners: { "confirmed": "onConfirmed()" } },
|
|
931
|
+
exportAs: ["rxapMethod"],
|
|
932
|
+
ngImport: i0
|
|
933
|
+
});
|
|
934
|
+
}
|
|
935
|
+
};
|
|
936
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
937
|
+
minVersion: "12.0.0",
|
|
938
|
+
version: "22.3.0",
|
|
939
|
+
ngImport: i0,
|
|
940
|
+
type: MethodTemplateDirective,
|
|
941
|
+
decorators: [{
|
|
942
|
+
type: Directive,
|
|
943
|
+
args: [{
|
|
944
|
+
selector: "[rxapMethod]",
|
|
945
|
+
exportAs: "rxapMethod",
|
|
946
|
+
standalone: true,
|
|
947
|
+
host: { "(confirmed)": "onConfirmed()" }
|
|
948
|
+
}]
|
|
949
|
+
}],
|
|
950
|
+
ctorParameters: () => [],
|
|
951
|
+
propDecorators: {
|
|
952
|
+
method: [{
|
|
953
|
+
type: i0.Input,
|
|
954
|
+
args: [{
|
|
955
|
+
isSignal: true,
|
|
956
|
+
alias: "rxapMethodCall",
|
|
957
|
+
required: true
|
|
958
|
+
}]
|
|
959
|
+
}],
|
|
960
|
+
parameters: [{
|
|
961
|
+
type: i0.Input,
|
|
962
|
+
args: [{
|
|
963
|
+
isSignal: true,
|
|
964
|
+
alias: "rxapMethodParameters",
|
|
965
|
+
required: false
|
|
966
|
+
}]
|
|
967
|
+
}],
|
|
968
|
+
errorTemplate: [{
|
|
969
|
+
type: i0.Input,
|
|
970
|
+
args: [{
|
|
971
|
+
isSignal: true,
|
|
972
|
+
alias: "rxapMethodError",
|
|
973
|
+
required: false
|
|
974
|
+
}]
|
|
975
|
+
}],
|
|
976
|
+
loadingTemplate: [{
|
|
977
|
+
type: i0.Input,
|
|
978
|
+
args: [{
|
|
979
|
+
isSignal: true,
|
|
980
|
+
alias: "rxapMethodLoading",
|
|
981
|
+
required: false
|
|
982
|
+
}]
|
|
983
|
+
}],
|
|
984
|
+
withoutParameters: [{
|
|
985
|
+
type: i0.Input,
|
|
986
|
+
args: [{
|
|
987
|
+
isSignal: true,
|
|
988
|
+
alias: "rxapMethodWithoutParameters",
|
|
989
|
+
required: false
|
|
990
|
+
}]
|
|
991
|
+
}],
|
|
992
|
+
immediately: [{
|
|
993
|
+
type: i0.Input,
|
|
994
|
+
args: [{
|
|
995
|
+
isSignal: true,
|
|
996
|
+
alias: "immediately",
|
|
997
|
+
required: false
|
|
998
|
+
}]
|
|
999
|
+
}],
|
|
1000
|
+
executed$: [{
|
|
1001
|
+
type: i0.Output,
|
|
1002
|
+
args: ["executed"]
|
|
1003
|
+
}],
|
|
1004
|
+
failure$: [{
|
|
1005
|
+
type: i0.Output,
|
|
1006
|
+
args: ["failure"]
|
|
1007
|
+
}],
|
|
1008
|
+
successful$: [{
|
|
1009
|
+
type: i0.Output,
|
|
1010
|
+
args: ["successful"]
|
|
1011
|
+
}],
|
|
1012
|
+
executing: [{
|
|
1013
|
+
type: i0.Output,
|
|
1014
|
+
args: ["executing"]
|
|
1015
|
+
}],
|
|
1016
|
+
embedded: [{
|
|
1017
|
+
type: i0.Output,
|
|
1018
|
+
args: ["embedded"]
|
|
1019
|
+
}]
|
|
1020
|
+
}
|
|
1021
|
+
});
|
|
1022
|
+
var MethodDirective = class MethodDirective {
|
|
1023
|
+
constructor() {
|
|
1024
|
+
this.method = input.required({
|
|
1025
|
+
...ngDevMode ? { debugName: "method" } : /* istanbul ignore next */ {},
|
|
1026
|
+
alias: "rxapMethod"
|
|
1027
|
+
});
|
|
1028
|
+
this.parameters = input(...ngDevMode ? [void 0, { debugName: "parameters" }] : /* istanbul ignore next */ []);
|
|
1029
|
+
this.currentParameters = linkedSignal(() => this.parameters(), ...ngDevMode ? [{ debugName: "currentParameters" }] : /* istanbul ignore next */ []);
|
|
1030
|
+
this.immediately = input(false, ...ngDevMode ? [{ debugName: "immediately" }] : /* istanbul ignore next */ []);
|
|
1031
|
+
this.executed$ = output({ alias: "executed" });
|
|
1032
|
+
this.failure$ = output({ alias: "failure" });
|
|
1033
|
+
this.successful$ = output({ alias: "successful" });
|
|
1034
|
+
this.executing$ = new ToggleSubject();
|
|
1035
|
+
this.hasConfirmDirective = input(false, {
|
|
1036
|
+
...ngDevMode ? { debugName: "hasConfirmDirective" } : /* istanbul ignore next */ {},
|
|
1037
|
+
alias: "rxapConfirm",
|
|
1038
|
+
transform: coerceBoolean
|
|
1039
|
+
});
|
|
1040
|
+
}
|
|
1041
|
+
ngOnInit() {
|
|
1042
|
+
if (this.immediately()) this.execute();
|
|
1043
|
+
}
|
|
1044
|
+
onConfirmed() {
|
|
1045
|
+
return this.execute();
|
|
1046
|
+
}
|
|
1047
|
+
onClick() {
|
|
1048
|
+
if (!this.hasConfirmDirective()) return this.execute();
|
|
1049
|
+
else if (isDevMode()) console.debug("Skip method call. Wait for confirmation.");
|
|
1050
|
+
return Promise.resolve();
|
|
1051
|
+
}
|
|
1052
|
+
async execute() {
|
|
1053
|
+
this.executing$.enable();
|
|
1054
|
+
try {
|
|
1055
|
+
const result = await this.method().call(this.currentParameters());
|
|
1056
|
+
this.executed(result);
|
|
1057
|
+
this.successful(result);
|
|
1058
|
+
} catch (error) {
|
|
1059
|
+
if (isDevMode()) console.error(`Method directive execution failed:`, error.message);
|
|
1060
|
+
this.failure(error);
|
|
1061
|
+
} finally {
|
|
1062
|
+
this.executing$.disable();
|
|
1063
|
+
}
|
|
1064
|
+
}
|
|
1065
|
+
setParameter(parameterKey, value) {
|
|
1066
|
+
this.updateParameters({ [parameterKey]: value });
|
|
1067
|
+
}
|
|
1068
|
+
updateParameters(parameters) {
|
|
1069
|
+
this.currentParameters.set({
|
|
1070
|
+
...this.currentParameters() ?? {},
|
|
1071
|
+
...parameters
|
|
1072
|
+
});
|
|
1073
|
+
}
|
|
1074
|
+
executed(result) {
|
|
1075
|
+
this.executed$.emit(result);
|
|
1076
|
+
}
|
|
1077
|
+
failure(error) {
|
|
1078
|
+
this.failure$.emit(error);
|
|
1079
|
+
}
|
|
1080
|
+
successful(result) {
|
|
1081
|
+
this.successful$.emit(result);
|
|
1082
|
+
}
|
|
1083
|
+
static {
|
|
1084
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
1085
|
+
minVersion: "12.0.0",
|
|
1086
|
+
version: "22.3.0",
|
|
1087
|
+
ngImport: i0,
|
|
1088
|
+
type: MethodDirective,
|
|
1089
|
+
deps: [],
|
|
1090
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
1091
|
+
});
|
|
1092
|
+
}
|
|
1093
|
+
static {
|
|
1094
|
+
this.ɵdir = i0.ɵɵngDeclareDirective({
|
|
1095
|
+
minVersion: "17.1.0",
|
|
1096
|
+
version: "22.3.0",
|
|
1097
|
+
type: MethodDirective,
|
|
1098
|
+
isStandalone: true,
|
|
1099
|
+
selector: "[rxapMethod]",
|
|
1100
|
+
inputs: {
|
|
1101
|
+
method: {
|
|
1102
|
+
classPropertyName: "method",
|
|
1103
|
+
publicName: "rxapMethod",
|
|
1104
|
+
isSignal: true,
|
|
1105
|
+
isRequired: true,
|
|
1106
|
+
transformFunction: null
|
|
1107
|
+
},
|
|
1108
|
+
parameters: {
|
|
1109
|
+
classPropertyName: "parameters",
|
|
1110
|
+
publicName: "parameters",
|
|
1111
|
+
isSignal: true,
|
|
1112
|
+
isRequired: false,
|
|
1113
|
+
transformFunction: null
|
|
1114
|
+
},
|
|
1115
|
+
immediately: {
|
|
1116
|
+
classPropertyName: "immediately",
|
|
1117
|
+
publicName: "immediately",
|
|
1118
|
+
isSignal: true,
|
|
1119
|
+
isRequired: false,
|
|
1120
|
+
transformFunction: null
|
|
1121
|
+
},
|
|
1122
|
+
hasConfirmDirective: {
|
|
1123
|
+
classPropertyName: "hasConfirmDirective",
|
|
1124
|
+
publicName: "rxapConfirm",
|
|
1125
|
+
isSignal: true,
|
|
1126
|
+
isRequired: false,
|
|
1127
|
+
transformFunction: null
|
|
1128
|
+
}
|
|
1129
|
+
},
|
|
1130
|
+
outputs: {
|
|
1131
|
+
executed$: "executed",
|
|
1132
|
+
failure$: "failure",
|
|
1133
|
+
successful$: "successful"
|
|
1134
|
+
},
|
|
1135
|
+
host: { listeners: {
|
|
1136
|
+
"confirmed": "onConfirmed()",
|
|
1137
|
+
"click": "onClick()"
|
|
1138
|
+
} },
|
|
1139
|
+
exportAs: ["rxapMethod"],
|
|
1140
|
+
ngImport: i0
|
|
1141
|
+
});
|
|
1142
|
+
}
|
|
1143
|
+
};
|
|
1144
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
1145
|
+
minVersion: "12.0.0",
|
|
1146
|
+
version: "22.3.0",
|
|
1147
|
+
ngImport: i0,
|
|
1148
|
+
type: MethodDirective,
|
|
1149
|
+
decorators: [{
|
|
1150
|
+
type: Directive,
|
|
1151
|
+
args: [{
|
|
1152
|
+
selector: "[rxapMethod]",
|
|
1153
|
+
exportAs: "rxapMethod",
|
|
1154
|
+
standalone: true,
|
|
1155
|
+
host: {
|
|
1156
|
+
"(confirmed)": "onConfirmed()",
|
|
1157
|
+
"(click)": "onClick()"
|
|
1158
|
+
}
|
|
1159
|
+
}]
|
|
1160
|
+
}],
|
|
1161
|
+
propDecorators: {
|
|
1162
|
+
method: [{
|
|
1163
|
+
type: i0.Input,
|
|
1164
|
+
args: [{
|
|
1165
|
+
isSignal: true,
|
|
1166
|
+
alias: "rxapMethod",
|
|
1167
|
+
required: true
|
|
1168
|
+
}]
|
|
1169
|
+
}],
|
|
1170
|
+
parameters: [{
|
|
1171
|
+
type: i0.Input,
|
|
1172
|
+
args: [{
|
|
1173
|
+
isSignal: true,
|
|
1174
|
+
alias: "parameters",
|
|
1175
|
+
required: false
|
|
1176
|
+
}]
|
|
1177
|
+
}],
|
|
1178
|
+
immediately: [{
|
|
1179
|
+
type: i0.Input,
|
|
1180
|
+
args: [{
|
|
1181
|
+
isSignal: true,
|
|
1182
|
+
alias: "immediately",
|
|
1183
|
+
required: false
|
|
1184
|
+
}]
|
|
1185
|
+
}],
|
|
1186
|
+
executed$: [{
|
|
1187
|
+
type: i0.Output,
|
|
1188
|
+
args: ["executed"]
|
|
1189
|
+
}],
|
|
1190
|
+
failure$: [{
|
|
1191
|
+
type: i0.Output,
|
|
1192
|
+
args: ["failure"]
|
|
1193
|
+
}],
|
|
1194
|
+
successful$: [{
|
|
1195
|
+
type: i0.Output,
|
|
1196
|
+
args: ["successful"]
|
|
1197
|
+
}],
|
|
1198
|
+
hasConfirmDirective: [{
|
|
1199
|
+
type: i0.Input,
|
|
1200
|
+
args: [{
|
|
1201
|
+
isSignal: true,
|
|
1202
|
+
alias: "rxapConfirm",
|
|
1203
|
+
required: false
|
|
1204
|
+
}]
|
|
1205
|
+
}]
|
|
1206
|
+
}
|
|
1207
|
+
});
|
|
1208
|
+
var MovableDividerDirective = class MovableDividerDirective {
|
|
1209
|
+
constructor() {
|
|
1210
|
+
this.renderer = inject(Renderer2);
|
|
1211
|
+
this.containerElement = input.required(...ngDevMode ? [{ debugName: "containerElement" }] : /* istanbul ignore next */ []);
|
|
1212
|
+
this.fixedElement = input.required(...ngDevMode ? [{ debugName: "fixedElement" }] : /* istanbul ignore next */ []);
|
|
1213
|
+
this.origin = input("right", ...ngDevMode ? [{ debugName: "origin" }] : /* istanbul ignore next */ []);
|
|
1214
|
+
this._moveDivider = false;
|
|
1215
|
+
this._fixedElementWidth = null;
|
|
1216
|
+
effect((onCleanup) => {
|
|
1217
|
+
const containerElement = this.containerElement();
|
|
1218
|
+
const subscription = new Subscription();
|
|
1219
|
+
onCleanup(() => subscription.unsubscribe());
|
|
1220
|
+
this.listen(containerElement, subscription);
|
|
1221
|
+
});
|
|
1222
|
+
}
|
|
1223
|
+
listen(containerElement, subscription) {
|
|
1224
|
+
subscription.add(fromEvent(containerElement, "mousemove").pipe(tap(($event) => {
|
|
1225
|
+
if (this._moveDivider) {
|
|
1226
|
+
if (!this._fixedElementWidth) this._fixedElementWidth = this.fixedElement().clientWidth;
|
|
1227
|
+
const origin = this.origin();
|
|
1228
|
+
if (origin === "right") this._fixedElementWidth = $event.clientX - this.containerElement().getBoundingClientRect().left;
|
|
1229
|
+
else if (origin === "left") {
|
|
1230
|
+
const containerElementValue = this.containerElement();
|
|
1231
|
+
if (isDevMode()) console.log({
|
|
1232
|
+
clientWidth: containerElementValue.clientWidth,
|
|
1233
|
+
clientX: $event.clientX,
|
|
1234
|
+
clientLeft: containerElementValue.getBoundingClientRect().left
|
|
1235
|
+
});
|
|
1236
|
+
this._fixedElementWidth = containerElementValue.clientWidth - $event.clientX + containerElementValue.getBoundingClientRect().left;
|
|
1237
|
+
} else throw new Error(`The origin '${origin}' is not supported.`);
|
|
1238
|
+
const width = this._fixedElementWidth + "px";
|
|
1239
|
+
const fixedElement = this.fixedElement();
|
|
1240
|
+
this.renderer.setStyle(fixedElement, "max-width", width);
|
|
1241
|
+
this.renderer.setStyle(fixedElement, "min-width", width);
|
|
1242
|
+
this.renderer.setStyle(fixedElement, "flex-basis", width);
|
|
1243
|
+
}
|
|
1244
|
+
})).subscribe());
|
|
1245
|
+
subscription.add(fromEvent(containerElement, "mouseup").pipe(tap(() => this._moveDivider = false)).subscribe());
|
|
1246
|
+
}
|
|
1247
|
+
onMousedown() {
|
|
1248
|
+
this._moveDivider = true;
|
|
1249
|
+
}
|
|
1250
|
+
static {
|
|
1251
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
1252
|
+
minVersion: "12.0.0",
|
|
1253
|
+
version: "22.3.0",
|
|
1254
|
+
ngImport: i0,
|
|
1255
|
+
type: MovableDividerDirective,
|
|
1256
|
+
deps: [],
|
|
1257
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
1258
|
+
});
|
|
1259
|
+
}
|
|
1260
|
+
static {
|
|
1261
|
+
this.ɵdir = i0.ɵɵngDeclareDirective({
|
|
1262
|
+
minVersion: "17.1.0",
|
|
1263
|
+
version: "22.3.0",
|
|
1264
|
+
type: MovableDividerDirective,
|
|
1265
|
+
isStandalone: true,
|
|
1266
|
+
selector: "[rxapMovableDivider]",
|
|
1267
|
+
inputs: {
|
|
1268
|
+
containerElement: {
|
|
1269
|
+
classPropertyName: "containerElement",
|
|
1270
|
+
publicName: "containerElement",
|
|
1271
|
+
isSignal: true,
|
|
1272
|
+
isRequired: true,
|
|
1273
|
+
transformFunction: null
|
|
1274
|
+
},
|
|
1275
|
+
fixedElement: {
|
|
1276
|
+
classPropertyName: "fixedElement",
|
|
1277
|
+
publicName: "fixedElement",
|
|
1278
|
+
isSignal: true,
|
|
1279
|
+
isRequired: true,
|
|
1280
|
+
transformFunction: null
|
|
1281
|
+
},
|
|
1282
|
+
origin: {
|
|
1283
|
+
classPropertyName: "origin",
|
|
1284
|
+
publicName: "origin",
|
|
1285
|
+
isSignal: true,
|
|
1286
|
+
isRequired: false,
|
|
1287
|
+
transformFunction: null
|
|
1288
|
+
}
|
|
1289
|
+
},
|
|
1290
|
+
host: {
|
|
1291
|
+
listeners: { "mousedown": "onMousedown()" },
|
|
1292
|
+
styleAttribute: "cursor: ew-resize"
|
|
1293
|
+
},
|
|
1294
|
+
ngImport: i0
|
|
1295
|
+
});
|
|
1296
|
+
}
|
|
1297
|
+
};
|
|
1298
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
1299
|
+
minVersion: "12.0.0",
|
|
1300
|
+
version: "22.3.0",
|
|
1301
|
+
ngImport: i0,
|
|
1302
|
+
type: MovableDividerDirective,
|
|
1303
|
+
decorators: [{
|
|
1304
|
+
type: Directive,
|
|
1305
|
+
args: [{
|
|
1306
|
+
selector: "[rxapMovableDivider]",
|
|
1307
|
+
standalone: true,
|
|
1308
|
+
host: {
|
|
1309
|
+
style: "cursor: ew-resize",
|
|
1310
|
+
"(mousedown)": "onMousedown()"
|
|
1311
|
+
}
|
|
1312
|
+
}]
|
|
1313
|
+
}],
|
|
1314
|
+
ctorParameters: () => [],
|
|
1315
|
+
propDecorators: {
|
|
1316
|
+
containerElement: [{
|
|
1317
|
+
type: i0.Input,
|
|
1318
|
+
args: [{
|
|
1319
|
+
isSignal: true,
|
|
1320
|
+
alias: "containerElement",
|
|
1321
|
+
required: true
|
|
1322
|
+
}]
|
|
1323
|
+
}],
|
|
1324
|
+
fixedElement: [{
|
|
1325
|
+
type: i0.Input,
|
|
1326
|
+
args: [{
|
|
1327
|
+
isSignal: true,
|
|
1328
|
+
alias: "fixedElement",
|
|
1329
|
+
required: true
|
|
1330
|
+
}]
|
|
1331
|
+
}],
|
|
1332
|
+
origin: [{
|
|
1333
|
+
type: i0.Input,
|
|
1334
|
+
args: [{
|
|
1335
|
+
isSignal: true,
|
|
1336
|
+
alias: "origin",
|
|
1337
|
+
required: false
|
|
1338
|
+
}]
|
|
1339
|
+
}]
|
|
1340
|
+
}
|
|
1341
|
+
});
|
|
1342
|
+
var PreventDefaultDirective = class PreventDefaultDirective {
|
|
1343
|
+
onClick($event) {
|
|
1344
|
+
$event.preventDefault();
|
|
1345
|
+
}
|
|
1346
|
+
static {
|
|
1347
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
1348
|
+
minVersion: "12.0.0",
|
|
1349
|
+
version: "22.3.0",
|
|
1350
|
+
ngImport: i0,
|
|
1351
|
+
type: PreventDefaultDirective,
|
|
1352
|
+
deps: [],
|
|
1353
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
1354
|
+
});
|
|
1355
|
+
}
|
|
1356
|
+
static {
|
|
1357
|
+
this.ɵdir = i0.ɵɵngDeclareDirective({
|
|
1358
|
+
minVersion: "14.0.0",
|
|
1359
|
+
version: "22.3.0",
|
|
1360
|
+
type: PreventDefaultDirective,
|
|
1361
|
+
isStandalone: true,
|
|
1362
|
+
selector: "[rxapPreventDefault]",
|
|
1363
|
+
host: { listeners: { "click": "onClick($event)" } },
|
|
1364
|
+
ngImport: i0
|
|
1365
|
+
});
|
|
1366
|
+
}
|
|
1367
|
+
};
|
|
1368
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
1369
|
+
minVersion: "12.0.0",
|
|
1370
|
+
version: "22.3.0",
|
|
1371
|
+
ngImport: i0,
|
|
1372
|
+
type: PreventDefaultDirective,
|
|
1373
|
+
decorators: [{
|
|
1374
|
+
type: Directive,
|
|
1375
|
+
args: [{
|
|
1376
|
+
selector: "[rxapPreventDefault]",
|
|
1377
|
+
standalone: true,
|
|
1378
|
+
host: { "(click)": "onClick($event)" }
|
|
1379
|
+
}]
|
|
1380
|
+
}]
|
|
1381
|
+
});
|
|
1382
|
+
var ShareService = class ShareService {
|
|
1383
|
+
constructor() {
|
|
1384
|
+
this.isSupported = "share" in navigator && "canShare" in navigator && typeof navigator.canShare === "function" && typeof navigator.share === "function";
|
|
1385
|
+
}
|
|
1386
|
+
async share(data, softFail = true) {
|
|
1387
|
+
if (this.isSupported) {
|
|
1388
|
+
if (navigator.canShare(data)) await navigator.share(data);
|
|
1389
|
+
else {
|
|
1390
|
+
console.warn("Can not share data", data);
|
|
1391
|
+
throw new Error("Can not share data");
|
|
1392
|
+
}
|
|
1393
|
+
} else if (softFail) console.warn(`Native share is not supported!`);
|
|
1394
|
+
else alert("Native share is not supported!");
|
|
1395
|
+
}
|
|
1396
|
+
static {
|
|
1397
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
1398
|
+
minVersion: "12.0.0",
|
|
1399
|
+
version: "22.3.0",
|
|
1400
|
+
ngImport: i0,
|
|
1401
|
+
type: ShareService,
|
|
1402
|
+
deps: [],
|
|
1403
|
+
target: i0.ɵɵFactoryTarget.Injectable
|
|
1404
|
+
});
|
|
1405
|
+
}
|
|
1406
|
+
static {
|
|
1407
|
+
this.ɵprov = i0.ɵɵngDeclareInjectable({
|
|
1408
|
+
minVersion: "12.0.0",
|
|
1409
|
+
version: "22.3.0",
|
|
1410
|
+
ngImport: i0,
|
|
1411
|
+
type: ShareService,
|
|
1412
|
+
providedIn: "root"
|
|
1413
|
+
});
|
|
1414
|
+
}
|
|
1415
|
+
};
|
|
1416
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
1417
|
+
minVersion: "12.0.0",
|
|
1418
|
+
version: "22.3.0",
|
|
1419
|
+
ngImport: i0,
|
|
1420
|
+
type: ShareService,
|
|
1421
|
+
decorators: [{
|
|
1422
|
+
type: Injectable,
|
|
1423
|
+
args: [{ providedIn: "root" }]
|
|
1424
|
+
}]
|
|
1425
|
+
});
|
|
1426
|
+
var ShareButtonDirective = class ShareButtonDirective {
|
|
1427
|
+
constructor() {
|
|
1428
|
+
this.url = input(...ngDevMode ? [void 0, { debugName: "url" }] : /* istanbul ignore next */ []);
|
|
1429
|
+
this.text = input(...ngDevMode ? [void 0, { debugName: "text" }] : /* istanbul ignore next */ []);
|
|
1430
|
+
this.title = input(...ngDevMode ? [void 0, { debugName: "title" }] : /* istanbul ignore next */ []);
|
|
1431
|
+
this.files = input(...ngDevMode ? [void 0, { debugName: "files" }] : /* istanbul ignore next */ []);
|
|
1432
|
+
this.failed = output();
|
|
1433
|
+
this.success = output();
|
|
1434
|
+
this.shareService = inject(ShareService);
|
|
1435
|
+
}
|
|
1436
|
+
async share() {
|
|
1437
|
+
try {
|
|
1438
|
+
await this.shareService.share({
|
|
1439
|
+
url: this.url(),
|
|
1440
|
+
text: this.text(),
|
|
1441
|
+
files: this.files(),
|
|
1442
|
+
title: this.title()
|
|
1443
|
+
});
|
|
1444
|
+
this.success.emit();
|
|
1445
|
+
} catch (err) {
|
|
1446
|
+
console.error(`share failed: ${err.message}`);
|
|
1447
|
+
this.failed.emit(err);
|
|
1448
|
+
}
|
|
1449
|
+
}
|
|
1450
|
+
static {
|
|
1451
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
1452
|
+
minVersion: "12.0.0",
|
|
1453
|
+
version: "22.3.0",
|
|
1454
|
+
ngImport: i0,
|
|
1455
|
+
type: ShareButtonDirective,
|
|
1456
|
+
deps: [],
|
|
1457
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
1458
|
+
});
|
|
1459
|
+
}
|
|
1460
|
+
static {
|
|
1461
|
+
this.ɵdir = i0.ɵɵngDeclareDirective({
|
|
1462
|
+
minVersion: "17.1.0",
|
|
1463
|
+
version: "22.3.0",
|
|
1464
|
+
type: ShareButtonDirective,
|
|
1465
|
+
isStandalone: true,
|
|
1466
|
+
selector: "[rxapShareButton],[rxapShare]",
|
|
1467
|
+
inputs: {
|
|
1468
|
+
url: {
|
|
1469
|
+
classPropertyName: "url",
|
|
1470
|
+
publicName: "url",
|
|
1471
|
+
isSignal: true,
|
|
1472
|
+
isRequired: false,
|
|
1473
|
+
transformFunction: null
|
|
1474
|
+
},
|
|
1475
|
+
text: {
|
|
1476
|
+
classPropertyName: "text",
|
|
1477
|
+
publicName: "text",
|
|
1478
|
+
isSignal: true,
|
|
1479
|
+
isRequired: false,
|
|
1480
|
+
transformFunction: null
|
|
1481
|
+
},
|
|
1482
|
+
title: {
|
|
1483
|
+
classPropertyName: "title",
|
|
1484
|
+
publicName: "title",
|
|
1485
|
+
isSignal: true,
|
|
1486
|
+
isRequired: false,
|
|
1487
|
+
transformFunction: null
|
|
1488
|
+
},
|
|
1489
|
+
files: {
|
|
1490
|
+
classPropertyName: "files",
|
|
1491
|
+
publicName: "files",
|
|
1492
|
+
isSignal: true,
|
|
1493
|
+
isRequired: false,
|
|
1494
|
+
transformFunction: null
|
|
1495
|
+
}
|
|
1496
|
+
},
|
|
1497
|
+
outputs: {
|
|
1498
|
+
failed: "failed",
|
|
1499
|
+
success: "success"
|
|
1500
|
+
},
|
|
1501
|
+
host: { listeners: { "click": "share()" } },
|
|
1502
|
+
ngImport: i0
|
|
1503
|
+
});
|
|
1504
|
+
}
|
|
1505
|
+
};
|
|
1506
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
1507
|
+
minVersion: "12.0.0",
|
|
1508
|
+
version: "22.3.0",
|
|
1509
|
+
ngImport: i0,
|
|
1510
|
+
type: ShareButtonDirective,
|
|
1511
|
+
decorators: [{
|
|
1512
|
+
type: Directive,
|
|
1513
|
+
args: [{
|
|
1514
|
+
selector: "[rxapShareButton],[rxapShare]",
|
|
1515
|
+
standalone: true,
|
|
1516
|
+
host: { "(click)": "share()" }
|
|
1517
|
+
}]
|
|
1518
|
+
}],
|
|
1519
|
+
propDecorators: {
|
|
1520
|
+
url: [{
|
|
1521
|
+
type: i0.Input,
|
|
1522
|
+
args: [{
|
|
1523
|
+
isSignal: true,
|
|
1524
|
+
alias: "url",
|
|
1525
|
+
required: false
|
|
1526
|
+
}]
|
|
1527
|
+
}],
|
|
1528
|
+
text: [{
|
|
1529
|
+
type: i0.Input,
|
|
1530
|
+
args: [{
|
|
1531
|
+
isSignal: true,
|
|
1532
|
+
alias: "text",
|
|
1533
|
+
required: false
|
|
1534
|
+
}]
|
|
1535
|
+
}],
|
|
1536
|
+
title: [{
|
|
1537
|
+
type: i0.Input,
|
|
1538
|
+
args: [{
|
|
1539
|
+
isSignal: true,
|
|
1540
|
+
alias: "title",
|
|
1541
|
+
required: false
|
|
1542
|
+
}]
|
|
1543
|
+
}],
|
|
1544
|
+
files: [{
|
|
1545
|
+
type: i0.Input,
|
|
1546
|
+
args: [{
|
|
1547
|
+
isSignal: true,
|
|
1548
|
+
alias: "files",
|
|
1549
|
+
required: false
|
|
1550
|
+
}]
|
|
1551
|
+
}],
|
|
1552
|
+
failed: [{
|
|
1553
|
+
type: i0.Output,
|
|
1554
|
+
args: ["failed"]
|
|
1555
|
+
}],
|
|
1556
|
+
success: [{
|
|
1557
|
+
type: i0.Output,
|
|
1558
|
+
args: ["success"]
|
|
1559
|
+
}]
|
|
1560
|
+
}
|
|
1561
|
+
});
|
|
1562
|
+
var StopImmediatePropagationDirective = class StopImmediatePropagationDirective {
|
|
1563
|
+
onClick($event) {
|
|
1564
|
+
$event.stopImmediatePropagation();
|
|
1565
|
+
}
|
|
1566
|
+
static {
|
|
1567
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
1568
|
+
minVersion: "12.0.0",
|
|
1569
|
+
version: "22.3.0",
|
|
1570
|
+
ngImport: i0,
|
|
1571
|
+
type: StopImmediatePropagationDirective,
|
|
1572
|
+
deps: [],
|
|
1573
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
1574
|
+
});
|
|
1575
|
+
}
|
|
1576
|
+
static {
|
|
1577
|
+
this.ɵdir = i0.ɵɵngDeclareDirective({
|
|
1578
|
+
minVersion: "14.0.0",
|
|
1579
|
+
version: "22.3.0",
|
|
1580
|
+
type: StopImmediatePropagationDirective,
|
|
1581
|
+
isStandalone: true,
|
|
1582
|
+
selector: "[rxapStopImmediatePropagation]",
|
|
1583
|
+
host: { listeners: { "click": "onClick($event)" } },
|
|
1584
|
+
ngImport: i0
|
|
1585
|
+
});
|
|
1586
|
+
}
|
|
1587
|
+
};
|
|
1588
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
1589
|
+
minVersion: "12.0.0",
|
|
1590
|
+
version: "22.3.0",
|
|
1591
|
+
ngImport: i0,
|
|
1592
|
+
type: StopImmediatePropagationDirective,
|
|
1593
|
+
decorators: [{
|
|
1594
|
+
type: Directive,
|
|
1595
|
+
args: [{
|
|
1596
|
+
selector: "[rxapStopImmediatePropagation]",
|
|
1597
|
+
standalone: true,
|
|
1598
|
+
host: { "(click)": "onClick($event)" }
|
|
1599
|
+
}]
|
|
1600
|
+
}]
|
|
1601
|
+
});
|
|
1602
|
+
var StopPropagationDirective = class StopPropagationDirective {
|
|
1603
|
+
onClick($event) {
|
|
1604
|
+
$event.stopPropagation();
|
|
1605
|
+
}
|
|
1606
|
+
static {
|
|
1607
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
1608
|
+
minVersion: "12.0.0",
|
|
1609
|
+
version: "22.3.0",
|
|
1610
|
+
ngImport: i0,
|
|
1611
|
+
type: StopPropagationDirective,
|
|
1612
|
+
deps: [],
|
|
1613
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
1614
|
+
});
|
|
1615
|
+
}
|
|
1616
|
+
static {
|
|
1617
|
+
this.ɵdir = i0.ɵɵngDeclareDirective({
|
|
1618
|
+
minVersion: "14.0.0",
|
|
1619
|
+
version: "22.3.0",
|
|
1620
|
+
type: StopPropagationDirective,
|
|
1621
|
+
isStandalone: true,
|
|
1622
|
+
selector: "[rxapStopPropagation]",
|
|
1623
|
+
host: { listeners: { "click": "onClick($event)" } },
|
|
1624
|
+
ngImport: i0
|
|
1625
|
+
});
|
|
1626
|
+
}
|
|
1627
|
+
};
|
|
1628
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
1629
|
+
minVersion: "12.0.0",
|
|
1630
|
+
version: "22.3.0",
|
|
1631
|
+
ngImport: i0,
|
|
1632
|
+
type: StopPropagationDirective,
|
|
1633
|
+
decorators: [{
|
|
1634
|
+
type: Directive,
|
|
1635
|
+
args: [{
|
|
1636
|
+
selector: "[rxapStopPropagation]",
|
|
1637
|
+
standalone: true,
|
|
1638
|
+
host: { "(click)": "onClick($event)" }
|
|
1639
|
+
}]
|
|
1640
|
+
}]
|
|
1641
|
+
});
|
|
751
1642
|
export { AvatarBackgroundImageDirective, BackgroundImageDirective, BackgroundPositionOptions, BackgroundRepeatOptions, BackgroundSizeOptions, ConfirmClick, ContenteditableDirective, FullWidthDirective, GlobalStyleOptions, IfTruthyDirective, IsDevModeDirective, MethodDirective, MethodTemplateDirective, MovableDividerDirective, PreventDefaultDirective, ShareButtonDirective, ShareService, StopImmediatePropagationDirective, StopPropagationDirective };
|
|
752
|
-
|
|
1643
|
+
|
|
1644
|
+
//# sourceMappingURL=rxap-directives.mjs.map
|