@rxap/components 19.2.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.
Files changed (71) hide show
  1. package/CHANGELOG.md +40 -0
  2. package/compodoc/changelog.html +38 -0
  3. package/compodoc/components/ConfirmComponent.html +106 -20
  4. package/compodoc/components/CopyToClipboardComponent.html +11 -14
  5. package/compodoc/components/JsonViewerComponent.html +126 -208
  6. package/compodoc/dependencies.html +9 -9
  7. package/compodoc/directives/ConfirmDirective.html +271 -309
  8. package/compodoc/graph/dependencies.svg +4 -58
  9. package/compodoc/interfaces/Segment.html +42 -52
  10. package/compodoc/js/menu-wc.js +0 -43
  11. package/compodoc/js/menu-wc_es5.js +1 -1
  12. package/compodoc/js/search/search_index.js +2 -2
  13. package/compodoc/modules.html +0 -17
  14. package/compodoc/overview.html +1 -101
  15. package/compodoc/properties.html +1 -1
  16. package/docs/documentation.json +642 -903
  17. package/docs/html/assets/navigation.js +1 -1
  18. package/docs/html/assets/search.js +1 -1
  19. package/docs/html/classes/ConfirmComponent.html +2 -2
  20. package/docs/html/classes/ConfirmDirective.html +7 -5
  21. package/docs/html/classes/CopyToClipboardButtonComponent.html +2 -2
  22. package/docs/html/classes/CopyToClipboardComponent.html +2 -2
  23. package/docs/html/classes/EmptyRouterOutletComponent.html +2 -2
  24. package/docs/html/classes/JsonViewerComponent.html +3 -16
  25. package/docs/html/classes/NavigateBackButtonComponent.html +2 -2
  26. package/docs/html/index.html +2 -2
  27. package/docs/html/interfaces/Segment.html +2 -2
  28. package/docs/html/modules.html +1 -1
  29. package/docs/html/variables/JSON_VIEW_IGNORED_PROPERTIES.html +1 -1
  30. package/docs/html/variables/JSON_VIEW_IGNORED_TYPES.html +1 -1
  31. package/docs/markdown/README.md +1 -1
  32. package/docs/markdown/classes/ConfirmComponent.md +6 -6
  33. package/docs/markdown/classes/ConfirmDirective.md +41 -43
  34. package/docs/markdown/classes/CopyToClipboardButtonComponent.md +4 -4
  35. package/docs/markdown/classes/CopyToClipboardComponent.md +9 -9
  36. package/docs/markdown/classes/EmptyRouterOutletComponent.md +2 -2
  37. package/docs/markdown/classes/JsonViewerComponent.md +20 -98
  38. package/docs/markdown/classes/NavigateBackButtonComponent.md +3 -3
  39. package/docs/markdown/globals.md +2 -3
  40. package/docs/markdown/interfaces/Segment.md +7 -7
  41. package/docs/markdown/variables/JSON_VIEW_IGNORED_PROPERTIES.md +2 -2
  42. package/docs/markdown/variables/JSON_VIEW_IGNORED_TYPES.md +2 -2
  43. package/docs/wiki/Class.ConfirmComponent.md +5 -5
  44. package/docs/wiki/Class.ConfirmDirective.md +40 -42
  45. package/docs/wiki/Class.CopyToClipboardButtonComponent.md +3 -3
  46. package/docs/wiki/Class.CopyToClipboardComponent.md +8 -8
  47. package/docs/wiki/Class.EmptyRouterOutletComponent.md +1 -1
  48. package/docs/wiki/Class.JsonViewerComponent.md +19 -97
  49. package/docs/wiki/Class.NavigateBackButtonComponent.md +2 -2
  50. package/docs/wiki/Interface.Segment.md +6 -6
  51. package/docs/wiki/Variable.JSON_VIEW_IGNORED_PROPERTIES.md +1 -1
  52. package/docs/wiki/Variable.JSON_VIEW_IGNORED_TYPES.md +1 -1
  53. package/docs/wiki/_Sidebar.md +0 -1
  54. package/docs/wiki/globals.md +1 -2
  55. package/fesm2022/rxap-components.mjs +100 -146
  56. package/fesm2022/rxap-components.mjs.map +1 -1
  57. package/package.json +23 -22
  58. package/types/rxap-components.d.ts +99 -0
  59. package/docs/html/classes/ConfirmModule.html +0 -2
  60. package/docs/markdown/classes/ConfirmModule.md +0 -19
  61. package/docs/wiki/Class.ConfirmModule.md +0 -15
  62. package/index.d.ts +0 -9
  63. package/lib/confirm/confirm.component.d.ts +0 -8
  64. package/lib/confirm/confirm.directive.d.ts +0 -23
  65. package/lib/confirm/confirm.module.d.ts +0 -8
  66. package/lib/copy-to-clipboard/copy-to-clipboard.component.d.ts +0 -12
  67. package/lib/copy-to-clipboard-button/copy-to-clipboard-button.component.d.ts +0 -8
  68. package/lib/empty-router-outlet/empty-router-outlet.component.d.ts +0 -5
  69. package/lib/json-viewer/json-viewer.component.d.ts +0 -31
  70. package/lib/json-viewer/json-viewer.tokens.d.ts +0 -6
  71. package/lib/navigate-back-button/navigate-back-button.component.d.ts +0 -6
