@rxap/form-window-system 21.0.1 → 22.0.0-dev.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +31 -0
- package/compodoc/architecture.html +222 -0
- package/compodoc/changelog.html +75 -5
- package/compodoc/classes/FormWindowRef.html +77 -23
- package/compodoc/dependencies.html +120 -33
- package/compodoc/directives/CloseWindowAfterSubmitDirective.html +74 -20
- package/compodoc/directives/FormWindowFooterDirective.html +87 -20
- package/compodoc/directives/OpenFormDirective.html +299 -398
- package/compodoc/directives/OpenFormWindowMethodDirective.html +288 -246
- package/compodoc/index.html +46 -5
- package/compodoc/injectables/FormWindowService.html +78 -18
- package/compodoc/injectables/OpenFormWindowMethod.html +66 -17
- package/compodoc/interfaces/FormWindowFooterTemplateContext.html +185 -125
- package/compodoc/interfaces/FormWindowOptions.html +473 -369
- package/compodoc/js/architecture-graph.js +288 -0
- package/compodoc/js/libs/bootstrap-native.js +4 -2
- package/compodoc/js/libs/jszip.min.js +13 -0
- package/compodoc/js/libs/svg-pan-zoom.min.js +3 -3
- package/compodoc/js/libs/tablesort.min.js +3 -3
- package/compodoc/js/libs/tablesort.number.min.js +3 -3
- package/compodoc/js/libs/vis-network.min.js +78 -0
- package/compodoc/js/menu-wc.js +28 -15
- package/compodoc/js/menu.js +10 -11
- package/compodoc/js/routes/routes_index.js +1 -0
- package/compodoc/js/routes.js +142 -34
- package/compodoc/js/search/search-lunr.js +6 -8
- package/compodoc/js/search/search.js +118 -66
- package/compodoc/js/search/search_index.js +2 -2
- package/compodoc/js/tabs.js +98 -15
- package/compodoc/js/tree.js +44 -7
- package/compodoc/license.html +48 -6
- package/compodoc/llms.txt +155 -0
- package/compodoc/miscellaneous/functions.html +48 -6
- package/compodoc/miscellaneous/variables.html +79 -8
- package/compodoc/modules.html +44 -3
- package/compodoc/overview.html +54 -3
- package/compodoc/properties.html +45 -4
- package/compodoc/routes.html +227 -0
- package/compodoc/styles/compodoc.css +365 -44
- package/compodoc/styles/dark.css +16 -0
- package/compodoc/template-playground/default-templates.json +192 -0
- package/compodoc/template-playground/hbs-render.service.ts +217 -0
- package/compodoc/template-playground/main.ts +9 -0
- package/compodoc/template-playground/template-editor.service.ts +173 -0
- package/compodoc/template-playground/template-playground.component.ts +614 -0
- package/compodoc/template-playground/template-playground.module.ts +29 -0
- package/compodoc/template-playground/zip-export.service.ts +86 -0
- package/compodoc/template-playground-app/app.js +1389 -0
- package/compodoc/template-playground-app/index.html +462 -0
- package/docs/documentation.json +1097 -883
- package/docs/html/assets/highlight.css +1 -1
- package/docs/html/assets/icons.js +1 -1
- package/docs/html/assets/icons.svg +1 -1
- package/docs/html/assets/main.js +5 -5
- package/docs/html/assets/search.js +1 -1
- package/docs/html/assets/style.css +265 -228
- package/docs/html/classes/CloseWindowAfterSubmitDirective.html +95 -6
- package/docs/html/classes/FormWindowFooterDirective.html +110 -6
- package/docs/html/classes/FormWindowRef.html +138 -8
- package/docs/html/classes/FormWindowService.html +83 -3
- package/docs/html/classes/OpenFormDirective.html +236 -21
- package/docs/html/classes/OpenFormWindowMethod.html +92 -3
- package/docs/html/classes/OpenFormWindowMethodDirective.html +225 -21
- package/docs/html/hierarchy.html +29 -0
- package/docs/html/index.html +40 -4
- package/docs/html/interfaces/FormWindowFooterTemplateContext.html +71 -4
- package/docs/html/interfaces/FormWindowOptions.html +258 -32
- package/docs/html/modules.html +44 -1
- package/docs/html/variables/RXAP_FORM_WINDOW_SYSTEM_OPEN_FORM_COMPONENT.html +33 -1
- package/docs/html/variables/RXAP_FORM_WINDOW_SYSTEM_OPEN_FORM_DEFAULT_OPTIONS.html +33 -1
- package/docs/html/variables/RXAP_FORM_WINDOW_SYSTEM_OPEN_FORM_DEFINITION_CONSTRUCTOR.html +33 -1
- package/docs/html/variables/RXAP_WINDOW_FORM_SYSTEM_OPEN_FORM_CONSTRUCTOR.html +36 -1
- package/docs/markdown/README.md +1 -1
- package/docs/markdown/classes/CloseWindowAfterSubmitDirective.md +7 -7
- package/docs/markdown/classes/FormWindowFooterDirective.md +14 -10
- package/docs/markdown/classes/FormWindowRef.md +16 -14
- package/docs/markdown/classes/FormWindowService.md +10 -8
- package/docs/markdown/classes/OpenFormDirective.md +38 -34
- package/docs/markdown/classes/OpenFormWindowMethod.md +10 -8
- package/docs/markdown/classes/OpenFormWindowMethodDirective.md +29 -25
- package/docs/markdown/globals.md +2 -2
- package/docs/markdown/interfaces/FormWindowFooterTemplateContext.md +8 -6
- package/docs/markdown/interfaces/FormWindowOptions.md +69 -75
- package/docs/markdown/variables/RXAP_FORM_WINDOW_SYSTEM_OPEN_FORM_COMPONENT.md +2 -2
- package/docs/markdown/variables/RXAP_FORM_WINDOW_SYSTEM_OPEN_FORM_DEFAULT_OPTIONS.md +2 -2
- package/docs/markdown/variables/RXAP_FORM_WINDOW_SYSTEM_OPEN_FORM_DEFINITION_CONSTRUCTOR.md +2 -2
- package/docs/markdown/variables/RXAP_WINDOW_FORM_SYSTEM_OPEN_FORM_CONSTRUCTOR.md +3 -3
- package/docs/wiki/Class.CloseWindowAfterSubmitDirective.md +6 -6
- package/docs/wiki/Class.FormWindowFooterDirective.md +13 -9
- package/docs/wiki/Class.FormWindowRef.md +15 -13
- package/docs/wiki/Class.FormWindowService.md +9 -7
- package/docs/wiki/Class.OpenFormDirective.md +37 -33
- package/docs/wiki/Class.OpenFormWindowMethod.md +9 -7
- package/docs/wiki/Class.OpenFormWindowMethodDirective.md +28 -24
- package/docs/wiki/Interface.FormWindowFooterTemplateContext.md +7 -5
- package/docs/wiki/Interface.FormWindowOptions.md +68 -74
- package/docs/wiki/Variable.RXAP_FORM_WINDOW_SYSTEM_OPEN_FORM_COMPONENT.md +1 -1
- package/docs/wiki/Variable.RXAP_FORM_WINDOW_SYSTEM_OPEN_FORM_DEFAULT_OPTIONS.md +1 -1
- package/docs/wiki/Variable.RXAP_FORM_WINDOW_SYSTEM_OPEN_FORM_DEFINITION_CONSTRUCTOR.md +1 -1
- package/docs/wiki/Variable.RXAP_WINDOW_FORM_SYSTEM_OPEN_FORM_CONSTRUCTOR.md +2 -2
- package/docs/wiki/globals.md +1 -1
- package/fesm2022/rxap-form-window-system.mjs +701 -371
- package/fesm2022/rxap-form-window-system.mjs.map +1 -1
- package/package.json +42 -42
- package/types/rxap-form-window-system.d.ts +216 -140
|
@@ -1,374 +1,704 @@
|
|
|
1
|
-
import * as i0 from
|
|
2
|
-
import {
|
|
3
|
-
import { FormSubmitDirective,
|
|
4
|
-
import { RXAP_WINDOW_REF, WindowRef, WindowService } from
|
|
5
|
-
import { TemplatePortal } from
|
|
6
|
-
import { __decorate,
|
|
7
|
-
import { FormSystemMetadataKeys } from
|
|
8
|
-
import { getMetadata } from
|
|
9
|
-
import { DeleteUndefinedProperties, coerceBoolean } from
|
|
10
|
-
import { CounterSubject } from
|
|
11
|
-
import { ConfirmClick } from
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import { Directive, INJECTOR, Inject, Injectable, InjectionToken, Injector, Optional, TemplateRef, ViewContainerRef, computed, inject, input, isDevMode, output } from "@angular/core";
|
|
3
|
+
import { FormDirective, FormSubmitDirective, RXAP_FORM_CONTEXT, RXAP_FORM_DEFINITION, RXAP_FORM_DEFINITION_BUILDER, RXAP_FORM_INITIAL_STATE, RXAP_FORM_LOAD_METHOD, RXAP_FORM_SUBMIT_METHOD, RXAP_FORM_SUBMIT_SUCCESSFUL_METHOD, RxapFormBuilder, ToFormMethod } from "@rxap/forms";
|
|
4
|
+
import { RXAP_WINDOW_REF, WindowRef, WindowService } from "@rxap/window-system";
|
|
5
|
+
import { TemplatePortal } from "@angular/cdk/portal";
|
|
6
|
+
import { __decorate, __metadata, __param } from "tslib";
|
|
7
|
+
import { FormSystemMetadataKeys } from "@rxap/form-system";
|
|
8
|
+
import { getMetadata } from "@rxap/reflect-metadata";
|
|
9
|
+
import { DeleteUndefinedProperties, coerceBoolean } from "@rxap/utilities";
|
|
10
|
+
import { CounterSubject } from "@rxap/rxjs";
|
|
11
|
+
import { ConfirmClick } from "@rxap/directives";
|
|
12
|
+
var CloseWindowAfterSubmitDirective = class CloseWindowAfterSubmitDirective {
|
|
13
|
+
constructor() {
|
|
14
|
+
this.formSubmit = inject(FormSubmitDirective);
|
|
15
|
+
this.windowRef = inject(RXAP_WINDOW_REF);
|
|
16
|
+
}
|
|
17
|
+
ngOnInit() {
|
|
18
|
+
this._subscription = this.formSubmit.afterSubmit.subscribe(() => this.windowRef.complete());
|
|
19
|
+
}
|
|
20
|
+
ngOnDestroy() {
|
|
21
|
+
this._subscription?.unsubscribe();
|
|
22
|
+
}
|
|
23
|
+
static {
|
|
24
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
25
|
+
minVersion: "12.0.0",
|
|
26
|
+
version: "22.3.0",
|
|
27
|
+
ngImport: i0,
|
|
28
|
+
type: CloseWindowAfterSubmitDirective,
|
|
29
|
+
deps: [],
|
|
30
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
static {
|
|
34
|
+
this.ɵdir = i0.ɵɵngDeclareDirective({
|
|
35
|
+
minVersion: "14.0.0",
|
|
36
|
+
version: "22.3.0",
|
|
37
|
+
type: CloseWindowAfterSubmitDirective,
|
|
38
|
+
isStandalone: true,
|
|
39
|
+
selector: "[rxapFormSubmit][rxapCloseWindowAfterSubmit]",
|
|
40
|
+
ngImport: i0
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
45
|
+
minVersion: "12.0.0",
|
|
46
|
+
version: "22.3.0",
|
|
47
|
+
ngImport: i0,
|
|
48
|
+
type: CloseWindowAfterSubmitDirective,
|
|
49
|
+
decorators: [{
|
|
50
|
+
type: Directive,
|
|
51
|
+
args: [{
|
|
52
|
+
selector: "[rxapFormSubmit][rxapCloseWindowAfterSubmit]",
|
|
53
|
+
standalone: true
|
|
54
|
+
}]
|
|
55
|
+
}]
|
|
56
|
+
});
|
|
57
|
+
var FormWindowFooterDirective = class FormWindowFooterDirective {
|
|
58
|
+
constructor() {
|
|
59
|
+
this.formDirective = inject(FormDirective);
|
|
60
|
+
this.windowRef = inject(RXAP_WINDOW_REF);
|
|
61
|
+
this.template = inject(TemplateRef);
|
|
62
|
+
this.viewContainerRef = inject(ViewContainerRef);
|
|
63
|
+
}
|
|
64
|
+
static ngTemplateContextGuard(dir, ctx) {
|
|
65
|
+
return true;
|
|
66
|
+
}
|
|
67
|
+
ngOnInit() {
|
|
68
|
+
this.windowRef.setFooterPortal(new TemplatePortal(this.template, this.viewContainerRef, {
|
|
69
|
+
$implicit: this.windowRef,
|
|
70
|
+
formDefinition: this.formDirective.formDefinition,
|
|
71
|
+
formDirective: this.formDirective
|
|
72
|
+
}));
|
|
73
|
+
}
|
|
74
|
+
static {
|
|
75
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
76
|
+
minVersion: "12.0.0",
|
|
77
|
+
version: "22.3.0",
|
|
78
|
+
ngImport: i0,
|
|
79
|
+
type: FormWindowFooterDirective,
|
|
80
|
+
deps: [],
|
|
81
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
static {
|
|
85
|
+
this.ɵdir = i0.ɵɵngDeclareDirective({
|
|
86
|
+
minVersion: "14.0.0",
|
|
87
|
+
version: "22.3.0",
|
|
88
|
+
type: FormWindowFooterDirective,
|
|
89
|
+
isStandalone: true,
|
|
90
|
+
selector: "[rxapFormWindowFooter]",
|
|
91
|
+
ngImport: i0
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
};
|
|
95
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
96
|
+
minVersion: "12.0.0",
|
|
97
|
+
version: "22.3.0",
|
|
98
|
+
ngImport: i0,
|
|
99
|
+
type: FormWindowFooterDirective,
|
|
100
|
+
decorators: [{
|
|
101
|
+
type: Directive,
|
|
102
|
+
args: [{
|
|
103
|
+
selector: "[rxapFormWindowFooter]",
|
|
104
|
+
standalone: true
|
|
105
|
+
}]
|
|
106
|
+
}]
|
|
107
|
+
});
|
|
72
108
|
let FormWindowRef = class FormWindowRef {
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
109
|
+
constructor(formDefinition, windowRef) {
|
|
110
|
+
this.formDefinition = formDefinition;
|
|
111
|
+
this.windowRef = windowRef;
|
|
112
|
+
}
|
|
113
|
+
submit() {
|
|
114
|
+
throw new Error("Not yet implemented!");
|
|
115
|
+
}
|
|
116
|
+
reset() {
|
|
117
|
+
throw new Error("Not yet implemented!");
|
|
118
|
+
}
|
|
119
|
+
close(result) {
|
|
120
|
+
this.windowRef.close(result);
|
|
121
|
+
}
|
|
86
122
|
};
|
|
87
|
-
FormWindowRef = __decorate([
|
|
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
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
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
|
-
|
|
123
|
+
FormWindowRef = __decorate([__param(1, Inject(WindowRef)), __metadata("design:paramtypes", [Object, WindowRef])], FormWindowRef);
|
|
124
|
+
var FormWindowService = class FormWindowService {
|
|
125
|
+
constructor() {
|
|
126
|
+
this.windowService = inject(WindowService);
|
|
127
|
+
this.injector = inject(INJECTOR);
|
|
128
|
+
}
|
|
129
|
+
open(formDefinitionConstructor, options) {
|
|
130
|
+
function FormDefinitionFactory(formBuilder, initial) {
|
|
131
|
+
return formBuilder.build(initial);
|
|
132
|
+
}
|
|
133
|
+
function FormDefinitionBuilderFactory(_injector) {
|
|
134
|
+
return new RxapFormBuilder(formDefinitionConstructor, _injector);
|
|
135
|
+
}
|
|
136
|
+
const providers = options?.providers ?? [];
|
|
137
|
+
if ((options?.injector ?? this.injector).get(formDefinitionConstructor, null, { optional: true })) providers.push({
|
|
138
|
+
provide: RXAP_FORM_DEFINITION_BUILDER,
|
|
139
|
+
useFactory: FormDefinitionBuilderFactory,
|
|
140
|
+
deps: [INJECTOR]
|
|
141
|
+
}, {
|
|
142
|
+
provide: RXAP_FORM_DEFINITION,
|
|
143
|
+
useFactory: FormDefinitionFactory,
|
|
144
|
+
deps: [RXAP_FORM_DEFINITION_BUILDER, [new Optional(), RXAP_FORM_INITIAL_STATE]]
|
|
145
|
+
});
|
|
146
|
+
if (options) {
|
|
147
|
+
if (options.initial) providers.push({
|
|
148
|
+
provide: RXAP_FORM_INITIAL_STATE,
|
|
149
|
+
useValue: options.initial
|
|
150
|
+
});
|
|
151
|
+
if (options.submitMethod) providers.push({
|
|
152
|
+
provide: RXAP_FORM_SUBMIT_METHOD,
|
|
153
|
+
useValue: options.submitMethod
|
|
154
|
+
});
|
|
155
|
+
if (options.submitSuccessfulMethod) providers.push({
|
|
156
|
+
provide: RXAP_FORM_SUBMIT_SUCCESSFUL_METHOD,
|
|
157
|
+
useValue: options.submitSuccessfulMethod
|
|
158
|
+
});
|
|
159
|
+
if (options.resetSubmit) providers.push({
|
|
160
|
+
provide: RXAP_FORM_SUBMIT_METHOD,
|
|
161
|
+
useValue: null
|
|
162
|
+
});
|
|
163
|
+
if (options.resetLoad && !options.loadMethod) providers.push({
|
|
164
|
+
provide: RXAP_FORM_LOAD_METHOD,
|
|
165
|
+
useValue: null
|
|
166
|
+
});
|
|
167
|
+
if (options.loadMethod) providers.push({
|
|
168
|
+
provide: RXAP_FORM_LOAD_METHOD,
|
|
169
|
+
useValue: options.loadMethod
|
|
170
|
+
});
|
|
171
|
+
if (options.context) providers.push({
|
|
172
|
+
provide: RXAP_FORM_CONTEXT,
|
|
173
|
+
useValue: options.context
|
|
174
|
+
});
|
|
175
|
+
}
|
|
176
|
+
const injector = Injector.create({
|
|
177
|
+
parent: options?.injector ?? this.injector,
|
|
178
|
+
providers,
|
|
179
|
+
name: options?.injectorName ?? "FormWindowService"
|
|
180
|
+
});
|
|
181
|
+
let windowConfig = {
|
|
182
|
+
component: options?.component ?? this.extractFormComponent(formDefinitionConstructor),
|
|
183
|
+
injector
|
|
184
|
+
};
|
|
185
|
+
if (options) windowConfig = Object.assign(DeleteUndefinedProperties(options), windowConfig);
|
|
186
|
+
return this.windowService.open(windowConfig);
|
|
187
|
+
}
|
|
188
|
+
extractFormComponent(formDefinitionConstructor) {
|
|
189
|
+
const component = getMetadata(FormSystemMetadataKeys.FORM_COMPONENT, formDefinitionConstructor) ?? null;
|
|
190
|
+
if (!component) throw new Error("Could not extract form component constructor");
|
|
191
|
+
return component;
|
|
192
|
+
}
|
|
193
|
+
static {
|
|
194
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
195
|
+
minVersion: "12.0.0",
|
|
196
|
+
version: "22.3.0",
|
|
197
|
+
ngImport: i0,
|
|
198
|
+
type: FormWindowService,
|
|
199
|
+
deps: [],
|
|
200
|
+
target: i0.ɵɵFactoryTarget.Injectable
|
|
201
|
+
});
|
|
202
|
+
}
|
|
203
|
+
static {
|
|
204
|
+
this.ɵprov = i0.ɵɵngDeclareInjectable({
|
|
205
|
+
minVersion: "12.0.0",
|
|
206
|
+
version: "22.3.0",
|
|
207
|
+
ngImport: i0,
|
|
208
|
+
type: FormWindowService,
|
|
209
|
+
providedIn: "root"
|
|
210
|
+
});
|
|
211
|
+
}
|
|
212
|
+
};
|
|
213
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
214
|
+
minVersion: "12.0.0",
|
|
215
|
+
version: "22.3.0",
|
|
216
|
+
ngImport: i0,
|
|
217
|
+
type: FormWindowService,
|
|
218
|
+
decorators: [{
|
|
219
|
+
type: Injectable,
|
|
220
|
+
args: [{ providedIn: "root" }]
|
|
221
|
+
}]
|
|
222
|
+
});
|
|
223
|
+
var OpenFormWindowMethodDirective = class OpenFormWindowMethodDirective {
|
|
224
|
+
constructor() {
|
|
225
|
+
this.injector = inject(INJECTOR, { optional: true }) ?? null;
|
|
226
|
+
this.method = input.required({
|
|
227
|
+
...ngDevMode ? { debugName: "method" } : /* istanbul ignore next */ {},
|
|
228
|
+
alias: "rxapOpenFormWindowMethod"
|
|
229
|
+
});
|
|
230
|
+
this.initial = input(...ngDevMode ? [void 0, { debugName: "initial" }] : /* istanbul ignore next */ []);
|
|
231
|
+
this.failure$ = output({ alias: "failure" });
|
|
232
|
+
this.completed$ = output({ alias: "completed" });
|
|
233
|
+
this.submitted$ = output({ alias: "submitted" });
|
|
234
|
+
this.executing$ = new CounterSubject(0);
|
|
235
|
+
this.providers = input(...ngDevMode ? [void 0, { debugName: "providers" }] : /* istanbul ignore next */ []);
|
|
236
|
+
this._windowRefInstance = /* @__PURE__ */ new Set();
|
|
237
|
+
this.hasConfirmDirective = input(false, {
|
|
238
|
+
...ngDevMode ? { debugName: "hasConfirmDirective" } : /* istanbul ignore next */ {},
|
|
239
|
+
alias: "rxapConfirm",
|
|
240
|
+
transform: coerceBoolean
|
|
241
|
+
});
|
|
242
|
+
}
|
|
243
|
+
ngOnDestroy() {
|
|
244
|
+
this._windowRefInstance.forEach((windowRef) => windowRef.complete());
|
|
245
|
+
}
|
|
246
|
+
onConfirmed() {
|
|
247
|
+
this.execute();
|
|
248
|
+
}
|
|
249
|
+
onClick() {
|
|
250
|
+
if (!this.hasConfirmDirective()) this.execute();
|
|
251
|
+
else console.debug("skip remote method call. Wait for confirmation.");
|
|
252
|
+
}
|
|
253
|
+
execute() {
|
|
254
|
+
this.executing$.increase();
|
|
255
|
+
const windowRef = this.method().call(this.initial(), {
|
|
256
|
+
providers: this.providers(),
|
|
257
|
+
injector: this.injector
|
|
258
|
+
});
|
|
259
|
+
windowRef.subscribe((value) => this.submitted(value), (error) => this.failure(error), () => {
|
|
260
|
+
this.completed();
|
|
261
|
+
this.executing$.decrease();
|
|
262
|
+
this._windowRefInstance.delete(windowRef);
|
|
263
|
+
});
|
|
264
|
+
}
|
|
265
|
+
submitted(value) {
|
|
266
|
+
this.submitted$.emit(value);
|
|
267
|
+
}
|
|
268
|
+
failure(error) {
|
|
269
|
+
this.failure$.emit(error);
|
|
270
|
+
}
|
|
271
|
+
completed() {
|
|
272
|
+
this.completed$.emit();
|
|
273
|
+
}
|
|
274
|
+
static {
|
|
275
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
276
|
+
minVersion: "12.0.0",
|
|
277
|
+
version: "22.3.0",
|
|
278
|
+
ngImport: i0,
|
|
279
|
+
type: OpenFormWindowMethodDirective,
|
|
280
|
+
deps: [],
|
|
281
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
282
|
+
});
|
|
283
|
+
}
|
|
284
|
+
static {
|
|
285
|
+
this.ɵdir = i0.ɵɵngDeclareDirective({
|
|
286
|
+
minVersion: "17.1.0",
|
|
287
|
+
version: "22.3.0",
|
|
288
|
+
type: OpenFormWindowMethodDirective,
|
|
289
|
+
isStandalone: true,
|
|
290
|
+
selector: "[rxapOpenFormWindowMethod]",
|
|
291
|
+
inputs: {
|
|
292
|
+
method: {
|
|
293
|
+
classPropertyName: "method",
|
|
294
|
+
publicName: "rxapOpenFormWindowMethod",
|
|
295
|
+
isSignal: true,
|
|
296
|
+
isRequired: true,
|
|
297
|
+
transformFunction: null
|
|
298
|
+
},
|
|
299
|
+
initial: {
|
|
300
|
+
classPropertyName: "initial",
|
|
301
|
+
publicName: "initial",
|
|
302
|
+
isSignal: true,
|
|
303
|
+
isRequired: false,
|
|
304
|
+
transformFunction: null
|
|
305
|
+
},
|
|
306
|
+
providers: {
|
|
307
|
+
classPropertyName: "providers",
|
|
308
|
+
publicName: "providers",
|
|
309
|
+
isSignal: true,
|
|
310
|
+
isRequired: false,
|
|
311
|
+
transformFunction: null
|
|
312
|
+
},
|
|
313
|
+
hasConfirmDirective: {
|
|
314
|
+
classPropertyName: "hasConfirmDirective",
|
|
315
|
+
publicName: "rxapConfirm",
|
|
316
|
+
isSignal: true,
|
|
317
|
+
isRequired: false,
|
|
318
|
+
transformFunction: null
|
|
319
|
+
}
|
|
320
|
+
},
|
|
321
|
+
outputs: {
|
|
322
|
+
failure$: "failure",
|
|
323
|
+
completed$: "completed",
|
|
324
|
+
submitted$: "submitted"
|
|
325
|
+
},
|
|
326
|
+
host: { listeners: {
|
|
327
|
+
"confirmed": "onConfirmed()",
|
|
328
|
+
"click": "onClick()"
|
|
329
|
+
} },
|
|
330
|
+
ngImport: i0
|
|
331
|
+
});
|
|
332
|
+
}
|
|
333
|
+
};
|
|
334
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
335
|
+
minVersion: "12.0.0",
|
|
336
|
+
version: "22.3.0",
|
|
337
|
+
ngImport: i0,
|
|
338
|
+
type: OpenFormWindowMethodDirective,
|
|
339
|
+
decorators: [{
|
|
340
|
+
type: Directive,
|
|
341
|
+
args: [{
|
|
342
|
+
selector: "[rxapOpenFormWindowMethod]",
|
|
343
|
+
host: {
|
|
344
|
+
"(confirmed)": "onConfirmed()",
|
|
345
|
+
"(click)": "onClick()"
|
|
346
|
+
},
|
|
347
|
+
standalone: true
|
|
348
|
+
}]
|
|
349
|
+
}],
|
|
350
|
+
propDecorators: {
|
|
351
|
+
method: [{
|
|
352
|
+
type: i0.Input,
|
|
353
|
+
args: [{
|
|
354
|
+
isSignal: true,
|
|
355
|
+
alias: "rxapOpenFormWindowMethod",
|
|
356
|
+
required: true
|
|
357
|
+
}]
|
|
358
|
+
}],
|
|
359
|
+
initial: [{
|
|
360
|
+
type: i0.Input,
|
|
361
|
+
args: [{
|
|
362
|
+
isSignal: true,
|
|
363
|
+
alias: "initial",
|
|
364
|
+
required: false
|
|
365
|
+
}]
|
|
366
|
+
}],
|
|
367
|
+
failure$: [{
|
|
368
|
+
type: i0.Output,
|
|
369
|
+
args: ["failure"]
|
|
370
|
+
}],
|
|
371
|
+
completed$: [{
|
|
372
|
+
type: i0.Output,
|
|
373
|
+
args: ["completed"]
|
|
374
|
+
}],
|
|
375
|
+
submitted$: [{
|
|
376
|
+
type: i0.Output,
|
|
377
|
+
args: ["submitted"]
|
|
378
|
+
}],
|
|
379
|
+
providers: [{
|
|
380
|
+
type: i0.Input,
|
|
381
|
+
args: [{
|
|
382
|
+
isSignal: true,
|
|
383
|
+
alias: "providers",
|
|
384
|
+
required: false
|
|
385
|
+
}]
|
|
386
|
+
}],
|
|
387
|
+
hasConfirmDirective: [{
|
|
388
|
+
type: i0.Input,
|
|
389
|
+
args: [{
|
|
390
|
+
isSignal: true,
|
|
391
|
+
alias: "rxapConfirm",
|
|
392
|
+
required: false
|
|
393
|
+
}]
|
|
394
|
+
}]
|
|
395
|
+
}
|
|
396
|
+
});
|
|
397
|
+
const RXAP_FORM_WINDOW_SYSTEM_OPEN_FORM_DEFINITION_CONSTRUCTOR = new InjectionToken("rxap/form-window-system/open-form/definition-constructor");
|
|
398
|
+
const RXAP_FORM_WINDOW_SYSTEM_OPEN_FORM_DEFAULT_OPTIONS = new InjectionToken("rxap/form-window-system/open-form/default-options");
|
|
399
|
+
const RXAP_FORM_WINDOW_SYSTEM_OPEN_FORM_COMPONENT = new InjectionToken("rxap/form-window-system/open-form/component");
|
|
400
|
+
var OpenFormWindowMethod = class OpenFormWindowMethod {
|
|
401
|
+
constructor() {
|
|
402
|
+
this.formWindowService = inject(FormWindowService);
|
|
403
|
+
this.formDefinitionConstructor = inject(RXAP_FORM_WINDOW_SYSTEM_OPEN_FORM_DEFINITION_CONSTRUCTOR);
|
|
404
|
+
this.injector = inject(INJECTOR);
|
|
405
|
+
this.formComponent = inject(RXAP_FORM_WINDOW_SYSTEM_OPEN_FORM_COMPONENT, { optional: true }) ?? null;
|
|
406
|
+
this.defaultOptions = inject(RXAP_FORM_WINDOW_SYSTEM_OPEN_FORM_DEFAULT_OPTIONS, { optional: true }) ?? null;
|
|
407
|
+
}
|
|
408
|
+
call(initial, options) {
|
|
409
|
+
return this.formWindowService.open(this.formDefinitionConstructor, {
|
|
410
|
+
...this.defaultOptions ?? {},
|
|
411
|
+
injector: this.injector,
|
|
412
|
+
...options ?? {},
|
|
413
|
+
initial: initial ?? this.defaultOptions?.initial,
|
|
414
|
+
component: this.formComponent ?? this.defaultOptions?.component ?? void 0
|
|
415
|
+
});
|
|
416
|
+
}
|
|
417
|
+
static {
|
|
418
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
419
|
+
minVersion: "12.0.0",
|
|
420
|
+
version: "22.3.0",
|
|
421
|
+
ngImport: i0,
|
|
422
|
+
type: OpenFormWindowMethod,
|
|
423
|
+
deps: [],
|
|
424
|
+
target: i0.ɵɵFactoryTarget.Injectable
|
|
425
|
+
});
|
|
426
|
+
}
|
|
427
|
+
static {
|
|
428
|
+
this.ɵprov = i0.ɵɵngDeclareInjectable({
|
|
429
|
+
minVersion: "12.0.0",
|
|
430
|
+
version: "22.3.0",
|
|
431
|
+
ngImport: i0,
|
|
432
|
+
type: OpenFormWindowMethod
|
|
433
|
+
});
|
|
434
|
+
}
|
|
435
|
+
};
|
|
436
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
437
|
+
minVersion: "12.0.0",
|
|
438
|
+
version: "22.3.0",
|
|
439
|
+
ngImport: i0,
|
|
440
|
+
type: OpenFormWindowMethod,
|
|
441
|
+
decorators: [{ type: Injectable }]
|
|
442
|
+
});
|
|
443
|
+
const RXAP_WINDOW_FORM_SYSTEM_OPEN_FORM_CONSTRUCTOR = new InjectionToken("rxap/window-form-system/open-form-constructor");
|
|
444
|
+
var OpenFormDirective = class OpenFormDirective extends ConfirmClick {
|
|
445
|
+
constructor() {
|
|
446
|
+
super(...arguments);
|
|
447
|
+
this.formWindowService = inject(FormWindowService);
|
|
448
|
+
this.injector = inject(INJECTOR);
|
|
449
|
+
this.type = input("button", ...ngDevMode ? [{ debugName: "type" }] : /* istanbul ignore next */ []);
|
|
450
|
+
this.submitted = output();
|
|
451
|
+
this.initial = input(...ngDevMode ? [void 0, { debugName: "initial" }] : /* istanbul ignore next */ []);
|
|
452
|
+
this.title = input(...ngDevMode ? [void 0, { debugName: "title" }] : /* istanbul ignore next */ []);
|
|
453
|
+
this.icon = input(...ngDevMode ? [void 0, { debugName: "icon" }] : /* istanbul ignore next */ []);
|
|
454
|
+
this.width = input(...ngDevMode ? [void 0, { debugName: "width" }] : /* istanbul ignore next */ []);
|
|
455
|
+
this.height = input(...ngDevMode ? [void 0, { debugName: "height" }] : /* istanbul ignore next */ []);
|
|
456
|
+
this.resizeable = input(...ngDevMode ? [void 0, { debugName: "resizeable" }] : /* istanbul ignore next */ []);
|
|
457
|
+
this.draggable = input(...ngDevMode ? [void 0, { debugName: "draggable" }] : /* istanbul ignore next */ []);
|
|
458
|
+
this.panelClass = input(...ngDevMode ? [void 0, { debugName: "panelClass" }] : /* istanbul ignore next */ []);
|
|
459
|
+
this.defaultFormDefinitionConstructor = inject(RXAP_WINDOW_FORM_SYSTEM_OPEN_FORM_CONSTRUCTOR, { optional: true });
|
|
460
|
+
this.formDefinitionConstructorInput = input("", {
|
|
461
|
+
...ngDevMode ? { debugName: "formDefinitionConstructorInput" } : /* istanbul ignore next */ {},
|
|
462
|
+
alias: "rxapOpenForm"
|
|
463
|
+
});
|
|
464
|
+
this.formDefinitionConstructor = computed(() => this.formDefinitionConstructorInput() || this.defaultFormDefinitionConstructor, ...ngDevMode ? [{ debugName: "formDefinitionConstructor" }] : /* istanbul ignore next */ []);
|
|
465
|
+
this.onSubmit = input((value) => {
|
|
466
|
+
if (isDevMode()) console.warn("[rxapOpenForm] No \"onSubmit\" method is provided!");
|
|
467
|
+
return value;
|
|
468
|
+
}, ...ngDevMode ? [{ debugName: "onSubmit" }] : /* istanbul ignore next */ []);
|
|
469
|
+
}
|
|
470
|
+
onSubmitSuccessful(result) {
|
|
471
|
+
this.submitted.emit(result);
|
|
472
|
+
this._formWindowRef?.close();
|
|
473
|
+
}
|
|
474
|
+
ngOnDestroy() {
|
|
475
|
+
this._formWindowRef?.close();
|
|
476
|
+
}
|
|
477
|
+
execute() {
|
|
478
|
+
this._formWindowRef = this.formWindowService.open(this.formDefinitionConstructor(), {
|
|
479
|
+
injector: this.injector,
|
|
480
|
+
submitSuccessfulMethod: ToFormMethod(this.onSubmitSuccessful.bind(this)),
|
|
481
|
+
initial: this.initial(),
|
|
482
|
+
injectorName: "OpenFormDirective",
|
|
483
|
+
title: this.title(),
|
|
484
|
+
icon: this.icon(),
|
|
485
|
+
width: this.width(),
|
|
486
|
+
resizeable: this.resizeable(),
|
|
487
|
+
draggable: this.draggable(),
|
|
488
|
+
panelClass: this.panelClass()
|
|
489
|
+
});
|
|
490
|
+
}
|
|
491
|
+
static {
|
|
492
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
493
|
+
minVersion: "12.0.0",
|
|
494
|
+
version: "22.3.0",
|
|
495
|
+
ngImport: i0,
|
|
496
|
+
type: OpenFormDirective,
|
|
497
|
+
deps: null,
|
|
498
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
499
|
+
});
|
|
500
|
+
}
|
|
501
|
+
static {
|
|
502
|
+
this.ɵdir = i0.ɵɵngDeclareDirective({
|
|
503
|
+
minVersion: "17.1.0",
|
|
504
|
+
version: "22.3.0",
|
|
505
|
+
type: OpenFormDirective,
|
|
506
|
+
isStandalone: true,
|
|
507
|
+
selector: "[rxapOpenForm]",
|
|
508
|
+
inputs: {
|
|
509
|
+
type: {
|
|
510
|
+
classPropertyName: "type",
|
|
511
|
+
publicName: "type",
|
|
512
|
+
isSignal: true,
|
|
513
|
+
isRequired: false,
|
|
514
|
+
transformFunction: null
|
|
515
|
+
},
|
|
516
|
+
initial: {
|
|
517
|
+
classPropertyName: "initial",
|
|
518
|
+
publicName: "initial",
|
|
519
|
+
isSignal: true,
|
|
520
|
+
isRequired: false,
|
|
521
|
+
transformFunction: null
|
|
522
|
+
},
|
|
523
|
+
title: {
|
|
524
|
+
classPropertyName: "title",
|
|
525
|
+
publicName: "title",
|
|
526
|
+
isSignal: true,
|
|
527
|
+
isRequired: false,
|
|
528
|
+
transformFunction: null
|
|
529
|
+
},
|
|
530
|
+
icon: {
|
|
531
|
+
classPropertyName: "icon",
|
|
532
|
+
publicName: "icon",
|
|
533
|
+
isSignal: true,
|
|
534
|
+
isRequired: false,
|
|
535
|
+
transformFunction: null
|
|
536
|
+
},
|
|
537
|
+
width: {
|
|
538
|
+
classPropertyName: "width",
|
|
539
|
+
publicName: "width",
|
|
540
|
+
isSignal: true,
|
|
541
|
+
isRequired: false,
|
|
542
|
+
transformFunction: null
|
|
543
|
+
},
|
|
544
|
+
height: {
|
|
545
|
+
classPropertyName: "height",
|
|
546
|
+
publicName: "height",
|
|
547
|
+
isSignal: true,
|
|
548
|
+
isRequired: false,
|
|
549
|
+
transformFunction: null
|
|
550
|
+
},
|
|
551
|
+
resizeable: {
|
|
552
|
+
classPropertyName: "resizeable",
|
|
553
|
+
publicName: "resizeable",
|
|
554
|
+
isSignal: true,
|
|
555
|
+
isRequired: false,
|
|
556
|
+
transformFunction: null
|
|
557
|
+
},
|
|
558
|
+
draggable: {
|
|
559
|
+
classPropertyName: "draggable",
|
|
560
|
+
publicName: "draggable",
|
|
561
|
+
isSignal: true,
|
|
562
|
+
isRequired: false,
|
|
563
|
+
transformFunction: null
|
|
564
|
+
},
|
|
565
|
+
panelClass: {
|
|
566
|
+
classPropertyName: "panelClass",
|
|
567
|
+
publicName: "panelClass",
|
|
568
|
+
isSignal: true,
|
|
569
|
+
isRequired: false,
|
|
570
|
+
transformFunction: null
|
|
571
|
+
},
|
|
572
|
+
formDefinitionConstructorInput: {
|
|
573
|
+
classPropertyName: "formDefinitionConstructorInput",
|
|
574
|
+
publicName: "rxapOpenForm",
|
|
575
|
+
isSignal: true,
|
|
576
|
+
isRequired: false,
|
|
577
|
+
transformFunction: null
|
|
578
|
+
},
|
|
579
|
+
onSubmit: {
|
|
580
|
+
classPropertyName: "onSubmit",
|
|
581
|
+
publicName: "onSubmit",
|
|
582
|
+
isSignal: true,
|
|
583
|
+
isRequired: false,
|
|
584
|
+
transformFunction: null
|
|
585
|
+
}
|
|
586
|
+
},
|
|
587
|
+
outputs: { submitted: "submitted" },
|
|
588
|
+
host: { properties: { "attr.type": "type()" } },
|
|
589
|
+
usesInheritance: true,
|
|
590
|
+
ngImport: i0
|
|
591
|
+
});
|
|
592
|
+
}
|
|
593
|
+
};
|
|
594
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
595
|
+
minVersion: "12.0.0",
|
|
596
|
+
version: "22.3.0",
|
|
597
|
+
ngImport: i0,
|
|
598
|
+
type: OpenFormDirective,
|
|
599
|
+
decorators: [{
|
|
600
|
+
type: Directive,
|
|
601
|
+
args: [{
|
|
602
|
+
selector: "[rxapOpenForm]",
|
|
603
|
+
host: { "[attr.type]": "type()" },
|
|
604
|
+
standalone: true
|
|
605
|
+
}]
|
|
606
|
+
}],
|
|
607
|
+
propDecorators: {
|
|
608
|
+
type: [{
|
|
609
|
+
type: i0.Input,
|
|
610
|
+
args: [{
|
|
611
|
+
isSignal: true,
|
|
612
|
+
alias: "type",
|
|
613
|
+
required: false
|
|
614
|
+
}]
|
|
615
|
+
}],
|
|
616
|
+
submitted: [{
|
|
617
|
+
type: i0.Output,
|
|
618
|
+
args: ["submitted"]
|
|
619
|
+
}],
|
|
620
|
+
initial: [{
|
|
621
|
+
type: i0.Input,
|
|
622
|
+
args: [{
|
|
623
|
+
isSignal: true,
|
|
624
|
+
alias: "initial",
|
|
625
|
+
required: false
|
|
626
|
+
}]
|
|
627
|
+
}],
|
|
628
|
+
title: [{
|
|
629
|
+
type: i0.Input,
|
|
630
|
+
args: [{
|
|
631
|
+
isSignal: true,
|
|
632
|
+
alias: "title",
|
|
633
|
+
required: false
|
|
634
|
+
}]
|
|
635
|
+
}],
|
|
636
|
+
icon: [{
|
|
637
|
+
type: i0.Input,
|
|
638
|
+
args: [{
|
|
639
|
+
isSignal: true,
|
|
640
|
+
alias: "icon",
|
|
641
|
+
required: false
|
|
642
|
+
}]
|
|
643
|
+
}],
|
|
644
|
+
width: [{
|
|
645
|
+
type: i0.Input,
|
|
646
|
+
args: [{
|
|
647
|
+
isSignal: true,
|
|
648
|
+
alias: "width",
|
|
649
|
+
required: false
|
|
650
|
+
}]
|
|
651
|
+
}],
|
|
652
|
+
height: [{
|
|
653
|
+
type: i0.Input,
|
|
654
|
+
args: [{
|
|
655
|
+
isSignal: true,
|
|
656
|
+
alias: "height",
|
|
657
|
+
required: false
|
|
658
|
+
}]
|
|
659
|
+
}],
|
|
660
|
+
resizeable: [{
|
|
661
|
+
type: i0.Input,
|
|
662
|
+
args: [{
|
|
663
|
+
isSignal: true,
|
|
664
|
+
alias: "resizeable",
|
|
665
|
+
required: false
|
|
666
|
+
}]
|
|
667
|
+
}],
|
|
668
|
+
draggable: [{
|
|
669
|
+
type: i0.Input,
|
|
670
|
+
args: [{
|
|
671
|
+
isSignal: true,
|
|
672
|
+
alias: "draggable",
|
|
673
|
+
required: false
|
|
674
|
+
}]
|
|
675
|
+
}],
|
|
676
|
+
panelClass: [{
|
|
677
|
+
type: i0.Input,
|
|
678
|
+
args: [{
|
|
679
|
+
isSignal: true,
|
|
680
|
+
alias: "panelClass",
|
|
681
|
+
required: false
|
|
682
|
+
}]
|
|
683
|
+
}],
|
|
684
|
+
formDefinitionConstructorInput: [{
|
|
685
|
+
type: i0.Input,
|
|
686
|
+
args: [{
|
|
687
|
+
isSignal: true,
|
|
688
|
+
alias: "rxapOpenForm",
|
|
689
|
+
required: false
|
|
690
|
+
}]
|
|
691
|
+
}],
|
|
692
|
+
onSubmit: [{
|
|
693
|
+
type: i0.Input,
|
|
694
|
+
args: [{
|
|
695
|
+
isSignal: true,
|
|
696
|
+
alias: "onSubmit",
|
|
697
|
+
required: false
|
|
698
|
+
}]
|
|
699
|
+
}]
|
|
700
|
+
}
|
|
701
|
+
});
|
|
373
702
|
export { CloseWindowAfterSubmitDirective, FormWindowFooterDirective, FormWindowRef, FormWindowService, OpenFormDirective, OpenFormWindowMethod, OpenFormWindowMethodDirective, RXAP_FORM_WINDOW_SYSTEM_OPEN_FORM_COMPONENT, RXAP_FORM_WINDOW_SYSTEM_OPEN_FORM_DEFAULT_OPTIONS, RXAP_FORM_WINDOW_SYSTEM_OPEN_FORM_DEFINITION_CONSTRUCTOR, RXAP_WINDOW_FORM_SYSTEM_OPEN_FORM_CONSTRUCTOR };
|
|
374
|
-
|
|
703
|
+
|
|
704
|
+
//# sourceMappingURL=rxap-form-window-system.mjs.map
|