@rxap/form-window-system 21.0.1-dev.0 → 21.0.1-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 +22 -0
- package/compodoc/changelog.html +21 -0
- package/compodoc/dependencies.html +8 -8
- package/compodoc/directives/CloseWindowAfterSubmitDirective.html +4 -75
- package/compodoc/directives/FormWindowFooterDirective.html +7 -104
- package/compodoc/directives/OpenFormDirective.html +366 -447
- package/compodoc/directives/OpenFormWindowMethodDirective.html +236 -419
- package/compodoc/injectables/FormWindowService.html +6 -77
- package/compodoc/injectables/OpenFormWindowMethod.html +9 -121
- package/compodoc/interfaces/FormWindowFooterTemplateContext.html +5 -18
- package/compodoc/interfaces/FormWindowOptions.html +4 -15
- package/compodoc/js/search/search_index.js +2 -2
- package/compodoc/properties.html +1 -1
- package/docs/documentation.json +1223 -1653
- package/docs/html/assets/search.js +1 -1
- package/docs/html/classes/CloseWindowAfterSubmitDirective.html +4 -4
- package/docs/html/classes/FormWindowFooterDirective.html +4 -4
- package/docs/html/classes/FormWindowRef.html +3 -3
- package/docs/html/classes/FormWindowService.html +2 -2
- package/docs/html/classes/OpenFormDirective.html +14 -14
- package/docs/html/classes/OpenFormWindowMethod.html +2 -2
- package/docs/html/classes/OpenFormWindowMethodDirective.html +8 -8
- package/docs/html/index.html +2 -2
- package/docs/html/interfaces/FormWindowFooterTemplateContext.html +2 -2
- package/docs/html/interfaces/FormWindowOptions.html +3 -3
- package/docs/html/modules.html +1 -1
- package/docs/html/variables/RXAP_FORM_WINDOW_SYSTEM_OPEN_FORM_COMPONENT.html +1 -1
- package/docs/html/variables/RXAP_FORM_WINDOW_SYSTEM_OPEN_FORM_DEFAULT_OPTIONS.html +1 -1
- package/docs/html/variables/RXAP_FORM_WINDOW_SYSTEM_OPEN_FORM_DEFINITION_CONSTRUCTOR.html +1 -1
- package/docs/html/variables/RXAP_WINDOW_FORM_SYSTEM_OPEN_FORM_CONSTRUCTOR.html +1 -1
- package/docs/markdown/README.md +1 -1
- package/docs/markdown/classes/CloseWindowAfterSubmitDirective.md +5 -17
- package/docs/markdown/classes/FormWindowFooterDirective.md +5 -25
- package/docs/markdown/classes/FormWindowRef.md +8 -8
- package/docs/markdown/classes/FormWindowService.md +4 -16
- package/docs/markdown/classes/OpenFormDirective.md +53 -103
- package/docs/markdown/classes/OpenFormWindowMethod.md +4 -28
- package/docs/markdown/classes/OpenFormWindowMethodDirective.md +32 -52
- package/docs/markdown/globals.md +2 -2
- package/docs/markdown/interfaces/FormWindowFooterTemplateContext.md +5 -5
- package/docs/markdown/interfaces/FormWindowOptions.md +32 -32
- 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 +2 -2
- package/docs/wiki/Class.CloseWindowAfterSubmitDirective.md +4 -16
- package/docs/wiki/Class.FormWindowFooterDirective.md +4 -24
- package/docs/wiki/Class.FormWindowRef.md +7 -7
- package/docs/wiki/Class.FormWindowService.md +3 -15
- package/docs/wiki/Class.OpenFormDirective.md +52 -102
- package/docs/wiki/Class.OpenFormWindowMethod.md +3 -27
- package/docs/wiki/Class.OpenFormWindowMethodDirective.md +31 -51
- package/docs/wiki/Interface.FormWindowFooterTemplateContext.md +4 -4
- package/docs/wiki/Interface.FormWindowOptions.md +31 -31
- 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 +1 -1
- package/docs/wiki/globals.md +1 -1
- package/fesm2022/rxap-form-window-system.mjs +80 -189
- package/fesm2022/rxap-form-window-system.mjs.map +1 -1
- package/package.json +30 -30
- package/types/rxap-form-window-system.d.ts +37 -44
|
@@ -165,10 +165,45 @@
|
|
|
165
165
|
<span class="modifier">Protected</span>
|
|
166
166
|
<a href="#_windowRefInstance" >_windowRefInstance</a>
|
|
167
167
|
</li>
|
|
168
|
+
<li>
|
|
169
|
+
<span class="modifier">Public</span>
|
|
170
|
+
<span class="modifier">Readonly</span>
|
|
171
|
+
<a href="#completed$" >completed$</a>
|
|
172
|
+
</li>
|
|
168
173
|
<li>
|
|
169
174
|
<span class="modifier">Public</span>
|
|
170
175
|
<a href="#executing$" >executing$</a>
|
|
171
176
|
</li>
|
|
177
|
+
<li>
|
|
178
|
+
<span class="modifier">Public</span>
|
|
179
|
+
<span class="modifier">Readonly</span>
|
|
180
|
+
<a href="#failure$" >failure$</a>
|
|
181
|
+
</li>
|
|
182
|
+
<li>
|
|
183
|
+
<span class="modifier">Public</span>
|
|
184
|
+
<span class="modifier">Readonly</span>
|
|
185
|
+
<a href="#hasConfirmDirective" >hasConfirmDirective</a>
|
|
186
|
+
</li>
|
|
187
|
+
<li>
|
|
188
|
+
<span class="modifier">Public</span>
|
|
189
|
+
<span class="modifier">Readonly</span>
|
|
190
|
+
<a href="#initial" >initial</a>
|
|
191
|
+
</li>
|
|
192
|
+
<li>
|
|
193
|
+
<span class="modifier">Public</span>
|
|
194
|
+
<span class="modifier">Readonly</span>
|
|
195
|
+
<a href="#method" >method</a>
|
|
196
|
+
</li>
|
|
197
|
+
<li>
|
|
198
|
+
<span class="modifier">Public</span>
|
|
199
|
+
<span class="modifier">Readonly</span>
|
|
200
|
+
<a href="#providers" >providers</a>
|
|
201
|
+
</li>
|
|
202
|
+
<li>
|
|
203
|
+
<span class="modifier">Public</span>
|
|
204
|
+
<span class="modifier">Readonly</span>
|
|
205
|
+
<a href="#submitted$" >submitted$</a>
|
|
206
|
+
</li>
|
|
172
207
|
</ul>
|
|
173
208
|
</td>
|
|
174
209
|
</tr>
|
|
@@ -194,12 +229,10 @@
|
|
|
194
229
|
<a href="#failure" >failure</a>
|
|
195
230
|
</li>
|
|
196
231
|
<li>
|
|
197
|
-
<span class="modifier"></span>
|
|
198
232
|
<span class="modifier">Public</span>
|
|
199
233
|
<a href="#onClick" >onClick</a>
|
|
200
234
|
</li>
|
|
201
235
|
<li>
|
|
202
|
-
<span class="modifier"></span>
|
|
203
236
|
<span class="modifier">Public</span>
|
|
204
237
|
<a href="#onConfirmed" >onConfirmed</a>
|
|
205
238
|
</li>
|
|
@@ -222,125 +255,17 @@
|
|
|
222
255
|
<li>
|
|
223
256
|
<a href="#initial" >initial</a>
|
|
224
257
|
</li>
|
|
225
|
-
<li>
|
|
226
|
-
<a href="#providers" >providers</a>
|
|
227
|
-
</li>
|
|
228
|
-
<li>
|
|
229
|
-
<a href="#rxapConfirm" >rxapConfirm</a>
|
|
230
|
-
</li>
|
|
231
|
-
<li>
|
|
232
|
-
<a href="#rxapOpenFormWindowMethod" >rxapOpenFormWindowMethod</a>
|
|
233
|
-
</li>
|
|
234
258
|
</ul>
|
|
235
259
|
</td>
|
|
236
260
|
</tr>
|
|
237
261
|
|
|
238
|
-
<tr>
|
|
239
|
-
<td class="col-md-4">
|
|
240
|
-
<h6><b>Outputs</b></h6>
|
|
241
|
-
</td>
|
|
242
|
-
</tr>
|
|
243
|
-
<tr>
|
|
244
|
-
<td class="col-md-4">
|
|
245
|
-
<ul class="index-list">
|
|
246
|
-
<li>
|
|
247
|
-
<a href="#completed" >completed</a>
|
|
248
|
-
</li>
|
|
249
|
-
<li>
|
|
250
|
-
<a href="#failure" >failure</a>
|
|
251
|
-
</li>
|
|
252
|
-
<li>
|
|
253
|
-
<a href="#submitted" >submitted</a>
|
|
254
|
-
</li>
|
|
255
|
-
</ul>
|
|
256
|
-
</td>
|
|
257
|
-
</tr>
|
|
258
262
|
|
|
259
263
|
|
|
260
|
-
<tr>
|
|
261
|
-
<td class="col-md-4">
|
|
262
|
-
<h6><b>HostListeners</b></h6>
|
|
263
|
-
</td>
|
|
264
|
-
</tr>
|
|
265
|
-
<tr>
|
|
266
|
-
<td class="col-md-4">
|
|
267
|
-
<ul class="index-list">
|
|
268
|
-
<li>
|
|
269
|
-
<a href="#click" >click</a>
|
|
270
|
-
</li>
|
|
271
|
-
<li>
|
|
272
|
-
<a href="#confirmed" >confirmed</a>
|
|
273
|
-
</li>
|
|
274
|
-
</ul>
|
|
275
|
-
</td>
|
|
276
|
-
</tr>
|
|
277
264
|
|
|
278
|
-
<tr>
|
|
279
|
-
<td class="col-md-4">
|
|
280
|
-
<h6><b>Accessors</b></h6>
|
|
281
|
-
</td>
|
|
282
|
-
</tr>
|
|
283
|
-
<tr>
|
|
284
|
-
<td class="col-md-4">
|
|
285
|
-
<ul class="index-list">
|
|
286
|
-
<li>
|
|
287
|
-
<a href="#hasConfirmDirective" >hasConfirmDirective</a>
|
|
288
|
-
</li>
|
|
289
|
-
</ul>
|
|
290
|
-
</td>
|
|
291
|
-
</tr>
|
|
292
265
|
</tbody>
|
|
293
266
|
</table>
|
|
294
267
|
</section>
|
|
295
268
|
|
|
296
|
-
<section data-compodoc="block-constructor">
|
|
297
|
-
<h3 id="constructor">Constructor</h3>
|
|
298
|
-
<table class="table table-sm table-bordered">
|
|
299
|
-
<tbody>
|
|
300
|
-
<tr>
|
|
301
|
-
<td class="col-md-4">
|
|
302
|
-
<code>constructor(injector: Injector | null)</code>
|
|
303
|
-
</td>
|
|
304
|
-
</tr>
|
|
305
|
-
<tr>
|
|
306
|
-
<td class="col-md-4">
|
|
307
|
-
<div class="io-line">Defined in <a href="" data-line="59" class="link-to-prism">src/lib/open-form-window-method.directive.ts:59</a></div>
|
|
308
|
-
</td>
|
|
309
|
-
</tr>
|
|
310
|
-
|
|
311
|
-
<tr>
|
|
312
|
-
<td class="col-md-4">
|
|
313
|
-
<div>
|
|
314
|
-
<b>Parameters :</b>
|
|
315
|
-
<table class="params">
|
|
316
|
-
<thead>
|
|
317
|
-
<tr>
|
|
318
|
-
<td>Name</td>
|
|
319
|
-
<td>Type</td>
|
|
320
|
-
<td>Optional</td>
|
|
321
|
-
</tr>
|
|
322
|
-
</thead>
|
|
323
|
-
<tbody>
|
|
324
|
-
<tr>
|
|
325
|
-
<td>injector</td>
|
|
326
|
-
|
|
327
|
-
<td>
|
|
328
|
-
<code>Injector | null</code>
|
|
329
|
-
</td>
|
|
330
|
-
|
|
331
|
-
<td>
|
|
332
|
-
No
|
|
333
|
-
</td>
|
|
334
|
-
|
|
335
|
-
</tr>
|
|
336
|
-
</tbody>
|
|
337
|
-
</table>
|
|
338
|
-
</div>
|
|
339
|
-
</td>
|
|
340
|
-
</tr>
|
|
341
|
-
</tbody>
|
|
342
|
-
</table>
|
|
343
|
-
</section>
|
|
344
269
|
|
|
345
270
|
<section data-compodoc="block-inputs">
|
|
346
271
|
<h3 id="inputs">Inputs</h3>
|
|
@@ -351,203 +276,18 @@
|
|
|
351
276
|
<a name="initial"></a>
|
|
352
277
|
<b>initial</b>
|
|
353
278
|
</td>
|
|
354
|
-
</tr>
|
|
355
|
-
<tr>
|
|
356
|
-
<td class="col-md-4">
|
|
357
|
-
<i>Type : </i> <code>Initial</code>
|
|
358
|
-
|
|
359
|
-
</td>
|
|
360
|
-
</tr>
|
|
361
|
-
<tr>
|
|
362
|
-
<td class="col-md-2" colspan="2">
|
|
363
|
-
<div class="io-line">Defined in <a href="" data-line="33" class="link-to-prism">src/lib/open-form-window-method.directive.ts:33</a></div>
|
|
364
|
-
</td>
|
|
365
|
-
</tr>
|
|
366
|
-
</tbody>
|
|
367
|
-
</table>
|
|
368
|
-
<table class="table table-sm table-bordered">
|
|
369
|
-
<tbody>
|
|
370
|
-
<tr>
|
|
371
|
-
<td class="col-md-4">
|
|
372
|
-
<a name="providers"></a>
|
|
373
|
-
<b>providers</b>
|
|
374
|
-
</td>
|
|
375
|
-
</tr>
|
|
376
|
-
<tr>
|
|
377
|
-
<td class="col-md-4">
|
|
378
|
-
<i>Type : </i> <code>StaticProvider[]</code>
|
|
379
|
-
|
|
380
|
-
</td>
|
|
381
|
-
</tr>
|
|
382
|
-
<tr>
|
|
383
|
-
<td class="col-md-2" colspan="2">
|
|
384
|
-
<div class="io-line">Defined in <a href="" data-line="51" class="link-to-prism">src/lib/open-form-window-method.directive.ts:51</a></div>
|
|
385
|
-
</td>
|
|
386
|
-
</tr>
|
|
387
|
-
</tbody>
|
|
388
|
-
</table>
|
|
389
|
-
<table class="table table-sm table-bordered">
|
|
390
|
-
<tbody>
|
|
391
|
-
<tr>
|
|
392
|
-
<td class="col-md-4">
|
|
393
|
-
<a name="rxapConfirm"></a>
|
|
394
|
-
<b>rxapConfirm</b>
|
|
395
|
-
</td>
|
|
396
|
-
</tr>
|
|
397
|
-
<tr>
|
|
398
|
-
<td class="col-md-4">
|
|
399
|
-
<i>Type : </i> <code><a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank" >any</a></code>
|
|
400
|
-
|
|
401
|
-
</td>
|
|
402
|
-
</tr>
|
|
403
|
-
<tr>
|
|
404
|
-
<td class="col-md-2" colspan="2">
|
|
405
|
-
<div class="io-line">Defined in <a href="" data-line="72" class="link-to-prism">src/lib/open-form-window-method.directive.ts:72</a></div>
|
|
406
|
-
</td>
|
|
407
|
-
</tr>
|
|
408
|
-
</tbody>
|
|
409
|
-
</table>
|
|
410
|
-
<table class="table table-sm table-bordered">
|
|
411
|
-
<tbody>
|
|
412
|
-
<tr>
|
|
413
|
-
<td class="col-md-4">
|
|
414
|
-
<a name="rxapOpenFormWindowMethod"></a>
|
|
415
|
-
<b>rxapOpenFormWindowMethod</b>
|
|
416
|
-
</td>
|
|
417
|
-
</tr>
|
|
418
|
-
<tr>
|
|
419
|
-
<td class="col-md-4">
|
|
420
|
-
<i>Type : </i> <code>Method<WindowRef<FormDefinition, FormData> | Initial></code>
|
|
421
|
-
|
|
422
|
-
</td>
|
|
423
|
-
</tr>
|
|
424
|
-
<tr>
|
|
425
|
-
<td class="col-md-2" colspan="2">
|
|
426
|
-
<div class="io-line">Defined in <a href="" data-line="30" class="link-to-prism">src/lib/open-form-window-method.directive.ts:30</a></div>
|
|
427
|
-
</td>
|
|
428
|
-
</tr>
|
|
429
|
-
</tbody>
|
|
430
|
-
</table>
|
|
431
|
-
</section>
|
|
432
|
-
<section data-compodoc="block-outputs">
|
|
433
|
-
<h3 id="outputs">Outputs</h3>
|
|
434
|
-
<table class="table table-sm table-bordered">
|
|
435
|
-
<tbody>
|
|
436
|
-
<tr>
|
|
437
|
-
<td class="col-md-4">
|
|
438
|
-
<a name="completed"></a>
|
|
439
|
-
<b>completed</b>
|
|
440
|
-
</td>
|
|
441
|
-
</tr>
|
|
442
|
-
<tr>
|
|
443
|
-
<td class="col-md-4">
|
|
444
|
-
<i>Type : </i> <code>EventEmitter</code>
|
|
445
|
-
|
|
446
|
-
</td>
|
|
447
|
-
</tr>
|
|
448
|
-
<tr>
|
|
449
|
-
<td class="col-md-2" colspan="2">
|
|
450
|
-
<div class="io-line">Defined in <a href="" data-line="41" class="link-to-prism">src/lib/open-form-window-method.directive.ts:41</a></div>
|
|
451
|
-
</td>
|
|
452
|
-
</tr>
|
|
453
|
-
</tbody>
|
|
454
|
-
</table>
|
|
455
|
-
<table class="table table-sm table-bordered">
|
|
456
|
-
<tbody>
|
|
457
|
-
<tr>
|
|
458
|
-
<td class="col-md-4">
|
|
459
|
-
<a name="failure"></a>
|
|
460
|
-
<b>failure</b>
|
|
461
|
-
</td>
|
|
462
|
-
</tr>
|
|
463
|
-
<tr>
|
|
464
|
-
<td class="col-md-4">
|
|
465
|
-
<i>Type : </i> <code>EventEmitter</code>
|
|
466
|
-
|
|
467
|
-
</td>
|
|
468
|
-
</tr>
|
|
469
|
-
<tr>
|
|
470
|
-
<td class="col-md-2" colspan="2">
|
|
471
|
-
<div class="io-line">Defined in <a href="" data-line="37" class="link-to-prism">src/lib/open-form-window-method.directive.ts:37</a></div>
|
|
472
|
-
</td>
|
|
473
|
-
</tr>
|
|
474
|
-
</tbody>
|
|
475
|
-
</table>
|
|
476
|
-
<table class="table table-sm table-bordered">
|
|
477
|
-
<tbody>
|
|
478
|
-
<tr>
|
|
479
|
-
<td class="col-md-4">
|
|
480
|
-
<a name="submitted"></a>
|
|
481
|
-
<b>submitted</b>
|
|
482
|
-
</td>
|
|
483
|
-
</tr>
|
|
484
|
-
<tr>
|
|
485
|
-
<td class="col-md-4">
|
|
486
|
-
<i>Type : </i> <code>EventEmitter</code>
|
|
487
|
-
|
|
488
|
-
</td>
|
|
489
279
|
</tr>
|
|
490
280
|
<tr>
|
|
491
281
|
<td class="col-md-2" colspan="2">
|
|
492
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
282
|
+
<div class="io-line">Defined in <a href="" data-line="25" class="link-to-prism">src/lib/open-form-window-method.directive.ts:25</a></div>
|
|
493
283
|
</td>
|
|
494
284
|
</tr>
|
|
495
285
|
</tbody>
|
|
496
286
|
</table>
|
|
497
287
|
</section>
|
|
498
288
|
|
|
499
|
-
<section data-compodoc="block-host-listener">
|
|
500
|
-
<h3>HostListeners</h3> <table class="table table-sm table-bordered">
|
|
501
|
-
<tbody>
|
|
502
|
-
<tr>
|
|
503
|
-
<td class="col-md-4">
|
|
504
|
-
<a name="click"></a>
|
|
505
|
-
<span class="name">
|
|
506
|
-
<b>
|
|
507
|
-
click
|
|
508
|
-
</b>
|
|
509
|
-
<a href="#click"><span class="icon ion-ios-link"></span></a>
|
|
510
|
-
</span>
|
|
511
|
-
</td>
|
|
512
|
-
</tr>
|
|
513
289
|
|
|
514
290
|
|
|
515
|
-
<tr>
|
|
516
|
-
<td class="col-md-4">
|
|
517
|
-
<div class="io-line">Defined in <a href="" data-line="86"
|
|
518
|
-
class="link-to-prism">src/lib/open-form-window-method.directive.ts:86</a></div>
|
|
519
|
-
</td>
|
|
520
|
-
</tr>
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
</tbody>
|
|
524
|
-
</table>
|
|
525
|
-
<table class="table table-sm table-bordered">
|
|
526
|
-
<tbody>
|
|
527
|
-
<tr>
|
|
528
|
-
<td class="col-md-4">
|
|
529
|
-
<a name="confirmed"></a>
|
|
530
|
-
<span class="name">
|
|
531
|
-
<b>
|
|
532
|
-
confirmed
|
|
533
|
-
</b>
|
|
534
|
-
<a href="#confirmed"><span class="icon ion-ios-link"></span></a>
|
|
535
|
-
</span>
|
|
536
|
-
</td>
|
|
537
|
-
</tr>
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
<tr>
|
|
541
|
-
<td class="col-md-4">
|
|
542
|
-
<div class="io-line">Defined in <a href="" data-line="81"
|
|
543
|
-
class="link-to-prism">src/lib/open-form-window-method.directive.ts:81</a></div>
|
|
544
|
-
</td>
|
|
545
|
-
</tr>
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
</tbody>
|
|
549
|
-
</table>
|
|
550
|
-
</section>
|
|
551
291
|
<section data-compodoc="block-methods">
|
|
552
292
|
|
|
553
293
|
<h3 id="methods">
|
|
@@ -575,8 +315,8 @@
|
|
|
575
315
|
|
|
576
316
|
<tr>
|
|
577
317
|
<td class="col-md-4">
|
|
578
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
579
|
-
class="link-to-prism">src/lib/open-form-window-method.directive.ts:
|
|
318
|
+
<div class="io-line">Defined in <a href="" data-line="94"
|
|
319
|
+
class="link-to-prism">src/lib/open-form-window-method.directive.ts:94</a></div>
|
|
580
320
|
</td>
|
|
581
321
|
</tr>
|
|
582
322
|
|
|
@@ -614,8 +354,8 @@
|
|
|
614
354
|
|
|
615
355
|
<tr>
|
|
616
356
|
<td class="col-md-4">
|
|
617
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
618
|
-
class="link-to-prism">src/lib/open-form-window-method.directive.ts:
|
|
357
|
+
<div class="io-line">Defined in <a href="" data-line="67"
|
|
358
|
+
class="link-to-prism">src/lib/open-form-window-method.directive.ts:67</a></div>
|
|
619
359
|
</td>
|
|
620
360
|
</tr>
|
|
621
361
|
|
|
@@ -653,8 +393,8 @@
|
|
|
653
393
|
|
|
654
394
|
<tr>
|
|
655
395
|
<td class="col-md-4">
|
|
656
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
657
|
-
class="link-to-prism">src/lib/open-form-window-method.directive.ts:
|
|
396
|
+
<div class="io-line">Defined in <a href="" data-line="90"
|
|
397
|
+
class="link-to-prism">src/lib/open-form-window-method.directive.ts:90</a></div>
|
|
658
398
|
</td>
|
|
659
399
|
</tr>
|
|
660
400
|
|
|
@@ -706,7 +446,6 @@
|
|
|
706
446
|
<td class="col-md-4">
|
|
707
447
|
<a name="onClick"></a>
|
|
708
448
|
<span class="name">
|
|
709
|
-
<span class="modifier"></span>
|
|
710
449
|
<span class="modifier">Public</span>
|
|
711
450
|
<span ><b>onClick</b></span>
|
|
712
451
|
<a href="#onClick"><span class="icon ion-ios-link"></span></a>
|
|
@@ -720,18 +459,11 @@
|
|
|
720
459
|
</td>
|
|
721
460
|
</tr>
|
|
722
461
|
|
|
723
|
-
<tr>
|
|
724
|
-
<td class="col-md-4">
|
|
725
|
-
<b>Decorators : </b>
|
|
726
|
-
<br />
|
|
727
|
-
<code>@HostListener('click')<br /></code>
|
|
728
|
-
</td>
|
|
729
|
-
</tr>
|
|
730
462
|
|
|
731
463
|
<tr>
|
|
732
464
|
<td class="col-md-4">
|
|
733
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
734
|
-
class="link-to-prism">src/lib/open-form-window-method.directive.ts:
|
|
465
|
+
<div class="io-line">Defined in <a href="" data-line="59"
|
|
466
|
+
class="link-to-prism">src/lib/open-form-window-method.directive.ts:59</a></div>
|
|
735
467
|
</td>
|
|
736
468
|
</tr>
|
|
737
469
|
|
|
@@ -753,7 +485,6 @@
|
|
|
753
485
|
<td class="col-md-4">
|
|
754
486
|
<a name="onConfirmed"></a>
|
|
755
487
|
<span class="name">
|
|
756
|
-
<span class="modifier"></span>
|
|
757
488
|
<span class="modifier">Public</span>
|
|
758
489
|
<span ><b>onConfirmed</b></span>
|
|
759
490
|
<a href="#onConfirmed"><span class="icon ion-ios-link"></span></a>
|
|
@@ -767,18 +498,11 @@
|
|
|
767
498
|
</td>
|
|
768
499
|
</tr>
|
|
769
500
|
|
|
770
|
-
<tr>
|
|
771
|
-
<td class="col-md-4">
|
|
772
|
-
<b>Decorators : </b>
|
|
773
|
-
<br />
|
|
774
|
-
<code>@HostListener('confirmed')<br /></code>
|
|
775
|
-
</td>
|
|
776
|
-
</tr>
|
|
777
501
|
|
|
778
502
|
<tr>
|
|
779
503
|
<td class="col-md-4">
|
|
780
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
781
|
-
class="link-to-prism">src/lib/open-form-window-method.directive.ts:
|
|
504
|
+
<div class="io-line">Defined in <a href="" data-line="55"
|
|
505
|
+
class="link-to-prism">src/lib/open-form-window-method.directive.ts:55</a></div>
|
|
782
506
|
</td>
|
|
783
507
|
</tr>
|
|
784
508
|
|
|
@@ -816,8 +540,8 @@
|
|
|
816
540
|
|
|
817
541
|
<tr>
|
|
818
542
|
<td class="col-md-4">
|
|
819
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
820
|
-
class="link-to-prism">src/lib/open-form-window-method.directive.ts:
|
|
543
|
+
<div class="io-line">Defined in <a href="" data-line="86"
|
|
544
|
+
class="link-to-prism">src/lib/open-form-window-method.directive.ts:86</a></div>
|
|
821
545
|
</td>
|
|
822
546
|
</tr>
|
|
823
547
|
|
|
@@ -888,7 +612,7 @@
|
|
|
888
612
|
</tr>
|
|
889
613
|
<tr>
|
|
890
614
|
<td class="col-md-4">
|
|
891
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
615
|
+
<div class="io-line">Defined in <a href="" data-line="47" class="link-to-prism">src/lib/open-form-window-method.directive.ts:47</a></div>
|
|
892
616
|
</td>
|
|
893
617
|
</tr>
|
|
894
618
|
|
|
@@ -903,6 +627,33 @@ destroyed</p>
|
|
|
903
627
|
|
|
904
628
|
</tbody>
|
|
905
629
|
</table>
|
|
630
|
+
<table class="table table-sm table-bordered">
|
|
631
|
+
<tbody>
|
|
632
|
+
<tr>
|
|
633
|
+
<td class="col-md-4">
|
|
634
|
+
<a name="completed$"></a>
|
|
635
|
+
<span class="name">
|
|
636
|
+
<span class="modifier">Public</span>
|
|
637
|
+
<span class="modifier">Readonly</span>
|
|
638
|
+
<span ><b>completed$</b></span>
|
|
639
|
+
<a href="#completed$"><span class="icon ion-ios-link"></span></a>
|
|
640
|
+
</span>
|
|
641
|
+
</td>
|
|
642
|
+
</tr>
|
|
643
|
+
<tr>
|
|
644
|
+
<td class="col-md-4">
|
|
645
|
+
<i>Default value : </i><code>output({ alias: 'completed' })</code>
|
|
646
|
+
</td>
|
|
647
|
+
</tr>
|
|
648
|
+
<tr>
|
|
649
|
+
<td class="col-md-4">
|
|
650
|
+
<div class="io-line">Defined in <a href="" data-line="31" class="link-to-prism">src/lib/open-form-window-method.directive.ts:31</a></div>
|
|
651
|
+
</td>
|
|
652
|
+
</tr>
|
|
653
|
+
|
|
654
|
+
|
|
655
|
+
</tbody>
|
|
656
|
+
</table>
|
|
906
657
|
<table class="table table-sm table-bordered">
|
|
907
658
|
<tbody>
|
|
908
659
|
<tr>
|
|
@@ -922,7 +673,7 @@ destroyed</p>
|
|
|
922
673
|
</tr>
|
|
923
674
|
<tr>
|
|
924
675
|
<td class="col-md-4">
|
|
925
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
676
|
+
<div class="io-line">Defined in <a href="" data-line="38" class="link-to-prism">src/lib/open-form-window-method.directive.ts:38</a></div>
|
|
926
677
|
</td>
|
|
927
678
|
</tr>
|
|
928
679
|
|
|
@@ -935,90 +686,171 @@ destroyed</p>
|
|
|
935
686
|
|
|
936
687
|
</tbody>
|
|
937
688
|
</table>
|
|
938
|
-
|
|
689
|
+
<table class="table table-sm table-bordered">
|
|
690
|
+
<tbody>
|
|
691
|
+
<tr>
|
|
692
|
+
<td class="col-md-4">
|
|
693
|
+
<a name="failure$"></a>
|
|
694
|
+
<span class="name">
|
|
695
|
+
<span class="modifier">Public</span>
|
|
696
|
+
<span class="modifier">Readonly</span>
|
|
697
|
+
<span ><b>failure$</b></span>
|
|
698
|
+
<a href="#failure$"><span class="icon ion-ios-link"></span></a>
|
|
699
|
+
</span>
|
|
700
|
+
</td>
|
|
701
|
+
</tr>
|
|
702
|
+
<tr>
|
|
703
|
+
<td class="col-md-4">
|
|
704
|
+
<i>Default value : </i><code>output<Error>({ alias: 'failure' })</code>
|
|
705
|
+
</td>
|
|
706
|
+
</tr>
|
|
707
|
+
<tr>
|
|
708
|
+
<td class="col-md-4">
|
|
709
|
+
<div class="io-line">Defined in <a href="" data-line="28" class="link-to-prism">src/lib/open-form-window-method.directive.ts:28</a></div>
|
|
710
|
+
</td>
|
|
711
|
+
</tr>
|
|
939
712
|
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
<
|
|
945
|
-
<
|
|
713
|
+
|
|
714
|
+
</tbody>
|
|
715
|
+
</table>
|
|
716
|
+
<table class="table table-sm table-bordered">
|
|
717
|
+
<tbody>
|
|
718
|
+
<tr>
|
|
719
|
+
<td class="col-md-4">
|
|
720
|
+
<a name="hasConfirmDirective"></a>
|
|
721
|
+
<span class="name">
|
|
722
|
+
<span class="modifier">Public</span>
|
|
723
|
+
<span class="modifier">Readonly</span>
|
|
724
|
+
<span ><b>hasConfirmDirective</b></span>
|
|
725
|
+
<a href="#hasConfirmDirective"><span class="icon ion-ios-link"></span></a>
|
|
726
|
+
</span>
|
|
727
|
+
</td>
|
|
728
|
+
</tr>
|
|
946
729
|
<tr>
|
|
947
730
|
<td class="col-md-4">
|
|
948
|
-
<
|
|
949
|
-
<span class="name"><b>hasConfirmDirective</b><a href="#hasConfirmDirective"><span class="icon ion-ios-link"></span></a></span>
|
|
731
|
+
<i>Default value : </i><code>input(false, { alias: 'rxapConfirm', transform: coerceBoolean })</code>
|
|
950
732
|
</td>
|
|
951
733
|
</tr>
|
|
734
|
+
<tr>
|
|
735
|
+
<td class="col-md-4">
|
|
736
|
+
<div class="io-line">Defined in <a href="" data-line="49" class="link-to-prism">src/lib/open-form-window-method.directive.ts:49</a></div>
|
|
737
|
+
</td>
|
|
738
|
+
</tr>
|
|
952
739
|
|
|
953
740
|
|
|
741
|
+
</tbody>
|
|
742
|
+
</table>
|
|
743
|
+
<table class="table table-sm table-bordered">
|
|
744
|
+
<tbody>
|
|
745
|
+
<tr>
|
|
746
|
+
<td class="col-md-4">
|
|
747
|
+
<a name="initial"></a>
|
|
748
|
+
<span class="name">
|
|
749
|
+
<span class="modifier">Public</span>
|
|
750
|
+
<span class="modifier">Readonly</span>
|
|
751
|
+
<span ><b>initial</b></span>
|
|
752
|
+
<a href="#initial"><span class="icon ion-ios-link"></span></a>
|
|
753
|
+
</span>
|
|
754
|
+
</td>
|
|
755
|
+
</tr>
|
|
756
|
+
<tr>
|
|
757
|
+
<td class="col-md-4">
|
|
758
|
+
<div class="io-line">Defined in <a href="" data-line="25" class="link-to-prism">src/lib/open-form-window-method.directive.ts:25</a></div>
|
|
759
|
+
</td>
|
|
760
|
+
</tr>
|
|
761
|
+
|
|
762
|
+
|
|
763
|
+
</tbody>
|
|
764
|
+
</table>
|
|
765
|
+
<table class="table table-sm table-bordered">
|
|
766
|
+
<tbody>
|
|
767
|
+
<tr>
|
|
768
|
+
<td class="col-md-4">
|
|
769
|
+
<a name="method"></a>
|
|
770
|
+
<span class="name">
|
|
771
|
+
<span class="modifier">Public</span>
|
|
772
|
+
<span class="modifier">Readonly</span>
|
|
773
|
+
<span ><b>method</b></span>
|
|
774
|
+
<a href="#method"><span class="icon ion-ios-link"></span></a>
|
|
775
|
+
</span>
|
|
776
|
+
</td>
|
|
777
|
+
</tr>
|
|
954
778
|
<tr>
|
|
955
779
|
<td class="col-md-4">
|
|
956
|
-
<
|
|
780
|
+
<i>Default value : </i><code>input.required<Method<WindowRef<FormDefinition, FormData>, Initial>>({ alias: "rxapOpenFormWindowMethod" })</code>
|
|
957
781
|
</td>
|
|
958
782
|
</tr>
|
|
959
|
-
<tr>
|
|
960
|
-
<td class="col-md-4">
|
|
961
|
-
<div class="io-line">Defined in <a href="" data-line="72" class="link-to-prism">src/lib/open-form-window-method.directive.ts:72</a></div>
|
|
962
|
-
</td>
|
|
963
|
-
</tr>
|
|
964
783
|
<tr>
|
|
965
784
|
<td class="col-md-4">
|
|
785
|
+
<div class="io-line">Defined in <a href="" data-line="23" class="link-to-prism">src/lib/open-form-window-method.directive.ts:23</a></div>
|
|
786
|
+
</td>
|
|
787
|
+
</tr>
|
|
966
788
|
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
</table>
|
|
992
|
-
</div>
|
|
993
|
-
<div>
|
|
994
|
-
</div>
|
|
995
|
-
<div class="io-description">
|
|
996
|
-
<b>Returns : </b> <code><a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank" >void</a></code>
|
|
997
|
-
|
|
998
|
-
</div>
|
|
789
|
+
|
|
790
|
+
</tbody>
|
|
791
|
+
</table>
|
|
792
|
+
<table class="table table-sm table-bordered">
|
|
793
|
+
<tbody>
|
|
794
|
+
<tr>
|
|
795
|
+
<td class="col-md-4">
|
|
796
|
+
<a name="providers"></a>
|
|
797
|
+
<span class="name">
|
|
798
|
+
<span class="modifier">Public</span>
|
|
799
|
+
<span class="modifier">Readonly</span>
|
|
800
|
+
<span ><b>providers</b></span>
|
|
801
|
+
<a href="#providers"><span class="icon ion-ios-link"></span></a>
|
|
802
|
+
</span>
|
|
803
|
+
</td>
|
|
804
|
+
</tr>
|
|
805
|
+
<tr>
|
|
806
|
+
<td class="col-md-4">
|
|
807
|
+
<i>Default value : </i><code>input<StaticProvider[]>()</code>
|
|
808
|
+
</td>
|
|
809
|
+
</tr>
|
|
810
|
+
<tr>
|
|
811
|
+
<td class="col-md-4">
|
|
812
|
+
<div class="io-line">Defined in <a href="" data-line="39" class="link-to-prism">src/lib/open-form-window-method.directive.ts:39</a></div>
|
|
999
813
|
</td>
|
|
1000
814
|
</tr>
|
|
1001
|
-
|
|
1002
|
-
|
|
815
|
+
|
|
816
|
+
|
|
817
|
+
</tbody>
|
|
818
|
+
</table>
|
|
819
|
+
<table class="table table-sm table-bordered">
|
|
820
|
+
<tbody>
|
|
821
|
+
<tr>
|
|
822
|
+
<td class="col-md-4">
|
|
823
|
+
<a name="submitted$"></a>
|
|
824
|
+
<span class="name">
|
|
825
|
+
<span class="modifier">Public</span>
|
|
826
|
+
<span class="modifier">Readonly</span>
|
|
827
|
+
<span ><b>submitted$</b></span>
|
|
828
|
+
<a href="#submitted$"><span class="icon ion-ios-link"></span></a>
|
|
829
|
+
</span>
|
|
830
|
+
</td>
|
|
831
|
+
</tr>
|
|
832
|
+
<tr>
|
|
833
|
+
<td class="col-md-4">
|
|
834
|
+
<i>Default value : </i><code>output<FormData>({ alias: 'submitted' })</code>
|
|
835
|
+
</td>
|
|
836
|
+
</tr>
|
|
837
|
+
<tr>
|
|
838
|
+
<td class="col-md-4">
|
|
839
|
+
<div class="io-line">Defined in <a href="" data-line="34" class="link-to-prism">src/lib/open-form-window-method.directive.ts:34</a></div>
|
|
840
|
+
</td>
|
|
841
|
+
</tr>
|
|
842
|
+
|
|
843
|
+
|
|
844
|
+
</tbody>
|
|
845
|
+
</table>
|
|
1003
846
|
</section>
|
|
1004
847
|
|
|
848
|
+
|
|
1005
849
|
</div>
|
|
1006
850
|
|
|
1007
851
|
|
|
1008
852
|
<div class="tab-pane fade tab-source-code" id="source">
|
|
1009
|
-
<pre class="line-numbers compodoc-sourcecode"><code class="language-typescript">import {
|
|
1010
|
-
Directive,
|
|
1011
|
-
EventEmitter,
|
|
1012
|
-
HostListener,
|
|
1013
|
-
Inject,
|
|
1014
|
-
Injector,
|
|
1015
|
-
INJECTOR,
|
|
1016
|
-
Input,
|
|
1017
|
-
OnDestroy,
|
|
1018
|
-
Optional,
|
|
1019
|
-
Output,
|
|
1020
|
-
StaticProvider,
|
|
1021
|
-
} from '@angular/core';
|
|
853
|
+
<pre class="line-numbers compodoc-sourcecode"><code class="language-typescript">import { Directive, Injector, INJECTOR, OnDestroy, StaticProvider, input, output, inject } from '@angular/core';
|
|
1022
854
|
import { coerceBoolean } from '@rxap/utilities';
|
|
1023
855
|
import { WindowRef } from '@rxap/window-system';
|
|
1024
856
|
import { FormDefinition } from '@rxap/forms';
|
|
@@ -1027,36 +859,36 @@ import { Method } from '@rxap/pattern';
|
|
|
1027
859
|
|
|
1028
860
|
@Directive({
|
|
1029
861
|
selector: '[rxapOpenFormWindowMethod]',
|
|
862
|
+
host: {
|
|
863
|
+
'(confirmed)': 'onConfirmed()',
|
|
864
|
+
'(click)': 'onClick()',
|
|
865
|
+
},
|
|
1030
866
|
standalone: true,
|
|
1031
867
|
})
|
|
1032
868
|
export class OpenFormWindowMethodDirective<
|
|
1033
869
|
FormData extends Record<string, any> = Record<string, any>,
|
|
1034
870
|
Initial extends Partial<Record<string, any>> = Partial<Record<string, any>>>
|
|
1035
871
|
implements OnDestroy {
|
|
872
|
+
private readonly injector = inject<Injector | null>(INJECTOR, { optional: true }) ?? null;
|
|
873
|
+
|
|
1036
874
|
|
|
1037
|
-
|
|
1038
|
-
public method!: Method<WindowRef<FormDefinition, FormData>, Initial>;
|
|
875
|
+
public readonly method = input.required<Method<WindowRef<FormDefinition, FormData>, Initial>>({ alias: "rxapOpenFormWindowMethod" });
|
|
1039
876
|
|
|
1040
|
-
|
|
1041
|
-
public initial?: Initial;
|
|
877
|
+
public readonly initial = input<Initial>();
|
|
1042
878
|
|
|
1043
879
|
// eslint-disable-next-line @angular-eslint/no-output-rename
|
|
1044
|
-
|
|
1045
|
-
public failure$ = new EventEmitter<Error>();
|
|
880
|
+
public readonly failure$ = output<Error>({ alias: 'failure' });
|
|
1046
881
|
|
|
1047
882
|
// eslint-disable-next-line @angular-eslint/no-output-rename
|
|
1048
|
-
|
|
1049
|
-
public completed$ = new EventEmitter();
|
|
883
|
+
public readonly completed$ = output({ alias: 'completed' });
|
|
1050
884
|
|
|
1051
885
|
// eslint-disable-next-line @angular-eslint/no-output-rename
|
|
1052
|
-
|
|
1053
|
-
public submitted$ = new EventEmitter<FormData>();
|
|
886
|
+
public readonly submitted$ = output<FormData>({ alias: 'submitted' });
|
|
1054
887
|
/**
|
|
1055
888
|
* true - a remote method call is in progress
|
|
1056
889
|
*/
|
|
1057
890
|
public executing$ = new CounterSubject(0);
|
|
1058
|
-
|
|
1059
|
-
public providers?: StaticProvider[];
|
|
891
|
+
public readonly providers = input<StaticProvider[]>();
|
|
1060
892
|
/**
|
|
1061
893
|
* Set of all active window ref instances.
|
|
1062
894
|
*
|
|
@@ -1066,33 +898,18 @@ export class OpenFormWindowMethodDirective<
|
|
|
1066
898
|
*/
|
|
1067
899
|
protected _windowRefInstance = new Set<WindowRef<FormDefinition, FormData>>();
|
|
1068
900
|
|
|
1069
|
-
|
|
1070
|
-
@Optional()
|
|
1071
|
-
@Inject(INJECTOR)
|
|
1072
|
-
private readonly injector: Injector | null = null,
|
|
1073
|
-
) {
|
|
1074
|
-
}
|
|
1075
|
-
|
|
1076
|
-
private _hasConfirmDirective = false;
|
|
1077
|
-
|
|
1078
|
-
// eslint-disable-next-line @angular-eslint/no-input-rename
|
|
1079
|
-
@Input('rxapConfirm')
|
|
1080
|
-
public set hasConfirmDirective(value: any) {
|
|
1081
|
-
this._hasConfirmDirective = coerceBoolean(value);
|
|
1082
|
-
}
|
|
901
|
+
public readonly hasConfirmDirective = input(false, { alias: 'rxapConfirm', transform: coerceBoolean });
|
|
1083
902
|
|
|
1084
903
|
public ngOnDestroy() {
|
|
1085
904
|
this._windowRefInstance.forEach(windowRef => windowRef.complete());
|
|
1086
905
|
}
|
|
1087
906
|
|
|
1088
|
-
@HostListener('confirmed')
|
|
1089
907
|
public onConfirmed() {
|
|
1090
908
|
this.execute();
|
|
1091
909
|
}
|
|
1092
910
|
|
|
1093
|
-
@HostListener('click')
|
|
1094
911
|
public onClick() {
|
|
1095
|
-
if (!this.
|
|
912
|
+
if (!this.hasConfirmDirective()) {
|
|
1096
913
|
this.execute();
|
|
1097
914
|
} else {
|
|
1098
915
|
console.debug('skip remote method call. Wait for confirmation.');
|
|
@@ -1102,8 +919,8 @@ export class OpenFormWindowMethodDirective<
|
|
|
1102
919
|
public execute(): void {
|
|
1103
920
|
this.executing$.increase();
|
|
1104
921
|
|
|
1105
|
-
const windowRef = this.method.call(this.initial, {
|
|
1106
|
-
providers: this.providers,
|
|
922
|
+
const windowRef = this.method().call(this.initial(), {
|
|
923
|
+
providers: this.providers(),
|
|
1107
924
|
injector: this.injector,
|
|
1108
925
|
}) as WindowRef<FormDefinition, FormData>;
|
|
1109
926
|
|