@@ -161,15 +161,45 @@
161
161
  <tr>
162
162
  <td class="col-md-4">
163
163
  <ul class="index-list">
164
+ <li>
165
+ <span class="modifier">Public</span>
166
+ <span class="modifier">Readonly</span>
167
+ <a href="#confirmed" >confirmed</a>
168
+ </li>
169
+ <li>
170
+ <span class="modifier">Protected</span>
171
+ <span class="modifier">Readonly</span>
172
+ <a href="#elementRef" >elementRef</a>
173
+ </li>
174
+ <li>
175
+ <span class="modifier">Public</span>
176
+ <span class="modifier">Readonly</span>
177
+ <a href="#eventValue" >eventValue</a>
178
+ </li>
179
+ <li>
180
+ <span class="modifier">Public</span>
181
+ <span class="modifier">Readonly</span>
182
+ <a href="#eventValueInput" >eventValueInput</a>
183
+ </li>
164
184
  <li>
165
185
  <span class="modifier">Protected</span>
166
186
  <a href="#isOverlyOpen" >isOverlyOpen</a>
167
187
  </li>
188
+ <li>
189
+ <span class="modifier">Protected</span>
190
+ <span class="modifier">Readonly</span>
191
+ <a href="#overlay" >overlay</a>
192
+ </li>
168
193
  <li>
169
194
  <span class="modifier">Protected</span>
170
195
  <span class="modifier">Optional</span>
171
196
  <a href="#positionStrategy" >positionStrategy</a>
172
197
  </li>
198
+ <li>
199
+ <span class="modifier">Public</span>
200
+ <span class="modifier">Readonly</span>
201
+ <a href="#unconfirmed" >unconfirmed</a>
202
+ </li>
173
203
  </ul>
174
204
  </td>
175
205
  </tr>
@@ -183,7 +213,10 @@
183
213
  <td class="col-md-4">
184
214
  <ul class="index-list">
185
215
  <li>
186
- <span class="modifier"></span>
216
+ <span class="modifier">Protected</span>
217
+ <a href="#createPositionStrategy" >createPositionStrategy</a>
218
+ </li>
219
+ <li>
187
220
  <span class="modifier">Public</span>
188
221
  <a href="#onClick" >onClick</a>
189
222
  </li>
@@ -203,69 +236,10 @@
203
236
  </td>
204
237
  </tr>
205
238
 
206
- <tr>
207
- <td class="col-md-4">
208
- <h6><b>Inputs</b></h6>
209
- </td>
210
- </tr>
211
- <tr>
212
- <td class="col-md-4">
213
- <ul class="index-list">
214
- <li>
215
- <a href="#rxapConfirm" >rxapConfirm</a>
216
- </li>
217
- </ul>
218
- </td>
219
- </tr>
220
239
 
221
- <tr>
222
- <td class="col-md-4">
223
- <h6><b>Outputs</b></h6>
224
- </td>
225
- </tr>
226
- <tr>
227
- <td class="col-md-4">
228
- <ul class="index-list">
229
- <li>
230
- <a href="#confirmed" >confirmed</a>
231
- </li>
232
- <li>
233
- <a href="#unconfirmed" >unconfirmed</a>
234
- </li>
235
- </ul>
236
- </td>
237
- </tr>
238
240
 
239
241
 
240
- <tr>
241
- <td class="col-md-4">
242
- <h6><b>HostListeners</b></h6>
243
- </td>
244
- </tr>
245
- <tr>
246
- <td class="col-md-4">
247
- <ul class="index-list">
248
- <li>
249
- <a href="#click" >click</a>
250
- </li>
251
- </ul>
252
- </td>
253
- </tr>
254
242
 
255
- <tr>
256
- <td class="col-md-4">
257
- <h6><b>Accessors</b></h6>
258
- </td>
259
- </tr>
260
- <tr>
261
- <td class="col-md-4">
262
- <ul class="index-list">
263
- <li>
264
- <a href="#eventValue" >eventValue</a>
265
- </li>
266
- </ul>
267
- </td>
268
- </tr>
269
243
  </tbody>
270
244
  </table>
271
245
  </section>
@@ -276,175 +250,73 @@
276
250
  <tbody>
277
251
  <tr>
278
252
  <td class="col-md-4">
279
- <code>constructor(overlay: Overlay, elementRef: ElementRef)</code>
253
+ <code>constructor()</code>
280
254
  </td>
281
255
  </tr>
282
256
  <tr>
283
257
  <td class="col-md-4">
284
- <div class="io-line">Defined in <a href="" data-line="52" class="link-to-prism">src/lib/confirm/confirm.directive.ts:52</a></div>
258
+ <div class="io-line">Defined in <a href="" data-line="46" class="link-to-prism">src/lib/confirm/confirm.directive.ts:46</a></div>
285
259
  </td>
286
260
  </tr>
287
261
 
288
- <tr>
289
- <td class="col-md-4">
290
- <div>
291
- <b>Parameters :</b>
292
- <table class="params">
293
- <thead>
294
- <tr>
295
- <td>Name</td>
296
- <td>Type</td>
297
- <td>Optional</td>
298
- </tr>
299
- </thead>
300
- <tbody>
301
- <tr>
302
- <td>overlay</td>
303
-
304
- <td>
305
- <code>Overlay</code>
306
- </td>
307
-
308
- <td>
309
- No
310
- </td>
311
-
312
- </tr>
313
- <tr>
314
- <td>elementRef</td>
315
-
316
- <td>
317
- <code>ElementRef</code>
318
- </td>
319
-
320
- <td>
321
- No
322
- </td>
323
-
324
- </tr>
325
- </tbody>
326
- </table>
327
- </div>
328
- </td>
329
- </tr>
330
262
  </tbody>
331
263
  </table>
332
264
  </section>
333
265
 
334
- <section data-compodoc="block-inputs">
335
- <h3 id="inputs">Inputs</h3>
336
- <table class="table table-sm table-bordered">
337
- <tbody>
338
- <tr>
339
- <td class="col-md-4">
340
- <a name="rxapConfirm"></a>
341
- <b>rxapConfirm</b>
342
- </td>
343
- </tr>
344
- <tr>
345
- <td class="col-md-4">
346
- <i>Type : </i> <code>T | string</code>
347
266
 
348
- </td>
349
- </tr>
350
- <tr>
351
- <td class="col-md-2" colspan="2">
352
- <div class="io-line">Defined in <a href="" data-line="32" class="link-to-prism">src/lib/confirm/confirm.directive.ts:32</a></div>
353
- </td>
354
- </tr>
355
- </tbody>
356
- </table>
357
- </section>
358
- <section data-compodoc="block-outputs">
359
- <h3 id="outputs">Outputs</h3>
360
- <table class="table table-sm table-bordered">
361
- <tbody>
362
- <tr>
363
- <td class="col-md-4">
364
- <a name="confirmed"></a>
365
- <b>confirmed</b>
366
- </td>
367
- </tr>
368
- <tr>
369
- <td class="col-md-4">
370
- <i>Type : </i> <code>EventEmitter</code>
371
267
 
372
- </td>
373
- </tr>
374
- <tr>
375
- <td class="col-md-2" colspan="2">
376
- <div class="io-line">Defined in <a href="" data-line="39" class="link-to-prism">src/lib/confirm/confirm.directive.ts:39</a></div>
377
- </td>
378
- </tr>
379
- </tbody>
380
- </table>
381
- <table class="table table-sm table-bordered">
382
- <tbody>
383
- <tr>
384
- <td class="col-md-4">
385
- <a name="unconfirmed"></a>
386
- <b>unconfirmed</b>
387
- </td>
388
- </tr>
389
- <tr>
390
- <td class="col-md-4">
391
- <i>Type : </i> <code>EventEmitter</code>
392
268
 
393
- </td>
394
- </tr>
395
- <tr>
396
- <td class="col-md-2" colspan="2">
397
- <div class="io-line">Defined in <a href="" data-line="42" class="link-to-prism">src/lib/confirm/confirm.directive.ts:42</a></div>
398
- </td>
399
- </tr>
400
- </tbody>
401
- </table>
402
- </section>
403
269
 
404
- <section data-compodoc="block-host-listener">
405
- <h3>HostListeners</h3> <table class="table table-sm table-bordered">
270
+ <section data-compodoc="block-methods">
271
+
272
+ <h3 id="methods">
273
+ Methods
274
+ </h3>
275
+ <table class="table table-sm table-bordered">
406
276
  <tbody>
407
277
  <tr>
408
278
  <td class="col-md-4">
409
- <a name="click"></a>
279
+ <a name="createPositionStrategy"></a>
410
280
  <span class="name">
411
- <b>
412
- click
413
- </b>
414
- <a href="#click"><span class="icon ion-ios-link"></span></a>
281
+ <span class="modifier">Protected</span>
282
+ <span ><b>createPositionStrategy</b></span>
283
+ <a href="#createPositionStrategy"><span class="icon ion-ios-link"></span></a>
415
284
  </span>
416
285
  </td>
417
286
  </tr>
418
287
  <tr>
419
288
  <td class="col-md-4">
420
- <i>Arguments : </i><code>'$event' </code>
289
+ <span class="modifier-icon icon ion-ios-reset"></span>
290
+ <code>createPositionStrategy()</code>
421
291
  </td>
422
292
  </tr>
423
293
 
424
294
 
295
+ <tr>
296
+ <td class="col-md-4">
297
+ <div class="io-line">Defined in <a href="" data-line="52"
298
+ class="link-to-prism">src/lib/confirm/confirm.directive.ts:52</a></div>
299
+ </td>
300
+ </tr>
301
+
302
+
425
303
  <tr>
426
304
  <td class="col-md-4">
427
- <div class="io-line">Defined in <a href="" data-line="75"
428
- class="link-to-prism">src/lib/confirm/confirm.directive.ts:75</a></div>
429
- </td>
430
- </tr>
431
305
 
306
+ <div class="io-description">
307
+ <b>Returns : </b> <code>PositionStrategy</code>
432
308
 
309
+ </div>
310
+ </td>
311
+ </tr>
433
312
  </tbody>
434
313
  </table>
435
- </section>
436
- <section data-compodoc="block-methods">
437
-
438
- <h3 id="methods">
439
- Methods
440
- </h3>
441
314
  <table class="table table-sm table-bordered">
442
315
  <tbody>
443
316
  <tr>
444
317
  <td class="col-md-4">
445
318
  <a name="onClick"></a>
446
319
  <span class="name">
447
- <span class="modifier"></span>
448
320
  <span class="modifier">Public</span>
449
321
  <span ><b>onClick</b></span>
450
322
  <a href="#onClick"><span class="icon ion-ios-link"></span></a>
@@ -458,18 +330,11 @@
458
330
  </td>
459
331
  </tr>
460
332
 
461
- <tr>
462
- <td class="col-md-4">
463
- <b>Decorators : </b>
464
- <br />
465
- <code>@HostListener(&#x27;click&#x27;, [&#x27;$event&#x27;])<br /></code>
466
- </td>
467
- </tr>
468
333
 
469
334
  <tr>
470
335
  <td class="col-md-4">
471
- <div class="io-line">Defined in <a href="" data-line="75"
472
- class="link-to-prism">src/lib/confirm/confirm.directive.ts:75</a></div>
336
+ <div class="io-line">Defined in <a href="" data-line="67"
337
+ class="link-to-prism">src/lib/confirm/confirm.directive.ts:67</a></div>
473
338
  </td>
474
339
  </tr>
475
340
 
@@ -537,8 +402,8 @@
537
402
 
538
403
  <tr>
539
404
  <td class="col-md-4">
540
- <div class="io-line">Defined in <a href="" data-line="138"
541
- class="link-to-prism">src/lib/confirm/confirm.directive.ts:138</a></div>
405
+ <div class="io-line">Defined in <a href="" data-line="134"
406
+ class="link-to-prism">src/lib/confirm/confirm.directive.ts:134</a></div>
542
407
  </td>
543
408
  </tr>
544
409
 
@@ -606,8 +471,8 @@
606
471
 
607
472
  <tr>
608
473
  <td class="col-md-4">
609
- <div class="io-line">Defined in <a href="" data-line="142"
610
- class="link-to-prism">src/lib/confirm/confirm.directive.ts:142</a></div>
474
+ <div class="io-line">Defined in <a href="" data-line="138"
475
+ class="link-to-prism">src/lib/confirm/confirm.directive.ts:138</a></div>
611
476
  </td>
612
477
  </tr>
613
478
 
@@ -675,8 +540,8 @@
675
540
 
676
541
  <tr>
677
542
  <td class="col-md-4">
678
- <div class="io-line">Defined in <a href="" data-line="84"
679
- class="link-to-prism">src/lib/confirm/confirm.directive.ts:84</a></div>
543
+ <div class="io-line">Defined in <a href="" data-line="76"
544
+ class="link-to-prism">src/lib/confirm/confirm.directive.ts:76</a></div>
680
545
  </td>
681
546
  </tr>
682
547
 
@@ -698,6 +563,117 @@
698
563
  <h3 id="inputs">
699
564
  Properties
700
565
  </h3>
566
+ <table class="table table-sm table-bordered">
567
+ <tbody>
568
+ <tr>
569
+ <td class="col-md-4">
570
+ <a name="confirmed"></a>
571
+ <span class="name">
572
+ <span class="modifier">Public</span>
573
+ <span class="modifier">Readonly</span>
574
+ <span ><b>confirmed</b></span>
575
+ <a href="#confirmed"><span class="icon ion-ios-link"></span></a>
576
+ </span>
577
+ </td>
578
+ </tr>
579
+ <tr>
580
+ <td class="col-md-4">
581
+ <i>Default value : </i><code>output&lt;T | undefined&gt;()</code>
582
+ </td>
583
+ </tr>
584
+ <tr>
585
+ <td class="col-md-4">
586
+ <div class="io-line">Defined in <a href="" data-line="36" class="link-to-prism">src/lib/confirm/confirm.directive.ts:36</a></div>
587
+ </td>
588
+ </tr>
589
+
590
+
591
+ </tbody>
592
+ </table>
593
+ <table class="table table-sm table-bordered">
594
+ <tbody>
595
+ <tr>
596
+ <td class="col-md-4">
597
+ <a name="elementRef"></a>
598
+ <span class="name">
599
+ <span class="modifier">Protected</span>
600
+ <span class="modifier">Readonly</span>
601
+ <span ><b>elementRef</b></span>
602
+ <a href="#elementRef"><span class="icon ion-ios-link"></span></a>
603
+ </span>
604
+ </td>
605
+ </tr>
606
+ <tr>
607
+ <td class="col-md-4">
608
+ <i>Default value : </i><code>inject&lt;ElementRef&gt;(ElementRef)</code>
609
+ </td>
610
+ </tr>
611
+ <tr>
612
+ <td class="col-md-4">
613
+ <div class="io-line">Defined in <a href="" data-line="25" class="link-to-prism">src/lib/confirm/confirm.directive.ts:25</a></div>
614
+ </td>
615
+ </tr>
616
+
617
+
618
+ </tbody>
619
+ </table>
620
+ <table class="table table-sm table-bordered">
621
+ <tbody>
622
+ <tr>
623
+ <td class="col-md-4">
624
+ <a name="eventValue"></a>
625
+ <span class="name">
626
+ <span class="modifier">Public</span>
627
+ <span class="modifier">Readonly</span>
628
+ <span ><b>eventValue</b></span>
629
+ <a href="#eventValue"><span class="icon ion-ios-link"></span></a>
630
+ </span>
631
+ </td>
632
+ </tr>
633
+ <tr>
634
+ <td class="col-md-4">
635
+ <i>Default value : </i><code>computed&lt;T | undefined&gt;(() &#x3D;&gt; {
636
+ const value &#x3D; this.eventValueInput();
637
+ return value !&#x3D;&#x3D; &#x27;&#x27; ? value : undefined;
638
+ })</code>
639
+ </td>
640
+ </tr>
641
+ <tr>
642
+ <td class="col-md-4">
643
+ <div class="io-line">Defined in <a href="" data-line="31" class="link-to-prism">src/lib/confirm/confirm.directive.ts:31</a></div>
644
+ </td>
645
+ </tr>
646
+
647
+
648
+ </tbody>
649
+ </table>
650
+ <table class="table table-sm table-bordered">
651
+ <tbody>
652
+ <tr>
653
+ <td class="col-md-4">
654
+ <a name="eventValueInput"></a>
655
+ <span class="name">
656
+ <span class="modifier">Public</span>
657
+ <span class="modifier">Readonly</span>
658
+ <span ><b>eventValueInput</b></span>
659
+ <a href="#eventValueInput"><span class="icon ion-ios-link"></span></a>
660
+ </span>
661
+ </td>
662
+ </tr>
663
+ <tr>
664
+ <td class="col-md-4">
665
+ <i>Default value : </i><code>input&lt;T | &#x27;&#x27;&gt;(&#x27;&#x27;, { alias: &#x27;rxapConfirm&#x27; })</code>
666
+ </td>
667
+ </tr>
668
+ <tr>
669
+ <td class="col-md-4">
670
+ <div class="io-line">Defined in <a href="" data-line="29" class="link-to-prism">src/lib/confirm/confirm.directive.ts:29</a></div>
671
+ </td>
672
+ </tr>
673
+
674
+
675
+ </tbody>
676
+ </table>
701
677
  <table class="table table-sm table-bordered">
702
678
  <tbody>
703
679
  <tr>
@@ -717,7 +693,7 @@
717
693
  </tr>
718
694
  <tr>
719
695
  <td class="col-md-4">
720
- <div class="io-line">Defined in <a href="" data-line="52" class="link-to-prism">src/lib/confirm/confirm.directive.ts:52</a></div>
696
+ <div class="io-line">Defined in <a href="" data-line="46" class="link-to-prism">src/lib/confirm/confirm.directive.ts:46</a></div>
721
697
  </td>
722
698
  </tr>
723
699
 
@@ -728,97 +704,87 @@
728
704
  <tbody>
729
705
  <tr>
730
706
  <td class="col-md-4">
731
- <a name="positionStrategy"></a>
707
+ <a name="overlay"></a>
732
708
  <span class="name">
733
709
  <span class="modifier">Protected</span>
734
- <span class="modifier">Optional</span>
735
- <span ><b>positionStrategy</b></span>
736
- <a href="#positionStrategy"><span class="icon ion-ios-link"></span></a>
710
+ <span class="modifier">Readonly</span>
711
+ <span ><b>overlay</b></span>
712
+ <a href="#overlay"><span class="icon ion-ios-link"></span></a>
737
713
  </span>
738
714
  </td>
739
715
  </tr>
740
716
  <tr>
741
717
  <td class="col-md-4">
742
- <i>Type : </i> <code>PositionStrategy</code>
743
-
718
+ <i>Default value : </i><code>inject&lt;Overlay&gt;(Overlay)</code>
744
719
  </td>
745
720
  </tr>
746
721
  <tr>
747
722
  <td class="col-md-4">
748
- <div class="io-line">Defined in <a href="" data-line="50" class="link-to-prism">src/lib/confirm/confirm.directive.ts:50</a></div>
723
+ <div class="io-line">Defined in <a href="" data-line="24" class="link-to-prism">src/lib/confirm/confirm.directive.ts:24</a></div>
749
724
  </td>
750
725
  </tr>
751
726
 
752
727
 
753
728
  </tbody>
754
729
  </table>
755
- </section>
756
-
757
- <section data-compodoc="block-accessors">
758
- <h3 id="accessors">
759
- Accessors
760
- </h3>
761
- <table class="table table-sm table-bordered">
762
- <tbody>
730
+ <table class="table table-sm table-bordered">
731
+ <tbody>
732
+ <tr>
733
+ <td class="col-md-4">
734
+ <a name="positionStrategy"></a>
735
+ <span class="name">
736
+ <span class="modifier">Protected</span>
737
+ <span class="modifier">Optional</span>
738
+ <span ><b>positionStrategy</b></span>
739
+ <a href="#positionStrategy"><span class="icon ion-ios-link"></span></a>
740
+ </span>
741
+ </td>
742
+ </tr>
763
743
  <tr>
764
744
  <td class="col-md-4">
765
- <a name="eventValue"></a>
766
- <span class="name"><b>eventValue</b><a href="#eventValue"><span class="icon ion-ios-link"></span></a></span>
745
+ <i>Type : </i> <code>PositionStrategy</code>
746
+
767
747
  </td>
768
748
  </tr>
749
+ <tr>
750
+ <td class="col-md-4">
751
+ <div class="io-line">Defined in <a href="" data-line="44" class="link-to-prism">src/lib/confirm/confirm.directive.ts:44</a></div>
752
+ </td>
753
+ </tr>
769
754
 
770
755
 
756
+ </tbody>
757
+ </table>
758
+ <table class="table table-sm table-bordered">
759
+ <tbody>
760
+ <tr>
761
+ <td class="col-md-4">
762
+ <a name="unconfirmed"></a>
763
+ <span class="name">
764
+ <span class="modifier">Public</span>
765
+ <span class="modifier">Readonly</span>
766
+ <span ><b>unconfirmed</b></span>
767
+ <a href="#unconfirmed"><span class="icon ion-ios-link"></span></a>
768
+ </span>
769
+ </td>
770
+ </tr>
771
771
  <tr>
772
772
  <td class="col-md-4">
773
- <span class="accessor"><b>set</b><code>eventValue(value: T | string)</code></span>
773
+ <i>Default value : </i><code>output&lt;T | undefined&gt;()</code>
774
774
  </td>
775
775
  </tr>
776
- <tr>
777
- <td class="col-md-4">
778
- <div class="io-line">Defined in <a href="" data-line="32" class="link-to-prism">src/lib/confirm/confirm.directive.ts:32</a></div>
779
- </td>
780
- </tr>
781
776
  <tr>
782
777
  <td class="col-md-4">
783
-
784
- <div class="io-description">
785
- <b>Parameters :</b>
786
- <table class="params">
787
- <thead>
788
- <tr>
789
- <td>Name</td>
790
- <td>Type</td>
791
- <td>Optional</td>
792
- </tr>
793
- </thead>
794
- <tbody>
795
- <tr>
796
- <td>value</td>
797
-
798
- <td>
799
- <code>T | string</code>
800
- </td>
801
-
802
- <td>
803
- No
804
- </td>
805
-
806
- </tr>
807
- </tbody>
808
- </table>
809
- </div>
810
- <div>
811
- </div>
812
- <div class="io-description">
813
- <b>Returns : </b> <code><a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank" >void</a></code>
814
-
815
- </div>
778
+ <div class="io-line">Defined in <a href="" data-line="38" class="link-to-prism">src/lib/confirm/confirm.directive.ts:38</a></div>
816
779
  </td>
817
780
  </tr>
818
- </tbody>
819
- </table>
781
+
782
+
783
+ </tbody>
784
+ </table>
820
785
  </section>
821
786
 
787
+
822
788
  </div>
823
789
 
824
790
 
@@ -829,16 +795,8 @@
829
795
  PositionStrategy,
830
796
  } from &#x27;@angular/cdk/overlay&#x27;;
831
797
  import { ComponentPortal } from &#x27;@angular/cdk/portal&#x27;;
832
- import {
833
- Directive,
834
- ElementRef,
835
- EventEmitter,
836
- HostListener,
837
- Inject,
838
- Input,
839
- OnDestroy,
840
- Output,
841
- } from &#x27;@angular/core&#x27;;
798
+ import { computed, Directive, ElementRef, OnDestroy, output, input, inject } from &#x27;@angular/core&#x27;;
799
+ import { outputToObservable } from &#x27;@angular/core/rxjs-interop&#x27;;
842
800
  import { Subscription } from &#x27;rxjs&#x27;;
843
801
  import {
844
802
  take,
@@ -849,54 +807,54 @@ import { ConfirmComponent } from &#x27;./confirm.component&#x27;;
849
807
  @Directive({
850
808
  selector: &#x27;[rxapConfirm]&#x27;,
851
809
  standalone: true,
810
+ host: {
811
+ &#x27;(click)&#x27;: &#x27;onClick($event)&#x27;,
812
+ },
852
813
  })
853
814
  export class ConfirmDirective&lt;T &#x3D; any&gt; implements OnDestroy {
854
- // use a set input to allow auto import detection if the eventValue
815
+ protected readonly overlay &#x3D; inject&lt;Overlay&gt;(Overlay);
816
+ protected readonly elementRef &#x3D; inject&lt;ElementRef&gt;(ElementRef);
817
+
818
+ // an input is used to allow auto import detection if the eventValue
855
819
  // is not set
856
- @Input(&#x27;rxapConfirm&#x27;)
857
- public set eventValue(value: T | &#x27;&#x27;) {
858
- if (value !&#x3D;&#x3D; &#x27;&#x27;) {
859
- this._eventValue &#x3D; value;
860
- }
861
- }
820
+ public readonly eventValueInput &#x3D; input&lt;T | &#x27;&#x27;&gt;(&#x27;&#x27;, { alias: &#x27;rxapConfirm&#x27; });
821
+
822
+ public readonly eventValue &#x3D; computed&lt;T | undefined&gt;(() &#x3D;&gt; {
823
+ const value &#x3D; this.eventValueInput();
824
+ return value !&#x3D;&#x3D; &#x27;&#x27; ? value : undefined;
825
+ });
862
826
 
863
- @Output()
864
- public confirmed &#x3D; new EventEmitter&lt;T | undefined&gt;();
827
+ public readonly confirmed &#x3D; output&lt;T | undefined&gt;();
865
828
 
866
- @Output()
867
- public unconfirmed &#x3D; new EventEmitter&lt;T | undefined&gt;();
829
+ public readonly unconfirmed &#x3D; output&lt;T | undefined&gt;();
868
830
 
869
831
  private subscription: Subscription | null &#x3D; null;
870
832
 
871
833
  private overlayRef?: OverlayRef;
872
834
 
873
- private _eventValue?: T;
874
-
875
835
  protected positionStrategy?: PositionStrategy;
876
836
 
877
837
  protected isOverlyOpen &#x3D; false;
878
838
 
879
- constructor(
880
- @Inject(Overlay)
881
- protected readonly overlay: Overlay,
882
- @Inject(ElementRef)
883
- protected readonly elementRef: ElementRef,
884
- ) {
885
- this.positionStrategy &#x3D; this.overlay
886
- .position()
887
- .flexibleConnectedTo(this.elementRef.nativeElement)
888
- .withPositions([
889
- {
890
- originX: &#x27;start&#x27;,
891
- originY: &#x27;bottom&#x27;,
892
- overlayX: &#x27;start&#x27;,
893
- overlayY: &#x27;top&#x27;,
894
- },
895
- ])
896
- .withDefaultOffsetY(10);
839
+ constructor() {
840
+ this.positionStrategy &#x3D; this.createPositionStrategy();
841
+ }
842
+
843
+ protected createPositionStrategy(): PositionStrategy {
844
+ return this.overlay
845
+ .position()
846
+ .flexibleConnectedTo(this.elementRef.nativeElement)
847
+ .withPositions([
848
+ {
849
+ originX: &#x27;start&#x27;,
850
+ originY: &#x27;bottom&#x27;,
851
+ overlayX: &#x27;start&#x27;,
852
+ overlayY: &#x27;top&#x27;,
853
+ },
854
+ ])
855
+ .withDefaultOffsetY(10);
897
856
  }
898
857
 
899
- @HostListener(&#x27;click&#x27;, [ &#x27;$event&#x27; ])
900
858
  public onClick($event?: Event) {
901
859
  this.openConfirmOverly();
902
860
  }
@@ -911,6 +869,10 @@ export class ConfirmDirective&lt;T &#x3D; any&gt; implements OnDestroy {
911
869
  return;
912
870
  }
913
871
  this.isOverlyOpen &#x3D; true;
872
+ if (this.overlayRef) {
873
+ // a position strategy can only be attached to a single overlay; the previous one is disposed
874
+ this.positionStrategy &#x3D; this.createPositionStrategy();
875
+ }
914
876
  this.overlayRef &#x3D; this.overlay.create({
915
877
  scrollStrategy: this.overlay.scrollStrategies.close(),
916
878
  positionStrategy: this.positionStrategy,
@@ -922,10 +884,10 @@ export class ConfirmDirective&lt;T &#x3D; any&gt; implements OnDestroy {
922
884
  this.subscription &#x3D; new Subscription();
923
885
 
924
886
  this.subscription.add(
925
- componentRef.instance.confirmed
887
+ outputToObservable(componentRef.instance.confirmed)
926
888
  .pipe(
927
889
  take(1),
928
- tap(() &#x3D;&gt; this.onConfirmed(this._eventValue)),
890
+ tap(() &#x3D;&gt; this.onConfirmed(this.eventValue())),
929
891
  tap(() &#x3D;&gt; this.overlayRef?.dispose()),
930
892
  tap(() &#x3D;&gt; this.isOverlyOpen &#x3D; false),
931
893
  tap(() &#x3D;&gt; (this.subscription &#x3D; null)),
@@ -935,10 +897,10 @@ export class ConfirmDirective&lt;T &#x3D; any&gt; implements OnDestroy {
935
897
  );
936
898
 
937
899
  this.subscription.add(
938
- componentRef.instance.unconfirmed
900
+ outputToObservable(componentRef.instance.unconfirmed)
939
901
  .pipe(
940
902
  take(1),
941
- tap(() &#x3D;&gt; this.onUnconfirmed(this._eventValue)),
903
+ tap(() &#x3D;&gt; this.onUnconfirmed(this.eventValue())),
942
904
  tap(() &#x3D;&gt; this.overlayRef?.dispose()),
943
905
  tap(() &#x3D;&gt; this.isOverlyOpen &#x3D; false),
944
906
  tap(() &#x3D;&gt; (this.subscription &#x3D; null)),